@fastkit/vui 0.15.0 → 0.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vui.css +134 -2
- package/dist/vui.d.ts +1340 -145
- package/dist/vui.mjs +598 -385
- package/dist/vui.mjs.map +1 -1
- package/package.json +4 -4
- package/src/components/VApp/VApp.tsx +3 -3
- package/src/components/VAvatar/VAvatar.scss +0 -1
- package/src/components/VControlField/VControlField.tsx +13 -25
- 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/VFormControl/VFormControl.tsx +4 -6
- 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 +8 -8
- 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 +18 -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, VStackContainer, 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,9 @@ 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);
|
|
468
|
+
const handleClick = (ev) => ctx.emit("clickLabel", ev, control);
|
|
413
469
|
return () => {
|
|
414
470
|
const label = control.renderLabel();
|
|
415
471
|
const message = control.renderMessage();
|
|
@@ -420,9 +476,7 @@ var VFormControl = defineComponent({
|
|
|
420
476
|
"class": ["v-form-control", classes.value]
|
|
421
477
|
}, [label && createVNode("label", {
|
|
422
478
|
"class": "v-form-control__label",
|
|
423
|
-
"onClick":
|
|
424
|
-
ctx.emit("clickLabel", ev, control);
|
|
425
|
-
}
|
|
479
|
+
"onClick": handleClick
|
|
426
480
|
}, [label, getRequiredChip(), hinttip && createVNode(VTooltip, {
|
|
427
481
|
"y": "top",
|
|
428
482
|
"openOnHover": _hinttipDelay !== "click",
|
|
@@ -437,7 +491,7 @@ var VFormControl = defineComponent({
|
|
|
437
491
|
}, ctx2.attrs), [hinttip.tip])
|
|
438
492
|
})]), createVNode("div", {
|
|
439
493
|
"class": "v-form-control__body"
|
|
440
|
-
}, [ctx.slots.default?.(control), !
|
|
494
|
+
}, [ctx.slots.default?.(control), !props11.hiddenInfo && createVNode("div", {
|
|
441
495
|
"class": "v-form-control__info"
|
|
442
496
|
}, [!!message && createVNode("div", {
|
|
443
497
|
"class": "v-form-control__message"
|
|
@@ -462,15 +516,15 @@ function defineFormSelectorComponent(opts) {
|
|
|
462
516
|
className
|
|
463
517
|
} = opts;
|
|
464
518
|
const {
|
|
465
|
-
props:
|
|
466
|
-
emits:
|
|
519
|
+
props: props11,
|
|
520
|
+
emits: emits11
|
|
467
521
|
} = createFormSelectorSettings({
|
|
468
522
|
defaultMultiple
|
|
469
523
|
});
|
|
470
524
|
return defineComponent({
|
|
471
525
|
name: opts.name,
|
|
472
526
|
props: {
|
|
473
|
-
...
|
|
527
|
+
...props11,
|
|
474
528
|
...createFormControlProps(),
|
|
475
529
|
...createControlProps(),
|
|
476
530
|
stacked: {
|
|
@@ -484,20 +538,20 @@ function defineFormSelectorComponent(opts) {
|
|
|
484
538
|
...slots2()
|
|
485
539
|
},
|
|
486
540
|
slots: slots2,
|
|
487
|
-
emits:
|
|
488
|
-
setup(
|
|
489
|
-
const selectorControl = useFormSelectorControl(
|
|
541
|
+
emits: emits11,
|
|
542
|
+
setup(props12, ctx) {
|
|
543
|
+
const selectorControl = useFormSelectorControl(props12, ctx, {
|
|
490
544
|
nodeType,
|
|
491
545
|
defaultMultiple
|
|
492
546
|
});
|
|
493
|
-
const control = useControl(
|
|
547
|
+
const control = useControl(props12);
|
|
494
548
|
const vui = useVui();
|
|
495
549
|
const loadingMessageRef = computed(() => {
|
|
496
|
-
const slot = resolveVNodeChildOrSlots(
|
|
550
|
+
const slot = resolveVNodeChildOrSlots(props12.loadingMessage, vui.setting("loadingMessage"), "Loading...");
|
|
497
551
|
return slot && slot(vui);
|
|
498
552
|
});
|
|
499
553
|
const failedToLoadItemsMessageRef = computed(() => {
|
|
500
|
-
const slot = resolveVNodeChildOrSlots(
|
|
554
|
+
const slot = resolveVNodeChildOrSlots(props12.failedToLoadItemsMessage, vui.setting("failedToLoadDataMessage"), "Failed to load data.");
|
|
501
555
|
return slot && slot(vui);
|
|
502
556
|
});
|
|
503
557
|
return {
|
|
@@ -567,9 +621,9 @@ function createElevationProps() {
|
|
|
567
621
|
elevation: Number
|
|
568
622
|
});
|
|
569
623
|
}
|
|
570
|
-
function useElevation(
|
|
624
|
+
function useElevation(props11, opts = {}) {
|
|
571
625
|
const elevationValue = computed(
|
|
572
|
-
() =>
|
|
626
|
+
() => props11.elevation == null ? opts.defaultValue : props11.elevation
|
|
573
627
|
);
|
|
574
628
|
const elevationClassName = computed(() => {
|
|
575
629
|
const v = elevationValue.value;
|
|
@@ -627,6 +681,7 @@ __export(components_exports, {
|
|
|
627
681
|
VRadio: () => VRadio,
|
|
628
682
|
VRadioGroup: () => VRadioGroup,
|
|
629
683
|
VSelect: () => VSelect,
|
|
684
|
+
VSheetModal: () => VSheetModal,
|
|
630
685
|
VSkeltonLoaderBone: () => VSkeltonLoaderBone,
|
|
631
686
|
VSnackbar: () => VSnackbar,
|
|
632
687
|
VSwitch: () => VSwitch,
|
|
@@ -661,10 +716,150 @@ __export(components_exports, {
|
|
|
661
716
|
renderNavigationItemInput: () => renderNavigationItemInput,
|
|
662
717
|
resolveNavigationItemInput: () => resolveNavigationItemInput,
|
|
663
718
|
resolveRawIconProp: () => resolveRawIconProp,
|
|
719
|
+
sheetModalProps: () => sheetModalProps,
|
|
664
720
|
splitAttrs: () => splitAttrs,
|
|
665
721
|
vueButtonProps: () => vueButtonProps
|
|
666
722
|
});
|
|
667
723
|
__reExport(components_exports, loading_exports);
|
|
724
|
+
var colorProps2 = colorSchemeProps();
|
|
725
|
+
var VDialog = defineDialogComponent({
|
|
726
|
+
name: "VDialog",
|
|
727
|
+
props: {
|
|
728
|
+
...createStackActionProps(),
|
|
729
|
+
...colorProps2,
|
|
730
|
+
dense: Boolean
|
|
731
|
+
},
|
|
732
|
+
setup(ctx) {
|
|
733
|
+
const {
|
|
734
|
+
props: props11,
|
|
735
|
+
control
|
|
736
|
+
} = ctx;
|
|
737
|
+
const vui = useVui();
|
|
738
|
+
const actionControl = useStackAction(props11, control, {
|
|
739
|
+
resolver: (actions) => {
|
|
740
|
+
if (actions.length === 0) {
|
|
741
|
+
return [vui.stackAction("close")];
|
|
742
|
+
} else {
|
|
743
|
+
return actions;
|
|
744
|
+
}
|
|
745
|
+
}
|
|
746
|
+
});
|
|
747
|
+
const color = useColorClasses(props11, {
|
|
748
|
+
useRootThemeDefault: true
|
|
749
|
+
});
|
|
750
|
+
return (children) => {
|
|
751
|
+
const {
|
|
752
|
+
$actions
|
|
753
|
+
} = actionControl;
|
|
754
|
+
return createVNode("div", {
|
|
755
|
+
"class": ["v-dialog", color.colorClasses.value, props11.dense && "v-dialog--dense"]
|
|
756
|
+
}, [createVNode("div", {
|
|
757
|
+
"class": "v-dialog__body"
|
|
758
|
+
}, [children]), $actions.length > 0 && createVNode("div", {
|
|
759
|
+
"class": "v-dialog__actions"
|
|
760
|
+
}, [$actions])]);
|
|
761
|
+
};
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
var colorProps3 = colorSchemeProps();
|
|
765
|
+
var VSnackbar = defineSnackbarComponent({
|
|
766
|
+
name: "VSnackbar",
|
|
767
|
+
props: {
|
|
768
|
+
...createStackActionProps(),
|
|
769
|
+
...colorProps3
|
|
770
|
+
},
|
|
771
|
+
setup(ctx) {
|
|
772
|
+
const {
|
|
773
|
+
props: props11,
|
|
774
|
+
control
|
|
775
|
+
} = ctx;
|
|
776
|
+
const vui = useVui();
|
|
777
|
+
const actionControl = useStackAction(props11, control, {
|
|
778
|
+
resolver: (actions) => {
|
|
779
|
+
if (actions.length === 0) {
|
|
780
|
+
return [vui.stackAction("close")];
|
|
781
|
+
} else {
|
|
782
|
+
return actions;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
});
|
|
786
|
+
const color = useColorClasses(props11, {
|
|
787
|
+
useRootThemeDefault: true
|
|
788
|
+
});
|
|
789
|
+
return (children) => {
|
|
790
|
+
const {
|
|
791
|
+
$actions
|
|
792
|
+
} = actionControl;
|
|
793
|
+
return createVNode("div", mergeProps({
|
|
794
|
+
"class": ["v-snackbar", color.colorClasses.value]
|
|
795
|
+
}, ctx.attrs), [createVNode("div", {
|
|
796
|
+
"class": "v-snackbar__inner"
|
|
797
|
+
}, [createVNode("div", {
|
|
798
|
+
"class": "v-snackbar__body"
|
|
799
|
+
}, [children]), $actions.length > 0 && createVNode("div", {
|
|
800
|
+
"class": "v-snackbar__actions"
|
|
801
|
+
}, [$actions])])]);
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
});
|
|
805
|
+
var {
|
|
806
|
+
props: props2,
|
|
807
|
+
emits: emits2
|
|
808
|
+
} = createStackableDefine({
|
|
809
|
+
defaultTransition: "v-sheet-modal",
|
|
810
|
+
defaultFocusTrap: true,
|
|
811
|
+
defaultFocusRestorable: true,
|
|
812
|
+
defaultScrollLock: true
|
|
813
|
+
});
|
|
814
|
+
var sheetModalProps = {
|
|
815
|
+
...props2,
|
|
816
|
+
header: Function,
|
|
817
|
+
"v-slots": void 0
|
|
818
|
+
};
|
|
819
|
+
var SHEET_STACK_TYPE = Symbol("VSheetModal");
|
|
820
|
+
var VSheetModal = defineComponent({
|
|
821
|
+
name: "VSheetModal",
|
|
822
|
+
inheritAttrs: false,
|
|
823
|
+
props: sheetModalProps,
|
|
824
|
+
emits: emits2,
|
|
825
|
+
setup(props11, ctx) {
|
|
826
|
+
const stackControl = useStackControl(props11, ctx, {
|
|
827
|
+
stackType: SHEET_STACK_TYPE
|
|
828
|
+
});
|
|
829
|
+
const hasActiveChild = computed(() => {
|
|
830
|
+
const myIndex = stackControl.zIndex;
|
|
831
|
+
const stacks = stackControl.$service.getActiveStacks().filter((stack) => stack.stackType === SHEET_STACK_TYPE);
|
|
832
|
+
return stacks.some((stack) => stack.zIndex > myIndex);
|
|
833
|
+
});
|
|
834
|
+
return {
|
|
835
|
+
stackControl,
|
|
836
|
+
hasActiveChild
|
|
837
|
+
};
|
|
838
|
+
},
|
|
839
|
+
render() {
|
|
840
|
+
const {
|
|
841
|
+
render
|
|
842
|
+
// color,
|
|
843
|
+
} = this.stackControl;
|
|
844
|
+
const headerSlot = this.$slots.header || this.header;
|
|
845
|
+
return render((children) => {
|
|
846
|
+
return createVNode("div", {
|
|
847
|
+
"class": [
|
|
848
|
+
"v-sheet-modal",
|
|
849
|
+
{
|
|
850
|
+
"v-sheet-modal--has-active-child": this.hasActiveChild
|
|
851
|
+
}
|
|
852
|
+
// color.colorClasses.value,
|
|
853
|
+
],
|
|
854
|
+
"tabindex": "0"
|
|
855
|
+
}, [headerSlot && createVNode("div", {
|
|
856
|
+
"class": "v-sheet-modal__header"
|
|
857
|
+
}, [headerSlot(this.stackControl)]), createVNode("div", {
|
|
858
|
+
"class": "v-sheet-modal__scroller"
|
|
859
|
+
}, [children])]);
|
|
860
|
+
});
|
|
861
|
+
}
|
|
862
|
+
});
|
|
668
863
|
var VSkeltonLoaderBone = defineComponent({
|
|
669
864
|
name: "VSkeltonLoaderBone",
|
|
670
865
|
inheritAttrs: false,
|
|
@@ -674,9 +869,9 @@ var VSkeltonLoaderBone = defineComponent({
|
|
|
674
869
|
default: "div"
|
|
675
870
|
}
|
|
676
871
|
},
|
|
677
|
-
setup(
|
|
872
|
+
setup(props11, ctx) {
|
|
678
873
|
return () => {
|
|
679
|
-
const TagName =
|
|
874
|
+
const TagName = props11.tag;
|
|
680
875
|
return createVNode(TagName, mergeProps(ctx.attrs, {
|
|
681
876
|
"class": "v-skelton-loader-bone"
|
|
682
877
|
}), {
|
|
@@ -725,15 +920,15 @@ var VBusyImage = defineComponent({
|
|
|
725
920
|
error: (ev) => true
|
|
726
921
|
},
|
|
727
922
|
slots: slots3,
|
|
728
|
-
setup(
|
|
729
|
-
const loadStateRef = ref(
|
|
923
|
+
setup(props11, ctx) {
|
|
924
|
+
const loadStateRef = ref(props11.cover && isAvailableSrc(ctx.attrs.src) ? "loading" : "pending");
|
|
730
925
|
const attrsRef = computed(() => splitAttrs(ctx.attrs));
|
|
731
926
|
const isPendingRef = computed(() => loadStateRef.value === "pending");
|
|
732
927
|
const isLoadingRef = computed(() => loadStateRef.value === "loading");
|
|
733
928
|
const isLoadedRef = computed(() => loadStateRef.value === "loaded");
|
|
734
929
|
const isErrorRef = computed(() => loadStateRef.value === "error");
|
|
735
930
|
const classesRef = computed(() => [`v-busy-image--${loadStateRef.value}`, {
|
|
736
|
-
"v-busy-image--cover":
|
|
931
|
+
"v-busy-image--cover": props11.cover,
|
|
737
932
|
"v-busy-image--clickable": typeof ctx.attrs.onClick === "function"
|
|
738
933
|
}]);
|
|
739
934
|
const nodeRef = ref();
|
|
@@ -743,11 +938,11 @@ var VBusyImage = defineComponent({
|
|
|
743
938
|
const main = {};
|
|
744
939
|
const {
|
|
745
940
|
cover
|
|
746
|
-
} =
|
|
941
|
+
} = props11;
|
|
747
942
|
let {
|
|
748
943
|
width,
|
|
749
944
|
height
|
|
750
|
-
} =
|
|
945
|
+
} = props11;
|
|
751
946
|
if (height == null && cover) {
|
|
752
947
|
height = DEFAULT_HEIGHT;
|
|
753
948
|
}
|
|
@@ -790,7 +985,7 @@ var VBusyImage = defineComponent({
|
|
|
790
985
|
coverImageRef.value = void 0;
|
|
791
986
|
if (isAvailableSrc(value)) {
|
|
792
987
|
loadStateRef.value = "loading";
|
|
793
|
-
if (
|
|
988
|
+
if (props11.cover) {
|
|
794
989
|
loadImage(value).then((image) => {
|
|
795
990
|
coverImageRef.value = image;
|
|
796
991
|
setManualState("load");
|
|
@@ -814,7 +1009,7 @@ var VBusyImage = defineComponent({
|
|
|
814
1009
|
ctx.emit(loadType, ev);
|
|
815
1010
|
};
|
|
816
1011
|
onMounted(() => {
|
|
817
|
-
if (booted ||
|
|
1012
|
+
if (booted || props11.cover)
|
|
818
1013
|
return;
|
|
819
1014
|
const image = nodeRef.value;
|
|
820
1015
|
if (!image)
|
|
@@ -855,7 +1050,7 @@ var VBusyImage = defineComponent({
|
|
|
855
1050
|
"class": ["v-busy-image", classesRef.value]
|
|
856
1051
|
}, elAttrs, {
|
|
857
1052
|
"style": styles
|
|
858
|
-
}), [!
|
|
1053
|
+
}), [!props11.cover && createVNode("img", mergeProps({
|
|
859
1054
|
"key": "img",
|
|
860
1055
|
"ref": nodeRef,
|
|
861
1056
|
"class": "v-busy-image__node"
|
|
@@ -901,7 +1096,7 @@ var VGridItem = defineComponent({
|
|
|
901
1096
|
justify: void 0,
|
|
902
1097
|
order: void 0
|
|
903
1098
|
},
|
|
904
|
-
setup(
|
|
1099
|
+
setup(props11, ctx) {
|
|
905
1100
|
const data = computed(() => {
|
|
906
1101
|
const classes = [];
|
|
907
1102
|
const attrs = {
|
|
@@ -912,7 +1107,7 @@ var VGridItem = defineComponent({
|
|
|
912
1107
|
align,
|
|
913
1108
|
justify,
|
|
914
1109
|
order
|
|
915
|
-
} =
|
|
1110
|
+
} = props11;
|
|
916
1111
|
delete attrs.size;
|
|
917
1112
|
delete attrs.align;
|
|
918
1113
|
delete attrs.justify;
|
|
@@ -927,7 +1122,7 @@ var VGridItem = defineComponent({
|
|
|
927
1122
|
};
|
|
928
1123
|
});
|
|
929
1124
|
return () => {
|
|
930
|
-
const TagName =
|
|
1125
|
+
const TagName = props11.tag;
|
|
931
1126
|
const {
|
|
932
1127
|
classes,
|
|
933
1128
|
attrs
|
|
@@ -961,7 +1156,7 @@ var VGridContainer = defineComponent({
|
|
|
961
1156
|
alignContent: void 0,
|
|
962
1157
|
justifyContent: void 0
|
|
963
1158
|
},
|
|
964
|
-
setup(
|
|
1159
|
+
setup(props11, ctx) {
|
|
965
1160
|
const data = computed(() => {
|
|
966
1161
|
const classes = [];
|
|
967
1162
|
const attrs = {
|
|
@@ -975,7 +1170,7 @@ var VGridContainer = defineComponent({
|
|
|
975
1170
|
wrap,
|
|
976
1171
|
alignContent,
|
|
977
1172
|
justifyContent
|
|
978
|
-
} =
|
|
1173
|
+
} = props11;
|
|
979
1174
|
const wrapperClass = attrs.class;
|
|
980
1175
|
const wrapperStyle = attrs.style;
|
|
981
1176
|
delete attrs.class;
|
|
@@ -1002,8 +1197,8 @@ var VGridContainer = defineComponent({
|
|
|
1002
1197
|
};
|
|
1003
1198
|
});
|
|
1004
1199
|
return () => {
|
|
1005
|
-
const WrapperTag =
|
|
1006
|
-
const TagName =
|
|
1200
|
+
const WrapperTag = props11.wrapperTag;
|
|
1201
|
+
const TagName = props11.tag;
|
|
1007
1202
|
const {
|
|
1008
1203
|
wrapperClass,
|
|
1009
1204
|
wrapperStyle,
|
|
@@ -1048,20 +1243,20 @@ var VPaper = defineComponent({
|
|
|
1048
1243
|
inheritAttrs: false,
|
|
1049
1244
|
props: createPaperProps(),
|
|
1050
1245
|
slots: paperBaseSlots,
|
|
1051
|
-
setup(
|
|
1052
|
-
const tag = computed(() =>
|
|
1053
|
-
const elevation = useElevation(
|
|
1246
|
+
setup(props11, ctx) {
|
|
1247
|
+
const tag = computed(() => props11.tag);
|
|
1248
|
+
const elevation = useElevation(props11, {
|
|
1054
1249
|
defaultValue: 1
|
|
1055
1250
|
});
|
|
1056
|
-
const scope = useScopeColorClass(
|
|
1251
|
+
const scope = useScopeColorClass(props11);
|
|
1057
1252
|
const classes = computed(() => [elevation.elevationClassName.value, scope.value.className, {
|
|
1058
1253
|
"v-paper--plain": !scope.value.value,
|
|
1059
1254
|
"v-paper--has-color": !!scope.value.value || !!ctx.attrs.disabled,
|
|
1060
|
-
"v-paper--square":
|
|
1255
|
+
"v-paper--square": props11.square
|
|
1061
1256
|
}]);
|
|
1062
|
-
const headerProps = computed(() =>
|
|
1063
|
-
const bodyProps = computed(() =>
|
|
1064
|
-
const footerProps = computed(() =>
|
|
1257
|
+
const headerProps = computed(() => props11.headerProps);
|
|
1258
|
+
const bodyProps = computed(() => props11.bodyProps);
|
|
1259
|
+
const footerProps = computed(() => props11.footerProps);
|
|
1065
1260
|
return () => {
|
|
1066
1261
|
const TagName = tag.value;
|
|
1067
1262
|
const header = renderSlotOrEmpty(ctx.slots, "header");
|
|
@@ -1070,7 +1265,7 @@ var VPaper = defineComponent({
|
|
|
1070
1265
|
"class": ["v-paper", classes.value]
|
|
1071
1266
|
}, ctx.attrs), {
|
|
1072
1267
|
default: () => [createVNode("div", {
|
|
1073
|
-
"class": ["v-paper__inner",
|
|
1268
|
+
"class": ["v-paper__inner", props11.innerClass]
|
|
1074
1269
|
}, [header && createVNode("div", mergeProps({
|
|
1075
1270
|
"class": "v-paper__header"
|
|
1076
1271
|
}, headerProps.value), [header]), createVNode("div", mergeProps({
|
|
@@ -1101,12 +1296,12 @@ var VAvatar = defineComponent({
|
|
|
1101
1296
|
name: "VAvatar",
|
|
1102
1297
|
inheritAttrs: false,
|
|
1103
1298
|
props: createAvatarProps(),
|
|
1104
|
-
setup(
|
|
1299
|
+
setup(props11, ctx) {
|
|
1105
1300
|
const vui = useVui();
|
|
1106
1301
|
const defaults = vui.setting("buttonDefault");
|
|
1107
1302
|
const color = useColorClasses({
|
|
1108
|
-
color: () =>
|
|
1109
|
-
variant: () =>
|
|
1303
|
+
color: () => props11.color || defaults.color,
|
|
1304
|
+
variant: () => props11.variant || defaults.variant
|
|
1110
1305
|
});
|
|
1111
1306
|
const actionable = useActionable(ctx, {
|
|
1112
1307
|
clickableClassName: () => "v-avatar--clickable",
|
|
@@ -1115,16 +1310,16 @@ var VAvatar = defineComponent({
|
|
|
1115
1310
|
const classes = computed(() => {
|
|
1116
1311
|
const {
|
|
1117
1312
|
size
|
|
1118
|
-
} =
|
|
1313
|
+
} = props11;
|
|
1119
1314
|
return [{
|
|
1120
|
-
"v-avatar--tile":
|
|
1121
|
-
"v-avatar--rounded":
|
|
1315
|
+
"v-avatar--tile": props11.tile,
|
|
1316
|
+
"v-avatar--rounded": props11.rounded
|
|
1122
1317
|
}, typeof size === "string" && `v-avatar--${size}`];
|
|
1123
1318
|
});
|
|
1124
1319
|
const styles = computed(() => {
|
|
1125
1320
|
const {
|
|
1126
1321
|
size
|
|
1127
|
-
} =
|
|
1322
|
+
} = props11;
|
|
1128
1323
|
if (typeof size !== "number")
|
|
1129
1324
|
return;
|
|
1130
1325
|
return {
|
|
@@ -1134,7 +1329,7 @@ var VAvatar = defineComponent({
|
|
|
1134
1329
|
return () => {
|
|
1135
1330
|
const {
|
|
1136
1331
|
src
|
|
1137
|
-
} =
|
|
1332
|
+
} = props11;
|
|
1138
1333
|
const {
|
|
1139
1334
|
Tag,
|
|
1140
1335
|
attrs
|
|
@@ -1189,19 +1384,19 @@ var VChip = defineComponent({
|
|
|
1189
1384
|
name: "VChip",
|
|
1190
1385
|
inheritAttrs: false,
|
|
1191
1386
|
props: createChipProps(),
|
|
1192
|
-
setup(
|
|
1387
|
+
setup(props11, ctx) {
|
|
1193
1388
|
const vui = useVui();
|
|
1194
1389
|
const defaults = vui.setting("buttonDefault");
|
|
1195
1390
|
const color = useColorClasses({
|
|
1196
|
-
color: () =>
|
|
1197
|
-
variant: () =>
|
|
1391
|
+
color: () => props11.color || defaults.color,
|
|
1392
|
+
variant: () => props11.variant || defaults.variant
|
|
1198
1393
|
});
|
|
1199
1394
|
const startIcon = computed(() => {
|
|
1200
|
-
const _icon = resolveRawVChipIcon(
|
|
1395
|
+
const _icon = resolveRawVChipIcon(props11.startIcon, "start");
|
|
1201
1396
|
return _icon && _icon();
|
|
1202
1397
|
});
|
|
1203
1398
|
const endIcon = computed(() => {
|
|
1204
|
-
const _icon = resolveRawVChipIcon(
|
|
1399
|
+
const _icon = resolveRawVChipIcon(props11.endIcon, "end");
|
|
1205
1400
|
return _icon && _icon();
|
|
1206
1401
|
});
|
|
1207
1402
|
const actionable = useActionable(ctx, {
|
|
@@ -1211,9 +1406,9 @@ var VChip = defineComponent({
|
|
|
1211
1406
|
const classes = computed(() => {
|
|
1212
1407
|
const {
|
|
1213
1408
|
size
|
|
1214
|
-
} =
|
|
1409
|
+
} = props11;
|
|
1215
1410
|
return [{
|
|
1216
|
-
"v-chip--label":
|
|
1411
|
+
"v-chip--label": props11.label
|
|
1217
1412
|
}, typeof size === "string" && `v-chip--${size}`];
|
|
1218
1413
|
});
|
|
1219
1414
|
return () => {
|
|
@@ -1242,8 +1437,8 @@ var VCard = defineComponent({
|
|
|
1242
1437
|
name: "VCard",
|
|
1243
1438
|
inheritAttrs: false,
|
|
1244
1439
|
props: createCardProps(),
|
|
1245
|
-
setup(
|
|
1246
|
-
const _props = computed(() =>
|
|
1440
|
+
setup(props11, ctx) {
|
|
1441
|
+
const _props = computed(() => props11);
|
|
1247
1442
|
const data = computed(() => {
|
|
1248
1443
|
const hasLink = !!ctx.attrs.href || !!ctx.attrs.to;
|
|
1249
1444
|
const attrs = {
|
|
@@ -1252,7 +1447,7 @@ var VCard = defineComponent({
|
|
|
1252
1447
|
class: ["v-card", ctx.attrs.class, typeof ctx.attrs.onClick === "function" && "clickable"],
|
|
1253
1448
|
tag: hasLink ? VAction : "div"
|
|
1254
1449
|
};
|
|
1255
|
-
if (
|
|
1450
|
+
if (props11.disabled) {
|
|
1256
1451
|
attrs.disabled = "disabled";
|
|
1257
1452
|
delete attrs.onClick;
|
|
1258
1453
|
delete attrs.href;
|
|
@@ -1321,38 +1516,38 @@ var VButton = defineComponent({
|
|
|
1321
1516
|
name: "VButton",
|
|
1322
1517
|
inheritAttrs: false,
|
|
1323
1518
|
props: vueButtonProps,
|
|
1324
|
-
setup(
|
|
1519
|
+
setup(props11, ctx) {
|
|
1325
1520
|
const vui = useVui();
|
|
1326
|
-
const control = useControl(
|
|
1521
|
+
const control = useControl(props11);
|
|
1327
1522
|
const defaults = vui.setting("buttonDefault");
|
|
1328
1523
|
const icon = computed(() => {
|
|
1329
|
-
const _icon = resolveRawVButtonIcon(
|
|
1524
|
+
const _icon = resolveRawVButtonIcon(props11.icon);
|
|
1330
1525
|
return _icon && _icon();
|
|
1331
1526
|
});
|
|
1332
1527
|
const startIcon = computed(() => {
|
|
1333
|
-
const _icon = resolveRawVButtonIcon(
|
|
1528
|
+
const _icon = resolveRawVButtonIcon(props11.startIcon, "start");
|
|
1334
1529
|
return _icon && _icon();
|
|
1335
1530
|
});
|
|
1336
1531
|
const endIcon = computed(() => {
|
|
1337
|
-
const _icon = resolveRawVButtonIcon(
|
|
1532
|
+
const _icon = resolveRawVButtonIcon(props11.endIcon, "end");
|
|
1338
1533
|
return _icon && _icon();
|
|
1339
1534
|
});
|
|
1340
1535
|
const color = useColorClasses({
|
|
1341
|
-
color: () =>
|
|
1342
|
-
variant: () =>
|
|
1536
|
+
color: () => props11.color || defaults.color,
|
|
1537
|
+
variant: () => props11.variant || (icon.value ? vui.setting("plainVariant") : defaults.variant)
|
|
1343
1538
|
});
|
|
1344
1539
|
const isPlain = computed(() => color.variant.value.value === vui.setting("plainVariant") && color.color.value.value === defaults.color);
|
|
1345
|
-
const isLoading = computed(() =>
|
|
1540
|
+
const isLoading = computed(() => props11.loading);
|
|
1346
1541
|
const spacer = computed(() => {
|
|
1347
|
-
const _spacer =
|
|
1542
|
+
const _spacer = props11.spacer;
|
|
1348
1543
|
if (!_spacer)
|
|
1349
1544
|
return;
|
|
1350
1545
|
return _spacer === true ? "left" : _spacer;
|
|
1351
1546
|
});
|
|
1352
|
-
const classes = computed(() => [color.colorClasses.value, spacer.value ? `v-button--spacer-${spacer.value}` : void 0, `v-button--${control.size.value}`, `v-button--align-${
|
|
1547
|
+
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
1548
|
"v-button--loading": isLoading.value,
|
|
1354
1549
|
"v-button--icon": !!icon.value,
|
|
1355
|
-
"v-button--rounded":
|
|
1550
|
+
"v-button--rounded": props11.rounded,
|
|
1356
1551
|
"v-button--plain": isPlain.value
|
|
1357
1552
|
}]);
|
|
1358
1553
|
return () => {
|
|
@@ -1377,7 +1572,7 @@ var VButtonGroup = defineComponent({
|
|
|
1377
1572
|
...createControlProps(),
|
|
1378
1573
|
disabled: Boolean
|
|
1379
1574
|
},
|
|
1380
|
-
setup(
|
|
1575
|
+
setup(props11, ctx) {
|
|
1381
1576
|
return () => {
|
|
1382
1577
|
let hasIcon = false;
|
|
1383
1578
|
let buttonLength = 0;
|
|
@@ -1409,7 +1604,7 @@ var VButtonGroup = defineComponent({
|
|
|
1409
1604
|
const hasRight = buttonIndex < buttonLength;
|
|
1410
1605
|
const childProps = child.node.props;
|
|
1411
1606
|
return cloneVNode(child.node, {
|
|
1412
|
-
...
|
|
1607
|
+
...props11,
|
|
1413
1608
|
...childProps,
|
|
1414
1609
|
rouded: false,
|
|
1415
1610
|
class: ["v-button-group__item", {
|
|
@@ -1477,7 +1672,7 @@ var VPagination = defineComponent({
|
|
|
1477
1672
|
change: (page) => true,
|
|
1478
1673
|
"update:modelValue": (page) => true
|
|
1479
1674
|
},
|
|
1480
|
-
setup(
|
|
1675
|
+
setup(props11, ctx) {
|
|
1481
1676
|
const vui = useVui();
|
|
1482
1677
|
const elRef = ref(null);
|
|
1483
1678
|
const router = useRouter();
|
|
@@ -1491,15 +1686,15 @@ var VPagination = defineComponent({
|
|
|
1491
1686
|
return Math.floor(containerWidth.value / _itemSize);
|
|
1492
1687
|
});
|
|
1493
1688
|
const colorScope = useScopeColorClass({
|
|
1494
|
-
color: () =>
|
|
1689
|
+
color: () => props11.color || vui.setting("primaryScope")
|
|
1495
1690
|
});
|
|
1496
|
-
const computedLength = computed(() => resolveNumberish(
|
|
1497
|
-
const computedTotalVisible = computed(() => resolveNumberish(
|
|
1691
|
+
const computedLength = computed(() => resolveNumberish(props11.length));
|
|
1692
|
+
const computedTotalVisible = computed(() => resolveNumberish(props11.totalVisible));
|
|
1498
1693
|
const computedNumbersLength = computed(() => capacityLength.value - 2 - 2);
|
|
1499
1694
|
const computedPage = computed(() => {
|
|
1500
1695
|
const {
|
|
1501
1696
|
routeQuery
|
|
1502
|
-
} =
|
|
1697
|
+
} = props11;
|
|
1503
1698
|
if (routeQuery) {
|
|
1504
1699
|
return vui.location.getQuery(routeQuery, Number, 1);
|
|
1505
1700
|
}
|
|
@@ -1543,14 +1738,14 @@ var VPagination = defineComponent({
|
|
|
1543
1738
|
const isTransitioning = computed(() => {
|
|
1544
1739
|
const {
|
|
1545
1740
|
routeQuery
|
|
1546
|
-
} =
|
|
1741
|
+
} = props11;
|
|
1547
1742
|
return vui.location.isQueryOnlyTransitioning(routeQuery);
|
|
1548
1743
|
});
|
|
1549
|
-
const isDisabled = computed(() =>
|
|
1744
|
+
const isDisabled = computed(() => props11.disabled || isTransitioning.value);
|
|
1550
1745
|
const classes = computed(() => [{
|
|
1551
1746
|
"v-pagination--disabled": isDisabled.value,
|
|
1552
|
-
"v-pagination--dense":
|
|
1553
|
-
[`v-pagination--${
|
|
1747
|
+
"v-pagination--dense": props11.dense,
|
|
1748
|
+
[`v-pagination--${props11.align}`]: true
|
|
1554
1749
|
}, colorScope.value.className]);
|
|
1555
1750
|
async function setPage(value) {
|
|
1556
1751
|
if (isDisabled.value)
|
|
@@ -1558,7 +1753,7 @@ var VPagination = defineComponent({
|
|
|
1558
1753
|
const {
|
|
1559
1754
|
beforeChange,
|
|
1560
1755
|
routeQuery
|
|
1561
|
-
} =
|
|
1756
|
+
} = props11;
|
|
1562
1757
|
const newPage = resolveNumberish(value);
|
|
1563
1758
|
if (computedPage.value === newPage)
|
|
1564
1759
|
return;
|
|
@@ -1651,7 +1846,7 @@ var VPagination = defineComponent({
|
|
|
1651
1846
|
const key = `${source}-${index}`;
|
|
1652
1847
|
const {
|
|
1653
1848
|
routeQuery
|
|
1654
|
-
} =
|
|
1849
|
+
} = props11;
|
|
1655
1850
|
if (page !== void 0 && routeQuery) {
|
|
1656
1851
|
const to = createRoutableLocationByPage(page, routeQuery);
|
|
1657
1852
|
return createVNode(RouterLink, {
|
|
@@ -1671,7 +1866,7 @@ var VPagination = defineComponent({
|
|
|
1671
1866
|
}, [children]);
|
|
1672
1867
|
}
|
|
1673
1868
|
}
|
|
1674
|
-
watch(() =>
|
|
1869
|
+
watch(() => props11.modelValue, (modelValue) => {
|
|
1675
1870
|
internalValue.value = resolveNumberish(modelValue);
|
|
1676
1871
|
}, {
|
|
1677
1872
|
immediate: true
|
|
@@ -1726,16 +1921,16 @@ var VListTile = defineComponent({
|
|
|
1726
1921
|
emits: {
|
|
1727
1922
|
...listTileEmits
|
|
1728
1923
|
},
|
|
1729
|
-
setup(
|
|
1924
|
+
setup(props11, ctx) {
|
|
1730
1925
|
const vui = useVui();
|
|
1731
1926
|
const startIcon = computed(() => {
|
|
1732
|
-
let icon = resolveRawIconProp(false,
|
|
1733
|
-
if (!icon &&
|
|
1927
|
+
let icon = resolveRawIconProp(false, props11.startIcon);
|
|
1928
|
+
if (!icon && props11.startIconEmptySpace) {
|
|
1734
1929
|
icon = resolveRawIconProp(false, "$empty");
|
|
1735
1930
|
}
|
|
1736
1931
|
return icon;
|
|
1737
1932
|
});
|
|
1738
|
-
const endIcon = computed(() => resolveRawIconProp(false,
|
|
1933
|
+
const endIcon = computed(() => resolveRawIconProp(false, props11.endIcon));
|
|
1739
1934
|
const hasTo = computed(() => !!ctx.attrs.to);
|
|
1740
1935
|
const link = vui.useLink({
|
|
1741
1936
|
to: ctx.attrs.to || ""
|
|
@@ -1743,9 +1938,9 @@ var VListTile = defineComponent({
|
|
|
1743
1938
|
const isActive = computed(() => {
|
|
1744
1939
|
if (!hasTo.value)
|
|
1745
1940
|
return false;
|
|
1746
|
-
return
|
|
1941
|
+
return props11.exactMatch ? link.isExactActive.value : link.isActive.value;
|
|
1747
1942
|
});
|
|
1748
|
-
const color = useScopeColorClass(
|
|
1943
|
+
const color = useScopeColorClass(props11);
|
|
1749
1944
|
const classes = computed(() => {
|
|
1750
1945
|
const _color = color.value;
|
|
1751
1946
|
const hasColor = !!_color.value;
|
|
@@ -1784,11 +1979,11 @@ var VDrawerLayout = defineComponent({
|
|
|
1784
1979
|
...createPaperBaseProps()
|
|
1785
1980
|
},
|
|
1786
1981
|
slots: paperBaseSlots,
|
|
1787
|
-
setup(
|
|
1982
|
+
setup(props11, ctx) {
|
|
1788
1983
|
return () => {
|
|
1789
1984
|
const paperProps = computed(() => ({
|
|
1790
|
-
color:
|
|
1791
|
-
tag:
|
|
1985
|
+
color: props11.color,
|
|
1986
|
+
tag: props11.tag
|
|
1792
1987
|
}));
|
|
1793
1988
|
return createVNode(VPaper, mergeProps({
|
|
1794
1989
|
"class": "v-drawer-layout",
|
|
@@ -1827,16 +2022,16 @@ var VHero = defineComponent({
|
|
|
1827
2022
|
...slots4()
|
|
1828
2023
|
},
|
|
1829
2024
|
slots: slots4,
|
|
1830
|
-
setup(
|
|
2025
|
+
setup(props11, ctx) {
|
|
1831
2026
|
return () => {
|
|
1832
|
-
const TagName =
|
|
1833
|
-
const HTagName =
|
|
2027
|
+
const TagName = props11.tag;
|
|
2028
|
+
const HTagName = props11.hTag;
|
|
1834
2029
|
const adornment = ctx.slots.adornment?.();
|
|
1835
2030
|
return createVNode(VAppContainer, {
|
|
1836
2031
|
"pulled": true
|
|
1837
2032
|
}, {
|
|
1838
2033
|
default: () => [createVNode(TagName, {
|
|
1839
|
-
"class": ["v-hero", toScopeColorClass(
|
|
2034
|
+
"class": ["v-hero", toScopeColorClass(props11.color)]
|
|
1840
2035
|
}, {
|
|
1841
2036
|
default: () => [createVNode(HTagName, {
|
|
1842
2037
|
"class": "v-hero__title"
|
|
@@ -1871,25 +2066,25 @@ function createNavigationItemProps() {
|
|
|
1871
2066
|
}
|
|
1872
2067
|
function resolveNavigationItemInput(input) {
|
|
1873
2068
|
let label = input.label;
|
|
1874
|
-
const
|
|
2069
|
+
const props11 = {
|
|
1875
2070
|
...input
|
|
1876
2071
|
};
|
|
1877
2072
|
if (typeof label === "function") {
|
|
1878
2073
|
label = label();
|
|
1879
2074
|
}
|
|
1880
|
-
delete
|
|
2075
|
+
delete props11.label;
|
|
1881
2076
|
return {
|
|
1882
2077
|
label,
|
|
1883
|
-
props:
|
|
2078
|
+
props: props11
|
|
1884
2079
|
};
|
|
1885
2080
|
}
|
|
1886
2081
|
function renderNavigationItemInput(input, extraProps) {
|
|
1887
2082
|
const {
|
|
1888
2083
|
label,
|
|
1889
|
-
props:
|
|
2084
|
+
props: props11
|
|
1890
2085
|
} = resolveNavigationItemInput(input);
|
|
1891
2086
|
return createVNode(VNavigationItem, {
|
|
1892
|
-
...
|
|
2087
|
+
...props11,
|
|
1893
2088
|
...extraProps
|
|
1894
2089
|
}, _isSlot2(label) ? label : {
|
|
1895
2090
|
default: () => [label]
|
|
@@ -1909,18 +2104,18 @@ var VNavigationItem = defineComponent({
|
|
|
1909
2104
|
emits: {
|
|
1910
2105
|
...listTileEmits
|
|
1911
2106
|
},
|
|
1912
|
-
setup(
|
|
2107
|
+
setup(props11, ctx) {
|
|
1913
2108
|
const vui = useVui();
|
|
1914
2109
|
const opened = ref(false);
|
|
1915
2110
|
const children = computed(() => {
|
|
1916
|
-
const c =
|
|
2111
|
+
const c = props11.children;
|
|
1917
2112
|
return c && c.length ? c : void 0;
|
|
1918
2113
|
});
|
|
1919
2114
|
const to = computed(() => ctx.attrs.to);
|
|
1920
2115
|
const match = computed(() => {
|
|
1921
2116
|
const {
|
|
1922
2117
|
match: match2
|
|
1923
|
-
} =
|
|
2118
|
+
} = props11;
|
|
1924
2119
|
const {
|
|
1925
2120
|
to: to2
|
|
1926
2121
|
} = ctx.attrs;
|
|
@@ -1936,7 +2131,7 @@ var VNavigationItem = defineComponent({
|
|
|
1936
2131
|
});
|
|
1937
2132
|
const classes = computed(() => [{
|
|
1938
2133
|
"v-navigation-item--opened": opened.value,
|
|
1939
|
-
[`v-navigation-item--depth-${
|
|
2134
|
+
[`v-navigation-item--depth-${props11.depth}`]: props11.depth > 0
|
|
1940
2135
|
}]);
|
|
1941
2136
|
const route = useRoute();
|
|
1942
2137
|
watch(() => route.path, (newPath) => {
|
|
@@ -1958,7 +2153,7 @@ var VNavigationItem = defineComponent({
|
|
|
1958
2153
|
const c = children.value;
|
|
1959
2154
|
let {
|
|
1960
2155
|
endIcon
|
|
1961
|
-
} =
|
|
2156
|
+
} = props11;
|
|
1962
2157
|
if (c && !endIcon) {
|
|
1963
2158
|
endIcon = vui.icon("navigationExpand");
|
|
1964
2159
|
if (typeof endIcon === "string") {
|
|
@@ -1972,7 +2167,7 @@ var VNavigationItem = defineComponent({
|
|
|
1972
2167
|
}
|
|
1973
2168
|
}
|
|
1974
2169
|
const __props = {
|
|
1975
|
-
...
|
|
2170
|
+
...props11,
|
|
1976
2171
|
endIcon
|
|
1977
2172
|
};
|
|
1978
2173
|
delete __props.children;
|
|
@@ -2020,11 +2215,11 @@ var VNavigationItem = defineComponent({
|
|
|
2020
2215
|
default: () => [withDirectives(createVNode("div", {
|
|
2021
2216
|
"class": "v-navigation-item__expand"
|
|
2022
2217
|
}, [_children.map((child) => renderNavigationItemInput({
|
|
2023
|
-
color:
|
|
2218
|
+
color: props11.color,
|
|
2024
2219
|
...child
|
|
2025
2220
|
}, {
|
|
2026
2221
|
startIconEmptySpace: _props.value.startIconEmptySpace,
|
|
2027
|
-
depth:
|
|
2222
|
+
depth: props11.nested ? props11.depth + 1 : props11.depth
|
|
2028
2223
|
// onClick,
|
|
2029
2224
|
// onChangeActive,
|
|
2030
2225
|
}))]), [[vShow, opened.value]])]
|
|
@@ -2049,13 +2244,13 @@ function createNavigationProps() {
|
|
|
2049
2244
|
var VNavigation = defineComponent({
|
|
2050
2245
|
name: "VNavigation",
|
|
2051
2246
|
props: createNavigationProps(),
|
|
2052
|
-
setup(
|
|
2053
|
-
const items = computed(() =>
|
|
2054
|
-
const color = useScopeColorClass(
|
|
2247
|
+
setup(props11, ctx) {
|
|
2248
|
+
const items = computed(() => props11.items);
|
|
2249
|
+
const color = useScopeColorClass(props11);
|
|
2055
2250
|
const classes = computed(() => [color.value.className]);
|
|
2056
|
-
const startIconEmptySpace = computed(() =>
|
|
2251
|
+
const startIconEmptySpace = computed(() => props11.startIconEmptySpace);
|
|
2057
2252
|
const caption = computed(() => {
|
|
2058
|
-
const c =
|
|
2253
|
+
const c = props11.caption;
|
|
2059
2254
|
return typeof c === "function" ? c() : c;
|
|
2060
2255
|
});
|
|
2061
2256
|
const itemsRef = ref([]);
|
|
@@ -2128,40 +2323,40 @@ var VControlField = defineComponent({
|
|
|
2128
2323
|
emits: {
|
|
2129
2324
|
click: (ev) => true
|
|
2130
2325
|
},
|
|
2131
|
-
setup(
|
|
2326
|
+
setup(props11, ctx) {
|
|
2132
2327
|
const parentNode = useParentFormNode();
|
|
2133
|
-
const control = useControl(
|
|
2134
|
-
const inputBox = useControlField(
|
|
2328
|
+
const control = useControl(props11);
|
|
2329
|
+
const inputBox = useControlField(props11);
|
|
2135
2330
|
const hostElRef = ref(null);
|
|
2136
2331
|
const disabled = computed(() => !!parentNode && parentNode.isDisabled);
|
|
2137
2332
|
const invalid = computed(() => !!parentNode && parentNode.invalid);
|
|
2138
|
-
const autoHeight = computed(() =>
|
|
2333
|
+
const autoHeight = computed(() => props11.autoHeight);
|
|
2139
2334
|
const readonly = computed(() => !!parentNode && parentNode.isReadonly);
|
|
2140
2335
|
const colorProvider = useVuiColorProvider();
|
|
2141
2336
|
const classes = computed(() => {
|
|
2142
2337
|
const classes2 = ["v-control-field", `v-control-field--${inputBox.variant.value}`, {
|
|
2143
2338
|
"v-control-field--disabled": disabled.value,
|
|
2144
|
-
"v-control-field--invalid": invalid.value ||
|
|
2339
|
+
"v-control-field--invalid": invalid.value || props11.error,
|
|
2145
2340
|
"v-control-field--readonly": readonly.value,
|
|
2146
|
-
"v-control-field--focused":
|
|
2341
|
+
"v-control-field--focused": props11.focused,
|
|
2147
2342
|
"v-control-field--auto-height": autoHeight.value
|
|
2148
|
-
}, control.classes.value, colorProvider.className(
|
|
2343
|
+
}, control.classes.value, colorProvider.className(props11.error ? "error" : invalid.value && !readonly.value ? "error" : "primary")];
|
|
2149
2344
|
return classes2;
|
|
2150
2345
|
});
|
|
2151
2346
|
const resolvedSlots = computed(() => {
|
|
2152
2347
|
const slots13 = {};
|
|
2153
2348
|
ADORNMENT_POSITIONS.forEach((position) => {
|
|
2154
2349
|
const key = `${position}Adornment`;
|
|
2155
|
-
slots13[position] = resolveVNodeChildOrSlots(
|
|
2350
|
+
slots13[position] = resolveVNodeChildOrSlots(props11[key], ctx.slots[key]);
|
|
2156
2351
|
});
|
|
2157
2352
|
return slots13;
|
|
2158
2353
|
});
|
|
2159
2354
|
const renderAdornment = (position) => {
|
|
2160
2355
|
let child;
|
|
2161
|
-
if (position === "end" &&
|
|
2356
|
+
if (position === "end" && props11.loading) {
|
|
2162
2357
|
child = createVNode(loading_exports.VProgressCircular, {
|
|
2163
2358
|
"indeterminate": true,
|
|
2164
|
-
"size": CONTROL_LOADING_SPINNER_SIZES[
|
|
2359
|
+
"size": CONTROL_LOADING_SPINNER_SIZES[props11.size || "md"]
|
|
2165
2360
|
}, null);
|
|
2166
2361
|
} else {
|
|
2167
2362
|
child = resolvedSlots.value[position]?.();
|
|
@@ -2172,25 +2367,16 @@ var VControlField = defineComponent({
|
|
|
2172
2367
|
"class": ["v-control-field__adornment", `v-control-field__adornment--${position}`]
|
|
2173
2368
|
}, [child]);
|
|
2174
2369
|
};
|
|
2175
|
-
const handleClick = (ev) =>
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2370
|
+
const handleClick = (ev) => ctx.emit("click", ev);
|
|
2371
|
+
return () => {
|
|
2372
|
+
return createVNode("div", {
|
|
2373
|
+
"class": classes.value,
|
|
2374
|
+
"onClick": handleClick,
|
|
2375
|
+
"ref": hostElRef
|
|
2376
|
+
}, [renderAdornment("start"), createVNode("div", {
|
|
2377
|
+
"class": "v-control-field__body"
|
|
2378
|
+
}, [ctx.slots.default?.()]), renderAdornment("end")]);
|
|
2184
2379
|
};
|
|
2185
|
-
},
|
|
2186
|
-
render() {
|
|
2187
|
-
return createVNode("div", {
|
|
2188
|
-
"class": this.classes,
|
|
2189
|
-
"onClick": this.handleClick,
|
|
2190
|
-
"ref": this.hostElRef()
|
|
2191
|
-
}, [this.renderAdornment("start"), createVNode("div", {
|
|
2192
|
-
"class": "v-control-field__body"
|
|
2193
|
-
}, [this.$slots.default?.()]), this.renderAdornment("end")]);
|
|
2194
2380
|
}
|
|
2195
2381
|
});
|
|
2196
2382
|
var VTextCounter = defineComponent({
|
|
@@ -2223,12 +2409,12 @@ var VCheckable = defineComponent({
|
|
|
2223
2409
|
// autoWidth: Boolean,
|
|
2224
2410
|
},
|
|
2225
2411
|
slots: slots6,
|
|
2226
|
-
setup(
|
|
2412
|
+
setup(props11, ctx) {
|
|
2227
2413
|
const colorProvider = useVuiColorProvider();
|
|
2228
|
-
const invalid = computed(() =>
|
|
2229
|
-
const disabled = computed(() =>
|
|
2230
|
-
const readonly = computed(() =>
|
|
2231
|
-
const checked = computed(() =>
|
|
2414
|
+
const invalid = computed(() => props11.invalid);
|
|
2415
|
+
const disabled = computed(() => props11.disabled);
|
|
2416
|
+
const readonly = computed(() => props11.readonly);
|
|
2417
|
+
const checked = computed(() => props11.checked);
|
|
2232
2418
|
const classes = computed(() => {
|
|
2233
2419
|
return [{
|
|
2234
2420
|
"v-checkable--invalid": invalid.value,
|
|
@@ -2253,24 +2439,24 @@ var VCheckable = defineComponent({
|
|
|
2253
2439
|
|
|
2254
2440
|
// src/components/VCheckbox/VCheckbox.tsx
|
|
2255
2441
|
var {
|
|
2256
|
-
props:
|
|
2257
|
-
emits:
|
|
2442
|
+
props: props3,
|
|
2443
|
+
emits: emits3
|
|
2258
2444
|
} = createFormSelectorItemSettings();
|
|
2259
2445
|
var VCheckbox = defineComponent({
|
|
2260
2446
|
name: "VCheckbox",
|
|
2261
2447
|
props: {
|
|
2262
|
-
...
|
|
2448
|
+
...props3,
|
|
2263
2449
|
...createControlProps(),
|
|
2264
2450
|
indeterminate: Boolean
|
|
2265
2451
|
},
|
|
2266
|
-
emits:
|
|
2267
|
-
setup(
|
|
2268
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2452
|
+
emits: emits3,
|
|
2453
|
+
setup(props11, ctx) {
|
|
2454
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2269
2455
|
nodeType: VUI_CHECKBOX_SYMBOL,
|
|
2270
2456
|
parentNodeType: VUI_CHECKBOX_GROUP_SYMBOL
|
|
2271
2457
|
});
|
|
2272
|
-
const control = useControl(
|
|
2273
|
-
const isIndeterminate = computed(() =>
|
|
2458
|
+
const control = useControl(props11);
|
|
2459
|
+
const isIndeterminate = computed(() => props11.indeterminate);
|
|
2274
2460
|
return {
|
|
2275
2461
|
...nodeControl.expose(),
|
|
2276
2462
|
...control,
|
|
@@ -2318,22 +2504,22 @@ var VCheckboxGroup = defineFormSelectorComponent({
|
|
|
2318
2504
|
})
|
|
2319
2505
|
});
|
|
2320
2506
|
var {
|
|
2321
|
-
props:
|
|
2322
|
-
emits:
|
|
2507
|
+
props: props4,
|
|
2508
|
+
emits: emits4
|
|
2323
2509
|
} = createFormSelectorItemSettings();
|
|
2324
2510
|
var VRadio = defineComponent({
|
|
2325
2511
|
name: "VRadio",
|
|
2326
2512
|
props: {
|
|
2327
|
-
...
|
|
2513
|
+
...props4,
|
|
2328
2514
|
...createControlProps()
|
|
2329
2515
|
},
|
|
2330
|
-
emits:
|
|
2331
|
-
setup(
|
|
2332
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2516
|
+
emits: emits4,
|
|
2517
|
+
setup(props11, ctx) {
|
|
2518
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2333
2519
|
nodeType: VUI_RADIO_SYMBOL,
|
|
2334
2520
|
parentNodeType: VUI_RADIO_GROUP_SYMBOL
|
|
2335
2521
|
});
|
|
2336
|
-
const control = useControl(
|
|
2522
|
+
const control = useControl(props11);
|
|
2337
2523
|
return {
|
|
2338
2524
|
...nodeControl.expose(),
|
|
2339
2525
|
...control
|
|
@@ -2377,22 +2563,22 @@ var VRadioGroup = defineFormSelectorComponent({
|
|
|
2377
2563
|
})
|
|
2378
2564
|
});
|
|
2379
2565
|
var {
|
|
2380
|
-
props:
|
|
2381
|
-
emits:
|
|
2566
|
+
props: props5,
|
|
2567
|
+
emits: emits5
|
|
2382
2568
|
} = createFormSelectorItemSettings();
|
|
2383
2569
|
var VSwitch = defineComponent({
|
|
2384
2570
|
name: "VSwitch",
|
|
2385
2571
|
props: {
|
|
2386
|
-
...
|
|
2572
|
+
...props5,
|
|
2387
2573
|
...createControlProps()
|
|
2388
2574
|
},
|
|
2389
|
-
emits:
|
|
2390
|
-
setup(
|
|
2391
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2575
|
+
emits: emits5,
|
|
2576
|
+
setup(props11, ctx) {
|
|
2577
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2392
2578
|
nodeType: VUI_SWITCH_SYMBOL,
|
|
2393
2579
|
parentNodeType: VUI_SWITCH_GROUP_SYMBOL
|
|
2394
2580
|
});
|
|
2395
|
-
const control = useControl(
|
|
2581
|
+
const control = useControl(props11);
|
|
2396
2582
|
if (typeof window !== "undefined") {
|
|
2397
2583
|
window.yy = {};
|
|
2398
2584
|
window.yy[String(Date.now())] = nodeControl;
|
|
@@ -2409,8 +2595,7 @@ var VSwitch = defineComponent({
|
|
|
2409
2595
|
return createVNode(VCheckable, {
|
|
2410
2596
|
"class": ["v-switch", {
|
|
2411
2597
|
"v-switch--selected": selectorItemControl.selected,
|
|
2412
|
-
"v-switch--disabled": selectorItemControl.isDisabled
|
|
2413
|
-
xxxxx: selectorItemControl.booted
|
|
2598
|
+
"v-switch--disabled": selectorItemControl.isDisabled
|
|
2414
2599
|
}, this.classes],
|
|
2415
2600
|
"checked": this.selected,
|
|
2416
2601
|
"invalid": this.invalid,
|
|
@@ -2445,22 +2630,22 @@ var VSwitchGroup = defineFormSelectorComponent({
|
|
|
2445
2630
|
})
|
|
2446
2631
|
});
|
|
2447
2632
|
var {
|
|
2448
|
-
props:
|
|
2449
|
-
emits:
|
|
2633
|
+
props: props6,
|
|
2634
|
+
emits: emits6
|
|
2450
2635
|
} = createFormSelectorItemSettings();
|
|
2451
2636
|
var VOption = defineComponent({
|
|
2452
2637
|
name: "VOption",
|
|
2453
2638
|
props: {
|
|
2454
|
-
...
|
|
2639
|
+
...props6,
|
|
2455
2640
|
...createControlProps()
|
|
2456
2641
|
},
|
|
2457
|
-
emits:
|
|
2458
|
-
setup(
|
|
2459
|
-
const nodeControl = useFormSelectorItemControl(
|
|
2642
|
+
emits: emits6,
|
|
2643
|
+
setup(props11, ctx) {
|
|
2644
|
+
const nodeControl = useFormSelectorItemControl(props11, ctx, {
|
|
2460
2645
|
nodeType: VUI_OPTION_SYMBOL,
|
|
2461
2646
|
parentNodeType: VUI_SELECT_SYMBOL
|
|
2462
2647
|
});
|
|
2463
|
-
const control = useControl(
|
|
2648
|
+
const control = useControl(props11);
|
|
2464
2649
|
const classes = computed(() => {
|
|
2465
2650
|
return ["v-option", {
|
|
2466
2651
|
"v-option--selected": nodeControl.selected,
|
|
@@ -2500,12 +2685,12 @@ var VOptionGroup = defineComponent({
|
|
|
2500
2685
|
...slots7()
|
|
2501
2686
|
},
|
|
2502
2687
|
slots: slots7,
|
|
2503
|
-
setup(
|
|
2504
|
-
const groupControl = useFormSelectorItemGroupControl(
|
|
2688
|
+
setup(props11, ctx) {
|
|
2689
|
+
const groupControl = useFormSelectorItemGroupControl(props11, ctx, {
|
|
2505
2690
|
parentNodeType: VUI_SELECT_SYMBOL
|
|
2506
2691
|
});
|
|
2507
2692
|
const labelSlot = computed(() => {
|
|
2508
|
-
return resolveVNodeChildOrSlots(
|
|
2693
|
+
return resolveVNodeChildOrSlots(props11.label, ctx.slots.label);
|
|
2509
2694
|
});
|
|
2510
2695
|
const classes = computed(() => {
|
|
2511
2696
|
return ["v-option-group", {
|
|
@@ -2539,14 +2724,14 @@ var ARROW_KEY_TYPES = useKeyboard.Key(["ArrowUp", "ArrowDown"]);
|
|
|
2539
2724
|
var CHOICE_KEY_TYPES = useKeyboard.Key(["Enter", " "]);
|
|
2540
2725
|
var KEYBORD_EVENT_TYPES = useKeyboard.Key([...ARROW_KEY_TYPES, ...CHOICE_KEY_TYPES]);
|
|
2541
2726
|
var {
|
|
2542
|
-
props:
|
|
2543
|
-
emits:
|
|
2727
|
+
props: props7,
|
|
2728
|
+
emits: emits7
|
|
2544
2729
|
} = createFormSelectorSettings();
|
|
2545
2730
|
var slots8 = defineSlots();
|
|
2546
2731
|
var VSelect = defineComponent({
|
|
2547
2732
|
name: "VSelect",
|
|
2548
2733
|
props: {
|
|
2549
|
-
...
|
|
2734
|
+
...props7,
|
|
2550
2735
|
...createFormControlProps(),
|
|
2551
2736
|
...createControlFieldProps(),
|
|
2552
2737
|
...createControlFieldProviderProps(),
|
|
@@ -2560,8 +2745,8 @@ var VSelect = defineComponent({
|
|
|
2560
2745
|
closeOnNavigation: Boolean
|
|
2561
2746
|
},
|
|
2562
2747
|
slots: slots8,
|
|
2563
|
-
emits:
|
|
2564
|
-
setup(
|
|
2748
|
+
emits: emits7,
|
|
2749
|
+
setup(props11, ctx) {
|
|
2565
2750
|
const menuRef = ref(null);
|
|
2566
2751
|
const menuOpened = ref(false);
|
|
2567
2752
|
const showMenu = () => {
|
|
@@ -2570,27 +2755,27 @@ var VSelect = defineComponent({
|
|
|
2570
2755
|
const closeMenu = () => {
|
|
2571
2756
|
menuOpened.value = false;
|
|
2572
2757
|
};
|
|
2573
|
-
const inputControl = useFormSelectorControl(
|
|
2758
|
+
const inputControl = useFormSelectorControl(props11, ctx, {
|
|
2574
2759
|
nodeType: VUI_SELECT_SYMBOL,
|
|
2575
2760
|
onSelectItem: (item) => {
|
|
2576
2761
|
closeMenu();
|
|
2577
2762
|
}
|
|
2578
2763
|
});
|
|
2579
|
-
const control = useControl(
|
|
2580
|
-
useControlField(
|
|
2764
|
+
const control = useControl(props11);
|
|
2765
|
+
useControlField(props11);
|
|
2581
2766
|
const vui = useVui();
|
|
2582
2767
|
const iconName = vui.icon("menuDown");
|
|
2583
2768
|
const fieldRef = ref(null);
|
|
2584
2769
|
const loadingMessageRef = computed(() => {
|
|
2585
|
-
const slot = resolveVNodeChildOrSlots(
|
|
2770
|
+
const slot = resolveVNodeChildOrSlots(props11.loadingMessage, vui.setting("loadingMessage"), "Loading...");
|
|
2586
2771
|
return slot && slot(vui);
|
|
2587
2772
|
});
|
|
2588
2773
|
const failedToLoadItemsMessageRef = computed(() => {
|
|
2589
|
-
const slot = resolveVNodeChildOrSlots(
|
|
2774
|
+
const slot = resolveVNodeChildOrSlots(props11.failedToLoadItemsMessage, vui.setting("failedToLoadDataMessage"), "Failed to load data.");
|
|
2590
2775
|
return slot && slot(vui);
|
|
2591
2776
|
});
|
|
2592
2777
|
const focus = (opts) => {
|
|
2593
|
-
fieldRef.value
|
|
2778
|
+
fieldRef.value?.focus?.(opts);
|
|
2594
2779
|
};
|
|
2595
2780
|
const renderSelections = (selectedItems) => {
|
|
2596
2781
|
const selectionSlot = ctx.slots.selection;
|
|
@@ -2614,28 +2799,28 @@ var VSelect = defineComponent({
|
|
|
2614
2799
|
}) : item.renderDefaultSlot();
|
|
2615
2800
|
children.push(child);
|
|
2616
2801
|
});
|
|
2617
|
-
} else if (
|
|
2802
|
+
} else if (props11.placeholder != null) {
|
|
2618
2803
|
children.push(createVNode("span", {
|
|
2619
2804
|
"class": "v-select__placeholder"
|
|
2620
|
-
}, [
|
|
2805
|
+
}, [props11.placeholder]));
|
|
2621
2806
|
}
|
|
2622
2807
|
return children;
|
|
2623
2808
|
};
|
|
2624
2809
|
const clearKeyFocused = () => {
|
|
2625
|
-
const menu = menuRef.value;
|
|
2810
|
+
const menu = menuRef.value?.menu;
|
|
2626
2811
|
if (!menu)
|
|
2627
2812
|
return;
|
|
2628
|
-
const bodyEl = menu.
|
|
2813
|
+
const bodyEl = menu.bodyRef.value;
|
|
2629
2814
|
if (!bodyEl)
|
|
2630
2815
|
return;
|
|
2631
2816
|
const els = Array.from(bodyEl.querySelectorAll(".v-option"));
|
|
2632
2817
|
els.forEach((el) => el.classList.remove("v-option--key-focused"));
|
|
2633
2818
|
};
|
|
2634
2819
|
const getItemElements = () => {
|
|
2635
|
-
const menu = menuRef.value;
|
|
2820
|
+
const menu = menuRef.value?.menu;
|
|
2636
2821
|
if (!menu)
|
|
2637
2822
|
return;
|
|
2638
|
-
const bodyEl = menu.
|
|
2823
|
+
const bodyEl = menu.bodyRef.value;
|
|
2639
2824
|
if (!bodyEl)
|
|
2640
2825
|
return;
|
|
2641
2826
|
const els = Array.from(bodyEl.querySelectorAll(".v-option")).filter((el) => {
|
|
@@ -2877,13 +3062,13 @@ var VSelect = defineComponent({
|
|
|
2877
3062
|
}
|
|
2878
3063
|
});
|
|
2879
3064
|
var {
|
|
2880
|
-
props:
|
|
2881
|
-
emits:
|
|
3065
|
+
props: props8,
|
|
3066
|
+
emits: emits8
|
|
2882
3067
|
} = createTextInputSettings();
|
|
2883
3068
|
var slots9 = defineSlots();
|
|
2884
3069
|
function createTextFieldProps() {
|
|
2885
3070
|
return {
|
|
2886
|
-
...
|
|
3071
|
+
...props8,
|
|
2887
3072
|
...createFormControlProps(),
|
|
2888
3073
|
...createControlFieldProps(),
|
|
2889
3074
|
...createControlFieldProviderProps(),
|
|
@@ -2894,14 +3079,14 @@ function createTextFieldProps() {
|
|
|
2894
3079
|
var VTextField = defineComponent({
|
|
2895
3080
|
name: "VTextField",
|
|
2896
3081
|
props: createTextFieldProps(),
|
|
2897
|
-
emits:
|
|
3082
|
+
emits: emits8,
|
|
2898
3083
|
slots: slots9,
|
|
2899
|
-
setup(
|
|
2900
|
-
const inputControl = useTextInputControl(
|
|
3084
|
+
setup(props11, ctx) {
|
|
3085
|
+
const inputControl = useTextInputControl(props11, ctx, {
|
|
2901
3086
|
nodeType: VUI_TEXT_FIELD_SYMBOL
|
|
2902
3087
|
});
|
|
2903
|
-
const control = useControl(
|
|
2904
|
-
useControlField(
|
|
3088
|
+
const control = useControl(props11);
|
|
3089
|
+
useControlField(props11);
|
|
2905
3090
|
return {
|
|
2906
3091
|
...inputControl.expose(),
|
|
2907
3092
|
...control
|
|
@@ -2958,7 +3143,7 @@ var VNumberField = defineComponent({
|
|
|
2958
3143
|
"update:modelValue": (value) => true,
|
|
2959
3144
|
change: (value) => true
|
|
2960
3145
|
},
|
|
2961
|
-
setup(
|
|
3146
|
+
setup(props11, ctx) {
|
|
2962
3147
|
const toString = (value) => {
|
|
2963
3148
|
if (value == null)
|
|
2964
3149
|
return "";
|
|
@@ -2976,7 +3161,7 @@ var VNumberField = defineComponent({
|
|
|
2976
3161
|
return () => {
|
|
2977
3162
|
return createVNode(VTextField, mergeProps(ctx.attrs, {
|
|
2978
3163
|
"type": "number",
|
|
2979
|
-
"modelValue": toString(
|
|
3164
|
+
"modelValue": toString(props11.modelValue),
|
|
2980
3165
|
"onUpdate:modelValue": (value) => {
|
|
2981
3166
|
ctx.emit("update:modelValue", toNumber(value));
|
|
2982
3167
|
},
|
|
@@ -2988,29 +3173,29 @@ var VNumberField = defineComponent({
|
|
|
2988
3173
|
}
|
|
2989
3174
|
});
|
|
2990
3175
|
var {
|
|
2991
|
-
props:
|
|
2992
|
-
emits:
|
|
3176
|
+
props: props9,
|
|
3177
|
+
emits: emits9
|
|
2993
3178
|
} = createTextareaSettings();
|
|
2994
3179
|
var slots10 = defineSlots();
|
|
2995
3180
|
var VTextarea = defineComponent({
|
|
2996
3181
|
name: "VTextarea",
|
|
2997
3182
|
props: {
|
|
2998
|
-
...
|
|
3183
|
+
...props9,
|
|
2999
3184
|
...createFormControlProps(),
|
|
3000
3185
|
...createControlFieldProps(),
|
|
3001
3186
|
...createControlFieldProviderProps(),
|
|
3002
3187
|
...createControlProps(),
|
|
3003
3188
|
...slots10()
|
|
3004
3189
|
},
|
|
3005
|
-
emits:
|
|
3006
|
-
setup(
|
|
3190
|
+
emits: emits9,
|
|
3191
|
+
setup(props11, ctx) {
|
|
3007
3192
|
const vui = useVui();
|
|
3008
|
-
const inputControl = useTextareaControl(
|
|
3193
|
+
const inputControl = useTextareaControl(props11, ctx, {
|
|
3009
3194
|
nodeType: VUI_TEXTAREA_SYMBOL,
|
|
3010
3195
|
defaultRows: vui.textareaRows
|
|
3011
3196
|
});
|
|
3012
|
-
const control = useControl(
|
|
3013
|
-
useControlField(
|
|
3197
|
+
const control = useControl(props11);
|
|
3198
|
+
useControlField(props11);
|
|
3014
3199
|
return {
|
|
3015
3200
|
...inputControl.expose(),
|
|
3016
3201
|
...control
|
|
@@ -3055,15 +3240,15 @@ var VTextarea = defineComponent({
|
|
|
3055
3240
|
}
|
|
3056
3241
|
});
|
|
3057
3242
|
var {
|
|
3058
|
-
props:
|
|
3059
|
-
emits:
|
|
3243
|
+
props: props10,
|
|
3244
|
+
emits: emits10
|
|
3060
3245
|
} = createFormSettings({
|
|
3061
3246
|
nodeType: VUI_FORM_SYMBOL
|
|
3062
3247
|
});
|
|
3063
3248
|
var formSlots = defineSlots();
|
|
3064
3249
|
function createVFormProps() {
|
|
3065
3250
|
return {
|
|
3066
|
-
...
|
|
3251
|
+
...props10,
|
|
3067
3252
|
...createControlProps(),
|
|
3068
3253
|
...formSlots()
|
|
3069
3254
|
// disableAutoScroll: Boolean,
|
|
@@ -3072,11 +3257,11 @@ function createVFormProps() {
|
|
|
3072
3257
|
var VForm = defineComponent({
|
|
3073
3258
|
name: "VForm",
|
|
3074
3259
|
props: createVFormProps(),
|
|
3075
|
-
emits:
|
|
3260
|
+
emits: emits10,
|
|
3076
3261
|
slots: formSlots,
|
|
3077
|
-
setup(
|
|
3262
|
+
setup(props11, ctx) {
|
|
3078
3263
|
const vui = useVui();
|
|
3079
|
-
const nodeControl = useForm(
|
|
3264
|
+
const nodeControl = useForm(props11, ctx, {
|
|
3080
3265
|
nodeType: VUI_FORM_SYMBOL,
|
|
3081
3266
|
scrollToElement: (el) => {
|
|
3082
3267
|
const scroller = getDocumentScroller();
|
|
@@ -3095,7 +3280,7 @@ var VForm = defineComponent({
|
|
|
3095
3280
|
"v-form--sending": nodeControl.sending
|
|
3096
3281
|
}];
|
|
3097
3282
|
});
|
|
3098
|
-
useControl(
|
|
3283
|
+
useControl(props11);
|
|
3099
3284
|
return {
|
|
3100
3285
|
...nodeControl.expose(),
|
|
3101
3286
|
classes
|
|
@@ -3131,13 +3316,13 @@ var VTab = defineComponent({
|
|
|
3131
3316
|
emits: {
|
|
3132
3317
|
click: (ev) => true
|
|
3133
3318
|
},
|
|
3134
|
-
setup(
|
|
3319
|
+
setup(props11, ctx) {
|
|
3135
3320
|
const classesRef = computed(() => ({
|
|
3136
|
-
"v-tab--active":
|
|
3321
|
+
"v-tab--active": props11.active
|
|
3137
3322
|
}));
|
|
3138
3323
|
const exposeValues = {
|
|
3139
|
-
value:
|
|
3140
|
-
active:
|
|
3324
|
+
value: props11.value,
|
|
3325
|
+
active: props11.active
|
|
3141
3326
|
};
|
|
3142
3327
|
ctx.expose(exposeValues);
|
|
3143
3328
|
return () => {
|
|
@@ -3146,7 +3331,7 @@ var VTab = defineComponent({
|
|
|
3146
3331
|
value,
|
|
3147
3332
|
icon,
|
|
3148
3333
|
active
|
|
3149
|
-
} =
|
|
3334
|
+
} = props11;
|
|
3150
3335
|
const classes = ["v-tab", classesRef.value];
|
|
3151
3336
|
const children = createVNode("span", {
|
|
3152
3337
|
"class": "v-tab__content"
|
|
@@ -3215,7 +3400,7 @@ var VTabs = defineComponent({
|
|
|
3215
3400
|
change: (newValue) => true
|
|
3216
3401
|
},
|
|
3217
3402
|
slots: slots11,
|
|
3218
|
-
setup(
|
|
3403
|
+
setup(props11, ctx) {
|
|
3219
3404
|
const vui = useVui();
|
|
3220
3405
|
const internalValueRef = ref(null);
|
|
3221
3406
|
const scrollerRef = useVScrollerRef();
|
|
@@ -3233,15 +3418,15 @@ var VTabs = defineComponent({
|
|
|
3233
3418
|
}
|
|
3234
3419
|
});
|
|
3235
3420
|
const colorScope = useScopeColorClass({
|
|
3236
|
-
color: () =>
|
|
3421
|
+
color: () => props11.color || vui.setting("tabDefault").color
|
|
3237
3422
|
});
|
|
3238
3423
|
const classes = computed(() => [colorScope.value.className]);
|
|
3239
3424
|
const computedItemsRef = computed(() => {
|
|
3240
3425
|
const current = currentRef.value;
|
|
3241
3426
|
const {
|
|
3242
3427
|
router
|
|
3243
|
-
} =
|
|
3244
|
-
return
|
|
3428
|
+
} = props11;
|
|
3429
|
+
return props11.items.map((item) => {
|
|
3245
3430
|
const {
|
|
3246
3431
|
value
|
|
3247
3432
|
} = item;
|
|
@@ -3266,9 +3451,9 @@ var VTabs = defineComponent({
|
|
|
3266
3451
|
tabRefs.value.push(ref10);
|
|
3267
3452
|
};
|
|
3268
3453
|
function setupInternalValue(routable) {
|
|
3269
|
-
let value =
|
|
3454
|
+
let value = props11.modelValue;
|
|
3270
3455
|
if (value == null || value === "") {
|
|
3271
|
-
const firstItem =
|
|
3456
|
+
const firstItem = props11.items[0];
|
|
3272
3457
|
if (!firstItem)
|
|
3273
3458
|
return;
|
|
3274
3459
|
value = firstItem.value;
|
|
@@ -3278,7 +3463,7 @@ var VTabs = defineComponent({
|
|
|
3278
3463
|
if (routable) {
|
|
3279
3464
|
const {
|
|
3280
3465
|
router
|
|
3281
|
-
} =
|
|
3466
|
+
} = props11;
|
|
3282
3467
|
if (!router)
|
|
3283
3468
|
return;
|
|
3284
3469
|
const hit = computedItemsRef.value.find((item) => item.value === value);
|
|
@@ -3296,7 +3481,7 @@ var VTabs = defineComponent({
|
|
|
3296
3481
|
if (route.fullPath === vui.location.currentRoute.fullPath)
|
|
3297
3482
|
return;
|
|
3298
3483
|
vui.router[to2.replace ? "replace" : "push"](to2);
|
|
3299
|
-
} else if (!
|
|
3484
|
+
} else if (!props11.router && props11.modelValue !== value) {
|
|
3300
3485
|
ctx.emit("update:modelValue", value);
|
|
3301
3486
|
ctx.emit("change", value);
|
|
3302
3487
|
}
|
|
@@ -3311,7 +3496,7 @@ var VTabs = defineComponent({
|
|
|
3311
3496
|
}
|
|
3312
3497
|
const {
|
|
3313
3498
|
onBeforeChange
|
|
3314
|
-
} =
|
|
3499
|
+
} = props11;
|
|
3315
3500
|
if (onBeforeChange) {
|
|
3316
3501
|
let result = onBeforeChange(value, currentRef.value);
|
|
3317
3502
|
if (isPromise(result)) {
|
|
@@ -3348,7 +3533,7 @@ var VTabs = defineComponent({
|
|
|
3348
3533
|
return;
|
|
3349
3534
|
const {
|
|
3350
3535
|
autoScrollOffset
|
|
3351
|
-
} =
|
|
3536
|
+
} = props11;
|
|
3352
3537
|
const tabLeft = $tab.offsetLeft;
|
|
3353
3538
|
const tabWidth = $tab.offsetWidth;
|
|
3354
3539
|
const tabRight = tabLeft + tabWidth;
|
|
@@ -3378,17 +3563,17 @@ var VTabs = defineComponent({
|
|
|
3378
3563
|
});
|
|
3379
3564
|
}
|
|
3380
3565
|
}
|
|
3381
|
-
watch(() =>
|
|
3382
|
-
watch(() =>
|
|
3566
|
+
watch(() => props11.modelValue, () => setupInternalValue(true));
|
|
3567
|
+
watch(() => props11.items, () => setupInternalValue(), {
|
|
3383
3568
|
deep: true
|
|
3384
3569
|
});
|
|
3385
3570
|
watch(() => internalValueRef.value, (newValue) => {
|
|
3386
3571
|
scrollToTab(newValue);
|
|
3387
3572
|
});
|
|
3388
3573
|
vui.location.watchRoute((route) => {
|
|
3389
|
-
if (!
|
|
3574
|
+
if (!props11.router)
|
|
3390
3575
|
return;
|
|
3391
|
-
const path =
|
|
3576
|
+
const path = props11.withQuery ? route.fullPath : route.path;
|
|
3392
3577
|
const hit = computedItemsRef.value.find(({
|
|
3393
3578
|
location
|
|
3394
3579
|
}) => {
|
|
@@ -3472,10 +3657,10 @@ var VBreadcrumbs = defineComponent({
|
|
|
3472
3657
|
},
|
|
3473
3658
|
divider: [String, Function]
|
|
3474
3659
|
},
|
|
3475
|
-
setup(
|
|
3660
|
+
setup(props11, ctx) {
|
|
3476
3661
|
const vui = useVui();
|
|
3477
3662
|
const computedItemsRef = computed(() => {
|
|
3478
|
-
const items =
|
|
3663
|
+
const items = props11.items.map((rawItem) => {
|
|
3479
3664
|
return typeof rawItem === "string" ? {
|
|
3480
3665
|
text: rawItem
|
|
3481
3666
|
} : rawItem;
|
|
@@ -3505,7 +3690,7 @@ var VBreadcrumbs = defineComponent({
|
|
|
3505
3690
|
if (lengthRef.value < 1)
|
|
3506
3691
|
return;
|
|
3507
3692
|
let dividerSlot;
|
|
3508
|
-
const propDivider =
|
|
3693
|
+
const propDivider = props11.divider;
|
|
3509
3694
|
if (propDivider) {
|
|
3510
3695
|
dividerSlot = typeof propDivider === "function" ? propDivider : () => propDivider;
|
|
3511
3696
|
} else {
|
|
@@ -3577,12 +3762,12 @@ var VContentSwitcher = defineComponent({
|
|
|
3577
3762
|
emits: {
|
|
3578
3763
|
"update:modelValue": (modelValue) => true
|
|
3579
3764
|
},
|
|
3580
|
-
setup(
|
|
3765
|
+
setup(props11, ctx) {
|
|
3581
3766
|
const internalValueRef = ref("");
|
|
3582
3767
|
const transitionRef = ref("");
|
|
3583
3768
|
const elRef = ref(null);
|
|
3584
3769
|
const anchorRef = ref(null);
|
|
3585
|
-
const computedOrderRef = computed(() =>
|
|
3770
|
+
const computedOrderRef = computed(() => props11.order.map((row) => {
|
|
3586
3771
|
return typeof row === "string" ? row : row.value;
|
|
3587
3772
|
}));
|
|
3588
3773
|
const currentRef = computed({
|
|
@@ -3597,7 +3782,7 @@ var VContentSwitcher = defineComponent({
|
|
|
3597
3782
|
const autotopSettingsRef = computed(() => {
|
|
3598
3783
|
let {
|
|
3599
3784
|
autotop: settings
|
|
3600
|
-
} =
|
|
3785
|
+
} = props11;
|
|
3601
3786
|
if (settings === true)
|
|
3602
3787
|
settings = {};
|
|
3603
3788
|
if (!settings)
|
|
@@ -3622,7 +3807,7 @@ var VContentSwitcher = defineComponent({
|
|
|
3622
3807
|
}
|
|
3623
3808
|
return el;
|
|
3624
3809
|
}
|
|
3625
|
-
watch(() =>
|
|
3810
|
+
watch(() => props11.modelValue, (value, beforeValue) => {
|
|
3626
3811
|
if (value == null)
|
|
3627
3812
|
return;
|
|
3628
3813
|
internalValueRef.value = value;
|
|
@@ -3644,7 +3829,7 @@ var VContentSwitcher = defineComponent({
|
|
|
3644
3829
|
});
|
|
3645
3830
|
watch(currentRef, () => {
|
|
3646
3831
|
const autotopSettings = autotopSettingsRef.value;
|
|
3647
|
-
if (autotopSettings &&
|
|
3832
|
+
if (autotopSettings && props11.modelValue != null) {
|
|
3648
3833
|
seeTop(autotopSettings);
|
|
3649
3834
|
}
|
|
3650
3835
|
});
|
|
@@ -3803,27 +3988,27 @@ var VDataTable = defineComponent({
|
|
|
3803
3988
|
emits: {
|
|
3804
3989
|
input: (selecteds) => true
|
|
3805
3990
|
},
|
|
3806
|
-
setup(
|
|
3991
|
+
setup(props11, ctx) {
|
|
3807
3992
|
const vui = useVui();
|
|
3808
3993
|
const bootedRef = ref(false);
|
|
3809
3994
|
const footerHeightRef = ref(0);
|
|
3810
|
-
const internalValues = ref(
|
|
3995
|
+
const internalValues = ref(props11.modelValue.slice());
|
|
3811
3996
|
const rowSettings = computed(() => {
|
|
3812
3997
|
const {
|
|
3813
3998
|
rowSettings: rowSettings2
|
|
3814
|
-
} =
|
|
3999
|
+
} = props11;
|
|
3815
4000
|
if (!rowSettings2)
|
|
3816
4001
|
return () => ({});
|
|
3817
4002
|
return typeof rowSettings2 === "function" ? rowSettings2 : () => rowSettings2;
|
|
3818
4003
|
});
|
|
3819
4004
|
const containedVariant = vui.setting("containedVariant");
|
|
3820
|
-
const sortedItemKeysRef = computed(() =>
|
|
3821
|
-
const isEmptyRef = computed(() =>
|
|
4005
|
+
const sortedItemKeysRef = computed(() => props11.items.map((item) => item[props11.itemKey]));
|
|
4006
|
+
const isEmptyRef = computed(() => props11.items.length === 0);
|
|
3822
4007
|
const headersRef = computed(() => {
|
|
3823
4008
|
const {
|
|
3824
4009
|
headers,
|
|
3825
4010
|
selectable
|
|
3826
|
-
} =
|
|
4011
|
+
} = props11;
|
|
3827
4012
|
const ret = [];
|
|
3828
4013
|
if (selectable) {
|
|
3829
4014
|
ret.push({
|
|
@@ -3838,7 +4023,7 @@ var VDataTable = defineComponent({
|
|
|
3838
4023
|
const searchQueryValues = computed(() => {
|
|
3839
4024
|
let {
|
|
3840
4025
|
searchQuery
|
|
3841
|
-
} =
|
|
4026
|
+
} = props11;
|
|
3842
4027
|
if (!searchQuery) {
|
|
3843
4028
|
return [];
|
|
3844
4029
|
}
|
|
@@ -3861,14 +4046,14 @@ var VDataTable = defineComponent({
|
|
|
3861
4046
|
const emptyMessage = computed(() => {
|
|
3862
4047
|
let message;
|
|
3863
4048
|
if (searchQueryValues.value.length) {
|
|
3864
|
-
message =
|
|
4049
|
+
message = props11.noResultsMessage || vui.setting("noResultsMessage") || "No search results found.";
|
|
3865
4050
|
} else {
|
|
3866
|
-
message =
|
|
4051
|
+
message = props11.noDataMessage || vui.setting("noDataMessage") || "No data was available.";
|
|
3867
4052
|
}
|
|
3868
4053
|
return typeof message === "function" ? message(vui) : message;
|
|
3869
4054
|
});
|
|
3870
4055
|
const classesRef = computed(() => [{
|
|
3871
|
-
"v-data-table--fixed-header":
|
|
4056
|
+
"v-data-table--fixed-header": props11.fixedHeader
|
|
3872
4057
|
}]);
|
|
3873
4058
|
const layout = VueAppLayout.use();
|
|
3874
4059
|
const bodyInnerStylesRef = computed(() => {
|
|
@@ -3877,7 +4062,7 @@ var VDataTable = defineComponent({
|
|
|
3877
4062
|
const {
|
|
3878
4063
|
fixedHeader,
|
|
3879
4064
|
maxHeight
|
|
3880
|
-
} =
|
|
4065
|
+
} = props11;
|
|
3881
4066
|
const footerHeight = footerHeightRef.value;
|
|
3882
4067
|
const _maxHeight = maxHeight || (fixedHeader ? "100%" : maxHeight);
|
|
3883
4068
|
if (!_maxHeight) {
|
|
@@ -3887,28 +4072,28 @@ var VDataTable = defineComponent({
|
|
|
3887
4072
|
maxHeight: layout.calicurateViewHeight(_maxHeight, -footerHeight - 100, 200)
|
|
3888
4073
|
};
|
|
3889
4074
|
});
|
|
3890
|
-
const defaultOrderQueryRef = computed(() =>
|
|
4075
|
+
const defaultOrderQueryRef = computed(() => props11.defaultOrder === props11.ascQueryValue ? props11.ascQueryValue : props11.descQueryValue);
|
|
3891
4076
|
const isTransitioningRef = computed(() => {
|
|
3892
|
-
return vui.location.isQueryOnlyTransitioning([
|
|
4077
|
+
return vui.location.isQueryOnlyTransitioning([props11.pageQuery, props11.sortQuery, props11.orderQuery, props11.limitQuery]);
|
|
3893
4078
|
});
|
|
3894
|
-
const pageRef = computed(() => vui.location.getQuery(
|
|
3895
|
-
const needShowHeaderControlRef = computed(() =>
|
|
4079
|
+
const pageRef = computed(() => vui.location.getQuery(props11.pageQuery, Number, 1));
|
|
4080
|
+
const needShowHeaderControlRef = computed(() => props11.items.length > props11.contorolThreshold);
|
|
3896
4081
|
const sortByRef = computed({
|
|
3897
4082
|
get: () => {
|
|
3898
|
-
return vui.location.getQuery(
|
|
4083
|
+
return vui.location.getQuery(props11.sortQuery);
|
|
3899
4084
|
},
|
|
3900
4085
|
set(value) {
|
|
3901
4086
|
vui.location.pushQuery({
|
|
3902
|
-
[
|
|
3903
|
-
[
|
|
4087
|
+
[props11.sortQuery]: value || null,
|
|
4088
|
+
[props11.pageQuery]: 1
|
|
3904
4089
|
});
|
|
3905
4090
|
}
|
|
3906
4091
|
});
|
|
3907
|
-
const ordersRef = computed(() => [
|
|
3908
|
-
const usePaigingRef = computed(() =>
|
|
4092
|
+
const ordersRef = computed(() => [props11.ascQueryValue, props11.descQueryValue]);
|
|
4093
|
+
const usePaigingRef = computed(() => props11.limits.length > 0);
|
|
3909
4094
|
const orderByRef = computed({
|
|
3910
4095
|
get: () => {
|
|
3911
|
-
const value = vui.location.getQuery(
|
|
4096
|
+
const value = vui.location.getQuery(props11.orderQuery);
|
|
3912
4097
|
if (typeof value !== "string" || !ordersRef.value.includes(value)) {
|
|
3913
4098
|
return;
|
|
3914
4099
|
}
|
|
@@ -3916,33 +4101,33 @@ var VDataTable = defineComponent({
|
|
|
3916
4101
|
},
|
|
3917
4102
|
set(value) {
|
|
3918
4103
|
vui.location.pushQuery({
|
|
3919
|
-
[
|
|
3920
|
-
[
|
|
4104
|
+
[props11.orderQuery]: value || null,
|
|
4105
|
+
[props11.pageQuery]: 1
|
|
3921
4106
|
});
|
|
3922
4107
|
}
|
|
3923
4108
|
});
|
|
3924
4109
|
const offsetRef = computed(() => (pageRef.value - 1) * limitRef.value);
|
|
3925
4110
|
const limitRef = computed({
|
|
3926
|
-
get: () => vui.location.getQuery(
|
|
4111
|
+
get: () => vui.location.getQuery(props11.limitQuery, Number, props11.limitDefault),
|
|
3927
4112
|
set: (value) => {
|
|
3928
4113
|
const page = Math.floor(offsetRef.value / value) + 1;
|
|
3929
4114
|
vui.location.pushQuery({
|
|
3930
|
-
[
|
|
3931
|
-
[
|
|
4115
|
+
[props11.limitQuery]: value,
|
|
4116
|
+
[props11.pageQuery]: page
|
|
3932
4117
|
});
|
|
3933
4118
|
}
|
|
3934
4119
|
});
|
|
3935
4120
|
const pageLengthRef = computed(() => {
|
|
3936
4121
|
const {
|
|
3937
4122
|
total
|
|
3938
|
-
} =
|
|
4123
|
+
} = props11;
|
|
3939
4124
|
const _limit = limitRef.value;
|
|
3940
4125
|
if (!total)
|
|
3941
4126
|
return 0;
|
|
3942
4127
|
return Math.ceil(total / _limit);
|
|
3943
4128
|
});
|
|
3944
|
-
const lengthRef = computed(() =>
|
|
3945
|
-
const isASCRef = computed(() => orderByRef.value ===
|
|
4129
|
+
const lengthRef = computed(() => props11.items.length);
|
|
4130
|
+
const isASCRef = computed(() => orderByRef.value === props11.ascQueryValue);
|
|
3946
4131
|
const sortIconRef = computed(() => {
|
|
3947
4132
|
let icon = vui.icon("sort");
|
|
3948
4133
|
if (typeof icon === "string") {
|
|
@@ -3972,21 +4157,21 @@ var VDataTable = defineComponent({
|
|
|
3972
4157
|
return;
|
|
3973
4158
|
const queries = {};
|
|
3974
4159
|
if (sort) {
|
|
3975
|
-
queries[
|
|
4160
|
+
queries[props11.sortQuery] = sort;
|
|
3976
4161
|
}
|
|
3977
4162
|
if (order) {
|
|
3978
|
-
queries[
|
|
4163
|
+
queries[props11.orderQuery] = order;
|
|
3979
4164
|
}
|
|
3980
4165
|
vui.location.pushQuery({
|
|
3981
4166
|
...queries,
|
|
3982
4167
|
...usePaigingRef.value ? {
|
|
3983
|
-
[
|
|
4168
|
+
[props11.pageQuery]: 1
|
|
3984
4169
|
} : void 0
|
|
3985
4170
|
});
|
|
3986
4171
|
}
|
|
3987
4172
|
function toggleOrderBy() {
|
|
3988
4173
|
return setSort({
|
|
3989
|
-
order: orderByRef.value ===
|
|
4174
|
+
order: orderByRef.value === props11.ascQueryValue ? props11.descQueryValue : props11.ascQueryValue
|
|
3990
4175
|
});
|
|
3991
4176
|
}
|
|
3992
4177
|
function isSelected(key) {
|
|
@@ -4052,7 +4237,7 @@ var VDataTable = defineComponent({
|
|
|
4052
4237
|
"class": "v-data-table__pagination",
|
|
4053
4238
|
"dense": true,
|
|
4054
4239
|
"align": "right",
|
|
4055
|
-
"routeQuery":
|
|
4240
|
+
"routeQuery": props11.pageQuery,
|
|
4056
4241
|
"modelValue": pageRef.value,
|
|
4057
4242
|
"length": pageLengthRef.value
|
|
4058
4243
|
}, null);
|
|
@@ -4060,7 +4245,7 @@ var VDataTable = defineComponent({
|
|
|
4060
4245
|
function genControls() {
|
|
4061
4246
|
const {
|
|
4062
4247
|
total
|
|
4063
|
-
} =
|
|
4248
|
+
} = props11;
|
|
4064
4249
|
const offset = offsetRef.value;
|
|
4065
4250
|
const length = lengthRef.value;
|
|
4066
4251
|
return createVNode("div", {
|
|
@@ -4078,7 +4263,7 @@ var VDataTable = defineComponent({
|
|
|
4078
4263
|
"size": "sm",
|
|
4079
4264
|
"hiddenInfo": true,
|
|
4080
4265
|
"disabled": isTransitioningRef.value,
|
|
4081
|
-
"items":
|
|
4266
|
+
"items": props11.limits.map((limit) => {
|
|
4082
4267
|
return {
|
|
4083
4268
|
label: `${limit}\u4EF6`,
|
|
4084
4269
|
value: limit
|
|
@@ -4097,7 +4282,7 @@ var VDataTable = defineComponent({
|
|
|
4097
4282
|
const {
|
|
4098
4283
|
defaultOrder,
|
|
4099
4284
|
ascQueryValue
|
|
4100
|
-
} =
|
|
4285
|
+
} = props11;
|
|
4101
4286
|
const children = headersRef.value.map((header) => {
|
|
4102
4287
|
const {
|
|
4103
4288
|
label,
|
|
@@ -4246,7 +4431,7 @@ var VDataTable = defineComponent({
|
|
|
4246
4431
|
const {
|
|
4247
4432
|
items,
|
|
4248
4433
|
itemKey
|
|
4249
|
-
} =
|
|
4434
|
+
} = props11;
|
|
4250
4435
|
const {
|
|
4251
4436
|
item: itemSlot = defaultItemSlot
|
|
4252
4437
|
} = ctx.slots;
|
|
@@ -4263,10 +4448,10 @@ var VDataTable = defineComponent({
|
|
|
4263
4448
|
"class": "v-data-table__table__body"
|
|
4264
4449
|
}, [children]);
|
|
4265
4450
|
}
|
|
4266
|
-
watch(() =>
|
|
4451
|
+
watch(() => props11.modelValue, (modelValue) => {
|
|
4267
4452
|
internalValues.value = modelValue.slice();
|
|
4268
4453
|
});
|
|
4269
|
-
watch(() =>
|
|
4454
|
+
watch(() => props11.items, (items) => {
|
|
4270
4455
|
internalValues.value = internalValues.value.filter((key) => {
|
|
4271
4456
|
return sortedItemKeysRef.value.includes(key);
|
|
4272
4457
|
});
|
|
@@ -4314,10 +4499,10 @@ var VDataTable = defineComponent({
|
|
|
4314
4499
|
});
|
|
4315
4500
|
var VApp = defineComponent({
|
|
4316
4501
|
name: "VApp",
|
|
4317
|
-
setup(
|
|
4502
|
+
setup(props11, ctx) {
|
|
4318
4503
|
useInjectTheme();
|
|
4319
4504
|
return () => {
|
|
4320
|
-
return createVNode(
|
|
4505
|
+
return createVNode(VStackContainer, null, {
|
|
4321
4506
|
default: () => [createVNode(VAppLayout, null, ctx.slots)]
|
|
4322
4507
|
});
|
|
4323
4508
|
};
|
|
@@ -4330,15 +4515,15 @@ var VToolbar = defineComponent({
|
|
|
4330
4515
|
...colorSchemeProps(),
|
|
4331
4516
|
dense: Boolean
|
|
4332
4517
|
},
|
|
4333
|
-
setup(
|
|
4518
|
+
setup(props11, ctx) {
|
|
4334
4519
|
const vui = useVui();
|
|
4335
|
-
const elevation = useElevation(
|
|
4520
|
+
const elevation = useElevation(props11, {
|
|
4336
4521
|
defaultValue: 4
|
|
4337
4522
|
});
|
|
4338
|
-
const dense = computed(() =>
|
|
4523
|
+
const dense = computed(() => props11.dense);
|
|
4339
4524
|
const color = useColorClasses({
|
|
4340
|
-
color: () =>
|
|
4341
|
-
variant: () =>
|
|
4525
|
+
color: () => props11.color,
|
|
4526
|
+
variant: () => props11.variant || vui.setting("containedVariant")
|
|
4342
4527
|
});
|
|
4343
4528
|
const classes = computed(() => {
|
|
4344
4529
|
return [elevation.elevationClassName.value, color.colorClasses.value, {
|
|
@@ -4357,11 +4542,11 @@ var VToolbarMenu = defineComponent({
|
|
|
4357
4542
|
name: "VToolbarMenu",
|
|
4358
4543
|
inheritAttrs: false,
|
|
4359
4544
|
props: {},
|
|
4360
|
-
setup(
|
|
4545
|
+
setup(props11, ctx) {
|
|
4361
4546
|
const vui = useVui();
|
|
4362
4547
|
const plain = vui.setting("plainVariant");
|
|
4363
4548
|
return () => {
|
|
4364
|
-
const variant =
|
|
4549
|
+
const variant = props11.variant || plain;
|
|
4365
4550
|
return createVNode(VButton, mergeProps(ctx.attrs, {
|
|
4366
4551
|
"variant": variant,
|
|
4367
4552
|
"class": ["v-toolbar-menu"]
|
|
@@ -4379,8 +4564,8 @@ var VToolbarEdge = defineComponent({
|
|
|
4379
4564
|
required: true
|
|
4380
4565
|
}
|
|
4381
4566
|
},
|
|
4382
|
-
setup(
|
|
4383
|
-
const edge = computed(() =>
|
|
4567
|
+
setup(props11, ctx) {
|
|
4568
|
+
const edge = computed(() => props11.edge);
|
|
4384
4569
|
return () => {
|
|
4385
4570
|
const children = renderSlotOrEmpty(ctx.slots, "default");
|
|
4386
4571
|
const hasChildren = !!children && children.length > 0;
|
|
@@ -4403,8 +4588,8 @@ var VToolbarTitle = defineComponent({
|
|
|
4403
4588
|
...slots12()
|
|
4404
4589
|
},
|
|
4405
4590
|
slots: slots12,
|
|
4406
|
-
setup(
|
|
4407
|
-
const _TagName = computed(() =>
|
|
4591
|
+
setup(props11, ctx) {
|
|
4592
|
+
const _TagName = computed(() => props11.tag);
|
|
4408
4593
|
return () => {
|
|
4409
4594
|
const TagName = _TagName.value;
|
|
4410
4595
|
return createVNode(TagName, {
|
|
@@ -4486,8 +4671,52 @@ var VuiService = class {
|
|
|
4486
4671
|
this.location = new LocationService({
|
|
4487
4672
|
router: this.router
|
|
4488
4673
|
});
|
|
4489
|
-
this.stack = stackService;
|
|
4490
4674
|
this.useLink = options.useLink || useLink;
|
|
4675
|
+
this.stack = stackService;
|
|
4676
|
+
const {
|
|
4677
|
+
uiSettings
|
|
4678
|
+
} = options;
|
|
4679
|
+
this.stackActions = {
|
|
4680
|
+
ok: ({
|
|
4681
|
+
bindings
|
|
4682
|
+
}) => createVNode(VButton, mergeProps(uiSettings.dialogOk, bindings), {
|
|
4683
|
+
default: () => [createTextVNode("OK")]
|
|
4684
|
+
}),
|
|
4685
|
+
cancel: ({
|
|
4686
|
+
bindings
|
|
4687
|
+
}) => createVNode(VButton, mergeProps(uiSettings.dialogCancel, bindings), {
|
|
4688
|
+
default: () => [createTextVNode("CANCEL")]
|
|
4689
|
+
}),
|
|
4690
|
+
close: ({
|
|
4691
|
+
bindings
|
|
4692
|
+
}) => createVNode(VButton, mergeProps(uiSettings.dialogClose, bindings), {
|
|
4693
|
+
default: () => [createTextVNode("CLOSE")]
|
|
4694
|
+
})
|
|
4695
|
+
};
|
|
4696
|
+
this.dialog = stackService.createLauncher(VDialog);
|
|
4697
|
+
this.alert = stackService.createLauncher(VDialog, (props11) => {
|
|
4698
|
+
const actions = [...props11?.actions || []];
|
|
4699
|
+
if (!actions.length) {
|
|
4700
|
+
actions.push(this.stackAction("ok"));
|
|
4701
|
+
}
|
|
4702
|
+
return {
|
|
4703
|
+
...props11,
|
|
4704
|
+
actions
|
|
4705
|
+
};
|
|
4706
|
+
});
|
|
4707
|
+
this.confirm = stackService.createLauncher(VDialog, (props11) => {
|
|
4708
|
+
const actions = [...props11?.actions || []];
|
|
4709
|
+
if (!actions.length) {
|
|
4710
|
+
actions.push(this.stackAction("cancel"), this.stackAction("ok"));
|
|
4711
|
+
}
|
|
4712
|
+
return {
|
|
4713
|
+
...props11,
|
|
4714
|
+
actions
|
|
4715
|
+
};
|
|
4716
|
+
});
|
|
4717
|
+
this.snackbar = stackService.createLauncher(VSnackbar);
|
|
4718
|
+
this.menu = stackService.createLauncher(VMenu);
|
|
4719
|
+
this.sheet = stackService.createLauncher(VSheetModal);
|
|
4491
4720
|
}
|
|
4492
4721
|
configure(options) {
|
|
4493
4722
|
options && Object.assign(this.options, options);
|
|
@@ -4517,21 +4746,6 @@ var VuiService = class {
|
|
|
4517
4746
|
} = this;
|
|
4518
4747
|
return requiredChip && requiredChip();
|
|
4519
4748
|
}
|
|
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
4749
|
formPrompt(settings, slot) {
|
|
4536
4750
|
let form;
|
|
4537
4751
|
const options = {
|
|
@@ -4543,9 +4757,9 @@ var VuiService = class {
|
|
|
4543
4757
|
state
|
|
4544
4758
|
} = options;
|
|
4545
4759
|
const _state = reactive(state);
|
|
4546
|
-
options.actions = options.actions || [this.
|
|
4760
|
+
options.actions = options.actions || [this.stackAction("cancel", void 0, {
|
|
4547
4761
|
size
|
|
4548
|
-
}), this.
|
|
4762
|
+
}), this.stackAction("ok", void 0, {
|
|
4549
4763
|
size,
|
|
4550
4764
|
onClick: () => {
|
|
4551
4765
|
if (form) {
|
|
@@ -4554,30 +4768,26 @@ var VuiService = class {
|
|
|
4554
4768
|
}
|
|
4555
4769
|
}
|
|
4556
4770
|
})];
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
|
|
4560
|
-
|
|
4561
|
-
|
|
4562
|
-
|
|
4563
|
-
|
|
4564
|
-
|
|
4565
|
-
|
|
4566
|
-
|
|
4567
|
-
|
|
4568
|
-
|
|
4569
|
-
|
|
4570
|
-
|
|
4571
|
-
form
|
|
4572
|
-
|
|
4573
|
-
|
|
4574
|
-
|
|
4575
|
-
|
|
4576
|
-
}
|
|
4577
|
-
});
|
|
4578
|
-
}
|
|
4771
|
+
return this.dialog(options, (stack) => {
|
|
4772
|
+
return createVNode(VForm, {
|
|
4773
|
+
"disableAutoScroll": true,
|
|
4774
|
+
"size": size,
|
|
4775
|
+
"onVnodeBeforeUnmount": () => {
|
|
4776
|
+
form = void 0;
|
|
4777
|
+
},
|
|
4778
|
+
"onSubmit": (ev) => {
|
|
4779
|
+
stack.resolve(_state);
|
|
4780
|
+
}
|
|
4781
|
+
}, {
|
|
4782
|
+
default: (_form) => {
|
|
4783
|
+
form = _form;
|
|
4784
|
+
return slot(_state, {
|
|
4785
|
+
form,
|
|
4786
|
+
stack
|
|
4787
|
+
});
|
|
4788
|
+
}
|
|
4789
|
+
});
|
|
4579
4790
|
});
|
|
4580
|
-
return this.dialog(resolved);
|
|
4581
4791
|
}
|
|
4582
4792
|
prompt(rawOptions = {}) {
|
|
4583
4793
|
const options = typeof rawOptions === "string" ? {
|
|
@@ -4611,6 +4821,30 @@ var VuiService = class {
|
|
|
4611
4821
|
return result ? result.input : result;
|
|
4612
4822
|
});
|
|
4613
4823
|
}
|
|
4824
|
+
stackAction(key, override, attrs) {
|
|
4825
|
+
const factory = this.stackActions[key];
|
|
4826
|
+
const _onClick = BUILTIN_ACTION_HANDLERS[key];
|
|
4827
|
+
const action = {
|
|
4828
|
+
key,
|
|
4829
|
+
content: ({
|
|
4830
|
+
control,
|
|
4831
|
+
key: key2
|
|
4832
|
+
}) => {
|
|
4833
|
+
const onClick = (ev) => _onClick(control, ev);
|
|
4834
|
+
return factory({
|
|
4835
|
+
service: this.stack,
|
|
4836
|
+
control,
|
|
4837
|
+
key: key2,
|
|
4838
|
+
bindings: {
|
|
4839
|
+
onClick,
|
|
4840
|
+
...attrs
|
|
4841
|
+
}
|
|
4842
|
+
});
|
|
4843
|
+
},
|
|
4844
|
+
...override
|
|
4845
|
+
};
|
|
4846
|
+
return action;
|
|
4847
|
+
}
|
|
4614
4848
|
};
|
|
4615
4849
|
function mergeVuiPluginOptions(base, override) {
|
|
4616
4850
|
if (!override)
|
|
@@ -4628,32 +4862,11 @@ var VuiPlugin = class {
|
|
|
4628
4862
|
static install(app, opts) {
|
|
4629
4863
|
const {
|
|
4630
4864
|
colorScheme,
|
|
4631
|
-
stack
|
|
4632
|
-
uiSettings
|
|
4865
|
+
stack
|
|
4633
4866
|
} = opts;
|
|
4634
4867
|
const vueColorSchemePlugin = new VueColorSchemePlugin(colorScheme);
|
|
4635
4868
|
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
|
-
});
|
|
4869
|
+
installVueStackPlugin(app, stack);
|
|
4657
4870
|
installVueAppLayout(app);
|
|
4658
4871
|
installBodyScrollLockDirective(app);
|
|
4659
4872
|
installClickOutsideDirective(app);
|
|
@@ -4670,6 +4883,6 @@ function installVuiPlugin(app, opts) {
|
|
|
4670
4883
|
return app.use(VuiPlugin, opts);
|
|
4671
4884
|
}
|
|
4672
4885
|
|
|
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 };
|
|
4886
|
+
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
4887
|
//# sourceMappingURL=out.js.map
|
|
4675
4888
|
//# sourceMappingURL=vui.mjs.map
|