@koumoul/vjsf 3.19.2 → 3.20.1
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/package.json +2 -2
- package/src/components/nodes/list.vue +91 -15
- package/src/composables/use-clipboard.js +1 -1
- package/types/compile/index.d.ts +0 -8
- package/types/compile/index.d.ts.map +0 -1
- package/types/compile/options.d.ts +0 -5
- package/types/compile/options.d.ts.map +0 -1
- package/types/components/fragments/list-item-menu.vue.d.ts +0 -11
- package/types/components/fragments/list-item-menu.vue.d.ts.map +0 -1
- package/types/components/options.d.ts +0 -4
- package/types/components/options.d.ts.map +0 -1
- package/types/composables/use-field-props.d.ts +0 -30
- package/types/composables/use-field-props.d.ts.map +0 -1
- package/types/composables/use-field.d.ts +0 -31
- package/types/composables/use-field.d.ts.map +0 -1
- package/types/composables/use-select-field.d.ts +0 -21
- package/types/composables/use-select-field.d.ts.map +0 -1
- package/types/composables/use-select-props.d.ts +0 -21
- package/types/composables/use-select-props.d.ts.map +0 -1
- package/types/composables/use-select.d.ts +0 -21
- package/types/composables/use-select.d.ts.map +0 -1
- package/types/iconsets/default-aliases.d.ts +0 -10
- package/types/iconsets/default-aliases.d.ts.map +0 -1
- package/types/iconsets/mdi-svg.d.ts +0 -3
- package/types/iconsets/mdi-svg.d.ts.map +0 -1
- package/types/iconsets/mdi.d.ts +0 -3
- package/types/iconsets/mdi.d.ts.map +0 -1
- package/types/utils/index.d.ts +0 -3
- package/types/utils/index.d.ts.map +0 -1
- package/types/utils/props.d.ts +0 -29
- package/types/utils/props.d.ts.map +0 -1
- package/types/utils/slots.d.ts +0 -15
- package/types/utils/slots.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koumoul/vjsf",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.20.1",
|
|
4
4
|
"description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "vitest run",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"vuetify": "^3.8.12"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@json-layout/core": "~1.
|
|
74
|
+
"@json-layout/core": "~1.15.0",
|
|
75
75
|
"@json-layout/vocabulary": "~2.8.0",
|
|
76
76
|
"@vueuse/core": "^12.5.0",
|
|
77
77
|
"debug": "^4.3.4"
|
|
@@ -9,7 +9,10 @@ import { VDivider } from 'vuetify/components/VDivider'
|
|
|
9
9
|
import { VIcon } from 'vuetify/components/VIcon'
|
|
10
10
|
import { VBtn } from 'vuetify/components/VBtn'
|
|
11
11
|
import { VMenu } from 'vuetify/components/VMenu'
|
|
12
|
+
import { VDialog } from 'vuetify/components/VDialog'
|
|
13
|
+
import { VToolbar } from 'vuetify/components/VToolbar'
|
|
12
14
|
import { VForm } from 'vuetify/components/VForm'
|
|
15
|
+
import { VSheet } from 'vuetify/components/VSheet'
|
|
13
16
|
import { isSection, getRegexp } from '@json-layout/core/state'
|
|
14
17
|
import { clone } from '@json-layout/core/utils/clone'
|
|
15
18
|
import Node from '../node.vue'
|
|
@@ -20,6 +23,8 @@ import useClipboard from '../../composables/use-clipboard.js'
|
|
|
20
23
|
|
|
21
24
|
useDefaults({}, 'VjsfList')
|
|
22
25
|
const vCardProps = useCompDefaults('VjsfList-VCard', { border: true, flat: true, tile: true })
|
|
26
|
+
const vEditDialogProps = useCompDefaults('VjsfList-Edit-VDialog', { width: 500 })
|
|
27
|
+
const vEditMenuProps = useCompDefaults('VjsfList-Edit-VMenu', { width: 500 })
|
|
23
28
|
const theme = useTheme()
|
|
24
29
|
|
|
25
30
|
const props = defineProps({
|
|
@@ -41,15 +46,22 @@ const options = computed(() => props.modelValue.options)
|
|
|
41
46
|
const layout = computed(() => props.modelValue.layout)
|
|
42
47
|
const children = computed(() => props.modelValue.children)
|
|
43
48
|
|
|
49
|
+
const getRenderChildren = () => {
|
|
50
|
+
if (layout.value.listEditMode === 'dialog' || layout.value.listEditMode === 'menu') {
|
|
51
|
+
return children.value.filter(c => c.options.summary)
|
|
52
|
+
}
|
|
53
|
+
return children.value
|
|
54
|
+
}
|
|
55
|
+
|
|
44
56
|
/* use composable for drag and drop */
|
|
45
|
-
const { activeDnd, sortableArray, draggable, hovered, dragging, itemBind, handleBind } = useDnd(
|
|
57
|
+
const { activeDnd, sortableArray, draggable, hovered, dragging, itemBind, handleBind } = useDnd(getRenderChildren(), () => {
|
|
46
58
|
const newData = layout.value.indexed
|
|
47
59
|
? sortableArray.value.reduce((a, child) => { a[child.key] = child.data; return a }, /** @type {Record<string, any>} */({}))
|
|
48
60
|
: sortableArray.value.map((child) => child.data)
|
|
49
61
|
props.statefulLayout.input(props.modelValue, newData)
|
|
50
62
|
dragPrepared.value = -1
|
|
51
63
|
})
|
|
52
|
-
watch(children, (
|
|
64
|
+
watch(children, () => { sortableArray.value = getRenderChildren() })
|
|
53
65
|
const dragPrepared = ref(-1)
|
|
54
66
|
const prepareDrag = (/** @type {number} */index) => {
|
|
55
67
|
dragPrepared.value = index
|
|
@@ -71,7 +83,7 @@ const toggleMenu = (/** @type {number} */childIndex, /** @type {boolean} */value
|
|
|
71
83
|
const activeItem = computed(() => {
|
|
72
84
|
if (
|
|
73
85
|
layout.value.listActions.includes('edit') &&
|
|
74
|
-
layout.value.listEditMode
|
|
86
|
+
layout.value.listEditMode !== 'inline' &&
|
|
75
87
|
editedItem.value !== undefined
|
|
76
88
|
) {
|
|
77
89
|
return editedItem.value
|
|
@@ -280,7 +292,7 @@ const itemBorderColor = computed(() => (/** @type {import('@json-layout/core').S
|
|
|
280
292
|
/>
|
|
281
293
|
</v-list-item-action>
|
|
282
294
|
<v-list-item-action
|
|
283
|
-
v-else-if="editedItem === undefined && modelValue.layout.listActions.length"
|
|
295
|
+
v-else-if="(editedItem === undefined || modelValue.layout.listEditMode === 'menu') && modelValue.layout.listActions.length"
|
|
284
296
|
>
|
|
285
297
|
<v-menu
|
|
286
298
|
location="bottom end"
|
|
@@ -301,17 +313,53 @@ const itemBorderColor = computed(() => (/** @type {import('@json-layout/core').S
|
|
|
301
313
|
/>
|
|
302
314
|
</template>
|
|
303
315
|
<v-list :density="modelValue.options.density">
|
|
304
|
-
<v-
|
|
305
|
-
v-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
316
|
+
<template v-if="modelValue.layout.listActions.includes('edit') && modelValue.layout.listEditMode !== 'inline'">
|
|
317
|
+
<v-menu
|
|
318
|
+
v-if="layout.listEditMode === 'menu'"
|
|
319
|
+
location="start"
|
|
320
|
+
z-index="3000"
|
|
321
|
+
:density="modelValue.options.density"
|
|
322
|
+
:model-value="editedItem !== undefined"
|
|
323
|
+
:close-on-content-click="false"
|
|
324
|
+
v-bind="vEditMenuProps"
|
|
325
|
+
@update:model-value="value => value || statefulLayout.deactivateItem(modelValue)"
|
|
326
|
+
>
|
|
327
|
+
<template #activator="{props}">
|
|
328
|
+
<v-list-item
|
|
329
|
+
:density="modelValue.options.density"
|
|
330
|
+
base-color="primary"
|
|
331
|
+
v-bind="props"
|
|
332
|
+
@click="statefulLayout.activateItem(modelValue, childIndex);"
|
|
333
|
+
>
|
|
334
|
+
<template #prepend>
|
|
335
|
+
<v-icon :icon="statefulLayout.options.icons.edit" />
|
|
336
|
+
</template>
|
|
337
|
+
{{ modelValue.messages.edit }}
|
|
338
|
+
</v-list-item>
|
|
339
|
+
</template>
|
|
340
|
+
<v-sheet>
|
|
341
|
+
<v-row class="ma-0">
|
|
342
|
+
<node
|
|
343
|
+
v-for="grandChild of isSection(children[children.length - 1]) ? children[children.length - 1].children : [children[children.length - 1]]"
|
|
344
|
+
:key="grandChild.fullKey"
|
|
345
|
+
:model-value="/** @type import('../../types.js').VjsfNode */(grandChild)"
|
|
346
|
+
:stateful-layout="statefulLayout"
|
|
347
|
+
/>
|
|
348
|
+
</v-row>
|
|
349
|
+
</v-sheet>
|
|
350
|
+
</v-menu>
|
|
351
|
+
<v-list-item
|
|
352
|
+
v-else
|
|
353
|
+
:density="modelValue.options.density"
|
|
354
|
+
base-color="primary"
|
|
355
|
+
@click="statefulLayout.activateItem(modelValue, childIndex); menuOpened = -1"
|
|
356
|
+
>
|
|
357
|
+
<template #prepend>
|
|
358
|
+
<v-icon :icon="statefulLayout.options.icons.edit" />
|
|
359
|
+
</template>
|
|
360
|
+
{{ modelValue.messages.edit }}
|
|
361
|
+
</v-list-item>
|
|
362
|
+
</template>
|
|
315
363
|
<v-list-item
|
|
316
364
|
v-if="modelValue.layout.listActions.includes('duplicate')"
|
|
317
365
|
@click="duplicateItem(child, childIndex)"
|
|
@@ -438,6 +486,34 @@ const itemBorderColor = computed(() => (/** @type {import('@json-layout/core').S
|
|
|
438
486
|
</v-btn>
|
|
439
487
|
</template>
|
|
440
488
|
</v-list-item>
|
|
489
|
+
|
|
490
|
+
<v-dialog
|
|
491
|
+
v-if="layout.listEditMode === 'dialog'"
|
|
492
|
+
:model-value="editedItem !== undefined"
|
|
493
|
+
v-bind="vEditDialogProps"
|
|
494
|
+
>
|
|
495
|
+
<v-sheet>
|
|
496
|
+
<v-toolbar density="compact">
|
|
497
|
+
<v-spacer />
|
|
498
|
+
<v-btn
|
|
499
|
+
:title="modelValue.messages.close"
|
|
500
|
+
:icon="statefulLayout.options.icons.close"
|
|
501
|
+
variant="flat"
|
|
502
|
+
density="comfortable"
|
|
503
|
+
:disabled="modelValue.loading"
|
|
504
|
+
@click="statefulLayout.deactivateItem(modelValue)"
|
|
505
|
+
/>
|
|
506
|
+
</v-toolbar>
|
|
507
|
+
<v-row class="ma-0">
|
|
508
|
+
<node
|
|
509
|
+
v-for="grandChild of isSection(children[children.length - 1]) ? children[children.length - 1].children : [children[children.length - 1]]"
|
|
510
|
+
:key="grandChild.fullKey"
|
|
511
|
+
:model-value="/** @type import('../../types.js').VjsfNode */(grandChild)"
|
|
512
|
+
:stateful-layout="statefulLayout"
|
|
513
|
+
/>
|
|
514
|
+
</v-row>
|
|
515
|
+
</v-sheet>
|
|
516
|
+
</v-dialog>
|
|
441
517
|
</v-list>
|
|
442
518
|
</v-card>
|
|
443
519
|
</template>
|
package/types/compile/index.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @param {object} schema
|
|
3
|
-
* @param {import('../types.js').PartialVjsfCompileOptions} [options]
|
|
4
|
-
* @param {string} [baseImport]
|
|
5
|
-
* @returns {Promise<string>}
|
|
6
|
-
*/
|
|
7
|
-
export function compile(schema: object, options?: Partial<import("../types.js").VjsfCompileOptions> | undefined, baseImport?: string | undefined): Promise<string>;
|
|
8
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/compile/options.js"],"names":[],"mappings":";;;AASO,wCAHI,OAAO,aAAa,EAAE,yBAAyB,4CAOzD"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<any, {
|
|
2
|
-
$emit: (event: "delete" | "drag" | "sortUp" | "sortDown", ...args: any[]) => void;
|
|
3
|
-
listNode: import("../../types.js").VjsfListNode;
|
|
4
|
-
statefulLayout: import("../../types.js").VjsfStatefulLayout;
|
|
5
|
-
$props: {
|
|
6
|
-
readonly listNode?: import("../../types.js").VjsfListNode | undefined;
|
|
7
|
-
readonly statefulLayout?: import("../../types.js").VjsfStatefulLayout | undefined;
|
|
8
|
-
};
|
|
9
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<any> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
-
export default _default;
|
|
11
|
-
//# sourceMappingURL=list-item-menu.vue.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"list-item-menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/fragments/list-item-menu.vue.js"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../src/components/options.js"],"names":[],"mappings":"AAEA,uDAAuD;AACvD,6BADW,OAAO,aAAa,EAAE,kBAAkB,CAMlD;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,qCA4B/B"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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('vue').Ref<import('../types.js').VjsfNode>} nodeRef
|
|
10
|
-
* @param {import('../types.js').VjsfStatefulLayout} statefulLayout
|
|
11
|
-
* @param {{isMainComp?: boolean, bindData?: boolean, layoutPropsMap?: (string | [string, string])[]}} [opts]
|
|
12
|
-
*/
|
|
13
|
-
export default function _default(nodeRef: import('vue').Ref<import('../types.js').VjsfNode>, statefulLayout: import('../types.js').VjsfStatefulLayout, opts?: {
|
|
14
|
-
isMainComp?: boolean | undefined;
|
|
15
|
-
bindData?: boolean | undefined;
|
|
16
|
-
layoutPropsMap?: (string | [string, string])[] | undefined;
|
|
17
|
-
} | undefined): {
|
|
18
|
-
modelValue: import("vue").Ref<unknown, unknown>;
|
|
19
|
-
inputProps: import("vue").ComputedRef<Record<string, any> & {
|
|
20
|
-
class: string[];
|
|
21
|
-
}>;
|
|
22
|
-
compProps: import("vue").ComputedRef<Record<string, any> & {
|
|
23
|
-
class: string[];
|
|
24
|
-
}>;
|
|
25
|
-
compSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
26
|
-
options: import("vue").ComputedRef<import("../types.js").VjsfOptions>;
|
|
27
|
-
skeleton: import("vue").ComputedRef<import("../../../node_modules/@json-layout/core/types/compile/types.js").SkeletonNode>;
|
|
28
|
-
layout: import("vue").ComputedRef<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").BaseCompObject>;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=use-field-props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-field-props.d.ts","sourceRoot":"","sources":["../../src/composables/use-field-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;AAED;;;;GAIG;AACH,0CAJW,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,aAAa,EAAE,QAAQ,CAAC,kBACjD,OAAO,aAAa,EAAE,kBAAkB;;;;;;;eAzBR,MAAM,EAAE;;;eAAR,MAAM,EAAE;;;;;;EAwHlD"}
|
|
@@ -1,31 +0,0 @@
|
|
|
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('vue').Ref<import('../types.js').VjsfNode>} nodeRef
|
|
10
|
-
* @param {import('../types.js').VjsfStatefulLayout} statefulLayout
|
|
11
|
-
* @param {{isMainComp?: boolean, bindData?: boolean, layoutPropsMap?: (string | [string, string])[]}} [opts]
|
|
12
|
-
*/
|
|
13
|
-
export default function _default(nodeRef: import('vue').Ref<import('../types.js').VjsfNode>, statefulLayout: import('../types.js').VjsfStatefulLayout, opts?: {
|
|
14
|
-
isMainComp?: boolean | undefined;
|
|
15
|
-
bindData?: boolean | undefined;
|
|
16
|
-
layoutPropsMap?: (string | [string, string])[] | undefined;
|
|
17
|
-
} | undefined): {
|
|
18
|
-
localData: import("vue").Ref<any, any>;
|
|
19
|
-
inputProps: import("vue").ComputedRef<Record<string, any> & {
|
|
20
|
-
class: string[];
|
|
21
|
-
}>;
|
|
22
|
-
compProps: import("vue").ComputedRef<Record<string, any> & {
|
|
23
|
-
class: string[];
|
|
24
|
-
}>;
|
|
25
|
-
compSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
26
|
-
options: import("vue").ComputedRef<import("../types.js").VjsfOptions>;
|
|
27
|
-
skeleton: import("vue").ComputedRef<import("../../../node_modules/@json-layout/core/types/compile/types.js").SkeletonNode>;
|
|
28
|
-
layout: import("vue").ComputedRef<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").BaseCompObject>;
|
|
29
|
-
data: import("vue").ComputedRef<unknown>;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=use-field.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-field.d.ts","sourceRoot":"","sources":["../../src/composables/use-field.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;AAED;;;;GAIG;AACH,0CAJW,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,aAAa,EAAE,QAAQ,CAAC,kBACjD,OAAO,aAAa,EAAE,kBAAkB;;;;;;;eAzBR,MAAM,EAAE;;;eAAR,MAAM,EAAE;;;;;;;EAsHlD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* specialized use of useFieldProps shared between select and autocomplete components
|
|
3
|
-
* @param {import('vue').Ref<import('../types.js').VjsfSelectNode>} nodeRef
|
|
4
|
-
* @param {import('../types.js').VjsfStatefulLayout} statefulLayout
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(nodeRef: import('vue').Ref<import('../types.js').VjsfSelectNode>, statefulLayout: import('../types.js').VjsfStatefulLayout): {
|
|
7
|
-
localData: import("vue").Ref<any, any>;
|
|
8
|
-
inputProps: import("vue").ComputedRef<Record<string, any> & {
|
|
9
|
-
class: string[];
|
|
10
|
-
}>;
|
|
11
|
-
selectProps: import("vue").ComputedRef<Record<string, any>>;
|
|
12
|
-
compSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
13
|
-
selectSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
14
|
-
getItems: {
|
|
15
|
-
items: import("vue").Ref<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems, import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems>;
|
|
16
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
17
|
-
search: import("vue").Ref<string, string>;
|
|
18
|
-
prepareSelectedItem: (selectedItem: any, itemValue: any) => any;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=use-select-field.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-select-field.d.ts","sourceRoot":"","sources":["../../src/composables/use-select-field.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,0CAHW,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,aAAa,EAAE,cAAc,CAAC,kBACvD,OAAO,aAAa,EAAE,kBAAkB;;;;;;;;;;;;;;EA2DlD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* specialized use of useFieldProps shared between select and autocomplete components
|
|
3
|
-
* @param {import('vue').Ref<import('../types.js').VjsfSelectNode>} nodeRef
|
|
4
|
-
* @param {import('../types.js').VjsfStatefulLayout} statefulLayout
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(nodeRef: import('vue').Ref<import('../types.js').VjsfSelectNode>, statefulLayout: import('../types.js').VjsfStatefulLayout): {
|
|
7
|
-
modelValue: import("vue").Ref<unknown, unknown>;
|
|
8
|
-
inputProps: import("vue").ComputedRef<Record<string, any> & {
|
|
9
|
-
class: string[];
|
|
10
|
-
}>;
|
|
11
|
-
selectProps: import("vue").ComputedRef<Record<string, any>>;
|
|
12
|
-
compSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
13
|
-
selectSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
14
|
-
getItems: {
|
|
15
|
-
items: import("vue").Ref<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems, import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems>;
|
|
16
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
17
|
-
search: import("vue").Ref<string, string>;
|
|
18
|
-
prepareSelectedItem: (selectedItem: any, itemValue: any) => any;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=use-select-props.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-select-props.d.ts","sourceRoot":"","sources":["../../src/composables/use-select-props.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,0CAHW,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,aAAa,EAAE,cAAc,CAAC,kBACvD,OAAO,aAAa,EAAE,kBAAkB;;;;;;;;;;;;;;EA2DlD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* specialized use of useFieldProps shared between select and autocomplete components
|
|
3
|
-
* @param {import('vue').Ref<import('../types.js').VjsfSelectNode>} nodeRef
|
|
4
|
-
* @param {import('../types.js').VjsfStatefulLayout} statefulLayout
|
|
5
|
-
*/
|
|
6
|
-
export default function _default(nodeRef: import('vue').Ref<import('../types.js').VjsfSelectNode>, statefulLayout: import('../types.js').VjsfStatefulLayout): {
|
|
7
|
-
localData: import("vue").Ref<any, any>;
|
|
8
|
-
inputProps: import("vue").ComputedRef<Record<string, any> & {
|
|
9
|
-
class: string[];
|
|
10
|
-
}>;
|
|
11
|
-
selectProps: import("vue").ComputedRef<Record<string, any>>;
|
|
12
|
-
compSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
13
|
-
selectSlots: import("vue").ComputedRef<Record<string, any>>;
|
|
14
|
-
getItems: {
|
|
15
|
-
items: import("vue").Ref<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems, import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").SelectItems>;
|
|
16
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
17
|
-
search: import("vue").Ref<string, string>;
|
|
18
|
-
prepareSelectedItem: (selectedItem: any, itemValue: any) => any;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=use-select.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-select.d.ts","sourceRoot":"","sources":["../../src/composables/use-select.js"],"names":[],"mappings":"AAMA;;;;GAIG;AACH,0CAHW,OAAO,KAAK,EAAE,GAAG,CAAC,OAAO,aAAa,EAAE,cAAc,CAAC,kBACvD,OAAO,aAAa,EAAE,kBAAkB;;;;;;;;;;;;;;EA2DlD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"default-aliases.d.ts","sourceRoot":"","sources":["../../src/iconsets/default-aliases.js"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdi-svg.d.ts","sourceRoot":"","sources":["../../src/iconsets/mdi-svg.js"],"names":[],"mappings":""}
|
package/types/iconsets/mdi.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mdi.d.ts","sourceRoot":"","sources":["../../src/iconsets/mdi.js"],"names":[],"mappings":""}
|
package/types/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":""}
|
package/types/utils/props.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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,CA2C/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"}
|
package/types/utils/slots.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|