@koumoul/vjsf 3.0.0-beta.8 → 3.0.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 (162) hide show
  1. package/README.md +21 -0
  2. package/package.json +13 -20
  3. package/src/compat/v2.js +126 -27
  4. package/src/components/fragments/child-subtitle.vue +25 -0
  5. package/src/components/fragments/help-message.vue +33 -8
  6. package/src/components/fragments/section-header.vue +9 -7
  7. package/src/components/fragments/select-item-icon.vue +2 -2
  8. package/src/components/fragments/select-item.vue +2 -1
  9. package/src/components/fragments/select-selection.vue +2 -1
  10. package/src/components/fragments/selection-group.vue +105 -0
  11. package/src/components/fragments/text-field-menu.vue +16 -7
  12. package/src/components/node.vue +58 -41
  13. package/src/components/nodes/autocomplete.vue +14 -60
  14. package/src/components/nodes/card.vue +39 -0
  15. package/src/components/nodes/checkbox-group.vue +39 -0
  16. package/src/components/nodes/checkbox.vue +31 -26
  17. package/src/components/nodes/color-picker.vue +10 -5
  18. package/src/components/nodes/combobox.vue +17 -40
  19. package/src/components/nodes/date-picker.vue +30 -13
  20. package/src/components/nodes/date-time-picker.vue +83 -3
  21. package/src/components/nodes/expansion-panels.vue +17 -9
  22. package/src/components/nodes/file-input.vue +15 -11
  23. package/src/components/nodes/list.vue +246 -112
  24. package/src/components/nodes/number-combobox.vue +18 -39
  25. package/src/components/nodes/number-field.vue +17 -11
  26. package/src/components/nodes/one-of-select.vue +53 -27
  27. package/src/components/nodes/radio-group.vue +58 -0
  28. package/src/components/nodes/section.vue +4 -1
  29. package/src/components/nodes/select.vue +15 -54
  30. package/src/components/nodes/slider.vue +32 -29
  31. package/src/components/nodes/stepper.vue +10 -2
  32. package/src/components/nodes/switch-group.vue +39 -0
  33. package/src/components/nodes/switch.vue +31 -26
  34. package/src/components/nodes/tabs.vue +20 -8
  35. package/src/components/nodes/text-field.vue +10 -7
  36. package/src/components/nodes/textarea.vue +20 -12
  37. package/src/components/nodes/time-picker.vue +41 -1
  38. package/src/components/nodes/vertical-tabs.vue +16 -6
  39. package/src/components/tree.vue +1 -1
  40. package/src/components/vjsf.vue +11 -1
  41. package/src/composables/use-comp-defaults.js +19 -0
  42. package/src/composables/use-dnd.js +2 -1
  43. package/src/composables/use-get-items.js +53 -0
  44. package/src/composables/use-node.js +136 -0
  45. package/src/composables/use-select-node.js +67 -0
  46. package/src/composables/use-vjsf.js +74 -42
  47. package/src/index.js +5 -2
  48. package/src/options.js +67 -0
  49. package/src/types.ts +64 -33
  50. package/src/utils/arrays.js +37 -6
  51. package/types/compat/v2.d.ts.map +1 -1
  52. package/types/compile/index.d.ts +2 -2
  53. package/types/compile/index.d.ts.map +1 -1
  54. package/types/compile/options.d.ts +3 -2
  55. package/types/compile/options.d.ts.map +1 -1
  56. package/types/components/fragments/child-subtitle.vue.d.ts +8 -0
  57. package/types/components/fragments/child-subtitle.vue.d.ts.map +1 -0
  58. package/types/components/fragments/help-message.vue.d.ts +2 -2
  59. package/types/components/fragments/node-slot.vue.d.ts +2 -44
  60. package/types/components/fragments/node-slot.vue.d.ts.map +1 -1
  61. package/types/components/fragments/section-header.vue.d.ts +4 -2
  62. package/types/components/fragments/select-item-icon.vue.d.ts +2 -12
  63. package/types/components/fragments/select-item.vue.d.ts +2 -2
  64. package/types/components/fragments/select-selection.vue.d.ts +2 -2
  65. package/types/components/fragments/selection-group.vue.d.ts +5 -0
  66. package/types/components/fragments/selection-group.vue.d.ts.map +1 -0
  67. package/types/components/fragments/text-field-menu.vue.d.ts +2 -2
  68. package/types/components/fragments/text-field-menu.vue.d.ts.map +1 -1
  69. package/types/components/node.vue.d.ts +2 -2
  70. package/types/components/nodes/autocomplete.vue.d.ts +2 -24
  71. package/types/components/nodes/autocomplete.vue.d.ts.map +1 -1
  72. package/types/components/nodes/card.vue.d.ts +10 -0
  73. package/types/components/nodes/card.vue.d.ts.map +1 -0
  74. package/types/components/nodes/checkbox-group.vue.d.ts +5 -0
  75. package/types/components/nodes/checkbox-group.vue.d.ts.map +1 -0
  76. package/types/components/nodes/checkbox.vue.d.ts +3 -8
  77. package/types/components/nodes/color-picker.vue.d.ts +2 -2
  78. package/types/components/nodes/combobox.vue.d.ts +2 -24
  79. package/types/components/nodes/combobox.vue.d.ts.map +1 -1
  80. package/types/components/nodes/date-picker.vue.d.ts +2 -2
  81. package/types/components/nodes/date-time-picker.vue.d.ts +4 -4
  82. package/types/components/nodes/expansion-panels.vue.d.ts +2 -2
  83. package/types/components/nodes/file-input.vue.d.ts +2 -24
  84. package/types/components/nodes/file-input.vue.d.ts.map +1 -1
  85. package/types/components/nodes/list.vue.d.ts +2 -2
  86. package/types/components/nodes/number-combobox.vue.d.ts +2 -24
  87. package/types/components/nodes/number-combobox.vue.d.ts.map +1 -1
  88. package/types/components/nodes/number-field.vue.d.ts +2 -24
  89. package/types/components/nodes/number-field.vue.d.ts.map +1 -1
  90. package/types/components/nodes/one-of-select.vue.d.ts +2 -2
  91. package/types/components/nodes/radio-group.vue.d.ts +5 -0
  92. package/types/components/nodes/radio-group.vue.d.ts.map +1 -0
  93. package/types/components/nodes/section.vue.d.ts +2 -2
  94. package/types/components/nodes/select.vue.d.ts +2 -24
  95. package/types/components/nodes/select.vue.d.ts.map +1 -1
  96. package/types/components/nodes/slider.vue.d.ts +3 -8
  97. package/types/components/nodes/stepper.vue.d.ts +2 -2
  98. package/types/components/nodes/switch-group.vue.d.ts +5 -0
  99. package/types/components/nodes/switch-group.vue.d.ts.map +1 -0
  100. package/types/components/nodes/switch.vue.d.ts +3 -8
  101. package/types/components/nodes/tabs.vue.d.ts +2 -2
  102. package/types/components/nodes/text-field.vue.d.ts +2 -24
  103. package/types/components/nodes/text-field.vue.d.ts.map +1 -1
  104. package/types/components/nodes/textarea.vue.d.ts +2 -24
  105. package/types/components/nodes/textarea.vue.d.ts.map +1 -1
  106. package/types/components/nodes/time-picker.vue.d.ts +8 -1
  107. package/types/components/nodes/vertical-tabs.vue.d.ts +2 -2
  108. package/types/components/options.d.ts +1 -1
  109. package/types/components/options.d.ts.map +1 -1
  110. package/types/components/tree.vue.d.ts +2 -2
  111. package/types/components/vjsf.vue.d.ts +4 -4
  112. package/types/composables/use-comp-defaults.d.ts +8 -0
  113. package/types/composables/use-comp-defaults.d.ts.map +1 -0
  114. package/types/composables/use-dnd.d.ts +3 -3
  115. package/types/composables/use-dnd.d.ts.map +1 -1
  116. package/types/composables/use-field-props.d.ts +30 -0
  117. package/types/composables/use-field-props.d.ts.map +1 -0
  118. package/types/composables/use-field.d.ts +31 -0
  119. package/types/composables/use-field.d.ts.map +1 -0
  120. package/types/composables/use-get-items.d.ts +12 -0
  121. package/types/composables/use-get-items.d.ts.map +1 -0
  122. package/types/composables/use-node.d.ts +32 -0
  123. package/types/composables/use-node.d.ts.map +1 -0
  124. package/types/composables/use-select-field.d.ts +21 -0
  125. package/types/composables/use-select-field.d.ts.map +1 -0
  126. package/types/composables/use-select-node.d.ts +27 -0
  127. package/types/composables/use-select-node.d.ts.map +1 -0
  128. package/types/composables/use-select-props.d.ts +21 -0
  129. package/types/composables/use-select-props.d.ts.map +1 -0
  130. package/types/composables/use-select.d.ts +21 -0
  131. package/types/composables/use-select.d.ts.map +1 -0
  132. package/types/composables/use-vjsf.d.ts +2 -2
  133. package/types/composables/use-vjsf.d.ts.map +1 -1
  134. package/types/iconsets/default-aliases.d.ts +10 -0
  135. package/types/iconsets/default-aliases.d.ts.map +1 -0
  136. package/types/iconsets/mdi-svg.d.ts +3 -0
  137. package/types/iconsets/mdi-svg.d.ts.map +1 -0
  138. package/types/iconsets/mdi.d.ts +3 -0
  139. package/types/iconsets/mdi.d.ts.map +1 -0
  140. package/types/index.d.ts +5 -2
  141. package/types/index.d.ts.map +1 -1
  142. package/types/options.d.ts +9 -0
  143. package/types/options.d.ts.map +1 -0
  144. package/types/types.d.ts +65 -33
  145. package/types/types.d.ts.map +1 -1
  146. package/types/utils/arrays.d.ts +17 -4
  147. package/types/utils/arrays.d.ts.map +1 -1
  148. package/types/utils/index.d.ts +0 -3
  149. package/types/utils/props.d.ts +7 -0
  150. package/types/utils/props.d.ts.map +1 -1
  151. package/types/utils/slots.d.ts +8 -0
  152. package/types/utils/slots.d.ts.map +1 -1
  153. package/src/compile/index.js +0 -65
  154. package/src/compile/options.js +0 -19
  155. package/src/compile/v-jsf-compiled.vue.ejs +0 -61
  156. package/src/components/options.js +0 -27
  157. package/src/utils/global-register.js +0 -13
  158. package/src/utils/index.js +0 -5
  159. package/src/utils/props.js +0 -107
  160. package/src/utils/slots.js +0 -18
  161. package/types/utils/global-register.d.ts +0 -8
  162. package/types/utils/global-register.d.ts.map +0 -1
package/src/options.js ADDED
@@ -0,0 +1,67 @@
1
+ /** @type {import('./types.js').VjsfIcons} */
2
+ export const defaultIcons = {
3
+ // as much as possible with use standard vuetify aliases
4
+ add: '$plus',
5
+ calendar: '$calendar',
6
+ close: '$close',
7
+ edit: '$edit',
8
+ sortDown: '$sortDesc',
9
+ sortUp: '$sortAsc',
10
+ // codes are copied from here https://raw.githubusercontent.com/Templarian/MaterialDesign-JS/refs/heads/master/mdi.js
11
+ alert: 'svg:M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z',
12
+ clock: 'svg:M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z',
13
+ delete: 'svg:M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z',
14
+ duplicate: 'svg:M11,17H4A2,2 0 0,1 2,15V3A2,2 0 0,1 4,1H16V3H4V15H11V13L15,16L11,19V17M19,21V7H8V13H6V7A2,2 0 0,1 8,5H19A2,2 0 0,1 21,7V21A2,2 0 0,1 19,23H8A2,2 0 0,1 6,21V19H8V21H19Z',
15
+ infoSymbol: 'svg:M11 9H13V7H11V9M11 17H13V11H11V17Z',
16
+ menu: 'svg:M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z',
17
+ sort: 'svg:M17.45,17.55L12,23L6.55,17.55L7.96,16.14L11,19.17V4.83L7.96,7.86L6.55,6.45L12,1L17.45,6.45L16.04,7.86L13,4.83V19.17L16.04,16.14L17.45,17.55Z'
18
+ }
19
+
20
+ export const defaultOptions = {
21
+ nodeComponents: {},
22
+ plugins: [],
23
+ pluginsOptions: {}
24
+ }
25
+
26
+ /**
27
+ *
28
+ * @param {Partial<import("./types.js").VjsfOptions> | null} options
29
+ * @param {any} form
30
+ * @param {number} width
31
+ * @param {Record<string, unknown> | undefined} globalDefaults
32
+ * @param {import("vue").Slots} slots
33
+ * @param {Record<string, import('vue').Component>} defaultNodeComponents
34
+ * @param {(data: any) => void} onData
35
+ * @param {(statefulLayout: import('@json-layout/core').StatefulLayout) => void} onUpdate
36
+ * @param {(key: string) => void} onAutofocus
37
+ * @returns
38
+ */
39
+ export const getFullOptions = (options, form, width, globalDefaults, slots, defaultNodeComponents, onData, onUpdate, onAutofocus) => {
40
+ const components = { ...options?.components }
41
+ const nodeComponents = { ...defaultNodeComponents, ...options?.nodeComponents }
42
+ if (options?.plugins) {
43
+ for (const plugin of options.plugins) {
44
+ components[plugin.info.name] = plugin.info
45
+ nodeComponents[plugin.info.name] = plugin.nodeComponent
46
+ }
47
+ }
48
+ const icons = { ...options?.icons, ...defaultIcons }
49
+
50
+ /** @type {import('./types.js').VjsfOptions} */
51
+ const fullOptions = {
52
+ ...defaultOptions,
53
+ readOnly: !!(form && (form.isDisabled.value || form.isReadonly.value)),
54
+ density: /** @type {import("./types.js").VjsfOptions['density']} */(globalDefaults?.density),
55
+ ...options,
56
+ onData,
57
+ onUpdate,
58
+ onAutofocus,
59
+ context: options?.context ? JSON.parse(JSON.stringify(options.context)) : {},
60
+ width: Math.round(width ?? 0),
61
+ vjsfSlots: { ...slots },
62
+ components,
63
+ nodeComponents,
64
+ icons
65
+ }
66
+ return fullOptions
67
+ }
package/src/types.ts CHANGED
@@ -1,4 +1,6 @@
1
- import { Component } from 'vue'
1
+ import type { Component, Slots } from 'vue'
2
+
3
+ import type { ComponentInfo } from '@json-layout/vocabulary'
2
4
 
3
5
  import {
4
6
  StatefulLayout,
@@ -15,6 +17,9 @@ import {
15
17
  OneOfSelectNode,
16
18
  SectionNode,
17
19
  SelectNode,
20
+ RadioGroupNode,
21
+ CheckboxGroupNode,
22
+ SwitchGroupNode,
18
23
  SliderNode,
19
24
  SwitchNode,
20
25
  TextFieldNode,
@@ -22,51 +27,77 @@ import {
22
27
  VerticalTabsNode,
23
28
  StepperNode,
24
29
  ComboboxNode,
25
- MarkdownNode,
26
30
  FileInputNode,
31
+ CardNode,
27
32
  CompileOptions
28
33
  } from '@json-layout/core'
29
34
 
30
35
  export type Density = 'default' | 'comfortable' | 'compact'
31
36
 
37
+ export type Plugin = {
38
+ info: ComponentInfo,
39
+ nodeComponent: Component
40
+ }
41
+
42
+ export type VjsfIcons = {
43
+ add: string
44
+ alert: string
45
+ calendar: string
46
+ clock: string
47
+ close: string
48
+ delete: string
49
+ duplicate: string
50
+ edit: string
51
+ infoSymbol: string
52
+ menu: string
53
+ sort: string
54
+ sortUp: string
55
+ sortDown: string
56
+ }
57
+
32
58
  // these options used to contain many possibilities to override props in various components
33
59
  // this was unmaintainable and has been removed, customization of components should be done via slots
34
- // and vuetify defaults providers
35
- export type VjsfStatefulLayoutOptions = StatefulLayoutOptions & {
36
- vjsfSlots: Record<string, () => unknown>,
60
+ // and defaults providers
61
+ export type VjsfStatefulLayoutOptions = Partial<StatefulLayoutOptions> & {
62
+ vjsfSlots: Slots,
37
63
  nodeComponents: Record<string, Component>,
38
- plugins: Record<string, unknown>
64
+ plugins: Plugin[],
65
+ pluginsOptions: Record<string, unknown>,
66
+ icons: VjsfIcons
39
67
  }
40
68
 
41
- export type VjsfCompileOptions = CompileOptions & {
42
- nodeComponentImports: Record<string, string>
69
+ export type VjsfCompileOptions = Partial<CompileOptions> & {
70
+ pluginsImports: string[]
43
71
  }
72
+ export type PartialVjsfCompileOptions = Partial<VjsfCompileOptions>
44
73
 
45
- export type VjsfOptions = VjsfCompileOptions & VjsfStatefulLayoutOptions
74
+ export type VjsfOptions = PartialVjsfCompileOptions & VjsfStatefulLayoutOptions
75
+ export type PartialVjsfOptions = Partial<Omit<VjsfOptions, 'width' | 'vjsfSlots' | 'onData' | 'onUpdate' | 'onAutofocus'>>
76
+ export type FullVjsfNodeOptions = Required<VjsfOptions>
46
77
 
47
78
  export type VjsfStatefulLayout = Omit<StatefulLayout, 'options'> & {options: VjsfStatefulLayoutOptions}
48
79
 
49
- export type PartialVjsfCompileOptions = Partial<Omit<VjsfCompileOptions, 'width'>>
50
- export type PartialVjsfOptions = Partial<Omit<VjsfOptions, 'width'>>
51
-
52
- export type VjsfNode = Omit<StateNode, 'options'> & {options: VjsfOptions}
53
- export type VjsfTabsNode = Omit<TabsNode, 'options'> & {options: VjsfOptions}
54
- export type VjsfCheckboxNode = Omit<CheckboxNode, 'options'> & {options: VjsfOptions}
55
- export type VjsfColorPickerNode = Omit<ColorPickerNode, 'options'> & {options: VjsfOptions}
56
- export type VjsfDatePickerNode = Omit<DatePickerNode, 'options'> & {options: VjsfOptions}
57
- export type VjsfDateTimePickerNode = Omit<DateTimePickerNode, 'options'> & {options: VjsfOptions}
58
- export type VjsfExpansionPanelsNode = Omit<ExpansionPanelsNode, 'options'> & {options: VjsfOptions}
59
- export type VjsfListNode = Omit<ListNode, 'options'> & {options: VjsfOptions}
60
- export type VjsfNumberFieldNode = Omit<NumberFieldNode, 'options'> & {options: VjsfOptions}
61
- export type VjsfOneOfSelectNode = Omit<OneOfSelectNode, 'options'> & {options: VjsfOptions}
62
- export type VjsfSectionNode = Omit<SectionNode, 'options'> & {options: VjsfOptions}
63
- export type VjsfSelectNode = Omit<SelectNode, 'options'> & {options: VjsfOptions}
64
- export type VjsfSliderNode = Omit<SliderNode, 'options'> & {options: VjsfOptions}
65
- export type VjsfSwitchNode = Omit<SwitchNode, 'options'> & {options: VjsfOptions}
66
- export type VjsfTextFieldNode = Omit<TextFieldNode, 'options'> & {options: VjsfOptions}
67
- export type VjsfTextareaNode = Omit<TextareaNode, 'options'> & {options: VjsfOptions}
68
- export type VjsfMarkdownNode = Omit<MarkdownNode, 'options'> & {options: VjsfOptions}
69
- export type VjsfVerticalTabsNode = Omit<VerticalTabsNode, 'options'> & {options: VjsfOptions}
70
- export type VjsfStepperNode = Omit<StepperNode, 'options'> & {options: VjsfOptions}
71
- export type VjsfComboboxNode = Omit<ComboboxNode, 'options'> & {options: VjsfOptions}
72
- export type VjsfFileInputNode = Omit<FileInputNode, 'options'> & {options: VjsfOptions}
80
+ export type VjsfNode = Omit<StateNode, 'options'> & {options: FullVjsfNodeOptions}
81
+ export type VjsfTabsNode = Omit<TabsNode, 'options'> & {options: FullVjsfNodeOptions}
82
+ export type VjsfCheckboxNode = Omit<CheckboxNode, 'options'> & {options: FullVjsfNodeOptions}
83
+ export type VjsfColorPickerNode = Omit<ColorPickerNode, 'options'> & {options: FullVjsfNodeOptions}
84
+ export type VjsfDatePickerNode = Omit<DatePickerNode, 'options'> & {options: FullVjsfNodeOptions}
85
+ export type VjsfDateTimePickerNode = Omit<DateTimePickerNode, 'options'> & {options: FullVjsfNodeOptions}
86
+ export type VjsfExpansionPanelsNode = Omit<ExpansionPanelsNode, 'options'> & {options: FullVjsfNodeOptions}
87
+ export type VjsfListNode = Omit<ListNode, 'options'> & {options: FullVjsfNodeOptions}
88
+ export type VjsfNumberFieldNode = Omit<NumberFieldNode, 'options'> & {options: FullVjsfNodeOptions}
89
+ export type VjsfOneOfSelectNode = Omit<OneOfSelectNode, 'options'> & {options: FullVjsfNodeOptions}
90
+ export type VjsfSectionNode = Omit<SectionNode, 'options'> & {options: FullVjsfNodeOptions}
91
+ export type VjsfSelectNode = Omit<SelectNode, 'options'> & {options: FullVjsfNodeOptions}
92
+ export type VjsfRadioGroupNode = Omit<RadioGroupNode, 'options'> & {options: FullVjsfNodeOptions}
93
+ export type VjsfCheckboxGroupNode = Omit<CheckboxGroupNode, 'options'> & {options: FullVjsfNodeOptions}
94
+ export type VjsfSwitchGroupNode = Omit<SwitchGroupNode, 'options'> & {options: FullVjsfNodeOptions}
95
+ export type VjsfSliderNode = Omit<SliderNode, 'options'> & {options: FullVjsfNodeOptions}
96
+ export type VjsfSwitchNode = Omit<SwitchNode, 'options'> & {options: FullVjsfNodeOptions}
97
+ export type VjsfTextFieldNode = Omit<TextFieldNode, 'options'> & {options: FullVjsfNodeOptions}
98
+ export type VjsfTextareaNode = Omit<TextareaNode, 'options'> & {options: FullVjsfNodeOptions}
99
+ export type VjsfVerticalTabsNode = Omit<VerticalTabsNode, 'options'> & {options: FullVjsfNodeOptions}
100
+ export type VjsfStepperNode = Omit<StepperNode, 'options'> & {options: FullVjsfNodeOptions}
101
+ export type VjsfComboboxNode = Omit<ComboboxNode, 'options'> & {options: FullVjsfNodeOptions}
102
+ export type VjsfFileInputNode = Omit<FileInputNode, 'options'> & {options: FullVjsfNodeOptions}
103
+ export type VjsfCardNode = Omit<CardNode, 'options'> & {options: FullVjsfNodeOptions}
@@ -1,15 +1,46 @@
1
1
  /**
2
- * @template T
3
- * @param {T[]} array
2
+ * @param {any[] | Record<string, any>} data
4
3
  * @param {number} fromIndex
5
4
  * @param {number} toIndex
6
- * @return {T[]}
5
+ * @return {any[] | Record<string, any>}
7
6
  */
8
- export function moveArrayItem (array, fromIndex, toIndex) {
9
- if (fromIndex === toIndex || fromIndex === -1 || toIndex === -1) return array
10
- const newArray = [...array]
7
+ export function moveDataItem (data, fromIndex, toIndex) {
8
+ if (fromIndex === toIndex || fromIndex === -1 || toIndex === -1) return data
9
+ if (!Array.isArray(data) && typeof data === 'object') return moveObjectItem(data, fromIndex, toIndex)
10
+ return moveArrayItem(data, fromIndex, toIndex)
11
+ }
12
+
13
+ /**
14
+ * @param {any[]} data
15
+ * @param {number} fromIndex
16
+ * @param {number} toIndex
17
+ * @return {any[]}
18
+ */
19
+ export function moveArrayItem (data, fromIndex, toIndex) {
20
+ if (fromIndex === toIndex || fromIndex === -1 || toIndex === -1) return data
21
+ // @ts-ignore
22
+ if (!Array.isArray(data) && typeof data === 'object') return moveObjectItem(data, fromIndex, toIndex)
23
+ const newArray = [...data]
11
24
  const element = newArray[fromIndex]
12
25
  newArray.splice(fromIndex, 1)
13
26
  newArray.splice(toIndex, 0, element)
14
27
  return newArray
15
28
  }
29
+
30
+ /**
31
+ * @param {Record<string, any>} data
32
+ * @param {number} fromIndex
33
+ * @param {number} toIndex
34
+ * @return {Record<string, any>}
35
+ */
36
+ export function moveObjectItem (data, fromIndex, toIndex) {
37
+ if (fromIndex === toIndex || fromIndex === -1 || toIndex === -1) return data
38
+ const newKeys = /** @type {string[] } */(moveArrayItem(Object.keys(data), fromIndex, toIndex))
39
+ /** @type {Record<string, any>} */
40
+ const newData = {}
41
+ for (const key of newKeys) {
42
+ newData[key] = data[key]
43
+ }
44
+ console.log(newData)
45
+ return newData
46
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/compat/v2.js"],"names":[],"mappings":"AAoGA;;;;;;GAMG;AACH,kCALW,MAAM,+CAEN,MAAM,0BAkBhB;sBA1HqB,KAAK"}
1
+ {"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/compat/v2.js"],"names":[],"mappings":"AAqMA;;;;;;GAMG;AACH,kCALW,MAAM,+CAEN,MAAM,0BAoBhB;sBA7NqB,KAAK"}
@@ -2,7 +2,7 @@
2
2
  * @param {object} schema
3
3
  * @param {import('../types.js').PartialVjsfCompileOptions} [options]
4
4
  * @param {string} [baseImport]
5
- * @returns {string}
5
+ * @returns {Promise<string>}
6
6
  */
7
- export function compile(schema: object, options?: Partial<Omit<import("../types.js").VjsfCompileOptions, "width">> | undefined, baseImport?: string | undefined): string;
7
+ export function compile(schema: object, options?: Partial<import("../types.js").VjsfCompileOptions> | undefined, baseImport?: string | undefined): Promise<string>;
8
8
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"AAmCA;;;;;GAKG;AACH,gCALW,MAAM,4HAGJ,MAAM,CAyBlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/compile/index.js"],"names":[],"mappings":"AAmCA;;;;;GAKG;AACH,gCALW,MAAM,6GAGJ,QAAQ,MAAM,CAAC,CAwC3B"}
@@ -1,4 +1,5 @@
1
- /** @type import("../types.js").PartialVjsfCompileOptions */
2
- export const defaultOptions: import("../types.js").PartialVjsfCompileOptions;
1
+ export namespace defaultOptions {
2
+ let pluginsImports: string[];
3
+ }
3
4
  export function getFullOptions(options: import("../types.js").PartialVjsfCompileOptions): import("../types.js").VjsfCompileOptions;
4
5
  //# sourceMappingURL=options.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,6BADU,OAAO,aAAa,EAAE,yBAAyB,CAKxD;AAOM,wCAHI,OAAO,aAAa,EAAE,yBAAyB,4CASzD"}
1
+ {"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":";;;AASO,wCAHI,OAAO,aAAa,EAAE,yBAAyB,4CAOzD"}
@@ -0,0 +1,8 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ modelValue: import("../../../../node_modules/@json-layout/core/types/state/types.js").StateNode;
3
+ $props: {
4
+ modelValue?: import("../../../../node_modules/@json-layout/core/types/state/types.js").StateNode | undefined;
5
+ };
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
8
+ //# sourceMappingURL=child-subtitle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"child-subtitle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/child-subtitle.vue.js"],"names":[],"mappings":""}
@@ -1,8 +1,8 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
2
  node: import("../../types.js").VjsfNode;
3
3
  $props: {
4
4
  readonly node?: import("../../types.js").VjsfNode | undefined;
5
5
  };
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
7
  export default _default;
8
8
  //# sourceMappingURL=help-message.vue.d.ts.map
@@ -1,47 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- layoutSlot: {
3
- /** @type import('vue').PropType<import('@json-layout/vocabulary').Slot> */
4
- type: import('vue').PropType<import('@json-layout/vocabulary').Slot>;
5
- required: true;
6
- };
7
- node: {
8
- /** @type import('vue').PropType<import('../../types.js').VjsfNode> */
9
- type: import('vue').PropType<import('../../types.js').VjsfNode>;
10
- required: true;
11
- };
12
- statefulLayout: {
13
- /** @type import('vue').PropType<import('../../types.js').VjsfStatefulLayout> */
14
- type: import('vue').PropType<import('../../types.js').VjsfStatefulLayout>;
15
- required: true;
16
- };
17
- tag: {
18
- /** @type import('vue').PropType<string> */
19
- type: import('vue').PropType<string>;
20
- default: null;
21
- };
22
- }, any, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
23
- layoutSlot: {
24
- /** @type import('vue').PropType<import('@json-layout/vocabulary').Slot> */
25
- type: import('vue').PropType<import('@json-layout/vocabulary').Slot>;
26
- required: true;
27
- };
28
- node: {
29
- /** @type import('vue').PropType<import('../../types.js').VjsfNode> */
30
- type: import('vue').PropType<import('../../types.js').VjsfNode>;
31
- required: true;
32
- };
33
- statefulLayout: {
34
- /** @type import('vue').PropType<import('../../types.js').VjsfStatefulLayout> */
35
- type: import('vue').PropType<import('../../types.js').VjsfStatefulLayout>;
36
- required: true;
37
- };
38
- tag: {
39
- /** @type import('vue').PropType<string> */
40
- type: import('vue').PropType<string>;
41
- default: null;
42
- };
43
- }>>, {
1
+ declare const _default: import("vue").DefineComponent<any, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {
44
2
  tag: string;
45
- }, {}>;
3
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
4
  export default _default;
47
5
  //# sourceMappingURL=node-slot.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-slot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/node-slot.vue.js"],"names":[],"mappings":";;QAUM,2EAA2E;cAAjE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,yBAAyB,EAAE,IAAI,CAAC;;;;QAKxE,sEAAsE;cAA5D,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,QAAQ,CAAC;;;;QAKnE,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;QAK7E,2CAA2C;cAAjC,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC;;;;;QAfxC,2EAA2E;cAAjE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,yBAAyB,EAAE,IAAI,CAAC;;;;QAKxE,sEAAsE;cAA5D,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,QAAQ,CAAC;;;;QAKnE,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;QAK7E,2CAA2C;cAAjC,OAAO,KAAK,EAAE,QAAQ,CAAC,MAAM,CAAC"}
1
+ {"version":3,"file":"node-slot.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/node-slot.vue.js"],"names":[],"mappings":""}
@@ -1,8 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
2
  node: import("../../types.js").VjsfNode;
3
+ hideTitle: boolean;
3
4
  $props: {
4
5
  readonly node?: import("../../types.js").VjsfNode | undefined;
6
+ readonly hideTitle?: boolean | undefined;
5
7
  };
6
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
9
  export default _default;
8
10
  //# sourceMappingURL=section-header.vue.d.ts.map
@@ -1,15 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- icon: {
3
- type: StringConstructor;
4
- required: true;
5
- };
6
- }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
1
+ declare const _default: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
7
2
  [key: string]: any;
8
- }>, any, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
- icon: {
10
- type: StringConstructor;
11
- required: true;
12
- };
13
- }>>, {}, {}>;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
4
  export default _default;
15
5
  //# sourceMappingURL=select-item-icon.vue.d.ts.map
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
2
  multiple: boolean;
3
3
  item: import("../../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItem;
4
4
  itemProps: Record<string, any>;
@@ -7,6 +7,6 @@ declare const _default: import("vue").DefineComponent<{}, {
7
7
  readonly item?: import("../../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItem | undefined;
8
8
  readonly itemProps?: Record<string, any> | undefined;
9
9
  };
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
11
  export default _default;
12
12
  //# sourceMappingURL=select-item.vue.d.ts.map
@@ -1,4 +1,4 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
2
  multiple: boolean;
3
3
  item: import("../../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItem;
4
4
  last: boolean;
@@ -7,6 +7,6 @@ declare const _default: import("vue").DefineComponent<{}, {
7
7
  readonly item?: import("../../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItem | undefined;
8
8
  readonly last?: boolean | undefined;
9
9
  };
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
11
  export default _default;
12
12
  //# sourceMappingURL=select-selection.vue.d.ts.map
@@ -0,0 +1,5 @@
1
+ declare const _default: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
5
+ //# sourceMappingURL=selection-group.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selection-group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/selection-group.vue.js"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<any, {
2
2
  modelValue: import("../../types.js").VjsfNode;
3
3
  statefulLayout: import("../../types.js").VjsfStatefulLayout;
4
4
  formattedValue: string | null;
@@ -7,7 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}
7
7
  readonly statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
8
8
  readonly formattedValue?: string | null | undefined;
9
9
  };
10
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
10
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>, {
11
11
  "prepend-inner"?(_: {}): any;
12
12
  default?(_: {
13
13
  close: () => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"text-field-menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/text-field-menu.vue.js"],"names":[],"mappings":";;;;;;;;;;6BAkIsC,GAAG;;;QACX,GAAG"}
1
+ {"version":3,"file":"text-field-menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/text-field-menu.vue.js"],"names":[],"mappings":";;;;;;;;;;6BA8IsC,GAAG;;;QACX,GAAG"}
@@ -1,10 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
2
  modelValue: import("../types.js").VjsfNode;
3
3
  statefulLayout: import("../types.js").VjsfStatefulLayout;
4
4
  $props: {
5
5
  readonly modelValue?: import("../types.js").VjsfNode | undefined;
6
6
  readonly statefulLayout?: import("../types.js").VjsfStatefulLayout | undefined;
7
7
  };
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=node.vue.d.ts.map
@@ -1,27 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- modelValue: {
3
- /** @type import('vue').PropType<import('../../types.js').VjsfSelectNode> */
4
- type: import('vue').PropType<import('../../types.js').VjsfSelectNode>;
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, {
1
+ declare const _default: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
2
  [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').VjsfSelectNode> */
17
- type: import('vue').PropType<import('../../types.js').VjsfSelectNode>;
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
- }>>, {}, {}>;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
4
  export default _default;
27
5
  //# sourceMappingURL=autocomplete.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/autocomplete.vue.js"],"names":[],"mappings":";;QAWI,4EAA4E;cAAlE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,cAAc,CAAC;;;;QAKzE,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC;;;;;;;QAL7E,4EAA4E;cAAlE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,cAAc,CAAC;;;;QAKzE,gFAAgF;cAAtE,OAAO,KAAK,EAAE,QAAQ,CAAC,OAAO,gBAAgB,EAAE,kBAAkB,CAAC"}
1
+ {"version":3,"file":"autocomplete.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/autocomplete.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ declare const _default: import("vue").DefineComponent<any, {
2
+ modelValue: import("../../types.js").VjsfCardNode;
3
+ statefulLayout: import("../../types.js").VjsfStatefulLayout;
4
+ $props: {
5
+ readonly modelValue?: import("../../types.js").VjsfCardNode | undefined;
6
+ readonly statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
7
+ };
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
10
+ //# sourceMappingURL=card.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/card.vue.js"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ declare const _default: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
5
+ //# sourceMappingURL=checkbox-group.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"checkbox-group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/checkbox-group.vue.js"],"names":[],"mappings":""}
@@ -1,10 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
2
- modelValue: import("../../types.js").VjsfCheckboxNode;
3
- statefulLayout: import("../../types.js").VjsfStatefulLayout;
4
- $props: {
5
- readonly modelValue?: import("../../types.js").VjsfCheckboxNode | 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<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
4
  export default _default;
10
5
  //# sourceMappingURL=checkbox.vue.d.ts.map
@@ -1,10 +1,10 @@
1
- declare const _default: import("vue").DefineComponent<{}, {
1
+ declare const _default: import("vue").DefineComponent<any, {
2
2
  modelValue: import("../../types.js").VjsfColorPickerNode;
3
3
  statefulLayout: import("../../types.js").VjsfStatefulLayout;
4
4
  $props: {
5
5
  readonly modelValue?: import("../../types.js").VjsfColorPickerNode | undefined;
6
6
  readonly statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
7
7
  };
8
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
8
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
9
  export default _default;
10
10
  //# sourceMappingURL=color-picker.vue.d.ts.map
@@ -1,27 +1,5 @@
1
- declare const _default: import("vue").DefineComponent<{
2
- modelValue: {
3
- /** @type import('vue').PropType<import('../../types.js').VjsfComboboxNode> */
4
- type: import('vue').PropType<import('../../types.js').VjsfComboboxNode>;
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, {
1
+ declare const _default: import("vue").DefineComponent<any, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
13
2
  [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').VjsfComboboxNode> */
17
- type: import('vue').PropType<import('../../types.js').VjsfComboboxNode>;
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
- }>>, {}, {}>;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
26
4
  export default _default;
27
5
  //# sourceMappingURL=combobox.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"combobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/combobox.vue.js"],"names":[],"mappings":";;QASM,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"}
1
+ {"version":3,"file":"combobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/combobox.vue.js"],"names":[],"mappings":""}