@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.
- package/README.md +21 -0
- package/package.json +13 -20
- package/src/compat/v2.js +126 -27
- package/src/components/fragments/child-subtitle.vue +25 -0
- package/src/components/fragments/help-message.vue +33 -8
- package/src/components/fragments/section-header.vue +9 -7
- package/src/components/fragments/select-item-icon.vue +2 -2
- package/src/components/fragments/select-item.vue +2 -1
- package/src/components/fragments/select-selection.vue +2 -1
- package/src/components/fragments/selection-group.vue +105 -0
- package/src/components/fragments/text-field-menu.vue +16 -7
- package/src/components/node.vue +58 -41
- package/src/components/nodes/autocomplete.vue +14 -60
- package/src/components/nodes/card.vue +39 -0
- package/src/components/nodes/checkbox-group.vue +39 -0
- package/src/components/nodes/checkbox.vue +31 -26
- package/src/components/nodes/color-picker.vue +10 -5
- package/src/components/nodes/combobox.vue +17 -40
- package/src/components/nodes/date-picker.vue +30 -13
- package/src/components/nodes/date-time-picker.vue +83 -3
- package/src/components/nodes/expansion-panels.vue +17 -9
- package/src/components/nodes/file-input.vue +15 -11
- package/src/components/nodes/list.vue +246 -112
- package/src/components/nodes/number-combobox.vue +18 -39
- package/src/components/nodes/number-field.vue +17 -11
- package/src/components/nodes/one-of-select.vue +53 -27
- package/src/components/nodes/radio-group.vue +58 -0
- package/src/components/nodes/section.vue +4 -1
- package/src/components/nodes/select.vue +15 -54
- package/src/components/nodes/slider.vue +32 -29
- package/src/components/nodes/stepper.vue +10 -2
- package/src/components/nodes/switch-group.vue +39 -0
- package/src/components/nodes/switch.vue +31 -26
- package/src/components/nodes/tabs.vue +20 -8
- package/src/components/nodes/text-field.vue +10 -7
- package/src/components/nodes/textarea.vue +20 -12
- package/src/components/nodes/time-picker.vue +41 -1
- package/src/components/nodes/vertical-tabs.vue +16 -6
- package/src/components/tree.vue +1 -1
- package/src/components/vjsf.vue +11 -1
- package/src/composables/use-comp-defaults.js +19 -0
- package/src/composables/use-dnd.js +2 -1
- package/src/composables/use-get-items.js +53 -0
- package/src/composables/use-node.js +136 -0
- package/src/composables/use-select-node.js +67 -0
- package/src/composables/use-vjsf.js +74 -42
- package/src/index.js +5 -2
- package/src/options.js +67 -0
- package/src/types.ts +64 -33
- package/src/utils/arrays.js +37 -6
- package/types/compat/v2.d.ts.map +1 -1
- package/types/compile/index.d.ts +2 -2
- package/types/compile/index.d.ts.map +1 -1
- package/types/compile/options.d.ts +3 -2
- package/types/compile/options.d.ts.map +1 -1
- package/types/components/fragments/child-subtitle.vue.d.ts +8 -0
- package/types/components/fragments/child-subtitle.vue.d.ts.map +1 -0
- package/types/components/fragments/help-message.vue.d.ts +2 -2
- package/types/components/fragments/node-slot.vue.d.ts +2 -44
- package/types/components/fragments/node-slot.vue.d.ts.map +1 -1
- package/types/components/fragments/section-header.vue.d.ts +4 -2
- package/types/components/fragments/select-item-icon.vue.d.ts +2 -12
- package/types/components/fragments/select-item.vue.d.ts +2 -2
- package/types/components/fragments/select-selection.vue.d.ts +2 -2
- package/types/components/fragments/selection-group.vue.d.ts +5 -0
- package/types/components/fragments/selection-group.vue.d.ts.map +1 -0
- package/types/components/fragments/text-field-menu.vue.d.ts +2 -2
- package/types/components/fragments/text-field-menu.vue.d.ts.map +1 -1
- package/types/components/node.vue.d.ts +2 -2
- package/types/components/nodes/autocomplete.vue.d.ts +2 -24
- package/types/components/nodes/autocomplete.vue.d.ts.map +1 -1
- package/types/components/nodes/card.vue.d.ts +10 -0
- package/types/components/nodes/card.vue.d.ts.map +1 -0
- package/types/components/nodes/checkbox-group.vue.d.ts +5 -0
- package/types/components/nodes/checkbox-group.vue.d.ts.map +1 -0
- package/types/components/nodes/checkbox.vue.d.ts +3 -8
- package/types/components/nodes/color-picker.vue.d.ts +2 -2
- package/types/components/nodes/combobox.vue.d.ts +2 -24
- package/types/components/nodes/combobox.vue.d.ts.map +1 -1
- package/types/components/nodes/date-picker.vue.d.ts +2 -2
- package/types/components/nodes/date-time-picker.vue.d.ts +4 -4
- package/types/components/nodes/expansion-panels.vue.d.ts +2 -2
- package/types/components/nodes/file-input.vue.d.ts +2 -24
- package/types/components/nodes/file-input.vue.d.ts.map +1 -1
- package/types/components/nodes/list.vue.d.ts +2 -2
- package/types/components/nodes/number-combobox.vue.d.ts +2 -24
- package/types/components/nodes/number-combobox.vue.d.ts.map +1 -1
- package/types/components/nodes/number-field.vue.d.ts +2 -24
- package/types/components/nodes/number-field.vue.d.ts.map +1 -1
- package/types/components/nodes/one-of-select.vue.d.ts +2 -2
- package/types/components/nodes/radio-group.vue.d.ts +5 -0
- package/types/components/nodes/radio-group.vue.d.ts.map +1 -0
- package/types/components/nodes/section.vue.d.ts +2 -2
- package/types/components/nodes/select.vue.d.ts +2 -24
- package/types/components/nodes/select.vue.d.ts.map +1 -1
- package/types/components/nodes/slider.vue.d.ts +3 -8
- package/types/components/nodes/stepper.vue.d.ts +2 -2
- package/types/components/nodes/switch-group.vue.d.ts +5 -0
- package/types/components/nodes/switch-group.vue.d.ts.map +1 -0
- package/types/components/nodes/switch.vue.d.ts +3 -8
- package/types/components/nodes/tabs.vue.d.ts +2 -2
- package/types/components/nodes/text-field.vue.d.ts +2 -24
- package/types/components/nodes/text-field.vue.d.ts.map +1 -1
- package/types/components/nodes/textarea.vue.d.ts +2 -24
- package/types/components/nodes/textarea.vue.d.ts.map +1 -1
- package/types/components/nodes/time-picker.vue.d.ts +8 -1
- package/types/components/nodes/vertical-tabs.vue.d.ts +2 -2
- package/types/components/options.d.ts +1 -1
- package/types/components/options.d.ts.map +1 -1
- package/types/components/tree.vue.d.ts +2 -2
- package/types/components/vjsf.vue.d.ts +4 -4
- package/types/composables/use-comp-defaults.d.ts +8 -0
- package/types/composables/use-comp-defaults.d.ts.map +1 -0
- package/types/composables/use-dnd.d.ts +3 -3
- package/types/composables/use-dnd.d.ts.map +1 -1
- package/types/composables/use-field-props.d.ts +30 -0
- package/types/composables/use-field-props.d.ts.map +1 -0
- package/types/composables/use-field.d.ts +31 -0
- package/types/composables/use-field.d.ts.map +1 -0
- package/types/composables/use-get-items.d.ts +12 -0
- package/types/composables/use-get-items.d.ts.map +1 -0
- package/types/composables/use-node.d.ts +32 -0
- package/types/composables/use-node.d.ts.map +1 -0
- package/types/composables/use-select-field.d.ts +21 -0
- package/types/composables/use-select-field.d.ts.map +1 -0
- package/types/composables/use-select-node.d.ts +27 -0
- package/types/composables/use-select-node.d.ts.map +1 -0
- package/types/composables/use-select-props.d.ts +21 -0
- package/types/composables/use-select-props.d.ts.map +1 -0
- package/types/composables/use-select.d.ts +21 -0
- package/types/composables/use-select.d.ts.map +1 -0
- package/types/composables/use-vjsf.d.ts +2 -2
- package/types/composables/use-vjsf.d.ts.map +1 -1
- package/types/iconsets/default-aliases.d.ts +10 -0
- package/types/iconsets/default-aliases.d.ts.map +1 -0
- package/types/iconsets/mdi-svg.d.ts +3 -0
- package/types/iconsets/mdi-svg.d.ts.map +1 -0
- package/types/iconsets/mdi.d.ts +3 -0
- package/types/iconsets/mdi.d.ts.map +1 -0
- package/types/index.d.ts +5 -2
- package/types/index.d.ts.map +1 -1
- package/types/options.d.ts +9 -0
- package/types/options.d.ts.map +1 -0
- package/types/types.d.ts +65 -33
- package/types/types.d.ts.map +1 -1
- package/types/utils/arrays.d.ts +17 -4
- package/types/utils/arrays.d.ts.map +1 -1
- package/types/utils/index.d.ts +0 -3
- package/types/utils/props.d.ts +7 -0
- package/types/utils/props.d.ts.map +1 -1
- package/types/utils/slots.d.ts +8 -0
- package/types/utils/slots.d.ts.map +1 -1
- package/src/compile/index.js +0 -65
- package/src/compile/options.js +0 -19
- package/src/compile/v-jsf-compiled.vue.ejs +0 -61
- package/src/components/options.js +0 -27
- package/src/utils/global-register.js +0 -13
- package/src/utils/index.js +0 -5
- package/src/utils/props.js +0 -107
- package/src/utils/slots.js +0 -18
- package/types/utils/global-register.d.ts +0 -8
- 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
|
|
35
|
-
export type VjsfStatefulLayoutOptions = StatefulLayoutOptions & {
|
|
36
|
-
vjsfSlots:
|
|
60
|
+
// and defaults providers
|
|
61
|
+
export type VjsfStatefulLayoutOptions = Partial<StatefulLayoutOptions> & {
|
|
62
|
+
vjsfSlots: Slots,
|
|
37
63
|
nodeComponents: Record<string, Component>,
|
|
38
|
-
plugins:
|
|
64
|
+
plugins: Plugin[],
|
|
65
|
+
pluginsOptions: Record<string, unknown>,
|
|
66
|
+
icons: VjsfIcons
|
|
39
67
|
}
|
|
40
68
|
|
|
41
|
-
export type VjsfCompileOptions = CompileOptions & {
|
|
42
|
-
|
|
69
|
+
export type VjsfCompileOptions = Partial<CompileOptions> & {
|
|
70
|
+
pluginsImports: string[]
|
|
43
71
|
}
|
|
72
|
+
export type PartialVjsfCompileOptions = Partial<VjsfCompileOptions>
|
|
44
73
|
|
|
45
|
-
export type VjsfOptions =
|
|
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
|
|
50
|
-
export type
|
|
51
|
-
|
|
52
|
-
export type
|
|
53
|
-
export type
|
|
54
|
-
export type
|
|
55
|
-
export type
|
|
56
|
-
export type
|
|
57
|
-
export type
|
|
58
|
-
export type
|
|
59
|
-
export type
|
|
60
|
-
export type
|
|
61
|
-
export type
|
|
62
|
-
export type
|
|
63
|
-
export type
|
|
64
|
-
export type VjsfSliderNode = Omit<SliderNode, 'options'> & {options:
|
|
65
|
-
export type VjsfSwitchNode = Omit<SwitchNode, 'options'> & {options:
|
|
66
|
-
export type VjsfTextFieldNode = Omit<TextFieldNode, 'options'> & {options:
|
|
67
|
-
export type VjsfTextareaNode = Omit<TextareaNode, 'options'> & {options:
|
|
68
|
-
export type
|
|
69
|
-
export type
|
|
70
|
-
export type
|
|
71
|
-
export type
|
|
72
|
-
export type
|
|
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}
|
package/src/utils/arrays.js
CHANGED
|
@@ -1,15 +1,46 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @
|
|
3
|
-
* @param {T[]} array
|
|
2
|
+
* @param {any[] | Record<string, any>} data
|
|
4
3
|
* @param {number} fromIndex
|
|
5
4
|
* @param {number} toIndex
|
|
6
|
-
* @return {
|
|
5
|
+
* @return {any[] | Record<string, any>}
|
|
7
6
|
*/
|
|
8
|
-
export function
|
|
9
|
-
if (fromIndex === toIndex || fromIndex === -1 || toIndex === -1) return
|
|
10
|
-
|
|
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
|
+
}
|
package/types/compat/v2.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.d.ts","sourceRoot":"","sources":["../../src/compat/v2.js"],"names":[],"mappings":"
|
|
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"}
|
package/types/compile/index.d.ts
CHANGED
|
@@ -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<
|
|
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,
|
|
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
|
-
|
|
2
|
-
|
|
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":"
|
|
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").
|
|
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":"
|
|
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").
|
|
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
|
-
}>,
|
|
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").
|
|
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").
|
|
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").
|
|
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":";;;;;;;;;;
|
|
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").
|
|
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
|
-
}>,
|
|
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":"
|
|
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
|
-
|
|
3
|
-
|
|
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").
|
|
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
|
-
}>,
|
|
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":"
|
|
1
|
+
{"version":3,"file":"combobox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/nodes/combobox.vue.js"],"names":[],"mappings":""}
|