@streamline-pulse/formkrafter-wc 0.15.1 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/dist/components/fk-brick-actions.js +1 -1
  2. package/dist/components/fk-brick-list.js +1 -1
  3. package/dist/components/fk-brick-mold-item.js +1 -1
  4. package/dist/components/fk-brick-render.js +1 -1
  5. package/dist/components/fk-data-grid.js +1 -1
  6. package/dist/components/fk-drop-area.js +1 -1
  7. package/dist/components/fk-empty-form.js +1 -1
  8. package/dist/components/fk-file-input.js +1 -1
  9. package/dist/components/fk-form-builder.js +1 -1
  10. package/dist/components/fk-form-render.js +1 -1
  11. package/dist/components/fk-property-panel.js +1 -1
  12. package/dist/components/fk-rules-editor.js +1 -1
  13. package/dist/components/fk-select-input.js +1 -1
  14. package/dist/components/fk-signature-input.js +1 -1
  15. package/dist/components/fk-stepper.js +1 -1
  16. package/dist/components/fk-tabs.js +1 -1
  17. package/dist/components/index.js +1 -1
  18. package/dist/components/{p-DasHI1iN.js → p-7xW0mGtz.js} +1 -1
  19. package/dist/components/p-BTe3c2Zd.js +1 -0
  20. package/dist/components/p-Bf_aLSb3.js +1 -0
  21. package/dist/components/p-CVo-B070.js +1 -0
  22. package/dist/components/p-CYp-r6f_.js +17 -0
  23. package/dist/components/{p-Co19MZSe.js → p-Ctt0wPwr.js} +1 -1
  24. package/dist/components/{p-DTaQGwn6.js → p-D13zumDT.js} +1 -1
  25. package/dist/components/p-DGVLlXtk.js +1 -0
  26. package/dist/components/{p-R4T2mo2A.js → p-DMfVGzGP.js} +1 -1
  27. package/dist/components/{p-qWT7cYoF.js → p-DQeFl0HO.js} +1 -1
  28. package/dist/components/{p-ivyJWmcj.js → p-DdvGXuGt.js} +1 -1
  29. package/dist/components/{p-BX32u7uA.js → p-Dpsrm1Xa.js} +1 -1
  30. package/dist/components/{p-DdOwf47j.js → p-M475h0aT.js} +1 -1
  31. package/dist/components/{p-EvvVwq09.js → p-bQbwvTxv.js} +1 -1
  32. package/dist/components/{p-Br0Vx2OJ.js → p-mORH314n.js} +1 -1
  33. package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
  34. package/dist/formkrafter-wc/index.esm.js +1 -1
  35. package/dist/formkrafter-wc/p-24e86031.entry.js +1 -0
  36. package/dist/formkrafter-wc/p-DKxUvB9V.js +17 -0
  37. package/dist/formkrafter-wc/{p-6a794e67.entry.js → p-b7c58cd1.entry.js} +1 -1
  38. package/dist/types/components/fk-brick-render/fk-brick-render.d.ts +1 -1
  39. package/dist/types/components/fk-form-render/fk-form-render.d.ts +1 -1
  40. package/dist/types/components/fk-property-panel/fk-property-panel.d.ts +1 -0
  41. package/dist/types/components/fk-rules-editor/fk-rules-editor.d.ts +1 -0
  42. package/dist/types/components.d.ts +15 -7
  43. package/dist/types/utils/events.d.ts +4 -4
  44. package/package.json +2 -2
  45. package/dist/components/p-C2rZGevS.js +0 -12
  46. package/dist/components/p-C3e5aB-B.js +0 -1
  47. package/dist/components/p-C7zXpRR-.js +0 -1
  48. package/dist/components/p-CTNbGYU-.js +0 -1
  49. package/dist/components/p-CaBKn69O.js +0 -1
  50. package/dist/formkrafter-wc/p-506ba5dc.entry.js +0 -1
  51. package/dist/formkrafter-wc/p-Du9ei1LL.js +0 -12
@@ -1 +1 @@
1
- import{r as e,h as t,H as a}from"./p-qLZlXROB.js";import{f as r}from"./p-Du9ei1LL.js";const c=class{constructor(t){e(this,t)}render(){return t(a,{key:"a4d0825c084d261dfb8dc99a366a1e3f6e0c862d"},t("div",{key:"3e012165aec178ac8ea8e1211d891aa4d1d42d55",class:"fk-empty"},t("p",{key:"8c99ad57686aadd9d68a52767743ab907ec8e692",class:"fk-empty__title"},r("empty.title")),t("p",{key:"585262991b3497a3fcf430e26d53adc66ae9f74d",class:"fk-empty__hint"},r("empty.hint"))))}};c.style=".fk-empty.sc-fk-empty-form{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--fk-spacing) / 2);min-height:160px;border:2px dashed var(--fk-color-border);border-radius:var(--fk-radius);color:var(--fk-color-muted);text-align:center}.fk-empty__title.sc-fk-empty-form{margin:0;font-weight:600}.fk-empty__hint.sc-fk-empty-form{margin:0;font-size:0.875rem}";export{c as fk_empty_form}
1
+ import{r as e,h as t,H as a}from"./p-qLZlXROB.js";import{f as r}from"./p-DKxUvB9V.js";const c=class{constructor(t){e(this,t)}render(){return t(a,{key:"a4d0825c084d261dfb8dc99a366a1e3f6e0c862d"},t("div",{key:"3e012165aec178ac8ea8e1211d891aa4d1d42d55",class:"fk-empty"},t("p",{key:"8c99ad57686aadd9d68a52767743ab907ec8e692",class:"fk-empty__title"},r("empty.title")),t("p",{key:"585262991b3497a3fcf430e26d53adc66ae9f74d",class:"fk-empty__hint"},r("empty.hint"))))}};c.style=".fk-empty.sc-fk-empty-form{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:calc(var(--fk-spacing) / 2);min-height:160px;border:2px dashed var(--fk-color-border);border-radius:var(--fk-radius);color:var(--fk-color-muted);text-align:center}.fk-empty__title.sc-fk-empty-form{margin:0;font-weight:600}.fk-empty__hint.sc-fk-empty-form{margin:0;font-size:0.875rem}";export{c as fk_empty_form}
@@ -8,7 +8,7 @@ export declare class FkBrickRender {
8
8
  dataMap?: Record<string, unknown>;
9
9
  path: string;
10
10
  editable: boolean;
11
- selectedUid?: string;
11
+ selectedPath?: string;
12
12
  errors: Record<string, string>;
13
13
  locale?: string;
14
14
  utils: Utils;
@@ -6,7 +6,7 @@ export declare class FkFormRender {
6
6
  spec: BrickSpec;
7
7
  data?: Record<string, unknown>;
8
8
  editable: boolean;
9
- selectedUid?: string;
9
+ selectedPath?: string;
10
10
  locale?: string;
11
11
  formDataChange: EventEmitter<DataChangeDetail>;
12
12
  formSubmit: EventEmitter<DataChangeDetail>;
@@ -4,6 +4,7 @@ import type { BrickConfigsChangeDetail, BrickStylesChangeDetail, BrickValidation
4
4
  type PanelTab = 'config' | 'validation' | 'styles' | 'rules';
5
5
  export declare class FkPropertyPanel {
6
6
  brick: BrickSpec;
7
+ path?: string;
7
8
  fields: string[];
8
9
  locales: string[];
9
10
  locale?: string;
@@ -4,6 +4,7 @@ import type { BrickRulesChangeDetail } from '../../utils/events';
4
4
  type RuleMode = 'simple' | 'json' | 'javaScript';
5
5
  export declare class FkRulesEditor {
6
6
  brick: BrickSpec;
7
+ path?: string;
7
8
  fields: string[];
8
9
  brickRulesChange: EventEmitter<BrickRulesChangeDetail>;
9
10
  forcedModes: Record<number, RuleMode>;
@@ -43,7 +43,7 @@ export namespace Components {
43
43
  */
44
44
  "path": string;
45
45
  "rootSpec"?: BrickSpec;
46
- "selectedUid"?: string;
46
+ "selectedPath"?: string;
47
47
  "utils": Utils;
48
48
  }
49
49
  interface FkCodeEditor {
@@ -109,7 +109,7 @@ export namespace Components {
109
109
  */
110
110
  "editable": boolean;
111
111
  "locale"?: string;
112
- "selectedUid"?: string;
112
+ "selectedPath"?: string;
113
113
  "spec": BrickSpec;
114
114
  "validate": () => Promise<ValidationResult>;
115
115
  }
@@ -125,6 +125,7 @@ export namespace Components {
125
125
  * @default []
126
126
  */
127
127
  "locales": string[];
128
+ "path"?: string;
128
129
  }
129
130
  interface FkRulesEditor {
130
131
  "brick": BrickSpec;
@@ -132,6 +133,7 @@ export namespace Components {
132
133
  * @default []
133
134
  */
134
135
  "fields": string[];
136
+ "path"?: string;
135
137
  }
136
138
  interface FkSelectInput {
137
139
  "accessibleLabel"?: string;
@@ -585,7 +587,7 @@ declare namespace LocalJSX {
585
587
  */
586
588
  "path"?: string;
587
589
  "rootSpec"?: BrickSpec;
588
- "selectedUid"?: string;
590
+ "selectedPath"?: string;
589
591
  "utils": Utils;
590
592
  }
591
593
  interface FkCodeEditor {
@@ -657,7 +659,7 @@ declare namespace LocalJSX {
657
659
  "locale"?: string;
658
660
  "onFormDataChange"?: (event: FkFormRenderCustomEvent<DataChangeDetail>) => void;
659
661
  "onFormSubmit"?: (event: FkFormRenderCustomEvent<DataChangeDetail>) => void;
660
- "selectedUid"?: string;
662
+ "selectedPath"?: string;
661
663
  "spec": BrickSpec;
662
664
  }
663
665
  interface FkPropertyPanel {
@@ -675,6 +677,7 @@ declare namespace LocalJSX {
675
677
  "onBrickConfigsChange"?: (event: FkPropertyPanelCustomEvent<BrickConfigsChangeDetail>) => void;
676
678
  "onBrickStylesChange"?: (event: FkPropertyPanelCustomEvent<BrickStylesChangeDetail>) => void;
677
679
  "onBrickValidationsChange"?: (event: FkPropertyPanelCustomEvent<BrickValidationsChangeDetail>) => void;
680
+ "path"?: string;
678
681
  }
679
682
  interface FkRulesEditor {
680
683
  "brick": BrickSpec;
@@ -683,6 +686,7 @@ declare namespace LocalJSX {
683
686
  */
684
687
  "fields"?: string[];
685
688
  "onBrickRulesChange"?: (event: FkRulesEditorCustomEvent<BrickRulesChangeDetail>) => void;
689
+ "path"?: string;
686
690
  }
687
691
  interface FkSelectInput {
688
692
  "accessibleLabel"?: string;
@@ -751,7 +755,7 @@ declare namespace LocalJSX {
751
755
  interface FkBrickRenderAttributes {
752
756
  "path": string;
753
757
  "editable": boolean;
754
- "selectedUid": string;
758
+ "selectedPath": string;
755
759
  "locale": string;
756
760
  }
757
761
  interface FkCodeEditorAttributes {
@@ -777,13 +781,17 @@ declare namespace LocalJSX {
777
781
  }
778
782
  interface FkFormRenderAttributes {
779
783
  "editable": boolean;
780
- "selectedUid": string;
784
+ "selectedPath": string;
781
785
  "locale": string;
782
786
  }
783
787
  interface FkPropertyPanelAttributes {
788
+ "path": string;
784
789
  "locale": string;
785
790
  "editLocale": string;
786
791
  }
792
+ interface FkRulesEditorAttributes {
793
+ "path": string;
794
+ }
787
795
  interface FkSelectInputAttributes {
788
796
  "value": string | string[];
789
797
  "disabled": boolean;
@@ -818,7 +826,7 @@ declare namespace LocalJSX {
818
826
  "fk-form-builder": Omit<FkFormBuilder, keyof FkFormBuilderAttributes> & { [K in keyof FkFormBuilder & keyof FkFormBuilderAttributes]?: FkFormBuilder[K] } & { [K in keyof FkFormBuilder & keyof FkFormBuilderAttributes as `attr:${K}`]?: FkFormBuilderAttributes[K] } & { [K in keyof FkFormBuilder & keyof FkFormBuilderAttributes as `prop:${K}`]?: FkFormBuilder[K] };
819
827
  "fk-form-render": Omit<FkFormRender, keyof FkFormRenderAttributes> & { [K in keyof FkFormRender & keyof FkFormRenderAttributes]?: FkFormRender[K] } & { [K in keyof FkFormRender & keyof FkFormRenderAttributes as `attr:${K}`]?: FkFormRenderAttributes[K] } & { [K in keyof FkFormRender & keyof FkFormRenderAttributes as `prop:${K}`]?: FkFormRender[K] };
820
828
  "fk-property-panel": Omit<FkPropertyPanel, keyof FkPropertyPanelAttributes> & { [K in keyof FkPropertyPanel & keyof FkPropertyPanelAttributes]?: FkPropertyPanel[K] } & { [K in keyof FkPropertyPanel & keyof FkPropertyPanelAttributes as `attr:${K}`]?: FkPropertyPanelAttributes[K] } & { [K in keyof FkPropertyPanel & keyof FkPropertyPanelAttributes as `prop:${K}`]?: FkPropertyPanel[K] };
821
- "fk-rules-editor": FkRulesEditor;
829
+ "fk-rules-editor": Omit<FkRulesEditor, keyof FkRulesEditorAttributes> & { [K in keyof FkRulesEditor & keyof FkRulesEditorAttributes]?: FkRulesEditor[K] } & { [K in keyof FkRulesEditor & keyof FkRulesEditorAttributes as `attr:${K}`]?: FkRulesEditorAttributes[K] } & { [K in keyof FkRulesEditor & keyof FkRulesEditorAttributes as `prop:${K}`]?: FkRulesEditor[K] };
822
830
  "fk-select-input": Omit<FkSelectInput, keyof FkSelectInputAttributes> & { [K in keyof FkSelectInput & keyof FkSelectInputAttributes]?: FkSelectInput[K] } & { [K in keyof FkSelectInput & keyof FkSelectInputAttributes as `attr:${K}`]?: FkSelectInputAttributes[K] } & { [K in keyof FkSelectInput & keyof FkSelectInputAttributes as `prop:${K}`]?: FkSelectInput[K] };
823
831
  "fk-signature-input": Omit<FkSignatureInput, keyof FkSignatureInputAttributes> & { [K in keyof FkSignatureInput & keyof FkSignatureInputAttributes]?: FkSignatureInput[K] } & { [K in keyof FkSignatureInput & keyof FkSignatureInputAttributes as `attr:${K}`]?: FkSignatureInputAttributes[K] } & { [K in keyof FkSignatureInput & keyof FkSignatureInputAttributes as `prop:${K}`]?: FkSignatureInput[K] };
824
832
  "fk-stepper": Omit<FkStepper, keyof FkStepperAttributes> & { [K in keyof FkStepper & keyof FkStepperAttributes]?: FkStepper[K] } & { [K in keyof FkStepper & keyof FkStepperAttributes as `attr:${K}`]?: FkStepperAttributes[K] } & { [K in keyof FkStepper & keyof FkStepperAttributes as `prop:${K}`]?: FkStepper[K] };
@@ -8,19 +8,19 @@ export interface BrickDropDetail {
8
8
  }
9
9
  export interface BrickConfigsChangeDetail {
10
10
  configs: BrickBaseConfigs & Record<string, unknown>;
11
- uid?: string;
11
+ path?: string;
12
12
  }
13
13
  export interface BrickStylesChangeDetail {
14
14
  styles: BrickStyles<string>;
15
- uid?: string;
15
+ path?: string;
16
16
  }
17
17
  export interface BrickValidationsChangeDetail {
18
18
  validations: Validation[];
19
- uid?: string;
19
+ path?: string;
20
20
  }
21
21
  export interface BrickRulesChangeDetail {
22
22
  rules: Rule[];
23
- uid?: string;
23
+ path?: string;
24
24
  }
25
25
  export interface BrickPathDetail {
26
26
  path: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamline-pulse/formkrafter-wc",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "type": "module",
5
5
  "description": "FormKrafter web components (Stencil)",
6
6
  "main": "dist/components/index.js",
@@ -62,7 +62,7 @@
62
62
  "@codemirror/state": "^6.7.1",
63
63
  "@codemirror/theme-one-dark": "^6.1.3",
64
64
  "@codemirror/view": "^6.43.6",
65
- "@streamline-pulse/formkrafter-core": "0.13.1"
65
+ "@streamline-pulse/formkrafter-core": "0.15.1"
66
66
  },
67
67
  "devDependencies": {
68
68
  "@stencil/core": "^4.43.5",