@streamline-pulse/formkrafter-wc 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +140 -0
- package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
- package/dist/cjs/fk-brick-actions_18.cjs.entry.js +26442 -0
- package/dist/cjs/formkrafter-wc.cjs.js +25 -0
- package/dist/cjs/index-By4GGW_q.js +17346 -0
- package/dist/cjs/index-D_7eGIJ0.js +2090 -0
- package/dist/cjs/index.cjs.js +47 -0
- package/dist/cjs/loader.cjs.js +13 -0
- package/dist/collection/collection-manifest.json +30 -0
- package/dist/collection/components/fk-brick-actions/fk-brick-actions.css +78 -0
- package/dist/collection/components/fk-brick-actions/fk-brick-actions.js +215 -0
- package/dist/collection/components/fk-brick-list/fk-brick-list.css +71 -0
- package/dist/collection/components/fk-brick-list/fk-brick-list.js +55 -0
- package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.css +33 -0
- package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.js +73 -0
- package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.css +8 -0
- package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.js +18 -0
- package/dist/collection/components/fk-brick-render/fk-brick-render.js +419 -0
- package/dist/collection/components/fk-code-editor/fk-code-editor.css +26 -0
- package/dist/collection/components/fk-code-editor/fk-code-editor.js +136 -0
- package/dist/collection/components/fk-data-grid/fk-data-grid.css +75 -0
- package/dist/collection/components/fk-data-grid/fk-data-grid.js +300 -0
- package/dist/collection/components/fk-drop-area/fk-drop-area.css +18 -0
- package/dist/collection/components/fk-drop-area/fk-drop-area.js +98 -0
- package/dist/collection/components/fk-empty-form/fk-empty-form.css +22 -0
- package/dist/collection/components/fk-empty-form/fk-empty-form.js +19 -0
- package/dist/collection/components/fk-file-input/fk-file-input.css +74 -0
- package/dist/collection/components/fk-file-input/fk-file-input.js +157 -0
- package/dist/collection/components/fk-form-builder/fk-form-builder.css +82 -0
- package/dist/collection/components/fk-form-builder/fk-form-builder.js +431 -0
- package/dist/collection/components/fk-form-render/fk-form-render.css +7 -0
- package/dist/collection/components/fk-form-render/fk-form-render.js +352 -0
- package/dist/collection/components/fk-property-panel/fk-property-panel.css +153 -0
- package/dist/collection/components/fk-property-panel/fk-property-panel.js +384 -0
- package/dist/collection/components/fk-rules-editor/fk-rules-editor.css +166 -0
- package/dist/collection/components/fk-rules-editor/fk-rules-editor.js +250 -0
- package/dist/collection/components/fk-select-input/fk-select-input.css +144 -0
- package/dist/collection/components/fk-select-input/fk-select-input.js +356 -0
- package/dist/collection/components/fk-signature-input/fk-signature-input.css +42 -0
- package/dist/collection/components/fk-signature-input/fk-signature-input.js +158 -0
- package/dist/collection/components/fk-stepper/fk-stepper.css +85 -0
- package/dist/collection/components/fk-stepper/fk-stepper.js +282 -0
- package/dist/collection/components/fk-tabs/fk-tabs.css +38 -0
- package/dist/collection/components/fk-tabs/fk-tabs.js +236 -0
- package/dist/collection/i18n/i18n.js +245 -0
- package/dist/collection/index.js +5 -0
- package/dist/collection/registry/create-brick.js +34 -0
- package/dist/collection/registry/default-bricks.js +424 -0
- package/dist/collection/registry/registry.js +44 -0
- package/dist/collection/utils/brick-data.js +16 -0
- package/dist/collection/utils/drop.js +14 -0
- package/dist/collection/utils/events.js +1 -0
- package/dist/collection/utils/options.js +21 -0
- package/dist/collection/utils/remote.js +27 -0
- package/dist/collection/utils/rule-condition.js +72 -0
- package/dist/collection/utils/style.js +11 -0
- package/dist/components/fk-brick-actions.d.ts +11 -0
- package/dist/components/fk-brick-actions.js +1 -0
- package/dist/components/fk-brick-list.d.ts +11 -0
- package/dist/components/fk-brick-list.js +1 -0
- package/dist/components/fk-brick-mold-item.d.ts +11 -0
- package/dist/components/fk-brick-mold-item.js +1 -0
- package/dist/components/fk-brick-not-found.d.ts +11 -0
- package/dist/components/fk-brick-not-found.js +1 -0
- package/dist/components/fk-brick-render.d.ts +11 -0
- package/dist/components/fk-brick-render.js +1 -0
- package/dist/components/fk-code-editor.d.ts +11 -0
- package/dist/components/fk-code-editor.js +1 -0
- package/dist/components/fk-data-grid.d.ts +11 -0
- package/dist/components/fk-data-grid.js +1 -0
- package/dist/components/fk-drop-area.d.ts +11 -0
- package/dist/components/fk-drop-area.js +1 -0
- package/dist/components/fk-empty-form.d.ts +11 -0
- package/dist/components/fk-empty-form.js +1 -0
- package/dist/components/fk-file-input.d.ts +11 -0
- package/dist/components/fk-file-input.js +1 -0
- package/dist/components/fk-form-builder.d.ts +11 -0
- package/dist/components/fk-form-builder.js +1 -0
- package/dist/components/fk-form-render.d.ts +11 -0
- package/dist/components/fk-form-render.js +1 -0
- package/dist/components/fk-property-panel.d.ts +11 -0
- package/dist/components/fk-property-panel.js +1 -0
- package/dist/components/fk-rules-editor.d.ts +11 -0
- package/dist/components/fk-rules-editor.js +1 -0
- package/dist/components/fk-select-input.d.ts +11 -0
- package/dist/components/fk-select-input.js +1 -0
- package/dist/components/fk-signature-input.d.ts +11 -0
- package/dist/components/fk-signature-input.js +1 -0
- package/dist/components/fk-stepper.d.ts +11 -0
- package/dist/components/fk-stepper.js +1 -0
- package/dist/components/fk-tabs.d.ts +11 -0
- package/dist/components/fk-tabs.js +1 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/index.js +1 -0
- package/dist/components/p-92BozD8S.js +1 -0
- package/dist/components/p-B4vAN-UA.js +1 -0
- package/dist/components/p-BB3BQPr8.js +1 -0
- package/dist/components/p-BCQ-hj6j.js +1 -0
- package/dist/components/p-BIEpAM4V.js +1 -0
- package/dist/components/p-BLKRn62s.js +1 -0
- package/dist/components/p-BNREw7TY.js +1 -0
- package/dist/components/p-BOvjVIvo.js +1 -0
- package/dist/components/p-BQP1WryV.js +1 -0
- package/dist/components/p-BXFug2Ql.js +1 -0
- package/dist/components/p-Ctt--jpe.js +1 -0
- package/dist/components/p-D318uFl-.js +1 -0
- package/dist/components/p-DJDrDvoC.js +1 -0
- package/dist/components/p-DKGyje7v.js +1 -0
- package/dist/components/p-DKoJovNt.js +1 -0
- package/dist/components/p-DWgjI3TW.js +1 -0
- package/dist/components/p-Diknh4-7.js +1 -0
- package/dist/components/p-DtzMNM4i.js +1 -0
- package/dist/components/p-QC41Uj05.js +1 -0
- package/dist/components/p-TvmRksgg.js +1 -0
- package/dist/components/p-ZEW2q-4b.js +1 -0
- package/dist/components/p-dX7Lo8Fe.js +12 -0
- package/dist/components/p-gPc0o8Jb.js +1 -0
- package/dist/esm/app-globals-DQuL1Twl.js +3 -0
- package/dist/esm/fk-brick-actions_18.entry.js +26423 -0
- package/dist/esm/formkrafter-wc.js +21 -0
- package/dist/esm/index-BQqrzKxo.js +2081 -0
- package/dist/esm/index-BTmZ8XET.js +17288 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/loader.js +11 -0
- package/dist/formkrafter-wc/formkrafter-wc.css +1 -0
- package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -0
- package/dist/formkrafter-wc/index.esm.js +1 -0
- package/dist/formkrafter-wc/p-BQqrzKxo.js +2 -0
- package/dist/formkrafter-wc/p-BXIsVlA6.js +12 -0
- package/dist/formkrafter-wc/p-DQuL1Twl.js +1 -0
- package/dist/formkrafter-wc/p-f6bc0be0.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stencil.config.js +34 -0
- package/dist/types/Users/datagnikan/Desktop/WorkSpace/streamline-pulse/formkrafter-js/formkrafter/packages/wc/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/components/fk-brick-actions/fk-brick-actions.d.ts +18 -0
- package/dist/types/components/fk-brick-list/fk-brick-list.d.ts +6 -0
- package/dist/types/components/fk-brick-mold-item/fk-brick-mold-item.d.ts +10 -0
- package/dist/types/components/fk-brick-not-found/fk-brick-not-found.d.ts +3 -0
- package/dist/types/components/fk-brick-render/fk-brick-render.d.ts +22 -0
- package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +13 -0
- package/dist/types/components/fk-data-grid/fk-data-grid.d.ts +21 -0
- package/dist/types/components/fk-drop-area/fk-drop-area.d.ts +12 -0
- package/dist/types/components/fk-empty-form/fk-empty-form.d.ts +3 -0
- package/dist/types/components/fk-file-input/fk-file-input.d.ts +14 -0
- package/dist/types/components/fk-form-builder/fk-form-builder.d.ts +43 -0
- package/dist/types/components/fk-form-render/fk-form-render.d.ts +29 -0
- package/dist/types/components/fk-property-panel/fk-property-panel.d.ts +34 -0
- package/dist/types/components/fk-rules-editor/fk-rules-editor.d.ts +29 -0
- package/dist/types/components/fk-select-input/fk-select-input.d.ts +37 -0
- package/dist/types/components/fk-signature-input/fk-signature-input.d.ts +19 -0
- package/dist/types/components/fk-stepper/fk-stepper.d.ts +27 -0
- package/dist/types/components/fk-tabs/fk-tabs.d.ts +23 -0
- package/dist/types/components.d.ts +796 -0
- package/dist/types/i18n/i18n.d.ts +5 -0
- package/dist/types/index.d.ts +11 -0
- package/dist/types/registry/create-brick.d.ts +37 -0
- package/dist/types/registry/default-bricks.d.ts +489 -0
- package/dist/types/registry/registry.d.ts +8 -0
- package/dist/types/stencil-public-runtime.d.ts +1861 -0
- package/dist/types/utils/brick-data.d.ts +3 -0
- package/dist/types/utils/drop.d.ts +2 -0
- package/dist/types/utils/events.d.ts +37 -0
- package/dist/types/utils/options.d.ts +5 -0
- package/dist/types/utils/remote.d.ts +3 -0
- package/dist/types/utils/rule-condition.d.ts +30 -0
- package/dist/types/utils/style.d.ts +1 -0
- package/loader/cdn.js +1 -0
- package/loader/index.cjs.js +1 -0
- package/loader/index.d.ts +24 -0
- package/loader/index.es2017.js +1 -0
- package/loader/index.js +2 -0
- package/package.json +80 -0
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
var _a;
|
|
2
|
+
const en = {
|
|
3
|
+
'palette.search': 'Search bricks…',
|
|
4
|
+
'palette.empty': 'No brick matches “{query}”',
|
|
5
|
+
'builder.undo': 'Undo',
|
|
6
|
+
'builder.redo': 'Redo',
|
|
7
|
+
'builder.copyJson': 'Copy JSON',
|
|
8
|
+
'builder.importJson': 'Import JSON',
|
|
9
|
+
'builder.importInvalid': 'Invalid form JSON',
|
|
10
|
+
'builder.pasteHint': 'Press Ctrl+V to paste a spec',
|
|
11
|
+
'builder.copied': 'Copied!',
|
|
12
|
+
'builder.downloadJson': 'Download .json',
|
|
13
|
+
'builder.hint': 'Select a brick to edit its properties',
|
|
14
|
+
'drop.hint': 'Drop a brick here',
|
|
15
|
+
'empty.title': 'Your form is empty',
|
|
16
|
+
'empty.hint': 'Drag a brick from the palette to get started',
|
|
17
|
+
'actions.move': 'Move',
|
|
18
|
+
'actions.duplicate': 'Duplicate',
|
|
19
|
+
'actions.delete': 'Delete',
|
|
20
|
+
'stepper.back': '← Back',
|
|
21
|
+
'stepper.next': 'Next →',
|
|
22
|
+
'stepper.submit': 'Submit',
|
|
23
|
+
'panel.cfg.validateSteps': 'Validate each step',
|
|
24
|
+
'panel.cfg.allowStepClick': 'Allow clicking steps to jump',
|
|
25
|
+
'panel.cfg.showSubmit': 'Submit button on last step',
|
|
26
|
+
'panel.cfg.validateTabs': 'Validate tab before leaving it',
|
|
27
|
+
'signature.clear': 'Clear',
|
|
28
|
+
'panel.tab.config': 'Config',
|
|
29
|
+
'panel.tab.validation': 'Validation',
|
|
30
|
+
'panel.tab.styles': 'Styles',
|
|
31
|
+
'panel.tab.rules': 'Rules',
|
|
32
|
+
'panel.key': 'Key',
|
|
33
|
+
'panel.label': 'Label',
|
|
34
|
+
'panel.placeholder': 'Placeholder',
|
|
35
|
+
'panel.prefix': 'Prefix',
|
|
36
|
+
'panel.suffix': 'Suffix',
|
|
37
|
+
'panel.optionsSource': 'Options source',
|
|
38
|
+
'panel.options': 'Options (one per line)',
|
|
39
|
+
'panel.content': 'Content',
|
|
40
|
+
'panel.dataKey': 'Data key',
|
|
41
|
+
'panel.url': 'URL',
|
|
42
|
+
'panel.headers': 'Headers ({token} reads form data)',
|
|
43
|
+
'panel.searchParam': 'Server search param',
|
|
44
|
+
'panel.labelKey': 'Label key',
|
|
45
|
+
'panel.valueKey': 'Value key',
|
|
46
|
+
'panel.errorMessage': 'Error message',
|
|
47
|
+
'panel.required': 'Required',
|
|
48
|
+
'panel.minLength': 'Min length',
|
|
49
|
+
'panel.maxLength': 'Max length',
|
|
50
|
+
'panel.min': 'Min',
|
|
51
|
+
'panel.max': 'Max',
|
|
52
|
+
'panel.pattern': 'Pattern (regex)',
|
|
53
|
+
'panel.minItems': 'Min items',
|
|
54
|
+
'panel.maxItems': 'Max items',
|
|
55
|
+
'panel.emailFormat': 'Email format',
|
|
56
|
+
'panel.urlFormat': 'URL format',
|
|
57
|
+
'panel.custom': 'Custom (JavaScript)',
|
|
58
|
+
'panel.fallbackMessage': 'Fallback message',
|
|
59
|
+
'panel.styleProperty': 'property',
|
|
60
|
+
'panel.styleValue': 'value',
|
|
61
|
+
'file.choose': 'Choose a file…',
|
|
62
|
+
'file.uploading': 'Uploading…',
|
|
63
|
+
'file.remove': 'Remove file',
|
|
64
|
+
'address.street': 'Street',
|
|
65
|
+
'address.city': 'City',
|
|
66
|
+
'address.zip': 'Postal code',
|
|
67
|
+
'address.country': 'Country',
|
|
68
|
+
'grid.addRow': '+ Add row',
|
|
69
|
+
'grid.removeRow': 'Remove row',
|
|
70
|
+
'grid.empty': 'No rows yet',
|
|
71
|
+
'grid.columns': 'Row template',
|
|
72
|
+
'select.search': 'Search…',
|
|
73
|
+
'select.empty': 'No options',
|
|
74
|
+
'select.clear': 'Clear',
|
|
75
|
+
'rules.when': 'When',
|
|
76
|
+
'rules.then': 'Then',
|
|
77
|
+
'rules.addRule': '+ Add rule',
|
|
78
|
+
'rules.addEffect': '+ Effect',
|
|
79
|
+
'rules.removeRule': 'Remove rule',
|
|
80
|
+
'rules.removeEffect': 'Remove effect',
|
|
81
|
+
'rules.mode.simple': 'simple',
|
|
82
|
+
'rules.mode.json': 'json',
|
|
83
|
+
'rules.mode.js': 'JS',
|
|
84
|
+
'category.Inputs': 'Inputs',
|
|
85
|
+
'category.Layout': 'Layout',
|
|
86
|
+
'category.Data': 'Data',
|
|
87
|
+
'brick.text.name': 'Text',
|
|
88
|
+
'brick.email.name': 'Email',
|
|
89
|
+
'brick.password.name': 'Password',
|
|
90
|
+
'brick.url.name': 'URL',
|
|
91
|
+
'brick.phone.name': 'Phone',
|
|
92
|
+
'brick.textarea.name': 'Text area',
|
|
93
|
+
'brick.number.name': 'Number',
|
|
94
|
+
'brick.date.name': 'Date',
|
|
95
|
+
'brick.time.name': 'Time',
|
|
96
|
+
'brick.datetime.name': 'Date / Time',
|
|
97
|
+
'brick.select.name': 'Select',
|
|
98
|
+
'brick.multi-select.name': 'Multi select',
|
|
99
|
+
'brick.radio.name': 'Radio',
|
|
100
|
+
'brick.select-boxes.name': 'Select boxes',
|
|
101
|
+
'brick.checkbox.name': 'Checkbox',
|
|
102
|
+
'brick.tags.name': 'Tags',
|
|
103
|
+
'brick.signature.name': 'Signature',
|
|
104
|
+
'brick.data-grid.name': 'Data grid',
|
|
105
|
+
'brick.address.name': 'Address',
|
|
106
|
+
'brick.file.name': 'File',
|
|
107
|
+
'brick.hidden.name': 'Hidden',
|
|
108
|
+
'brick.content.name': 'Content',
|
|
109
|
+
'brick.group.name': 'Group',
|
|
110
|
+
'brick.row.name': 'Row',
|
|
111
|
+
'brick.column.name': 'Column',
|
|
112
|
+
'brick.stepper.name': 'Stepper',
|
|
113
|
+
'brick.tabs.name': 'Tabs',
|
|
114
|
+
};
|
|
115
|
+
export const frFkTranslations = {
|
|
116
|
+
'palette.search': 'Rechercher une brique…',
|
|
117
|
+
'palette.empty': 'Aucune brique ne correspond à « {query} »',
|
|
118
|
+
'builder.undo': 'Annuler',
|
|
119
|
+
'builder.redo': 'Rétablir',
|
|
120
|
+
'builder.copyJson': 'Copier le JSON',
|
|
121
|
+
'builder.importJson': 'Importer le JSON',
|
|
122
|
+
'builder.importInvalid': 'JSON de formulaire invalide',
|
|
123
|
+
'builder.pasteHint': 'Collez avec Ctrl+V pour importer une spec',
|
|
124
|
+
'builder.copied': 'Copié !',
|
|
125
|
+
'builder.downloadJson': 'Télécharger le .json',
|
|
126
|
+
'builder.hint': 'Sélectionnez une brique pour éditer ses propriétés',
|
|
127
|
+
'drop.hint': 'Déposez une brique ici',
|
|
128
|
+
'empty.title': 'Votre formulaire est vide',
|
|
129
|
+
'empty.hint': 'Glissez une brique depuis la palette pour commencer',
|
|
130
|
+
'actions.move': 'Déplacer',
|
|
131
|
+
'actions.duplicate': 'Dupliquer',
|
|
132
|
+
'actions.delete': 'Supprimer',
|
|
133
|
+
'stepper.back': '← Précédent',
|
|
134
|
+
'stepper.next': 'Suivant →',
|
|
135
|
+
'stepper.submit': 'Envoyer',
|
|
136
|
+
'panel.cfg.validateSteps': 'Valider chaque étape',
|
|
137
|
+
'panel.cfg.allowStepClick': 'Autoriser le saut d’étapes au clic',
|
|
138
|
+
'panel.cfg.showSubmit': 'Bouton d’envoi à la dernière étape',
|
|
139
|
+
'panel.cfg.validateTabs': 'Valider l’onglet avant de le quitter',
|
|
140
|
+
'signature.clear': 'Effacer',
|
|
141
|
+
'panel.tab.config': 'Config',
|
|
142
|
+
'panel.tab.validation': 'Validation',
|
|
143
|
+
'panel.tab.styles': 'Styles',
|
|
144
|
+
'panel.tab.rules': 'Règles',
|
|
145
|
+
'panel.key': 'Clé',
|
|
146
|
+
'panel.label': 'Libellé',
|
|
147
|
+
'panel.placeholder': 'Placeholder',
|
|
148
|
+
'panel.prefix': 'Préfixe',
|
|
149
|
+
'panel.suffix': 'Suffixe',
|
|
150
|
+
'panel.optionsSource': 'Source des options',
|
|
151
|
+
'panel.options': 'Options (une par ligne)',
|
|
152
|
+
'panel.content': 'Contenu',
|
|
153
|
+
'panel.dataKey': 'Clé de données',
|
|
154
|
+
'panel.url': 'URL',
|
|
155
|
+
'panel.headers': 'En-têtes ({token} lit les données du formulaire)',
|
|
156
|
+
'panel.searchParam': 'Paramètre de recherche serveur',
|
|
157
|
+
'panel.labelKey': 'Clé du libellé',
|
|
158
|
+
'panel.valueKey': 'Clé de la valeur',
|
|
159
|
+
'panel.errorMessage': "Message d'erreur",
|
|
160
|
+
'panel.required': 'Obligatoire',
|
|
161
|
+
'panel.minLength': 'Longueur min',
|
|
162
|
+
'panel.maxLength': 'Longueur max',
|
|
163
|
+
'panel.min': 'Min',
|
|
164
|
+
'panel.max': 'Max',
|
|
165
|
+
'panel.pattern': 'Motif (regex)',
|
|
166
|
+
'panel.minItems': 'Éléments min',
|
|
167
|
+
'panel.maxItems': 'Éléments max',
|
|
168
|
+
'panel.emailFormat': 'Format email',
|
|
169
|
+
'panel.urlFormat': 'Format URL',
|
|
170
|
+
'panel.custom': 'Personnalisé (JavaScript)',
|
|
171
|
+
'panel.fallbackMessage': 'Message par défaut',
|
|
172
|
+
'panel.styleProperty': 'propriété',
|
|
173
|
+
'panel.styleValue': 'valeur',
|
|
174
|
+
'file.choose': 'Choisir un fichier…',
|
|
175
|
+
'file.uploading': 'Envoi en cours…',
|
|
176
|
+
'file.remove': 'Retirer le fichier',
|
|
177
|
+
'address.street': 'Rue',
|
|
178
|
+
'address.city': 'Ville',
|
|
179
|
+
'address.zip': 'Code postal',
|
|
180
|
+
'address.country': 'Pays',
|
|
181
|
+
'grid.addRow': '+ Ajouter une ligne',
|
|
182
|
+
'grid.removeRow': 'Supprimer la ligne',
|
|
183
|
+
'grid.empty': 'Aucune ligne',
|
|
184
|
+
'grid.columns': 'Modèle de ligne',
|
|
185
|
+
'select.search': 'Rechercher…',
|
|
186
|
+
'select.empty': 'Aucune option',
|
|
187
|
+
'select.clear': 'Effacer',
|
|
188
|
+
'rules.when': 'Quand',
|
|
189
|
+
'rules.then': 'Alors',
|
|
190
|
+
'rules.addRule': '+ Ajouter une règle',
|
|
191
|
+
'rules.addEffect': '+ Effet',
|
|
192
|
+
'rules.removeRule': 'Supprimer la règle',
|
|
193
|
+
'rules.removeEffect': "Supprimer l'effet",
|
|
194
|
+
'rules.mode.simple': 'simple',
|
|
195
|
+
'rules.mode.json': 'json',
|
|
196
|
+
'rules.mode.js': 'JS',
|
|
197
|
+
'category.Inputs': 'Champs',
|
|
198
|
+
'category.Layout': 'Mise en page',
|
|
199
|
+
'category.Data': 'Données',
|
|
200
|
+
'brick.text.name': 'Texte',
|
|
201
|
+
'brick.email.name': 'Email',
|
|
202
|
+
'brick.password.name': 'Mot de passe',
|
|
203
|
+
'brick.url.name': 'URL',
|
|
204
|
+
'brick.phone.name': 'Téléphone',
|
|
205
|
+
'brick.textarea.name': 'Zone de texte',
|
|
206
|
+
'brick.number.name': 'Nombre',
|
|
207
|
+
'brick.date.name': 'Date',
|
|
208
|
+
'brick.time.name': 'Heure',
|
|
209
|
+
'brick.datetime.name': 'Date / Heure',
|
|
210
|
+
'brick.select.name': 'Liste déroulante',
|
|
211
|
+
'brick.multi-select.name': 'Sélection multiple',
|
|
212
|
+
'brick.radio.name': 'Boutons radio',
|
|
213
|
+
'brick.select-boxes.name': 'Cases à cocher',
|
|
214
|
+
'brick.checkbox.name': 'Case à cocher',
|
|
215
|
+
'brick.tags.name': 'Étiquettes',
|
|
216
|
+
'brick.signature.name': 'Signature',
|
|
217
|
+
'brick.data-grid.name': 'Grille de données',
|
|
218
|
+
'brick.address.name': 'Adresse',
|
|
219
|
+
'brick.file.name': 'Fichier',
|
|
220
|
+
'brick.hidden.name': 'Caché',
|
|
221
|
+
'brick.content.name': 'Contenu',
|
|
222
|
+
'brick.group.name': 'Groupe',
|
|
223
|
+
'brick.row.name': 'Ligne',
|
|
224
|
+
'brick.column.name': 'Colonne',
|
|
225
|
+
'brick.stepper.name': 'Étapes',
|
|
226
|
+
'brick.tabs.name': 'Onglets',
|
|
227
|
+
};
|
|
228
|
+
const GLOBAL_KEY = Symbol.for('formkrafter.wc.i18n');
|
|
229
|
+
const globalStore = globalThis;
|
|
230
|
+
const state = ((_a = globalStore[GLOBAL_KEY]) !== null && _a !== void 0 ? _a : (globalStore[GLOBAL_KEY] = { current: Object.assign({}, en) }));
|
|
231
|
+
export function setFkTranslations(overrides = {}) {
|
|
232
|
+
state.current = Object.assign(Object.assign({}, en), overrides);
|
|
233
|
+
}
|
|
234
|
+
export function fkT(key, params) {
|
|
235
|
+
var _a;
|
|
236
|
+
let text = (_a = state.current[key]) !== null && _a !== void 0 ? _a : key;
|
|
237
|
+
for (const [name, value] of Object.entries(params !== null && params !== void 0 ? params : {})) {
|
|
238
|
+
text = text.replace(`{${name}}`, String(value));
|
|
239
|
+
}
|
|
240
|
+
return text;
|
|
241
|
+
}
|
|
242
|
+
export function fkTOr(key, fallback) {
|
|
243
|
+
var _a;
|
|
244
|
+
return (_a = state.current[key]) !== null && _a !== void 0 ? _a : fallback;
|
|
245
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { h } from '@stencil/core';
|
|
2
|
+
export { registerBrick, registerBricks, getBrick, getBrickMolds, getBrickMoldsGroupedByCategory, newBrickSpec, } from './registry/registry';
|
|
3
|
+
export { createBrick } from './registry/create-brick';
|
|
4
|
+
export { registerDefaultBricks, textInputBrick, emailBrick, passwordBrick, urlBrick, phoneBrick, textareaBrick, numberBrick, dateBrick, timeBrick, datetimeBrick, selectBrick, multiSelectBrick, radioBrick, selectBoxesBrick, checkboxBrick, tagsBrick, signatureBrick, addressBrick, fileBrick, dataGridBrick, hiddenBrick, contentBrick, groupBrick, rowBrick, columnBrick, stepperBrick, tabsBrick, } from './registry/default-bricks';
|
|
5
|
+
export { setFkTranslations, fkT, fkTOr, frFkTranslations } from './i18n/i18n';
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Brick } from "@streamline-pulse/formkrafter-core";
|
|
2
|
+
export function createBrick(params) {
|
|
3
|
+
return new (class extends Brick {
|
|
4
|
+
constructor() {
|
|
5
|
+
var _a;
|
|
6
|
+
super({
|
|
7
|
+
type: params.type,
|
|
8
|
+
dataType: params.dataType,
|
|
9
|
+
id: params.id,
|
|
10
|
+
name: params.name,
|
|
11
|
+
category: params.category,
|
|
12
|
+
configsForm: params.configsForm,
|
|
13
|
+
styles: (_a = params.styles) !== null && _a !== void 0 ? _a : {},
|
|
14
|
+
validators: params.validators,
|
|
15
|
+
unWrapData: params.unWrapData,
|
|
16
|
+
isPrivate: params.isPrivate,
|
|
17
|
+
defaultConfigs: params.defaultConfigs,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
render(props) {
|
|
21
|
+
return params.render(props);
|
|
22
|
+
}
|
|
23
|
+
renderBuilder(props) {
|
|
24
|
+
var _a;
|
|
25
|
+
return ((_a = params.renderBuilder) !== null && _a !== void 0 ? _a : params.render)(props);
|
|
26
|
+
}
|
|
27
|
+
getComponent(props) {
|
|
28
|
+
return this.render(props);
|
|
29
|
+
}
|
|
30
|
+
getComponentWithActions(props) {
|
|
31
|
+
return this.renderBuilder(props);
|
|
32
|
+
}
|
|
33
|
+
})();
|
|
34
|
+
}
|