@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,239 +0,0 @@
|
|
|
1
|
-
import { h } from "@stencil/core";
|
|
2
|
-
import { services } from "@streamline-pulse/formkrafter-core";
|
|
3
|
-
import { fkT, fkTOr } from "../../i18n/i18n";
|
|
4
|
-
export class FkFileInput {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.disabled = false;
|
|
7
|
-
this.multiple = false;
|
|
8
|
-
this.uploading = false;
|
|
9
|
-
this.handleFile = async (event) => {
|
|
10
|
-
var _a;
|
|
11
|
-
const input = event.target;
|
|
12
|
-
const selected = Array.from((_a = input.files) !== null && _a !== void 0 ? _a : []);
|
|
13
|
-
if (!selected.length)
|
|
14
|
-
return;
|
|
15
|
-
this.uploading = true;
|
|
16
|
-
this.uploadError = undefined;
|
|
17
|
-
try {
|
|
18
|
-
const uploaded = [];
|
|
19
|
-
for (const file of this.multiple ? selected : selected.slice(0, 1)) {
|
|
20
|
-
uploaded.push(await services.fileUploadService.upload(file, { url: this.uploadUrl }));
|
|
21
|
-
}
|
|
22
|
-
this.emitFiles(this.multiple ? [...this.files, ...uploaded] : uploaded);
|
|
23
|
-
}
|
|
24
|
-
catch (error) {
|
|
25
|
-
this.uploadError =
|
|
26
|
-
error instanceof Error ? error.message : String(error);
|
|
27
|
-
}
|
|
28
|
-
finally {
|
|
29
|
-
this.uploading = false;
|
|
30
|
-
input.value = '';
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
this.handleRemove = async (file) => {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
this.removingUrl = file.url;
|
|
36
|
-
this.uploadError = undefined;
|
|
37
|
-
try {
|
|
38
|
-
await ((_b = (_a = services.fileUploadService).remove) === null || _b === void 0 ? void 0 : _b.call(_a, file, { url: this.uploadUrl }));
|
|
39
|
-
}
|
|
40
|
-
catch (error) {
|
|
41
|
-
this.uploadError = error instanceof Error ? error.message : String(error);
|
|
42
|
-
}
|
|
43
|
-
finally {
|
|
44
|
-
this.removingUrl = undefined;
|
|
45
|
-
this.emitFiles(this.files.filter((item) => item !== file));
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
get files() {
|
|
50
|
-
if (Array.isArray(this.value))
|
|
51
|
-
return this.value;
|
|
52
|
-
return this.value ? [this.value] : [];
|
|
53
|
-
}
|
|
54
|
-
emitFiles(files) {
|
|
55
|
-
if (this.multiple) {
|
|
56
|
-
this.fileValueChange.emit(files.length ? files : undefined);
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
this.fileValueChange.emit(files[0]);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
formatSize(size) {
|
|
63
|
-
if (size < 1024)
|
|
64
|
-
return `${size} B`;
|
|
65
|
-
if (size < 1024 * 1024)
|
|
66
|
-
return `${(size / 1024).toFixed(1)} KB`;
|
|
67
|
-
return `${(size / (1024 * 1024)).toFixed(1)} MB`;
|
|
68
|
-
}
|
|
69
|
-
renderFile(file) {
|
|
70
|
-
const removing = this.removingUrl !== undefined && this.removingUrl === file.url;
|
|
71
|
-
return (h("div", { class: "fk-file__selected", key: `${file.url}:${file.name}` }, h("span", { class: "fk-file__icon", "aria-hidden": "true" }, h("svg", { viewBox: "0 0 24 24", width: "16", height: "16", fill: "none", stroke: "currentColor", "stroke-width": "2", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), h("polyline", { points: "14 2 14 8 20 8" }))), h("span", { class: "fk-file__meta" }, h("span", { class: "fk-file__name", title: file.name }, file.name), h("span", { class: "fk-file__size" }, this.formatSize(file.size))), h("button", { type: "button", class: "fk-file__remove", title: fkT('file.remove'), disabled: this.disabled || removing, onClick: (event) => {
|
|
72
|
-
event.preventDefault();
|
|
73
|
-
void this.handleRemove(file);
|
|
74
|
-
} }, removing ? '…' : '✕')));
|
|
75
|
-
}
|
|
76
|
-
render() {
|
|
77
|
-
const files = this.files;
|
|
78
|
-
const showChoose = this.multiple || files.length === 0;
|
|
79
|
-
return (h("div", { key: '883cb0627b948d807f59ed5c62e44b0db421c3c6', class: "fk-file" }, files.map((file) => this.renderFile(file)), showChoose ? (h("button", { type: "button", class: "fk-file__choose", disabled: this.disabled || this.uploading, onClick: (event) => {
|
|
80
|
-
var _a;
|
|
81
|
-
event.preventDefault();
|
|
82
|
-
(_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.click();
|
|
83
|
-
} }, this.uploading
|
|
84
|
-
? fkT('file.uploading')
|
|
85
|
-
: this.multiple && files.length
|
|
86
|
-
? fkTOr('file.addAnother', '+ Add a file')
|
|
87
|
-
: fkT('file.choose'))) : null, h("input", { key: 'a35947614d82f94eba8453b1f43382d2754cb36f', class: "fk-file__native", type: "file", accept: this.accept, multiple: this.multiple, disabled: this.disabled, ref: (element) => (this.inputEl = element), onChange: this.handleFile }), this.uploadError ? (h("span", { class: "fk-field__error" }, this.uploadError)) : null));
|
|
88
|
-
}
|
|
89
|
-
static get is() { return "fk-file-input"; }
|
|
90
|
-
static get encapsulation() { return "scoped"; }
|
|
91
|
-
static get originalStyleUrls() {
|
|
92
|
-
return {
|
|
93
|
-
"$": ["fk-file-input.css"]
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
static get styleUrls() {
|
|
97
|
-
return {
|
|
98
|
-
"$": ["fk-file-input.css"]
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
static get properties() {
|
|
102
|
-
return {
|
|
103
|
-
"value": {
|
|
104
|
-
"type": "unknown",
|
|
105
|
-
"mutable": false,
|
|
106
|
-
"complexType": {
|
|
107
|
-
"original": "UploadedFile | UploadedFile[]",
|
|
108
|
-
"resolved": "UploadedFile | UploadedFile[]",
|
|
109
|
-
"references": {
|
|
110
|
-
"UploadedFile": {
|
|
111
|
-
"location": "import",
|
|
112
|
-
"path": "@streamline-pulse/formkrafter-core",
|
|
113
|
-
"id": "../core/dist/index.d.ts::UploadedFile",
|
|
114
|
-
"referenceLocation": "UploadedFile"
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
|
-
"required": false,
|
|
119
|
-
"optional": true,
|
|
120
|
-
"docs": {
|
|
121
|
-
"tags": [],
|
|
122
|
-
"text": ""
|
|
123
|
-
},
|
|
124
|
-
"getter": false,
|
|
125
|
-
"setter": false
|
|
126
|
-
},
|
|
127
|
-
"disabled": {
|
|
128
|
-
"type": "boolean",
|
|
129
|
-
"mutable": false,
|
|
130
|
-
"complexType": {
|
|
131
|
-
"original": "boolean",
|
|
132
|
-
"resolved": "boolean",
|
|
133
|
-
"references": {}
|
|
134
|
-
},
|
|
135
|
-
"required": false,
|
|
136
|
-
"optional": false,
|
|
137
|
-
"docs": {
|
|
138
|
-
"tags": [],
|
|
139
|
-
"text": ""
|
|
140
|
-
},
|
|
141
|
-
"getter": false,
|
|
142
|
-
"setter": false,
|
|
143
|
-
"reflect": false,
|
|
144
|
-
"attribute": "disabled",
|
|
145
|
-
"defaultValue": "false"
|
|
146
|
-
},
|
|
147
|
-
"accept": {
|
|
148
|
-
"type": "string",
|
|
149
|
-
"mutable": false,
|
|
150
|
-
"complexType": {
|
|
151
|
-
"original": "string",
|
|
152
|
-
"resolved": "string",
|
|
153
|
-
"references": {}
|
|
154
|
-
},
|
|
155
|
-
"required": false,
|
|
156
|
-
"optional": true,
|
|
157
|
-
"docs": {
|
|
158
|
-
"tags": [],
|
|
159
|
-
"text": ""
|
|
160
|
-
},
|
|
161
|
-
"getter": false,
|
|
162
|
-
"setter": false,
|
|
163
|
-
"reflect": false,
|
|
164
|
-
"attribute": "accept"
|
|
165
|
-
},
|
|
166
|
-
"uploadUrl": {
|
|
167
|
-
"type": "string",
|
|
168
|
-
"mutable": false,
|
|
169
|
-
"complexType": {
|
|
170
|
-
"original": "string",
|
|
171
|
-
"resolved": "string",
|
|
172
|
-
"references": {}
|
|
173
|
-
},
|
|
174
|
-
"required": false,
|
|
175
|
-
"optional": true,
|
|
176
|
-
"docs": {
|
|
177
|
-
"tags": [],
|
|
178
|
-
"text": ""
|
|
179
|
-
},
|
|
180
|
-
"getter": false,
|
|
181
|
-
"setter": false,
|
|
182
|
-
"reflect": false,
|
|
183
|
-
"attribute": "upload-url"
|
|
184
|
-
},
|
|
185
|
-
"multiple": {
|
|
186
|
-
"type": "boolean",
|
|
187
|
-
"mutable": false,
|
|
188
|
-
"complexType": {
|
|
189
|
-
"original": "boolean",
|
|
190
|
-
"resolved": "boolean",
|
|
191
|
-
"references": {}
|
|
192
|
-
},
|
|
193
|
-
"required": false,
|
|
194
|
-
"optional": false,
|
|
195
|
-
"docs": {
|
|
196
|
-
"tags": [],
|
|
197
|
-
"text": ""
|
|
198
|
-
},
|
|
199
|
-
"getter": false,
|
|
200
|
-
"setter": false,
|
|
201
|
-
"reflect": false,
|
|
202
|
-
"attribute": "multiple",
|
|
203
|
-
"defaultValue": "false"
|
|
204
|
-
}
|
|
205
|
-
};
|
|
206
|
-
}
|
|
207
|
-
static get states() {
|
|
208
|
-
return {
|
|
209
|
-
"uploading": {},
|
|
210
|
-
"removingUrl": {},
|
|
211
|
-
"uploadError": {}
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
static get events() {
|
|
215
|
-
return [{
|
|
216
|
-
"method": "fileValueChange",
|
|
217
|
-
"name": "fileValueChange",
|
|
218
|
-
"bubbles": true,
|
|
219
|
-
"cancelable": true,
|
|
220
|
-
"composed": true,
|
|
221
|
-
"docs": {
|
|
222
|
-
"tags": [],
|
|
223
|
-
"text": ""
|
|
224
|
-
},
|
|
225
|
-
"complexType": {
|
|
226
|
-
"original": "UploadedFile | UploadedFile[] | undefined",
|
|
227
|
-
"resolved": "UploadedFile | UploadedFile[]",
|
|
228
|
-
"references": {
|
|
229
|
-
"UploadedFile": {
|
|
230
|
-
"location": "import",
|
|
231
|
-
"path": "@streamline-pulse/formkrafter-core",
|
|
232
|
-
"id": "../core/dist/index.d.ts::UploadedFile",
|
|
233
|
-
"referenceLocation": "UploadedFile"
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}];
|
|
238
|
-
}
|
|
239
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
:host {
|
|
2
|
-
display: block;
|
|
3
|
-
container-type: inline-size;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.fk-builder {
|
|
7
|
-
display: flex;
|
|
8
|
-
gap: calc(var(--fk-spacing) * 2);
|
|
9
|
-
align-items: flex-start;
|
|
10
|
-
font-family: var(--fk-font);
|
|
11
|
-
color: var(--fk-color-text);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@container (max-width: 820px) {
|
|
15
|
-
.fk-builder {
|
|
16
|
-
flex-wrap: wrap;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.fk-builder__palette,
|
|
20
|
-
.fk-builder__inspector {
|
|
21
|
-
width: 100%;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.fk-builder__main {
|
|
25
|
-
order: 2;
|
|
26
|
-
flex-basis: 100%;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.fk-builder__palette {
|
|
30
|
-
order: 1;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.fk-builder__inspector {
|
|
34
|
-
order: 3;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.fk-builder__palette {
|
|
39
|
-
width: 220px;
|
|
40
|
-
flex-shrink: 0;
|
|
41
|
-
padding: calc(var(--fk-spacing) * 1.5);
|
|
42
|
-
border: 1px solid var(--fk-color-border);
|
|
43
|
-
border-radius: var(--fk-radius);
|
|
44
|
-
background: var(--fk-color-surface);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.fk-builder__main {
|
|
48
|
-
flex: 1;
|
|
49
|
-
min-width: 0;
|
|
50
|
-
display: flex;
|
|
51
|
-
flex-direction: column;
|
|
52
|
-
gap: var(--fk-spacing);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.fk-builder__toolbar {
|
|
56
|
-
display: flex;
|
|
57
|
-
align-items: center;
|
|
58
|
-
gap: calc(var(--fk-spacing) / 2);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.fk-builder__spacer {
|
|
62
|
-
flex: 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.fk-builder__import-error {
|
|
66
|
-
font-size: 0.75rem;
|
|
67
|
-
color: var(--fk-color-danger);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.fk-builder__tool {
|
|
71
|
-
padding: calc(var(--fk-spacing) / 2) var(--fk-spacing);
|
|
72
|
-
border: 1px solid var(--fk-color-border);
|
|
73
|
-
border-radius: calc(var(--fk-radius) / 2);
|
|
74
|
-
background: var(--fk-color-surface);
|
|
75
|
-
color: var(--fk-color-text);
|
|
76
|
-
font-size: 0.8rem;
|
|
77
|
-
cursor: pointer;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.fk-builder__tool:hover:not(:disabled) {
|
|
81
|
-
border-color: var(--fk-color-primary);
|
|
82
|
-
color: var(--fk-color-primary);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.fk-builder__tool:disabled {
|
|
86
|
-
opacity: 0.4;
|
|
87
|
-
cursor: default;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.fk-builder__canvas {
|
|
91
|
-
min-height: 320px;
|
|
92
|
-
padding: calc(var(--fk-spacing) * 2);
|
|
93
|
-
border: 1px solid var(--fk-color-border);
|
|
94
|
-
border-radius: var(--fk-radius);
|
|
95
|
-
background: var(--fk-color-surface);
|
|
96
|
-
overflow-x: auto;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.fk-builder__inspector {
|
|
100
|
-
width: 260px;
|
|
101
|
-
flex-shrink: 0;
|
|
102
|
-
padding: calc(var(--fk-spacing) * 1.5);
|
|
103
|
-
border: 1px solid var(--fk-color-border);
|
|
104
|
-
border-radius: var(--fk-radius);
|
|
105
|
-
background: var(--fk-color-surface);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.fk-builder__hint {
|
|
109
|
-
margin: 0;
|
|
110
|
-
font-size: 0.8rem;
|
|
111
|
-
color: var(--fk-color-muted);
|
|
112
|
-
}
|