@streamline-pulse/formkrafter-wc 0.1.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 (174) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +140 -0
  3. package/dist/cjs/app-globals-V2Kpy_OQ.js +5 -0
  4. package/dist/cjs/fk-brick-actions_18.cjs.entry.js +26442 -0
  5. package/dist/cjs/formkrafter-wc.cjs.js +25 -0
  6. package/dist/cjs/index-By4GGW_q.js +17346 -0
  7. package/dist/cjs/index-D_7eGIJ0.js +2090 -0
  8. package/dist/cjs/index.cjs.js +47 -0
  9. package/dist/cjs/loader.cjs.js +13 -0
  10. package/dist/collection/collection-manifest.json +30 -0
  11. package/dist/collection/components/fk-brick-actions/fk-brick-actions.css +78 -0
  12. package/dist/collection/components/fk-brick-actions/fk-brick-actions.js +215 -0
  13. package/dist/collection/components/fk-brick-list/fk-brick-list.css +71 -0
  14. package/dist/collection/components/fk-brick-list/fk-brick-list.js +55 -0
  15. package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.css +33 -0
  16. package/dist/collection/components/fk-brick-mold-item/fk-brick-mold-item.js +73 -0
  17. package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.css +8 -0
  18. package/dist/collection/components/fk-brick-not-found/fk-brick-not-found.js +18 -0
  19. package/dist/collection/components/fk-brick-render/fk-brick-render.js +419 -0
  20. package/dist/collection/components/fk-code-editor/fk-code-editor.css +26 -0
  21. package/dist/collection/components/fk-code-editor/fk-code-editor.js +136 -0
  22. package/dist/collection/components/fk-data-grid/fk-data-grid.css +75 -0
  23. package/dist/collection/components/fk-data-grid/fk-data-grid.js +300 -0
  24. package/dist/collection/components/fk-drop-area/fk-drop-area.css +18 -0
  25. package/dist/collection/components/fk-drop-area/fk-drop-area.js +98 -0
  26. package/dist/collection/components/fk-empty-form/fk-empty-form.css +22 -0
  27. package/dist/collection/components/fk-empty-form/fk-empty-form.js +19 -0
  28. package/dist/collection/components/fk-file-input/fk-file-input.css +74 -0
  29. package/dist/collection/components/fk-file-input/fk-file-input.js +157 -0
  30. package/dist/collection/components/fk-form-builder/fk-form-builder.css +82 -0
  31. package/dist/collection/components/fk-form-builder/fk-form-builder.js +431 -0
  32. package/dist/collection/components/fk-form-render/fk-form-render.css +7 -0
  33. package/dist/collection/components/fk-form-render/fk-form-render.js +352 -0
  34. package/dist/collection/components/fk-property-panel/fk-property-panel.css +153 -0
  35. package/dist/collection/components/fk-property-panel/fk-property-panel.js +384 -0
  36. package/dist/collection/components/fk-rules-editor/fk-rules-editor.css +166 -0
  37. package/dist/collection/components/fk-rules-editor/fk-rules-editor.js +250 -0
  38. package/dist/collection/components/fk-select-input/fk-select-input.css +144 -0
  39. package/dist/collection/components/fk-select-input/fk-select-input.js +356 -0
  40. package/dist/collection/components/fk-signature-input/fk-signature-input.css +42 -0
  41. package/dist/collection/components/fk-signature-input/fk-signature-input.js +158 -0
  42. package/dist/collection/components/fk-stepper/fk-stepper.css +85 -0
  43. package/dist/collection/components/fk-stepper/fk-stepper.js +282 -0
  44. package/dist/collection/components/fk-tabs/fk-tabs.css +38 -0
  45. package/dist/collection/components/fk-tabs/fk-tabs.js +236 -0
  46. package/dist/collection/i18n/i18n.js +245 -0
  47. package/dist/collection/index.js +5 -0
  48. package/dist/collection/registry/create-brick.js +34 -0
  49. package/dist/collection/registry/default-bricks.js +424 -0
  50. package/dist/collection/registry/registry.js +44 -0
  51. package/dist/collection/utils/brick-data.js +16 -0
  52. package/dist/collection/utils/drop.js +14 -0
  53. package/dist/collection/utils/events.js +1 -0
  54. package/dist/collection/utils/options.js +21 -0
  55. package/dist/collection/utils/remote.js +27 -0
  56. package/dist/collection/utils/rule-condition.js +72 -0
  57. package/dist/collection/utils/style.js +11 -0
  58. package/dist/components/fk-brick-actions.d.ts +11 -0
  59. package/dist/components/fk-brick-actions.js +1 -0
  60. package/dist/components/fk-brick-list.d.ts +11 -0
  61. package/dist/components/fk-brick-list.js +1 -0
  62. package/dist/components/fk-brick-mold-item.d.ts +11 -0
  63. package/dist/components/fk-brick-mold-item.js +1 -0
  64. package/dist/components/fk-brick-not-found.d.ts +11 -0
  65. package/dist/components/fk-brick-not-found.js +1 -0
  66. package/dist/components/fk-brick-render.d.ts +11 -0
  67. package/dist/components/fk-brick-render.js +1 -0
  68. package/dist/components/fk-code-editor.d.ts +11 -0
  69. package/dist/components/fk-code-editor.js +1 -0
  70. package/dist/components/fk-data-grid.d.ts +11 -0
  71. package/dist/components/fk-data-grid.js +1 -0
  72. package/dist/components/fk-drop-area.d.ts +11 -0
  73. package/dist/components/fk-drop-area.js +1 -0
  74. package/dist/components/fk-empty-form.d.ts +11 -0
  75. package/dist/components/fk-empty-form.js +1 -0
  76. package/dist/components/fk-file-input.d.ts +11 -0
  77. package/dist/components/fk-file-input.js +1 -0
  78. package/dist/components/fk-form-builder.d.ts +11 -0
  79. package/dist/components/fk-form-builder.js +1 -0
  80. package/dist/components/fk-form-render.d.ts +11 -0
  81. package/dist/components/fk-form-render.js +1 -0
  82. package/dist/components/fk-property-panel.d.ts +11 -0
  83. package/dist/components/fk-property-panel.js +1 -0
  84. package/dist/components/fk-rules-editor.d.ts +11 -0
  85. package/dist/components/fk-rules-editor.js +1 -0
  86. package/dist/components/fk-select-input.d.ts +11 -0
  87. package/dist/components/fk-select-input.js +1 -0
  88. package/dist/components/fk-signature-input.d.ts +11 -0
  89. package/dist/components/fk-signature-input.js +1 -0
  90. package/dist/components/fk-stepper.d.ts +11 -0
  91. package/dist/components/fk-stepper.js +1 -0
  92. package/dist/components/fk-tabs.d.ts +11 -0
  93. package/dist/components/fk-tabs.js +1 -0
  94. package/dist/components/index.d.ts +35 -0
  95. package/dist/components/index.js +1 -0
  96. package/dist/components/p-92BozD8S.js +1 -0
  97. package/dist/components/p-B4vAN-UA.js +1 -0
  98. package/dist/components/p-BB3BQPr8.js +1 -0
  99. package/dist/components/p-BCQ-hj6j.js +1 -0
  100. package/dist/components/p-BIEpAM4V.js +1 -0
  101. package/dist/components/p-BLKRn62s.js +1 -0
  102. package/dist/components/p-BNREw7TY.js +1 -0
  103. package/dist/components/p-BOvjVIvo.js +1 -0
  104. package/dist/components/p-BQP1WryV.js +1 -0
  105. package/dist/components/p-BXFug2Ql.js +1 -0
  106. package/dist/components/p-Ctt--jpe.js +1 -0
  107. package/dist/components/p-D318uFl-.js +1 -0
  108. package/dist/components/p-DJDrDvoC.js +1 -0
  109. package/dist/components/p-DKGyje7v.js +1 -0
  110. package/dist/components/p-DKoJovNt.js +1 -0
  111. package/dist/components/p-DWgjI3TW.js +1 -0
  112. package/dist/components/p-Diknh4-7.js +1 -0
  113. package/dist/components/p-DtzMNM4i.js +1 -0
  114. package/dist/components/p-QC41Uj05.js +1 -0
  115. package/dist/components/p-TvmRksgg.js +1 -0
  116. package/dist/components/p-ZEW2q-4b.js +1 -0
  117. package/dist/components/p-dX7Lo8Fe.js +12 -0
  118. package/dist/components/p-gPc0o8Jb.js +1 -0
  119. package/dist/esm/app-globals-DQuL1Twl.js +3 -0
  120. package/dist/esm/fk-brick-actions_18.entry.js +26423 -0
  121. package/dist/esm/formkrafter-wc.js +21 -0
  122. package/dist/esm/index-BQqrzKxo.js +2081 -0
  123. package/dist/esm/index-BTmZ8XET.js +17288 -0
  124. package/dist/esm/index.js +2 -0
  125. package/dist/esm/loader.js +11 -0
  126. package/dist/formkrafter-wc/formkrafter-wc.css +1 -0
  127. package/dist/formkrafter-wc/formkrafter-wc.esm.js +1 -0
  128. package/dist/formkrafter-wc/index.esm.js +1 -0
  129. package/dist/formkrafter-wc/p-BQqrzKxo.js +2 -0
  130. package/dist/formkrafter-wc/p-BXIsVlA6.js +12 -0
  131. package/dist/formkrafter-wc/p-DQuL1Twl.js +1 -0
  132. package/dist/formkrafter-wc/p-f6bc0be0.entry.js +1 -0
  133. package/dist/index.cjs.js +1 -0
  134. package/dist/index.js +1 -0
  135. package/dist/stencil.config.js +34 -0
  136. package/dist/types/Users/datagnikan/Desktop/WorkSpace/streamline-pulse/formkrafter-js/formkrafter/packages/wc/.stencil/stencil.config.d.ts +2 -0
  137. package/dist/types/components/fk-brick-actions/fk-brick-actions.d.ts +18 -0
  138. package/dist/types/components/fk-brick-list/fk-brick-list.d.ts +6 -0
  139. package/dist/types/components/fk-brick-mold-item/fk-brick-mold-item.d.ts +10 -0
  140. package/dist/types/components/fk-brick-not-found/fk-brick-not-found.d.ts +3 -0
  141. package/dist/types/components/fk-brick-render/fk-brick-render.d.ts +22 -0
  142. package/dist/types/components/fk-code-editor/fk-code-editor.d.ts +13 -0
  143. package/dist/types/components/fk-data-grid/fk-data-grid.d.ts +21 -0
  144. package/dist/types/components/fk-drop-area/fk-drop-area.d.ts +12 -0
  145. package/dist/types/components/fk-empty-form/fk-empty-form.d.ts +3 -0
  146. package/dist/types/components/fk-file-input/fk-file-input.d.ts +14 -0
  147. package/dist/types/components/fk-form-builder/fk-form-builder.d.ts +43 -0
  148. package/dist/types/components/fk-form-render/fk-form-render.d.ts +29 -0
  149. package/dist/types/components/fk-property-panel/fk-property-panel.d.ts +34 -0
  150. package/dist/types/components/fk-rules-editor/fk-rules-editor.d.ts +29 -0
  151. package/dist/types/components/fk-select-input/fk-select-input.d.ts +37 -0
  152. package/dist/types/components/fk-signature-input/fk-signature-input.d.ts +19 -0
  153. package/dist/types/components/fk-stepper/fk-stepper.d.ts +27 -0
  154. package/dist/types/components/fk-tabs/fk-tabs.d.ts +23 -0
  155. package/dist/types/components.d.ts +796 -0
  156. package/dist/types/i18n/i18n.d.ts +5 -0
  157. package/dist/types/index.d.ts +11 -0
  158. package/dist/types/registry/create-brick.d.ts +37 -0
  159. package/dist/types/registry/default-bricks.d.ts +489 -0
  160. package/dist/types/registry/registry.d.ts +8 -0
  161. package/dist/types/stencil-public-runtime.d.ts +1861 -0
  162. package/dist/types/utils/brick-data.d.ts +3 -0
  163. package/dist/types/utils/drop.d.ts +2 -0
  164. package/dist/types/utils/events.d.ts +37 -0
  165. package/dist/types/utils/options.d.ts +5 -0
  166. package/dist/types/utils/remote.d.ts +3 -0
  167. package/dist/types/utils/rule-condition.d.ts +30 -0
  168. package/dist/types/utils/style.d.ts +1 -0
  169. package/loader/cdn.js +1 -0
  170. package/loader/index.cjs.js +1 -0
  171. package/loader/index.d.ts +24 -0
  172. package/loader/index.es2017.js +1 -0
  173. package/loader/index.js +2 -0
  174. package/package.json +80 -0
@@ -0,0 +1 @@
1
+ module.exports = require('./cjs/index.cjs.js');
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from './esm/index.js';
@@ -0,0 +1,34 @@
1
+ import { reactOutputTarget } from "@stencil/react-output-target";
2
+ import { vueOutputTarget } from "@stencil/vue-output-target";
3
+ const isDevServer = process.argv.includes('--dev');
4
+ const libraryTargets = [
5
+ {
6
+ type: 'dist',
7
+ esmLoaderPath: '../loader',
8
+ },
9
+ {
10
+ type: 'dist-custom-elements',
11
+ customElementsExportBehavior: 'auto-define-custom-elements',
12
+ externalRuntime: false,
13
+ },
14
+ reactOutputTarget({
15
+ outDir: '../react/lib/components/',
16
+ }),
17
+ vueOutputTarget({
18
+ componentCorePackage: '@streamline-pulse/formkrafter-wc',
19
+ proxiesFile: '../vue/lib/components.ts',
20
+ includeImportCustomElements: true,
21
+ customElementsDir: 'dist/components',
22
+ }),
23
+ ];
24
+ export const config = {
25
+ namespace: 'formkrafter-wc',
26
+ globalStyle: 'src/global/formkrafter.css',
27
+ outputTargets: [
28
+ {
29
+ type: 'www',
30
+ serviceWorker: null,
31
+ },
32
+ ...(isDevServer ? [] : libraryTargets),
33
+ ],
34
+ };
@@ -0,0 +1,2 @@
1
+ import type { Config } from '../../../../../../../../../../stencil-public-runtime';
2
+ export declare const config: Config;
@@ -0,0 +1,18 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickDropDetail, BrickPathDetail } from '../../utils/events';
3
+ export declare class FkBrickActions {
4
+ host: HTMLElement;
5
+ path: string;
6
+ selected: boolean;
7
+ brickRemove: EventEmitter<BrickPathDetail>;
8
+ brickDuplicate: EventEmitter<BrickPathDetail>;
9
+ brickDrop: EventEmitter<BrickDropDetail>;
10
+ brickSelect: EventEmitter<BrickPathDetail>;
11
+ isDragging: boolean;
12
+ isDropTarget: boolean;
13
+ private handleEl?;
14
+ private cleanups;
15
+ componentDidLoad(): void;
16
+ disconnectedCallback(): void;
17
+ render(): any;
18
+ }
@@ -0,0 +1,6 @@
1
+ export declare class FkBrickList {
2
+ query: string;
3
+ collapsed: Record<string, boolean>;
4
+ private toggle;
5
+ render(): any;
6
+ }
@@ -0,0 +1,10 @@
1
+ import type { BrickMold } from '@streamline-pulse/formkrafter-core';
2
+ export declare class FkBrickMoldItem {
3
+ host: HTMLElement;
4
+ brickMold: BrickMold;
5
+ isDragging: boolean;
6
+ private cleanup?;
7
+ componentDidLoad(): void;
8
+ disconnectedCallback(): void;
9
+ render(): any;
10
+ }
@@ -0,0 +1,3 @@
1
+ export declare class FkBrickNotFound {
2
+ render(): any;
3
+ }
@@ -0,0 +1,22 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec, Utils } from '@streamline-pulse/formkrafter-core';
3
+ import type { BrickConfigsChangeDetail, BrickPathDetail, BrickRulesChangeDetail, BrickStylesChangeDetail, BrickValidationsChangeDetail } from '../../utils/events';
4
+ export declare class FkBrickRender {
5
+ brickSpec: BrickSpec;
6
+ data?: Record<string, unknown>;
7
+ dataMap?: Record<string, unknown>;
8
+ path: string;
9
+ editable: boolean;
10
+ selectedUid?: string;
11
+ errors: Record<string, string>;
12
+ locale?: string;
13
+ utils: Utils;
14
+ brickDataChange: EventEmitter<Record<string, unknown>>;
15
+ brickConfigsChange: EventEmitter<BrickConfigsChangeDetail>;
16
+ brickStylesChange: EventEmitter<BrickStylesChangeDetail>;
17
+ brickValidationsChange: EventEmitter<BrickValidationsChangeDetail>;
18
+ brickRulesChange: EventEmitter<BrickRulesChangeDetail>;
19
+ brickRemove: EventEmitter<BrickPathDetail>;
20
+ brickDuplicate: EventEmitter<BrickPathDetail>;
21
+ render(): any;
22
+ }
@@ -0,0 +1,13 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class FkCodeEditor {
3
+ host: HTMLElement;
4
+ value: string;
5
+ placeholder: string;
6
+ codeChange: EventEmitter<string>;
7
+ private view?;
8
+ componentDidLoad(): void;
9
+ syncValue(next: string): void;
10
+ private emitIfChanged;
11
+ disconnectedCallback(): void;
12
+ render(): any;
13
+ }
@@ -0,0 +1,21 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec, Utils, ValidationResult } from '@streamline-pulse/formkrafter-core';
3
+ export declare class FkDataGrid {
4
+ spec: BrickSpec;
5
+ value?: unknown;
6
+ disabled: boolean;
7
+ locale?: string;
8
+ utils: Utils;
9
+ gridValueChange: EventEmitter<Array<Record<string, unknown>> | undefined>;
10
+ touched: Record<number, Record<string, boolean>>;
11
+ private rowSpecCache?;
12
+ private rows;
13
+ private rowSpec;
14
+ private rowErrors;
15
+ private visibleRowErrors;
16
+ handleRowChange(event: CustomEvent<Record<string, unknown>>): void;
17
+ validateRows(): Promise<ValidationResult>;
18
+ private addRow;
19
+ private removeRow;
20
+ render(): any;
21
+ }
@@ -0,0 +1,12 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickDropDetail } from '../../utils/events';
3
+ export declare class FkDropArea {
4
+ host: HTMLElement;
5
+ path: string;
6
+ brickDrop: EventEmitter<BrickDropDetail>;
7
+ isOver: boolean;
8
+ private cleanup?;
9
+ componentDidLoad(): void;
10
+ disconnectedCallback(): void;
11
+ render(): any;
12
+ }
@@ -0,0 +1,3 @@
1
+ export declare class FkEmptyForm {
2
+ render(): any;
3
+ }
@@ -0,0 +1,14 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { UploadedFile } from '@streamline-pulse/formkrafter-core';
3
+ export declare class FkFileInput {
4
+ value?: UploadedFile;
5
+ disabled: boolean;
6
+ accept?: string;
7
+ fileValueChange: EventEmitter<UploadedFile | undefined>;
8
+ uploading: boolean;
9
+ uploadError?: string;
10
+ private inputEl?;
11
+ private formatSize;
12
+ private handleFile;
13
+ render(): any;
14
+ }
@@ -0,0 +1,43 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec } from '@streamline-pulse/formkrafter-core';
3
+ import type { BrickConfigsChangeDetail, BrickDropDetail, BrickPathDetail, BrickRulesChangeDetail, BrickStylesChangeDetail, BrickValidationsChangeDetail, DataChangeDetail, SpecChangeDetail } from '../../utils/events';
4
+ export declare class FkFormBuilder {
5
+ spec?: BrickSpec;
6
+ data?: Record<string, unknown>;
7
+ locales: string[];
8
+ specChange: EventEmitter<SpecChangeDetail>;
9
+ currentSpec?: BrickSpec;
10
+ currentData: Record<string, unknown>;
11
+ selectedUid?: string;
12
+ copied: boolean;
13
+ importError?: string;
14
+ editLocale?: string;
15
+ private history;
16
+ componentWillLoad(): void;
17
+ syncSpec(next?: BrickSpec): void;
18
+ handleBrickDrop(event: CustomEvent<BrickDropDetail>): void;
19
+ handleBrickRemove(event: CustomEvent<BrickPathDetail>): void;
20
+ handleBrickDuplicate(event: CustomEvent<BrickPathDetail>): void;
21
+ handleConfigsChange(event: CustomEvent<BrickConfigsChangeDetail>): void;
22
+ handleStylesChange(event: CustomEvent<BrickStylesChangeDetail>): void;
23
+ handleValidationsChange(event: CustomEvent<BrickValidationsChangeDetail>): void;
24
+ handleRulesChange(event: CustomEvent<BrickRulesChangeDetail>): void;
25
+ handleDataChange(event: CustomEvent<DataChangeDetail>): void;
26
+ handlePaste(event: ClipboardEvent): void;
27
+ private importFromClipboard;
28
+ private importSpec;
29
+ private ensureUids;
30
+ private flashImportError;
31
+ handleBrickSelect(event: CustomEvent<BrickPathDetail>): void;
32
+ private findSelected;
33
+ private inputFieldKeys;
34
+ private wrapInRootGroup;
35
+ private setRootSpec;
36
+ private applyUpdate;
37
+ private specJson;
38
+ private copySpec;
39
+ private downloadSpec;
40
+ private undo;
41
+ private redo;
42
+ render(): any;
43
+ }
@@ -0,0 +1,29 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec, ValidationResult } from '@streamline-pulse/formkrafter-core';
3
+ import type { DataChangeDetail } from '../../utils/events';
4
+ export declare class FkFormRender {
5
+ host: HTMLElement;
6
+ spec: BrickSpec;
7
+ data?: Record<string, unknown>;
8
+ editable: boolean;
9
+ selectedUid?: string;
10
+ locale?: string;
11
+ formDataChange: EventEmitter<DataChangeDetail>;
12
+ formSubmit: EventEmitter<DataChangeDetail>;
13
+ currentData: Record<string, unknown>;
14
+ touched: Record<string, boolean>;
15
+ componentWillLoad(): void;
16
+ syncData(next?: Record<string, unknown>): void;
17
+ private publicData;
18
+ handleBrickDataChange(event: CustomEvent<Record<string, unknown>>): void;
19
+ private applyValueEffects;
20
+ validate(): Promise<ValidationResult>;
21
+ handleStepTouch(event: CustomEvent<{
22
+ keys: string[];
23
+ }>): void;
24
+ handleStepperSubmit(event: CustomEvent<void>): Promise<void>;
25
+ private runValidation;
26
+ private visibleErrors;
27
+ private utils;
28
+ render(): any;
29
+ }
@@ -0,0 +1,34 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec } from '@streamline-pulse/formkrafter-core';
3
+ import type { BrickConfigsChangeDetail, BrickStylesChangeDetail, BrickValidationsChangeDetail } from '../../utils/events';
4
+ type PanelTab = 'config' | 'validation' | 'styles' | 'rules';
5
+ export declare class FkPropertyPanel {
6
+ brick: BrickSpec;
7
+ fields: string[];
8
+ locales: string[];
9
+ editLocale?: string;
10
+ brickConfigsChange: EventEmitter<BrickConfigsChangeDetail>;
11
+ brickValidationsChange: EventEmitter<BrickValidationsChangeDetail>;
12
+ brickStylesChange: EventEmitter<BrickStylesChangeDetail>;
13
+ activeTab: PanelTab;
14
+ newStyleKey: string;
15
+ onBrickChange(): void;
16
+ private availableTabs;
17
+ private localized;
18
+ private readLocalized;
19
+ private writeTextConfig;
20
+ private emitConfigs;
21
+ private emitValidations;
22
+ private emitStyles;
23
+ private validationOf;
24
+ private setValidation;
25
+ private addStyle;
26
+ private textField;
27
+ private optionsFields;
28
+ private renderConfigTab;
29
+ private validationRow;
30
+ private renderValidationTab;
31
+ private renderStylesTab;
32
+ render(): any;
33
+ }
34
+ export {};
@@ -0,0 +1,29 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec } from '@streamline-pulse/formkrafter-core';
3
+ import type { BrickRulesChangeDetail } from '../../utils/events';
4
+ type RuleMode = 'simple' | 'json' | 'javaScript';
5
+ export declare class FkRulesEditor {
6
+ brick: BrickSpec;
7
+ fields: string[];
8
+ brickRulesChange: EventEmitter<BrickRulesChangeDetail>;
9
+ forcedModes: Record<number, RuleMode>;
10
+ jsonErrors: Record<number, string>;
11
+ codeErrors: Record<number, string>;
12
+ private rules;
13
+ private commit;
14
+ private updateRule;
15
+ private addRule;
16
+ private removeRule;
17
+ private modeOf;
18
+ private setMode;
19
+ private updateCondition;
20
+ private commitJson;
21
+ private commitCode;
22
+ private updateEffect;
23
+ private addEffect;
24
+ private removeEffect;
25
+ private renderCondition;
26
+ private renderEffect;
27
+ render(): any;
28
+ }
29
+ export {};
@@ -0,0 +1,37 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class FkSelectInput {
3
+ host: HTMLElement;
4
+ configs?: Record<string, unknown>;
5
+ value?: string | string[];
6
+ disabled: boolean;
7
+ multiple: boolean;
8
+ dataMap?: Record<string, unknown>;
9
+ selectValueChange: EventEmitter<string | string[] | undefined>;
10
+ open: boolean;
11
+ query: string;
12
+ private lastRemoteSignature?;
13
+ private searchTimer?;
14
+ remoteOptions: unknown[];
15
+ remoteError?: string;
16
+ componentWillLoad(): Promise<void>;
17
+ disconnectedCallback(): void;
18
+ onConfigsChange(): void;
19
+ onDataMapChange(): void;
20
+ private searchParam;
21
+ private remoteUrl;
22
+ private outsideClick;
23
+ private bindOutsideClick;
24
+ private unbindOutsideClick;
25
+ private toggleOpen;
26
+ private close;
27
+ private source;
28
+ private resolveRemote;
29
+ private onSearchInput;
30
+ private resolve;
31
+ private selectedValues;
32
+ private labelOf;
33
+ private pick;
34
+ private unpick;
35
+ private filteredOptions;
36
+ render(): any;
37
+ }
@@ -0,0 +1,19 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ export declare class FkSignatureInput {
3
+ value?: string;
4
+ disabled: boolean;
5
+ signatureChange: EventEmitter<string | undefined>;
6
+ private canvas?;
7
+ private drawing;
8
+ private lastEmitted?;
9
+ componentDidLoad(): void;
10
+ onValueChange(next?: string): void;
11
+ private context;
12
+ private restore;
13
+ private position;
14
+ private start;
15
+ private move;
16
+ private end;
17
+ private clear;
18
+ render(): any;
19
+ }
@@ -0,0 +1,27 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec } from '@streamline-pulse/formkrafter-core';
3
+ export declare class FkStepper {
4
+ host: HTMLElement;
5
+ stepLabels: string[];
6
+ editable: boolean;
7
+ spec?: BrickSpec;
8
+ dataMap?: Record<string, unknown>;
9
+ locale?: string;
10
+ stepTouch: EventEmitter<{
11
+ keys: string[];
12
+ }>;
13
+ stepperSubmit: EventEmitter<void>;
14
+ active: number;
15
+ private stepCache?;
16
+ clampActive(): void;
17
+ componentDidRender(): void;
18
+ private config;
19
+ private stepSpec;
20
+ private stepKeys;
21
+ private stepValid;
22
+ private next;
23
+ private back;
24
+ private submit;
25
+ private goToStep;
26
+ render(): any;
27
+ }
@@ -0,0 +1,23 @@
1
+ import type { EventEmitter } from '../../stencil-public-runtime';
2
+ import type { BrickSpec } from '@streamline-pulse/formkrafter-core';
3
+ export declare class FkTabs {
4
+ host: HTMLElement;
5
+ tabLabels: string[];
6
+ editable: boolean;
7
+ spec?: BrickSpec;
8
+ dataMap?: Record<string, unknown>;
9
+ locale?: string;
10
+ stepTouch: EventEmitter<{
11
+ keys: string[];
12
+ }>;
13
+ active: number;
14
+ private tabCache?;
15
+ clampActive(): void;
16
+ componentDidRender(): void;
17
+ private validateTabs;
18
+ private tabSpec;
19
+ private tabKeys;
20
+ private tabValid;
21
+ private goToTab;
22
+ render(): any;
23
+ }