Commit Graph

169 Commits

Author SHA1 Message Date
Kyohei Fukuda
70a93d4149 fix bug (#594) 2024-09-15 17:24:35 +09:00
Kyohei Fukuda
49d3e46835 Fix Multiple tables bug (#590) 2024-09-11 09:37:34 +09:00
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
Kyohei Fukuda
11d41411e8 Integrate the ReadOnly schema (#547)
* IMPL

* Remove read-only schema from playground

* Support read-only in multiVariableText schema

* Change readOnly checkbox

* Minor fix

* revert MVT changes

* Fix for MVT

* Minor fix
2024-08-10 16:09:11 +09:00
Peter Ward
e91a7e31a1 Validating unique schema keys (#540)
* validating unique schema keys

* Minor fix

---------

Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
2024-08-04 14:57:47 +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
Peter Ward
abfaf7be83 Move icon definition to plugin instead of schema (#522)
* move icon definition to plugin instead of schema
allow options to override icon

* f
2024-07-26 09:38:59 +09: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
Kyohei Fukuda
371a0d37a0 chore: add PDFME_VERSION to playground nav (#517) 2024-07-24 11:10:36 +09:00
Peter Ward
1008ff816a do not apply schema changes from right sidebar if they are invalid (#508) 2024-07-21 18:56:09 +09:00
Peter Ward
aeec3aff96 Multi-variable Text Schema (again) (#502) 2024-07-21 09:50:16 +01:00
Kyohei Fukuda
0a0821c6e0 Update table schema error message (#503) 2024-07-20 15:09:16 +09:00
Zin Kyaw Kyaw (AJ)
da354d889d Add strikethrough and underline formatter on text schema (#494)
* add strikethrough and underline on text schema

* fix active btn

* Fix failed type match on boolean

* fix yline calculation on rotate text

* fix character spacing missing in line length calculations

* create button group widget and group together

* update align icons

* update dict

---------

Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
2024-07-17 17:28:44 +09:00
Sebastian Moßburger
da7f7cfb0b fix(common): Move typing dependencies to peer (#477)
* fix(dep): Remove antd as direct dependency of common

* Move form-render to peer as well

* update esbuild

---------

Co-authored-by: Kyohei Fukuda <kyoheif@wix.com>
2024-06-01 09:11:50 +09:00
Kyohei Fukuda
433305a474 Update language translations and add support for Chinese (zh) and Korean (ko) languages. (#475) 2024-04-29 17:30:37 +09:00
Kyohei Fukuda
40cc703f2c Minor fix for Upgrade to V4 2024-04-11 09:57:35 +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
Ferran Masó Busquets
349c7c7df8 Add spanish language (#458)
Add spanish language
2024-03-27 10:22:10 +09:00
hlin-neo4j
4c5ca9ff8e #445 #442 Exposed pageCursor from Designer (#446) 2024-03-18 09:24:21 +09:00
necessarylion
73498d0012 Fix failed tests and add new test for pdf image type 2024-03-07 00:07:12 +06:30
Zin Kyaw Kyaw (AJ)
18cf33d037 Added support for color type option in generator (#436)
* added support for color type option in generator

* remove color type option from playground

* use let or const instead of var
2024-03-04 10:32:38 +09:00
Rouven Hurling
46842e7d11 promote includetext from bwipjs arg that is always set to true to schema option (same as textColor) (#395)
* promote includetext from  bwipjs arg that is always set to true to schema option (same as textColor)

* set BarcodeSchema.includetext to optional

* add i18n text (en + de)

* add schemas.barcodes.includetext to Dict Schema

* add google translated text for other languages

* Minor fix

* Minor fix

* Minor fix

---------

Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
2023-12-29 13:29:26 +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
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
54ed5b7ca3 Add README to common and schemas package 2023-12-14 00:13:58 +09:00
olga-krayevska
e279f8046d german language supprot added (#364)
* german language supprot added

* german language supprot: after review translation update
2023-12-13 17:16:01 +09:00
steffancarrington
aed7d1b86e Barcode colour validation added, tests added and error handling added 2023-12-05 13:07:14 +00:00
Kyohei Fukuda
fb2f12059d use cache in a text schema (#353)
* use cache in a text schema

* Update class names in Designer and Preview test
snapshots
2023-12-05 16:54:24 +09:00
Kyohei Fukuda
3e5c56996e add key to plugin's render (#352) 2023-12-05 10:22:40 +09:00
Peter Ward
682282a998 Added opacity option to all schemes and fix rotation bugs (#338)
* Added opacity option to all schemes

(cherry picked from commit 9a8b877403)

* IMPL

* Refactor nested position object into flat
structure

* added step props for number inputs that need it

---------

Co-authored-by: Leandro Banaszeski <leandrobanaszeski@gmail.com>
Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
2023-12-05 09:09:29 +09:00
Kyohei Fukuda
6d823cf007 Fix error (#339) 2023-11-27 09:37:25 +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
Kyohei Fukuda
52d35b0e82 Custom label UI 107 (#323)
* TMP

* TMP

* TMP

* TMP

* TMP

* TMP

* Done

* Fix bug: updateOptions

* Update comment
2023-11-20 19:39:48 +09:00
Kyohei Fukuda
66553edf20 Custom Design for UI#243 (#322) 2023-11-19 18:21:41 +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
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
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
3790a2a87c Set Rotate from propPanel default schema (#290) 2023-10-26 12:41:01 +09:00
Kyohei Fukuda
3b593d2cd1 FIx fail test 2023-10-26 00:00:55 +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
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