@streamline-pulse/formkrafter-wc 0.2.0 → 0.4.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.
Files changed (161) hide show
  1. package/README.md +10 -8
  2. package/dist/components/fk-brick-actions.js +1 -1
  3. package/dist/components/fk-brick-list.js +1 -1
  4. package/dist/components/fk-brick-mold-item.js +1 -1
  5. package/dist/components/fk-brick-not-found.js +1 -1
  6. package/dist/components/fk-brick-render.js +1 -1
  7. package/dist/components/fk-code-editor.js +1 -1
  8. package/dist/components/fk-data-grid.js +1 -1
  9. package/dist/components/fk-drop-area.js +1 -1
  10. package/dist/components/fk-empty-form.js +1 -1
  11. package/dist/components/fk-file-input.js +1 -1
  12. package/dist/components/fk-form-builder.js +1 -1
  13. package/dist/components/fk-form-render.js +1 -1
  14. package/dist/components/fk-property-panel.js +1 -1
  15. package/dist/components/fk-rules-editor.js +1 -1
  16. package/dist/components/fk-select-input.js +1 -1
  17. package/dist/components/fk-signature-input.js +1 -1
  18. package/dist/components/fk-stepper.js +1 -1
  19. package/dist/components/fk-tabs.js +1 -1
  20. package/dist/components/index.js +1 -1
  21. package/dist/components/{p-LXnm2ogM.js → p-28GBFlUX.js} +4 -4
  22. package/dist/components/p-BB4Llg42.js +1 -0
  23. package/dist/components/p-BGxmFcpL.js +1 -0
  24. package/dist/components/{p-BVBfbMl_.js → p-BInUBjyw.js} +1 -1
  25. package/dist/components/p-BietHxaT.js +1 -0
  26. package/dist/components/{p-C85zhhpr.js → p-BnzSarwW.js} +1 -1
  27. package/dist/components/p-BpkKcCCr.js +1 -0
  28. package/dist/components/p-C0Y8qh8R.js +1 -0
  29. package/dist/components/p-C5OWoRhO.js +1 -0
  30. package/dist/components/p-CKs1CWVz.js +1 -0
  31. package/dist/components/{p-BSPTuA1p.js → p-CZHykCYD.js} +1 -1
  32. package/dist/components/p-CehxuHtl.js +1 -0
  33. package/dist/components/p-CqVSd56Z.js +1 -0
  34. package/dist/components/p-CyZA17qf.js +1 -0
  35. package/dist/components/p-D4HhZxQ-.js +1 -0
  36. package/dist/components/p-DC6Wxbnz.js +1 -0
  37. package/dist/components/p-DRNycSdI.js +1 -0
  38. package/dist/components/{p-B0YjIsVn.js → p-Dh5Z49YD.js} +1 -1
  39. package/dist/components/p-DiOstAi9.js +1 -0
  40. package/dist/components/p-DlqnIm46.js +1 -0
  41. package/dist/components/{p-BDvqHJih.js → p-DshUS8Zm.js} +1 -1
  42. package/dist/components/p-DtcM1yw5.js +1 -0
  43. package/dist/components/p-NDbmiiYk.js +1 -0
  44. package/dist/components/p-RzeBwfwG.js +1 -0
  45. package/dist/components/p-ajy8ZcBX.js +1 -0
  46. package/dist/components/p-kYG3E0GQ.js +1 -0
  47. package/dist/components/p-tTJg_I4V.js +1 -0
  48. package/dist/formkrafter-wc/formkrafter-wc.css +1 -1
  49. package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
  50. package/dist/formkrafter-wc/index.esm.js +1 -1
  51. package/dist/formkrafter-wc/p-3579150a.entry.js +1 -0
  52. package/dist/formkrafter-wc/p-8b0ff66e.entry.js +1 -0
  53. package/dist/formkrafter-wc/p-BHZMDq2e.js +1 -0
  54. package/dist/formkrafter-wc/p-BietHxaT.js +1 -0
  55. package/dist/formkrafter-wc/p-C0Y8qh8R.js +1 -0
  56. package/dist/formkrafter-wc/p-CehxuHtl.js +1 -0
  57. package/dist/formkrafter-wc/p-DlqnIm46.js +1 -0
  58. package/dist/formkrafter-wc/p-DtcM1yw5.js +1 -0
  59. package/dist/formkrafter-wc/p-RzeBwfwG.js +1 -0
  60. package/dist/formkrafter-wc/p-WWmY5Z05.js +1 -0
  61. package/dist/formkrafter-wc/p-hcT25XX4.js +12 -0
  62. package/dist/formkrafter-wc/p-qLZlXROB.js +2 -0
  63. package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +3 -1
  64. package/dist/types/components/fk-data-grid/fk-data-grid.d.ts +1 -0
  65. package/dist/types/components/fk-drop-area/fk-drop-area.d.ts +1 -0
  66. package/dist/types/components/fk-file-input/fk-file-input.d.ts +7 -3
  67. package/dist/types/components/fk-form-render/fk-form-render.d.ts +7 -1
  68. package/dist/types/components/fk-select-input/fk-select-input.d.ts +9 -0
  69. package/dist/types/components.d.ts +39 -4
  70. package/dist/types/index.d.ts +1 -1
  71. package/dist/types/registry/default-bricks.d.ts +36 -0
  72. package/dist/types/utils/mask.d.ts +1 -0
  73. package/package.json +10 -15
  74. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  75. package/dist/cjs/fk-brick-actions_18.cjs.entry.js +0 -26443
  76. package/dist/cjs/formkrafter-wc.cjs.js +0 -25
  77. package/dist/cjs/index-Can2MpG5.js +0 -17538
  78. package/dist/cjs/index-CbyFxLc_.js +0 -2114
  79. package/dist/cjs/index.cjs.js +0 -48
  80. package/dist/cjs/loader.cjs.js +0 -13
  81. package/dist/collection/collection-manifest.json +0 -30
  82. package/dist/collection/components/fk-brick-actions/fk-brick-actions.css +0 -78
  83. package/dist/collection/components/fk-brick-actions/fk-brick-actions.js +0 -215
  84. package/dist/collection/components/fk-brick-list/fk-brick-list.css +0 -71
  85. package/dist/collection/components/fk-brick-list/fk-brick-list.js +0 -55
  86. package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.css +0 -33
  87. package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.js +0 -73
  88. package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.css +0 -8
  89. package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.js +0 -18
  90. package/dist/collection/components/fk-brick-render/fk-brick-render.js +0 -447
  91. package/dist/collection/components/fk-code-editor/fk-code-editor.css +0 -26
  92. package/dist/collection/components/fk-code-editor/fk-code-editor.js +0 -136
  93. package/dist/collection/components/fk-data-grid/fk-data-grid.css +0 -75
  94. package/dist/collection/components/fk-data-grid/fk-data-grid.js +0 -300
  95. package/dist/collection/components/fk-drop-area/fk-drop-area.css +0 -18
  96. package/dist/collection/components/fk-drop-area/fk-drop-area.js +0 -98
  97. package/dist/collection/components/fk-empty-form/fk-empty-form.css +0 -22
  98. package/dist/collection/components/fk-empty-form/fk-empty-form.js +0 -19
  99. package/dist/collection/components/fk-file-input/fk-file-input.css +0 -95
  100. package/dist/collection/components/fk-file-input/fk-file-input.js +0 -196
  101. package/dist/collection/components/fk-form-builder/fk-form-builder.css +0 -112
  102. package/dist/collection/components/fk-form-builder/fk-form-builder.js +0 -431
  103. package/dist/collection/components/fk-form-render/fk-form-render.css +0 -7
  104. package/dist/collection/components/fk-form-render/fk-form-render.js +0 -352
  105. package/dist/collection/components/fk-property-panel/fk-property-panel.css +0 -153
  106. package/dist/collection/components/fk-property-panel/fk-property-panel.js +0 -384
  107. package/dist/collection/components/fk-rules-editor/fk-rules-editor.css +0 -166
  108. package/dist/collection/components/fk-rules-editor/fk-rules-editor.js +0 -250
  109. package/dist/collection/components/fk-select-input/fk-select-input.css +0 -144
  110. package/dist/collection/components/fk-select-input/fk-select-input.js +0 -356
  111. package/dist/collection/components/fk-signature-input/fk-signature-input.css +0 -42
  112. package/dist/collection/components/fk-signature-input/fk-signature-input.js +0 -158
  113. package/dist/collection/components/fk-stepper/fk-stepper.css +0 -85
  114. package/dist/collection/components/fk-stepper/fk-stepper.js +0 -282
  115. package/dist/collection/components/fk-tabs/fk-tabs.css +0 -38
  116. package/dist/collection/components/fk-tabs/fk-tabs.js +0 -236
  117. package/dist/collection/i18n/i18n.js +0 -257
  118. package/dist/collection/index.js +0 -5
  119. package/dist/collection/registry/create-brick.js +0 -34
  120. package/dist/collection/registry/default-bricks.js +0 -562
  121. package/dist/collection/registry/registry.js +0 -44
  122. package/dist/collection/utils/brick-data.js +0 -16
  123. package/dist/collection/utils/drop.js +0 -14
  124. package/dist/collection/utils/events.js +0 -1
  125. package/dist/collection/utils/options.js +0 -21
  126. package/dist/collection/utils/remote.js +0 -27
  127. package/dist/collection/utils/rule-condition.js +0 -72
  128. package/dist/collection/utils/style.js +0 -11
  129. package/dist/components/p-B1t0M_hN.js +0 -1
  130. package/dist/components/p-B21cOFRx.js +0 -1
  131. package/dist/components/p-B7ED8qMb.js +0 -1
  132. package/dist/components/p-BrOXMyOG.js +0 -1
  133. package/dist/components/p-CMQ_4Zfv.js +0 -1
  134. package/dist/components/p-CWQX0sXS.js +0 -1
  135. package/dist/components/p-CXEvsomA.js +0 -1
  136. package/dist/components/p-Cq9HSEn8.js +0 -1
  137. package/dist/components/p-D7bf2ztq.js +0 -1
  138. package/dist/components/p-DIPoAaGe.js +0 -1
  139. package/dist/components/p-DYBirEew.js +0 -1
  140. package/dist/components/p-DluDp8V5.js +0 -1
  141. package/dist/components/p-Do6-yRva.js +0 -1
  142. package/dist/components/p-GjmAhT2E.js +0 -1
  143. package/dist/components/p-y0xDvzJR.js +0 -1
  144. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  145. package/dist/esm/fk-brick-actions_18.entry.js +0 -26424
  146. package/dist/esm/formkrafter-wc.js +0 -21
  147. package/dist/esm/index-BB2OOj__.js +0 -17478
  148. package/dist/esm/index-DMDO6w5-.js +0 -2105
  149. package/dist/esm/index.js +0 -2
  150. package/dist/esm/loader.js +0 -11
  151. package/dist/formkrafter-wc/p-0de7cbe1.entry.js +0 -1
  152. package/dist/formkrafter-wc/p-Bp_A8oL5.js +0 -12
  153. package/dist/formkrafter-wc/p-DMDO6w5-.js +0 -2
  154. package/dist/index.cjs.js +0 -1
  155. package/dist/index.js +0 -1
  156. package/dist/stencil.config.js +0 -34
  157. package/loader/cdn.js +0 -1
  158. package/loader/index.cjs.js +0 -1
  159. package/loader/index.d.ts +0 -24
  160. package/loader/index.es2017.js +0 -1
  161. package/loader/index.js +0 -2
@@ -1,257 +0,0 @@
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.recap.name': 'Recap',
110
- 'recap.empty': 'Nothing to summarize yet.',
111
- 'recap.yes': 'Yes',
112
- 'recap.no': 'No',
113
- 'panel.cfg.showEmpty': 'Show empty fields',
114
- 'panel.cfg.groupBySections': 'Group by section',
115
- 'brick.group.name': 'Group',
116
- 'brick.row.name': 'Row',
117
- 'brick.column.name': 'Column',
118
- 'brick.stepper.name': 'Stepper',
119
- 'brick.tabs.name': 'Tabs',
120
- };
121
- export const frFkTranslations = {
122
- 'palette.search': 'Rechercher une brique…',
123
- 'palette.empty': 'Aucune brique ne correspond à « {query} »',
124
- 'builder.undo': 'Annuler',
125
- 'builder.redo': 'Rétablir',
126
- 'builder.copyJson': 'Copier le JSON',
127
- 'builder.importJson': 'Importer le JSON',
128
- 'builder.importInvalid': 'JSON de formulaire invalide',
129
- 'builder.pasteHint': 'Collez avec Ctrl+V pour importer une spec',
130
- 'builder.copied': 'Copié !',
131
- 'builder.downloadJson': 'Télécharger le .json',
132
- 'builder.hint': 'Sélectionnez une brique pour éditer ses propriétés',
133
- 'drop.hint': 'Déposez une brique ici',
134
- 'empty.title': 'Votre formulaire est vide',
135
- 'empty.hint': 'Glissez une brique depuis la palette pour commencer',
136
- 'actions.move': 'Déplacer',
137
- 'actions.duplicate': 'Dupliquer',
138
- 'actions.delete': 'Supprimer',
139
- 'stepper.back': '← Précédent',
140
- 'stepper.next': 'Suivant →',
141
- 'stepper.submit': 'Envoyer',
142
- 'panel.cfg.validateSteps': 'Valider chaque étape',
143
- 'panel.cfg.allowStepClick': 'Autoriser le saut d’étapes au clic',
144
- 'panel.cfg.showSubmit': 'Bouton d’envoi à la dernière étape',
145
- 'panel.cfg.validateTabs': 'Valider l’onglet avant de le quitter',
146
- 'signature.clear': 'Effacer',
147
- 'panel.tab.config': 'Config',
148
- 'panel.tab.validation': 'Validation',
149
- 'panel.tab.styles': 'Styles',
150
- 'panel.tab.rules': 'Règles',
151
- 'panel.key': 'Clé',
152
- 'panel.label': 'Libellé',
153
- 'panel.placeholder': 'Placeholder',
154
- 'panel.prefix': 'Préfixe',
155
- 'panel.suffix': 'Suffixe',
156
- 'panel.optionsSource': 'Source des options',
157
- 'panel.options': 'Options (une par ligne)',
158
- 'panel.content': 'Contenu',
159
- 'panel.dataKey': 'Clé de données',
160
- 'panel.url': 'URL',
161
- 'panel.headers': 'En-têtes ({token} lit les données du formulaire)',
162
- 'panel.searchParam': 'Paramètre de recherche serveur',
163
- 'panel.labelKey': 'Clé du libellé',
164
- 'panel.valueKey': 'Clé de la valeur',
165
- 'panel.errorMessage': "Message d'erreur",
166
- 'panel.required': 'Obligatoire',
167
- 'panel.minLength': 'Longueur min',
168
- 'panel.maxLength': 'Longueur max',
169
- 'panel.min': 'Min',
170
- 'panel.max': 'Max',
171
- 'panel.pattern': 'Motif (regex)',
172
- 'panel.minItems': 'Éléments min',
173
- 'panel.maxItems': 'Éléments max',
174
- 'panel.emailFormat': 'Format email',
175
- 'panel.urlFormat': 'Format URL',
176
- 'panel.custom': 'Personnalisé (JavaScript)',
177
- 'panel.fallbackMessage': 'Message par défaut',
178
- 'panel.styleProperty': 'propriété',
179
- 'panel.styleValue': 'valeur',
180
- 'file.choose': 'Choisir un fichier…',
181
- 'file.uploading': 'Envoi en cours…',
182
- 'file.remove': 'Retirer le fichier',
183
- 'address.street': 'Rue',
184
- 'address.city': 'Ville',
185
- 'address.zip': 'Code postal',
186
- 'address.country': 'Pays',
187
- 'grid.addRow': '+ Ajouter une ligne',
188
- 'grid.removeRow': 'Supprimer la ligne',
189
- 'grid.empty': 'Aucune ligne',
190
- 'grid.columns': 'Modèle de ligne',
191
- 'select.search': 'Rechercher…',
192
- 'select.empty': 'Aucune option',
193
- 'select.clear': 'Effacer',
194
- 'rules.when': 'Quand',
195
- 'rules.then': 'Alors',
196
- 'rules.addRule': '+ Ajouter une règle',
197
- 'rules.addEffect': '+ Effet',
198
- 'rules.removeRule': 'Supprimer la règle',
199
- 'rules.removeEffect': "Supprimer l'effet",
200
- 'rules.mode.simple': 'simple',
201
- 'rules.mode.json': 'json',
202
- 'rules.mode.js': 'JS',
203
- 'category.Inputs': 'Champs',
204
- 'category.Layout': 'Mise en page',
205
- 'category.Data': 'Données',
206
- 'brick.text.name': 'Texte',
207
- 'brick.email.name': 'Email',
208
- 'brick.password.name': 'Mot de passe',
209
- 'brick.url.name': 'URL',
210
- 'brick.phone.name': 'Téléphone',
211
- 'brick.textarea.name': 'Zone de texte',
212
- 'brick.number.name': 'Nombre',
213
- 'brick.date.name': 'Date',
214
- 'brick.time.name': 'Heure',
215
- 'brick.datetime.name': 'Date / Heure',
216
- 'brick.select.name': 'Liste déroulante',
217
- 'brick.multi-select.name': 'Sélection multiple',
218
- 'brick.radio.name': 'Boutons radio',
219
- 'brick.select-boxes.name': 'Cases à cocher',
220
- 'brick.checkbox.name': 'Case à cocher',
221
- 'brick.tags.name': 'Étiquettes',
222
- 'brick.signature.name': 'Signature',
223
- 'brick.data-grid.name': 'Grille de données',
224
- 'brick.address.name': 'Adresse',
225
- 'brick.file.name': 'Fichier',
226
- 'brick.hidden.name': 'Caché',
227
- 'brick.content.name': 'Contenu',
228
- 'brick.recap.name': 'Récapitulatif',
229
- 'recap.empty': 'Rien à récapituler pour le moment.',
230
- 'recap.yes': 'Oui',
231
- 'recap.no': 'Non',
232
- 'panel.cfg.showEmpty': 'Afficher les champs vides',
233
- 'panel.cfg.groupBySections': 'Regrouper par section',
234
- 'brick.group.name': 'Groupe',
235
- 'brick.row.name': 'Ligne',
236
- 'brick.column.name': 'Colonne',
237
- 'brick.stepper.name': 'Étapes',
238
- 'brick.tabs.name': 'Onglets',
239
- };
240
- const GLOBAL_KEY = Symbol.for('formkrafter.wc.i18n');
241
- const globalStore = globalThis;
242
- const state = ((_a = globalStore[GLOBAL_KEY]) !== null && _a !== void 0 ? _a : (globalStore[GLOBAL_KEY] = { current: Object.assign({}, en) }));
243
- export function setFkTranslations(overrides = {}) {
244
- state.current = Object.assign(Object.assign({}, en), overrides);
245
- }
246
- export function fkT(key, params) {
247
- var _a;
248
- let text = (_a = state.current[key]) !== null && _a !== void 0 ? _a : key;
249
- for (const [name, value] of Object.entries(params !== null && params !== void 0 ? params : {})) {
250
- text = text.replace(`{${name}}`, String(value));
251
- }
252
- return text;
253
- }
254
- export function fkTOr(key, fallback) {
255
- var _a;
256
- return (_a = state.current[key]) !== null && _a !== void 0 ? _a : fallback;
257
- }
@@ -1,5 +0,0 @@
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, recapBrick, groupBrick, rowBrick, columnBrick, stepperBrick, tabsBrick, } from './registry/default-bricks';
5
- export { setFkTranslations, fkT, fkTOr, frFkTranslations } from './i18n/i18n';
@@ -1,34 +0,0 @@
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
- }