Commit Graph

160 Commits

Author SHA1 Message Date
Kyohei Fukuda
54b813c44b Fix table layout bug (#589)
* Fix table layout bug

* Update snapshot

* Move cloneDeep to common

* Minor fix

* revert some test pdf

* add test

* Minor fix

* Minor fix

* Minor fix

* refactoring
2024-09-10 20:49:52 +09:00
Peter Ward
dd33165b6c Add tests for underline, strikethrough and multi variable text (#557) 2024-08-10 13:46:26 +01:00
Peter Ward
76b1d15d55 Fix tsconfig for generator so that 'paths' is insidde 'compilerOptions' (#534) 2024-08-02 06:31:38 +09:00
Kyohei Fukuda
b5bd7c8ac4 chore: Fix generator README 2024-08-01 10:04:33 +09:00
Peter Ward
8409a7d881 Add a required attribute to fields which is validated by the designer (#521) 2024-07-30 14:46:56 +01:00
Kyohei Fukuda
9b95ea7e58 Update website (#520)
* Change website keyword

* website image optimize

* website: Add pdfme Cloud link to navigation bar

* website: Add pdfme Cloud link to footer

* update docusaurus

* add SidebarBanner

* Update readme
2024-07-25 21:14:40 +09:00
Alexander Sergeev
21ea3144e5 fix(generator): Cannot open a pdf generated by pdfme v4 with dynamic table data using Adobe (#480) (#493) 2024-07-17 14:39:42 +09:00
Kyohei Fukuda
a3a2b0bdc6 [WIP] V4 (#427)
* Reconsider the internal data types and the template types (#389)

* Change SchemaForUI's data and readOnlyValue to content

* Fix bug

* Remove sampledata and instead always use content. & Use content regardless of readOnly or not. & Eliminate defaultValue and replace it with always using content.

* Change website template

* Fix placeholder bug

* Change generator test template

* Change content to optional

* Move getInputFromTemplate to common

* Remove columns

* Fix test

* move dynamictable.excalidraw

* remove idea dir

* New basePdf type and Support adding new pages to template (#394)

* Minor fix

* IMPL Support adding new pages to template #111

* Fix test

* Minor fix

* IMPL padding behavior

* Update snapshot

* Minor fix

* Update snapshot

* add i18n

* remove option from BlankPdf.padding

* Minor fix

* Minor fix

* format

* Add changeSchemas unit test (#403)

* Minor fix

* Add a version number to pdfme template from V4 onwards (#404)

* Impl

* Minor fix

* Padding move width (#407)

* Refactor position and size handling in helper.ts

* Fix bug

* Add DynamicTable Schema #332 (#408)

* [tmp] add some comment

* Update snapshot

* Add deploy-table script to package.json

* add new template for playground

* bug fix for form

* fix cell editing bug

* Fix Adding rows doesn't change the overall height of the table

* fix padding problem

* Fix build error

* Fix bug

* Minor fix

* Fix New lines not reflecting correctly

* minor fix

* Minor fix

* Change tableStyles def

* add i18n

* small bugfix

* FIx some TODO

* Remove japanese comment

* Minor fix

* Fix infinity loom for form

* fix save inputs bug

* fix window resize bug

* add skip for failing test and update snapshot

* Minor fix

* add presets for playground

* Minor fix

* Reconsider the internal data types and the template types (#389)

* Change SchemaForUI's data and readOnlyValue to content

* Fix bug

* Remove sampledata and instead always use content. & Use content regardless of readOnly or not. & Eliminate defaultValue and replace it with always using content.

* Change website template

* Fix placeholder bug

* Change generator test template

* Change content to optional

* Move getInputFromTemplate to common

* Remove columns

* Fix test

* move dynamictable.excalidraw

* remove idea dir

* New basePdf type and Support adding new pages to template (#394)

* Minor fix

* IMPL Support adding new pages to template #111

* Fix test

* Minor fix

* IMPL padding behavior

* Update snapshot

* Minor fix

* Update snapshot

* add i18n

* remove option from BlankPdf.padding

* Minor fix

* Minor fix

* format

* Add changeSchemas unit test (#403)

* Minor fix

* Add a version number to pdfme template from V4 onwards (#404)

* Impl

* Minor fix

* Padding move width (#407)

* Refactor position and size handling in helper.ts

* Fix bug

* Add DynamicTable Schema #332 (#408)

* [tmp] add some comment

* Update snapshot

* Add deploy-table script to package.json

* add new template for playground

* bug fix for form

* fix cell editing bug

* Fix Adding rows doesn't change the overall height of the table

* fix padding problem

* Fix build error

* Fix bug

* Minor fix

* Fix New lines not reflecting correctly

* minor fix

* Minor fix

* Change tableStyles def

* add i18n

* small bugfix

* FIx some TODO

* Remove japanese comment

* Minor fix

* Fix infinity loom for form

* fix save inputs bug

* fix window resize bug

* add skip for failing test and update snapshot

* Minor fix

* add presets for playground

* Minor fix

* Minor fix

* Update imports and fix font rendering

* Add a Left Sidebar for Placing Schemas #400 (#452)

* Remove original 'Add new field' Button

* add icon

* FIx drag position bug

* Minor fix

* Fix sidebar position

* Update snapshot

* Minor fix

* Update packages/ui/src/components/Designer/index.tsx

Co-authored-by: Peter Ward <pete@pennyblack.io>

---------

Co-authored-by: Peter Ward <pete@pennyblack.io>

* Fix test

* Improve left sidebar icon drop placement accuracy (#454)

* Fix Spanish translations for v4 (#463)

* Fix #431

* V4 (#467)

* feat: add french language

* feat: relecture

* feat: add french language

---------

Co-authored-by: regis <regis>

* Add French language option to playground

* rename table export name to tableBeta

---------

Co-authored-by: Peter Ward <pete@pennyblack.io>
Co-authored-by: Iker Diez <32014358+ikerd@users.noreply.github.com>
Co-authored-by: Régis <regis.charnace@leandco.fr>
2024-04-11 09:43:36 +09:00
Peter Ward
3a35e7e800 Support for line breaking on hyphens (#451)
* support for line breaking on hyphens

* update test pdfs
2024-03-22 09:16:53 +09:00
hlin-neo4j
4c5ca9ff8e #445 #442 Exposed pageCursor from Designer (#446) 2024-03-18 09:24:21 +09:00
necessarylion
e3b7d2ec97 include test for pdf image 2024-03-07 00:23:03 +06:30
necessarylion
73498d0012 Fix failed tests and add new test for pdf image type 2024-03-07 00:07:12 +06:30
Daniel Kastl
3a78068d06 Performance test handling (#390)
* Perfromance warnings instead of error.

Signed-off-by: Daniel Kastl <daniel@georepublic.de>

* Performance issue throws error in CI

Signed-off-by: Daniel Kastl <daniel@georepublic.de>

---------

Signed-off-by: Daniel Kastl <daniel@georepublic.de>
2023-12-25 15:30:14 +09:00
Kyohei Fukuda
700a088527 Add ReadOnly Schemas (#386)
* TMP

* IMPL

* Remove console.log statement in imageSize function

* TMP add test

* Update @pdfme/pdf-lib

* Update package-lock.json

* Update snapshot
2023-12-23 17:21:35 +09:00
Kyohei Fukuda
e1ce94c4ec Add SVG Schema (#384)
* TMP

* Impl SVG schema in the schemas package

* Update @pdfme/pdf-lib to version 1.18.1

* Change image schema

* Update devBuild:watch script in package.json
2023-12-22 00:12:12 +09:00
Kyohei Fukuda
0329cb7e8e Add Ellipse and Rectangle Schema (#375)
* TMP

* TMP

* Stopped inefficient file splitting and bugfix for readonly

* add rectangle schema

* TMP

* TMP

* move some files and i18n

* Add shapes template to generator

* Bugfix

* Import Improve the UX for adding an image #380
2023-12-19 22:04:09 +09:00
Peter Ward
7c649e0213 Tune the integration test speed checks (#376) 2023-12-18 06:36:34 +00:00
Kyohei Fukuda
259be1d4d4 Fix readonly not drawing for pdf and opacity for ui (#374) 2023-12-17 09:33:08 +09:00
Kyohei Fukuda
cfeb899ad5 Add Line schema (#351)
* Minor fix

* TMP

* Update background color in Designer and Preview
components

* TMP

* TMP

* Add Line schema

* Minor fix

* Fix: Emptying the image field triggers a HTTP request #325

* Minor fix

* Minor fix

* Minor fix
2023-12-16 23:19:04 +09:00
Kyohei Fukuda
3e5c56996e add key to plugin's render (#352) 2023-12-05 10:22:40 +09:00
Kyohei Fukuda
6d823cf007 Fix error (#339) 2023-11-27 09:37:25 +09:00
Kyohei Fukuda
873b9709cd Fix test descriptions in integration tests 2023-11-25 14:02:17 +09:00
Kyohei Fukuda
0bb94190ee IMPL (#333) 2023-11-25 12:32:11 +09:00
Kyohei Fukuda
c1e24761d2 [WIP] Enhancing the development experience (#327)
* TMP

* TMP

* Fix failing test

* Update ESLint configuration

* Update ESLint configuration
2023-11-22 00:09:00 +09:00
Staffan Enberg
815cbd84b4 Add types to package exports (#316)
Co-authored-by: Staffan Enberg <staffa.enberg@gmail.com>
2023-11-13 20:42:54 +09:00
Kyohei Fukuda
ec7ab807e9 Set type:module for all package, and Update pdfjs-dist at ui 2023-11-10 12:03:49 +09:00
Kyohei Fukuda
b93585ee41 Split heavy test 2023-11-07 14:25:17 +09:00
Kyohei Fukuda
f539e06879 Split generate test file 2023-11-07 11:11:40 +09:00
Kyohei Fukuda
45d18a5f1f npm run build command to parallel 2023-11-07 10:52:55 +09:00
Kyohei Fukuda
1fe8a2e008 Change package.json's version 2023-11-03 18:19:06 +09:00
Kyohei Fukuda
7d6434b4c7 Remove beta from package version 2023-11-03 17:33:26 +09:00
Kyohei Fukuda
5787079470 Separating Schema label from code identifier (#304)
* TMP

* Minor fix

* Update doc

* Rename `propPanel.propPanelSchema` to `propPanel.schema`

* Minor fix

* remove comment
2023-11-02 00:09:39 +09:00
Kyohei Fukuda
ce5a667c14 Minor fix 2023-10-30 10:38:05 +09:00
Kyohei Fukuda
9b4d1173f8 Update version to 3.0.0-beta.2 2023-10-29 16:43:27 +09:00
Kyohei Fukuda
c9c3afbc70 Update version to 3.0.0-beta.1 2023-10-29 16:26:13 +09:00
Kyohei Fukuda
a596f3b2bb Update website doc 2023-10-29 16:21:41 +09:00
Kyohei Fukuda
0c3ddf78d9 Fix fail test 2023-10-26 10:19:36 +09:00
Kyohei Fukuda
464f7e78a6 add prefix for error message 2023-10-25 23:53:21 +09:00
Kyohei Fukuda
38c3ec81c4 Write documentation for Custom Schema Plugin (#283)
* TMP

* Update Special Thanks

* Minor fix

* Add FIXME comment

* remove image schema from builtin

* Update snapshot

* TMP

* fix fail test

* Minor fix

* Fix website build bug and demo bug

* Fix focus problem

* Minor fix

* Minor fix

* Minor fix

* Fix for image schema type bug

* add comment

* Move unnecessary type sharing from the common package to the each packages.

* TMP

* Add JSDoc

* TMP

* ja 2 en
2023-10-25 12:31:32 +09:00
Peter Ward
e2bf5d5190 Rotate Refactor (#282) 2023-10-23 14:59:39 +01:00
Kyohei Fukuda
8e4ccc3c35 Publicize internal-use-only processing and allow for injection of processing from the outside (#281)
* Move some type to common

* Add plugins interface

* TMP

* Fix build error

* Fix generator test

* Remove CommonProps export for user

* Add checkPlugins

* Minor fix
2023-10-20 11:32:09 +09:00
Kyohei Fukuda
c2fd0a8fae Add schemas package (#278)
* Add schemas package

* TMP

* TMP

* Fix text pdfRender bug

* move render props type to schema

* update type

* TMP

* remove webpack

* Fix build error

* Add comment

* TMP

* bugfix

* TMP

* Bug fix for dynamicFontSize

* Minor fix

* TMP

* Minor fix

* Fix build error

* Add generics

* add comment

* Minor fix

* Move Plugin type to common from schemas

* TMP Move some pdfme/common functions to pdfme/schemas

* Fix test

* Fix build bug

* Fix build error

* Refactoring

* remove any type

* Fix fail test

* Fix build error

* Minor fix

* Refactoring

* Fix format
2023-10-18 17:29:49 +09:00
Kyohei Fukuda
ce8902a28c Enable processing from the registered schema in ui package's Designer's Custom prop editor (for internal use only) (#274) 2023-10-09 10:46:31 +09:00
Kyohei Fukuda
30a0ce2eda Update version to 2.2.1 2023-09-23 17:12:09 +09:00
Kyohei Fukuda
09ad087c71 Enable processing from the registered schema in the ui package's renderer (for internal use only) (#261)
* TMP

* TMP

* TMP

* TMP

* FIX Empty characters are not rendered

* Add Image renders

* Add barcode renders and bugfix

* Update snapshot

* Minor fix

* Minor fix

* Minor fix
2023-09-23 16:38:18 +09:00
Kyohei Fukuda
8d4b9f00f2 Move createBarCode to common 2023-09-12 10:59:40 +09:00
Kyohei Fukuda
57b98c0913 Enable processing from the registered schema in the generator package's renderer (for internal use only) (#242)
* TMP Enable processing from the registered schema in the generator package's renderer (for internal use only)

* TMP Enable processing from the registered schema in the generator package's renderer (for internal use only)

* Enable processing from the registered schema in the generator package's renderer (for internal use only)

* File Organization

* Minor fix

* merge

* Fix cache bug

* Fix for review

* fix conflict createBarCode.ts

* Add TODO
2023-09-12 10:22:52 +09:00
Steffan Carrington
83ebf5d394 Custom qr code colours (#256)
* QR Codes - ability to customise barcode colours added

* review fixes

* fix typo

* consolidate ColorInputSet for shared use between Text and BarCode

* consolidate some logic shared for bwip.js barcode lip between UI and generator

---------

Co-authored-by: Pete Ward <pete@pennyblack.io>
2023-09-12 09:21:42 +09:00
Peter Ward
285dc2ffa3 fix dynamic font size vertical fit to use a more accurate height calculations (#250) 2023-08-30 13:00:38 +09:00
Kyohei Fukuda
f2d81fd538 Update version to 2.2.0 2023-08-27 16:12:07 +09:00