@streamline-pulse/formkrafter-wc 0.1.1 → 0.3.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/README.md +3 -3
- package/dist/cjs/fk-brick-actions_18.cjs.entry.js +258 -22476
- package/dist/cjs/formkrafter-wc.cjs.js +2 -2
- package/dist/cjs/index-Bhy1RJMV.js +3042 -0
- package/dist/cjs/{index-D_7eGIJ0.js → index-CImTe9BG.js} +40 -4
- package/dist/cjs/index-CdaT3-qx.js +5444 -0
- package/dist/cjs/{index-By4GGW_q.js → index-CkPPRg03.js} +237 -35
- package/dist/cjs/index-DHgK3reD.js +12233 -0
- package/dist/cjs/index-Ds0sDbXV.js +4019 -0
- package/dist/cjs/index-c9BL7y3N.js +1922 -0
- package/dist/cjs/index.cjs.js +3 -2
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/components/fk-brick-render/fk-brick-render.js +31 -3
- package/dist/collection/components/fk-code-editor/fk-code-editor.js +17 -8
- package/dist/collection/components/fk-file-input/fk-file-input.css +26 -5
- package/dist/collection/components/fk-file-input/fk-file-input.js +96 -14
- package/dist/collection/components/fk-form-builder/fk-form-builder.css +30 -0
- package/dist/collection/components/fk-form-render/fk-form-render.js +1 -1
- package/dist/collection/components/fk-property-panel/fk-property-panel.js +5 -1
- package/dist/collection/components/fk-select-input/fk-select-input.css +9 -0
- package/dist/collection/components/fk-select-input/fk-select-input.js +118 -20
- package/dist/collection/components/fk-stepper/fk-stepper.css +14 -0
- package/dist/collection/components/fk-stepper/fk-stepper.js +4 -1
- package/dist/collection/components/fk-tabs/fk-tabs.js +15 -2
- package/dist/collection/i18n/i18n.js +20 -0
- package/dist/collection/index.js +1 -1
- package/dist/collection/registry/default-bricks.js +174 -34
- package/dist/components/fk-brick-actions.js +1 -1
- package/dist/components/fk-brick-list.js +1 -1
- package/dist/components/fk-brick-mold-item.js +1 -1
- package/dist/components/fk-brick-not-found.js +1 -1
- package/dist/components/fk-brick-render.js +1 -1
- package/dist/components/fk-code-editor.js +1 -1
- package/dist/components/fk-data-grid.js +1 -1
- package/dist/components/fk-drop-area.js +1 -1
- package/dist/components/fk-empty-form.js +1 -1
- package/dist/components/fk-file-input.js +1 -1
- package/dist/components/fk-form-builder.js +1 -1
- package/dist/components/fk-form-render.js +1 -1
- package/dist/components/fk-property-panel.js +1 -1
- package/dist/components/fk-rules-editor.js +1 -1
- package/dist/components/fk-select-input.js +1 -1
- package/dist/components/fk-signature-input.js +1 -1
- package/dist/components/fk-stepper.js +1 -1
- package/dist/components/fk-tabs.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/{p-B4vAN-UA.js → p--vL6GR31.js} +1 -1
- package/dist/components/p-4COASNrZ.js +1 -0
- package/dist/components/p-BB4Llg42.js +1 -0
- package/dist/components/p-BGkZP87K.js +1 -0
- package/dist/components/p-BOmBVgfJ.js +1 -0
- package/dist/components/p-BWdm2a6q.js +1 -0
- package/dist/components/{p-D318uFl-.js → p-B_-x-GlA.js} +1 -1
- package/dist/components/p-Br1s4Ujx.js +1 -0
- package/dist/components/p-C-wnqV3i.js +1 -0
- package/dist/components/{p-ZEW2q-4b.js → p-CIfjRTky.js} +1 -1
- package/dist/components/{p-dX7Lo8Fe.js → p-CKMHMpID.js} +1 -1
- package/dist/components/p-CUF31e-P.js +1 -0
- package/dist/components/p-CWQX0sXS.js +1 -0
- package/dist/components/p-D6n74M9d.js +1 -0
- package/dist/components/{p-DJDrDvoC.js → p-DFe3zZCI.js} +1 -1
- package/dist/components/p-DMCkrZqi.js +1 -0
- package/dist/components/p-DOInQkG6.js +1 -0
- package/dist/components/{p-BNREw7TY.js → p-DYchD23x.js} +1 -1
- package/dist/components/p-DtcM1yw5.js +1 -0
- package/dist/components/{p-BB3BQPr8.js → p-NDbmiiYk.js} +1 -1
- package/dist/components/p-PAr7WoWG.js +1 -0
- package/dist/components/{p-Ctt--jpe.js → p-YyGnQmX-.js} +1 -1
- package/dist/components/{p-DtzMNM4i.js → p-fDJP6whN.js} +1 -1
- package/dist/components/p-swxZqinH.js +1 -0
- package/dist/components/{p-BXFug2Ql.js → p-v7LxwCAc.js} +1 -1
- package/dist/components/p-wuC5rVU7.js +1 -0
- package/dist/esm/fk-brick-actions_18.entry.js +254 -22472
- package/dist/esm/formkrafter-wc.js +3 -3
- package/dist/esm/index-BAcz7b5u.js +5416 -0
- package/dist/esm/index-BkRMoLXK.js +3029 -0
- package/dist/esm/index-CGMDfZ5m.js +1808 -0
- package/dist/esm/{index-BTmZ8XET.js → index-D7Cta1UB.js} +236 -36
- package/dist/esm/index-DtcM1yw5.js +3991 -0
- package/dist/esm/index-DuVf3NlP.js +12222 -0
- package/dist/esm/{index-BQqrzKxo.js → index-qLZlXROB.js} +40 -4
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +3 -3
- package/dist/formkrafter-wc/formkrafter-wc.css +1 -1
- package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
- package/dist/formkrafter-wc/index.esm.js +1 -1
- package/dist/formkrafter-wc/p-4COASNrZ.js +1 -0
- package/dist/formkrafter-wc/p-6d29555b.entry.js +1 -0
- package/dist/formkrafter-wc/p-C-wnqV3i.js +1 -0
- package/dist/formkrafter-wc/p-DMCkrZqi.js +1 -0
- package/dist/formkrafter-wc/p-DOInQkG6.js +1 -0
- package/dist/formkrafter-wc/{p-BXIsVlA6.js → p-Ddu6BquK.js} +4 -4
- package/dist/formkrafter-wc/p-DtcM1yw5.js +1 -0
- package/dist/formkrafter-wc/p-qLZlXROB.js +2 -0
- package/dist/types/components/fk-brick-render/fk-brick-render.d.ts +1 -0
- package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +2 -1
- package/dist/types/components/fk-file-input/fk-file-input.d.ts +9 -2
- package/dist/types/components/fk-select-input/fk-select-input.d.ts +9 -0
- package/dist/types/components.d.ts +27 -4
- package/dist/types/home/runner/work/formkrafter/formkrafter/packages/wc/.stencil/stencil.config.d.ts +2 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/registry/default-bricks.d.ts +73 -54
- package/package.json +11 -2
- package/dist/components/p-BCQ-hj6j.js +0 -1
- package/dist/components/p-BIEpAM4V.js +0 -1
- package/dist/components/p-BLKRn62s.js +0 -1
- package/dist/components/p-BOvjVIvo.js +0 -1
- package/dist/components/p-BQP1WryV.js +0 -1
- package/dist/components/p-DKGyje7v.js +0 -1
- package/dist/components/p-DKoJovNt.js +0 -1
- package/dist/components/p-DWgjI3TW.js +0 -1
- package/dist/components/p-QC41Uj05.js +0 -1
- package/dist/components/p-TvmRksgg.js +0 -1
- package/dist/formkrafter-wc/p-BQqrzKxo.js +0 -2
- package/dist/formkrafter-wc/p-f6bc0be0.entry.js +0 -1
- package/dist/types/Users/datagnikan/Desktop/WorkSpace/streamline-pulse/formkrafter-js/formkrafter/packages/wc/.stencil/stencil.config.d.ts +0 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { VNode } from '../stencil-public-runtime';
|
|
2
|
+
import type { BrickSpec } from '@streamline-pulse/formkrafter-core';
|
|
2
3
|
import type { WcBrickProps } from './create-brick';
|
|
3
4
|
export declare const textInputBrick: {
|
|
4
5
|
render(props: WcBrickProps): VNode;
|
|
@@ -9,14 +10,14 @@ export declare const textInputBrick: {
|
|
|
9
10
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
10
11
|
readonly id: string;
|
|
11
12
|
readonly name: string;
|
|
12
|
-
readonly configsForm?:
|
|
13
|
+
readonly configsForm?: BrickSpec;
|
|
13
14
|
readonly category?: string;
|
|
14
15
|
readonly styles?: Record<string, unknown>;
|
|
15
16
|
readonly unWrapData: boolean;
|
|
16
17
|
readonly isPrivate: boolean;
|
|
17
18
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
18
19
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
19
|
-
getBrickEmptySpec():
|
|
20
|
+
getBrickEmptySpec(): BrickSpec;
|
|
20
21
|
};
|
|
21
22
|
export declare const emailBrick: {
|
|
22
23
|
render(props: WcBrickProps): VNode;
|
|
@@ -27,14 +28,14 @@ export declare const emailBrick: {
|
|
|
27
28
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
28
29
|
readonly id: string;
|
|
29
30
|
readonly name: string;
|
|
30
|
-
readonly configsForm?:
|
|
31
|
+
readonly configsForm?: BrickSpec;
|
|
31
32
|
readonly category?: string;
|
|
32
33
|
readonly styles?: Record<string, unknown>;
|
|
33
34
|
readonly unWrapData: boolean;
|
|
34
35
|
readonly isPrivate: boolean;
|
|
35
36
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
36
37
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
37
|
-
getBrickEmptySpec():
|
|
38
|
+
getBrickEmptySpec(): BrickSpec;
|
|
38
39
|
};
|
|
39
40
|
export declare const passwordBrick: {
|
|
40
41
|
render(props: WcBrickProps): VNode;
|
|
@@ -45,14 +46,14 @@ export declare const passwordBrick: {
|
|
|
45
46
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
46
47
|
readonly id: string;
|
|
47
48
|
readonly name: string;
|
|
48
|
-
readonly configsForm?:
|
|
49
|
+
readonly configsForm?: BrickSpec;
|
|
49
50
|
readonly category?: string;
|
|
50
51
|
readonly styles?: Record<string, unknown>;
|
|
51
52
|
readonly unWrapData: boolean;
|
|
52
53
|
readonly isPrivate: boolean;
|
|
53
54
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
54
55
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
55
|
-
getBrickEmptySpec():
|
|
56
|
+
getBrickEmptySpec(): BrickSpec;
|
|
56
57
|
};
|
|
57
58
|
export declare const urlBrick: {
|
|
58
59
|
render(props: WcBrickProps): VNode;
|
|
@@ -63,14 +64,14 @@ export declare const urlBrick: {
|
|
|
63
64
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
64
65
|
readonly id: string;
|
|
65
66
|
readonly name: string;
|
|
66
|
-
readonly configsForm?:
|
|
67
|
+
readonly configsForm?: BrickSpec;
|
|
67
68
|
readonly category?: string;
|
|
68
69
|
readonly styles?: Record<string, unknown>;
|
|
69
70
|
readonly unWrapData: boolean;
|
|
70
71
|
readonly isPrivate: boolean;
|
|
71
72
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
72
73
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
73
|
-
getBrickEmptySpec():
|
|
74
|
+
getBrickEmptySpec(): BrickSpec;
|
|
74
75
|
};
|
|
75
76
|
export declare const phoneBrick: {
|
|
76
77
|
render(props: WcBrickProps): VNode;
|
|
@@ -81,14 +82,14 @@ export declare const phoneBrick: {
|
|
|
81
82
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
82
83
|
readonly id: string;
|
|
83
84
|
readonly name: string;
|
|
84
|
-
readonly configsForm?:
|
|
85
|
+
readonly configsForm?: BrickSpec;
|
|
85
86
|
readonly category?: string;
|
|
86
87
|
readonly styles?: Record<string, unknown>;
|
|
87
88
|
readonly unWrapData: boolean;
|
|
88
89
|
readonly isPrivate: boolean;
|
|
89
90
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
90
91
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
91
|
-
getBrickEmptySpec():
|
|
92
|
+
getBrickEmptySpec(): BrickSpec;
|
|
92
93
|
};
|
|
93
94
|
export declare const textareaBrick: {
|
|
94
95
|
render(props: WcBrickProps): VNode;
|
|
@@ -99,14 +100,14 @@ export declare const textareaBrick: {
|
|
|
99
100
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
100
101
|
readonly id: string;
|
|
101
102
|
readonly name: string;
|
|
102
|
-
readonly configsForm?:
|
|
103
|
+
readonly configsForm?: BrickSpec;
|
|
103
104
|
readonly category?: string;
|
|
104
105
|
readonly styles?: Record<string, unknown>;
|
|
105
106
|
readonly unWrapData: boolean;
|
|
106
107
|
readonly isPrivate: boolean;
|
|
107
108
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
108
109
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
109
|
-
getBrickEmptySpec():
|
|
110
|
+
getBrickEmptySpec(): BrickSpec;
|
|
110
111
|
};
|
|
111
112
|
export declare const numberBrick: {
|
|
112
113
|
render(props: WcBrickProps): VNode;
|
|
@@ -117,14 +118,14 @@ export declare const numberBrick: {
|
|
|
117
118
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
118
119
|
readonly id: string;
|
|
119
120
|
readonly name: string;
|
|
120
|
-
readonly configsForm?:
|
|
121
|
+
readonly configsForm?: BrickSpec;
|
|
121
122
|
readonly category?: string;
|
|
122
123
|
readonly styles?: Record<string, unknown>;
|
|
123
124
|
readonly unWrapData: boolean;
|
|
124
125
|
readonly isPrivate: boolean;
|
|
125
126
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
126
127
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
127
|
-
getBrickEmptySpec():
|
|
128
|
+
getBrickEmptySpec(): BrickSpec;
|
|
128
129
|
};
|
|
129
130
|
export declare const dateBrick: {
|
|
130
131
|
render(props: WcBrickProps): VNode;
|
|
@@ -135,14 +136,14 @@ export declare const dateBrick: {
|
|
|
135
136
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
136
137
|
readonly id: string;
|
|
137
138
|
readonly name: string;
|
|
138
|
-
readonly configsForm?:
|
|
139
|
+
readonly configsForm?: BrickSpec;
|
|
139
140
|
readonly category?: string;
|
|
140
141
|
readonly styles?: Record<string, unknown>;
|
|
141
142
|
readonly unWrapData: boolean;
|
|
142
143
|
readonly isPrivate: boolean;
|
|
143
144
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
144
145
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
145
|
-
getBrickEmptySpec():
|
|
146
|
+
getBrickEmptySpec(): BrickSpec;
|
|
146
147
|
};
|
|
147
148
|
export declare const selectBrick: {
|
|
148
149
|
render(props: WcBrickProps): VNode;
|
|
@@ -153,14 +154,14 @@ export declare const selectBrick: {
|
|
|
153
154
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
154
155
|
readonly id: string;
|
|
155
156
|
readonly name: string;
|
|
156
|
-
readonly configsForm?:
|
|
157
|
+
readonly configsForm?: BrickSpec;
|
|
157
158
|
readonly category?: string;
|
|
158
159
|
readonly styles?: Record<string, unknown>;
|
|
159
160
|
readonly unWrapData: boolean;
|
|
160
161
|
readonly isPrivate: boolean;
|
|
161
162
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
162
163
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
163
|
-
getBrickEmptySpec():
|
|
164
|
+
getBrickEmptySpec(): BrickSpec;
|
|
164
165
|
};
|
|
165
166
|
export declare const multiSelectBrick: {
|
|
166
167
|
render(props: WcBrickProps): VNode;
|
|
@@ -171,14 +172,14 @@ export declare const multiSelectBrick: {
|
|
|
171
172
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
172
173
|
readonly id: string;
|
|
173
174
|
readonly name: string;
|
|
174
|
-
readonly configsForm?:
|
|
175
|
+
readonly configsForm?: BrickSpec;
|
|
175
176
|
readonly category?: string;
|
|
176
177
|
readonly styles?: Record<string, unknown>;
|
|
177
178
|
readonly unWrapData: boolean;
|
|
178
179
|
readonly isPrivate: boolean;
|
|
179
180
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
180
181
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
181
|
-
getBrickEmptySpec():
|
|
182
|
+
getBrickEmptySpec(): BrickSpec;
|
|
182
183
|
};
|
|
183
184
|
export declare const timeBrick: {
|
|
184
185
|
render(props: WcBrickProps): VNode;
|
|
@@ -189,14 +190,14 @@ export declare const timeBrick: {
|
|
|
189
190
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
190
191
|
readonly id: string;
|
|
191
192
|
readonly name: string;
|
|
192
|
-
readonly configsForm?:
|
|
193
|
+
readonly configsForm?: BrickSpec;
|
|
193
194
|
readonly category?: string;
|
|
194
195
|
readonly styles?: Record<string, unknown>;
|
|
195
196
|
readonly unWrapData: boolean;
|
|
196
197
|
readonly isPrivate: boolean;
|
|
197
198
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
198
199
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
199
|
-
getBrickEmptySpec():
|
|
200
|
+
getBrickEmptySpec(): BrickSpec;
|
|
200
201
|
};
|
|
201
202
|
export declare const datetimeBrick: {
|
|
202
203
|
render(props: WcBrickProps): VNode;
|
|
@@ -207,14 +208,14 @@ export declare const datetimeBrick: {
|
|
|
207
208
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
208
209
|
readonly id: string;
|
|
209
210
|
readonly name: string;
|
|
210
|
-
readonly configsForm?:
|
|
211
|
+
readonly configsForm?: BrickSpec;
|
|
211
212
|
readonly category?: string;
|
|
212
213
|
readonly styles?: Record<string, unknown>;
|
|
213
214
|
readonly unWrapData: boolean;
|
|
214
215
|
readonly isPrivate: boolean;
|
|
215
216
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
216
217
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
217
|
-
getBrickEmptySpec():
|
|
218
|
+
getBrickEmptySpec(): BrickSpec;
|
|
218
219
|
};
|
|
219
220
|
export declare const selectBoxesBrick: {
|
|
220
221
|
render(props: WcBrickProps): VNode;
|
|
@@ -225,14 +226,14 @@ export declare const selectBoxesBrick: {
|
|
|
225
226
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
226
227
|
readonly id: string;
|
|
227
228
|
readonly name: string;
|
|
228
|
-
readonly configsForm?:
|
|
229
|
+
readonly configsForm?: BrickSpec;
|
|
229
230
|
readonly category?: string;
|
|
230
231
|
readonly styles?: Record<string, unknown>;
|
|
231
232
|
readonly unWrapData: boolean;
|
|
232
233
|
readonly isPrivate: boolean;
|
|
233
234
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
234
235
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
235
|
-
getBrickEmptySpec():
|
|
236
|
+
getBrickEmptySpec(): BrickSpec;
|
|
236
237
|
};
|
|
237
238
|
export declare const tagsBrick: {
|
|
238
239
|
render(props: WcBrickProps): VNode;
|
|
@@ -243,14 +244,14 @@ export declare const tagsBrick: {
|
|
|
243
244
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
244
245
|
readonly id: string;
|
|
245
246
|
readonly name: string;
|
|
246
|
-
readonly configsForm?:
|
|
247
|
+
readonly configsForm?: BrickSpec;
|
|
247
248
|
readonly category?: string;
|
|
248
249
|
readonly styles?: Record<string, unknown>;
|
|
249
250
|
readonly unWrapData: boolean;
|
|
250
251
|
readonly isPrivate: boolean;
|
|
251
252
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
252
253
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
253
|
-
getBrickEmptySpec():
|
|
254
|
+
getBrickEmptySpec(): BrickSpec;
|
|
254
255
|
};
|
|
255
256
|
export declare const signatureBrick: {
|
|
256
257
|
render(props: WcBrickProps): VNode;
|
|
@@ -261,14 +262,14 @@ export declare const signatureBrick: {
|
|
|
261
262
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
262
263
|
readonly id: string;
|
|
263
264
|
readonly name: string;
|
|
264
|
-
readonly configsForm?:
|
|
265
|
+
readonly configsForm?: BrickSpec;
|
|
265
266
|
readonly category?: string;
|
|
266
267
|
readonly styles?: Record<string, unknown>;
|
|
267
268
|
readonly unWrapData: boolean;
|
|
268
269
|
readonly isPrivate: boolean;
|
|
269
270
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
270
271
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
271
|
-
getBrickEmptySpec():
|
|
272
|
+
getBrickEmptySpec(): BrickSpec;
|
|
272
273
|
};
|
|
273
274
|
export declare const tabsBrick: {
|
|
274
275
|
render(props: WcBrickProps): VNode;
|
|
@@ -279,14 +280,14 @@ export declare const tabsBrick: {
|
|
|
279
280
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
280
281
|
readonly id: string;
|
|
281
282
|
readonly name: string;
|
|
282
|
-
readonly configsForm?:
|
|
283
|
+
readonly configsForm?: BrickSpec;
|
|
283
284
|
readonly category?: string;
|
|
284
285
|
readonly styles?: Record<string, unknown>;
|
|
285
286
|
readonly unWrapData: boolean;
|
|
286
287
|
readonly isPrivate: boolean;
|
|
287
288
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
288
289
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
289
|
-
getBrickEmptySpec():
|
|
290
|
+
getBrickEmptySpec(): BrickSpec;
|
|
290
291
|
};
|
|
291
292
|
export declare const radioBrick: {
|
|
292
293
|
render(props: WcBrickProps): VNode;
|
|
@@ -297,14 +298,14 @@ export declare const radioBrick: {
|
|
|
297
298
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
298
299
|
readonly id: string;
|
|
299
300
|
readonly name: string;
|
|
300
|
-
readonly configsForm?:
|
|
301
|
+
readonly configsForm?: BrickSpec;
|
|
301
302
|
readonly category?: string;
|
|
302
303
|
readonly styles?: Record<string, unknown>;
|
|
303
304
|
readonly unWrapData: boolean;
|
|
304
305
|
readonly isPrivate: boolean;
|
|
305
306
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
306
307
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
307
|
-
getBrickEmptySpec():
|
|
308
|
+
getBrickEmptySpec(): BrickSpec;
|
|
308
309
|
};
|
|
309
310
|
export declare const addressBrick: {
|
|
310
311
|
render(props: WcBrickProps): VNode;
|
|
@@ -315,14 +316,14 @@ export declare const addressBrick: {
|
|
|
315
316
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
316
317
|
readonly id: string;
|
|
317
318
|
readonly name: string;
|
|
318
|
-
readonly configsForm?:
|
|
319
|
+
readonly configsForm?: BrickSpec;
|
|
319
320
|
readonly category?: string;
|
|
320
321
|
readonly styles?: Record<string, unknown>;
|
|
321
322
|
readonly unWrapData: boolean;
|
|
322
323
|
readonly isPrivate: boolean;
|
|
323
324
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
324
325
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
325
|
-
getBrickEmptySpec():
|
|
326
|
+
getBrickEmptySpec(): BrickSpec;
|
|
326
327
|
};
|
|
327
328
|
export declare const fileBrick: {
|
|
328
329
|
render(props: WcBrickProps): VNode;
|
|
@@ -333,14 +334,14 @@ export declare const fileBrick: {
|
|
|
333
334
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
334
335
|
readonly id: string;
|
|
335
336
|
readonly name: string;
|
|
336
|
-
readonly configsForm?:
|
|
337
|
+
readonly configsForm?: BrickSpec;
|
|
337
338
|
readonly category?: string;
|
|
338
339
|
readonly styles?: Record<string, unknown>;
|
|
339
340
|
readonly unWrapData: boolean;
|
|
340
341
|
readonly isPrivate: boolean;
|
|
341
342
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
342
343
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
343
|
-
getBrickEmptySpec():
|
|
344
|
+
getBrickEmptySpec(): BrickSpec;
|
|
344
345
|
};
|
|
345
346
|
export declare const dataGridBrick: {
|
|
346
347
|
render(props: WcBrickProps): VNode;
|
|
@@ -351,14 +352,14 @@ export declare const dataGridBrick: {
|
|
|
351
352
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
352
353
|
readonly id: string;
|
|
353
354
|
readonly name: string;
|
|
354
|
-
readonly configsForm?:
|
|
355
|
+
readonly configsForm?: BrickSpec;
|
|
355
356
|
readonly category?: string;
|
|
356
357
|
readonly styles?: Record<string, unknown>;
|
|
357
358
|
readonly unWrapData: boolean;
|
|
358
359
|
readonly isPrivate: boolean;
|
|
359
360
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
360
361
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
361
|
-
getBrickEmptySpec():
|
|
362
|
+
getBrickEmptySpec(): BrickSpec;
|
|
362
363
|
};
|
|
363
364
|
export declare const hiddenBrick: {
|
|
364
365
|
render(props: WcBrickProps): VNode;
|
|
@@ -369,14 +370,14 @@ export declare const hiddenBrick: {
|
|
|
369
370
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
370
371
|
readonly id: string;
|
|
371
372
|
readonly name: string;
|
|
372
|
-
readonly configsForm?:
|
|
373
|
+
readonly configsForm?: BrickSpec;
|
|
373
374
|
readonly category?: string;
|
|
374
375
|
readonly styles?: Record<string, unknown>;
|
|
375
376
|
readonly unWrapData: boolean;
|
|
376
377
|
readonly isPrivate: boolean;
|
|
377
378
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
378
379
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
379
|
-
getBrickEmptySpec():
|
|
380
|
+
getBrickEmptySpec(): BrickSpec;
|
|
380
381
|
};
|
|
381
382
|
export declare const contentBrick: {
|
|
382
383
|
render(props: WcBrickProps): VNode;
|
|
@@ -387,14 +388,14 @@ export declare const contentBrick: {
|
|
|
387
388
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
388
389
|
readonly id: string;
|
|
389
390
|
readonly name: string;
|
|
390
|
-
readonly configsForm?:
|
|
391
|
+
readonly configsForm?: BrickSpec;
|
|
391
392
|
readonly category?: string;
|
|
392
393
|
readonly styles?: Record<string, unknown>;
|
|
393
394
|
readonly unWrapData: boolean;
|
|
394
395
|
readonly isPrivate: boolean;
|
|
395
396
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
396
397
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
397
|
-
getBrickEmptySpec():
|
|
398
|
+
getBrickEmptySpec(): BrickSpec;
|
|
398
399
|
};
|
|
399
400
|
export declare const stepperBrick: {
|
|
400
401
|
render(props: WcBrickProps): VNode;
|
|
@@ -405,14 +406,14 @@ export declare const stepperBrick: {
|
|
|
405
406
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
406
407
|
readonly id: string;
|
|
407
408
|
readonly name: string;
|
|
408
|
-
readonly configsForm?:
|
|
409
|
+
readonly configsForm?: BrickSpec;
|
|
409
410
|
readonly category?: string;
|
|
410
411
|
readonly styles?: Record<string, unknown>;
|
|
411
412
|
readonly unWrapData: boolean;
|
|
412
413
|
readonly isPrivate: boolean;
|
|
413
414
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
414
415
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
415
|
-
getBrickEmptySpec():
|
|
416
|
+
getBrickEmptySpec(): BrickSpec;
|
|
416
417
|
};
|
|
417
418
|
export declare const checkboxBrick: {
|
|
418
419
|
render(props: WcBrickProps): VNode;
|
|
@@ -423,14 +424,14 @@ export declare const checkboxBrick: {
|
|
|
423
424
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
424
425
|
readonly id: string;
|
|
425
426
|
readonly name: string;
|
|
426
|
-
readonly configsForm?:
|
|
427
|
+
readonly configsForm?: BrickSpec;
|
|
427
428
|
readonly category?: string;
|
|
428
429
|
readonly styles?: Record<string, unknown>;
|
|
429
430
|
readonly unWrapData: boolean;
|
|
430
431
|
readonly isPrivate: boolean;
|
|
431
432
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
432
433
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
433
|
-
getBrickEmptySpec():
|
|
434
|
+
getBrickEmptySpec(): BrickSpec;
|
|
434
435
|
};
|
|
435
436
|
export declare const groupBrick: {
|
|
436
437
|
render(props: WcBrickProps): VNode;
|
|
@@ -441,14 +442,14 @@ export declare const groupBrick: {
|
|
|
441
442
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
442
443
|
readonly id: string;
|
|
443
444
|
readonly name: string;
|
|
444
|
-
readonly configsForm?:
|
|
445
|
+
readonly configsForm?: BrickSpec;
|
|
445
446
|
readonly category?: string;
|
|
446
447
|
readonly styles?: Record<string, unknown>;
|
|
447
448
|
readonly unWrapData: boolean;
|
|
448
449
|
readonly isPrivate: boolean;
|
|
449
450
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
450
451
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
451
|
-
getBrickEmptySpec():
|
|
452
|
+
getBrickEmptySpec(): BrickSpec;
|
|
452
453
|
};
|
|
453
454
|
export declare const rowBrick: {
|
|
454
455
|
render(props: WcBrickProps): VNode;
|
|
@@ -459,14 +460,14 @@ export declare const rowBrick: {
|
|
|
459
460
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
460
461
|
readonly id: string;
|
|
461
462
|
readonly name: string;
|
|
462
|
-
readonly configsForm?:
|
|
463
|
+
readonly configsForm?: BrickSpec;
|
|
463
464
|
readonly category?: string;
|
|
464
465
|
readonly styles?: Record<string, unknown>;
|
|
465
466
|
readonly unWrapData: boolean;
|
|
466
467
|
readonly isPrivate: boolean;
|
|
467
468
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
468
469
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
469
|
-
getBrickEmptySpec():
|
|
470
|
+
getBrickEmptySpec(): BrickSpec;
|
|
470
471
|
};
|
|
471
472
|
export declare const columnBrick: {
|
|
472
473
|
render(props: WcBrickProps): VNode;
|
|
@@ -477,13 +478,31 @@ export declare const columnBrick: {
|
|
|
477
478
|
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
478
479
|
readonly id: string;
|
|
479
480
|
readonly name: string;
|
|
480
|
-
readonly configsForm?:
|
|
481
|
+
readonly configsForm?: BrickSpec;
|
|
481
482
|
readonly category?: string;
|
|
482
483
|
readonly styles?: Record<string, unknown>;
|
|
483
484
|
readonly unWrapData: boolean;
|
|
484
485
|
readonly isPrivate: boolean;
|
|
485
486
|
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
486
487
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
487
|
-
getBrickEmptySpec():
|
|
488
|
+
getBrickEmptySpec(): BrickSpec;
|
|
489
|
+
};
|
|
490
|
+
export declare const recapBrick: {
|
|
491
|
+
render(props: WcBrickProps): VNode;
|
|
492
|
+
renderBuilder(props: WcBrickProps): VNode;
|
|
493
|
+
getComponent(props: WcBrickProps): VNode;
|
|
494
|
+
getComponentWithActions(props: WcBrickProps): VNode;
|
|
495
|
+
readonly type: import("@streamline-pulse/formkrafter-core").BrickType;
|
|
496
|
+
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
497
|
+
readonly id: string;
|
|
498
|
+
readonly name: string;
|
|
499
|
+
readonly configsForm?: BrickSpec;
|
|
500
|
+
readonly category?: string;
|
|
501
|
+
readonly styles?: Record<string, unknown>;
|
|
502
|
+
readonly unWrapData: boolean;
|
|
503
|
+
readonly isPrivate: boolean;
|
|
504
|
+
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
505
|
+
readonly defaultConfigs?: Record<string, unknown>;
|
|
506
|
+
getBrickEmptySpec(): BrickSpec;
|
|
488
507
|
};
|
|
489
508
|
export declare function registerDefaultBricks(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamline-pulse/formkrafter-wc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "FormKrafter web components (Stencil)",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@codemirror/language": "^6.12.4",
|
|
66
66
|
"@codemirror/state": "^6.7.1",
|
|
67
67
|
"@codemirror/view": "^6.43.6",
|
|
68
|
-
"@streamline-pulse/formkrafter-core": "0.
|
|
68
|
+
"@streamline-pulse/formkrafter-core": "0.3.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@stencil/core": "^4.43.5",
|
|
@@ -76,5 +76,14 @@
|
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|
|
79
|
+
},
|
|
80
|
+
"repository": {
|
|
81
|
+
"type": "git",
|
|
82
|
+
"url": "git+https://github.com/streamline-pulse/formkrafter.git",
|
|
83
|
+
"directory": "packages/wc"
|
|
84
|
+
},
|
|
85
|
+
"homepage": "https://github.com/streamline-pulse/formkrafter/tree/main/packages/wc#readme",
|
|
86
|
+
"bugs": {
|
|
87
|
+
"url": "https://github.com/streamline-pulse/formkrafter/issues"
|
|
79
88
|
}
|
|
80
89
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{t as r,p as t,H as i,c as o,h as a}from"./p-QC41Uj05.js";import{v as s}from"./p-dX7Lo8Fe.js";import{a as d}from"./p-BQP1WryV.js";import{d as e}from"./p-BNREw7TY.js";import{d as c}from"./p-BB3BQPr8.js";import{d as n}from"./p-DKoJovNt.js";import{d as l}from"./p-Ctt--jpe.js";const f=t(class extends i{constructor(r){super(),!1!==r&&this.__registerHost(),this.gridValueChange=o(this,"gridValueChange"),this.disabled=!1,this.touched={},this.addRow=r=>{r.preventDefault(),this.gridValueChange.emit([...this.rows(),{}])}}rows(){return Array.isArray(this.value)?this.value:[]}rowSpec(){var r,t;return(null===(r=this.rowSpecCache)||void 0===r?void 0:r.source)!==this.spec&&(this.rowSpecCache={source:this.spec,rowSpec:{type:"panel",id:"grid-row",name:"Row",configs:{key:"row"},children:null!==(t=this.spec.children)&&void 0!==t?t:[]}}),this.rowSpecCache.rowSpec}rowErrors(r){const t=Object.fromEntries(Object.entries(r).filter((([,r])=>""!==r&&null!=r)));return s(this.rowSpec(),t,this.locale).errors}visibleRowErrors(r){var t,i;const o=null!==(t=this.rows()[r])&&void 0!==t?t:{},a=null!==(i=this.touched[r])&&void 0!==i?i:{},s={};for(const[r,t]of Object.entries(this.rowErrors(o)))a[r]&&(s[r]=t);return s}handleRowChange(r){var t,i;r.stopPropagation();const o=r.target.closest("[data-grid-row]"),a=Number(null!==(t=null==o?void 0:o.getAttribute("data-grid-row"))&&void 0!==t?t:-1);if(a<0)return;const s=Object.assign({},null!==(i=this.touched[a])&&void 0!==i?i:{});for(const t of Object.keys(r.detail))s[t]=!0;this.touched=Object.assign(Object.assign({},this.touched),{[a]:s});const d=this.rows().map(((t,i)=>i===a?Object.assign(Object.assign({},t),r.detail):t));this.gridValueChange.emit(d)}async validateRows(){var r,t;const i=this.rows(),o=null!==(t=null===(r=this.spec.configs)||void 0===r?void 0:r.key)&&void 0!==t?t:"grid",a={},s={};return i.forEach(((r,t)=>{var i,d;const e={};for(const r of null!==(i=this.spec.children)&&void 0!==i?i:[])(null===(d=r.configs)||void 0===d?void 0:d.key)&&(e[r.configs.key]=!0);a[t]=e;for(const[i,a]of Object.entries(this.rowErrors(r)))s[`${o}[${t}].${i}`]=a})),this.touched=a,{valid:0===Object.keys(s).length,errors:s}}removeRow(r){const t=this.rows().filter(((t,i)=>i!==r)),i={};for(const[t,o]of Object.entries(this.touched)){const a=Number(t);a<r?i[a]=o:a>r&&(i[a-1]=o)}this.touched=i,this.gridValueChange.emit(t.length?t:void 0)}render(){var r;const t=null!==(r=this.spec.children)&&void 0!==r?r:[],i=this.rows();return a("div",{key:"1c77d72cd1482d673ffdb5b7d67ca200e55919d7",class:"fk-grid"},0===i.length?a("p",{class:"fk-grid__empty"},d("grid.empty")):null,i.map(((r,i)=>a("div",{class:"fk-grid__row","data-grid-row":i,key:i},a("div",{class:"fk-grid__cells"},t.map(((t,o)=>a("fk-brick-render",{brickSpec:t,data:r,dataMap:r,errors:this.visibleRowErrors(i),locale:this.locale,path:`grid.${i}.${o}`,utils:this.utils})))),a("button",{type:"button",class:"fk-grid__remove",title:d("grid.removeRow"),disabled:this.disabled,onClick:r=>{r.preventDefault(),this.removeRow(i)}},"✕")))),a("button",{key:"9bf04c364b3262c436ffb580daf802d15f29de57",type:"button",class:"fk-grid__add",disabled:this.disabled,onClick:this.addRow},d("grid.addRow")))}static get style(){return".sc-fk-data-grid-h{display:block}.fk-grid.sc-fk-data-grid{display:flex;flex-direction:column;gap:var(--fk-spacing)}.fk-grid__empty.sc-fk-data-grid{margin:0;padding:var(--fk-spacing);border:1px dashed var(--fk-color-border);border-radius:var(--fk-radius);font-size:0.85rem;color:var(--fk-color-muted);text-align:center}.fk-grid__row.sc-fk-data-grid{display:flex;align-items:flex-start;gap:var(--fk-spacing);padding:var(--fk-spacing);border:1px solid var(--fk-color-border);border-radius:var(--fk-radius);background:color-mix(in srgb, var(--fk-color-surface) 60%, transparent)}.fk-grid__cells.sc-fk-data-grid{display:flex;flex:1;flex-wrap:wrap;gap:var(--fk-spacing);min-width:0}.fk-grid__cells.sc-fk-data-grid>*.sc-fk-data-grid{flex:1;min-width:160px}.fk-grid__remove.sc-fk-data-grid{border:none;background:transparent;color:var(--fk-color-muted);font-size:0.8rem;cursor:pointer;padding:4px 6px;border-radius:calc(var(--fk-radius) / 2)}.fk-grid__remove.sc-fk-data-grid:hover:not(:disabled){color:var(--fk-color-danger);background:color-mix(in srgb, var(--fk-color-danger) 10%, transparent)}.fk-grid__add.sc-fk-data-grid{align-self:flex-start;font:inherit;font-size:0.8rem;font-weight:600;padding:calc(var(--fk-spacing) / 1.5) var(--fk-spacing);border:1px dashed var(--fk-color-border);border-radius:var(--fk-radius);background:transparent;color:var(--fk-color-muted);cursor:pointer}.fk-grid__add.sc-fk-data-grid:hover:not(:disabled){border-color:var(--fk-color-primary);color:var(--fk-color-primary)}"}},[2,"fk-data-grid",{spec:[16],value:[16],disabled:[4],locale:[1],utils:[16],touched:[32],validateRows:[64]},[[0,"brickDataChange","handleRowChange"]]]);function k(){"undefined"!=typeof customElements&&["fk-data-grid","fk-brick-actions","fk-brick-not-found","fk-brick-render","fk-drop-area"].forEach((t=>{switch(t){case"fk-data-grid":customElements.get(r(t))||customElements.define(r(t),f);break;case"fk-brick-actions":customElements.get(r(t))||e();break;case"fk-brick-not-found":customElements.get(r(t))||c();break;case"fk-brick-render":customElements.get(r(t))||n();break;case"fk-drop-area":customElements.get(r(t))||l()}}))}k();export{f as F,k as d}
|