@koumoul/vjsf 3.19.2 → 3.20.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 (38) hide show
  1. package/package.json +1 -1
  2. package/src/components/nodes/list.vue +91 -15
  3. package/src/composables/use-clipboard.js +1 -1
  4. package/types/components/fragments/child-subtitle.vue.d.ts +2 -2
  5. package/types/components/tree.vue.d.ts +2 -2
  6. package/types/components/vjsf.vue.d.ts +2 -2
  7. package/types/composables/use-node.d.ts +2 -2
  8. package/types/composables/use-vjsf.d.ts +2 -2
  9. package/types/compile/index.d.ts +0 -8
  10. package/types/compile/index.d.ts.map +0 -1
  11. package/types/compile/options.d.ts +0 -5
  12. package/types/compile/options.d.ts.map +0 -1
  13. package/types/components/fragments/list-item-menu.vue.d.ts +0 -11
  14. package/types/components/fragments/list-item-menu.vue.d.ts.map +0 -1
  15. package/types/components/options.d.ts +0 -4
  16. package/types/components/options.d.ts.map +0 -1
  17. package/types/composables/use-field-props.d.ts +0 -30
  18. package/types/composables/use-field-props.d.ts.map +0 -1
  19. package/types/composables/use-field.d.ts +0 -31
  20. package/types/composables/use-field.d.ts.map +0 -1
  21. package/types/composables/use-select-field.d.ts +0 -21
  22. package/types/composables/use-select-field.d.ts.map +0 -1
  23. package/types/composables/use-select-props.d.ts +0 -21
  24. package/types/composables/use-select-props.d.ts.map +0 -1
  25. package/types/composables/use-select.d.ts +0 -21
  26. package/types/composables/use-select.d.ts.map +0 -1
  27. package/types/iconsets/default-aliases.d.ts +0 -10
  28. package/types/iconsets/default-aliases.d.ts.map +0 -1
  29. package/types/iconsets/mdi-svg.d.ts +0 -3
  30. package/types/iconsets/mdi-svg.d.ts.map +0 -1
  31. package/types/iconsets/mdi.d.ts +0 -3
  32. package/types/iconsets/mdi.d.ts.map +0 -1
  33. package/types/utils/index.d.ts +0 -3
  34. package/types/utils/index.d.ts.map +0 -1
  35. package/types/utils/props.d.ts +0 -29
  36. package/types/utils/props.d.ts.map +0 -1
  37. package/types/utils/slots.d.ts +0 -15
  38. 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.19.2",
3
+ "version": "3.20.0",
4
4
  "description": "Generate forms for the vuetify UI library (vuejs) based on annotated JSON schemas.",
5
5
  "scripts": {
6
6
  "test": "vitest run",
@@ -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(props.modelValue.children, () => {
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, (array) => { sortableArray.value = array })
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 === 'inline-single' &&
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-list-item
305
- v-if="modelValue.layout.listActions.includes('edit') && modelValue.layout.listEditMode === 'inline-single'"
306
- :density="modelValue.options.density"
307
- base-color="primary"
308
- @click="statefulLayout.activateItem(modelValue, childIndex); menuOpened = -1"
309
- >
310
- <template #prepend>
311
- <v-icon :icon="statefulLayout.options.icons.edit" />
312
- </template>
313
- {{ modelValue.messages.edit }}
314
- </v-list-item>
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>
@@ -1,6 +1,6 @@
1
1
  import { provide, inject, ref, computed } from 'vue'
2
2
 
3
- const globalClipboardKey = Symbol('vjsf:clipboard')
3
+ const globalClipboardKey = Symbol.for('vjsf:clipboard')
4
4
 
5
5
  export const createClipboard = () => {
6
6
  // if already provided on parent, do not re-create
@@ -1,7 +1,7 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- modelValue: import("../../../../node_modules/@json-layout/core/types/state/types.js").StateNode;
2
+ modelValue: import("../../../node_modules/@json-layout/core/types/state/types.js").StateNode;
3
3
  $props: {
4
- modelValue?: import("../../../../node_modules/@json-layout/core/types/state/types.js").StateNode | undefined;
4
+ modelValue?: import("../../../node_modules/@json-layout/core/types/state/types.js").StateNode | undefined;
5
5
  };
6
6
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
7
  export default _default;
@@ -1,8 +1,8 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
- modelValue: import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree;
2
+ modelValue: import("../../node_modules/@json-layout/core/types/state/types.js").StateTree;
3
3
  statefulLayout: import("../types.js").VjsfStatefulLayout;
4
4
  $props: {
5
- readonly modelValue?: import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree | undefined;
5
+ readonly modelValue?: import("../../node_modules/@json-layout/core/types/state/types.js").StateTree | undefined;
6
6
  readonly statefulLayout?: import("../types.js").VjsfStatefulLayout | undefined;
7
7
  };
8
8
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -3,12 +3,12 @@ declare const _default: import("vue").DefineComponent<{}, {
3
3
  options: import("../types.js").PartialVjsfOptions | null;
4
4
  modelValue: any;
5
5
  schema: Record<string, any>;
6
- precompiledLayout: import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout;
6
+ precompiledLayout: import("../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout;
7
7
  $props: {
8
8
  readonly options?: import("../types.js").PartialVjsfOptions | null | undefined;
9
9
  readonly modelValue?: any;
10
10
  readonly schema?: Record<string, any> | undefined;
11
- readonly precompiledLayout?: import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout | undefined;
11
+ readonly precompiledLayout?: import("../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout | undefined;
12
12
  };
13
13
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
14
  export default _default;
@@ -24,9 +24,9 @@ export default function _default(nodeRef: import('vue').Ref<import('../types.js'
24
24
  }>;
25
25
  compSlots: import("vue").ComputedRef<Record<string, any>>;
26
26
  options: import("vue").ComputedRef<Required<import("../types.js").VjsfOptions>>;
27
- skeleton: import("vue").ComputedRef<import("../../../node_modules/@json-layout/core/types/compile/types.js").SkeletonNode>;
27
+ skeleton: import("vue").ComputedRef<import("../../node_modules/@json-layout/core/types/compile/types.js").SkeletonNode>;
28
28
  layout: import("vue").ComputedRef<import("../../../node_modules/@json-layout/vocabulary/types/normalized-layout/types.js").BaseCompObject>;
29
29
  data: import("vue").ComputedRef<unknown>;
30
- children: import("vue").ComputedRef<import("../../../node_modules/@json-layout/core/types/state/types.js").StateNode[] | undefined>;
30
+ children: import("vue").ComputedRef<import("../../node_modules/@json-layout/core/types/state/types.js").StateNode[] | undefined>;
31
31
  };
32
32
  //# sourceMappingURL=use-node.d.ts.map
@@ -8,9 +8,9 @@ export const emits: {
8
8
  */
9
9
  'update:state': (state: import('../types.js').VjsfStatefulLayout) => boolean;
10
10
  };
11
- export function useVjsf(schema: import('vue').Ref<Object>, modelValue: import('vue').Ref<any>, options: import('vue').Ref<import("../types.js").PartialVjsfOptions | null>, nodeComponents: Record<string, import('vue').Component>, emit: any, compile?: typeof import("@json-layout/core").compile | undefined, produceCompileOptions?: ((draft: import("../../../node_modules/@json-layout/core/types/compile/types.js").PartialCompileOptions, newOptions: import("../../../node_modules/@json-layout/core/types/compile/types.js").PartialCompileOptions) => import("../../../node_modules/@json-layout/core/types/compile/types.js").PartialCompileOptions) | undefined, precompiledLayout?: import("vue").Ref<import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout, import("../../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout> | undefined): {
11
+ export function useVjsf(schema: import('vue').Ref<Object>, modelValue: import('vue').Ref<any>, options: import('vue').Ref<import("../types.js").PartialVjsfOptions | null>, nodeComponents: Record<string, import('vue').Component>, emit: any, compile?: typeof import("@json-layout/core").compile | undefined, produceCompileOptions?: ((draft: import("../../node_modules/@json-layout/core/types/compile/types.js").PartialCompileOptions, newOptions: import("../../node_modules/@json-layout/core/types/compile/types.js").PartialCompileOptions) => import("../../node_modules/@json-layout/core/types/compile/types.js").PartialCompileOptions) | undefined, precompiledLayout?: import("vue").Ref<import("../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout, import("../../node_modules/@json-layout/core/types/compile/types.js").CompiledLayout> | undefined): {
12
12
  el: import("vue").Ref<null, null>;
13
13
  statefulLayout: import("vue").ShallowRef<import("../types.js").VjsfStatefulLayout | null, import("../types.js").VjsfStatefulLayout | null>;
14
- stateTree: import("vue").ShallowRef<import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree | null, import("../../../node_modules/@json-layout/core/types/state/types.js").StateTree | null>;
14
+ stateTree: import("vue").ShallowRef<import("../../node_modules/@json-layout/core/types/state/types.js").StateTree | null, import("../../node_modules/@json-layout/core/types/state/types.js").StateTree | null>;
15
15
  };
16
16
  //# sourceMappingURL=use-vjsf.d.ts.map
@@ -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,5 +0,0 @@
1
- export namespace defaultOptions {
2
- let pluginsImports: string[];
3
- }
4
- export function getFullOptions(options: import("../types.js").PartialVjsfCompileOptions): import("../types.js").VjsfCompileOptions;
5
- //# sourceMappingURL=options.d.ts.map
@@ -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,10 +0,0 @@
1
- declare namespace _default {
2
- let add: string;
3
- let calendar: string;
4
- let close: string;
5
- let edit: string;
6
- let sortDown: string;
7
- let sortUp: string;
8
- }
9
- export default _default;
10
- //# sourceMappingURL=default-aliases.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-aliases.d.ts","sourceRoot":"","sources":["../../src/iconsets/default-aliases.js"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
3
- //# sourceMappingURL=mdi-svg.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdi-svg.d.ts","sourceRoot":"","sources":["../../src/iconsets/mdi-svg.js"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- declare const _default: any;
2
- export default _default;
3
- //# sourceMappingURL=mdi.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mdi.d.ts","sourceRoot":"","sources":["../../src/iconsets/mdi.js"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from "./arrays.js";
2
- export * from "./dates.js";
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.js"],"names":[],"mappings":""}
@@ -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"}
@@ -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"}