@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.
Files changed (158) hide show
  1. package/README.md +10 -8
  2. package/dist/components/fk-brick-actions.js +1 -1
  3. package/dist/components/fk-brick-list.js +1 -1
  4. package/dist/components/fk-brick-mold-item.js +1 -1
  5. package/dist/components/fk-brick-render.js +1 -1
  6. package/dist/components/fk-code-editor.js +1 -1
  7. package/dist/components/fk-data-grid.js +1 -1
  8. package/dist/components/fk-drop-area.js +1 -1
  9. package/dist/components/fk-empty-form.js +1 -1
  10. package/dist/components/fk-file-input.js +1 -1
  11. package/dist/components/fk-form-builder.js +1 -1
  12. package/dist/components/fk-form-render.js +1 -1
  13. package/dist/components/fk-property-panel.js +1 -1
  14. package/dist/components/fk-rules-editor.js +1 -1
  15. package/dist/components/fk-select-input.js +1 -1
  16. package/dist/components/fk-signature-input.js +1 -1
  17. package/dist/components/fk-stepper.js +1 -1
  18. package/dist/components/fk-tabs.js +1 -1
  19. package/dist/components/index.js +1 -1
  20. package/dist/components/{p-CKMHMpID.js → p-28GBFlUX.js} +4 -4
  21. package/dist/components/{p-D6n74M9d.js → p-BGxmFcpL.js} +1 -1
  22. package/dist/components/{p-DYchD23x.js → p-BInUBjyw.js} +1 -1
  23. package/dist/{formkrafter-wc/p-C-wnqV3i.js → components/p-BietHxaT.js} +1 -1
  24. package/dist/components/{p-fDJP6whN.js → p-BnzSarwW.js} +1 -1
  25. package/dist/components/p-BpkKcCCr.js +1 -0
  26. package/dist/components/p-C0Y8qh8R.js +1 -0
  27. package/dist/components/p-C5OWoRhO.js +1 -0
  28. package/dist/components/{p-wuC5rVU7.js → p-CKs1CWVz.js} +1 -1
  29. package/dist/components/{p-v7LxwCAc.js → p-CZHykCYD.js} +1 -1
  30. package/dist/components/{p-4COASNrZ.js → p-CehxuHtl.js} +1 -1
  31. package/dist/components/p-CqVSd56Z.js +1 -0
  32. package/dist/components/p-CyZA17qf.js +1 -0
  33. package/dist/components/{p-BGkZP87K.js → p-D4HhZxQ-.js} +1 -1
  34. package/dist/components/p-DC6Wxbnz.js +1 -0
  35. package/dist/components/p-DRNycSdI.js +1 -0
  36. package/dist/components/{p--vL6GR31.js → p-Dh5Z49YD.js} +1 -1
  37. package/dist/components/p-DiOstAi9.js +1 -0
  38. package/dist/components/p-DlqnIm46.js +1 -0
  39. package/dist/components/{p-CIfjRTky.js → p-DshUS8Zm.js} +1 -1
  40. package/dist/components/{p-DMCkrZqi.js → p-RzeBwfwG.js} +1 -1
  41. package/dist/components/{p-BWdm2a6q.js → p-ajy8ZcBX.js} +1 -1
  42. package/dist/components/p-kYG3E0GQ.js +1 -0
  43. package/dist/components/p-tTJg_I4V.js +1 -0
  44. package/dist/formkrafter-wc/formkrafter-wc.css +1 -1
  45. package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -1
  46. package/dist/formkrafter-wc/index.esm.js +1 -1
  47. package/dist/formkrafter-wc/p-3579150a.entry.js +1 -0
  48. package/dist/formkrafter-wc/p-8b0ff66e.entry.js +1 -0
  49. package/dist/formkrafter-wc/p-BHZMDq2e.js +1 -0
  50. package/dist/{components/p-C-wnqV3i.js → formkrafter-wc/p-BietHxaT.js} +1 -1
  51. package/dist/formkrafter-wc/p-C0Y8qh8R.js +1 -0
  52. package/dist/formkrafter-wc/{p-4COASNrZ.js → p-CehxuHtl.js} +1 -1
  53. package/dist/formkrafter-wc/p-DlqnIm46.js +1 -0
  54. package/dist/formkrafter-wc/{p-DMCkrZqi.js → p-RzeBwfwG.js} +1 -1
  55. package/dist/formkrafter-wc/p-WWmY5Z05.js +1 -0
  56. package/dist/formkrafter-wc/p-hcT25XX4.js +12 -0
  57. package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +1 -0
  58. package/dist/types/components/fk-data-grid/fk-data-grid.d.ts +1 -0
  59. package/dist/types/components/fk-drop-area/fk-drop-area.d.ts +1 -0
  60. package/dist/types/components/fk-form-render/fk-form-render.d.ts +7 -1
  61. package/dist/types/components.d.ts +17 -0
  62. package/dist/types/index.d.ts +1 -1
  63. package/dist/types/registry/default-bricks.d.ts +36 -0
  64. package/dist/types/utils/mask.d.ts +1 -0
  65. package/package.json +10 -15
  66. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -5
  67. package/dist/cjs/fk-brick-actions_18.cjs.entry.js +0 -4224
  68. package/dist/cjs/formkrafter-wc.cjs.js +0 -25
  69. package/dist/cjs/index-Bhy1RJMV.js +0 -3042
  70. package/dist/cjs/index-CImTe9BG.js +0 -2126
  71. package/dist/cjs/index-CdaT3-qx.js +0 -5444
  72. package/dist/cjs/index-CkPPRg03.js +0 -17548
  73. package/dist/cjs/index-DHgK3reD.js +0 -12233
  74. package/dist/cjs/index-Ds0sDbXV.js +0 -4019
  75. package/dist/cjs/index-c9BL7y3N.js +0 -1922
  76. package/dist/cjs/index.cjs.js +0 -48
  77. package/dist/cjs/loader.cjs.js +0 -13
  78. package/dist/collection/collection-manifest.json +0 -30
  79. package/dist/collection/components/fk-brick-actions/fk-brick-actions.css +0 -78
  80. package/dist/collection/components/fk-brick-actions/fk-brick-actions.js +0 -215
  81. package/dist/collection/components/fk-brick-list/fk-brick-list.css +0 -71
  82. package/dist/collection/components/fk-brick-list/fk-brick-list.js +0 -55
  83. package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.css +0 -33
  84. package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.js +0 -73
  85. package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.css +0 -8
  86. package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.js +0 -18
  87. package/dist/collection/components/fk-brick-render/fk-brick-render.js +0 -447
  88. package/dist/collection/components/fk-code-editor/fk-code-editor.css +0 -26
  89. package/dist/collection/components/fk-code-editor/fk-code-editor.js +0 -145
  90. package/dist/collection/components/fk-data-grid/fk-data-grid.css +0 -75
  91. package/dist/collection/components/fk-data-grid/fk-data-grid.js +0 -300
  92. package/dist/collection/components/fk-drop-area/fk-drop-area.css +0 -18
  93. package/dist/collection/components/fk-drop-area/fk-drop-area.js +0 -98
  94. package/dist/collection/components/fk-empty-form/fk-empty-form.css +0 -22
  95. package/dist/collection/components/fk-empty-form/fk-empty-form.js +0 -19
  96. package/dist/collection/components/fk-file-input/fk-file-input.css +0 -95
  97. package/dist/collection/components/fk-file-input/fk-file-input.js +0 -239
  98. package/dist/collection/components/fk-form-builder/fk-form-builder.css +0 -112
  99. package/dist/collection/components/fk-form-builder/fk-form-builder.js +0 -431
  100. package/dist/collection/components/fk-form-render/fk-form-render.css +0 -7
  101. package/dist/collection/components/fk-form-render/fk-form-render.js +0 -352
  102. package/dist/collection/components/fk-property-panel/fk-property-panel.css +0 -153
  103. package/dist/collection/components/fk-property-panel/fk-property-panel.js +0 -388
  104. package/dist/collection/components/fk-rules-editor/fk-rules-editor.css +0 -166
  105. package/dist/collection/components/fk-rules-editor/fk-rules-editor.js +0 -250
  106. package/dist/collection/components/fk-select-input/fk-select-input.css +0 -153
  107. package/dist/collection/components/fk-select-input/fk-select-input.js +0 -454
  108. package/dist/collection/components/fk-signature-input/fk-signature-input.css +0 -42
  109. package/dist/collection/components/fk-signature-input/fk-signature-input.js +0 -158
  110. package/dist/collection/components/fk-stepper/fk-stepper.css +0 -99
  111. package/dist/collection/components/fk-stepper/fk-stepper.js +0 -285
  112. package/dist/collection/components/fk-tabs/fk-tabs.css +0 -38
  113. package/dist/collection/components/fk-tabs/fk-tabs.js +0 -249
  114. package/dist/collection/i18n/i18n.js +0 -265
  115. package/dist/collection/index.js +0 -5
  116. package/dist/collection/registry/create-brick.js +0 -34
  117. package/dist/collection/registry/default-bricks.js +0 -564
  118. package/dist/collection/registry/registry.js +0 -44
  119. package/dist/collection/utils/brick-data.js +0 -16
  120. package/dist/collection/utils/drop.js +0 -14
  121. package/dist/collection/utils/events.js +0 -1
  122. package/dist/collection/utils/options.js +0 -21
  123. package/dist/collection/utils/remote.js +0 -27
  124. package/dist/collection/utils/rule-condition.js +0 -72
  125. package/dist/collection/utils/style.js +0 -11
  126. package/dist/components/p-BOmBVgfJ.js +0 -1
  127. package/dist/components/p-B_-x-GlA.js +0 -1
  128. package/dist/components/p-Br1s4Ujx.js +0 -1
  129. package/dist/components/p-CUF31e-P.js +0 -1
  130. package/dist/components/p-CWQX0sXS.js +0 -1
  131. package/dist/components/p-DFe3zZCI.js +0 -1
  132. package/dist/components/p-DOInQkG6.js +0 -1
  133. package/dist/components/p-PAr7WoWG.js +0 -1
  134. package/dist/components/p-YyGnQmX-.js +0 -1
  135. package/dist/components/p-swxZqinH.js +0 -1
  136. package/dist/esm/app-globals-DQuL1Twl.js +0 -3
  137. package/dist/esm/fk-brick-actions_18.entry.js +0 -4205
  138. package/dist/esm/formkrafter-wc.js +0 -21
  139. package/dist/esm/index-BAcz7b5u.js +0 -5416
  140. package/dist/esm/index-BkRMoLXK.js +0 -3029
  141. package/dist/esm/index-CGMDfZ5m.js +0 -1808
  142. package/dist/esm/index-D7Cta1UB.js +0 -17488
  143. package/dist/esm/index-DtcM1yw5.js +0 -3991
  144. package/dist/esm/index-DuVf3NlP.js +0 -12222
  145. package/dist/esm/index-qLZlXROB.js +0 -2117
  146. package/dist/esm/index.js +0 -2
  147. package/dist/esm/loader.js +0 -11
  148. package/dist/formkrafter-wc/p-6d29555b.entry.js +0 -1
  149. package/dist/formkrafter-wc/p-DOInQkG6.js +0 -1
  150. package/dist/formkrafter-wc/p-Ddu6BquK.js +0 -12
  151. package/dist/index.cjs.js +0 -1
  152. package/dist/index.js +0 -1
  153. package/dist/stencil.config.js +0 -34
  154. package/loader/cdn.js +0 -1
  155. package/loader/index.cjs.js +0 -1
  156. package/loader/index.d.ts +0 -24
  157. package/loader/index.es2017.js +0 -1
  158. package/loader/index.js +0 -2
@@ -3,6 +3,7 @@ export declare class FkCodeEditor {
3
3
  host: HTMLElement;
4
4
  value: string;
5
5
  placeholder: string;
6
+ completions: string[];
6
7
  codeChange: EventEmitter<string>;
7
8
  private view?;
8
9
  private disconnected;
@@ -16,6 +16,7 @@ export declare class FkDataGrid {
16
16
  handleRowChange(event: CustomEvent<Record<string, unknown>>): void;
17
17
  validateRows(): Promise<ValidationResult>;
18
18
  private addRow;
19
+ private moveRow;
19
20
  private removeRow;
20
21
  render(): any;
21
22
  }
@@ -3,6 +3,7 @@ import type { BrickDropDetail } from '../../utils/events';
3
3
  export declare class FkDropArea {
4
4
  host: HTMLElement;
5
5
  path: string;
6
+ empty: boolean;
6
7
  brickDrop: EventEmitter<BrickDropDetail>;
7
8
  isOver: boolean;
8
9
  private cleanup?;
@@ -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
- componentWillLoad(): void;
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;
@@ -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.0",
3
+ "version": "0.4.0",
4
4
  "description": "FormKrafter web components (Stencil)",
5
- "main": "dist/index.cjs.js",
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
- "loader/",
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.3.0"
63
+ "@streamline-pulse/formkrafter-core": "0.4.0"
69
64
  },
70
65
  "devDependencies": {
71
66
  "@stencil/core": "^4.43.5",
@@ -1,5 +0,0 @@
1
- 'use strict';
2
-
3
- const globalScripts = () => {};
4
-
5
- exports.globalScripts = globalScripts;