@fastkit/vui 0.14.1 → 0.16.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/dist/vui.css +132 -2
- package/dist/vui.d.ts +1362 -162
- package/dist/vui.mjs +586 -363
- package/dist/vui.mjs.map +1 -1
- package/package.json +6 -6
- package/src/components/VAvatar/VAvatar.scss +0 -1
- package/src/components/VDialog/VDialog.scss +41 -0
- package/src/components/VDialog/VDialog.tsx +51 -0
- package/src/components/VDialog/index.ts +1 -0
- package/src/components/VForm/VForm.tsx +1 -1
- package/src/components/VFormControl/VFormControl.tsx +1 -1
- package/src/components/VMenu/VMenu.scss +4 -0
- package/src/components/VMenu/VMenu.tsx +31 -0
- package/src/components/VMenu/index.ts +1 -0
- package/src/components/VSelect/VSelect.tsx +7 -7
- package/src/components/VSheetModal/VSheetModal.scss +48 -0
- package/src/components/VSheetModal/VSheetModal.tsx +88 -0
- package/src/components/VSheetModal/index.ts +1 -0
- package/src/components/VSnackbar/VSnackbar.scss +33 -0
- package/src/components/VSnackbar/VSnackbar.tsx +48 -0
- package/src/components/VSnackbar/index.ts +1 -0
- package/src/components/VSwitch/VSwitch.tsx +0 -1
- package/src/components/VTooltip/VTooltip.scss +14 -0
- package/src/components/VTooltip/VTooltip.tsx +42 -0
- package/src/components/VTooltip/index.ts +1 -0
- package/src/components/index.ts +5 -1
- package/src/plugin.tsx +2 -23
- package/src/service.tsx +112 -52
- package/src/styles/variables.scss +29 -0
- package/src/components/kits.ts +0 -1
package/dist/vui.mjs
CHANGED
|
@@ -18,15 +18,14 @@ import { installClickOutsideDirective } from '@fastkit/vue-click-outside';
|
|
|
18
18
|
export * from '@fastkit/vue-click-outside';
|
|
19
19
|
import { VAppContainer, VueAppLayout, VAppLayout, installVueAppLayout } from '@fastkit/vue-app-layout';
|
|
20
20
|
export * from '@fastkit/vue-app-layout';
|
|
21
|
-
import {
|
|
21
|
+
import { colorSchemeProps, useColorClasses, useScopeColorClass, toScopeColorClass, useInjectTheme, VueColorSchemePlugin } from '@fastkit/vue-color-scheme';
|
|
22
22
|
export * from '@fastkit/vue-color-scheme';
|
|
23
23
|
import { createFormControlSettings, useFormControl, useParentFormNode, createFormSelectorItemSettings, useFormSelectorItemControl, createFormSelectorItemGroupProps, useFormSelectorItemGroupControl, createFormSelectorSettings, createFormControlProps, useFormSelectorControl, createTextInputSettings, useTextInputControl, createTextareaSettings, useTextareaControl, createFormSettings, useForm } from '@fastkit/vue-form-control';
|
|
24
24
|
export * from '@fastkit/vue-form-control';
|
|
25
25
|
import { getDocumentScroller, useVScrollerRef, VScroller } from '@fastkit/vue-scroller';
|
|
26
26
|
export * from '@fastkit/vue-scroller';
|
|
27
|
-
import {
|
|
27
|
+
import { defineMenuComponent, defineDialogComponent, createStackActionProps, useStackAction, defineSnackbarComponent, createStackableDefine, useStackControl, VStackRoot, BUILTIN_ACTION_HANDLERS, installVueStackPlugin } from '@fastkit/vue-stack';
|
|
28
28
|
export * from '@fastkit/vue-stack';
|
|
29
|
-
export { VDialog, VMenu, VSnackbar, VTooltip } from '@fastkit/vue-stack';
|
|
30
29
|
import { useActionable, VAction, actionableInheritProps, setDefaultRouterLink } from '@fastkit/vue-action';
|
|
31
30
|
export * from '@fastkit/vue-action';
|
|
32
31
|
export { VAction as VLink } from '@fastkit/vue-action';
|
|
@@ -107,6 +106,7 @@ __export(src_exports, {
|
|
|
107
106
|
VRadio: () => VRadio,
|
|
108
107
|
VRadioGroup: () => VRadioGroup,
|
|
109
108
|
VSelect: () => VSelect,
|
|
109
|
+
VSheetModal: () => VSheetModal,
|
|
110
110
|
VSkeltonLoaderBone: () => VSkeltonLoaderBone,
|
|
111
111
|
VSnackbar: () => VSnackbar,
|
|
112
112
|
VSwitch: () => VSwitch,
|
|
@@ -167,6 +167,7 @@ __export(src_exports, {
|
|
|
167
167
|
renderNavigationItemInput: () => renderNavigationItemInput,
|
|
168
168
|
resolveNavigationItemInput: () => resolveNavigationItemInput,
|
|
169
169
|
resolveRawIconProp: () => resolveRawIconProp,
|
|
170
|
+
sheetModalProps: () => sheetModalProps,
|
|
170
171
|
splitAttrs: () => splitAttrs,
|
|
171
172
|
useControl: () => useControl,
|
|
172
173
|
useControlField: () => useControlField,
|
|
@@ -240,11 +241,11 @@ function createControlProps() {
|
|
|
240
241
|
loading: Boolean
|
|
241
242
|
});
|
|
242
243
|
}
|
|
243
|
-
function useControl(
|
|
244
|
+
function useControl(props11, opts = {}) {
|
|
244
245
|
const { defaultSize = "md" } = opts;
|
|
245
246
|
const parentControl = inject(VuiControlInjectionKey, null);
|
|
246
247
|
const size = computed(() => {
|
|
247
|
-
const psize =
|
|
248
|
+
const psize = props11.size;
|
|
248
249
|
return psize ? psize : parentControl ? parentControl.size.value : defaultSize;
|
|
249
250
|
});
|
|
250
251
|
const classes = computed(() => {
|
|
@@ -270,11 +271,11 @@ function createControlFieldProviderProps() {
|
|
|
270
271
|
}
|
|
271
272
|
});
|
|
272
273
|
}
|
|
273
|
-
function useControlField(
|
|
274
|
+
function useControlField(props11, opts = {}) {
|
|
274
275
|
const { defaultVariant = "flat" } = opts;
|
|
275
276
|
const parentControlField = inject(VuiControlFieldInjectionKey, null);
|
|
276
277
|
const variant = computed(() => {
|
|
277
|
-
const pvariant =
|
|
278
|
+
const pvariant = props11.variant;
|
|
278
279
|
return pvariant ? pvariant : parentControlField ? parentControlField.variant.value : defaultVariant;
|
|
279
280
|
});
|
|
280
281
|
const provider = {
|
|
@@ -310,8 +311,8 @@ var VIcon = defineComponent({
|
|
|
310
311
|
...iconProps
|
|
311
312
|
},
|
|
312
313
|
emits: {},
|
|
313
|
-
setup(
|
|
314
|
-
const iconName = computed(() =>
|
|
314
|
+
setup(props11, ctx) {
|
|
315
|
+
const iconName = computed(() => props11.name);
|
|
315
316
|
const clickable = computed(() => typeof ctx.attrs.onClick !== "undefined");
|
|
316
317
|
const classes = computed(() => [{
|
|
317
318
|
"v-icon--clickable": clickable.value
|
|
@@ -320,7 +321,7 @@ var VIcon = defineComponent({
|
|
|
320
321
|
const bodyStyles = computed(() => {
|
|
321
322
|
const {
|
|
322
323
|
rotate
|
|
323
|
-
} =
|
|
324
|
+
} = props11;
|
|
324
325
|
if (!rotate)
|
|
325
326
|
return;
|
|
326
327
|
return {
|
|
@@ -335,20 +336,74 @@ var VIcon = defineComponent({
|
|
|
335
336
|
}, null)]);
|
|
336
337
|
}
|
|
337
338
|
});
|
|
339
|
+
var colorProps = colorSchemeProps();
|
|
340
|
+
var VMenu = defineMenuComponent({
|
|
341
|
+
name: "VMenu",
|
|
342
|
+
attrs: {
|
|
343
|
+
class: "v-menu"
|
|
344
|
+
},
|
|
345
|
+
props: {
|
|
346
|
+
...colorProps
|
|
347
|
+
},
|
|
348
|
+
setup(ctx) {
|
|
349
|
+
const color = useColorClasses(ctx.props, {
|
|
350
|
+
useRootThemeDefault: true
|
|
351
|
+
});
|
|
352
|
+
ctx.setupContext.expose({
|
|
353
|
+
menu: ctx
|
|
354
|
+
});
|
|
355
|
+
return (children) => {
|
|
356
|
+
return createVNode("div", mergeProps({
|
|
357
|
+
"class": ["v-menu__body", color.colorClasses.value]
|
|
358
|
+
}, ctx.attrs), [children]);
|
|
359
|
+
};
|
|
360
|
+
}
|
|
361
|
+
});
|
|
362
|
+
|
|
363
|
+
// src/components/VTooltip/VTooltip.tsx
|
|
364
|
+
var VTooltip = defineComponent({
|
|
365
|
+
name: "VTooltip",
|
|
366
|
+
inheritAttrs: false,
|
|
367
|
+
setup(_props, ctx) {
|
|
368
|
+
return () => {
|
|
369
|
+
const attrs = {
|
|
370
|
+
...ctx.attrs
|
|
371
|
+
};
|
|
372
|
+
const defaultSlot = ctx.slots.default;
|
|
373
|
+
if (attrs.openOnHover == null) {
|
|
374
|
+
attrs.openOnHover = true;
|
|
375
|
+
}
|
|
376
|
+
if (attrs.openDelay == null) {
|
|
377
|
+
attrs.openDelay = 200;
|
|
378
|
+
}
|
|
379
|
+
return createVNode(VMenu, mergeProps(attrs, {
|
|
380
|
+
"scrollLock": false,
|
|
381
|
+
"class": "v-tooltip"
|
|
382
|
+
}), {
|
|
383
|
+
...ctx.slots,
|
|
384
|
+
default: (payload) => {
|
|
385
|
+
return [createVNode("span", {
|
|
386
|
+
"class": "v-tooltip__inner"
|
|
387
|
+
}, [defaultSlot && defaultSlot(payload)])];
|
|
388
|
+
}
|
|
389
|
+
});
|
|
390
|
+
};
|
|
391
|
+
}
|
|
392
|
+
});
|
|
338
393
|
|
|
339
394
|
// src/components/VFormControl/VFormControl.tsx
|
|
340
395
|
var {
|
|
341
396
|
props,
|
|
342
397
|
emits
|
|
343
398
|
} = createFormControlSettings();
|
|
344
|
-
function createRequiredChipRenderer(required,
|
|
399
|
+
function createRequiredChipRenderer(required, props11, vui = useVui()) {
|
|
345
400
|
return () => {
|
|
346
401
|
if (!required())
|
|
347
402
|
return;
|
|
348
403
|
let chip;
|
|
349
404
|
const {
|
|
350
405
|
requiredChip
|
|
351
|
-
} =
|
|
406
|
+
} = props11;
|
|
352
407
|
if (requiredChip === false)
|
|
353
408
|
return;
|
|
354
409
|
if (requiredChip) {
|
|
@@ -374,9 +429,9 @@ var VFormControl = defineComponent({
|
|
|
374
429
|
},
|
|
375
430
|
slots,
|
|
376
431
|
emits,
|
|
377
|
-
setup(
|
|
432
|
+
setup(props11, ctx) {
|
|
378
433
|
const vui = useVui();
|
|
379
|
-
const control = useFormControl(
|
|
434
|
+
const control = useFormControl(props11, ctx, {
|
|
380
435
|
hinttipPrepend: () => createVNode(VIcon, {
|
|
381
436
|
"class": "v-form-control__label__hinttip__icon",
|
|
382
437
|
"name": vui.icon("hinttip")
|
|
@@ -408,8 +463,8 @@ var VFormControl = defineComponent({
|
|
|
408
463
|
"v-form-control--untouched": control.untouched,
|
|
409
464
|
"v-form-control--invalid": control.invalid,
|
|
410
465
|
"v-form-control--valid": control.valid
|
|
411
|
-
}, colorProvider.className(
|
|
412
|
-
const getRequiredChip = createRequiredChipRenderer(() => control.required,
|
|
466
|
+
}, colorProvider.className(props11.error ? "error" : control.invalid && !control.readonly ? "error" : "primary")]);
|
|
467
|
+
const getRequiredChip = createRequiredChipRenderer(() => control.required, props11, vui);
|
|
413
468
|
return () => {
|
|
414
469
|
const label = control.renderLabel();
|
|
415
470
|
const message = control.renderMessage();
|
|
@@ -437,7 +492,7 @@ var VFormControl = defineComponent({
|
|
|
437
492
|
}, ctx2.attrs), [hinttip.tip])
|
|
438
493
|
})]), createVNode("div", {
|
|
439
494
|
"class": "v-form-control__body"
|
|
440
|
-
}, [ctx.slots.default?.(control), !
|
|
495
|
+
}, [ctx.slots.default?.(control), !props11.hiddenInfo && createVNode("div", {
|
|
441
496
|
"class": "v-form-control__info"
|
|
442
497
|
}, [!!message && createVNode("div", {
|
|
443
498
|
"class": "v-form-control__message"
|
|
@@ -462,15 +517,15 @@ function defineFormSelectorComponent(opts) {
|
|
|
462
517
|
className
|
|
463
518
|
} = opts;
|
|
464
519
|
const {
|
|
465
|
-
props:
|
|
466
|
-
emits:
|
|
520
|
+
props: props11,
|
|
521
|
+
emits: emits11
|
|
467
522
|
} = createFormSelectorSettings({
|
|
468
523
|
defaultMultiple
|
|
469
524
|
});
|
|
470
525
|
return defineComponent({
|
|
471
526
|
name: opts.name,
|
|
472
527
|
props: {
|
|
473
|
-
...
|
|
528
|
+
...props11,
|
|
474
529
|
...createFormControlProps(),
|
|
475
530
|
...createControlProps(),
|
|
476
531
|
stacked: {
|
|
@@ -484,20 +539,20 @@ function defineFormSelectorComponent(opts) {
|
|
|
484
539
|
...slots2()
|
|
485
540
|
},
|
|
486
541
|
slots: slots2,
|
|
487
|
-
emits:
|
|
488
|
-
setup(
|
|
489
|
-
const selectorControl = useFormSelectorControl(
|
|
542
|
+
emits: emits11,
|
|
543
|
+
setup(props12, ctx) {
|
|
544
|
+
const selectorControl = useFormSelectorControl(props12, ctx, {
|
|
490
545
|
nodeType,
|
|
491
546
|
defaultMultiple
|
|
492
547
|
});
|
|
493
|
-
const control = useControl(
|
|
548
|
+
const control = useControl(props12);
|
|
494
549
|
const vui = useVui();
|
|
495
550
|
const loadingMessageRef = computed(() => {
|
|
496
|
-
const slot = resolveVNodeChildOrSlots(
|
|
551
|
+
const slot = resolveVNodeChildOrSlots(props12.loadingMessage, vui.setting("loadingMessage"), "Loading...");
|
|
497
552
|
return slot && slot(vui);
|
|
498
553
|
});
|
|
499
554
|
const failedToLoadItemsMessageRef = computed(() => {
|
|
500
|
-
const slot = resolveVNodeChildOrSlots(
|
|
555
|
+
const slot = resolveVNodeChildOrSlots(props12.failedToLoadItemsMessage, vui.setting("failedToLoadDataMessage"), "Failed to load data.");
|
|
501
556
|
return slot && slot(vui);
|
|
502
557
|
});
|
|
503
558
|
return {
|
|
@@ -567,9 +622,9 @@ function createElevationProps() {
|
|
|
567
622
|
elevation: Number
|
|
568
623
|
});
|
|
569
624
|
}
|
|
570
|
-
function useElevation(
|
|
625
|
+
function useElevation(props11, opts = {}) {
|
|
571
626
|
const elevationValue = computed(
|
|
572
|
-
() =>
|
|
627
|
+
() => props11.elevation == null ? opts.defaultValue : props11.elevation
|
|
573
628
|
);
|
|
574
629
|
const elevationClassName = computed(() => {
|
|
575
630
|
const v = elevationValue.value;
|
|
@@ -627,6 +682,7 @@ __export(components_exports, {
|
|
|
627
682
|
VRadio: () => VRadio,
|
|
628
683
|
VRadioGroup: () => VRadioGroup,
|
|
629
684
|
VSelect: () => VSelect,
|
|
685
|
+
VSheetModal: () => VSheetModal,
|
|
630
686
|
VSkeltonLoaderBone: () => VSkeltonLoaderBone,
|
|
631
687
|
VSnackbar: () => VSnackbar,
|
|
632
688
|
VSwitch: () => VSwitch,
|
|
@@ -661,10 +717,150 @@ __export(components_exports, {
|
|
|
661
717
|
renderNavigationItemInput: () => renderNavigationItemInput,
|
|
662
718
|
resolveNavigationItemInput: () => resolveNavigationItemInput,
|
|
663
719
|
resolveRawIconProp: () => resolveRawIconProp,
|
|
720
|
+
sheetModalProps: () => sheetModalProps,
|
|
664
721
|
splitAttrs: () => splitAttrs,
|
|
665
722
|
vueButtonProps: () => vueButtonProps
|
|
666
723
|
});
|
|
667
724
|
__reExport(components_exports, loading_exports);
|
|
725
|
+
var colorProps2 = colorSchemeProps();
|
|
726
|
+
var VDialog = defineDialogComponent({
|
|
727
|
+
name: "VDialog",
|
|
728
|
+
props: {
|
|
729
|
+
...createStackActionProps(),
|
|
730
|
+
...colorProps2,
|
|
731
|
+
dense: Boolean
|
|
732
|
+
},
|
|
733
|
+
setup(ctx) {
|
|
734
|
+
const {
|
|
735
|
+
props: props11,
|
|
736
|
+
control
|
|
737
|
+
} = ctx;
|
|
738
|
+
const vui = useVui();
|
|
739
|
+
const actionControl = useStackAction(props11, control, {
|
|
740
|
+
resolver: (actions) => {
|
|
741
|
+
if (actions.length === 0) {
|
|
742
|
+
return [vui.stackAction("close")];
|
|
743
|
+
} else {
|
|
744
|
+
return actions;
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
});
|
|
748
|
+
const color = useColorClasses(props11, {
|
|
749
|
+
useRootThemeDefault: true
|
|
750
|
+
});
|
|
751
|
+
return (children) => {
|
|
752
|
+
const {
|
|
753
|
+
$actions
|
|
754
|
+
} = actionControl;
|
|
755
|
+
return createVNode("div", {
|
|
756
|
+
"class": ["v-dialog", color.colorClasses.value, props11.dense && "v-dialog--dense"]
|
|
757
|
+
}, [createVNode("div", {
|
|
758
|
+
"class": "v-dialog__body"
|
|
759
|
+
}, [children]), $actions.length > 0 && createVNode("div", {
|
|
760
|
+
"class": "v-dialog__actions"
|
|
761
|
+
}, [$actions])]);
|
|
762
|
+
};
|
|
763
|
+
}
|
|
764
|
+
});
|
|
765
|
+
var colorProps3 = colorSchemeProps();
|
|
766
|
+
var VSnackbar = defineSnackbarComponent({
|
|
767
|
+
name: "VSnackbar",
|
|
768
|
+
props: {
|
|
769
|
+
...createStackActionProps(),
|
|
770
|
+
...colorProps3
|
|
771
|
+
},
|
|
772
|
+
setup(ctx) {
|
|
773
|
+
const {
|
|
774
|
+
props: props11,
|
|
775
|
+
control
|
|
776
|
+
} = ctx;
|
|
777
|
+
const vui = useVui();
|
|
778
|
+
const actionControl = useStackAction(props11, control, {
|
|
779
|
+
resolver: (actions) => {
|
|
780
|
+
if (actions.length === 0) {
|
|
781
|
+
return [vui.stackAction("close")];
|
|
782
|
+
} else {
|
|
783
|
+
return actions;
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
});
|
|
787
|
+
const color = useColorClasses(props11, {
|
|
788
|
+
useRootThemeDefault: true
|
|
789
|
+
});
|
|
790
|
+
return (children) => {
|
|
791
|
+
const {
|
|
792
|
+
$actions
|
|
793
|
+
} = actionControl;
|
|
794
|
+
return createVNode("div", mergeProps({
|
|
795
|
+
"class": ["v-snackbar", color.colorClasses.value]
|
|
796
|
+
}, ctx.attrs), [createVNode("div", {
|
|
797
|
+
"class": "v-snackbar__inner"
|
|
798
|
+
}, [createVNode("div", {
|
|
799
|
+
"class": "v-snackbar__body"
|
|
800
|
+
}, [children]), $actions.length > 0 && createVNode("div", {
|
|
801
|
+
"class": "v-snackbar__actions"
|
|
802
|
+
}, [$actions])])]);
|
|
803
|
+
};
|
|
804
|
+
}
|
|
805
|
+
});
|
|
806
|
+
var {
|
|
807
|
+
props: props2,
|
|
808
|
+
emits: emits2
|
|
809
|
+
} = createStackableDefine({
|
|
810
|
+
defaultTransition: "v-sheet-modal",
|
|
811
|
+
defaultFocusTrap: true,
|
|
812
|
+
defaultFocusRestorable: true,
|
|
813
|
+
defaultScrollLock: true
|
|
814
|
+
});
|
|
815
|
+
var sheetModalProps = {
|
|
816
|
+
...props2,
|
|
817
|
+
header: Function,
|
|
818
|
+
"v-slots": void 0
|
|
819
|
+
};
|
|
820
|
+
var SHEET_STACK_TYPE = Symbol("VSheetModal");
|
|
821
|
+
var VSheetModal = defineComponent({
|
|
822
|
+
name: "VSheetModal",
|
|
823
|
+
inheritAttrs: false,
|
|
824
|
+
props: sheetModalProps,
|
|
825
|
+
emits: emits2,
|
|
826
|
+
setup(props11, ctx) {
|
|
827
|
+
const stackControl = useStackControl(props11, ctx, {
|
|
828
|
+
stackType: SHEET_STACK_TYPE
|
|
829
|
+
});
|
|
830
|
+
const hasActiveChild = computed(() => {
|
|
831
|
+
const myIndex = stackControl.zIndex;
|
|
832
|
+
const stacks = stackControl.$service.getActiveStacks().filter((stack) => stack.stackType === SHEET_STACK_TYPE);
|
|
833
|
+
return stacks.some((stack) => stack.zIndex > myIndex);
|
|
834
|
+
});
|
|
835
|
+
return {
|
|
836
|
+
stackControl,
|
|
837
|
+
hasActiveChild
|
|
838
|
+
};
|
|
839
|
+
},
|
|
840
|
+
render() {
|
|
841
|
+
const {
|
|
842
|
+
render
|
|
843
|
+
// color,
|
|
844
|
+
} = this.stackControl;
|
|
845
|
+
const headerSlot = this.$slots.header || this.header;
|
|
846
|
+
return render((children) => {
|
|
847
|
+
return createVNode("div", {
|
|
848
|
+
"class": [
|
|
849
|
+
"v-sheet-modal",
|
|
850
|
+
{
|
|
851
|
+
"v-sheet-modal--has-active-child": this.hasActiveChild
|
|
852
|
+
}
|
|
853
|
+
// color.colorClasses.value,
|
|
854
|
+
],
|
|
855
|
+
"tabindex": "0"
|
|
856
|
+
}, [headerSlot && createVNode("div", {
|
|
857
|
+
"class": "v-sheet-modal__header"
|
|
858
|
+
}, [headerSlot(this.stackControl)]), createVNode("div", {
|
|
859
|
+
"class": "v-sheet-modal__scroller"
|
|
860
|
+
}, [children])]);
|
|
861
|
+
});
|
|
862
|
+
}
|
|
863
|
+
});
|
|
668
864
|
var VSkeltonLoaderBone = defineComponent({
|
|
669
865
|
name: "VSkeltonLoaderBone",
|
|
670
866
|
inheritAttrs: false,
|
|
@@ -674,9 +870,9 @@ var VSkeltonLoaderBone = defineComponent({
|
|
|
674
870
|
default: "div"
|
|
675
871
|
}
|
|
676
872
|
},
|
|
677
|
-
setup(
|
|
873
|
+
setup(props11, ctx) {
|
|
678
874
|
return () => {
|
|
679
|
-
const TagName =
|
|
875
|
+
const TagName = props11.tag;
|
|
680
876
|
return createVNode(TagName, mergeProps(ctx.attrs, {
|
|
681
877
|
"class": "v-skelton-loader-bone"
|
|
682
878
|
}), {
|
|
@@ -725,15 +921,15 @@ var VBusyImage = defineComponent({
|
|
|
725
921
|
error: (ev) => true
|
|
726
922
|
},
|
|
727
923
|
slots: slots3,
|
|
728
|
-
setup(
|
|
729
|
-
const loadStateRef = ref(
|
|
924
|
+
setup(props11, ctx) {
|
|
925
|
+
const loadStateRef = ref(props11.cover && isAvailableSrc(ctx.attrs.src) ? "loading" : "pending");
|
|
730
926
|
const attrsRef = computed(() => splitAttrs(ctx.attrs));
|
|
731
927
|
const isPendingRef = computed(() => loadStateRef.value === "pending");
|
|
732
928
|
const isLoadingRef = computed(() => loadStateRef.value === "loading");
|
|
733
929
|
const isLoadedRef = computed(() => loadStateRef.value === "loaded");
|
|
734
930
|
const isErrorRef = computed(() => loadStateRef.value === "error");
|
|
735
931
|
const classesRef = computed(() => [`v-busy-image--${loadStateRef.value}`, {
|
|
736
|
-
"v-busy-image--cover":
|
|
932
|
+
"v-busy-image--cover": props11.cover,
|
|
737
933
|
"v-busy-image--clickable": typeof ctx.attrs.onClick === "function"
|
|
738
934
|
}]);
|
|
739
935
|
const nodeRef = ref();
|
|
@@ -743,11 +939,11 @@ var VBusyImage = defineComponent({
|
|
|
743
939
|
const main = {};
|
|
744
940
|
const {
|
|
745
941
|
cover
|
|
746
|
-
} =
|
|
942
|
+
} = props11;
|
|
747
943
|
let {
|
|
748
944
|
width,
|
|
749
945
|
height
|
|
750
|
-
} =
|
|
946
|
+
} = props11;
|
|
751
947
|
if (height == null && cover) {
|
|
752
948
|
height = DEFAULT_HEIGHT;
|
|
753
949
|
}
|
|
@@ -790,7 +986,7 @@ var VBusyImage = defineComponent({
|
|
|
790
986
|
coverImageRef.value = void 0;
|
|
791
987
|
if (isAvailableSrc(value)) {
|
|
792
988
|
loadStateRef.value = "loading";
|
|
793
|
-
if (
|
|
989
|
+
if (props11.cover) {
|
|
794
990
|
loadImage(value).then((image) => {
|
|
795
991
|
coverImageRef.value = image;
|
|
796
992
|
setManualState("load");
|
|
@@ -814,7 +1010,7 @@ var VBusyImage = defineComponent({
|
|
|
814
1010
|
ctx.emit(loadType, ev);
|
|
815
1011
|
};
|
|
816
1012
|
onMounted(() => {
|
|
817
|
-
if (booted ||
|
|
1013
|
+
if (booted || props11.cover)
|
|
818
1014
|
return;
|
|
819
1015
|
const image = nodeRef.value;
|
|
820
1016
|
if (!image)
|
|
@@ -855,7 +1051,7 @@ var VBusyImage = defineComponent({
|
|
|
855
1051
|
"class": ["v-busy-image", classesRef.value]
|
|
856
1052
|
}, elAttrs, {
|
|
857
1053
|
"style": styles
|
|
858
|
-
}), [!
|
|
1054
|
+
}), [!props11.cover && createVNode("img", mergeProps({
|
|
859
1055
|
"key": "img",
|
|
860
1056
|
"ref": nodeRef,
|
|
861
1057
|
"class": "v-busy-image__node"
|
|
@@ -901,7 +1097,7 @@ var VGridItem = defineComponent({
|
|
|
901
1097
|
justify: void 0,
|
|
902
1098
|
order: void 0
|
|
903
1099
|
},
|
|
904
|
-
setup(
|
|
1100
|
+
setup(props11, ctx) {
|
|
905
1101
|
const data = computed(() => {
|
|
906
1102
|
const classes = [];
|
|
907
1103
|
const attrs = {
|
|
@@ -912,7 +1108,7 @@ var VGridItem = defineComponent({
|
|
|
912
1108
|
align,
|
|
913
1109
|
justify,
|
|
914
1110
|
order
|
|
915
|
-
} =
|
|
1111
|
+
} = props11;
|
|
916
1112
|
delete attrs.size;
|
|
917
1113
|
delete attrs.align;
|
|
918
1114
|
delete attrs.justify;
|
|
@@ -927,7 +1123,7 @@ var VGridItem = defineComponent({
|
|
|
927
1123
|
};
|
|
928
1124
|
});
|
|
929
1125
|
return () => {
|
|
930
|
-
const TagName =
|
|
1126
|
+
const TagName = props11.tag;
|
|
931
1127
|
const {
|
|
932
1128
|
classes,
|
|
933
1129
|
attrs
|
|
@@ -961,7 +1157,7 @@ var VGridContainer = defineComponent({
|
|
|
961
1157
|
alignContent: void 0,
|
|
962
1158
|
justifyContent: void 0
|
|
963
1159
|
},
|
|
964
|
-
setup(
|
|
1160
|
+
setup(props11, ctx) {
|
|
965
1161
|
const data = computed(() => {
|
|
966
1162
|
const classes = [];
|
|
967
1163
|
const attrs = {
|
|
@@ -975,7 +1171,7 @@ var VGridContainer = defineComponent({
|
|
|
975
1171
|
wrap,
|
|
976
1172
|
alignContent,
|
|
977
1173
|
justifyContent
|
|
978
|
-
} =
|
|
1174
|
+
} = props11;
|
|
979
1175
|
const wrapperClass = attrs.class;
|
|
980
1176
|
const wrapperStyle = attrs.style;
|
|
981
1177
|
delete attrs.class;
|
|
@@ -1002,8 +1198,8 @@ var VGridContainer = defineComponent({
|
|
|
1002
1198
|
};
|
|
1003
1199
|
});
|
|
1004
1200
|
return () => {
|
|
1005
|
-
const WrapperTag =
|
|
1006
|
-
const TagName =
|
|
1201
|
+
const WrapperTag = props11.wrapperTag;
|
|
1202
|
+
const TagName = props11.tag;
|
|
1007
1203
|
const {
|
|
1008
1204
|
wrapperClass,
|
|
1009
1205
|
wrapperStyle,
|
|
@@ -1048,20 +1244,20 @@ var VPaper = defineComponent({
|
|
|
1048
1244
|
inheritAttrs: false,
|
|
1049
1245
|
props: createPaperProps(),
|
|
1050
1246
|
slots: paperBaseSlots,
|
|
1051
|
-
setup(
|
|
1052
|
-
const tag = computed(() =>
|
|
1053
|
-
const elevation = useElevation(
|
|
1247
|
+
setup(props11, ctx) {
|
|
1248
|
+
const tag = computed(() => props11.tag);
|
|
1249
|
+
const elevation = useElevation(props11, {
|
|
1054
1250
|
defaultValue: 1
|
|
1055
1251
|
});
|
|
1056
|
-
const scope = useScopeColorClass(
|
|
1252
|
+
const scope = useScopeColorClass(props11);
|
|
1057
1253
|
const classes = computed(() => [elevation.elevationClassName.value, scope.value.className, {
|
|
1058
1254
|
"v-paper--plain": !scope.value.value,
|
|
1059
1255
|
"v-paper--has-color": !!scope.value.value || !!ctx.attrs.disabled,
|
|
1060
|
-
"v-paper--square":
|
|
1256
|
+
"v-paper--square": props11.square
|
|
1061
1257
|
}]);
|
|
1062
|
-
const headerProps = computed(() =>
|
|
1063
|
-
const bodyProps = computed(() =>
|
|
1064
|
-
const footerProps = computed(() =>
|
|
1258
|
+
const headerProps = computed(() => props11.headerProps);
|
|
1259
|
+
const bodyProps = computed(() => props11.bodyProps);
|
|
1260
|
+
const footerProps = computed(() => props11.footerProps);
|
|
1065
1261
|
return () => {
|
|
1066
1262
|
const TagName = tag.value;
|
|
1067
1263
|
const header = renderSlotOrEmpty(ctx.slots, "header");
|
|
@@ -1070,7 +1266,7 @@ var VPaper = defineComponent({
|
|
|
1070
1266
|
"class": ["v-paper", classes.value]
|
|
1071
1267
|
}, ctx.attrs), {
|
|
1072
1268
|
default: () => [createVNode("div", {
|
|
1073
|
-
"class": ["v-paper__inner",
|
|
1269
|
+
"class": ["v-paper__inner", props11.innerClass]
|
|
1074
1270
|
}, [header && createVNode("div", mergeProps({
|
|
1075
1271
|
"class": "v-paper__header"
|
|
1076
1272
|
}, headerProps.value), [header]), createVNode("div", mergeProps({
|
|
@@ -1101,12 +1297,12 @@ var VAvatar = defineComponent({
|
|
|
1101
1297
|
name: "VAvatar",
|
|
1102
1298
|
inheritAttrs: false,
|
|
1103
1299
|
props: createAvatarProps(),
|
|
1104
|
-
setup(
|
|
1300
|
+
setup(props11, ctx) {
|
|
1105
1301
|
const vui = useVui();
|
|
1106
1302
|
const defaults = vui.setting("buttonDefault");
|
|
1107
1303
|
const color = useColorClasses({
|
|
1108
|
-
color: () =>
|
|
1109
|
-
variant: () =>
|
|
1304
|
+
color: () => props11.color || defaults.color,
|
|
1305
|
+
variant: () => props11.variant || defaults.variant
|
|
1110
1306
|
});
|
|
1111
1307
|
const actionable = useActionable(ctx, {
|
|
1112
1308
|
clickableClassName: () => "v-avatar--clickable",
|
|
@@ -1115,16 +1311,16 @@ var VAvatar = defineComponent({
|
|
|
1115
1311
|
const classes = computed(() => {
|
|
1116
1312
|
const {
|
|
1117
1313
|
size
|
|
1118
|
-
} =
|
|
1314
|
+
} = props11;
|
|
1119
1315
|
return [{
|
|
1120
|
-
"v-avatar--tile":
|
|
1121
|
-
"v-avatar--rounded":
|
|
1316
|
+
"v-avatar--tile": props11.tile,
|
|
1317
|
+
"v-avatar--rounded": props11.rounded
|
|
1122
1318
|
}, typeof size === "string" && `v-avatar--${size}`];
|
|
1123
1319
|
});
|
|
1124
1320
|
const styles = computed(() => {
|
|
1125
1321
|
const {
|
|
1126
1322
|
size
|
|
1127
|
-
} =
|
|
1323
|
+
} = props11;
|
|
1128
1324
|
if (typeof size !== "number")
|
|
1129
1325
|
return;
|
|
1130
1326
|
return {
|
|
@@ -1134,7 +1330,7 @@ var VAvatar = defineComponent({
|
|
|
1134
1330
|
return () => {
|
|
1135
1331
|
const {
|
|
1136
1332
|
src
|
|
1137
|
-
} =
|
|
1333
|
+
} = props11;
|
|
1138
1334
|
const {
|
|
1139
1335
|
Tag,
|
|
1140
1336
|
attrs
|
|
@@ -1189,19 +1385,19 @@ var VChip = defineComponent({
|
|
|
1189
1385
|
name: "VChip",
|
|
1190
1386
|
inheritAttrs: false,
|
|
1191
1387
|
props: createChipProps(),
|
|
1192
|
-
setup(
|
|
1388
|
+
setup(props11, ctx) {
|
|
1193
1389
|
const vui = useVui();
|
|
1194
1390
|
const defaults = vui.setting("buttonDefault");
|
|
1195
1391
|
const color = useColorClasses({
|
|
1196
|
-
color: () =>
|
|
1197
|
-
variant: () =>
|
|
1392
|
+
color: () => props11.color || defaults.color,
|
|
1393
|
+
variant: () => props11.variant || defaults.variant
|
|
1198
1394
|
});
|
|
1199
1395
|
const startIcon = computed(() => {
|
|
1200
|
-
const _icon = resolveRawVChipIcon(
|
|
1396
|
+
const _icon = resolveRawVChipIcon(props11.startIcon, "start");
|
|
1201
1397
|
return _icon && _icon();
|
|
1202
1398
|
});
|
|
1203
1399
|
const endIcon = computed(() => {
|
|
1204
|
-
const _icon = resolveRawVChipIcon(
|
|
1400
|
+
const _icon = resolveRawVChipIcon(props11.endIcon, "end");
|
|
1205
1401
|
return _icon && _icon();
|
|
1206
1402
|
});
|
|
1207
1403
|
const actionable = useActionable(ctx, {
|
|
@@ -1211,9 +1407,9 @@ var VChip = defineComponent({
|
|
|
1211
1407
|
const classes = computed(() => {
|
|
1212
1408
|
const {
|
|
1213
1409
|
size
|
|
1214
|
-
} =
|
|
1410
|
+
} = props11;
|
|
1215
1411
|
return [{
|
|
1216
|
-
"v-chip--label":
|
|
1412
|
+
"v-chip--label": props11.label
|
|
1217
1413
|
}, typeof size === "string" && `v-chip--${size}`];
|
|
1218
1414
|
});
|
|
1219
1415
|
return () => {
|
|
@@ -1242,8 +1438,8 @@ var VCard = defineComponent({
|
|
|
1242
1438
|
name: "VCard",
|
|
1243
1439
|
inheritAttrs: false,
|
|
1244
1440
|
props: createCardProps(),
|
|
1245
|
-
setup(
|
|
1246
|
-
const _props = computed(() =>
|
|
1441
|
+
setup(props11, ctx) {
|
|
1442
|
+
const _props = computed(() => props11);
|
|
1247
1443
|
const data = computed(() => {
|
|
1248
1444
|
const hasLink = !!ctx.attrs.href || !!ctx.attrs.to;
|
|
1249
1445
|
const attrs = {
|
|
@@ -1252,7 +1448,7 @@ var VCard = defineComponent({
|
|
|
1252
1448
|
class: ["v-card", ctx.attrs.class, typeof ctx.attrs.onClick === "function" && "clickable"],
|
|
1253
1449
|
tag: hasLink ? VAction : "div"
|
|
1254
1450
|
};
|
|
1255
|
-
if (
|
|
1451
|
+
if (props11.disabled) {
|
|
1256
1452
|
attrs.disabled = "disabled";
|
|
1257
1453
|
delete attrs.onClick;
|
|
1258
1454
|
delete attrs.href;
|
|
@@ -1321,38 +1517,38 @@ var VButton = defineComponent({
|
|
|
1321
1517
|
name: "VButton",
|
|
1322
1518
|
inheritAttrs: false,
|
|
1323
1519
|
props: vueButtonProps,
|
|
1324
|
-
setup(
|
|
1520
|
+
setup(props11, ctx) {
|
|
1325
1521
|
const vui = useVui();
|
|
1326
|
-
const control = useControl(
|
|
1522
|
+
const control = useControl(props11);
|
|
1327
1523
|
const defaults = vui.setting("buttonDefault");
|
|
1328
1524
|
const icon = computed(() => {
|
|
1329
|
-
const _icon = resolveRawVButtonIcon(
|
|
1525
|
+
const _icon = resolveRawVButtonIcon(props11.icon);
|
|
1330
1526
|
return _icon && _icon();
|
|
1331
1527
|
});
|
|
1332
1528
|
const startIcon = computed(() => {
|
|
1333
|
-
const _icon = resolveRawVButtonIcon(
|
|
1529
|
+
const _icon = resolveRawVButtonIcon(props11.startIcon, "start");
|
|
1334
1530
|
return _icon && _icon();
|
|
1335
1531
|
});
|
|
1336
1532
|
const endIcon = computed(() => {
|
|
1337
|
-
const _icon = resolveRawVButtonIcon(
|
|
1533
|
+
const _icon = resolveRawVButtonIcon(props11.endIcon, "end");
|
|
1338
1534
|
return _icon && _icon();
|
|
1339
1535
|
});
|
|
1340
1536
|
const color = useColorClasses({
|
|
1341
|
-
color: () =>
|
|
1342
|
-
variant: () =>
|
|
1537
|
+
color: () => props11.color || defaults.color,
|
|
1538
|
+
variant: () => props11.variant || (icon.value ? vui.setting("plainVariant") : defaults.variant)
|
|
1343
1539
|
});
|
|
1344
1540
|
const isPlain = computed(() => color.variant.value.value === vui.setting("plainVariant") && color.color.value.value === defaults.color);
|
|
1345
|
-
const isLoading = computed(() =>
|
|
1541
|
+
const isLoading = computed(() => props11.loading);
|
|
1346
1542
|
const spacer = computed(() => {
|
|
1347
|
-
const _spacer =
|
|
1543
|
+
const _spacer = props11.spacer;
|
|
1348
1544
|
if (!_spacer)
|
|
1349
1545
|
return;
|
|
1350
1546
|
return _spacer === true ? "left" : _spacer;
|
|
1351
1547
|
});
|
|
1352
|
-
const classes = computed(() => [color.colorClasses.value, spacer.value ? `v-button--spacer-${spacer.value}` : void 0, `v-button--${control.size.value}`, `v-button--align-${
|
|
1548
|
+
const classes = computed(() => [color.colorClasses.value, spacer.value ? `v-button--spacer-${spacer.value}` : void 0, `v-button--${control.size.value}`, `v-button--align-${props11.align}`, {
|
|
1353
1549
|
"v-button--loading": isLoading.value,
|
|
1354
1550
|
"v-button--icon": !!icon.value,
|
|
1355
|
-
"v-button--rounded":
|
|
1551
|
+
"v-button--rounded": props11.rounded,
|
|
1356
1552
|
"v-button--plain": isPlain.value
|
|
1357
1553
|
}]);
|
|
1358
1554
|
return () => {
|
|
@@ -1377,7 +1573,7 @@ var VButtonGroup = defineComponent({
|
|
|
1377
1573
|
...createControlProps(),
|
|
1378
1574
|
disabled: Boolean
|
|
1379
1575
|
},
|
|
1380
|
-
setup(
|
|
1576
|
+
setup(props11, ctx) {
|
|
1381
1577
|
return () => {
|
|
1382
1578
|
let hasIcon = false;
|
|
1383
1579
|
let buttonLength = 0;
|
|
@@ -1409,7 +1605,7 @@ var VButtonGroup = defineComponent({
|
|
|
1409
1605
|
const hasRight = buttonIndex < buttonLength;
|
|
1410
1606
|
const childProps = child.node.props;
|
|
1411
1607
|
return cloneVNode(child.node, {
|
|
1412
|
-
...
|
|
1608
|
+
...props11,
|
|
1413
1609
|
...childProps,
|
|
1414
1610
|
rouded: false,
|
|
1415
1611
|
class: ["v-button-group__item", {
|
|
@@ -1477,7 +1673,7 @@ var VPagination = defineComponent({
|
|
|
1477
1673
|
change: (page) => true,
|
|
1478
1674
|
"update:modelValue": (page) => true
|
|
1479
1675
|
},
|
|
1480
|
-
setup(
|
|
1676
|
+
setup(props11, ctx) {
|
|
1481
1677
|
const vui = useVui();
|
|
1482
1678
|
const elRef = ref(null);
|
|
1483
1679
|
const router = useRouter();
|
|
@@ -1491,15 +1687,15 @@ var VPagination = defineComponent({
|
|
|
1491
1687
|
return Math.floor(containerWidth.value / _itemSize);
|
|
1492
1688
|
});
|
|
1493
1689
|
const colorScope = useScopeColorClass({
|
|
1494
|
-
color: () =>
|
|
1690
|
+
color: () => props11.color || vui.setting("primaryScope")
|
|
1495
1691
|
});
|
|
1496
|
-
const computedLength = computed(() => resolveNumberish(
|
|
1497
|
-
const computedTotalVisible = computed(() => resolveNumberish(
|
|
1692
|
+
const computedLength = computed(() => resolveNumberish(props11.length));
|
|
1693
|
+
const computedTotalVisible = computed(() => resolveNumberish(props11.totalVisible));
|
|
1498
1694
|
const computedNumbersLength = computed(() => capacityLength.value - 2 - 2);
|
|
1499
1695
|
const computedPage = computed(() => {
|
|
1500
1696
|
const {
|
|
1501
1697
|
routeQuery
|
|
1502
|
-
} =
|
|
1698
|
+
} = props11;
|
|
1503
1699
|
if (routeQuery) {
|
|
1504
1700
|
return vui.location.getQuery(routeQuery, Number, 1);
|
|
1505
1701
|
}
|
|
@@ -1543,14 +1739,14 @@ var VPagination = defineComponent({
|
|
|
1543
1739
|
const isTransitioning = computed(() => {
|
|
1544
1740
|
const {
|
|
1545
1741
|
routeQuery
|
|
1546
|
-
} =
|
|
1742
|
+
} = props11;
|
|
1547
1743
|
return vui.location.isQueryOnlyTransitioning(routeQuery);
|
|
1548
1744
|
});
|
|
1549
|
-
const isDisabled = computed(() =>
|
|
1745
|
+
const isDisabled = computed(() => props11.disabled || isTransitioning.value);
|
|
1550
1746
|
const classes = computed(() => [{
|
|
1551
1747
|
"v-pagination--disabled": isDisabled.value,
|
|
1552
|
-
"v-pagination--dense":
|
|
1553
|
-
[`v-pagination--${
|
|
1748
|
+
"v-pagination--dense": props11.dense,
|
|
1749
|
+
[`v-pagination--${props11.align}`]: true
|
|
1554
1750
|
}, colorScope.value.className]);
|
|
1555
1751
|
async function setPage(value) {
|
|
1556
1752
|
if (isDisabled.value)
|
|
@@ -1558,7 +1754,7 @@ var VPagination = defineComponent({
|
|
|
1558
1754
|
const {
|
|
1559
1755
|
beforeChange,
|
|
1560
1756
|
routeQuery
|
|
1561
|
-
} =
|
|
1757
|
+
} = props11;
|
|
1562
1758
|
const newPage = resolveNumberish(value);
|
|
1563
1759
|
if (computedPage.value === newPage)
|
|
1564
1760
|
return;
|
|
@@ -1651,7 +1847,7 @@ var VPagination = defineComponent({
|
|
|
1651
1847
|
const key = `${source}-${index}`;
|
|
1652
1848
|
const {
|
|
1653
1849
|
routeQuery
|
|
1654
|
-
} =
|
|
1850
|
+
} = props11;
|
|
1655
1851
|
if (page !== void 0 && routeQuery) {
|
|
1656
1852
|
const to = createRoutableLocationByPage(page, routeQuery);
|
|
1657
1853
|
return createVNode(RouterLink, {
|
|
@@ -1671,7 +1867,7 @@ var VPagination = defineComponent({
|
|
|
1671
1867
|
}, [children]);
|
|
1672
1868
|
}
|
|
1673
1869
|
}
|
|
1674
|
-
watch(() =>
|
|
1870
|
+
watch(() => props11.modelValue, (modelValue) => {
|
|
1675
1871
|
internalValue.value = resolveNumberish(modelValue);
|
|
1676
1872
|
}, {
|
|
1677
1873
|
immediate: true
|
|
@@ -1726,16 +1922,16 @@ var VListTile = defineComponent({
|
|
|
1726
1922
|
emits: {
|
|
1727
1923
|
...listTileEmits
|
|
1728
1924
|
},
|
|
1729
|
-
setup(
|
|
1925
|
+
setup(props11, ctx) {
|
|
1730
1926
|
const vui = useVui();
|
|
1731
1927
|
const startIcon = computed(() => {
|
|
1732
|
-
let icon = resolveRawIconProp(false,
|
|
1733
|
-
if (!icon &&
|
|
1928
|
+
let icon = resolveRawIconProp(false, props11.startIcon);
|
|
1929
|
+
if (!icon && props11.startIconEmptySpace) {
|
|
1734
1930
|
icon = resolveRawIconProp(false, "$empty");
|
|
1735
1931
|
}
|
|
1736
1932
|
return icon;
|
|
1737
1933
|
});
|
|
1738
|
-
const endIcon = computed(() => resolveRawIconProp(false,
|
|
1934
|
+
const endIcon = computed(() => resolveRawIconProp(false, props11.endIcon));
|
|
1739
1935
|
const hasTo = computed(() => !!ctx.attrs.to);
|
|
1740
1936
|
const link = vui.useLink({
|
|
1741
1937
|
to: ctx.attrs.to || ""
|
|
@@ -1743,9 +1939,9 @@ var VListTile = defineComponent({
|
|
|
1743
1939
|
const isActive = computed(() => {
|
|
1744
1940
|
if (!hasTo.value)
|
|
1745
1941
|
return false;
|
|
1746
|
-
return
|
|
1942
|
+
return props11.exactMatch ? link.isExactActive.value : link.isActive.value;
|
|
1747
1943
|
});
|
|
1748
|
-
const color = useScopeColorClass(
|
|
1944
|
+
const color = useScopeColorClass(props11);
|
|
1749
1945
|
const classes = computed(() => {
|
|
1750
1946
|
const _color = color.value;
|
|
1751
1947
|
const hasColor = !!_color.value;
|
|
@@ -1784,11 +1980,11 @@ var VDrawerLayout = defineComponent({
|
|
|
1784
1980
|
...createPaperBaseProps()
|
|
1785
1981
|
},
|
|
1786
1982
|
slots: paperBaseSlots,
|
|
1787
|
-
setup(
|
|
1983
|
+
setup(props11, ctx) {
|
|
1788
1984
|
return () => {
|
|
1789
1985
|
const paperProps = computed(() => ({
|
|
1790
|
-
color:
|
|
1791
|
-
tag:
|
|
1986
|
+
color: props11.color,
|
|
1987
|
+
tag: props11.tag
|
|
1792
1988
|
}));
|
|
1793
1989
|
return createVNode(VPaper, mergeProps({
|
|
1794
1990
|
"class": "v-drawer-layout",
|
|
@@ -1827,16 +2023,16 @@ var VHero = defineComponent({
|
|
|
1827
2023
|
...slots4()
|
|
1828
2024
|
},
|
|
1829
2025
|
slots: slots4,
|
|
1830
|
-
setup(
|
|
2026
|
+
setup(props11, ctx) {
|
|
1831
2027
|
return () => {
|
|
1832
|
-
const TagName =
|
|
1833
|
-
const HTagName =
|
|
2028
|
+
const TagName = props11.tag;
|
|
2029
|
+
const HTagName = props11.hTag;
|
|
1834
2030
|
const adornment = ctx.slots.adornment?.();
|
|
1835
2031
|
return createVNode(VAppContainer, {
|
|
1836
2032
|
"pulled": true
|
|
1837
2033
|
}, {
|
|
1838
2034
|
default: () => [createVNode(TagName, {
|
|
1839
|
-
"class": ["v-hero", toScopeColorClass(
|
|
2035
|
+
"class": ["v-hero", toScopeColorClass(props11.color)]
|
|
1840
2036
|
}, {
|
|
1841
2037
|
default: () => [createVNode(HTagName, {
|
|
1842
2038
|
"class": "v-hero__title"
|
|
@@ -1871,25 +2067,25 @@ function createNavigationItemProps() {
|
|
|
1871
2067
|
}
|
|
1872
2068
|
function resolveNavigationItemInput(input) {
|
|
1873
2069
|
let label = input.label;
|
|
1874
|
-
const
|
|
2070
|
+
const props11 = {
|
|
1875
2071
|
...input
|
|
1876
2072
|
};
|
|
1877
2073
|
if (typeof label === "function") {
|
|
1878
2074
|
label = label();
|
|
1879
2075
|
}
|
|
1880
|
-
delete
|
|
2076
|
+
delete props11.label;
|
|
1881
2077
|
return {
|
|
1882
2078
|
label,
|
|
1883
|
-
props:
|
|
2079
|
+
props: props11
|
|
1884
2080
|
};
|
|
1885
2081
|
}
|
|
1886
2082
|
function renderNavigationItemInput(input, extraProps) {
|
|
1887
2083
|
const {
|
|
1888
2084
|
label,
|
|
1889
|
-
props:
|
|
2085
|
+
props: props11
|
|
1890
2086
|
} = resolveNavigationItemInput(input);
|
|
1891
2087
|
return createVNode(VNavigationItem, {
|
|
1892
|
-
...
|
|
2088
|
+
...props11,
|
|
1893
2089
|
...extraProps
|
|
1894
2090
|
}, _isSlot2(label) ? label : {
|
|
1895
2091
|
default: () => [label]
|
|
@@ -1909,18 +2105,18 @@ var VNavigationItem = defineComponent({
|
|
|
1909
2105
|
emits: {
|
|
1910
2106
|
...listTileEmits
|
|
1911
2107
|
},
|
|
1912
|
-
setup(
|
|
2108
|
+
setup(props11, ctx) {
|
|
1913
2109
|
const vui = useVui();
|
|
1914
2110
|
const opened = ref(false);
|
|
1915
2111
|
const children = computed(() => {
|
|
1916
|
-
const c =
|
|
2112
|
+
const c = props11.children;
|
|
1917
2113
|
return c && c.length ? c : void 0;
|
|
1918
2114
|
});
|
|
1919
2115
|
const to = computed(() => ctx.attrs.to);
|
|
1920
2116
|
const match = computed(() => {
|
|
1921
2117
|
const {
|
|
1922
2118
|
match: match2
|
|
1923
|
-
} =
|
|
2119
|
+
} = props11;
|
|
1924
2120
|
const {
|
|
1925
2121
|
to: to2
|
|
1926
2122
|
} = ctx.attrs;
|
|
@@ -1936,7 +2132,7 @@ var VNavigationItem = defineComponent({
|
|
|
1936
2132
|
});
|
|
1937
2133
|
const classes = computed(() => [{
|
|
1938
2134
|
"v-navigation-item--opened": opened.value,
|
|
1939
|
-
[`v-navigation-item--depth-${
|
|
2135
|
+
[`v-navigation-item--depth-${props11.depth}`]: props11.depth > 0
|
|
1940
2136
|
}]);
|
|
1941
2137
|
const route = useRoute();
|
|
1942
2138
|
watch(() => route.path, (newPath) => {
|
|
@@ -1958,7 +2154,7 @@ var VNavigationItem = defineComponent({
|
|
|
1958
2154
|
const c = children.value;
|
|
1959
2155
|
let {
|
|
1960
2156
|
endIcon
|
|
1961
|
-
} =
|
|
2157
|
+
} = props11;
|
|
1962
2158
|
if (c && !endIcon) {
|
|
1963
2159
|
endIcon = vui.icon("navigationExpand");
|
|
1964
2160
|
if (typeof endIcon === "string") {
|
|
@@ -1972,7 +2168,7 @@ var VNavigationItem = defineComponent({
|
|
|
1972
2168
|
}
|
|
1973
2169
|
}
|
|
1974
2170
|
const __props = {
|
|
1975
|
-
...
|
|
2171
|
+
...props11,
|
|
1976
2172
|
endIcon
|
|
1977
2173
|
};
|
|
1978
2174
|
delete __props.children;
|
|
@@ -2020,11 +2216,11 @@ var VNavigationItem = defineComponent({
|
|
|
2020
2216
|
default: () => [withDirectives(createVNode("div", {
|
|
2021
2217
|
"class": "v-navigation-item__expand"
|
|
2022
2218
|
}, [_children.map((child) => renderNavigationItemInput({
|
|
2023
|
-
color:
|
|
2219
|
+
color: props11.color,
|
|
2024
2220
|
...child
|
|
2025
2221
|
}, {
|
|
2026
2222
|
startIconEmptySpace: _props.value.startIconEmptySpace,
|
|
2027
|
-
depth:
|
|
2223
|
+
depth: props11.nested ? props11.depth + 1 : props11.depth
|
|
2028
2224
|
// onClick,
|
|
2029
2225
|
// onChangeActive,
|
|
2030
2226
|
}))]), [[vShow, opened.value]])]
|
|
@@ -2049,13 +2245,13 @@ function createNavigationProps() {
|
|
|
2049
2245
|
var VNavigation = defineComponent({
|
|
2050
2246
|
name: "VNavigation",
|
|
2051
2247
|
props: createNavigationProps(),
|
|
2052
|
-
setup(
|
|
2053
|
-
const items = computed(() =>
|
|
2054
|
-
const color = useScopeColorClass(
|
|
2248
|
+
setup(props11, ctx) {
|
|
2249
|
+
const items = computed(() => props11.items);
|
|
2250
|
+
const color = useScopeColorClass(props11);
|
|
2055
2251
|
const classes = computed(() => [color.value.className]);
|
|
2056
|
-
const startIconEmptySpace = computed(() =>
|
|
2252
|
+
const startIconEmptySpace = computed(() => props11.startIconEmptySpace);
|
|
2057
2253
|
const caption = computed(() => {
|
|
2058
|
-
const c =
|
|
2254
|
+
const c = props11.caption;
|
|
2059
2255
|
return typeof c === "function" ? c() : c;
|
|
2060
2256
|
});
|
|
2061
2257
|
const itemsRef = ref([]);
|
|
@@ -2128,40 +2324,40 @@ var VControlField = defineComponent({
|
|
|
2128
2324
|
emits: {
|
|
2129
2325
|
click: (ev) => true
|
|
2130
2326
|
},
|
|
2131
|
-
setup(
|
|
2327
|
+
setup(props11, ctx) {
|
|
2132
2328
|
const parentNode = useParentFormNode();
|
|
2133
|
-
const control = useControl(
|
|
2134
|
-
const inputBox = useControlField(
|
|
2329
|
+
const control = useControl(props11);
|
|
2330
|
+
const inputBox = useControlField(props11);
|
|
2135
2331
|
const hostElRef = ref(null);
|
|
2136
2332
|
const disabled = computed(() => !!parentNode && parentNode.isDisabled);
|
|
2137
2333
|
const invalid = computed(() => !!parentNode && parentNode.invalid);
|
|
2138
|
-
const autoHeight = computed(() =>
|
|
2334
|
+
const autoHeight = computed(() => props11.autoHeight);
|
|
2139
2335
|
const readonly = computed(() => !!parentNode && parentNode.isReadonly);
|
|
2140
2336
|
const colorProvider = useVuiColorProvider();
|
|
2141
2337
|
const classes = computed(() => {
|
|
2142
2338
|
const classes2 = ["v-control-field", `v-control-field--${inputBox.variant.value}`, {
|
|
2143
2339
|
"v-control-field--disabled": disabled.value,
|
|
2144
|
-
"v-control-field--invalid": invalid.value ||
|
|
2340
|
+
"v-control-field--invalid": invalid.value || props11.error,
|
|
2145
2341
|
"v-control-field--readonly": readonly.value,
|
|
2146
|
-
"v-control-field--focused":
|
|
2342
|
+
"v-control-field--focused": props11.focused,
|
|
2147
2343
|
"v-control-field--auto-height": autoHeight.value
|
|
2148
|
-
}, control.classes.value, colorProvider.className(
|
|
2344
|
+
}, control.classes.value, colorProvider.className(props11.error ? "error" : invalid.value && !readonly.value ? "error" : "primary")];
|
|
2149
2345
|
return classes2;
|
|
2150
2346
|
});
|
|
2151
2347
|
const resolvedSlots = computed(() => {
|
|
2152
2348
|
const slots13 = {};
|
|
2153
2349
|
ADORNMENT_POSITIONS.forEach((position) => {
|
|
2154
2350
|
const key = `${position}Adornment`;
|
|
2155
|
-
slots13[position] = resolveVNodeChildOrSlots(
|
|
2351
|
+
slots13[position] = resolveVNodeChildOrSlots(props11[key], ctx.slots[key]);
|
|
2156
2352
|
});
|
|
2157
2353
|
return slots13;
|
|
2158
2354
|
});
|
|
2159
2355
|
const renderAdornment = (position) => {
|
|
2160
2356
|
let child;
|
|
2161
|
-
if (position === "end" &&
|
|
2357
|
+
if (position === "end" && props11.loading) {
|
|
2162
2358
|
child = createVNode(loading_exports.VProgressCircular, {
|
|
2163
2359
|
"indeterminate": true,
|
|
2164
|
-
"size": CONTROL_LOADING_SPINNER_SIZES[
|
|
2360
|
+
"size": CONTROL_LOADING_SPINNER_SIZES[props11.size || "md"]
|
|
2165
2361
|
}, null);
|
|
2166
2362
|
} else {
|
|
2167
2363
|
child = resolvedSlots.value[position]?.();
|
|
@@ -2223,12 +2419,12 @@ var VCheckable = defineComponent({
|
|
|
2223
2419
|
// autoWidth: Boolean,
|
|
2224
2420
|
},
|
|
2225
2421
|
slots: slots6,
|
|
2226
|
-
setup(
|
|
2422
|
+
setup(props11, ctx) {
|
|
2227
2423
|
const colorProvider = useVuiColorProvider();
|
|
2228
|
-
const invalid = computed(() =>
|
|
2229
|
-
const disabled = computed(() =>
|
|
2230
|
-
const readonly = computed(() =>
|
|
2231
|
-
const checked = computed(() =>
|
|
2424
|
+
const invalid = computed(() => props11.invalid);
|
|
2425
|
+
const disabled = computed(() => props11.disabled);
|
|
2426
|
+
const readonly = computed(() => props11.readonly);
|
|
2427
|
+
const checked = computed(() => props11.checked);
|
|
2232
2428
|
const classes = computed(() => {
|
|
2233
2429
|
return [{
|
|
2234
2430
|
"v-checkable--invalid": invalid.value,
|
|
@@ -2253,24 +2449,24 @@ var VCheckable = defineComponent({
|
|
|
2253
2449
|
|
|
2254
2450
|
// src/components/VCheckbox/VCheckbox.tsx
|
|
2255
2451
|
var {
|
|
2256
|
-
props:
|
|
2257
|
-
emits:
|
|
2452
|
+
props: props3,
|
|
2453
|
+
emits: emits3
|
|
2258
2454
|
} = createFormSelectorItemSettings();
|
|
2259
2455
|
var VCheckbox = defineComponent({
|
|
2260
2456
|
name: "VCheckbox",
|
|
2261
2457
|
props: {
|
|
2262
|
-
...
|
|
2458
|
+
...props3,
|
|
2263
2459
|
...createControlProps(),
|
|
2264
2460
|
indeterminate: Boolean
|
|
2265
2461
|
},
|
|
2266
|
-
emits:
|
|
2267
|
-
setup(
|
|
2268
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2462
|
+
emits: emits3,
|
|
2463
|
+
setup(props11, ctx) {
|
|
2464
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2269
2465
|
nodeType: VUI_CHECKBOX_SYMBOL,
|
|
2270
2466
|
parentNodeType: VUI_CHECKBOX_GROUP_SYMBOL
|
|
2271
2467
|
});
|
|
2272
|
-
const control = useControl(
|
|
2273
|
-
const isIndeterminate = computed(() =>
|
|
2468
|
+
const control = useControl(props11);
|
|
2469
|
+
const isIndeterminate = computed(() => props11.indeterminate);
|
|
2274
2470
|
return {
|
|
2275
2471
|
...nodeControl.expose(),
|
|
2276
2472
|
...control,
|
|
@@ -2318,22 +2514,22 @@ var VCheckboxGroup = defineFormSelectorComponent({
|
|
|
2318
2514
|
})
|
|
2319
2515
|
});
|
|
2320
2516
|
var {
|
|
2321
|
-
props:
|
|
2322
|
-
emits:
|
|
2517
|
+
props: props4,
|
|
2518
|
+
emits: emits4
|
|
2323
2519
|
} = createFormSelectorItemSettings();
|
|
2324
2520
|
var VRadio = defineComponent({
|
|
2325
2521
|
name: "VRadio",
|
|
2326
2522
|
props: {
|
|
2327
|
-
...
|
|
2523
|
+
...props4,
|
|
2328
2524
|
...createControlProps()
|
|
2329
2525
|
},
|
|
2330
|
-
emits:
|
|
2331
|
-
setup(
|
|
2332
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2526
|
+
emits: emits4,
|
|
2527
|
+
setup(props11, ctx) {
|
|
2528
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2333
2529
|
nodeType: VUI_RADIO_SYMBOL,
|
|
2334
2530
|
parentNodeType: VUI_RADIO_GROUP_SYMBOL
|
|
2335
2531
|
});
|
|
2336
|
-
const control = useControl(
|
|
2532
|
+
const control = useControl(props11);
|
|
2337
2533
|
return {
|
|
2338
2534
|
...nodeControl.expose(),
|
|
2339
2535
|
...control
|
|
@@ -2377,22 +2573,22 @@ var VRadioGroup = defineFormSelectorComponent({
|
|
|
2377
2573
|
})
|
|
2378
2574
|
});
|
|
2379
2575
|
var {
|
|
2380
|
-
props:
|
|
2381
|
-
emits:
|
|
2576
|
+
props: props5,
|
|
2577
|
+
emits: emits5
|
|
2382
2578
|
} = createFormSelectorItemSettings();
|
|
2383
2579
|
var VSwitch = defineComponent({
|
|
2384
2580
|
name: "VSwitch",
|
|
2385
2581
|
props: {
|
|
2386
|
-
...
|
|
2582
|
+
...props5,
|
|
2387
2583
|
...createControlProps()
|
|
2388
2584
|
},
|
|
2389
|
-
emits:
|
|
2390
|
-
setup(
|
|
2391
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2585
|
+
emits: emits5,
|
|
2586
|
+
setup(props11, ctx) {
|
|
2587
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2392
2588
|
nodeType: VUI_SWITCH_SYMBOL,
|
|
2393
2589
|
parentNodeType: VUI_SWITCH_GROUP_SYMBOL
|
|
2394
2590
|
});
|
|
2395
|
-
const control = useControl(
|
|
2591
|
+
const control = useControl(props11);
|
|
2396
2592
|
if (typeof window !== "undefined") {
|
|
2397
2593
|
window.yy = {};
|
|
2398
2594
|
window.yy[String(Date.now())] = nodeControl;
|
|
@@ -2409,8 +2605,7 @@ var VSwitch = defineComponent({
|
|
|
2409
2605
|
return createVNode(VCheckable, {
|
|
2410
2606
|
"class": ["v-switch", {
|
|
2411
2607
|
"v-switch--selected": selectorItemControl.selected,
|
|
2412
|
-
"v-switch--disabled": selectorItemControl.isDisabled
|
|
2413
|
-
xxxxx: selectorItemControl.booted
|
|
2608
|
+
"v-switch--disabled": selectorItemControl.isDisabled
|
|
2414
2609
|
}, this.classes],
|
|
2415
2610
|
"checked": this.selected,
|
|
2416
2611
|
"invalid": this.invalid,
|
|
@@ -2445,22 +2640,22 @@ var VSwitchGroup = defineFormSelectorComponent({
|
|
|
2445
2640
|
})
|
|
2446
2641
|
});
|
|
2447
2642
|
var {
|
|
2448
|
-
props:
|
|
2449
|
-
emits:
|
|
2643
|
+
props: props6,
|
|
2644
|
+
emits: emits6
|
|
2450
2645
|
} = createFormSelectorItemSettings();
|
|
2451
2646
|
var VOption = defineComponent({
|
|
2452
2647
|
name: "VOption",
|
|
2453
2648
|
props: {
|
|
2454
|
-
...
|
|
2649
|
+
...props6,
|
|
2455
2650
|
...createControlProps()
|
|
2456
2651
|
},
|
|
2457
|
-
emits:
|
|
2458
|
-
setup(
|
|
2459
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2652
|
+
emits: emits6,
|
|
2653
|
+
setup(props11, ctx) {
|
|
2654
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2460
2655
|
nodeType: VUI_OPTION_SYMBOL,
|
|
2461
2656
|
parentNodeType: VUI_SELECT_SYMBOL
|
|
2462
2657
|
});
|
|
2463
|
-
const control = useControl(
|
|
2658
|
+
const control = useControl(props11);
|
|
2464
2659
|
const classes = computed(() => {
|
|
2465
2660
|
return ["v-option", {
|
|
2466
2661
|
"v-option--selected": nodeControl.selected,
|
|
@@ -2500,12 +2695,12 @@ var VOptionGroup = defineComponent({
|
|
|
2500
2695
|
...slots7()
|
|
2501
2696
|
},
|
|
2502
2697
|
slots: slots7,
|
|
2503
|
-
setup(
|
|
2504
|
-
const groupControl = useFormSelectorItemGroupControl(
|
|
2698
|
+
setup(props11, ctx) {
|
|
2699
|
+
const groupControl = useFormSelectorItemGroupControl(props11, ctx, {
|
|
2505
2700
|
parentNodeType: VUI_SELECT_SYMBOL
|
|
2506
2701
|
});
|
|
2507
2702
|
const labelSlot = computed(() => {
|
|
2508
|
-
return resolveVNodeChildOrSlots(
|
|
2703
|
+
return resolveVNodeChildOrSlots(props11.label, ctx.slots.label);
|
|
2509
2704
|
});
|
|
2510
2705
|
const classes = computed(() => {
|
|
2511
2706
|
return ["v-option-group", {
|
|
@@ -2539,14 +2734,14 @@ var ARROW_KEY_TYPES = useKeyboard.Key(["ArrowUp", "ArrowDown"]);
|
|
|
2539
2734
|
var CHOICE_KEY_TYPES = useKeyboard.Key(["Enter", " "]);
|
|
2540
2735
|
var KEYBORD_EVENT_TYPES = useKeyboard.Key([...ARROW_KEY_TYPES, ...CHOICE_KEY_TYPES]);
|
|
2541
2736
|
var {
|
|
2542
|
-
props:
|
|
2543
|
-
emits:
|
|
2737
|
+
props: props7,
|
|
2738
|
+
emits: emits7
|
|
2544
2739
|
} = createFormSelectorSettings();
|
|
2545
2740
|
var slots8 = defineSlots();
|
|
2546
2741
|
var VSelect = defineComponent({
|
|
2547
2742
|
name: "VSelect",
|
|
2548
2743
|
props: {
|
|
2549
|
-
...
|
|
2744
|
+
...props7,
|
|
2550
2745
|
...createFormControlProps(),
|
|
2551
2746
|
...createControlFieldProps(),
|
|
2552
2747
|
...createControlFieldProviderProps(),
|
|
@@ -2560,8 +2755,8 @@ var VSelect = defineComponent({
|
|
|
2560
2755
|
closeOnNavigation: Boolean
|
|
2561
2756
|
},
|
|
2562
2757
|
slots: slots8,
|
|
2563
|
-
emits:
|
|
2564
|
-
setup(
|
|
2758
|
+
emits: emits7,
|
|
2759
|
+
setup(props11, ctx) {
|
|
2565
2760
|
const menuRef = ref(null);
|
|
2566
2761
|
const menuOpened = ref(false);
|
|
2567
2762
|
const showMenu = () => {
|
|
@@ -2570,23 +2765,23 @@ var VSelect = defineComponent({
|
|
|
2570
2765
|
const closeMenu = () => {
|
|
2571
2766
|
menuOpened.value = false;
|
|
2572
2767
|
};
|
|
2573
|
-
const inputControl = useFormSelectorControl(
|
|
2768
|
+
const inputControl = useFormSelectorControl(props11, ctx, {
|
|
2574
2769
|
nodeType: VUI_SELECT_SYMBOL,
|
|
2575
2770
|
onSelectItem: (item) => {
|
|
2576
2771
|
closeMenu();
|
|
2577
2772
|
}
|
|
2578
2773
|
});
|
|
2579
|
-
const control = useControl(
|
|
2580
|
-
useControlField(
|
|
2774
|
+
const control = useControl(props11);
|
|
2775
|
+
useControlField(props11);
|
|
2581
2776
|
const vui = useVui();
|
|
2582
2777
|
const iconName = vui.icon("menuDown");
|
|
2583
2778
|
const fieldRef = ref(null);
|
|
2584
2779
|
const loadingMessageRef = computed(() => {
|
|
2585
|
-
const slot = resolveVNodeChildOrSlots(
|
|
2780
|
+
const slot = resolveVNodeChildOrSlots(props11.loadingMessage, vui.setting("loadingMessage"), "Loading...");
|
|
2586
2781
|
return slot && slot(vui);
|
|
2587
2782
|
});
|
|
2588
2783
|
const failedToLoadItemsMessageRef = computed(() => {
|
|
2589
|
-
const slot = resolveVNodeChildOrSlots(
|
|
2784
|
+
const slot = resolveVNodeChildOrSlots(props11.failedToLoadItemsMessage, vui.setting("failedToLoadDataMessage"), "Failed to load data.");
|
|
2590
2785
|
return slot && slot(vui);
|
|
2591
2786
|
});
|
|
2592
2787
|
const focus = (opts) => {
|
|
@@ -2614,28 +2809,28 @@ var VSelect = defineComponent({
|
|
|
2614
2809
|
}) : item.renderDefaultSlot();
|
|
2615
2810
|
children.push(child);
|
|
2616
2811
|
});
|
|
2617
|
-
} else if (
|
|
2812
|
+
} else if (props11.placeholder != null) {
|
|
2618
2813
|
children.push(createVNode("span", {
|
|
2619
2814
|
"class": "v-select__placeholder"
|
|
2620
|
-
}, [
|
|
2815
|
+
}, [props11.placeholder]));
|
|
2621
2816
|
}
|
|
2622
2817
|
return children;
|
|
2623
2818
|
};
|
|
2624
2819
|
const clearKeyFocused = () => {
|
|
2625
|
-
const menu = menuRef.value;
|
|
2820
|
+
const menu = menuRef.value?.menu;
|
|
2626
2821
|
if (!menu)
|
|
2627
2822
|
return;
|
|
2628
|
-
const bodyEl = menu.
|
|
2823
|
+
const bodyEl = menu.bodyRef.value;
|
|
2629
2824
|
if (!bodyEl)
|
|
2630
2825
|
return;
|
|
2631
2826
|
const els = Array.from(bodyEl.querySelectorAll(".v-option"));
|
|
2632
2827
|
els.forEach((el) => el.classList.remove("v-option--key-focused"));
|
|
2633
2828
|
};
|
|
2634
2829
|
const getItemElements = () => {
|
|
2635
|
-
const menu = menuRef.value;
|
|
2830
|
+
const menu = menuRef.value?.menu;
|
|
2636
2831
|
if (!menu)
|
|
2637
2832
|
return;
|
|
2638
|
-
const bodyEl = menu.
|
|
2833
|
+
const bodyEl = menu.bodyRef.value;
|
|
2639
2834
|
if (!bodyEl)
|
|
2640
2835
|
return;
|
|
2641
2836
|
const els = Array.from(bodyEl.querySelectorAll(".v-option")).filter((el) => {
|
|
@@ -2877,13 +3072,13 @@ var VSelect = defineComponent({
|
|
|
2877
3072
|
}
|
|
2878
3073
|
});
|
|
2879
3074
|
var {
|
|
2880
|
-
props:
|
|
2881
|
-
emits:
|
|
3075
|
+
props: props8,
|
|
3076
|
+
emits: emits8
|
|
2882
3077
|
} = createTextInputSettings();
|
|
2883
3078
|
var slots9 = defineSlots();
|
|
2884
3079
|
function createTextFieldProps() {
|
|
2885
3080
|
return {
|
|
2886
|
-
...
|
|
3081
|
+
...props8,
|
|
2887
3082
|
...createFormControlProps(),
|
|
2888
3083
|
...createControlFieldProps(),
|
|
2889
3084
|
...createControlFieldProviderProps(),
|
|
@@ -2894,14 +3089,14 @@ function createTextFieldProps() {
|
|
|
2894
3089
|
var VTextField = defineComponent({
|
|
2895
3090
|
name: "VTextField",
|
|
2896
3091
|
props: createTextFieldProps(),
|
|
2897
|
-
emits:
|
|
3092
|
+
emits: emits8,
|
|
2898
3093
|
slots: slots9,
|
|
2899
|
-
setup(
|
|
2900
|
-
const inputControl = useTextInputControl(
|
|
3094
|
+
setup(props11, ctx) {
|
|
3095
|
+
const inputControl = useTextInputControl(props11, ctx, {
|
|
2901
3096
|
nodeType: VUI_TEXT_FIELD_SYMBOL
|
|
2902
3097
|
});
|
|
2903
|
-
const control = useControl(
|
|
2904
|
-
useControlField(
|
|
3098
|
+
const control = useControl(props11);
|
|
3099
|
+
useControlField(props11);
|
|
2905
3100
|
return {
|
|
2906
3101
|
...inputControl.expose(),
|
|
2907
3102
|
...control
|
|
@@ -2958,7 +3153,7 @@ var VNumberField = defineComponent({
|
|
|
2958
3153
|
"update:modelValue": (value) => true,
|
|
2959
3154
|
change: (value) => true
|
|
2960
3155
|
},
|
|
2961
|
-
setup(
|
|
3156
|
+
setup(props11, ctx) {
|
|
2962
3157
|
const toString = (value) => {
|
|
2963
3158
|
if (value == null)
|
|
2964
3159
|
return "";
|
|
@@ -2976,7 +3171,7 @@ var VNumberField = defineComponent({
|
|
|
2976
3171
|
return () => {
|
|
2977
3172
|
return createVNode(VTextField, mergeProps(ctx.attrs, {
|
|
2978
3173
|
"type": "number",
|
|
2979
|
-
"modelValue": toString(
|
|
3174
|
+
"modelValue": toString(props11.modelValue),
|
|
2980
3175
|
"onUpdate:modelValue": (value) => {
|
|
2981
3176
|
ctx.emit("update:modelValue", toNumber(value));
|
|
2982
3177
|
},
|
|
@@ -2988,29 +3183,29 @@ var VNumberField = defineComponent({
|
|
|
2988
3183
|
}
|
|
2989
3184
|
});
|
|
2990
3185
|
var {
|
|
2991
|
-
props:
|
|
2992
|
-
emits:
|
|
3186
|
+
props: props9,
|
|
3187
|
+
emits: emits9
|
|
2993
3188
|
} = createTextareaSettings();
|
|
2994
3189
|
var slots10 = defineSlots();
|
|
2995
3190
|
var VTextarea = defineComponent({
|
|
2996
3191
|
name: "VTextarea",
|
|
2997
3192
|
props: {
|
|
2998
|
-
...
|
|
3193
|
+
...props9,
|
|
2999
3194
|
...createFormControlProps(),
|
|
3000
3195
|
...createControlFieldProps(),
|
|
3001
3196
|
...createControlFieldProviderProps(),
|
|
3002
3197
|
...createControlProps(),
|
|
3003
3198
|
...slots10()
|
|
3004
3199
|
},
|
|
3005
|
-
emits:
|
|
3006
|
-
setup(
|
|
3200
|
+
emits: emits9,
|
|
3201
|
+
setup(props11, ctx) {
|
|
3007
3202
|
const vui = useVui();
|
|
3008
|
-
const inputControl = useTextareaControl(
|
|
3203
|
+
const inputControl = useTextareaControl(props11, ctx, {
|
|
3009
3204
|
nodeType: VUI_TEXTAREA_SYMBOL,
|
|
3010
3205
|
defaultRows: vui.textareaRows
|
|
3011
3206
|
});
|
|
3012
|
-
const control = useControl(
|
|
3013
|
-
useControlField(
|
|
3207
|
+
const control = useControl(props11);
|
|
3208
|
+
useControlField(props11);
|
|
3014
3209
|
return {
|
|
3015
3210
|
...inputControl.expose(),
|
|
3016
3211
|
...control
|
|
@@ -3055,15 +3250,15 @@ var VTextarea = defineComponent({
|
|
|
3055
3250
|
}
|
|
3056
3251
|
});
|
|
3057
3252
|
var {
|
|
3058
|
-
props:
|
|
3059
|
-
emits:
|
|
3253
|
+
props: props10,
|
|
3254
|
+
emits: emits10
|
|
3060
3255
|
} = createFormSettings({
|
|
3061
3256
|
nodeType: VUI_FORM_SYMBOL
|
|
3062
3257
|
});
|
|
3063
3258
|
var formSlots = defineSlots();
|
|
3064
3259
|
function createVFormProps() {
|
|
3065
3260
|
return {
|
|
3066
|
-
...
|
|
3261
|
+
...props10,
|
|
3067
3262
|
...createControlProps(),
|
|
3068
3263
|
...formSlots()
|
|
3069
3264
|
// disableAutoScroll: Boolean,
|
|
@@ -3072,11 +3267,11 @@ function createVFormProps() {
|
|
|
3072
3267
|
var VForm = defineComponent({
|
|
3073
3268
|
name: "VForm",
|
|
3074
3269
|
props: createVFormProps(),
|
|
3075
|
-
emits:
|
|
3270
|
+
emits: emits10,
|
|
3076
3271
|
slots: formSlots,
|
|
3077
|
-
setup(
|
|
3272
|
+
setup(props11, ctx) {
|
|
3078
3273
|
const vui = useVui();
|
|
3079
|
-
const nodeControl = useForm(
|
|
3274
|
+
const nodeControl = useForm(props11, ctx, {
|
|
3080
3275
|
nodeType: VUI_FORM_SYMBOL,
|
|
3081
3276
|
scrollToElement: (el) => {
|
|
3082
3277
|
const scroller = getDocumentScroller();
|
|
@@ -3092,10 +3287,10 @@ var VForm = defineComponent({
|
|
|
3092
3287
|
"v-form--disabled": nodeControl.isDisabled,
|
|
3093
3288
|
"v-form--validating": nodeControl.validating,
|
|
3094
3289
|
"v-form--pending": nodeControl.pending,
|
|
3095
|
-
"v-form--
|
|
3290
|
+
"v-form--sending": nodeControl.sending
|
|
3096
3291
|
}];
|
|
3097
3292
|
});
|
|
3098
|
-
useControl(
|
|
3293
|
+
useControl(props11);
|
|
3099
3294
|
return {
|
|
3100
3295
|
...nodeControl.expose(),
|
|
3101
3296
|
classes
|
|
@@ -3131,13 +3326,13 @@ var VTab = defineComponent({
|
|
|
3131
3326
|
emits: {
|
|
3132
3327
|
click: (ev) => true
|
|
3133
3328
|
},
|
|
3134
|
-
setup(
|
|
3329
|
+
setup(props11, ctx) {
|
|
3135
3330
|
const classesRef = computed(() => ({
|
|
3136
|
-
"v-tab--active":
|
|
3331
|
+
"v-tab--active": props11.active
|
|
3137
3332
|
}));
|
|
3138
3333
|
const exposeValues = {
|
|
3139
|
-
value:
|
|
3140
|
-
active:
|
|
3334
|
+
value: props11.value,
|
|
3335
|
+
active: props11.active
|
|
3141
3336
|
};
|
|
3142
3337
|
ctx.expose(exposeValues);
|
|
3143
3338
|
return () => {
|
|
@@ -3146,7 +3341,7 @@ var VTab = defineComponent({
|
|
|
3146
3341
|
value,
|
|
3147
3342
|
icon,
|
|
3148
3343
|
active
|
|
3149
|
-
} =
|
|
3344
|
+
} = props11;
|
|
3150
3345
|
const classes = ["v-tab", classesRef.value];
|
|
3151
3346
|
const children = createVNode("span", {
|
|
3152
3347
|
"class": "v-tab__content"
|
|
@@ -3215,7 +3410,7 @@ var VTabs = defineComponent({
|
|
|
3215
3410
|
change: (newValue) => true
|
|
3216
3411
|
},
|
|
3217
3412
|
slots: slots11,
|
|
3218
|
-
setup(
|
|
3413
|
+
setup(props11, ctx) {
|
|
3219
3414
|
const vui = useVui();
|
|
3220
3415
|
const internalValueRef = ref(null);
|
|
3221
3416
|
const scrollerRef = useVScrollerRef();
|
|
@@ -3233,15 +3428,15 @@ var VTabs = defineComponent({
|
|
|
3233
3428
|
}
|
|
3234
3429
|
});
|
|
3235
3430
|
const colorScope = useScopeColorClass({
|
|
3236
|
-
color: () =>
|
|
3431
|
+
color: () => props11.color || vui.setting("tabDefault").color
|
|
3237
3432
|
});
|
|
3238
3433
|
const classes = computed(() => [colorScope.value.className]);
|
|
3239
3434
|
const computedItemsRef = computed(() => {
|
|
3240
3435
|
const current = currentRef.value;
|
|
3241
3436
|
const {
|
|
3242
3437
|
router
|
|
3243
|
-
} =
|
|
3244
|
-
return
|
|
3438
|
+
} = props11;
|
|
3439
|
+
return props11.items.map((item) => {
|
|
3245
3440
|
const {
|
|
3246
3441
|
value
|
|
3247
3442
|
} = item;
|
|
@@ -3266,9 +3461,9 @@ var VTabs = defineComponent({
|
|
|
3266
3461
|
tabRefs.value.push(ref10);
|
|
3267
3462
|
};
|
|
3268
3463
|
function setupInternalValue(routable) {
|
|
3269
|
-
let value =
|
|
3464
|
+
let value = props11.modelValue;
|
|
3270
3465
|
if (value == null || value === "") {
|
|
3271
|
-
const firstItem =
|
|
3466
|
+
const firstItem = props11.items[0];
|
|
3272
3467
|
if (!firstItem)
|
|
3273
3468
|
return;
|
|
3274
3469
|
value = firstItem.value;
|
|
@@ -3278,7 +3473,7 @@ var VTabs = defineComponent({
|
|
|
3278
3473
|
if (routable) {
|
|
3279
3474
|
const {
|
|
3280
3475
|
router
|
|
3281
|
-
} =
|
|
3476
|
+
} = props11;
|
|
3282
3477
|
if (!router)
|
|
3283
3478
|
return;
|
|
3284
3479
|
const hit = computedItemsRef.value.find((item) => item.value === value);
|
|
@@ -3296,7 +3491,7 @@ var VTabs = defineComponent({
|
|
|
3296
3491
|
if (route.fullPath === vui.location.currentRoute.fullPath)
|
|
3297
3492
|
return;
|
|
3298
3493
|
vui.router[to2.replace ? "replace" : "push"](to2);
|
|
3299
|
-
} else if (!
|
|
3494
|
+
} else if (!props11.router && props11.modelValue !== value) {
|
|
3300
3495
|
ctx.emit("update:modelValue", value);
|
|
3301
3496
|
ctx.emit("change", value);
|
|
3302
3497
|
}
|
|
@@ -3311,7 +3506,7 @@ var VTabs = defineComponent({
|
|
|
3311
3506
|
}
|
|
3312
3507
|
const {
|
|
3313
3508
|
onBeforeChange
|
|
3314
|
-
} =
|
|
3509
|
+
} = props11;
|
|
3315
3510
|
if (onBeforeChange) {
|
|
3316
3511
|
let result = onBeforeChange(value, currentRef.value);
|
|
3317
3512
|
if (isPromise(result)) {
|
|
@@ -3348,7 +3543,7 @@ var VTabs = defineComponent({
|
|
|
3348
3543
|
return;
|
|
3349
3544
|
const {
|
|
3350
3545
|
autoScrollOffset
|
|
3351
|
-
} =
|
|
3546
|
+
} = props11;
|
|
3352
3547
|
const tabLeft = $tab.offsetLeft;
|
|
3353
3548
|
const tabWidth = $tab.offsetWidth;
|
|
3354
3549
|
const tabRight = tabLeft + tabWidth;
|
|
@@ -3378,17 +3573,17 @@ var VTabs = defineComponent({
|
|
|
3378
3573
|
});
|
|
3379
3574
|
}
|
|
3380
3575
|
}
|
|
3381
|
-
watch(() =>
|
|
3382
|
-
watch(() =>
|
|
3576
|
+
watch(() => props11.modelValue, () => setupInternalValue(true));
|
|
3577
|
+
watch(() => props11.items, () => setupInternalValue(), {
|
|
3383
3578
|
deep: true
|
|
3384
3579
|
});
|
|
3385
3580
|
watch(() => internalValueRef.value, (newValue) => {
|
|
3386
3581
|
scrollToTab(newValue);
|
|
3387
3582
|
});
|
|
3388
3583
|
vui.location.watchRoute((route) => {
|
|
3389
|
-
if (!
|
|
3584
|
+
if (!props11.router)
|
|
3390
3585
|
return;
|
|
3391
|
-
const path =
|
|
3586
|
+
const path = props11.withQuery ? route.fullPath : route.path;
|
|
3392
3587
|
const hit = computedItemsRef.value.find(({
|
|
3393
3588
|
location
|
|
3394
3589
|
}) => {
|
|
@@ -3472,10 +3667,10 @@ var VBreadcrumbs = defineComponent({
|
|
|
3472
3667
|
},
|
|
3473
3668
|
divider: [String, Function]
|
|
3474
3669
|
},
|
|
3475
|
-
setup(
|
|
3670
|
+
setup(props11, ctx) {
|
|
3476
3671
|
const vui = useVui();
|
|
3477
3672
|
const computedItemsRef = computed(() => {
|
|
3478
|
-
const items =
|
|
3673
|
+
const items = props11.items.map((rawItem) => {
|
|
3479
3674
|
return typeof rawItem === "string" ? {
|
|
3480
3675
|
text: rawItem
|
|
3481
3676
|
} : rawItem;
|
|
@@ -3505,7 +3700,7 @@ var VBreadcrumbs = defineComponent({
|
|
|
3505
3700
|
if (lengthRef.value < 1)
|
|
3506
3701
|
return;
|
|
3507
3702
|
let dividerSlot;
|
|
3508
|
-
const propDivider =
|
|
3703
|
+
const propDivider = props11.divider;
|
|
3509
3704
|
if (propDivider) {
|
|
3510
3705
|
dividerSlot = typeof propDivider === "function" ? propDivider : () => propDivider;
|
|
3511
3706
|
} else {
|
|
@@ -3577,12 +3772,12 @@ var VContentSwitcher = defineComponent({
|
|
|
3577
3772
|
emits: {
|
|
3578
3773
|
"update:modelValue": (modelValue) => true
|
|
3579
3774
|
},
|
|
3580
|
-
setup(
|
|
3775
|
+
setup(props11, ctx) {
|
|
3581
3776
|
const internalValueRef = ref("");
|
|
3582
3777
|
const transitionRef = ref("");
|
|
3583
3778
|
const elRef = ref(null);
|
|
3584
3779
|
const anchorRef = ref(null);
|
|
3585
|
-
const computedOrderRef = computed(() =>
|
|
3780
|
+
const computedOrderRef = computed(() => props11.order.map((row) => {
|
|
3586
3781
|
return typeof row === "string" ? row : row.value;
|
|
3587
3782
|
}));
|
|
3588
3783
|
const currentRef = computed({
|
|
@@ -3597,7 +3792,7 @@ var VContentSwitcher = defineComponent({
|
|
|
3597
3792
|
const autotopSettingsRef = computed(() => {
|
|
3598
3793
|
let {
|
|
3599
3794
|
autotop: settings
|
|
3600
|
-
} =
|
|
3795
|
+
} = props11;
|
|
3601
3796
|
if (settings === true)
|
|
3602
3797
|
settings = {};
|
|
3603
3798
|
if (!settings)
|
|
@@ -3622,7 +3817,7 @@ var VContentSwitcher = defineComponent({
|
|
|
3622
3817
|
}
|
|
3623
3818
|
return el;
|
|
3624
3819
|
}
|
|
3625
|
-
watch(() =>
|
|
3820
|
+
watch(() => props11.modelValue, (value, beforeValue) => {
|
|
3626
3821
|
if (value == null)
|
|
3627
3822
|
return;
|
|
3628
3823
|
internalValueRef.value = value;
|
|
@@ -3644,7 +3839,7 @@ var VContentSwitcher = defineComponent({
|
|
|
3644
3839
|
});
|
|
3645
3840
|
watch(currentRef, () => {
|
|
3646
3841
|
const autotopSettings = autotopSettingsRef.value;
|
|
3647
|
-
if (autotopSettings &&
|
|
3842
|
+
if (autotopSettings && props11.modelValue != null) {
|
|
3648
3843
|
seeTop(autotopSettings);
|
|
3649
3844
|
}
|
|
3650
3845
|
});
|
|
@@ -3803,27 +3998,27 @@ var VDataTable = defineComponent({
|
|
|
3803
3998
|
emits: {
|
|
3804
3999
|
input: (selecteds) => true
|
|
3805
4000
|
},
|
|
3806
|
-
setup(
|
|
4001
|
+
setup(props11, ctx) {
|
|
3807
4002
|
const vui = useVui();
|
|
3808
4003
|
const bootedRef = ref(false);
|
|
3809
4004
|
const footerHeightRef = ref(0);
|
|
3810
|
-
const internalValues = ref(
|
|
4005
|
+
const internalValues = ref(props11.modelValue.slice());
|
|
3811
4006
|
const rowSettings = computed(() => {
|
|
3812
4007
|
const {
|
|
3813
4008
|
rowSettings: rowSettings2
|
|
3814
|
-
} =
|
|
4009
|
+
} = props11;
|
|
3815
4010
|
if (!rowSettings2)
|
|
3816
4011
|
return () => ({});
|
|
3817
4012
|
return typeof rowSettings2 === "function" ? rowSettings2 : () => rowSettings2;
|
|
3818
4013
|
});
|
|
3819
4014
|
const containedVariant = vui.setting("containedVariant");
|
|
3820
|
-
const sortedItemKeysRef = computed(() =>
|
|
3821
|
-
const isEmptyRef = computed(() =>
|
|
4015
|
+
const sortedItemKeysRef = computed(() => props11.items.map((item) => item[props11.itemKey]));
|
|
4016
|
+
const isEmptyRef = computed(() => props11.items.length === 0);
|
|
3822
4017
|
const headersRef = computed(() => {
|
|
3823
4018
|
const {
|
|
3824
4019
|
headers,
|
|
3825
4020
|
selectable
|
|
3826
|
-
} =
|
|
4021
|
+
} = props11;
|
|
3827
4022
|
const ret = [];
|
|
3828
4023
|
if (selectable) {
|
|
3829
4024
|
ret.push({
|
|
@@ -3838,7 +4033,7 @@ var VDataTable = defineComponent({
|
|
|
3838
4033
|
const searchQueryValues = computed(() => {
|
|
3839
4034
|
let {
|
|
3840
4035
|
searchQuery
|
|
3841
|
-
} =
|
|
4036
|
+
} = props11;
|
|
3842
4037
|
if (!searchQuery) {
|
|
3843
4038
|
return [];
|
|
3844
4039
|
}
|
|
@@ -3861,14 +4056,14 @@ var VDataTable = defineComponent({
|
|
|
3861
4056
|
const emptyMessage = computed(() => {
|
|
3862
4057
|
let message;
|
|
3863
4058
|
if (searchQueryValues.value.length) {
|
|
3864
|
-
message =
|
|
4059
|
+
message = props11.noResultsMessage || vui.setting("noResultsMessage") || "No search results found.";
|
|
3865
4060
|
} else {
|
|
3866
|
-
message =
|
|
4061
|
+
message = props11.noDataMessage || vui.setting("noDataMessage") || "No data was available.";
|
|
3867
4062
|
}
|
|
3868
4063
|
return typeof message === "function" ? message(vui) : message;
|
|
3869
4064
|
});
|
|
3870
4065
|
const classesRef = computed(() => [{
|
|
3871
|
-
"v-data-table--fixed-header":
|
|
4066
|
+
"v-data-table--fixed-header": props11.fixedHeader
|
|
3872
4067
|
}]);
|
|
3873
4068
|
const layout = VueAppLayout.use();
|
|
3874
4069
|
const bodyInnerStylesRef = computed(() => {
|
|
@@ -3877,7 +4072,7 @@ var VDataTable = defineComponent({
|
|
|
3877
4072
|
const {
|
|
3878
4073
|
fixedHeader,
|
|
3879
4074
|
maxHeight
|
|
3880
|
-
} =
|
|
4075
|
+
} = props11;
|
|
3881
4076
|
const footerHeight = footerHeightRef.value;
|
|
3882
4077
|
const _maxHeight = maxHeight || (fixedHeader ? "100%" : maxHeight);
|
|
3883
4078
|
if (!_maxHeight) {
|
|
@@ -3887,28 +4082,28 @@ var VDataTable = defineComponent({
|
|
|
3887
4082
|
maxHeight: layout.calicurateViewHeight(_maxHeight, -footerHeight - 100, 200)
|
|
3888
4083
|
};
|
|
3889
4084
|
});
|
|
3890
|
-
const defaultOrderQueryRef = computed(() =>
|
|
4085
|
+
const defaultOrderQueryRef = computed(() => props11.defaultOrder === props11.ascQueryValue ? props11.ascQueryValue : props11.descQueryValue);
|
|
3891
4086
|
const isTransitioningRef = computed(() => {
|
|
3892
|
-
return vui.location.isQueryOnlyTransitioning([
|
|
4087
|
+
return vui.location.isQueryOnlyTransitioning([props11.pageQuery, props11.sortQuery, props11.orderQuery, props11.limitQuery]);
|
|
3893
4088
|
});
|
|
3894
|
-
const pageRef = computed(() => vui.location.getQuery(
|
|
3895
|
-
const needShowHeaderControlRef = computed(() =>
|
|
4089
|
+
const pageRef = computed(() => vui.location.getQuery(props11.pageQuery, Number, 1));
|
|
4090
|
+
const needShowHeaderControlRef = computed(() => props11.items.length > props11.contorolThreshold);
|
|
3896
4091
|
const sortByRef = computed({
|
|
3897
4092
|
get: () => {
|
|
3898
|
-
return vui.location.getQuery(
|
|
4093
|
+
return vui.location.getQuery(props11.sortQuery);
|
|
3899
4094
|
},
|
|
3900
4095
|
set(value) {
|
|
3901
4096
|
vui.location.pushQuery({
|
|
3902
|
-
[
|
|
3903
|
-
[
|
|
4097
|
+
[props11.sortQuery]: value || null,
|
|
4098
|
+
[props11.pageQuery]: 1
|
|
3904
4099
|
});
|
|
3905
4100
|
}
|
|
3906
4101
|
});
|
|
3907
|
-
const ordersRef = computed(() => [
|
|
3908
|
-
const usePaigingRef = computed(() =>
|
|
4102
|
+
const ordersRef = computed(() => [props11.ascQueryValue, props11.descQueryValue]);
|
|
4103
|
+
const usePaigingRef = computed(() => props11.limits.length > 0);
|
|
3909
4104
|
const orderByRef = computed({
|
|
3910
4105
|
get: () => {
|
|
3911
|
-
const value = vui.location.getQuery(
|
|
4106
|
+
const value = vui.location.getQuery(props11.orderQuery);
|
|
3912
4107
|
if (typeof value !== "string" || !ordersRef.value.includes(value)) {
|
|
3913
4108
|
return;
|
|
3914
4109
|
}
|
|
@@ -3916,33 +4111,33 @@ var VDataTable = defineComponent({
|
|
|
3916
4111
|
},
|
|
3917
4112
|
set(value) {
|
|
3918
4113
|
vui.location.pushQuery({
|
|
3919
|
-
[
|
|
3920
|
-
[
|
|
4114
|
+
[props11.orderQuery]: value || null,
|
|
4115
|
+
[props11.pageQuery]: 1
|
|
3921
4116
|
});
|
|
3922
4117
|
}
|
|
3923
4118
|
});
|
|
3924
4119
|
const offsetRef = computed(() => (pageRef.value - 1) * limitRef.value);
|
|
3925
4120
|
const limitRef = computed({
|
|
3926
|
-
get: () => vui.location.getQuery(
|
|
4121
|
+
get: () => vui.location.getQuery(props11.limitQuery, Number, props11.limitDefault),
|
|
3927
4122
|
set: (value) => {
|
|
3928
4123
|
const page = Math.floor(offsetRef.value / value) + 1;
|
|
3929
4124
|
vui.location.pushQuery({
|
|
3930
|
-
[
|
|
3931
|
-
[
|
|
4125
|
+
[props11.limitQuery]: value,
|
|
4126
|
+
[props11.pageQuery]: page
|
|
3932
4127
|
});
|
|
3933
4128
|
}
|
|
3934
4129
|
});
|
|
3935
4130
|
const pageLengthRef = computed(() => {
|
|
3936
4131
|
const {
|
|
3937
4132
|
total
|
|
3938
|
-
} =
|
|
4133
|
+
} = props11;
|
|
3939
4134
|
const _limit = limitRef.value;
|
|
3940
4135
|
if (!total)
|
|
3941
4136
|
return 0;
|
|
3942
4137
|
return Math.ceil(total / _limit);
|
|
3943
4138
|
});
|
|
3944
|
-
const lengthRef = computed(() =>
|
|
3945
|
-
const isASCRef = computed(() => orderByRef.value ===
|
|
4139
|
+
const lengthRef = computed(() => props11.items.length);
|
|
4140
|
+
const isASCRef = computed(() => orderByRef.value === props11.ascQueryValue);
|
|
3946
4141
|
const sortIconRef = computed(() => {
|
|
3947
4142
|
let icon = vui.icon("sort");
|
|
3948
4143
|
if (typeof icon === "string") {
|
|
@@ -3972,21 +4167,21 @@ var VDataTable = defineComponent({
|
|
|
3972
4167
|
return;
|
|
3973
4168
|
const queries = {};
|
|
3974
4169
|
if (sort) {
|
|
3975
|
-
queries[
|
|
4170
|
+
queries[props11.sortQuery] = sort;
|
|
3976
4171
|
}
|
|
3977
4172
|
if (order) {
|
|
3978
|
-
queries[
|
|
4173
|
+
queries[props11.orderQuery] = order;
|
|
3979
4174
|
}
|
|
3980
4175
|
vui.location.pushQuery({
|
|
3981
4176
|
...queries,
|
|
3982
4177
|
...usePaigingRef.value ? {
|
|
3983
|
-
[
|
|
4178
|
+
[props11.pageQuery]: 1
|
|
3984
4179
|
} : void 0
|
|
3985
4180
|
});
|
|
3986
4181
|
}
|
|
3987
4182
|
function toggleOrderBy() {
|
|
3988
4183
|
return setSort({
|
|
3989
|
-
order: orderByRef.value ===
|
|
4184
|
+
order: orderByRef.value === props11.ascQueryValue ? props11.descQueryValue : props11.ascQueryValue
|
|
3990
4185
|
});
|
|
3991
4186
|
}
|
|
3992
4187
|
function isSelected(key) {
|
|
@@ -4052,7 +4247,7 @@ var VDataTable = defineComponent({
|
|
|
4052
4247
|
"class": "v-data-table__pagination",
|
|
4053
4248
|
"dense": true,
|
|
4054
4249
|
"align": "right",
|
|
4055
|
-
"routeQuery":
|
|
4250
|
+
"routeQuery": props11.pageQuery,
|
|
4056
4251
|
"modelValue": pageRef.value,
|
|
4057
4252
|
"length": pageLengthRef.value
|
|
4058
4253
|
}, null);
|
|
@@ -4060,7 +4255,7 @@ var VDataTable = defineComponent({
|
|
|
4060
4255
|
function genControls() {
|
|
4061
4256
|
const {
|
|
4062
4257
|
total
|
|
4063
|
-
} =
|
|
4258
|
+
} = props11;
|
|
4064
4259
|
const offset = offsetRef.value;
|
|
4065
4260
|
const length = lengthRef.value;
|
|
4066
4261
|
return createVNode("div", {
|
|
@@ -4078,7 +4273,7 @@ var VDataTable = defineComponent({
|
|
|
4078
4273
|
"size": "sm",
|
|
4079
4274
|
"hiddenInfo": true,
|
|
4080
4275
|
"disabled": isTransitioningRef.value,
|
|
4081
|
-
"items":
|
|
4276
|
+
"items": props11.limits.map((limit) => {
|
|
4082
4277
|
return {
|
|
4083
4278
|
label: `${limit}\u4EF6`,
|
|
4084
4279
|
value: limit
|
|
@@ -4097,7 +4292,7 @@ var VDataTable = defineComponent({
|
|
|
4097
4292
|
const {
|
|
4098
4293
|
defaultOrder,
|
|
4099
4294
|
ascQueryValue
|
|
4100
|
-
} =
|
|
4295
|
+
} = props11;
|
|
4101
4296
|
const children = headersRef.value.map((header) => {
|
|
4102
4297
|
const {
|
|
4103
4298
|
label,
|
|
@@ -4246,7 +4441,7 @@ var VDataTable = defineComponent({
|
|
|
4246
4441
|
const {
|
|
4247
4442
|
items,
|
|
4248
4443
|
itemKey
|
|
4249
|
-
} =
|
|
4444
|
+
} = props11;
|
|
4250
4445
|
const {
|
|
4251
4446
|
item: itemSlot = defaultItemSlot
|
|
4252
4447
|
} = ctx.slots;
|
|
@@ -4263,10 +4458,10 @@ var VDataTable = defineComponent({
|
|
|
4263
4458
|
"class": "v-data-table__table__body"
|
|
4264
4459
|
}, [children]);
|
|
4265
4460
|
}
|
|
4266
|
-
watch(() =>
|
|
4461
|
+
watch(() => props11.modelValue, (modelValue) => {
|
|
4267
4462
|
internalValues.value = modelValue.slice();
|
|
4268
4463
|
});
|
|
4269
|
-
watch(() =>
|
|
4464
|
+
watch(() => props11.items, (items) => {
|
|
4270
4465
|
internalValues.value = internalValues.value.filter((key) => {
|
|
4271
4466
|
return sortedItemKeysRef.value.includes(key);
|
|
4272
4467
|
});
|
|
@@ -4314,7 +4509,7 @@ var VDataTable = defineComponent({
|
|
|
4314
4509
|
});
|
|
4315
4510
|
var VApp = defineComponent({
|
|
4316
4511
|
name: "VApp",
|
|
4317
|
-
setup(
|
|
4512
|
+
setup(props11, ctx) {
|
|
4318
4513
|
useInjectTheme();
|
|
4319
4514
|
return () => {
|
|
4320
4515
|
return createVNode(VStackRoot, null, {
|
|
@@ -4330,15 +4525,15 @@ var VToolbar = defineComponent({
|
|
|
4330
4525
|
...colorSchemeProps(),
|
|
4331
4526
|
dense: Boolean
|
|
4332
4527
|
},
|
|
4333
|
-
setup(
|
|
4528
|
+
setup(props11, ctx) {
|
|
4334
4529
|
const vui = useVui();
|
|
4335
|
-
const elevation = useElevation(
|
|
4530
|
+
const elevation = useElevation(props11, {
|
|
4336
4531
|
defaultValue: 4
|
|
4337
4532
|
});
|
|
4338
|
-
const dense = computed(() =>
|
|
4533
|
+
const dense = computed(() => props11.dense);
|
|
4339
4534
|
const color = useColorClasses({
|
|
4340
|
-
color: () =>
|
|
4341
|
-
variant: () =>
|
|
4535
|
+
color: () => props11.color,
|
|
4536
|
+
variant: () => props11.variant || vui.setting("containedVariant")
|
|
4342
4537
|
});
|
|
4343
4538
|
const classes = computed(() => {
|
|
4344
4539
|
return [elevation.elevationClassName.value, color.colorClasses.value, {
|
|
@@ -4357,11 +4552,11 @@ var VToolbarMenu = defineComponent({
|
|
|
4357
4552
|
name: "VToolbarMenu",
|
|
4358
4553
|
inheritAttrs: false,
|
|
4359
4554
|
props: {},
|
|
4360
|
-
setup(
|
|
4555
|
+
setup(props11, ctx) {
|
|
4361
4556
|
const vui = useVui();
|
|
4362
4557
|
const plain = vui.setting("plainVariant");
|
|
4363
4558
|
return () => {
|
|
4364
|
-
const variant =
|
|
4559
|
+
const variant = props11.variant || plain;
|
|
4365
4560
|
return createVNode(VButton, mergeProps(ctx.attrs, {
|
|
4366
4561
|
"variant": variant,
|
|
4367
4562
|
"class": ["v-toolbar-menu"]
|
|
@@ -4379,8 +4574,8 @@ var VToolbarEdge = defineComponent({
|
|
|
4379
4574
|
required: true
|
|
4380
4575
|
}
|
|
4381
4576
|
},
|
|
4382
|
-
setup(
|
|
4383
|
-
const edge = computed(() =>
|
|
4577
|
+
setup(props11, ctx) {
|
|
4578
|
+
const edge = computed(() => props11.edge);
|
|
4384
4579
|
return () => {
|
|
4385
4580
|
const children = renderSlotOrEmpty(ctx.slots, "default");
|
|
4386
4581
|
const hasChildren = !!children && children.length > 0;
|
|
@@ -4403,8 +4598,8 @@ var VToolbarTitle = defineComponent({
|
|
|
4403
4598
|
...slots12()
|
|
4404
4599
|
},
|
|
4405
4600
|
slots: slots12,
|
|
4406
|
-
setup(
|
|
4407
|
-
const _TagName = computed(() =>
|
|
4601
|
+
setup(props11, ctx) {
|
|
4602
|
+
const _TagName = computed(() => props11.tag);
|
|
4408
4603
|
return () => {
|
|
4409
4604
|
const TagName = _TagName.value;
|
|
4410
4605
|
return createVNode(TagName, {
|
|
@@ -4486,8 +4681,52 @@ var VuiService = class {
|
|
|
4486
4681
|
this.location = new LocationService({
|
|
4487
4682
|
router: this.router
|
|
4488
4683
|
});
|
|
4489
|
-
this.stack = stackService;
|
|
4490
4684
|
this.useLink = options.useLink || useLink;
|
|
4685
|
+
this.stack = stackService;
|
|
4686
|
+
const {
|
|
4687
|
+
uiSettings
|
|
4688
|
+
} = options;
|
|
4689
|
+
this.stackActions = {
|
|
4690
|
+
ok: ({
|
|
4691
|
+
bindings
|
|
4692
|
+
}) => createVNode(VButton, mergeProps(uiSettings.dialogOk, bindings), {
|
|
4693
|
+
default: () => [createTextVNode("OK")]
|
|
4694
|
+
}),
|
|
4695
|
+
cancel: ({
|
|
4696
|
+
bindings
|
|
4697
|
+
}) => createVNode(VButton, mergeProps(uiSettings.dialogCancel, bindings), {
|
|
4698
|
+
default: () => [createTextVNode("CANCEL")]
|
|
4699
|
+
}),
|
|
4700
|
+
close: ({
|
|
4701
|
+
bindings
|
|
4702
|
+
}) => createVNode(VButton, mergeProps(uiSettings.dialogClose, bindings), {
|
|
4703
|
+
default: () => [createTextVNode("CLOSE")]
|
|
4704
|
+
})
|
|
4705
|
+
};
|
|
4706
|
+
this.dialog = stackService.createLauncher(VDialog);
|
|
4707
|
+
this.alert = stackService.createLauncher(VDialog, (props11) => {
|
|
4708
|
+
const actions = [...props11?.actions || []];
|
|
4709
|
+
if (!actions.length) {
|
|
4710
|
+
actions.push(this.stackAction("ok"));
|
|
4711
|
+
}
|
|
4712
|
+
return {
|
|
4713
|
+
...props11,
|
|
4714
|
+
actions
|
|
4715
|
+
};
|
|
4716
|
+
});
|
|
4717
|
+
this.confirm = stackService.createLauncher(VDialog, (props11) => {
|
|
4718
|
+
const actions = [...props11?.actions || []];
|
|
4719
|
+
if (!actions.length) {
|
|
4720
|
+
actions.push(this.stackAction("cancel"), this.stackAction("ok"));
|
|
4721
|
+
}
|
|
4722
|
+
return {
|
|
4723
|
+
...props11,
|
|
4724
|
+
actions
|
|
4725
|
+
};
|
|
4726
|
+
});
|
|
4727
|
+
this.snackbar = stackService.createLauncher(VSnackbar);
|
|
4728
|
+
this.menu = stackService.createLauncher(VMenu);
|
|
4729
|
+
this.sheet = stackService.createLauncher(VSheetModal);
|
|
4491
4730
|
}
|
|
4492
4731
|
configure(options) {
|
|
4493
4732
|
options && Object.assign(this.options, options);
|
|
@@ -4517,21 +4756,6 @@ var VuiService = class {
|
|
|
4517
4756
|
} = this;
|
|
4518
4757
|
return requiredChip && requiredChip();
|
|
4519
4758
|
}
|
|
4520
|
-
dialog(...args) {
|
|
4521
|
-
return this.stack.dialog(...args);
|
|
4522
|
-
}
|
|
4523
|
-
alert(...args) {
|
|
4524
|
-
return this.stack.alert(...args);
|
|
4525
|
-
}
|
|
4526
|
-
confirm(...args) {
|
|
4527
|
-
return this.stack.confirm(...args);
|
|
4528
|
-
}
|
|
4529
|
-
snackbar(...args) {
|
|
4530
|
-
return this.stack.snackbar(...args);
|
|
4531
|
-
}
|
|
4532
|
-
menu(...args) {
|
|
4533
|
-
return this.stack.menu(...args);
|
|
4534
|
-
}
|
|
4535
4759
|
formPrompt(settings, slot) {
|
|
4536
4760
|
let form;
|
|
4537
4761
|
const options = {
|
|
@@ -4543,9 +4767,9 @@ var VuiService = class {
|
|
|
4543
4767
|
state
|
|
4544
4768
|
} = options;
|
|
4545
4769
|
const _state = reactive(state);
|
|
4546
|
-
options.actions = options.actions || [this.
|
|
4770
|
+
options.actions = options.actions || [this.stackAction("cancel", void 0, {
|
|
4547
4771
|
size
|
|
4548
|
-
}), this.
|
|
4772
|
+
}), this.stackAction("ok", void 0, {
|
|
4549
4773
|
size,
|
|
4550
4774
|
onClick: () => {
|
|
4551
4775
|
if (form) {
|
|
@@ -4554,30 +4778,26 @@ var VuiService = class {
|
|
|
4554
4778
|
}
|
|
4555
4779
|
}
|
|
4556
4780
|
})];
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
form
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
}
|
|
4577
|
-
});
|
|
4578
|
-
}
|
|
4781
|
+
return this.dialog(options, (stack) => {
|
|
4782
|
+
return createVNode(VForm, {
|
|
4783
|
+
"disableAutoScroll": true,
|
|
4784
|
+
"size": size,
|
|
4785
|
+
"onVnodeBeforeUnmount": () => {
|
|
4786
|
+
form = void 0;
|
|
4787
|
+
},
|
|
4788
|
+
"onSubmit": (ev) => {
|
|
4789
|
+
stack.resolve(_state);
|
|
4790
|
+
}
|
|
4791
|
+
}, {
|
|
4792
|
+
default: (_form) => {
|
|
4793
|
+
form = _form;
|
|
4794
|
+
return slot(_state, {
|
|
4795
|
+
form,
|
|
4796
|
+
stack
|
|
4797
|
+
});
|
|
4798
|
+
}
|
|
4799
|
+
});
|
|
4579
4800
|
});
|
|
4580
|
-
return this.dialog(resolved);
|
|
4581
4801
|
}
|
|
4582
4802
|
prompt(rawOptions = {}) {
|
|
4583
4803
|
const options = typeof rawOptions === "string" ? {
|
|
@@ -4611,6 +4831,30 @@ var VuiService = class {
|
|
|
4611
4831
|
return result ? result.input : result;
|
|
4612
4832
|
});
|
|
4613
4833
|
}
|
|
4834
|
+
stackAction(key, override, attrs) {
|
|
4835
|
+
const factory = this.stackActions[key];
|
|
4836
|
+
const _onClick = BUILTIN_ACTION_HANDLERS[key];
|
|
4837
|
+
const action = {
|
|
4838
|
+
key,
|
|
4839
|
+
content: ({
|
|
4840
|
+
control,
|
|
4841
|
+
key: key2
|
|
4842
|
+
}) => {
|
|
4843
|
+
const onClick = (ev) => _onClick(control, ev);
|
|
4844
|
+
return factory({
|
|
4845
|
+
service: this.stack,
|
|
4846
|
+
control,
|
|
4847
|
+
key: key2,
|
|
4848
|
+
bindings: {
|
|
4849
|
+
onClick,
|
|
4850
|
+
...attrs
|
|
4851
|
+
}
|
|
4852
|
+
});
|
|
4853
|
+
},
|
|
4854
|
+
...override
|
|
4855
|
+
};
|
|
4856
|
+
return action;
|
|
4857
|
+
}
|
|
4614
4858
|
};
|
|
4615
4859
|
function mergeVuiPluginOptions(base, override) {
|
|
4616
4860
|
if (!override)
|
|
@@ -4628,32 +4872,11 @@ var VuiPlugin = class {
|
|
|
4628
4872
|
static install(app, opts) {
|
|
4629
4873
|
const {
|
|
4630
4874
|
colorScheme,
|
|
4631
|
-
stack
|
|
4632
|
-
uiSettings
|
|
4875
|
+
stack
|
|
4633
4876
|
} = opts;
|
|
4634
4877
|
const vueColorSchemePlugin = new VueColorSchemePlugin(colorScheme);
|
|
4635
4878
|
app.use(vueColorSchemePlugin);
|
|
4636
|
-
installVueStackPlugin(app,
|
|
4637
|
-
actions: {
|
|
4638
|
-
ok: ({
|
|
4639
|
-
bindings
|
|
4640
|
-
}) => createVNode(VButton, mergeProps(uiSettings.dialogOk, bindings), {
|
|
4641
|
-
default: () => [createTextVNode("OK")]
|
|
4642
|
-
}),
|
|
4643
|
-
cancel: ({
|
|
4644
|
-
bindings
|
|
4645
|
-
}) => createVNode(VButton, mergeProps(uiSettings.dialogCancel, bindings), {
|
|
4646
|
-
default: () => [createTextVNode("CANCEL")]
|
|
4647
|
-
}),
|
|
4648
|
-
close: ({
|
|
4649
|
-
bindings
|
|
4650
|
-
}) => createVNode(VButton, mergeProps(uiSettings.dialogClose, bindings), {
|
|
4651
|
-
default: () => [createTextVNode("CLOSE")]
|
|
4652
|
-
}),
|
|
4653
|
-
...stack ? stack.actions : {}
|
|
4654
|
-
},
|
|
4655
|
-
...stack
|
|
4656
|
-
});
|
|
4879
|
+
installVueStackPlugin(app, stack);
|
|
4657
4880
|
installVueAppLayout(app);
|
|
4658
4881
|
installBodyScrollLockDirective(app);
|
|
4659
4882
|
installClickOutsideDirective(app);
|
|
@@ -4670,6 +4893,6 @@ function installVuiPlugin(app, opts) {
|
|
|
4670
4893
|
return app.use(VuiPlugin, opts);
|
|
4671
4894
|
}
|
|
4672
4895
|
|
|
4673
|
-
export { ARROW_KEY_TYPES, AVATAR_SIZES, BUTTON_ALIGNS, CHIP_SIZES, CHOICE_KEY_TYPES, CONTROL_FIELD_VARIANTS, CONTROL_LOADING_SPINNER_SIZES, CONTROL_SIZES, KEYBORD_EVENT_TYPES, PAGINATION_ALIGNS, VApp, VAvatar, VBreadcrumbs, VBusyImage, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VChip, VContentSwitcher, VControlField, VDataTable, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VNavigation, VNavigationItem, VNumberField, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSkeltonLoaderBone, VSwitch, VSwitchGroup, VTabs, VTextCounter, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarMenu, VToolbarTitle, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiInjectionKey, VuiPlugin, VuiService, configureDataTableDefaults, createAvatarProps, createCardProps, createChipProps, createControlFieldProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createNavigationProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, createVFormProps, defineFormSelectorComponent, formSlots, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, paperBaseSlots, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, splitAttrs, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
|
|
4896
|
+
export { ARROW_KEY_TYPES, AVATAR_SIZES, BUTTON_ALIGNS, CHIP_SIZES, CHOICE_KEY_TYPES, CONTROL_FIELD_VARIANTS, CONTROL_LOADING_SPINNER_SIZES, CONTROL_SIZES, KEYBORD_EVENT_TYPES, PAGINATION_ALIGNS, VApp, VAvatar, VBreadcrumbs, VBusyImage, VButton, VButtonGroup, VCard, VCardActions, VCardContent, VCheckbox, VCheckboxGroup, VChip, VContentSwitcher, VControlField, VDataTable, VDialog, VDrawerLayout, VForm, VFormControl, VGridContainer, VGridItem, VHero, VIcon, VListTile, VMenu, VNavigation, VNavigationItem, VNumberField, VOption, VOptionGroup, VPagination, VPaper, VRadio, VRadioGroup, VSelect, VSheetModal, VSkeltonLoaderBone, VSnackbar, VSwitch, VSwitchGroup, VTabs, VTextCounter, VTextField, VTextarea, VToolbar, VToolbarEdge, VToolbarMenu, VToolbarTitle, VTooltip, VUI_CHECKBOX_GROUP_SYMBOL, VUI_CHECKBOX_SYMBOL, VUI_FORM_SYMBOL, VUI_OPTION_SYMBOL, VUI_RADIO_GROUP_SYMBOL, VUI_RADIO_SYMBOL, VUI_SELECT_SYMBOL, VUI_SWITCH_GROUP_SYMBOL, VUI_SWITCH_SYMBOL, VUI_TEXTAREA_SYMBOL, VUI_TEXT_FIELD_SYMBOL, VuiColorProviderInjectionKey, VuiControlFieldInjectionKey, VuiControlInjectionKey, VuiInjectionKey, VuiPlugin, VuiService, configureDataTableDefaults, createAvatarProps, createCardProps, createChipProps, createControlFieldProps, createControlFieldProviderProps, createControlProps, createElevationProps, createListTileProps, createNavigationItemProps, createNavigationProps, createPaperBaseProps, createPaperProps, createRequiredChipRenderer, createVFormProps, defineFormSelectorComponent, formSlots, iconProps, installVuiPlugin, listTileEmits, mergeVuiPluginOptions, mergeVuiServiceIconSettings, mergeVuiServiceOptions, mergeVuiServiceUISettings, paginationProps, paperBaseSlots, rawIconProp, renderNavigationItemInput, resolveNavigationItemInput, resolveRawIconProp, sheetModalProps, splitAttrs, useControl, useControlField, useElevation, useVui, useVuiColorProvider, vueButtonProps };
|
|
4674
4897
|
//# sourceMappingURL=out.js.map
|
|
4675
4898
|
//# sourceMappingURL=vui.mjs.map
|