@streamline-pulse/formkrafter-wc 0.3.0 → 0.5.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 +23 -9
- 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-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-DYchD23x.js → p-BerMKKKo.js} +1 -1
- package/dist/components/p-Bey6yx4S.js +1 -0
- package/dist/{formkrafter-wc/p-C-wnqV3i.js → components/p-BietHxaT.js} +1 -1
- package/dist/components/p-Bj48EXdM.js +1 -0
- package/dist/components/p-BkqqQX6U.js +1 -0
- package/dist/components/p-BnxDCFjv.js +1 -0
- package/dist/components/p-BpkKcCCr.js +1 -0
- package/dist/components/p-C0Y8qh8R.js +1 -0
- package/dist/components/{p-BGkZP87K.js → p-CIzLjMz0.js} +1 -1
- package/dist/components/{p--vL6GR31.js → p-C_8wUoZ4.js} +1 -1
- package/dist/components/p-CeeVZgCr.js +1 -0
- package/dist/components/{p-4COASNrZ.js → p-CehxuHtl.js} +1 -1
- package/dist/components/{p-D6n74M9d.js → p-CjnF4RZI.js} +1 -1
- package/dist/components/{p-CIfjRTky.js → p-CsHWN99R.js} +1 -1
- package/dist/components/p-CyZA17qf.js +1 -0
- package/dist/components/p-DlqnIm46.js +1 -0
- package/dist/components/{p-v7LxwCAc.js → p-DwN4nM7G.js} +1 -1
- package/dist/components/{p-DMCkrZqi.js → p-RzeBwfwG.js} +1 -1
- package/dist/components/{p-BWdm2a6q.js → p-_64WINOr.js} +1 -1
- package/dist/components/p-bZPtT8wr.js +1 -0
- package/dist/components/{p-fDJP6whN.js → p-hELMtJ9v.js} +1 -1
- package/dist/components/{p-CKMHMpID.js → p-l7ULqDJ3.js} +4 -4
- package/dist/components/{p-wuC5rVU7.js → p-tSZpD5I-.js} +1 -1
- package/dist/components/p-tTJg_I4V.js +1 -0
- 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/{components/p-C-wnqV3i.js → formkrafter-wc/p-BietHxaT.js} +1 -1
- package/dist/formkrafter-wc/p-C0Y8qh8R.js +1 -0
- package/dist/formkrafter-wc/p-C5tYszq2.js +12 -0
- package/dist/formkrafter-wc/{p-4COASNrZ.js → p-CehxuHtl.js} +1 -1
- package/dist/formkrafter-wc/p-DYsf28oe.js +1 -0
- package/dist/formkrafter-wc/p-DlqnIm46.js +1 -0
- package/dist/formkrafter-wc/{p-DMCkrZqi.js → p-RzeBwfwG.js} +1 -1
- package/dist/formkrafter-wc/p-WWmY5Z05.js +1 -0
- package/dist/formkrafter-wc/p-bf962b94.entry.js +1 -0
- package/dist/formkrafter-wc/p-ca200eec.entry.js +1 -0
- package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +1 -0
- package/dist/types/components/fk-data-grid/fk-data-grid.d.ts +1 -0
- package/dist/types/components/fk-drop-area/fk-drop-area.d.ts +1 -0
- package/dist/types/components/fk-form-render/fk-form-render.d.ts +7 -1
- package/dist/types/components/fk-select-input/fk-select-input.d.ts +5 -1
- package/dist/types/components.d.ts +17 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/registry/default-bricks.d.ts +36 -0
- package/dist/types/utils/mask.d.ts +1 -0
- package/package.json +10 -15
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
- package/dist/cjs/fk-brick-actions_18.cjs.entry.js +0 -4224
- package/dist/cjs/formkrafter-wc.cjs.js +0 -25
- package/dist/cjs/index-Bhy1RJMV.js +0 -3042
- package/dist/cjs/index-CImTe9BG.js +0 -2126
- package/dist/cjs/index-CdaT3-qx.js +0 -5444
- package/dist/cjs/index-CkPPRg03.js +0 -17548
- package/dist/cjs/index-DHgK3reD.js +0 -12233
- package/dist/cjs/index-Ds0sDbXV.js +0 -4019
- package/dist/cjs/index-c9BL7y3N.js +0 -1922
- package/dist/cjs/index.cjs.js +0 -48
- package/dist/cjs/loader.cjs.js +0 -13
- package/dist/collection/collection-manifest.json +0 -30
- package/dist/collection/components/fk-brick-actions/fk-brick-actions.css +0 -78
- package/dist/collection/components/fk-brick-actions/fk-brick-actions.js +0 -215
- package/dist/collection/components/fk-brick-list/fk-brick-list.css +0 -71
- package/dist/collection/components/fk-brick-list/fk-brick-list.js +0 -55
- package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.css +0 -33
- package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.js +0 -73
- package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.css +0 -8
- package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.js +0 -18
- package/dist/collection/components/fk-brick-render/fk-brick-render.js +0 -447
- package/dist/collection/components/fk-code-editor/fk-code-editor.css +0 -26
- package/dist/collection/components/fk-code-editor/fk-code-editor.js +0 -145
- package/dist/collection/components/fk-data-grid/fk-data-grid.css +0 -75
- package/dist/collection/components/fk-data-grid/fk-data-grid.js +0 -300
- package/dist/collection/components/fk-drop-area/fk-drop-area.css +0 -18
- package/dist/collection/components/fk-drop-area/fk-drop-area.js +0 -98
- package/dist/collection/components/fk-empty-form/fk-empty-form.css +0 -22
- package/dist/collection/components/fk-empty-form/fk-empty-form.js +0 -19
- package/dist/collection/components/fk-file-input/fk-file-input.css +0 -95
- package/dist/collection/components/fk-file-input/fk-file-input.js +0 -239
- package/dist/collection/components/fk-form-builder/fk-form-builder.css +0 -112
- package/dist/collection/components/fk-form-builder/fk-form-builder.js +0 -431
- package/dist/collection/components/fk-form-render/fk-form-render.css +0 -7
- package/dist/collection/components/fk-form-render/fk-form-render.js +0 -352
- package/dist/collection/components/fk-property-panel/fk-property-panel.css +0 -153
- package/dist/collection/components/fk-property-panel/fk-property-panel.js +0 -388
- package/dist/collection/components/fk-rules-editor/fk-rules-editor.css +0 -166
- package/dist/collection/components/fk-rules-editor/fk-rules-editor.js +0 -250
- package/dist/collection/components/fk-select-input/fk-select-input.css +0 -153
- package/dist/collection/components/fk-select-input/fk-select-input.js +0 -454
- package/dist/collection/components/fk-signature-input/fk-signature-input.css +0 -42
- package/dist/collection/components/fk-signature-input/fk-signature-input.js +0 -158
- package/dist/collection/components/fk-stepper/fk-stepper.css +0 -99
- package/dist/collection/components/fk-stepper/fk-stepper.js +0 -285
- package/dist/collection/components/fk-tabs/fk-tabs.css +0 -38
- package/dist/collection/components/fk-tabs/fk-tabs.js +0 -249
- package/dist/collection/i18n/i18n.js +0 -265
- package/dist/collection/index.js +0 -5
- package/dist/collection/registry/create-brick.js +0 -34
- package/dist/collection/registry/default-bricks.js +0 -564
- package/dist/collection/registry/registry.js +0 -44
- package/dist/collection/utils/brick-data.js +0 -16
- package/dist/collection/utils/drop.js +0 -14
- package/dist/collection/utils/events.js +0 -1
- package/dist/collection/utils/options.js +0 -21
- package/dist/collection/utils/remote.js +0 -27
- package/dist/collection/utils/rule-condition.js +0 -72
- package/dist/collection/utils/style.js +0 -11
- package/dist/components/p-BOmBVgfJ.js +0 -1
- package/dist/components/p-B_-x-GlA.js +0 -1
- package/dist/components/p-Br1s4Ujx.js +0 -1
- package/dist/components/p-CUF31e-P.js +0 -1
- package/dist/components/p-CWQX0sXS.js +0 -1
- package/dist/components/p-DFe3zZCI.js +0 -1
- package/dist/components/p-DOInQkG6.js +0 -1
- package/dist/components/p-PAr7WoWG.js +0 -1
- package/dist/components/p-YyGnQmX-.js +0 -1
- package/dist/components/p-swxZqinH.js +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -3
- package/dist/esm/fk-brick-actions_18.entry.js +0 -4205
- package/dist/esm/formkrafter-wc.js +0 -21
- package/dist/esm/index-BAcz7b5u.js +0 -5416
- package/dist/esm/index-BkRMoLXK.js +0 -3029
- package/dist/esm/index-CGMDfZ5m.js +0 -1808
- package/dist/esm/index-D7Cta1UB.js +0 -17488
- package/dist/esm/index-DtcM1yw5.js +0 -3991
- package/dist/esm/index-DuVf3NlP.js +0 -12222
- package/dist/esm/index-qLZlXROB.js +0 -2117
- package/dist/esm/index.js +0 -2
- package/dist/esm/loader.js +0 -11
- package/dist/formkrafter-wc/p-6d29555b.entry.js +0 -1
- package/dist/formkrafter-wc/p-DOInQkG6.js +0 -1
- package/dist/formkrafter-wc/p-Ddu6BquK.js +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/stencil.config.js +0 -34
- package/loader/cdn.js +0 -1
- package/loader/index.cjs.js +0 -1
- package/loader/index.d.ts +0 -24
- package/loader/index.es2017.js +0 -1
- package/loader/index.js +0 -2
|
@@ -1,352 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { getAffectedProperties, iterateBricks, validateBrickSpecDataDetailed, } from "@streamline-pulse/formkrafter-core";
|
|
3
|
-
export class FkFormRender {
|
|
4
|
-
constructor() {
|
|
5
|
-
this.editable = false;
|
|
6
|
-
this.currentData = {};
|
|
7
|
-
this.touched = {};
|
|
8
|
-
this.utils = {
|
|
9
|
-
validateForm: () => ({
|
|
10
|
-
isValid: this.runValidation().valid,
|
|
11
|
-
}),
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
componentWillLoad() {
|
|
15
|
-
this.currentData = Object.assign({}, this.data);
|
|
16
|
-
}
|
|
17
|
-
syncData(next) {
|
|
18
|
-
this.currentData = Object.assign({}, next);
|
|
19
|
-
}
|
|
20
|
-
publicData() {
|
|
21
|
-
return Object.fromEntries(Object.entries(this.currentData).filter(([key]) => !key.startsWith('_')));
|
|
22
|
-
}
|
|
23
|
-
handleBrickDataChange(event) {
|
|
24
|
-
event.stopPropagation();
|
|
25
|
-
this.currentData = this.applyValueEffects(Object.assign(Object.assign({}, this.currentData), event.detail));
|
|
26
|
-
const touched = Object.assign({}, this.touched);
|
|
27
|
-
for (const key of Object.keys(event.detail))
|
|
28
|
-
touched[key] = true;
|
|
29
|
-
this.touched = touched;
|
|
30
|
-
const { valid, errors } = this.runValidation();
|
|
31
|
-
this.formDataChange.emit({
|
|
32
|
-
data: this.publicData(),
|
|
33
|
-
isValid: valid,
|
|
34
|
-
errors,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
applyValueEffects(data) {
|
|
38
|
-
var _a, _b;
|
|
39
|
-
let result = data;
|
|
40
|
-
for (const { brick } of iterateBricks(this.spec)) {
|
|
41
|
-
const key = (_a = brick.configs) === null || _a === void 0 ? void 0 : _a.key;
|
|
42
|
-
if (!key || !((_b = brick.rules) === null || _b === void 0 ? void 0 : _b.length))
|
|
43
|
-
continue;
|
|
44
|
-
const affected = getAffectedProperties(brick.rules, result);
|
|
45
|
-
if (affected.value !== undefined && result[key] !== affected.value) {
|
|
46
|
-
result = Object.assign(Object.assign({}, result), { [key]: affected.value });
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
return result;
|
|
50
|
-
}
|
|
51
|
-
async validate() {
|
|
52
|
-
var _a;
|
|
53
|
-
const touched = {};
|
|
54
|
-
for (const { brick } of iterateBricks(this.spec)) {
|
|
55
|
-
const key = (_a = brick.configs) === null || _a === void 0 ? void 0 : _a.key;
|
|
56
|
-
if (key)
|
|
57
|
-
touched[key] = true;
|
|
58
|
-
}
|
|
59
|
-
this.touched = touched;
|
|
60
|
-
const flat = this.runValidation();
|
|
61
|
-
const errors = Object.assign({}, flat.errors);
|
|
62
|
-
let valid = flat.valid;
|
|
63
|
-
const grids = Array.from(this.host.querySelectorAll('fk-data-grid'));
|
|
64
|
-
for (const grid of grids) {
|
|
65
|
-
const rowResult = await grid.validateRows();
|
|
66
|
-
valid = valid && rowResult.valid;
|
|
67
|
-
Object.assign(errors, rowResult.errors);
|
|
68
|
-
}
|
|
69
|
-
const result = { valid, errors };
|
|
70
|
-
this.formDataChange.emit({
|
|
71
|
-
data: this.publicData(),
|
|
72
|
-
isValid: result.valid,
|
|
73
|
-
errors: result.errors,
|
|
74
|
-
});
|
|
75
|
-
return result;
|
|
76
|
-
}
|
|
77
|
-
handleStepTouch(event) {
|
|
78
|
-
event.stopPropagation();
|
|
79
|
-
const touched = Object.assign({}, this.touched);
|
|
80
|
-
for (const key of event.detail.keys)
|
|
81
|
-
touched[key] = true;
|
|
82
|
-
this.touched = touched;
|
|
83
|
-
}
|
|
84
|
-
async handleStepperSubmit(event) {
|
|
85
|
-
event.stopPropagation();
|
|
86
|
-
const result = await this.validate();
|
|
87
|
-
this.formSubmit.emit({
|
|
88
|
-
data: this.publicData(),
|
|
89
|
-
isValid: result.valid,
|
|
90
|
-
errors: result.errors,
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
runValidation() {
|
|
94
|
-
const presentData = Object.fromEntries(Object.entries(this.currentData).filter(([, value]) => value !== '' && value !== null && value !== undefined));
|
|
95
|
-
return validateBrickSpecDataDetailed(this.spec, presentData, this.locale);
|
|
96
|
-
}
|
|
97
|
-
visibleErrors() {
|
|
98
|
-
if (this.editable)
|
|
99
|
-
return {};
|
|
100
|
-
const errors = {};
|
|
101
|
-
for (const [key, message] of Object.entries(this.runValidation().errors)) {
|
|
102
|
-
if (this.touched[key])
|
|
103
|
-
errors[key] = message;
|
|
104
|
-
}
|
|
105
|
-
return errors;
|
|
106
|
-
}
|
|
107
|
-
render() {
|
|
108
|
-
if (!this.spec)
|
|
109
|
-
return null;
|
|
110
|
-
return (h("form", { class: "fk-form", onSubmit: (event) => event.preventDefault() }, h("fk-brick-render", { brickSpec: this.spec, rootSpec: this.spec, data: this.currentData, dataMap: this.currentData, errors: this.visibleErrors(), locale: this.locale, path: "0", editable: this.editable, selectedUid: this.selectedUid, utils: this.utils })));
|
|
111
|
-
}
|
|
112
|
-
static get is() { return "fk-form-render"; }
|
|
113
|
-
static get encapsulation() { return "scoped"; }
|
|
114
|
-
static get originalStyleUrls() {
|
|
115
|
-
return {
|
|
116
|
-
"$": ["fk-form-render.css"]
|
|
117
|
-
};
|
|
118
|
-
}
|
|
119
|
-
static get styleUrls() {
|
|
120
|
-
return {
|
|
121
|
-
"$": ["fk-form-render.css"]
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
static get properties() {
|
|
125
|
-
return {
|
|
126
|
-
"spec": {
|
|
127
|
-
"type": "unknown",
|
|
128
|
-
"mutable": false,
|
|
129
|
-
"complexType": {
|
|
130
|
-
"original": "BrickSpec",
|
|
131
|
-
"resolved": "BrickSpec",
|
|
132
|
-
"references": {
|
|
133
|
-
"BrickSpec": {
|
|
134
|
-
"location": "import",
|
|
135
|
-
"path": "@streamline-pulse/formkrafter-core",
|
|
136
|
-
"id": "../core/dist/index.d.ts::BrickSpec",
|
|
137
|
-
"referenceLocation": "BrickSpec"
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
},
|
|
141
|
-
"required": true,
|
|
142
|
-
"optional": false,
|
|
143
|
-
"docs": {
|
|
144
|
-
"tags": [],
|
|
145
|
-
"text": ""
|
|
146
|
-
},
|
|
147
|
-
"getter": false,
|
|
148
|
-
"setter": false
|
|
149
|
-
},
|
|
150
|
-
"data": {
|
|
151
|
-
"type": "unknown",
|
|
152
|
-
"mutable": false,
|
|
153
|
-
"complexType": {
|
|
154
|
-
"original": "Record<string, unknown>",
|
|
155
|
-
"resolved": "string | unknown",
|
|
156
|
-
"references": {
|
|
157
|
-
"Record": {
|
|
158
|
-
"location": "global",
|
|
159
|
-
"id": "global::Record"
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
"required": false,
|
|
164
|
-
"optional": true,
|
|
165
|
-
"docs": {
|
|
166
|
-
"tags": [],
|
|
167
|
-
"text": ""
|
|
168
|
-
},
|
|
169
|
-
"getter": false,
|
|
170
|
-
"setter": false
|
|
171
|
-
},
|
|
172
|
-
"editable": {
|
|
173
|
-
"type": "boolean",
|
|
174
|
-
"mutable": false,
|
|
175
|
-
"complexType": {
|
|
176
|
-
"original": "boolean",
|
|
177
|
-
"resolved": "boolean",
|
|
178
|
-
"references": {}
|
|
179
|
-
},
|
|
180
|
-
"required": false,
|
|
181
|
-
"optional": false,
|
|
182
|
-
"docs": {
|
|
183
|
-
"tags": [],
|
|
184
|
-
"text": ""
|
|
185
|
-
},
|
|
186
|
-
"getter": false,
|
|
187
|
-
"setter": false,
|
|
188
|
-
"reflect": false,
|
|
189
|
-
"attribute": "editable",
|
|
190
|
-
"defaultValue": "false"
|
|
191
|
-
},
|
|
192
|
-
"selectedUid": {
|
|
193
|
-
"type": "string",
|
|
194
|
-
"mutable": false,
|
|
195
|
-
"complexType": {
|
|
196
|
-
"original": "string",
|
|
197
|
-
"resolved": "string",
|
|
198
|
-
"references": {}
|
|
199
|
-
},
|
|
200
|
-
"required": false,
|
|
201
|
-
"optional": true,
|
|
202
|
-
"docs": {
|
|
203
|
-
"tags": [],
|
|
204
|
-
"text": ""
|
|
205
|
-
},
|
|
206
|
-
"getter": false,
|
|
207
|
-
"setter": false,
|
|
208
|
-
"reflect": false,
|
|
209
|
-
"attribute": "selected-uid"
|
|
210
|
-
},
|
|
211
|
-
"locale": {
|
|
212
|
-
"type": "string",
|
|
213
|
-
"mutable": false,
|
|
214
|
-
"complexType": {
|
|
215
|
-
"original": "string",
|
|
216
|
-
"resolved": "string",
|
|
217
|
-
"references": {}
|
|
218
|
-
},
|
|
219
|
-
"required": false,
|
|
220
|
-
"optional": true,
|
|
221
|
-
"docs": {
|
|
222
|
-
"tags": [],
|
|
223
|
-
"text": ""
|
|
224
|
-
},
|
|
225
|
-
"getter": false,
|
|
226
|
-
"setter": false,
|
|
227
|
-
"reflect": false,
|
|
228
|
-
"attribute": "locale"
|
|
229
|
-
}
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
static get states() {
|
|
233
|
-
return {
|
|
234
|
-
"currentData": {},
|
|
235
|
-
"touched": {}
|
|
236
|
-
};
|
|
237
|
-
}
|
|
238
|
-
static get events() {
|
|
239
|
-
return [{
|
|
240
|
-
"method": "formDataChange",
|
|
241
|
-
"name": "formDataChange",
|
|
242
|
-
"bubbles": true,
|
|
243
|
-
"cancelable": true,
|
|
244
|
-
"composed": true,
|
|
245
|
-
"docs": {
|
|
246
|
-
"tags": [],
|
|
247
|
-
"text": ""
|
|
248
|
-
},
|
|
249
|
-
"complexType": {
|
|
250
|
-
"original": "DataChangeDetail",
|
|
251
|
-
"resolved": "DataChangeDetail",
|
|
252
|
-
"references": {
|
|
253
|
-
"DataChangeDetail": {
|
|
254
|
-
"location": "import",
|
|
255
|
-
"path": "../../utils/events",
|
|
256
|
-
"id": "src/utils/events.ts::DataChangeDetail",
|
|
257
|
-
"referenceLocation": "DataChangeDetail"
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
}, {
|
|
262
|
-
"method": "formSubmit",
|
|
263
|
-
"name": "formSubmit",
|
|
264
|
-
"bubbles": true,
|
|
265
|
-
"cancelable": true,
|
|
266
|
-
"composed": true,
|
|
267
|
-
"docs": {
|
|
268
|
-
"tags": [],
|
|
269
|
-
"text": ""
|
|
270
|
-
},
|
|
271
|
-
"complexType": {
|
|
272
|
-
"original": "DataChangeDetail",
|
|
273
|
-
"resolved": "DataChangeDetail",
|
|
274
|
-
"references": {
|
|
275
|
-
"DataChangeDetail": {
|
|
276
|
-
"location": "import",
|
|
277
|
-
"path": "../../utils/events",
|
|
278
|
-
"id": "src/utils/events.ts::DataChangeDetail",
|
|
279
|
-
"referenceLocation": "DataChangeDetail"
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
}];
|
|
284
|
-
}
|
|
285
|
-
static get methods() {
|
|
286
|
-
return {
|
|
287
|
-
"validate": {
|
|
288
|
-
"complexType": {
|
|
289
|
-
"signature": "() => Promise<ValidationResult>",
|
|
290
|
-
"parameters": [],
|
|
291
|
-
"references": {
|
|
292
|
-
"Promise": {
|
|
293
|
-
"location": "global",
|
|
294
|
-
"id": "global::Promise"
|
|
295
|
-
},
|
|
296
|
-
"ValidationResult": {
|
|
297
|
-
"location": "import",
|
|
298
|
-
"path": "@streamline-pulse/formkrafter-core",
|
|
299
|
-
"id": "../core/dist/index.d.ts::ValidationResult",
|
|
300
|
-
"referenceLocation": "ValidationResult"
|
|
301
|
-
},
|
|
302
|
-
"Record": {
|
|
303
|
-
"location": "global",
|
|
304
|
-
"id": "global::Record"
|
|
305
|
-
},
|
|
306
|
-
"Array": {
|
|
307
|
-
"location": "global",
|
|
308
|
-
"id": "global::Array"
|
|
309
|
-
},
|
|
310
|
-
"HTMLElement": {
|
|
311
|
-
"location": "global",
|
|
312
|
-
"id": "global::HTMLElement"
|
|
313
|
-
}
|
|
314
|
-
},
|
|
315
|
-
"return": "Promise<ValidationResult>"
|
|
316
|
-
},
|
|
317
|
-
"docs": {
|
|
318
|
-
"text": "",
|
|
319
|
-
"tags": []
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
static get elementRef() { return "host"; }
|
|
325
|
-
static get watchers() {
|
|
326
|
-
return [{
|
|
327
|
-
"propName": "data",
|
|
328
|
-
"methodName": "syncData"
|
|
329
|
-
}];
|
|
330
|
-
}
|
|
331
|
-
static get listeners() {
|
|
332
|
-
return [{
|
|
333
|
-
"name": "brickDataChange",
|
|
334
|
-
"method": "handleBrickDataChange",
|
|
335
|
-
"target": undefined,
|
|
336
|
-
"capture": false,
|
|
337
|
-
"passive": false
|
|
338
|
-
}, {
|
|
339
|
-
"name": "stepTouch",
|
|
340
|
-
"method": "handleStepTouch",
|
|
341
|
-
"target": undefined,
|
|
342
|
-
"capture": false,
|
|
343
|
-
"passive": false
|
|
344
|
-
}, {
|
|
345
|
-
"name": "stepperSubmit",
|
|
346
|
-
"method": "handleStepperSubmit",
|
|
347
|
-
"target": undefined,
|
|
348
|
-
"capture": false,
|
|
349
|
-
"passive": false
|
|
350
|
-
}];
|
|
351
|
-
}
|
|
352
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
}
|
|
4
|
-
|
|
5
|
-
.fk-props {
|
|
6
|
-
display: flex;
|
|
7
|
-
flex-direction: column;
|
|
8
|
-
gap: calc(var(--fk-spacing) * 1.5);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.fk-props__header {
|
|
12
|
-
display: flex;
|
|
13
|
-
flex-direction: column;
|
|
14
|
-
gap: 2px;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.fk-props__type {
|
|
18
|
-
font-size: 0.65rem;
|
|
19
|
-
font-weight: 700;
|
|
20
|
-
text-transform: uppercase;
|
|
21
|
-
letter-spacing: 0.08em;
|
|
22
|
-
color: var(--fk-color-primary);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.fk-props__title {
|
|
26
|
-
margin: 0;
|
|
27
|
-
font-size: 0.95rem;
|
|
28
|
-
color: var(--fk-color-text);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.fk-props__section {
|
|
32
|
-
display: flex;
|
|
33
|
-
flex-direction: column;
|
|
34
|
-
gap: var(--fk-spacing);
|
|
35
|
-
padding-top: var(--fk-spacing);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.fk-props__tabs {
|
|
39
|
-
display: flex;
|
|
40
|
-
gap: 2px;
|
|
41
|
-
border-bottom: 1px solid var(--fk-color-border);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.fk-props__tab {
|
|
45
|
-
font: inherit;
|
|
46
|
-
font-size: 0.72rem;
|
|
47
|
-
font-weight: 600;
|
|
48
|
-
padding: 5px 9px;
|
|
49
|
-
border: none;
|
|
50
|
-
border-bottom: 2px solid transparent;
|
|
51
|
-
background: transparent;
|
|
52
|
-
color: var(--fk-color-muted);
|
|
53
|
-
cursor: pointer;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.fk-props__tab:hover {
|
|
57
|
-
color: var(--fk-color-text);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.fk-props__tab--active {
|
|
61
|
-
color: var(--fk-color-primary);
|
|
62
|
-
border-bottom-color: var(--fk-color-primary);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.fk-props__section-title {
|
|
66
|
-
margin: 0;
|
|
67
|
-
font-size: 0.7rem;
|
|
68
|
-
font-weight: 700;
|
|
69
|
-
text-transform: uppercase;
|
|
70
|
-
letter-spacing: 0.08em;
|
|
71
|
-
color: var(--fk-color-muted);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.fk-props__field {
|
|
75
|
-
display: flex;
|
|
76
|
-
flex-direction: column;
|
|
77
|
-
gap: 4px;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.fk-props__field--inline {
|
|
81
|
-
flex-direction: row;
|
|
82
|
-
align-items: center;
|
|
83
|
-
gap: 8px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.fk-props__label {
|
|
87
|
-
font-size: 0.75rem;
|
|
88
|
-
font-weight: 600;
|
|
89
|
-
color: var(--fk-color-muted);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.fk-props__input {
|
|
93
|
-
font: inherit;
|
|
94
|
-
font-size: 0.85rem;
|
|
95
|
-
padding: 6px 8px;
|
|
96
|
-
border: 1px solid var(--fk-color-border);
|
|
97
|
-
border-radius: calc(var(--fk-radius) / 2);
|
|
98
|
-
background: var(--fk-color-surface);
|
|
99
|
-
color: var(--fk-color-text);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.fk-props__input:focus {
|
|
103
|
-
outline: none;
|
|
104
|
-
border-color: var(--fk-color-primary);
|
|
105
|
-
box-shadow: 0 0 0 2px color-mix(in srgb, var(--fk-color-primary) 20%, transparent);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.fk-props__input--textarea {
|
|
109
|
-
min-height: 72px;
|
|
110
|
-
resize: vertical;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.fk-props__vrule {
|
|
114
|
-
display: flex;
|
|
115
|
-
flex-direction: column;
|
|
116
|
-
gap: 6px;
|
|
117
|
-
padding: calc(var(--fk-spacing) / 1.5);
|
|
118
|
-
border: 1px solid var(--fk-color-border);
|
|
119
|
-
border-radius: calc(var(--fk-radius) / 1.5);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.fk-props__style-row {
|
|
123
|
-
display: flex;
|
|
124
|
-
align-items: center;
|
|
125
|
-
gap: 6px;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
.fk-props__style-key {
|
|
129
|
-
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
|
|
130
|
-
font-size: 0.75rem;
|
|
131
|
-
color: var(--fk-color-text);
|
|
132
|
-
min-width: 72px;
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.fk-props__input--grow {
|
|
136
|
-
flex: 1;
|
|
137
|
-
min-width: 0;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.fk-props__remove {
|
|
141
|
-
border: none;
|
|
142
|
-
background: transparent;
|
|
143
|
-
color: var(--fk-color-muted);
|
|
144
|
-
font-size: 0.75rem;
|
|
145
|
-
cursor: pointer;
|
|
146
|
-
padding: 2px 4px;
|
|
147
|
-
border-radius: calc(var(--fk-radius) / 2);
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
.fk-props__remove:hover {
|
|
151
|
-
color: var(--fk-color-danger);
|
|
152
|
-
background: color-mix(in srgb, var(--fk-color-danger) 10%, transparent);
|
|
153
|
-
}
|