Commit Graph

309 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
Kyohei Fukuda
538ed5d5f0 Update snapshot 2024-08-11 16:28:35 +09:00
Kyohei Fukuda
0e71adfeac Minor fix 2024-08-11 16:24:13 +09:00
Peter Ward
102490ade5 fix to ensure first field starts as field1 (#559) 2024-08-11 14:49:06 +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
9318fe333b ensure unique schema names when working in the designer (#556) 2024-08-10 15:59:45 +09:00
Kyohei Fukuda
bb439315c0 Minor fix 2024-08-07 09:51:40 +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
73ee314ade update template version on save (#539) 2024-08-03 19:28:44 +09:00
Peter Ward
f14aa79a55 Add autocomplete=off to the name key/field to avoid lastpass breaking forms (#535) 2024-08-02 06:31:28 +09:00
Peter Ward
9bc93243c2 Fix alignment of required with duplicate name warning (#536) 2024-08-02 06:31:07 +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
bd99144a15 Minor fix 2024-07-30 22:34:03 +09:00
Peter Ward
4e82648b78 Further revert the DetailView useEffect changes (#526) 2024-07-30 09:43:56 +09:00
Kyohei Fukuda
5e0d1bc42c Refactor code and fix warning (#524) 2024-07-28 11:19:00 +09:00
Peter Ward
39f32f44c6 fewer rerenders of the DetailView in RightSidebar (#523) 2024-07-27 09:32:25 +09: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
Peter Ward
8e67e8ecd2 Fix schema change attribute retention (#514) 2024-07-24 09:07:02 +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
8735c85811 Fix - When a large number of plugins are set, the left sidebar of the designer overflows. (#506)
* fix bug

* Update Designer test snapshot
2024-07-20 17:24:23 +09:00
Peter Ward
4faff77d39 Short-term improvement to Form flicker between fields due to tables needing refresh (#504) 2024-07-20 17:01:06 +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
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
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
olga-krayevska
99aa51d003 ui-build-optimization: process.env.NODE_ENV defined in vite.configs.ts, only prod react/react-dom files are included in build (#422) 2024-02-11 17:08:31 +09:00
Kyohei Fukuda
807b92080d Uncaught TypeError: Designer is not a constructor #413 (#415)
* Add umd to ui

* Update pdfjs-dist version

* Fix test
2024-01-27 15:41:49 +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
Peter Ward
cc70ab2cae Fix drag-selecting text beyond the schema was de-selecting it (#381) 2023-12-19 09:37: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
Peter Ward
632657da1b Fix to allow zero values for form fields (#367) 2023-12-16 11:44:16 +00: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
Peter Ward
579f733388 Use contenteditable as opposed to textarea for text fields (#359)
* use contenteditable as opposed to textarea for vertical alignment of text to be respected

* Fix test

* Add placeholder

* Update snapshot

* optimise the dynamic font size re-rendering

---------

Co-authored-by: Kyohei Fukuda <kyouhei.fukuda0729@gmail.com>
2023-12-12 09:51:23 +09:00
Peter Ward
36e8f2c6fb Refactor to remove inefficient useEffect with side effects (#356)
* refactor to remove inefficient useEffect with side effects

* f
2023-12-06 17:02:26 +09:00
Peter Ward
acf2b8cecd fix bundling of CSS within JS for easier use (#355) 2023-12-05 22:07:24 +09: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
a2a1288e98 fix vite build for ui to only use local tsconfig file (#350) 2023-12-05 09:13:58 +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
Peter Ward
3258e441b1 Reset rotation field when changing schema in UI (#337)
* Reset rotation field when changing schema in UI

(cherry picked from commit 592c7498f8)

* clear stale UI schema values by resetting all form fields before setting new values in case some are missing

---------

Co-authored-by: Leandro Banaszeski <leandrobanaszeski@gmail.com>
2023-11-27 23:42:55 +09:00
Kyohei Fukuda
6d823cf007 Fix error (#339) 2023-11-27 09:37:25 +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