@wfrog/vc-ui 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/chunk/{CCmEeM7D.mjs → B3GxuXVE.mjs} +6 -6
- package/dist/es/chunk/BL8WhaLp.mjs +427 -0
- package/dist/es/chunk/{BiHWk71g.mjs → BPqrpkTb.mjs} +4 -4
- package/dist/es/chunk/{C_7t9blX.mjs → BZ1uhZQF.mjs} +1 -1
- package/dist/es/chunk/{-ga82G_B.mjs → BdVq9mV6.mjs} +1 -1
- package/dist/es/chunk/{DGGhWn1A.mjs → BfjuZmry.mjs} +6 -5
- package/dist/es/chunk/{BLLKi_0v.mjs → Bu3XHP55.mjs} +1 -1
- package/dist/es/chunk/{DEiqPcuO.mjs → BvNFaD5d.mjs} +3 -3
- package/dist/es/chunk/BxibBO68.mjs +5741 -0
- package/dist/es/chunk/{DO-mBaf5.mjs → By7FMB3I.mjs} +1 -43
- package/dist/es/chunk/{DATKTbFj.mjs → CGhekNBa.mjs} +5 -5
- package/dist/es/chunk/{plK2vnjp.mjs → CJ0afvkJ.mjs} +1 -1
- package/dist/es/chunk/{CtYp4FB7.mjs → CK5Bluh4.mjs} +2 -2
- package/dist/es/chunk/{Vv8g5_A1.mjs → CKZGL4_3.mjs} +9 -8
- package/dist/es/chunk/CNEMJL35.mjs +69 -0
- package/dist/es/chunk/{C9ldJ8Hh.mjs → CPCieLBG.mjs} +1 -1
- package/dist/es/chunk/{C50_dziC.mjs → CQz3lhyS.mjs} +2 -1
- package/dist/es/chunk/{Cekqdlxf.mjs → CbYM6R_O.mjs} +12 -77
- package/dist/es/chunk/{CQbpo0im.mjs → CboHfRXN.mjs} +5 -6
- package/dist/es/chunk/{BambM7zX.mjs → Cdh3HNZa.mjs} +2 -2
- package/dist/es/chunk/{aX4SRHmD.mjs → Cg-Krnly.mjs} +2 -1
- package/dist/es/chunk/{9qQNa4bM.mjs → Cjp0Czyu.mjs} +1 -1
- package/dist/es/chunk/Cmb_E8Ip.mjs +184 -0
- package/dist/es/chunk/{BIK5Djc_.mjs → Co77DVCw.mjs} +2 -2
- package/dist/es/chunk/CqTa_Vd-.mjs +375 -0
- package/dist/es/{components/dual-pane/dual-pane.mjs → chunk/CsjEhAYY.mjs} +11 -91
- package/dist/es/chunk/{BQyZW57B.mjs → CwXV7M2F.mjs} +3 -3
- package/dist/es/chunk/{b9dx0jdT.mjs → D1MHFKtN.mjs} +3 -3
- package/dist/es/chunk/{DskGUrkJ.mjs → D6m3vWpc.mjs} +2 -1
- package/dist/es/chunk/{4F1xxyju.mjs → D6nWUATi.mjs} +48 -2117
- package/dist/es/chunk/{C6bIuBQg.mjs → D7CQDxqy.mjs} +3 -3
- package/dist/es/chunk/{Dqk3gyUk.mjs → D9Lr0Bzb.mjs} +1 -374
- package/dist/es/chunk/{Xk5kfdyT.mjs → DAIuzoFs.mjs} +2 -1
- package/dist/es/chunk/{OVbHCQoq.mjs → DCS0eqqM.mjs} +3 -101
- package/dist/es/chunk/{BJTCqgn1.mjs → DDR6UjaC.mjs} +1 -1
- package/dist/es/chunk/{BKmk2ptO.mjs → DNsAO9iB.mjs} +2 -2
- package/dist/es/chunk/{-_x5oKYF.mjs → DQK0ezHm.mjs} +5 -4
- package/dist/es/chunk/{BQHHM_Gw.mjs → DQi1QPak.mjs} +30 -70
- package/dist/es/chunk/{BaqDgAvL.mjs → DSt2uDNE.mjs} +22 -434
- package/dist/es/chunk/DSw4GnC6.mjs +44 -0
- package/dist/es/chunk/DTbnchOm.mjs +94 -0
- package/dist/es/chunk/DViraU6I.mjs +45 -0
- package/dist/es/chunk/{C540ZOUa.mjs → DX84QR5M.mjs} +10 -9
- package/dist/es/chunk/DYKOYbzT.mjs +2003 -0
- package/dist/es/chunk/{D1PKXAql.mjs → D_F7nIja.mjs} +3 -4
- package/dist/es/chunk/{DcTh6n4x.mjs → D_Mvdscy.mjs} +5 -4
- package/dist/es/chunk/DhGOsWxx.mjs +6 -0
- package/dist/es/chunk/{DFxeI_lP.mjs → DhGcJR5p.mjs} +6 -6
- package/dist/es/chunk/DxxbB5jY.mjs +34 -0
- package/dist/es/chunk/EMeQxUfH.mjs +49 -0
- package/dist/es/chunk/{eN6VJ63C.mjs → F2ph6lWu.mjs} +9 -8
- package/dist/es/chunk/{Dn-BFXcJ.mjs → dN0VcQc2.mjs} +1 -1
- package/dist/es/chunk/{DTpr71Gd.mjs → e5i7OJY-.mjs} +4 -4
- package/dist/es/chunk/fueZ9sVu.mjs +890 -0
- package/dist/es/chunk/{CV2NA_2e.mjs → ipA7n6-J.mjs} +1 -1
- package/dist/es/chunk/{Dw-yyl2m.mjs → q2jRgbir.mjs} +2 -2
- package/dist/es/chunk/{C72pWnuz.mjs → w7VqVeWU.mjs} +5 -4
- package/dist/es/chunk/{DWcIzeMM.mjs → ytiKcA3H.mjs} +108 -10
- package/dist/es/chunk/{DFHjl3eL.mjs → yuIXvUxc.mjs} +1 -1
- package/dist/es/components/backbottom/backbottom.mjs +2 -2
- package/dist/es/components/button/button.d.ts +2 -1
- package/dist/es/components/button/button.mjs +68 -17
- package/dist/es/components/button/button.vue.d.ts +4 -1
- package/dist/es/components/choice/choice.mjs +3 -2
- package/dist/es/components/color-switcher/color-switcher.d.ts +15 -0
- package/dist/es/components/color-switcher/color-switcher.mjs +1215 -0
- package/dist/es/components/color-switcher/color-switcher.vue.d.ts +122 -0
- package/dist/es/components/color-switcher/index.css +5 -0
- package/dist/es/components/color-switcher/index.d.ts +4 -0
- package/dist/es/components/color-switcher/index.mjs +6 -0
- package/dist/es/components/cropper/cropper.mjs +12 -11
- package/dist/es/components/cropper/cropper.vue.d.ts +2 -2
- package/dist/es/components/currency/currency.mjs +7 -7
- package/dist/es/components/dark-switcher/dark-switcher.d.ts +10 -0
- package/dist/es/components/dark-switcher/dark-switcher.mjs +87 -0
- package/dist/es/components/dark-switcher/dark-switcher.vue.d.ts +12 -0
- package/dist/es/components/dark-switcher/index.css +11 -0
- package/dist/es/components/dark-switcher/index.d.ts +4 -0
- package/dist/es/components/dark-switcher/index.mjs +6 -0
- package/dist/es/components/daterange-picker/daterange-picker.mjs +21 -20
- package/dist/es/components/dialog/dialog.d.ts +1 -1
- package/dist/es/components/dialog/dialog.mjs +46 -61
- package/dist/es/components/dialog/dialog.vue.d.ts +1 -3
- package/dist/es/components/dialog/index.css +31 -32
- package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +12 -12
- package/dist/es/components/dialog-map-point/dialog-map-point.mjs +5 -5
- package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -13
- package/dist/es/components/drag-verify/drag-verify.mjs +14 -14
- package/dist/es/components/drag-verify/index.css +11 -11
- package/dist/es/components/drawer/drawer.mjs +14 -14
- package/dist/es/components/drawer/index.css +16 -15
- package/dist/es/components/easy-pagination/easy-pagination.mjs +4 -4
- package/dist/es/components/el-icon/el-icon.mjs +2 -2
- package/dist/es/components/explorer/docs/data.d.ts +13 -0
- package/dist/es/components/explorer/explorer.d.ts +12 -0
- package/dist/es/components/explorer/explorer.mjs +64 -0
- package/dist/es/components/explorer/explorer.vue.d.ts +183 -0
- package/dist/es/components/explorer/explorer2.mjs +6 -0
- package/dist/es/components/explorer/index.css +14 -0
- package/dist/es/components/explorer/index.d.ts +4 -0
- package/dist/es/components/explorer/index.mjs +6 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.d.ts +23 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.mjs +2948 -0
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +1486 -0
- package/dist/es/components/explorer-column-table/index.css +49 -0
- package/dist/es/components/explorer-column-table/index.d.ts +4 -0
- package/dist/es/components/explorer-column-table/index.mjs +6 -0
- package/dist/es/components/explorer-filter/explorer-filter.d.ts +12 -0
- package/dist/es/components/explorer-filter/explorer-filter.mjs +81 -0
- package/dist/es/components/explorer-filter/explorer-filter.vue.d.ts +14 -0
- package/dist/es/components/explorer-filter/index.css +7 -0
- package/dist/es/components/explorer-filter/index.d.ts +4 -0
- package/dist/es/components/explorer-filter/index.mjs +6 -0
- package/dist/es/components/explorer-footer/explorer-footer.d.ts +5 -0
- package/dist/es/components/explorer-footer/explorer-footer.mjs +92 -0
- package/dist/es/components/explorer-footer/explorer-footer.vue.d.ts +21 -0
- package/dist/es/components/explorer-footer/index.css +7 -0
- package/dist/es/components/explorer-footer/index.d.ts +4 -0
- package/dist/es/components/explorer-footer/index.mjs +6 -0
- package/dist/es/components/explorer-list/explorer-list.d.ts +23 -0
- package/dist/es/components/explorer-list/explorer-list.mjs +157 -0
- package/dist/es/components/explorer-list/explorer-list.vue.d.ts +38 -0
- package/dist/es/components/explorer-list/index.css +47 -0
- package/dist/es/components/explorer-list/index.d.ts +4 -0
- package/dist/es/components/explorer-list/index.mjs +6 -0
- package/dist/es/components/explorer-panel/explorer-panel.d.ts +14 -0
- package/dist/es/components/explorer-panel/explorer-panel.mjs +77 -0
- package/dist/es/components/explorer-panel/explorer-panel.vue.d.ts +253 -0
- package/dist/es/components/explorer-panel/explorer-panel2.mjs +6 -0
- package/dist/es/components/explorer-panel/index.css +12 -0
- package/dist/es/components/explorer-panel/index.d.ts +4 -0
- package/dist/es/components/explorer-panel/index.mjs +6 -0
- package/dist/es/components/explorer-query/explorer-query.d.ts +11 -0
- package/dist/es/components/explorer-query/explorer-query.mjs +2376 -0
- package/dist/es/components/explorer-query/explorer-query.vue.d.ts +396 -0
- package/dist/es/components/explorer-query/index.css +36 -0
- package/dist/es/components/explorer-query/index.d.ts +4 -0
- package/dist/es/components/explorer-query/index.mjs +6 -0
- package/dist/es/components/explorer-table/explorer-table.d.ts +11 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +116 -0
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +25 -0
- package/dist/es/components/explorer-table/index.css +18 -0
- package/dist/es/components/explorer-table/index.d.ts +4 -0
- package/dist/es/components/explorer-table/index.mjs +6 -0
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +3028 -0
- package/dist/es/components/explorer-tools/explorer-tools.d.ts +35 -0
- package/dist/es/components/explorer-tools/explorer-tools.mjs +585 -0
- package/dist/es/components/explorer-tools/explorer-tools.vue.d.ts +43 -0
- package/dist/es/components/explorer-tools/index.css +60 -0
- package/dist/es/components/explorer-tools/index.d.ts +4 -0
- package/dist/es/components/explorer-tools/index.mjs +6 -0
- package/dist/es/components/explorer-tree/explorer-tree.d.ts +22 -0
- package/dist/es/components/explorer-tree/explorer-tree.mjs +174 -0
- package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +2055 -0
- package/dist/es/components/explorer-tree/index.css +55 -0
- package/dist/es/components/explorer-tree/index.d.ts +4 -0
- package/dist/es/components/explorer-tree/index.mjs +6 -0
- package/dist/es/components/icon/icon2.mjs +2 -2
- package/dist/es/components/icon-picker/components/collections.vue.d.ts +242 -196
- package/dist/es/components/icon-picker/icon-picker.mjs +38 -921
- package/dist/es/components/icon-picker/index.css +31 -29
- package/dist/es/components/iconify-icon/iconify-icon.mjs +2 -2
- package/dist/es/components/image/image.mjs +5 -5
- package/dist/es/components/image/image.vue.d.ts +7 -7
- package/dist/es/components/input/index.css +4 -5
- package/dist/es/components/input/input.mjs +7 -7
- package/dist/es/components/input/input.vue.d.ts +3 -3
- package/dist/es/components/input-number/input-number.mjs +5 -5
- package/dist/es/components/pca-picker/components/c.vue.d.ts +3 -3
- package/dist/es/components/pca-picker/index.css +4 -4
- package/dist/es/components/pca-picker/pca-picker.mjs +21 -209
- package/dist/es/components/pca-picker/pca-picker.vue.d.ts +10 -10
- package/dist/es/components/screenfull/screenfull.mjs +4 -4
- package/dist/es/components/scrollbar/index.css +6 -5
- package/dist/es/components/scrollbar/scrollbar.d.ts +2 -0
- package/dist/es/components/scrollbar/scrollbar.mjs +17 -12
- package/dist/es/components/scrollbar/scrollbar.vue.d.ts +156 -134
- package/dist/es/components/select/select.mjs +7 -7
- package/dist/es/components/single-player/index.css +11 -11
- package/dist/es/components/single-player/single-player.mjs +20 -19
- package/dist/es/components/splitter/index.d.ts +4 -0
- package/dist/es/components/splitter/index.mjs +6 -0
- package/dist/es/components/splitter/splitter.d.ts +4 -0
- package/dist/es/components/splitter/splitter.mjs +28 -0
- package/dist/es/components/{dual-pane/dual-pane.vue.d.ts → splitter/splitter.vue.d.ts} +3 -5
- package/dist/es/components/splitter-panel/index.css +5 -0
- package/dist/es/components/splitter-panel/index.d.ts +4 -0
- package/dist/es/components/splitter-panel/index.mjs +6 -0
- package/dist/es/components/splitter-panel/splitter-panel.d.ts +3 -0
- package/dist/es/components/splitter-panel/splitter-panel.mjs +49 -0
- package/dist/es/components/splitter-panel/splitter-panel.vue.d.ts +20 -0
- package/dist/es/components/svg-icon/svg-icon.mjs +2 -2
- package/dist/es/components/switch/switch.mjs +2 -2
- package/dist/es/components/sync-scroll-container/sync-scroll-container.mjs +2 -2
- package/dist/es/components/tags/tags.mjs +12 -11
- package/dist/es/components/text-ellipsis/text-ellipsis.mjs +4 -4
- package/dist/es/components/text-ellipsis/text-ellipsis.vue.d.ts +1 -1
- package/dist/es/components/thousand-input/thousand-input.mjs +3 -3
- package/dist/es/components/thousand-input/thousand-input.vue.d.ts +8 -8
- package/dist/es/components/tinymce/index.css +1 -1
- package/dist/es/components/tinymce/tinymce.d.ts +1 -0
- package/dist/es/components/tinymce/tinymce.mjs +20 -11
- package/dist/es/components/tinymce/tinymce.vue.d.ts +1 -0
- package/dist/es/components/tree-picker/popover-cascader.css +1 -1
- package/dist/es/components/tree-picker/tree-picker.mjs +11 -10
- package/dist/es/components/tree-picker/tree-picker.vue.d.ts +10 -10
- package/dist/es/components/upload-file/upload-file.mjs +2 -2
- package/dist/es/index.d.ts +14 -1
- package/dist/es/index.mjs +69 -39
- package/dist/es/use/usePersistentModel/index.d.ts +4 -0
- package/dist/es/use/usePersistentModel/index.mjs +19 -0
- package/dist/global.d.ts +14 -1
- package/dist/index.css +450 -123
- package/package.json +4 -1
- package/dist/es/chunk/DVNTpOBR.mjs +0 -4
- package/dist/es/components/dual-pane/dual-pane.d.ts +0 -8
- package/dist/es/components/dual-pane/index.css +0 -8
- package/dist/es/components/dual-pane/index.d.ts +0 -4
- package/dist/es/components/dual-pane/index.mjs +0 -6
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { IColorSwitcherProps } from './color-switcher';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IColorSwitcherProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (value: string) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<IColorSwitcherProps> & Readonly<{
|
|
5
|
+
onChange?: ((value: string) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
size: string | number;
|
|
8
|
+
storageKey: string;
|
|
9
|
+
darkStorageKey: string;
|
|
10
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
11
|
+
colorPickerRef: ({
|
|
12
|
+
$: import('vue').ComponentInternalInstance;
|
|
13
|
+
$data: {};
|
|
14
|
+
$props: Partial<{
|
|
15
|
+
readonly disabled: boolean;
|
|
16
|
+
readonly border: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
17
|
+
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>;
|
|
18
|
+
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
19
|
+
readonly showAlpha: boolean;
|
|
20
|
+
}> & Omit<{
|
|
21
|
+
readonly disabled: boolean;
|
|
22
|
+
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
23
|
+
readonly border: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
24
|
+
readonly showAlpha: boolean;
|
|
25
|
+
readonly modelValue?: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown> | undefined;
|
|
26
|
+
readonly colorFormat?: string | undefined;
|
|
27
|
+
readonly predefine?: string[] | undefined;
|
|
28
|
+
"onUpdate:modelValue"?: ((val: string | null) => any) | undefined | undefined;
|
|
29
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "disabled" | "modelValue" | "validateEvent" | "border" | "showAlpha">;
|
|
30
|
+
$attrs: {
|
|
31
|
+
[x: string]: unknown;
|
|
32
|
+
};
|
|
33
|
+
$refs: {
|
|
34
|
+
[x: string]: unknown;
|
|
35
|
+
};
|
|
36
|
+
$slots: Readonly<{
|
|
37
|
+
[name: string]: globalThis.Slot | undefined;
|
|
38
|
+
}>;
|
|
39
|
+
$root: ComponentPublicInstance | null;
|
|
40
|
+
$parent: ComponentPublicInstance | null;
|
|
41
|
+
$host: Element | null;
|
|
42
|
+
$emit: (event: "update:modelValue", val: string | null) => void;
|
|
43
|
+
$el: any;
|
|
44
|
+
$options: import('vue').ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
45
|
+
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown, undefined, boolean>;
|
|
46
|
+
readonly border: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
47
|
+
readonly showAlpha: BooleanConstructor;
|
|
48
|
+
readonly colorFormat: StringConstructor;
|
|
49
|
+
readonly disabled: BooleanConstructor;
|
|
50
|
+
readonly predefine: {
|
|
51
|
+
readonly type: import('vue').PropType<string[]>;
|
|
52
|
+
readonly required: false;
|
|
53
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
54
|
+
__epPropKey: true;
|
|
55
|
+
};
|
|
56
|
+
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
57
|
+
}>> & {
|
|
58
|
+
"onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
|
|
59
|
+
}, {
|
|
60
|
+
color: import('element-plus/es/components/color-picker-panel/src/utils/color.mjs').default;
|
|
61
|
+
inputRef: import('vue').Ref<import('element-plus').InputInstance | undefined>;
|
|
62
|
+
update: () => void;
|
|
63
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
"update:modelValue": (val: string | null) => void;
|
|
65
|
+
}, string, {
|
|
66
|
+
readonly disabled: boolean;
|
|
67
|
+
readonly border: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
68
|
+
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>;
|
|
69
|
+
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
70
|
+
readonly showAlpha: boolean;
|
|
71
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
72
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
73
|
+
created?: (() => void) | (() => void)[];
|
|
74
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
75
|
+
mounted?: (() => void) | (() => void)[];
|
|
76
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
77
|
+
updated?: (() => void) | (() => void)[];
|
|
78
|
+
activated?: (() => void) | (() => void)[];
|
|
79
|
+
deactivated?: (() => void) | (() => void)[];
|
|
80
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
81
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
82
|
+
destroyed?: (() => void) | (() => void)[];
|
|
83
|
+
unmounted?: (() => void) | (() => void)[];
|
|
84
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
85
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
86
|
+
errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
87
|
+
};
|
|
88
|
+
$forceUpdate: () => void;
|
|
89
|
+
$nextTick: typeof import('vue').nextTick;
|
|
90
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
91
|
+
} & Readonly<{
|
|
92
|
+
readonly disabled: boolean;
|
|
93
|
+
readonly border: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
94
|
+
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown>;
|
|
95
|
+
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
96
|
+
readonly showAlpha: boolean;
|
|
97
|
+
}> & Omit<Readonly<globalThis.ExtractPropTypes<{
|
|
98
|
+
readonly modelValue: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => string | null) | ((new (...args: any[]) => string) | (() => string | null))[], unknown, unknown, undefined, boolean>;
|
|
99
|
+
readonly border: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
100
|
+
readonly showAlpha: BooleanConstructor;
|
|
101
|
+
readonly colorFormat: StringConstructor;
|
|
102
|
+
readonly disabled: BooleanConstructor;
|
|
103
|
+
readonly predefine: {
|
|
104
|
+
readonly type: import('vue').PropType<string[]>;
|
|
105
|
+
readonly required: false;
|
|
106
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
107
|
+
__epPropKey: true;
|
|
108
|
+
};
|
|
109
|
+
readonly validateEvent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
110
|
+
}>> & {
|
|
111
|
+
"onUpdate:modelValue"?: ((val: string | null) => any) | undefined;
|
|
112
|
+
}, "color" | "disabled" | "modelValue" | "validateEvent" | "border" | "showAlpha" | "inputRef" | "update"> & import('vue').ShallowUnwrapRef<{
|
|
113
|
+
color: import('element-plus/es/components/color-picker-panel/src/utils/color.mjs').default;
|
|
114
|
+
inputRef: import('vue').Ref<import('element-plus').InputInstance | undefined>;
|
|
115
|
+
update: () => void;
|
|
116
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
117
|
+
$slots: {
|
|
118
|
+
footer?: (props: {}) => any;
|
|
119
|
+
};
|
|
120
|
+
}) | null;
|
|
121
|
+
}, any>;
|
|
122
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/* source: src/components/color-switcher/color-switcher.vue */
|
|
2
|
+
.el-color-picker-panel{--el-colorpicker-bg-color:var(--el-bg-color-overlay);--el-fill-color-blank:var(--el-colorpicker-bg-color);background:var(--el-colorpicker-bg-color);box-sizing:content-box;padding:12px;width:300px}.el-color-picker-panel.is-border{border:1px solid var(--el-border-color-lighter);border-radius:4px}.el-color-picker-panel__wrapper{margin-bottom:6px}.el-color-picker-panel__footer{display:flex;justify-content:space-between;margin-top:12px;text-align:right}.el-color-picker-panel__footer .el-input{color:#000000;font-size:12px;line-height:26px;width:160px}.el-color-picker-panel.is-disabled .el-color-hue-slider,.el-color-picker-panel.is-disabled .el-color-svpanel{cursor:not-allowed;opacity:.3}.el-color-picker-panel.is-disabled .el-color-hue-slider__thumb{cursor:not-allowed}.el-color-picker-panel.is-disabled .el-color-alpha-slider,.el-color-picker-panel.is-disabled .el-color-predefine .el-color-predefine__color-selector{cursor:not-allowed;opacity:.3}.el-color-predefine{display:flex;font-size:12px;margin-top:8px;width:280px}.el-color-predefine__colors{display:flex;flex:1;flex-wrap:wrap;gap:8px}.el-color-predefine__color-selector{border:none;border-radius:var(--el-border-radius-base);cursor:pointer;height:20px;outline:none;overflow:hidden;padding:0;width:20px}.el-color-predefine__color-selector.selected{box-shadow:0 0 3px 2px var(--el-color-primary)}.el-color-predefine__color-selector:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-color-predefine__color-selector>div{display:flex;height:100%}.el-color-predefine__color-selector.is-alpha{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAIAAADZF8uwAAAAGUlEQVQYV2M4gwH+YwCGIasIUwhT25BVBADtzYNYrHvv4gAAAABJRU5ErkJggg==)}.el-color-hue-slider{background-color:#f00;box-sizing:border-box;float:right;height:12px;padding:0 2px;position:relative;width:280px}.el-color-hue-slider__bar{background:linear-gradient(90deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00);height:100%;position:relative}.el-color-hue-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-hue-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-hue-slider.is-vertical{height:180px;padding:2px 0;width:12px}.el-color-hue-slider.is-vertical .el-color-hue-slider__bar{background:linear-gradient(180deg,#f00 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,#f00)}.el-color-hue-slider.is-vertical .el-color-hue-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-svpanel{background-image:linear-gradient(0deg,#000,rgba(0,0,0,0)),linear-gradient(90deg,#fff,rgba(255,255,255,0));height:180px;position:relative;width:280px}.el-color-svpanel__cursor{border-radius:50%;box-shadow:0 0 0 1.5px #fff,inset 0 0 1px 1px rgba(0,0,0,.3),0 0 1px 2px rgba(0,0,0,.4);cursor:pointer;height:4px;position:absolute;transform:translate(-2px,-2px);width:4px}.el-color-svpanel__cursor:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:2px}.el-color-alpha-slider{background-image:linear-gradient(45deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-a) 25%,var(--el-color-picker-alpha-bg-b) 25%),linear-gradient(45deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%),linear-gradient(135deg,var(--el-color-picker-alpha-bg-b) 75%,var(--el-color-picker-alpha-bg-a) 75%);background-position:0 0,6px 0,6px -6px,0 6px;background-size:12px 12px;box-sizing:border-box;height:12px;position:relative;width:280px}.el-color-alpha-slider.is-disabled .el-color-alpha-slider__thumb{cursor:not-allowed}.el-color-alpha-slider__bar{background:linear-gradient(to right,rgba(255,255,255,0) 0,var(--el-bg-color) 100%);height:100%;position:relative}.el-color-alpha-slider__thumb{background:#fff;border:1px solid var(--el-border-color-lighter);border-radius:1px;box-shadow:0 0 2px rgba(0,0,0,.6);box-sizing:border-box;cursor:pointer;height:100%;left:0;position:absolute;top:0;width:4px;z-index:1}.el-color-alpha-slider__thumb:focus-visible{outline:2px solid var(--el-color-primary);outline-offset:1px}.el-color-alpha-slider.is-vertical{height:180px;width:20px}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__bar{background:linear-gradient(180deg,rgba(255,255,255,0) 0,rgb(255,255,255))}.el-color-alpha-slider.is-vertical .el-color-alpha-slider__thumb{height:4px;left:0;top:0;width:100%}.el-color-picker-panel{--el-color-picker-alpha-bg-a:#ccc;--el-color-picker-alpha-bg-b:transparent}.dark .el-color-picker-panel{--el-color-picker-alpha-bg-a:#333333}._color-switcher_1n96n_1 {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
cursor: pointer;
|
|
5
|
+
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import {
|
|
3
|
-
import { v as vLoading } from '../../chunk/
|
|
4
|
-
import { E as ElSpace } from '../../chunk/
|
|
5
|
-
import { E as ElButton } from '../../chunk/
|
|
2
|
+
import { b as buildProps, u as useNamespace } from '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
import { v as vLoading } from '../../chunk/CwXV7M2F.mjs';
|
|
4
|
+
import { E as ElSpace } from '../../chunk/w7VqVeWU.mjs';
|
|
5
|
+
import { E as ElButton } from '../../chunk/CqTa_Vd-.mjs';
|
|
6
6
|
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createBlock, createCommentVNode, renderSlot, unref, withCtx, resolveDynamicComponent, ref, useTemplateRef, shallowRef, watch, nextTick, onMounted, onUnmounted, withDirectives, isRef, createElementVNode, normalizeStyle, createVNode, createTextVNode } from 'vue';
|
|
7
7
|
import { i as index$1 } from '../../chunk/BaJ7k5Lg.mjs';
|
|
8
8
|
import '../../chunk/D9iEroQw.mjs';
|
|
9
9
|
import { C as Component$1 } from '../dialog/dialog.mjs';
|
|
10
10
|
import { defaultWindow } from '@vueuse/core';
|
|
11
|
-
import { E as ElIcon } from '../../chunk/
|
|
11
|
+
import { E as ElIcon } from '../../chunk/D1MHFKtN.mjs';
|
|
12
12
|
import { i as iconPropType } from '../icon/icon2.mjs';
|
|
13
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/
|
|
14
|
-
import { u as useGlobalConfig } from '../../chunk/
|
|
15
|
-
import { u as useDeprecated } from '../../chunk/
|
|
16
|
-
import { d as
|
|
13
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/dN0VcQc2.mjs';
|
|
14
|
+
import { u as useGlobalConfig } from '../../chunk/B3GxuXVE.mjs';
|
|
15
|
+
import { u as useDeprecated } from '../../chunk/yuIXvUxc.mjs';
|
|
16
|
+
import { d as isBoolean } from '../../chunk/DViraU6I.mjs';
|
|
17
|
+
import { d as debounce } from '../../chunk/Cdh3HNZa.mjs';
|
|
17
18
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
18
19
|
|
|
19
20
|
const defaultImageOption = {
|
|
@@ -471,9 +472,9 @@ const cssModules = {
|
|
|
471
472
|
};
|
|
472
473
|
const Component = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__cssModules", cssModules]]);
|
|
473
474
|
|
|
474
|
-
const
|
|
475
|
+
const __vite_glob_0_8 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
475
476
|
__proto__: null,
|
|
476
477
|
default: Component
|
|
477
478
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
478
479
|
|
|
479
|
-
export { Component as C,
|
|
480
|
+
export { Component as C, __vite_glob_0_8 as _, index as i };
|
|
@@ -8,13 +8,13 @@ declare const _default: import('vue').DefineComponent<ICropperProps, {
|
|
|
8
8
|
getBlobData: typeof getBlobData;
|
|
9
9
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
10
10
|
cancel: () => any;
|
|
11
|
-
init: () => any;
|
|
12
11
|
"update:visible": (value: boolean) => any;
|
|
12
|
+
init: () => any;
|
|
13
13
|
finished: (canvas: HTMLCanvasElement, blob: Blob) => any;
|
|
14
14
|
}, string, import('vue').PublicProps, Readonly<ICropperProps> & Readonly<{
|
|
15
15
|
onCancel?: (() => any) | undefined;
|
|
16
|
-
onInit?: (() => any) | undefined;
|
|
17
16
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
17
|
+
onInit?: (() => any) | undefined;
|
|
18
18
|
onFinished?: ((canvas: HTMLCanvasElement, blob: Blob) => any) | undefined;
|
|
19
19
|
}>, {
|
|
20
20
|
dialog: boolean;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import '../../chunk/
|
|
3
|
-
|
|
4
|
-
import { E as ElSelect, a as ElOption } from '../../chunk/
|
|
5
|
-
import '../../chunk/
|
|
6
|
-
import '../../chunk/
|
|
2
|
+
import '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
/* empty css */
|
|
4
|
+
import { E as ElSelect, a as ElOption } from '../../chunk/DQi1QPak.mjs';
|
|
5
|
+
import '../../chunk/D_Mvdscy.mjs';
|
|
6
|
+
import '../../chunk/BfjuZmry.mjs';
|
|
7
7
|
import { defineComponent, computed, ref, onBeforeMount, createBlock, openBlock, mergeProps, unref, isRef, createSlots, withCtx, createElementBlock, normalizeStyle, Fragment, renderList, createCommentVNode, createTextVNode, normalizeClass, toDisplayString } from 'vue';
|
|
8
8
|
import { _ as _sfc_main$1 } from '../flag/flag.mjs';
|
|
9
9
|
import { C as Component$1 } from '../thousand-input/thousand-input.mjs';
|
|
@@ -177,9 +177,9 @@ const cssModules = {
|
|
|
177
177
|
};
|
|
178
178
|
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
179
179
|
|
|
180
|
-
const
|
|
180
|
+
const __vite_glob_0_9 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
181
181
|
__proto__: null,
|
|
182
182
|
default: Component
|
|
183
183
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
184
184
|
|
|
185
|
-
export { Component as C,
|
|
185
|
+
export { Component as C, __vite_glob_0_9 as _ };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BasicColorSchema } from '@vueuse/core';
|
|
2
|
+
export interface IDarkSwitcherProps {
|
|
3
|
+
initialValue?: globalThis.MaybeRefOrGetter<BasicColorSchema>;
|
|
4
|
+
size?: string | number;
|
|
5
|
+
storageKey?: string;
|
|
6
|
+
duration?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface IDarkSwitcherEmits {
|
|
9
|
+
(e: 'change', value: boolean): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import './index.css'
|
|
2
|
+
import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createVNode, unref, nextTick } from 'vue';
|
|
3
|
+
import { useDark, useToggle } from '@vueuse/core';
|
|
4
|
+
import { C as Component$1 } from '../iconify-icon/iconify-icon.mjs';
|
|
5
|
+
import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
|
|
6
|
+
|
|
7
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
|
+
__name: "dark-switcher",
|
|
9
|
+
props: {
|
|
10
|
+
initialValue: { default: "auto" },
|
|
11
|
+
size: { default: 28 },
|
|
12
|
+
storageKey: { default: "vc-dark" },
|
|
13
|
+
duration: { default: 850 }
|
|
14
|
+
},
|
|
15
|
+
emits: ["change"],
|
|
16
|
+
setup(__props, { emit: __emit }) {
|
|
17
|
+
const props = __props;
|
|
18
|
+
const emits = __emit;
|
|
19
|
+
const isDark = useDark({ storageKey: props.storageKey, initialValue: props.initialValue });
|
|
20
|
+
const toggleDark = useToggle(isDark);
|
|
21
|
+
const iconName = computed(() => isDark.value ? "carbon:sun" : "carbon:moon");
|
|
22
|
+
function handleToggle(e) {
|
|
23
|
+
const isAppearanceTransition = document.startViewTransition && !window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
24
|
+
if (!isAppearanceTransition || !e) {
|
|
25
|
+
toggleDark();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const x = e.clientX;
|
|
29
|
+
const y = e.clientY;
|
|
30
|
+
const endRadius = Math.hypot(
|
|
31
|
+
Math.max(x, innerWidth - x),
|
|
32
|
+
Math.max(y, innerHeight - y)
|
|
33
|
+
);
|
|
34
|
+
const transition = document.startViewTransition(async () => {
|
|
35
|
+
toggleDark();
|
|
36
|
+
await nextTick();
|
|
37
|
+
});
|
|
38
|
+
transition.ready.then(() => {
|
|
39
|
+
const clipPath = [
|
|
40
|
+
`circle(0px at ${x}px ${y}px)`,
|
|
41
|
+
`circle(${endRadius}px at ${x}px ${y}px)`
|
|
42
|
+
];
|
|
43
|
+
const animate = document.documentElement.animate(
|
|
44
|
+
{
|
|
45
|
+
clipPath: isDark.value ? [...clipPath].reverse() : clipPath
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
duration: props.duration,
|
|
49
|
+
easing: "ease-in",
|
|
50
|
+
pseudoElement: isDark.value ? "::view-transition-old(root)" : "::view-transition-new(root)"
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
animate.onfinish = () => {
|
|
54
|
+
transition.skipTransition();
|
|
55
|
+
emits("change", isDark.value);
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
return (_ctx, _cache) => {
|
|
60
|
+
return openBlock(), createElementBlock("i", {
|
|
61
|
+
class: normalizeClass(_ctx.$style["dark-switcher"])
|
|
62
|
+
}, [
|
|
63
|
+
createVNode(Component$1, {
|
|
64
|
+
name: unref(iconName),
|
|
65
|
+
size: __props.size,
|
|
66
|
+
onClick: handleToggle
|
|
67
|
+
}, null, 8, ["name", "size"])
|
|
68
|
+
], 2);
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
/* unplugin-vue-components disabled */const style0 = {
|
|
74
|
+
"dark-switcher": "_dark-switcher_1siiv_9"
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
const cssModules = {
|
|
78
|
+
"$style": style0
|
|
79
|
+
};
|
|
80
|
+
const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
81
|
+
|
|
82
|
+
const __vite_glob_0_10 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
83
|
+
__proto__: null,
|
|
84
|
+
default: Component
|
|
85
|
+
}, Symbol.toStringTag, { value: 'Module' }));
|
|
86
|
+
|
|
87
|
+
export { Component as C, __vite_glob_0_10 as _ };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IDarkSwitcherProps } from './dark-switcher';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<IDarkSwitcherProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
3
|
+
change: (value: boolean) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<IDarkSwitcherProps> & Readonly<{
|
|
5
|
+
onChange?: ((value: boolean) => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
size: string | number;
|
|
8
|
+
duration: number;
|
|
9
|
+
storageKey: string;
|
|
10
|
+
initialValue: globalThis.MaybeRefOrGetter<import('@vueuse/core').BasicColorSchema>;
|
|
11
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/* source: src/components/dark-switcher/dark-switcher.vue */
|
|
2
|
+
html.dark::view-transition-old(root) {
|
|
3
|
+
z-index: 10000;
|
|
4
|
+
}
|
|
5
|
+
::view-transition-new(root), ::view-transition-old(root) {
|
|
6
|
+
animation: none !important;
|
|
7
|
+
}
|
|
8
|
+
._dark-switcher_1siiv_9 {
|
|
9
|
+
display: inline-flex;
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { E as ElInput } from '../../chunk/
|
|
3
|
-
import { E as ElScrollbar } from '../../chunk/
|
|
4
|
-
import { E as ElButton } from '../../chunk/
|
|
5
|
-
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/
|
|
1
|
+
import { c as isArray, e as isDate, b as buildProps, d as definePropType, u as useNamespace, a as debugWarn, N as NOOP, i as isString, f as isFunction } from '../../chunk/By7FMB3I.mjs';
|
|
2
|
+
import { E as ElInput } from '../../chunk/CKZGL4_3.mjs';
|
|
3
|
+
import { E as ElScrollbar } from '../../chunk/D_Mvdscy.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CqTa_Vd-.mjs';
|
|
5
|
+
import { E as Ee, u as useTooltipContentProps, a as ElTooltip, c as castArray, e as extractFirst } from '../../chunk/BfjuZmry.mjs';
|
|
6
6
|
import { ref, computed, defineComponent, reactive, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot, createElementVNode, mergeProps, useAttrs as useAttrs$1, inject, watch, nextTick, onBeforeUnmount, provide, createBlock, withCtx, withModifiers, createCommentVNode, resolveDynamicComponent, toDisplayString, onMounted, Fragment, renderList, createTextVNode, withDirectives, createVNode, Transition, withKeys, useSlots, toRef, vShow, getCurrentInstance, toRefs, isVNode, isRef } from 'vue';
|
|
7
7
|
import { onClickOutside, unrefElement, useVModel } from '@vueuse/core';
|
|
8
|
-
import { E as ElIcon } from '../../chunk/
|
|
8
|
+
import { E as ElIcon } from '../../chunk/D1MHFKtN.mjs';
|
|
9
9
|
import { CircleClose, Clock, Calendar, ArrowUp, ArrowDown, DArrowLeft, ArrowLeft, ArrowRight, DArrowRight } from '@element-plus/icons-vue';
|
|
10
|
-
import {
|
|
11
|
-
import { u as
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
10
|
+
import { a as isEmpty, b as isNumber, c as isUndefined } from '../../chunk/DViraU6I.mjs';
|
|
11
|
+
import { u as useLocale } from '../../chunk/CJ0afvkJ.mjs';
|
|
12
|
+
import { u as useAriaProps, f as flatten } from '../../chunk/DCS0eqqM.mjs';
|
|
13
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/dN0VcQc2.mjs';
|
|
14
|
+
import { g as getStyle, h as hasClass } from '../../chunk/CQz3lhyS.mjs';
|
|
15
|
+
import { v as vRepeatClick } from '../../chunk/Cjp0Czyu.mjs';
|
|
15
16
|
import { U as UPDATE_MODEL_EVENT, C as CHANGE_EVENT } from '../../chunk/Ct6q2FXg.mjs';
|
|
16
|
-
import { d as debounce } from '../../chunk/
|
|
17
|
+
import { d as debounce } from '../../chunk/Cdh3HNZa.mjs';
|
|
17
18
|
import { g as getEventCode, E as EVENT_CODE } from '../../chunk/BTpNRPQW.mjs';
|
|
18
|
-
import { C as ClickOutside } from '../../chunk/
|
|
19
|
-
import { u as useFormItem,
|
|
20
|
-
import { i as isEqual } from '../../chunk/
|
|
21
|
-
import { o as omit } from '../../chunk/
|
|
22
|
-
import { u as useSizeProp } from '../../chunk/
|
|
23
|
-
import { u as useEmptyValuesProps, a as useEmptyValues } from '../../chunk/
|
|
24
|
-
import { u as useAttrs } from '../../chunk/
|
|
25
|
-
import { u as useFocusController } from '../../chunk/
|
|
19
|
+
import { C as ClickOutside } from '../../chunk/Cg-Krnly.mjs';
|
|
20
|
+
import { u as useFormItem, b as useFormItemInputId, a as useFormDisabled, c as useFormSize } from '../../chunk/BvNFaD5d.mjs';
|
|
21
|
+
import { i as isEqual } from '../../chunk/q2jRgbir.mjs';
|
|
22
|
+
import { o as omit } from '../../chunk/e5i7OJY-.mjs';
|
|
23
|
+
import { u as useSizeProp } from '../../chunk/CPCieLBG.mjs';
|
|
24
|
+
import { u as useEmptyValuesProps, a as useEmptyValues } from '../../chunk/CK5Bluh4.mjs';
|
|
25
|
+
import { u as useAttrs } from '../../chunk/DDR6UjaC.mjs';
|
|
26
|
+
import { u as useFocusController } from '../../chunk/DAIuzoFs.mjs';
|
|
26
27
|
|
|
27
28
|
function getDefaultExportFromCjs (x) {
|
|
28
29
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import './index.css'
|
|
2
|
-
import { u as useNamespace } from '../../chunk/
|
|
3
|
-
import { b as dialogContentEmits, c as dialogContentProps, e as dialogInjectionKey, d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay, f as useSameTarget } from '../../chunk/
|
|
4
|
-
import { E as
|
|
5
|
-
import {
|
|
6
|
-
import { ref, onMounted, watchEffect, onBeforeUnmount, defineComponent, inject, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createCommentVNode, renderSlot, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, useSlots, provide, Transition, mergeProps, withDirectives, createSlots, vShow, useCssVars, useCssModule, watch, isRef, createTextVNode } from 'vue';
|
|
2
|
+
import { u as useNamespace } from '../../chunk/By7FMB3I.mjs';
|
|
3
|
+
import { b as dialogContentEmits, c as dialogContentProps, e as dialogInjectionKey, d as dialogEmits, a as dialogProps, u as useDialog, E as ElOverlay, f as useSameTarget } from '../../chunk/F2ph6lWu.mjs';
|
|
4
|
+
import { E as ElButton } from '../../chunk/CqTa_Vd-.mjs';
|
|
5
|
+
import { ref, onMounted, watchEffect, onBeforeUnmount, defineComponent, inject, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createElementVNode, createCommentVNode, renderSlot, toDisplayString, createVNode, withCtx, createBlock, resolveDynamicComponent, useSlots, provide, Transition, mergeProps, withDirectives, createSlots, vShow, useCssModule, watch, isRef, createTextVNode } from 'vue';
|
|
7
6
|
import { CopyDocument, FullScreen, Close } from '@element-plus/icons-vue';
|
|
8
|
-
import { C as Component$
|
|
7
|
+
import { C as Component$2 } from '../button/button.mjs';
|
|
8
|
+
import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
|
|
9
9
|
import { useVModel, useToggle } from '@vueuse/core';
|
|
10
|
-
import { F as FOCUS_TRAP_INJECTION_KEY, b as ElTeleport, d as ElFocusTrap } from '../../chunk/
|
|
11
|
-
import { E as ElIcon } from '../../chunk/
|
|
12
|
-
import { _ as _export_sfc, w as withInstall } from '../../chunk/
|
|
13
|
-
import { a as addUnit } from '../../chunk/
|
|
10
|
+
import { F as FOCUS_TRAP_INJECTION_KEY, b as ElTeleport, d as ElFocusTrap } from '../../chunk/BfjuZmry.mjs';
|
|
11
|
+
import { E as ElIcon } from '../../chunk/D1MHFKtN.mjs';
|
|
12
|
+
import { _ as _export_sfc, w as withInstall } from '../../chunk/dN0VcQc2.mjs';
|
|
13
|
+
import { a as addUnit } from '../../chunk/CQz3lhyS.mjs';
|
|
14
14
|
import { C as CloseComponents } from '../icon/icon2.mjs';
|
|
15
|
-
import { u as useLocale } from '../../chunk/
|
|
16
|
-
import { u as useDeprecated } from '../../chunk/
|
|
15
|
+
import { u as useLocale } from '../../chunk/CJ0afvkJ.mjs';
|
|
16
|
+
import { u as useDeprecated } from '../../chunk/yuIXvUxc.mjs';
|
|
17
17
|
import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
|
|
18
18
|
|
|
19
19
|
const useDraggable = (targetRef, dragRef, draggable, overflow) => {
|
|
@@ -414,16 +414,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
414
414
|
lazy: { type: Boolean, default: true },
|
|
415
415
|
height: {},
|
|
416
416
|
maxHeight: {},
|
|
417
|
-
fullscreenHeight: {
|
|
418
|
-
flex: { type: Boolean, default: false },
|
|
417
|
+
fullscreenHeight: {},
|
|
419
418
|
fullscreen: { type: Boolean, default: false },
|
|
420
|
-
boxPadding: { type: Boolean, default: true }
|
|
419
|
+
boxPadding: { type: Boolean, default: true },
|
|
420
|
+
padding: { default: 16 }
|
|
421
421
|
},
|
|
422
422
|
emits: ["update:modelValue", "closed"],
|
|
423
423
|
setup(__props, { emit: __emit }) {
|
|
424
|
-
useCssVars((_ctx) => ({
|
|
425
|
-
"v5830f752": _ctx.boxPadding ? "block" : "none"
|
|
426
|
-
}));
|
|
427
424
|
const props = __props;
|
|
428
425
|
const emits = __emit;
|
|
429
426
|
const $style = useCssModule();
|
|
@@ -432,10 +429,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
432
429
|
const isFullscreen = ref(false);
|
|
433
430
|
const toggleFullscreen = useToggle(isFullscreen);
|
|
434
431
|
const Icon = computed(() => isFullscreen.value ? CopyDocument : FullScreen);
|
|
435
|
-
const
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
432
|
+
const myFullscreenHeight = computed(() => {
|
|
433
|
+
if (props.fullscreenHeight) {
|
|
434
|
+
return props.fullscreenHeight;
|
|
435
|
+
}
|
|
436
|
+
return props.showDefaultFooter ? "calc(100vh - 98px)" : "calc(100vh - 49px)";
|
|
437
|
+
});
|
|
438
|
+
const myMaxHeight = computed(() => {
|
|
439
|
+
if (isFullscreen.value || !props.maxHeight) {
|
|
440
|
+
return myFullscreenHeight.value;
|
|
441
|
+
}
|
|
442
|
+
return props.maxHeight;
|
|
443
|
+
});
|
|
439
444
|
watch(dialogVisible, (val) => {
|
|
440
445
|
if (val) {
|
|
441
446
|
isFullscreen.value = props.fullscreen;
|
|
@@ -448,18 +453,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
448
453
|
}
|
|
449
454
|
return (_ctx, _cache) => {
|
|
450
455
|
const _component_ElButton = ElButton;
|
|
451
|
-
const _component_ElScrollbar = ElScrollbar;
|
|
452
456
|
const _component_ElDialog = ElDialog;
|
|
453
457
|
return unref(visible) || !__props.lazy ? (openBlock(), createBlock(_component_ElDialog, mergeProps({
|
|
454
458
|
key: 0,
|
|
455
459
|
modelValue: unref(dialogVisible),
|
|
456
460
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null)
|
|
457
461
|
}, _ctx.$attrs, {
|
|
462
|
+
"append-to-body": "",
|
|
458
463
|
"align-center": "",
|
|
459
464
|
"show-close": false,
|
|
460
465
|
fullscreen: unref(isFullscreen),
|
|
461
466
|
"close-on-click-modal": false,
|
|
462
|
-
class: unref($style).main,
|
|
467
|
+
class: [unref($style).main, { [unref($style)["box-padding"]]: __props.boxPadding }],
|
|
463
468
|
onClosed: handleClosed
|
|
464
469
|
}), createSlots({
|
|
465
470
|
header: withCtx(({ close, titleId, titleClass }) => [
|
|
@@ -493,36 +498,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
493
498
|
], 2)
|
|
494
499
|
]),
|
|
495
500
|
default: withCtx(() => [
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
class: normalizeClass(unref(scrollbarClassName)),
|
|
501
|
+
createVNode(Component$1, {
|
|
502
|
+
"max-height": unref(myMaxHeight),
|
|
499
503
|
height: __props.height,
|
|
500
|
-
"
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
createElementVNode("div", {
|
|
505
|
-
class: normalizeClass(unref($style)["body-container"])
|
|
506
|
-
}, [
|
|
507
|
-
renderSlot(_ctx.$slots, "default")
|
|
508
|
-
], 2)
|
|
509
|
-
]),
|
|
510
|
-
_: 3
|
|
511
|
-
}, 8, ["class", "height", "max-height"])) : (openBlock(), createBlock(_component_ElScrollbar, {
|
|
512
|
-
key: 1,
|
|
513
|
-
class: normalizeClass(unref(scrollbarClassName)),
|
|
514
|
-
"max-height": __props.fullscreenHeight,
|
|
515
|
-
always: ""
|
|
504
|
+
always: "",
|
|
505
|
+
"view-class": unref($style)["scrollbar-view"],
|
|
506
|
+
padding: __props.padding,
|
|
507
|
+
"fill-height": false
|
|
516
508
|
}, {
|
|
517
509
|
default: withCtx(() => [
|
|
518
|
-
|
|
519
|
-
class: normalizeClass(unref($style)["body-container"])
|
|
520
|
-
}, [
|
|
521
|
-
renderSlot(_ctx.$slots, "default")
|
|
522
|
-
], 2)
|
|
510
|
+
renderSlot(_ctx.$slots, "default")
|
|
523
511
|
]),
|
|
524
512
|
_: 3
|
|
525
|
-
}, 8, ["
|
|
513
|
+
}, 8, ["max-height", "height", "view-class", "padding"])
|
|
526
514
|
]),
|
|
527
515
|
_: 2
|
|
528
516
|
}, [
|
|
@@ -530,7 +518,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
530
518
|
name: "footer",
|
|
531
519
|
fn: withCtx(() => [
|
|
532
520
|
renderSlot(_ctx.$slots, "footer", {}, () => [
|
|
533
|
-
__props.showDefaultFooter ? (openBlock(), createBlock(Component$
|
|
521
|
+
__props.showDefaultFooter ? (openBlock(), createBlock(Component$2, {
|
|
534
522
|
key: 0,
|
|
535
523
|
onClick: _cache[1] || (_cache[1] = ($event) => dialogVisible.value = false)
|
|
536
524
|
}, {
|
|
@@ -548,19 +536,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
548
536
|
}
|
|
549
537
|
});
|
|
550
538
|
|
|
551
|
-
/* unplugin-vue-components disabled */const main = "
|
|
552
|
-
const header = "
|
|
553
|
-
const title = "
|
|
554
|
-
const
|
|
555
|
-
const flex = "_flex_zs7g5_78";
|
|
556
|
-
const buttons = "_buttons_zs7g5_87";
|
|
539
|
+
/* unplugin-vue-components disabled */const main = "_main_m9nss_1";
|
|
540
|
+
const header = "_header_m9nss_48";
|
|
541
|
+
const title = "_title_m9nss_77";
|
|
542
|
+
const buttons = "_buttons_m9nss_86";
|
|
557
543
|
const style0 = {
|
|
558
544
|
main: main,
|
|
559
545
|
header: header,
|
|
546
|
+
"box-padding": "_box-padding_m9nss_57",
|
|
560
547
|
title: title,
|
|
561
|
-
scrollbar:
|
|
562
|
-
flex: flex,
|
|
563
|
-
"body-container": "_body-container_zs7g5_83",
|
|
548
|
+
"scrollbar-view": "_scrollbar-view_m9nss_82",
|
|
564
549
|
buttons: buttons
|
|
565
550
|
};
|
|
566
551
|
|
|
@@ -569,9 +554,9 @@ const cssModules = {
|
|
|
569
554
|
};
|
|
570
555
|
const Component = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__cssModules", cssModules]]);
|
|
571
556
|
|
|
572
|
-
const
|
|
557
|
+
const __vite_glob_0_15 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
|
|
573
558
|
__proto__: null,
|
|
574
559
|
default: Component
|
|
575
560
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
576
561
|
|
|
577
|
-
export { Component as C,
|
|
562
|
+
export { Component as C, __vite_glob_0_15 as _ };
|