@streamline-pulse/formkrafter-wc 0.3.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.
- package/README.md +10 -8
- 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-CKMHMpID.js → p-28GBFlUX.js} +4 -4
- package/dist/components/{p-D6n74M9d.js → p-BGxmFcpL.js} +1 -1
- package/dist/components/{p-DYchD23x.js → p-BInUBjyw.js} +1 -1
- package/dist/{formkrafter-wc/p-C-wnqV3i.js → components/p-BietHxaT.js} +1 -1
- package/dist/components/{p-fDJP6whN.js → p-BnzSarwW.js} +1 -1
- package/dist/components/p-BpkKcCCr.js +1 -0
- package/dist/components/p-C0Y8qh8R.js +1 -0
- package/dist/components/p-C5OWoRhO.js +1 -0
- package/dist/components/{p-wuC5rVU7.js → p-CKs1CWVz.js} +1 -1
- package/dist/components/{p-v7LxwCAc.js → p-CZHykCYD.js} +1 -1
- package/dist/components/{p-4COASNrZ.js → p-CehxuHtl.js} +1 -1
- package/dist/components/p-CqVSd56Z.js +1 -0
- package/dist/components/p-CyZA17qf.js +1 -0
- package/dist/components/{p-BGkZP87K.js → p-D4HhZxQ-.js} +1 -1
- package/dist/components/p-DC6Wxbnz.js +1 -0
- package/dist/components/p-DRNycSdI.js +1 -0
- package/dist/components/{p--vL6GR31.js → p-Dh5Z49YD.js} +1 -1
- package/dist/components/p-DiOstAi9.js +1 -0
- package/dist/components/p-DlqnIm46.js +1 -0
- package/dist/components/{p-CIfjRTky.js → p-DshUS8Zm.js} +1 -1
- package/dist/components/{p-DMCkrZqi.js → p-RzeBwfwG.js} +1 -1
- package/dist/components/{p-BWdm2a6q.js → p-ajy8ZcBX.js} +1 -1
- package/dist/components/p-kYG3E0GQ.js +1 -0
- 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/formkrafter-wc/p-3579150a.entry.js +1 -0
- package/dist/formkrafter-wc/p-8b0ff66e.entry.js +1 -0
- package/dist/formkrafter-wc/p-BHZMDq2e.js +1 -0
- 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-4COASNrZ.js → p-CehxuHtl.js} +1 -1
- 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-hcT25XX4.js +12 -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.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
|
@@ -12,8 +12,14 @@ export declare class FkFormRender {
|
|
|
12
12
|
formSubmit: EventEmitter<DataChangeDetail>;
|
|
13
13
|
currentData: Record<string, unknown>;
|
|
14
14
|
touched: Record<string, boolean>;
|
|
15
|
-
|
|
15
|
+
expandedSpec?: BrickSpec;
|
|
16
|
+
expanding: boolean;
|
|
17
|
+
expandError?: string;
|
|
18
|
+
componentWillLoad(): Promise<void>;
|
|
16
19
|
syncData(next?: Record<string, unknown>): void;
|
|
20
|
+
onSpecChange(): void;
|
|
21
|
+
private effectiveSpec;
|
|
22
|
+
private runExpansion;
|
|
17
23
|
private publicData;
|
|
18
24
|
handleBrickDataChange(event: CustomEvent<Record<string, unknown>>): void;
|
|
19
25
|
private applyValueEffects;
|
|
@@ -46,6 +46,10 @@ export namespace Components {
|
|
|
46
46
|
"utils": Utils;
|
|
47
47
|
}
|
|
48
48
|
interface FkCodeEditor {
|
|
49
|
+
/**
|
|
50
|
+
* @default []
|
|
51
|
+
*/
|
|
52
|
+
"completions": string[];
|
|
49
53
|
/**
|
|
50
54
|
* @default ''
|
|
51
55
|
*/
|
|
@@ -67,6 +71,10 @@ export namespace Components {
|
|
|
67
71
|
"value"?: unknown;
|
|
68
72
|
}
|
|
69
73
|
interface FkDropArea {
|
|
74
|
+
/**
|
|
75
|
+
* @default false
|
|
76
|
+
*/
|
|
77
|
+
"empty": boolean;
|
|
70
78
|
"path": string;
|
|
71
79
|
}
|
|
72
80
|
interface FkEmptyForm {
|
|
@@ -576,6 +584,10 @@ declare namespace LocalJSX {
|
|
|
576
584
|
"utils": Utils;
|
|
577
585
|
}
|
|
578
586
|
interface FkCodeEditor {
|
|
587
|
+
/**
|
|
588
|
+
* @default []
|
|
589
|
+
*/
|
|
590
|
+
"completions"?: string[];
|
|
579
591
|
"onCodeChange"?: (event: FkCodeEditorCustomEvent<string>) => void;
|
|
580
592
|
/**
|
|
581
593
|
* @default ''
|
|
@@ -598,6 +610,10 @@ declare namespace LocalJSX {
|
|
|
598
610
|
"value"?: unknown;
|
|
599
611
|
}
|
|
600
612
|
interface FkDropArea {
|
|
613
|
+
/**
|
|
614
|
+
* @default false
|
|
615
|
+
*/
|
|
616
|
+
"empty"?: boolean;
|
|
601
617
|
"onBrickDrop"?: (event: FkDropAreaCustomEvent<BrickDropDetail>) => void;
|
|
602
618
|
"path": string;
|
|
603
619
|
}
|
|
@@ -737,6 +753,7 @@ declare namespace LocalJSX {
|
|
|
737
753
|
}
|
|
738
754
|
interface FkDropAreaAttributes {
|
|
739
755
|
"path": string;
|
|
756
|
+
"empty": boolean;
|
|
740
757
|
}
|
|
741
758
|
interface FkFileInputAttributes {
|
|
742
759
|
"disabled": boolean;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ export { registerBrick, registerBricks, getBrick, getBrickMolds, getBrickMoldsGr
|
|
|
5
5
|
export type { AnyBrick } from './registry/registry';
|
|
6
6
|
export { createBrick } from './registry/create-brick';
|
|
7
7
|
export type { WcBrickConfigs, WcBrickProps, BrickRenderFn } from './registry/create-brick';
|
|
8
|
-
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';
|
|
8
|
+
export { registerDefaultBricks, textInputBrick, emailBrick, passwordBrick, urlBrick, phoneBrick, textareaBrick, numberBrick, dateBrick, timeBrick, datetimeBrick, selectBrick, multiSelectBrick, radioBrick, selectBoxesBrick, checkboxBrick, tagsBrick, signatureBrick, addressBrick, codeBrick, fileBrick, dataGridBrick, hiddenBrick, contentBrick, recapBrick, nestedFormBrick, groupBrick, rowBrick, columnBrick, stepperBrick, tabsBrick, } from './registry/default-bricks';
|
|
9
9
|
export type { BrickDropDetail, BrickConfigsChangeDetail, BrickStylesChangeDetail, BrickValidationsChangeDetail, BrickRulesChangeDetail, BrickPathDetail, SpecChangeDetail, DataChangeDetail, } from './utils/events';
|
|
10
10
|
export { setFkTranslations, fkT, fkTOr, frFkTranslations } from './i18n/i18n';
|
|
11
11
|
export type { FkTranslations } from './i18n/i18n';
|
|
@@ -505,4 +505,40 @@ export declare const recapBrick: {
|
|
|
505
505
|
readonly defaultConfigs?: Record<string, unknown>;
|
|
506
506
|
getBrickEmptySpec(): BrickSpec;
|
|
507
507
|
};
|
|
508
|
+
export declare const codeBrick: {
|
|
509
|
+
render(props: WcBrickProps): VNode;
|
|
510
|
+
renderBuilder(props: WcBrickProps): VNode;
|
|
511
|
+
getComponent(props: WcBrickProps): VNode;
|
|
512
|
+
getComponentWithActions(props: WcBrickProps): VNode;
|
|
513
|
+
readonly type: import("@streamline-pulse/formkrafter-core").BrickType;
|
|
514
|
+
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
515
|
+
readonly id: string;
|
|
516
|
+
readonly name: string;
|
|
517
|
+
readonly configsForm?: BrickSpec;
|
|
518
|
+
readonly category?: string;
|
|
519
|
+
readonly styles?: Record<string, unknown>;
|
|
520
|
+
readonly unWrapData: boolean;
|
|
521
|
+
readonly isPrivate: boolean;
|
|
522
|
+
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
523
|
+
readonly defaultConfigs?: Record<string, unknown>;
|
|
524
|
+
getBrickEmptySpec(): BrickSpec;
|
|
525
|
+
};
|
|
526
|
+
export declare const nestedFormBrick: {
|
|
527
|
+
render(props: WcBrickProps): VNode;
|
|
528
|
+
renderBuilder(props: WcBrickProps): VNode;
|
|
529
|
+
getComponent(props: WcBrickProps): VNode;
|
|
530
|
+
getComponentWithActions(props: WcBrickProps): VNode;
|
|
531
|
+
readonly type: import("@streamline-pulse/formkrafter-core").BrickType;
|
|
532
|
+
readonly dataType: import("@streamline-pulse/formkrafter-core").JSONSchemaType;
|
|
533
|
+
readonly id: string;
|
|
534
|
+
readonly name: string;
|
|
535
|
+
readonly configsForm?: BrickSpec;
|
|
536
|
+
readonly category?: string;
|
|
537
|
+
readonly styles?: Record<string, unknown>;
|
|
538
|
+
readonly unWrapData: boolean;
|
|
539
|
+
readonly isPrivate: boolean;
|
|
540
|
+
readonly validators: import("@streamline-pulse/formkrafter-core").Validator[];
|
|
541
|
+
readonly defaultConfigs?: Record<string, unknown>;
|
|
542
|
+
getBrickEmptySpec(): BrickSpec;
|
|
543
|
+
};
|
|
508
544
|
export declare function registerDefaultBricks(): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const applyMask: (raw: string, mask?: string) => string;
|
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@streamline-pulse/formkrafter-wc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "FormKrafter web components (Stencil)",
|
|
5
|
-
"main": "dist/index.
|
|
6
|
-
"module": "dist/index.js",
|
|
5
|
+
"main": "dist/components/index.js",
|
|
6
|
+
"module": "dist/components/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
8
|
-
"collection": "dist/collection/collection-manifest.json",
|
|
9
|
-
"collection:main": "dist/collection/index.js",
|
|
10
8
|
"unpkg": "dist/formkrafter-wc/formkrafter-wc.esm.js",
|
|
11
9
|
"exports": {
|
|
12
10
|
".": {
|
|
13
11
|
"types": "./dist/types/index.d.ts",
|
|
14
|
-
"import": "./dist/components/index.js"
|
|
15
|
-
"require": "./dist/index.cjs.js"
|
|
12
|
+
"import": "./dist/components/index.js"
|
|
16
13
|
},
|
|
17
14
|
"./styles.css": "./dist/formkrafter-wc/formkrafter-wc.css",
|
|
18
15
|
"./dist/components": {
|
|
@@ -30,11 +27,6 @@
|
|
|
30
27
|
"./components/*": {
|
|
31
28
|
"import": "./dist/components/*.js",
|
|
32
29
|
"types": "./dist/components/*.d.ts"
|
|
33
|
-
},
|
|
34
|
-
"./loader": {
|
|
35
|
-
"import": "./loader/index.js",
|
|
36
|
-
"require": "./loader/index.cjs.js",
|
|
37
|
-
"types": "./loader/index.d.ts"
|
|
38
30
|
}
|
|
39
31
|
},
|
|
40
32
|
"license": "MIT",
|
|
@@ -47,8 +39,9 @@
|
|
|
47
39
|
"formkrafter"
|
|
48
40
|
],
|
|
49
41
|
"files": [
|
|
50
|
-
"dist/",
|
|
51
|
-
"
|
|
42
|
+
"dist/components/",
|
|
43
|
+
"dist/formkrafter-wc/",
|
|
44
|
+
"dist/types/",
|
|
52
45
|
"LICENSE"
|
|
53
46
|
],
|
|
54
47
|
"scripts": {
|
|
@@ -60,12 +53,14 @@
|
|
|
60
53
|
},
|
|
61
54
|
"dependencies": {
|
|
62
55
|
"@atlaskit/pragmatic-drag-and-drop": "^2.0.1",
|
|
56
|
+
"@codemirror/autocomplete": "^6.20.3",
|
|
63
57
|
"@codemirror/commands": "^6.10.4",
|
|
64
58
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
65
59
|
"@codemirror/language": "^6.12.4",
|
|
66
60
|
"@codemirror/state": "^6.7.1",
|
|
61
|
+
"@codemirror/theme-one-dark": "^6.1.3",
|
|
67
62
|
"@codemirror/view": "^6.43.6",
|
|
68
|
-
"@streamline-pulse/formkrafter-core": "0.
|
|
63
|
+
"@streamline-pulse/formkrafter-core": "0.4.0"
|
|
69
64
|
},
|
|
70
65
|
"devDependencies": {
|
|
71
66
|
"@stencil/core": "^4.43.5",
|