@koumoul/vjsf 3.0.0-beta.4 → 3.0.0-beta.41

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 (164) hide show
  1. package/README.md +21 -0
  2. package/package.json +5 -4
  3. package/src/compat/v2.js +132 -27
  4. package/src/compile/index.js +18 -4
  5. package/src/compile/options.js +3 -7
  6. package/src/compile/v-jsf-compiled.vue.ejs +1 -1
  7. package/src/components/fragments/child-subtitle.vue +25 -0
  8. package/src/components/fragments/help-message.vue +33 -8
  9. package/src/components/fragments/section-header.vue +9 -7
  10. package/src/components/fragments/select-item-icon.vue +2 -2
  11. package/src/components/fragments/select-item.vue +2 -1
  12. package/src/components/fragments/select-selection.vue +2 -1
  13. package/src/components/fragments/selection-group.vue +104 -0
  14. package/src/components/fragments/text-field-menu.vue +8 -3
  15. package/src/components/node.vue +58 -41
  16. package/src/components/nodes/autocomplete.vue +14 -60
  17. package/src/components/nodes/card.vue +39 -0
  18. package/src/components/nodes/checkbox-group.vue +39 -0
  19. package/src/components/nodes/checkbox.vue +4 -1
  20. package/src/components/nodes/color-picker.vue +6 -2
  21. package/src/components/nodes/combobox.vue +4 -1
  22. package/src/components/nodes/date-picker.vue +19 -10
  23. package/src/components/nodes/date-time-picker.vue +80 -3
  24. package/src/components/nodes/expansion-panels.vue +28 -12
  25. package/src/components/nodes/file-input.vue +4 -1
  26. package/src/components/nodes/list.vue +239 -104
  27. package/src/components/nodes/number-combobox.vue +4 -1
  28. package/src/components/nodes/number-field.vue +4 -1
  29. package/src/components/nodes/one-of-select.vue +46 -24
  30. package/src/components/nodes/radio-group.vue +55 -0
  31. package/src/components/nodes/section.vue +4 -1
  32. package/src/components/nodes/select.vue +13 -52
  33. package/src/components/nodes/slider.vue +4 -1
  34. package/src/components/nodes/stepper.vue +10 -2
  35. package/src/components/nodes/switch-group.vue +39 -0
  36. package/src/components/nodes/switch.vue +4 -1
  37. package/src/components/nodes/tabs.vue +18 -5
  38. package/src/components/nodes/text-field.vue +4 -1
  39. package/src/components/nodes/textarea.vue +4 -1
  40. package/src/components/nodes/time-picker.vue +38 -1
  41. package/src/components/nodes/vertical-tabs.vue +14 -3
  42. package/src/components/options.js +21 -4
  43. package/src/components/tree.vue +1 -1
  44. package/src/components/vjsf.vue +11 -1
  45. package/src/composables/use-comp-defaults.js +19 -0
  46. package/src/composables/use-dnd.js +1 -0
  47. package/src/composables/use-get-items.js +48 -0
  48. package/src/composables/use-vjsf.js +76 -40
  49. package/src/index.js +3 -0
  50. package/src/types.ts +21 -7
  51. package/src/utils/arrays.js +37 -6
  52. package/src/utils/build.js +1 -1
  53. package/src/utils/index.js +0 -1
  54. package/src/utils/props.js +36 -12
  55. package/src/utils/slots.js +28 -0
  56. package/types/compat/v2.d.ts +10 -0
  57. package/types/compat/v2.d.ts.map +1 -0
  58. package/types/compile/index.d.ts +8 -0
  59. package/types/compile/index.d.ts.map +1 -0
  60. package/types/compile/options.d.ts +4 -0
  61. package/types/compile/options.d.ts.map +1 -0
  62. package/types/components/fragments/child-subtitle.vue.d.ts +8 -0
  63. package/types/components/fragments/child-subtitle.vue.d.ts.map +1 -0
  64. package/types/components/fragments/help-message.vue.d.ts +8 -0
  65. package/types/components/fragments/help-message.vue.d.ts.map +1 -0
  66. package/types/components/fragments/node-slot.vue.d.ts +47 -0
  67. package/types/components/fragments/node-slot.vue.d.ts.map +1 -0
  68. package/types/components/fragments/section-header.vue.d.ts +10 -0
  69. package/types/components/fragments/section-header.vue.d.ts.map +1 -0
  70. package/types/components/fragments/select-item-icon.vue.d.ts +15 -0
  71. package/types/components/fragments/select-item-icon.vue.d.ts.map +1 -0
  72. package/types/components/fragments/select-item.vue.d.ts +12 -0
  73. package/types/components/fragments/select-item.vue.d.ts.map +1 -0
  74. package/types/components/fragments/select-selection.vue.d.ts +12 -0
  75. package/types/components/fragments/select-selection.vue.d.ts.map +1 -0
  76. package/types/components/fragments/selection-group.vue.d.ts +35 -0
  77. package/types/components/fragments/selection-group.vue.d.ts.map +1 -0
  78. package/types/components/fragments/text-field-menu.vue.d.ts +20 -0
  79. package/types/components/fragments/text-field-menu.vue.d.ts.map +1 -0
  80. package/types/components/node.vue.d.ts +10 -0
  81. package/types/components/node.vue.d.ts.map +1 -0
  82. package/types/components/nodes/autocomplete.vue.d.ts +27 -0
  83. package/types/components/nodes/autocomplete.vue.d.ts.map +1 -0
  84. package/types/components/nodes/card.vue.d.ts +10 -0
  85. package/types/components/nodes/card.vue.d.ts.map +1 -0
  86. package/types/components/nodes/checkbox-group.vue.d.ts +27 -0
  87. package/types/components/nodes/checkbox-group.vue.d.ts.map +1 -0
  88. package/types/components/nodes/checkbox.vue.d.ts +10 -0
  89. package/types/components/nodes/checkbox.vue.d.ts.map +1 -0
  90. package/types/components/nodes/color-picker.vue.d.ts +10 -0
  91. package/types/components/nodes/color-picker.vue.d.ts.map +1 -0
  92. package/types/components/nodes/combobox.vue.d.ts +27 -0
  93. package/types/components/nodes/combobox.vue.d.ts.map +1 -0
  94. package/types/components/nodes/date-picker.vue.d.ts +10 -0
  95. package/types/components/nodes/date-picker.vue.d.ts.map +1 -0
  96. package/types/components/nodes/date-time-picker.vue.d.ts +10 -0
  97. package/types/components/nodes/date-time-picker.vue.d.ts.map +1 -0
  98. package/types/components/nodes/expansion-panels.vue.d.ts +10 -0
  99. package/types/components/nodes/expansion-panels.vue.d.ts.map +1 -0
  100. package/types/components/nodes/file-input.vue.d.ts +27 -0
  101. package/types/components/nodes/file-input.vue.d.ts.map +1 -0
  102. package/types/components/nodes/list.vue.d.ts +10 -0
  103. package/types/components/nodes/list.vue.d.ts.map +1 -0
  104. package/types/components/nodes/number-combobox.vue.d.ts +27 -0
  105. package/types/components/nodes/number-combobox.vue.d.ts.map +1 -0
  106. package/types/components/nodes/number-field.vue.d.ts +27 -0
  107. package/types/components/nodes/number-field.vue.d.ts.map +1 -0
  108. package/types/components/nodes/one-of-select.vue.d.ts +10 -0
  109. package/types/components/nodes/one-of-select.vue.d.ts.map +1 -0
  110. package/types/components/nodes/radio-group.vue.d.ts +27 -0
  111. package/types/components/nodes/radio-group.vue.d.ts.map +1 -0
  112. package/types/components/nodes/section.vue.d.ts +10 -0
  113. package/types/components/nodes/section.vue.d.ts.map +1 -0
  114. package/types/components/nodes/select.vue.d.ts +27 -0
  115. package/types/components/nodes/select.vue.d.ts.map +1 -0
  116. package/types/components/nodes/slider.vue.d.ts +10 -0
  117. package/types/components/nodes/slider.vue.d.ts.map +1 -0
  118. package/types/components/nodes/stepper.vue.d.ts +10 -0
  119. package/types/components/nodes/stepper.vue.d.ts.map +1 -0
  120. package/types/components/nodes/switch-group.vue.d.ts +27 -0
  121. package/types/components/nodes/switch-group.vue.d.ts.map +1 -0
  122. package/types/components/nodes/switch.vue.d.ts +10 -0
  123. package/types/components/nodes/switch.vue.d.ts.map +1 -0
  124. package/types/components/nodes/tabs.vue.d.ts +10 -0
  125. package/types/components/nodes/tabs.vue.d.ts.map +1 -0
  126. package/types/components/nodes/text-field.vue.d.ts +27 -0
  127. package/types/components/nodes/text-field.vue.d.ts.map +1 -0
  128. package/types/components/nodes/textarea.vue.d.ts +27 -0
  129. package/types/components/nodes/textarea.vue.d.ts.map +1 -0
  130. package/types/components/nodes/time-picker.vue.d.ts +10 -0
  131. package/types/components/nodes/time-picker.vue.d.ts.map +1 -0
  132. package/types/components/nodes/vertical-tabs.vue.d.ts +10 -0
  133. package/types/components/nodes/vertical-tabs.vue.d.ts.map +1 -0
  134. package/types/components/options.d.ts +4 -0
  135. package/types/components/options.d.ts.map +1 -0
  136. package/types/components/tree.vue.d.ts +10 -0
  137. package/types/components/tree.vue.d.ts.map +1 -0
  138. package/types/components/vjsf.vue.d.ts +15 -0
  139. package/types/components/vjsf.vue.d.ts.map +1 -0
  140. package/types/composables/use-comp-defaults.d.ts +8 -0
  141. package/types/composables/use-comp-defaults.d.ts.map +1 -0
  142. package/types/composables/use-dnd.d.ts +25 -0
  143. package/types/composables/use-dnd.d.ts.map +1 -0
  144. package/types/composables/use-get-items.d.ts +13 -0
  145. package/types/composables/use-get-items.d.ts.map +1 -0
  146. package/types/composables/use-vjsf.d.ts +16 -0
  147. package/types/composables/use-vjsf.d.ts.map +1 -0
  148. package/types/index.d.ts +7 -0
  149. package/types/index.d.ts.map +1 -0
  150. package/types/types.d.ts +96 -0
  151. package/types/types.d.ts.map +1 -0
  152. package/types/utils/arrays.d.ts +22 -0
  153. package/types/utils/arrays.d.ts.map +1 -0
  154. package/types/utils/build.d.ts +2 -0
  155. package/types/utils/build.d.ts.map +1 -0
  156. package/types/utils/dates.d.ts +7 -0
  157. package/types/utils/dates.d.ts.map +1 -0
  158. package/types/utils/index.d.ts +5 -0
  159. package/types/utils/index.d.ts.map +1 -0
  160. package/types/utils/props.d.ts +29 -0
  161. package/types/utils/props.d.ts.map +1 -0
  162. package/types/utils/slots.d.ts +15 -0
  163. package/types/utils/slots.d.ts.map +1 -0
  164. package/src/utils/global-register.js +0 -13
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text-field.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/text-field.vue.js"],"names":[],"mappings":";;QAUM,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,iBAAiB,CAAC;;;;QAK5E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;QAL7E,+EAA+E;cAArE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,iBAAiB,CAAC;;;;QAK5E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
@@ -0,0 +1,27 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ modelValue: {
3
+ /** @type import('vue').PropType<import('../../types.js').VjsfTextareaNode> */
4
+ type: import('vue').PropType<import('../../types.js').VjsfTextareaNode>;
5
+ required: true;
6
+ };
7
+ statefulLayout: {
8
+ /** @type import('vue').PropType<import('../../types.js').VjsfStatefulLayout> */
9
+ type: import('vue').PropType<import('../../types.js').VjsfStatefulLayout>;
10
+ required: true;
11
+ };
12
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
+ [key: string]: any;
14
+ }>, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ modelValue: {
16
+ /** @type import('vue').PropType<import('../../types.js').VjsfTextareaNode> */
17
+ type: import('vue').PropType<import('../../types.js').VjsfTextareaNode>;
18
+ required: true;
19
+ };
20
+ statefulLayout: {
21
+ /** @type import('vue').PropType<import('../../types.js').VjsfStatefulLayout> */
22
+ type: import('vue').PropType<import('../../types.js').VjsfStatefulLayout>;
23
+ required: true;
24
+ };
25
+ }>>, {}, {}>;
26
+ export default _default;
27
+ //# sourceMappingURL=textarea.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"textarea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/textarea.vue.js"],"names":[],"mappings":";;QAUM,8EAA8E;cAApE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,gBAAgB,CAAC;;;;QAK3E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;QAL7E,8EAA8E;cAApE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,gBAAgB,CAAC;;;;QAK3E,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../../types.js").VjsfDatePickerNode;
3
+ statefulLayout: import("../../types.js").VjsfStatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../../types.js").VjsfDatePickerNode | undefined;
6
+ readonly statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=time-picker.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-picker.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/time-picker.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../../types.js").VjsfVerticalTabsNode;
3
+ statefulLayout: import("../../types.js").VjsfStatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../../types.js").VjsfVerticalTabsNode | undefined;
6
+ readonly statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=vertical-tabs.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vertical-tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/vertical-tabs.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ /** @type {import("../types.js").PartialVjsfOptions} */
2
+ export const defaultOptions: import("../types.js").PartialVjsfOptions;
3
+ export function getFullOptions(options: Partial<import("../types.js").VjsfOptions> | null, form: any, width: number, slots: import("vue").Slots, defaultNodeComponents: Record<string, import('vue').Component>, onData: (data: any) => void, onUpdate: (statefulLayout: import('@json-layout/core').StatefulLayout) => void, onAutofocus: (key: string) => void): import("../types.js").VjsfOptions;
4
+ //# sourceMappingURL=options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/components/options.js"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,6BADW,OAAO,aAAa,EAAE,kBAAkB,CAKlD;AAcM,wCAVI,QAAQ,OAAO,aAAa,EAAE,WAAW,CAAC,GAAG,IAAI,QACjD,GAAG,SACH,MAAM,SACN,OAAO,KAAK,EAAE,KAAK,yBACnB,OAAO,MAAM,EAAE,OAAO,KAAK,EAAE,SAAS,CAAC,iBAChC,GAAG,KAAK,IAAI,6BACF,OAAO,mBAAmB,EAAE,cAAc,KAAK,IAAI,qBAC9D,MAAM,KAAK,IAAI,qCA2B/B"}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ modelValue: import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree;
3
+ statefulLayout: import("../types.js").VjsfStatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree | undefined;
6
+ readonly statefulLayout?: import("../types.js").VjsfStatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
9
+ export default _default;
10
+ //# sourceMappingURL=tree.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tree.vue.d.ts","sourceRoot":"","sources":["../../src/components/tree.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ $emit: ((event: "update:modelValue", data: any) => void) & ((event: "update:state", state: import("../types.js").VjsfStatefulLayout) => void);
3
+ modelValue: any;
4
+ options: Partial<Omit<import("../types.js").VjsfOptions, "width" | "onData" | "onUpdate" | "onAutofocus" | "vjsfSlots">> | null;
5
+ schema: Record<string, any>;
6
+ precompiledLayout: import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout;
7
+ $props: {
8
+ readonly modelValue?: any;
9
+ readonly options?: Partial<Omit<import("../types.js").VjsfOptions, "width" | "onData" | "onUpdate" | "onAutofocus" | "vjsfSlots">> | null | undefined;
10
+ readonly schema?: Record<string, any> | undefined;
11
+ readonly precompiledLayout?: import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout | undefined;
12
+ };
13
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
14
+ export default _default;
15
+ //# sourceMappingURL=vjsf.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"vjsf.vue.d.ts","sourceRoot":"","sources":["../../src/components/vjsf.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ * @param {string} name
4
+ * @param {Record<string, any> | null} [localDefaults]
5
+ * @returns {import('vue').ComputedRef<Record<string, any>>}
6
+ */
7
+ export default function useCompDefaultProps(name: string, localDefaults?: Record<string, any> | null | undefined): import('vue').ComputedRef<Record<string, any>>;
8
+ //# sourceMappingURL=use-comp-defaults.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-comp-defaults.d.ts","sourceRoot":"","sources":["../../src/composables/use-comp-defaults.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,kDAJW,MAAM,2DAEJ,OAAO,KAAK,EAAE,WAAW,CAAC,OAAO,MAAM,EAAE,GAAG,CAAC,CAAC,CAW1D"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * @template T
3
+ * @param {T[]} array
4
+ * @param {() => void} callback
5
+ * @returns
6
+ */
7
+ export default function useDnd<T>(array: T[], callback: () => void): {
8
+ activeDnd: import("vue").ComputedRef<boolean>;
9
+ sortableArray: import("vue").ShallowRef<T[]>;
10
+ hovered: import("vue").Ref<number>;
11
+ draggable: import("vue").Ref<number>;
12
+ dragging: import("vue").Ref<number>;
13
+ itemBind: (itemIndex: number) => {
14
+ onMouseenter: () => void;
15
+ onMouseleave: () => void;
16
+ onDragstart: () => void;
17
+ onDragover: () => void;
18
+ onDragend: () => void;
19
+ };
20
+ handleBind: (itemIndex: number) => {
21
+ onMouseover(): void;
22
+ onMouseout(): void;
23
+ };
24
+ };
25
+ //# sourceMappingURL=use-dnd.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-dnd.d.ts","sourceRoot":"","sources":["../../src/composables/use-dnd.js"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wDAHW,MAAM,IAAI;;;;;;0BAoBU,MAAM;;;;;;;4BAwBJ,MAAM;;;;EAmBtC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * @param {{modelValue: import('@json-layout/core').StateNode, statefulLayout: import('../types.js').VjsfStatefulLayout}} props
3
+ */
4
+ export default function _default(props: {
5
+ modelValue: import('@json-layout/core').StateNode;
6
+ statefulLayout: import('../types.js').VjsfStatefulLayout;
7
+ }): {
8
+ items: import("vue").Ref<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems>;
9
+ loading: import("vue").Ref<boolean>;
10
+ search: import("vue").Ref<string>;
11
+ prepareSelectedItem: (selectedItem: any, itemValue: any) => any;
12
+ };
13
+ //# sourceMappingURL=use-get-items.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-get-items.d.ts","sourceRoot":"","sources":["../../src/composables/use-get-items.js"],"names":[],"mappings":"AAEA;;GAEG;AACH,wCAFW;IAAC,UAAU,EAAE,OAAO,mBAAmB,EAAE,SAAS,CAAC;IAAC,cAAc,EAAE,OAAO,aAAa,EAAE,kBAAkB,CAAA;CAAC;;;;wCA0B3G,GAAG,aACH,GAAG;EAiBf"}
@@ -0,0 +1,16 @@
1
+ export const emits: {
2
+ /**
3
+ * @arg {any} data
4
+ */
5
+ 'update:modelValue': (data: any) => boolean;
6
+ /**
7
+ * @arg {import('../types.js').VjsfStatefulLayout} state
8
+ */
9
+ 'update:state': (state: import('../types.js').VjsfStatefulLayout) => boolean;
10
+ };
11
+ export function useVjsf(schema: import('vue').Ref<Object>, modelValue: import('vue').Ref<any>, options: import('vue').Ref<import("../types.js").PartialVjsfOptions | null>, nodeComponents: Record<string, import('vue').Component>, emit: any, compile?: typeof import("@json-layout/core").compile | undefined, precompiledLayout?: import("vue").Ref<import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout> | undefined): {
12
+ el: import("vue").Ref<null>;
13
+ statefulLayout: import("vue").ShallowRef<import("../types.js").VjsfStatefulLayout | null>;
14
+ stateTree: import("vue").ShallowRef<import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree | null>;
15
+ };
16
+ //# sourceMappingURL=use-vjsf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-vjsf.d.ts","sourceRoot":"","sources":["../../src/composables/use-vjsf.js"],"names":[],"mappings":"AAYA;IACE;;MAEE;gCADO,GAAG;IAGZ;;MAEE;4BADO,OAAO,aAAa,EAAE,kBAAkB;EAGlD;AAWM,gCARI,OAAO,KAAK,EAAE,GAAG,CAAC,MAAM,CAAC,cACzB,OAAO,KAAK,EAAE,GAAG,CAAC,GAAG,CAAC,WACtB,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,aAAa,EAAE,kBAAkB,GAAG,IAAI,CAAC,kBAClE,OAAO,MAAM,EAAE,OAAO,KAAK,EAAE,SAAS,CAAC,QACvC,GAAG;;;;EAiIb"}
@@ -0,0 +1,7 @@
1
+ export default Vjsf;
2
+ export type Options = import('./types.js').PartialVjsfOptions;
3
+ export type CompileOptions = import('./types.js').PartialVjsfCompileOptions;
4
+ import Vjsf from './components/vjsf.vue';
5
+ import { defaultOptions } from './components/options.js';
6
+ export { Vjsf, defaultOptions };
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";sBAKc,OAAO,YAAY,EAAE,kBAAkB;6BACvC,OAAO,YAAY,EAAE,yBAAyB;iBAN3C,uBAAuB;+BACT,yBAAyB"}
@@ -0,0 +1,96 @@
1
+ import { Component } from 'vue';
2
+ import { ComponentInfo } from '@json-layout/vocabulary';
3
+ import { StatefulLayout, StatefulLayoutOptions, StateNode, CheckboxNode, ColorPickerNode, DatePickerNode, DateTimePickerNode, TabsNode, ExpansionPanelsNode, ListNode, NumberFieldNode, OneOfSelectNode, SectionNode, SelectNode, RadioGroupNode, CheckboxGroupNode, SwitchGroupNode, SliderNode, SwitchNode, TextFieldNode, TextareaNode, VerticalTabsNode, StepperNode, ComboboxNode, FileInputNode, CardNode, CompileOptions } from '@json-layout/core';
4
+ export type Density = 'default' | 'comfortable' | 'compact';
5
+ export type Plugin = {
6
+ info: ComponentInfo;
7
+ nodeComponent: Component;
8
+ };
9
+ export type VjsfStatefulLayoutOptions = StatefulLayoutOptions & {
10
+ vjsfSlots: Record<string, () => unknown>;
11
+ nodeComponents: Record<string, Component>;
12
+ plugins: Plugin[];
13
+ pluginsOptions: Record<string, unknown>;
14
+ };
15
+ export type VjsfCompileOptions = CompileOptions & {
16
+ pluginsImports: string[];
17
+ };
18
+ export type VjsfOptions = VjsfCompileOptions & VjsfStatefulLayoutOptions;
19
+ export type VjsfStatefulLayout = Omit<StatefulLayout, 'options'> & {
20
+ options: VjsfStatefulLayoutOptions;
21
+ };
22
+ export type PartialVjsfCompileOptions = Partial<VjsfCompileOptions>;
23
+ export type PartialVjsfOptions = Partial<Omit<VjsfOptions, 'width' | 'vjsfSlots' | 'onData' | 'onUpdate' | 'onAutofocus'>>;
24
+ export type VjsfNode = Omit<StateNode, 'options'> & {
25
+ options: VjsfOptions;
26
+ };
27
+ export type VjsfTabsNode = Omit<TabsNode, 'options'> & {
28
+ options: VjsfOptions;
29
+ };
30
+ export type VjsfCheckboxNode = Omit<CheckboxNode, 'options'> & {
31
+ options: VjsfOptions;
32
+ };
33
+ export type VjsfColorPickerNode = Omit<ColorPickerNode, 'options'> & {
34
+ options: VjsfOptions;
35
+ };
36
+ export type VjsfDatePickerNode = Omit<DatePickerNode, 'options'> & {
37
+ options: VjsfOptions;
38
+ };
39
+ export type VjsfDateTimePickerNode = Omit<DateTimePickerNode, 'options'> & {
40
+ options: VjsfOptions;
41
+ };
42
+ export type VjsfExpansionPanelsNode = Omit<ExpansionPanelsNode, 'options'> & {
43
+ options: VjsfOptions;
44
+ };
45
+ export type VjsfListNode = Omit<ListNode, 'options'> & {
46
+ options: VjsfOptions;
47
+ };
48
+ export type VjsfNumberFieldNode = Omit<NumberFieldNode, 'options'> & {
49
+ options: VjsfOptions;
50
+ };
51
+ export type VjsfOneOfSelectNode = Omit<OneOfSelectNode, 'options'> & {
52
+ options: VjsfOptions;
53
+ };
54
+ export type VjsfSectionNode = Omit<SectionNode, 'options'> & {
55
+ options: VjsfOptions;
56
+ };
57
+ export type VjsfSelectNode = Omit<SelectNode, 'options'> & {
58
+ options: VjsfOptions;
59
+ };
60
+ export type VjsfRadioGroupNode = Omit<RadioGroupNode, 'options'> & {
61
+ options: VjsfOptions;
62
+ };
63
+ export type VjsfCheckboxGroupNode = Omit<CheckboxGroupNode, 'options'> & {
64
+ options: VjsfOptions;
65
+ };
66
+ export type VjsfSwitchGroupNode = Omit<SwitchGroupNode, 'options'> & {
67
+ options: VjsfOptions;
68
+ };
69
+ export type VjsfSliderNode = Omit<SliderNode, 'options'> & {
70
+ options: VjsfOptions;
71
+ };
72
+ export type VjsfSwitchNode = Omit<SwitchNode, 'options'> & {
73
+ options: VjsfOptions;
74
+ };
75
+ export type VjsfTextFieldNode = Omit<TextFieldNode, 'options'> & {
76
+ options: VjsfOptions;
77
+ };
78
+ export type VjsfTextareaNode = Omit<TextareaNode, 'options'> & {
79
+ options: VjsfOptions;
80
+ };
81
+ export type VjsfVerticalTabsNode = Omit<VerticalTabsNode, 'options'> & {
82
+ options: VjsfOptions;
83
+ };
84
+ export type VjsfStepperNode = Omit<StepperNode, 'options'> & {
85
+ options: VjsfOptions;
86
+ };
87
+ export type VjsfComboboxNode = Omit<ComboboxNode, 'options'> & {
88
+ options: VjsfOptions;
89
+ };
90
+ export type VjsfFileInputNode = Omit<FileInputNode, 'options'> & {
91
+ options: VjsfOptions;
92
+ };
93
+ export type VjsfCardNode = Omit<CardNode, 'options'> & {
94
+ options: VjsfOptions;
95
+ };
96
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * @param {any[] | Record<string, any>} data
3
+ * @param {number} fromIndex
4
+ * @param {number} toIndex
5
+ * @return {any[] | Record<string, any>}
6
+ */
7
+ export function moveDataItem(data: any[] | Record<string, any>, fromIndex: number, toIndex: number): any[] | Record<string, any>;
8
+ /**
9
+ * @param {any[]} data
10
+ * @param {number} fromIndex
11
+ * @param {number} toIndex
12
+ * @return {any[]}
13
+ */
14
+ export function moveArrayItem(data: any[], fromIndex: number, toIndex: number): any[];
15
+ /**
16
+ * @param {Record<string, any>} data
17
+ * @param {number} fromIndex
18
+ * @param {number} toIndex
19
+ * @return {Record<string, any>}
20
+ */
21
+ export function moveObjectItem(data: Record<string, any>, fromIndex: number, toIndex: number): Record<string, any>;
22
+ //# sourceMappingURL=arrays.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"arrays.d.ts","sourceRoot":"","sources":["../../src/utils/arrays.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,mCALW,GAAG,EAAE,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,aAC3B,MAAM,WACN,MAAM,GACL,GAAG,EAAE,GAAG,OAAO,MAAM,EAAE,GAAG,CAAC,CAMtC;AAED;;;;;GAKG;AACH,oCALW,GAAG,EAAE,aACL,MAAM,WACN,MAAM,GACL,GAAG,EAAE,CAWhB;AAED;;;;;GAKG;AACH,qCALW,OAAO,MAAM,EAAE,GAAG,CAAC,aACnB,MAAM,WACN,MAAM,GACL,OAAO,MAAM,EAAE,GAAG,CAAC,CAY9B"}
@@ -0,0 +1,2 @@
1
+ export { commonjsDeps, commonjsDepsPaths } from "@json-layout/core/utils/build";
2
+ //# sourceMappingURL=build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/utils/build.js"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ export function padTimeComponent(val: number): string;
2
+ export function getDateTimeWithOffset(date: Date): string;
3
+ export function getDateTimeParts(date: Date): string[];
4
+ export function getDateTime(parts: [string, string]): string;
5
+ export function getShortTime(time: string | undefined): string;
6
+ export function getLongTime(time: string): string;
7
+ //# sourceMappingURL=dates.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dates.d.ts","sourceRoot":"","sources":["../../src/utils/dates.js"],"names":[],"mappings":"AAGO,sCAAoC,MAAM,UAGhD;AAMM,4CAAyC,IAAI,UAQnD;AAIM,uCAAoC,IAAI,YAE9C;AAIM,mCAA+B,CAAC,MAAM,EAAE,MAAM,CAAC,UAWrD;AAGM,mCAAgC,MAAM,GAAG,SAAS,UAGxD;AAEM,kCAA+B,MAAM,UAE3C"}
@@ -0,0 +1,5 @@
1
+ export * from "./arrays.js";
2
+ export * from "./dates.js";
3
+ export * from "./props.js";
4
+ export * from "./slots.js";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * @param {(Record<string, any> | undefined)[]} propsLevels
3
+ * @returns {Record<string, any> & {class: string[]}}
4
+ */
5
+ export function mergePropsLevels(propsLevels: (Record<string, any> | undefined)[]): Record<string, any> & {
6
+ class: string[];
7
+ };
8
+ /**
9
+ * @param {import('../types.js').VjsfNode} node
10
+ * @param {import('../types.js').VjsfStatefulLayout} statefulLayout
11
+ * @param {(string | [string, string])[]} [layoutPropsMap]
12
+ * @param {boolean} [isMainComp]
13
+ * @returns {Record<string, any>}
14
+ */
15
+ export function getInputProps(node: import('../types.js').VjsfNode, statefulLayout: import('../types.js').VjsfStatefulLayout, layoutPropsMap?: (string | [string, string])[] | undefined, isMainComp?: boolean | undefined): Record<string, any>;
16
+ /**
17
+ * @param {import('@json-layout/core').StateNode} node
18
+ * @param {boolean} isMainComp
19
+ * @returns {Record<string, any>}
20
+ */
21
+ export function getCompProps(node: import('@json-layout/core').StateNode, isMainComp?: boolean): Record<string, any>;
22
+ /**
23
+ * shared between select and autocomplete components
24
+ * @param {import('../types.js').VjsfNode} node
25
+ * @param {import('../types.js').VjsfStatefulLayout} statefulLayout
26
+ * @returns {Record<string, any>}
27
+ */
28
+ export function getSelectProps(node: import('../types.js').VjsfNode, statefulLayout: import('../types.js').VjsfStatefulLayout): Record<string, any>;
29
+ //# sourceMappingURL=props.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../src/utils/props.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH,8CAHW,CAAC,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAAC,EAAE,GACjC,OAAO,MAAM,EAAE,GAAG,CAAC,GAAG;IAAC,KAAK,EAAE,MAAM,EAAE,CAAA;CAAC,CAqBnD;AAID;;;;;;GAMG;AACH,oCANW,OAAO,aAAa,EAAE,QAAQ,kBAC9B,OAAO,aAAa,EAAE,kBAAkB,iGAGtC,OAAO,MAAM,EAAE,GAAG,CAAC,CAwC/B;AAGD;;;;GAIG;AACH,mCAJW,OAAO,mBAAmB,EAAE,SAAS,eACrC,OAAO,GACL,OAAO,MAAM,EAAE,GAAG,CAAC,CAS/B;AAED;;;;;GAKG;AACH,qCAJW,OAAO,aAAa,EAAE,QAAQ,kBAC9B,OAAO,aAAa,EAAE,kBAAkB,GACtC,OAAO,MAAM,EAAE,GAAG,CAAC,CAyB/B"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * @param {import('../types.js').VjsfNode} node
3
+ * @param {import('../types.js').VjsfStatefulLayout} statefulLayout
4
+ * @returns {Record<string, any>}
5
+ */
6
+ export function getCompSlots(node: import('../types.js').VjsfNode, statefulLayout: import('../types.js').VjsfStatefulLayout): Record<string, any>;
7
+ /**
8
+ * shared between select and autocomplete components
9
+ * @param {import('../types.js').VjsfSelectNode} node
10
+ * @param {import('../types.js').VjsfStatefulLayout} statefulLayout
11
+ * @param {any} getItems
12
+ * @returns {Record<string, any>}
13
+ */
14
+ export function getSelectSlots(node: import('../types.js').VjsfSelectNode, statefulLayout: import('../types.js').VjsfStatefulLayout, getItems: any): Record<string, any>;
15
+ //# sourceMappingURL=slots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"slots.d.ts","sourceRoot":"","sources":["../../src/utils/slots.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,mCAJW,OAAO,aAAa,EAAE,QAAQ,kBAC9B,OAAO,aAAa,EAAE,kBAAkB,GACtC,OAAO,MAAM,EAAE,GAAG,CAAC,CAU/B;AAED;;;;;;GAMG;AACH,qCALW,OAAO,aAAa,EAAE,cAAc,kBACpC,OAAO,aAAa,EAAE,kBAAkB,YACxC,GAAG,GACD,OAAO,MAAM,EAAE,GAAG,CAAC,CAmB/B"}
@@ -1,13 +0,0 @@
1
- import { ref } from 'vue'
2
-
3
- /** @type {import('vue').Ref<Record<string, import('vue').Component>>} */
4
- export const registeredNodeComponents = ref({})
5
-
6
- /**
7
- * @param {string} name
8
- * @param {import('vue').Component} component
9
- */
10
- export function registerNodeComponent (name, component) {
11
- console.log('vjsf - register plugin node component', name)
12
- registeredNodeComponents.value[name] = component
13
- }