@wfrog/vc-ui 1.11.10 → 1.11.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (141) hide show
  1. package/dist/es/chunk/Bw0Rhd-r.mjs +110 -0
  2. package/dist/es/chunk/CqTdDZkE.mjs +31 -0
  3. package/dist/es/chunk/{DAnWZLYj.mjs → CzWfBa_8.mjs} +96 -2
  4. package/dist/es/chunk/D229kQ56.mjs +28 -0
  5. package/dist/es/chunk/{Cxx_YWUC.mjs → DcouM6gM.mjs} +6 -548
  6. package/dist/es/chunk/Fo0dZYnz.mjs +128 -0
  7. package/dist/es/chunk/KanuIcmc.mjs +412 -0
  8. package/dist/es/chunk/{B71xEPfK.mjs → uuUHUjSk.mjs} +4 -35
  9. package/dist/es/components/backbottom/backbottom.mjs +3 -2
  10. package/dist/es/components/button/button.mjs +14 -13
  11. package/dist/es/components/choice/choice.mjs +11 -9
  12. package/dist/es/components/choice/index.css +1 -1
  13. package/dist/es/components/choice-boolean/choice-boolean.mjs +3 -3
  14. package/dist/es/components/color-switch/color-switch.mjs +73 -1046
  15. package/dist/es/components/color-switch/index.css +1 -1
  16. package/dist/es/components/cropper/cropper.mjs +11 -117
  17. package/dist/es/components/cropper/index.css +1 -1
  18. package/dist/es/components/currency/currency.mjs +10 -12
  19. package/dist/es/components/daterange-picker/daterange-picker.mjs +10 -6255
  20. package/dist/es/components/dialog/dialog.mjs +14 -408
  21. package/dist/es/components/dialog/index.css +1 -1
  22. package/dist/es/components/dialog-camera-upload/dialog-camera-upload.mjs +11 -14
  23. package/dist/es/components/dialog-map-point/dialog-map-point.mjs +4 -4
  24. package/dist/es/components/dialog-upload-images/dialog-upload-images.mjs +14 -1380
  25. package/dist/es/components/dialog-upload-images/index.css +1 -1
  26. package/dist/es/components/drag-verify/drag-verify.mjs +3 -2
  27. package/dist/es/components/drawer/drawer.mjs +16 -359
  28. package/dist/es/components/drawer/index.css +3 -3
  29. package/dist/es/components/easy-pagination/easy-pagination.mjs +3 -2
  30. package/dist/es/components/explorer/explorer.mjs +8 -8
  31. package/dist/es/components/explorer-column-table/explorer-column-table.mjs +5 -7
  32. package/dist/es/components/explorer-column-table/index.css +1 -1
  33. package/dist/es/components/explorer-container/explorer-container.d.ts +1 -1
  34. package/dist/es/components/explorer-container/explorer-container.mjs +4 -3
  35. package/dist/es/components/explorer-filter/explorer-filter.mjs +5 -4
  36. package/dist/es/components/explorer-footer/explorer-footer.mjs +4 -8
  37. package/dist/es/components/explorer-form/explorer-form.mjs +4 -3
  38. package/dist/es/components/explorer-list/explorer-list.mjs +18 -13
  39. package/dist/es/components/explorer-list/explorer-list.vue.d.ts +1 -1
  40. package/dist/es/components/explorer-list/index.css +16 -16
  41. package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +8 -7
  42. package/dist/es/components/explorer-panel/explorer-panel.mjs +3 -3
  43. package/dist/es/components/explorer-query/explorer-query.mjs +9 -2201
  44. package/dist/es/components/explorer-query/index.css +1 -1
  45. package/dist/es/components/explorer-table/explorer-table.mjs +5 -8
  46. package/dist/es/components/explorer-tools/explorer-tools.mjs +23 -271
  47. package/dist/es/components/explorer-tools/index.css +9 -9
  48. package/dist/es/components/explorer-tree/explorer-tree.mjs +4 -5
  49. package/dist/es/components/explorer-tree/explorer-tree.vue.d.ts +1 -1
  50. package/dist/es/components/form-item/form-item.mjs +3 -3
  51. package/dist/es/components/icon-picker/icon-picker.mjs +8 -12
  52. package/dist/es/components/image/image.mjs +4 -4
  53. package/dist/es/components/info-tooltip/info-tooltip.mjs +336 -4
  54. package/dist/es/components/input/input.mjs +3 -2
  55. package/dist/es/components/input-number/input-number.mjs +3 -3
  56. package/dist/es/components/pca-picker/index.css +1 -1
  57. package/dist/es/components/pca-picker/pca-picker.mjs +443 -601
  58. package/dist/es/components/screenfull/screenfull.mjs +4 -3
  59. package/dist/es/components/scrollbar/index.css +1 -1
  60. package/dist/es/components/scrollbar/scrollbar.mjs +10 -10
  61. package/dist/es/components/select/index.css +1 -1
  62. package/dist/es/components/select/select.mjs +9 -10
  63. package/dist/es/components/single-player/index.css +1 -1
  64. package/dist/es/components/single-player/single-player.mjs +10 -1087
  65. package/dist/es/components/splitter/splitter.mjs +3 -3
  66. package/dist/es/components/splitter-panel/splitter-panel.mjs +3 -3
  67. package/dist/es/components/switch/index.css +1 -1
  68. package/dist/es/components/switch/switch.mjs +9 -395
  69. package/dist/es/components/tags/tags.mjs +7 -9
  70. package/dist/es/components/text-ellipsis/text-ellipsis.mjs +3 -3
  71. package/dist/es/components/thousand-input/thousand-input.mjs +39 -8
  72. package/dist/es/components/tinymce/tinymce.mjs +4 -3
  73. package/dist/es/components/transfer/transfer.mjs +3 -4
  74. package/dist/es/components/transfer-panel/transfer-panel.mjs +5 -4
  75. package/dist/es/components/tree-picker/popover-cascader.css +1 -1
  76. package/dist/es/components/tree-picker/tree-picker.mjs +5 -10
  77. package/dist/es/index.mjs +1 -1
  78. package/dist/index.css +41 -68
  79. package/package.json +1 -1
  80. package/dist/es/chunk/B-rxnVJv.mjs +0 -3
  81. package/dist/es/chunk/B5HpgPRt.mjs +0 -69
  82. package/dist/es/chunk/BBhZKpIc.mjs +0 -2179
  83. package/dist/es/chunk/BDcsaNYa.mjs +0 -59
  84. package/dist/es/chunk/BTSSEFfD.mjs +0 -319
  85. package/dist/es/chunk/BTpNRPQW.mjs +0 -55
  86. package/dist/es/chunk/BVBK1U57.mjs +0 -96
  87. package/dist/es/chunk/Bc6yUGLs.mjs +0 -45
  88. package/dist/es/chunk/BjVI1XMz.mjs +0 -40
  89. package/dist/es/chunk/BlzQCBDu.mjs +0 -5741
  90. package/dist/es/chunk/BpJKnxlF.mjs +0 -476
  91. package/dist/es/chunk/Brp-qSBw.mjs +0 -2003
  92. package/dist/es/chunk/BunQI8Jb.mjs +0 -390
  93. package/dist/es/chunk/C0XgBrDz.mjs +0 -775
  94. package/dist/es/chunk/C0pTANRX.mjs +0 -109
  95. package/dist/es/chunk/CBMjhoFP.mjs +0 -101
  96. package/dist/es/chunk/CBiNtNvQ.mjs +0 -242
  97. package/dist/es/chunk/CBlJeNBO.mjs +0 -890
  98. package/dist/es/chunk/CCVL_Zj-.mjs +0 -427
  99. package/dist/es/chunk/CEl4MyfJ.mjs +0 -252
  100. package/dist/es/chunk/CJK5_jsA.mjs +0 -53
  101. package/dist/es/chunk/CKOcwq5V.mjs +0 -44
  102. package/dist/es/chunk/COs9dJZa.mjs +0 -66
  103. package/dist/es/chunk/CPt6MxJW.mjs +0 -375
  104. package/dist/es/chunk/CVqW0jzp.mjs +0 -107
  105. package/dist/es/chunk/CccIsEqA.mjs +0 -128
  106. package/dist/es/chunk/CjLR27-a.mjs +0 -582
  107. package/dist/es/chunk/CoGexPPD.mjs +0 -2192
  108. package/dist/es/chunk/CsLIbnzG.mjs +0 -64
  109. package/dist/es/chunk/Ct6q2FXg.mjs +0 -5
  110. package/dist/es/chunk/Cuq5meQh.mjs +0 -184
  111. package/dist/es/chunk/CvYIOfT1.mjs +0 -23
  112. package/dist/es/chunk/CxHJBf4l.mjs +0 -31
  113. package/dist/es/chunk/CzdaOBtA.mjs +0 -66
  114. package/dist/es/chunk/D0QTifnI.mjs +0 -54
  115. package/dist/es/chunk/D1QnA2iT.mjs +0 -229
  116. package/dist/es/chunk/D3AvJlVX.mjs +0 -188
  117. package/dist/es/chunk/D9Lr0Bzb.mjs +0 -1136
  118. package/dist/es/chunk/DCkPv0hy.mjs +0 -29
  119. package/dist/es/chunk/DRwwUUhy.mjs +0 -49
  120. package/dist/es/chunk/DX-2VRY2.mjs +0 -836
  121. package/dist/es/chunk/DZ2oTFad.mjs +0 -687
  122. package/dist/es/chunk/D_bou1py.mjs +0 -55
  123. package/dist/es/chunk/Da199A5L.mjs +0 -314
  124. package/dist/es/chunk/DbhQlaOz.mjs +0 -94
  125. package/dist/es/chunk/Dgu95mOy.mjs +0 -237
  126. package/dist/es/chunk/DhGOsWxx.mjs +0 -6
  127. package/dist/es/chunk/Dm_Sj5aH.mjs +0 -487
  128. package/dist/es/chunk/Dmi-1GRO.mjs +0 -163
  129. package/dist/es/chunk/DodoD9a9.mjs +0 -52
  130. package/dist/es/chunk/DrrVDcwm.mjs +0 -955
  131. package/dist/es/chunk/Du_zJ1Fz.mjs +0 -49
  132. package/dist/es/chunk/DxxbB5jY.mjs +0 -34
  133. package/dist/es/chunk/Gk1J52Yw.mjs +0 -207
  134. package/dist/es/chunk/NsldgdCh.mjs +0 -704
  135. package/dist/es/chunk/V6KjsUQN.mjs +0 -35
  136. package/dist/es/chunk/eEsLFV3s.mjs +0 -76
  137. package/dist/es/chunk/fqiLhk0V.mjs +0 -2065
  138. package/dist/es/chunk/nxVM7re4.mjs +0 -35
  139. package/dist/es/chunk/s7HLrANj.mjs +0 -215
  140. package/dist/es/chunk/vPhxogl3.mjs +0 -19
  141. package/dist/es/components/icon/icon2.mjs +0 -27
@@ -1,7 +1,7 @@
1
- import '../../chunk/Gk1J52Yw.mjs';
2
- /* empty css */
1
+ import { ElSplitter } from 'element-plus/es';
2
+ import 'element-plus/es/components/base/style/css';
3
+ import 'element-plus/es/components/splitter/style/css';
3
4
  import { defineComponent, createBlock, openBlock, withCtx, renderSlot } from 'vue';
4
- import { E as ElSplitter } from '../../chunk/C0XgBrDz.mjs';
5
5
 
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "splitter",
@@ -1,9 +1,9 @@
1
1
  import './index.css'
2
- import '../../chunk/Gk1J52Yw.mjs';
3
- /* empty css */
2
+ import { ElSplitterPanel } from 'element-plus/es';
3
+ import 'element-plus/es/components/base/style/css';
4
+ import 'element-plus/es/components/splitter-panel/style/css';
4
5
  import { createBlock, openBlock, normalizeClass, withCtx, renderSlot } from 'vue';
5
6
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
6
- import { a as ElSplitterPanel } from '../../chunk/C0XgBrDz.mjs';
7
7
 
8
8
  /* unplugin-vue-components disabled */const panel = "_panel_g5jo5_1";
9
9
  const style0 = {
@@ -1,5 +1,5 @@
1
1
  /* source: src/components/switch/switch.vue */
2
- .el-switch{--el-switch-on-color:var(--el-color-primary);--el-switch-off-color:var(--el-border-color);align-items:center;display:inline-flex;font-size:14px;height:32px;line-height:20px;position:relative;vertical-align:middle}.el-switch.is-disabled .el-switch__core,.el-switch.is-disabled .el-switch__label{cursor:not-allowed}.el-switch__label{color:var(--el-text-color-primary);cursor:pointer;display:inline-block;font-size:14px;font-weight:500;height:20px;transition:var(--el-transition-duration-fast);vertical-align:middle}.el-switch__label.is-active{color:var(--el-color-primary)}.el-switch__label--left{margin-right:10px}.el-switch__label--right{margin-left:10px}.el-switch__label *{display:inline-block;font-size:14px;line-height:1}.el-switch__label .el-icon{height:inherit}.el-switch__label .el-icon svg{vertical-align:middle}.el-switch__input{height:0;margin:0;opacity:0;position:absolute;width:0}.el-switch__input:focus-visible~.el-switch__core{outline:2px solid var(--el-switch-on-color);outline-offset:1px}.el-switch__core{align-items:center;background:var(--el-switch-off-color);border:1px solid var(--el-switch-border-color,var(--el-switch-off-color));border-radius:10px;box-sizing:border-box;cursor:pointer;display:inline-flex;height:20px;min-width:40px;outline:none;position:relative;transition:border-color var(--el-transition-duration),background-color var(--el-transition-duration)}.el-switch__core .el-switch__inner{align-items:center;display:flex;height:16px;justify-content:center;overflow:hidden;padding:0 4px 0 18px;transition:all var(--el-transition-duration);width:100%}.el-switch__core .el-switch__inner-wrapper{align-items:center;color:var(--el-color-white);display:flex;font-size:12px;overflow:hidden;text-overflow:ellipsis;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.el-switch__core .el-switch__action{align-items:center;background-color:var(--el-color-white);border-radius:var(--el-border-radius-circle);color:var(--el-switch-off-color);display:flex;height:16px;justify-content:center;left:1px;position:absolute;transition:all var(--el-transition-duration);width:16px}.el-switch.is-checked .el-switch__core{background-color:var(--el-switch-on-color);border-color:var(--el-switch-border-color,var(--el-switch-on-color))}.el-switch.is-checked .el-switch__core .el-switch__action{color:var(--el-switch-on-color);left:calc(100% - 17px)}.el-switch.is-checked .el-switch__core .el-switch__inner{padding:0 18px 0 4px}.el-switch.is-disabled{opacity:.6}.el-switch--wide .el-switch__label.el-switch__label--left span{left:10px}.el-switch--wide .el-switch__label.el-switch__label--right span{right:10px}.el-switch .label-fade-enter-from,.el-switch .label-fade-leave-active{opacity:0}.el-switch--large{font-size:14px;height:40px;line-height:24px}.el-switch--large .el-switch__label{font-size:14px;height:24px}.el-switch--large .el-switch__label *{font-size:14px}.el-switch--large .el-switch__core{border-radius:12px;height:24px;min-width:50px}.el-switch--large .el-switch__core .el-switch__inner{height:20px;padding:0 6px 0 22px}.el-switch--large .el-switch__core .el-switch__action{height:20px;width:20px}.el-switch--large.is-checked .el-switch__core .el-switch__action{left:calc(100% - 21px)}.el-switch--large.is-checked .el-switch__core .el-switch__inner{padding:0 22px 0 6px}.el-switch--small{font-size:12px;height:24px;line-height:16px}.el-switch--small .el-switch__label{font-size:12px;height:16px}.el-switch--small .el-switch__label *{font-size:12px}.el-switch--small .el-switch__core{border-radius:8px;height:16px;min-width:30px}.el-switch--small .el-switch__core .el-switch__inner{height:12px;padding:0 2px 0 14px}.el-switch--small .el-switch__core .el-switch__action{height:12px;width:12px}.el-switch--small.is-checked .el-switch__core .el-switch__action{left:calc(100% - 13px)}.el-switch--small.is-checked .el-switch__core .el-switch__inner{padding:0 14px 0 2px}._main_5oj5r_1 {
2
+ ._main_5oj5r_1 {
3
3
  position: relative;
4
4
  display: inline-block;
5
5
  }
@@ -1,398 +1,12 @@
1
1
  import './index.css'
2
- import { i as isString, b as buildProps, d as definePropType, u as useNamespace, a as debugWarn, k as isPromise, t as throwError } from '../../chunk/Gk1J52Yw.mjs';
3
- import { E as ElPopconfirm } from '../../chunk/s7HLrANj.mjs';
4
- import '../../chunk/CoGexPPD.mjs';
5
- /* empty css */
6
- import '../../chunk/CPt6MxJW.mjs';
7
- import { defineComponent, computed, ref, shallowRef, watch, onMounted, createElementBlock, openBlock, withModifiers, normalizeClass, createElementVNode, createCommentVNode, withKeys, unref, renderSlot, createBlock, withCtx, resolveDynamicComponent, toDisplayString, normalizeStyle, createVNode, nextTick, useTemplateRef, mergeProps, isRef } from 'vue';
8
- import { useFormDisabled as useFormDisabled$1 } from 'element-plus';
2
+ import { ElSwitch, ElPopconfirm } from 'element-plus/es';
3
+ import 'element-plus/es/components/base/style/css';
4
+ import 'element-plus/es/components/popconfirm/style/css';
5
+ import 'element-plus/es/components/switch/style/css';
6
+ import { defineComponent, useTemplateRef, onMounted, createBlock, unref, openBlock, mergeProps, isRef, withCtx, createElementVNode, normalizeClass, createVNode } from 'vue';
7
+ import { useFormDisabled } from 'element-plus';
9
8
  import { useVModel } from '@vueuse/core';
10
- import { E as ElIcon } from '../../chunk/D0QTifnI.mjs';
11
- import { Loading } from '@element-plus/icons-vue';
12
- import { c as componentSizes } from '../../chunk/vPhxogl3.mjs';
13
- import { i as iconPropType } from '../icon/icon2.mjs';
14
- import { u as useAriaProps } from '../../chunk/BunQI8Jb.mjs';
15
- import { I as INPUT_EVENT, C as CHANGE_EVENT, U as UPDATE_MODEL_EVENT } from '../../chunk/Ct6q2FXg.mjs';
16
- import { d as isBoolean, b as isNumber } from '../../chunk/Bc6yUGLs.mjs';
17
- import { _ as _export_sfc, w as withInstall } from '../../chunk/V6KjsUQN.mjs';
18
- import { u as useFormItem, c as useFormSize, b as useFormItemInputId, a as useFormDisabled } from '../../chunk/CBMjhoFP.mjs';
19
- import { a as addUnit } from '../../chunk/DodoD9a9.mjs';
20
- import { _ as _export_sfc$1 } from '../../chunk/pcqpp-6-.mjs';
21
-
22
- const isValidComponentSize = (val) => ["", ...componentSizes].includes(val);
23
-
24
- const switchProps = buildProps({
25
- modelValue: {
26
- type: [Boolean, String, Number],
27
- default: false
28
- },
29
- disabled: {
30
- type: Boolean,
31
- default: void 0
32
- },
33
- loading: Boolean,
34
- size: {
35
- type: String,
36
- validator: isValidComponentSize
37
- },
38
- width: {
39
- type: [String, Number],
40
- default: ""
41
- },
42
- inlinePrompt: Boolean,
43
- inactiveActionIcon: {
44
- type: iconPropType
45
- },
46
- activeActionIcon: {
47
- type: iconPropType
48
- },
49
- activeIcon: {
50
- type: iconPropType
51
- },
52
- inactiveIcon: {
53
- type: iconPropType
54
- },
55
- activeText: {
56
- type: String,
57
- default: ""
58
- },
59
- inactiveText: {
60
- type: String,
61
- default: ""
62
- },
63
- activeValue: {
64
- type: [Boolean, String, Number],
65
- default: true
66
- },
67
- inactiveValue: {
68
- type: [Boolean, String, Number],
69
- default: false
70
- },
71
- name: {
72
- type: String,
73
- default: ""
74
- },
75
- validateEvent: {
76
- type: Boolean,
77
- default: true
78
- },
79
- beforeChange: {
80
- type: definePropType(Function)
81
- },
82
- id: String,
83
- tabindex: {
84
- type: [String, Number]
85
- },
86
- ...useAriaProps(["ariaLabel"])
87
- });
88
- const switchEmits = {
89
- [UPDATE_MODEL_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
90
- [CHANGE_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val),
91
- [INPUT_EVENT]: (val) => isBoolean(val) || isString(val) || isNumber(val)
92
- };
93
-
94
- const _hoisted_1 = ["id", "aria-checked", "aria-disabled", "aria-label", "name", "true-value", "false-value", "disabled", "tabindex"];
95
- const _hoisted_2 = ["aria-hidden"];
96
- const _hoisted_3 = { key: 1 };
97
- const _hoisted_4 = { key: 1 };
98
- const _hoisted_5 = ["aria-hidden"];
99
- const COMPONENT_NAME = "ElSwitch";
100
- const _sfc_main$1 = defineComponent({
101
- ...{
102
- name: COMPONENT_NAME
103
- },
104
- __name: "switch",
105
- props: switchProps,
106
- emits: switchEmits,
107
- setup(__props, { expose: __expose, emit: __emit }) {
108
- const props = __props;
109
- const emit = __emit;
110
- const { formItem } = useFormItem();
111
- const switchSize = useFormSize();
112
- const ns = useNamespace("switch");
113
- const { inputId } = useFormItemInputId(props, {
114
- formItemContext: formItem
115
- });
116
- const switchDisabled = useFormDisabled(
117
- computed(() => {
118
- if (props.loading) {
119
- return true;
120
- }
121
- return void 0;
122
- })
123
- );
124
- const isControlled = ref(props.modelValue !== false);
125
- const input = shallowRef();
126
- const switchKls = computed(() => [
127
- ns.b(),
128
- ns.m(switchSize.value),
129
- ns.is("disabled", switchDisabled.value),
130
- ns.is("checked", checked.value)
131
- ]);
132
- const labelLeftKls = computed(() => [
133
- ns.e("label"),
134
- ns.em("label", "left"),
135
- ns.is("active", !checked.value)
136
- ]);
137
- const labelRightKls = computed(() => [
138
- ns.e("label"),
139
- ns.em("label", "right"),
140
- ns.is("active", checked.value)
141
- ]);
142
- const coreStyle = computed(() => ({
143
- width: addUnit(props.width)
144
- }));
145
- watch(
146
- () => props.modelValue,
147
- () => {
148
- isControlled.value = true;
149
- }
150
- );
151
- const actualValue = computed(() => {
152
- return isControlled.value ? props.modelValue : false;
153
- });
154
- const checked = computed(() => actualValue.value === props.activeValue);
155
- if (![props.activeValue, props.inactiveValue].includes(actualValue.value)) {
156
- emit(UPDATE_MODEL_EVENT, props.inactiveValue);
157
- emit(CHANGE_EVENT, props.inactiveValue);
158
- emit(INPUT_EVENT, props.inactiveValue);
159
- }
160
- watch(checked, (val) => {
161
- var _a;
162
- input.value.checked = val;
163
- if (props.validateEvent) {
164
- (_a = formItem == null ? void 0 : formItem.validate) == null ? void 0 : _a.call(formItem, "change").catch((err) => debugWarn(err));
165
- }
166
- });
167
- const handleChange = () => {
168
- const val = checked.value ? props.inactiveValue : props.activeValue;
169
- emit(UPDATE_MODEL_EVENT, val);
170
- emit(CHANGE_EVENT, val);
171
- emit(INPUT_EVENT, val);
172
- nextTick(() => {
173
- input.value.checked = checked.value;
174
- });
175
- };
176
- const switchValue = () => {
177
- if (switchDisabled.value)
178
- return;
179
- const { beforeChange } = props;
180
- if (!beforeChange) {
181
- handleChange();
182
- return;
183
- }
184
- const shouldChange = beforeChange();
185
- const isPromiseOrBool = [
186
- isPromise(shouldChange),
187
- isBoolean(shouldChange)
188
- ].includes(true);
189
- if (!isPromiseOrBool) {
190
- throwError(
191
- COMPONENT_NAME,
192
- "beforeChange must return type `Promise<boolean>` or `boolean`"
193
- );
194
- }
195
- if (isPromise(shouldChange)) {
196
- shouldChange.then((result) => {
197
- if (result) {
198
- handleChange();
199
- }
200
- }).catch((e) => {
201
- debugWarn(COMPONENT_NAME, `some error occurred: ${e}`);
202
- });
203
- } else if (shouldChange) {
204
- handleChange();
205
- }
206
- };
207
- const focus = () => {
208
- var _a, _b;
209
- (_b = (_a = input.value) == null ? void 0 : _a.focus) == null ? void 0 : _b.call(_a);
210
- };
211
- onMounted(() => {
212
- input.value.checked = checked.value;
213
- });
214
- __expose({
215
- focus,
216
- checked
217
- });
218
- return (_ctx, _cache) => {
219
- return openBlock(), createElementBlock(
220
- "div",
221
- {
222
- class: normalizeClass(switchKls.value),
223
- onClick: withModifiers(switchValue, ["prevent"])
224
- },
225
- [
226
- createElementVNode("input", {
227
- id: unref(inputId),
228
- ref_key: "input",
229
- ref: input,
230
- class: normalizeClass(unref(ns).e("input")),
231
- type: "checkbox",
232
- role: "switch",
233
- "aria-checked": checked.value,
234
- "aria-disabled": unref(switchDisabled),
235
- "aria-label": _ctx.ariaLabel,
236
- name: _ctx.name,
237
- "true-value": _ctx.activeValue,
238
- "false-value": _ctx.inactiveValue,
239
- disabled: unref(switchDisabled),
240
- tabindex: _ctx.tabindex,
241
- onChange: handleChange,
242
- onKeydown: withKeys(switchValue, ["enter"])
243
- }, null, 42, _hoisted_1),
244
- !_ctx.inlinePrompt && (_ctx.inactiveIcon || _ctx.inactiveText || _ctx.$slots.inactive) ? (openBlock(), createElementBlock(
245
- "span",
246
- {
247
- key: 0,
248
- class: normalizeClass(labelLeftKls.value)
249
- },
250
- [
251
- renderSlot(_ctx.$slots, "inactive", {}, () => [
252
- _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
253
- default: withCtx(() => [
254
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
255
- ]),
256
- _: 1
257
- })) : createCommentVNode("v-if", true),
258
- !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock("span", {
259
- key: 1,
260
- "aria-hidden": checked.value
261
- }, toDisplayString(_ctx.inactiveText), 9, _hoisted_2)) : createCommentVNode("v-if", true)
262
- ])
263
- ],
264
- 2
265
- )) : createCommentVNode("v-if", true),
266
- createElementVNode(
267
- "span",
268
- {
269
- class: normalizeClass(unref(ns).e("core")),
270
- style: normalizeStyle(coreStyle.value)
271
- },
272
- [
273
- _ctx.inlinePrompt ? (openBlock(), createElementBlock(
274
- "div",
275
- {
276
- key: 0,
277
- class: normalizeClass(unref(ns).e("inner"))
278
- },
279
- [
280
- !checked.value ? (openBlock(), createElementBlock(
281
- "div",
282
- {
283
- key: 0,
284
- class: normalizeClass(unref(ns).e("inner-wrapper"))
285
- },
286
- [
287
- renderSlot(_ctx.$slots, "inactive", {}, () => [
288
- _ctx.inactiveIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
289
- default: withCtx(() => [
290
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveIcon)))
291
- ]),
292
- _: 1
293
- })) : createCommentVNode("v-if", true),
294
- !_ctx.inactiveIcon && _ctx.inactiveText ? (openBlock(), createElementBlock(
295
- "span",
296
- _hoisted_3,
297
- toDisplayString(_ctx.inactiveText),
298
- 1
299
- )) : createCommentVNode("v-if", true)
300
- ])
301
- ],
302
- 2
303
- )) : (openBlock(), createElementBlock(
304
- "div",
305
- {
306
- key: 1,
307
- class: normalizeClass(unref(ns).e("inner-wrapper"))
308
- },
309
- [
310
- renderSlot(_ctx.$slots, "active", {}, () => [
311
- _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
312
- default: withCtx(() => [
313
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
314
- ]),
315
- _: 1
316
- })) : createCommentVNode("v-if", true),
317
- !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock(
318
- "span",
319
- _hoisted_4,
320
- toDisplayString(_ctx.activeText),
321
- 1
322
- )) : createCommentVNode("v-if", true)
323
- ])
324
- ],
325
- 2
326
- ))
327
- ],
328
- 2
329
- )) : createCommentVNode("v-if", true),
330
- createElementVNode(
331
- "div",
332
- {
333
- class: normalizeClass(unref(ns).e("action"))
334
- },
335
- [
336
- _ctx.loading ? (openBlock(), createBlock(unref(ElIcon), {
337
- key: 0,
338
- class: normalizeClass(unref(ns).is("loading"))
339
- }, {
340
- default: withCtx(() => [
341
- createVNode(unref(Loading))
342
- ]),
343
- _: 1
344
- }, 8, ["class"])) : checked.value ? renderSlot(_ctx.$slots, "active-action", { key: 1 }, () => [
345
- _ctx.activeActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
346
- default: withCtx(() => [
347
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeActionIcon)))
348
- ]),
349
- _: 1
350
- })) : createCommentVNode("v-if", true)
351
- ]) : !checked.value ? renderSlot(_ctx.$slots, "inactive-action", { key: 2 }, () => [
352
- _ctx.inactiveActionIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
353
- default: withCtx(() => [
354
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.inactiveActionIcon)))
355
- ]),
356
- _: 1
357
- })) : createCommentVNode("v-if", true)
358
- ]) : createCommentVNode("v-if", true)
359
- ],
360
- 2
361
- )
362
- ],
363
- 6
364
- ),
365
- !_ctx.inlinePrompt && (_ctx.activeIcon || _ctx.activeText || _ctx.$slots.active) ? (openBlock(), createElementBlock(
366
- "span",
367
- {
368
- key: 1,
369
- class: normalizeClass(labelRightKls.value)
370
- },
371
- [
372
- renderSlot(_ctx.$slots, "active", {}, () => [
373
- _ctx.activeIcon ? (openBlock(), createBlock(unref(ElIcon), { key: 0 }, {
374
- default: withCtx(() => [
375
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.activeIcon)))
376
- ]),
377
- _: 1
378
- })) : createCommentVNode("v-if", true),
379
- !_ctx.activeIcon && _ctx.activeText ? (openBlock(), createElementBlock("span", {
380
- key: 1,
381
- "aria-hidden": !checked.value
382
- }, toDisplayString(_ctx.activeText), 9, _hoisted_5)) : createCommentVNode("v-if", true)
383
- ])
384
- ],
385
- 2
386
- )) : createCommentVNode("v-if", true)
387
- ],
388
- 2
389
- );
390
- };
391
- }
392
- });
393
- var Switch = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/switch/src/switch.vue"]]);
394
-
395
- const ElSwitch = withInstall(Switch);
9
+ import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
396
10
 
397
11
  const _sfc_main = /* @__PURE__ */ defineComponent({
398
12
  __name: "switch",
@@ -410,7 +24,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
410
24
  const emits = __emit;
411
25
  const myValue = useVModel(props, "modelValue", emits);
412
26
  const mainRef = useTemplateRef("mainRef");
413
- const formDisabled = useFormDisabled$1();
27
+ const formDisabled = useFormDisabled();
414
28
  function getSwitchEle() {
415
29
  if (!mainRef.value) {
416
30
  return;
@@ -463,7 +77,7 @@ const style0 = {
463
77
  const cssModules = {
464
78
  "$style": style0
465
79
  };
466
- const Component = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__cssModules", cssModules]]);
80
+ const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
467
81
 
468
82
  const __vite_glob_0_51 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
469
83
  __proto__: null,
@@ -1,18 +1,16 @@
1
1
  import './index.css'
2
- import '../../chunk/Gk1J52Yw.mjs';
3
- import '../../chunk/CoGexPPD.mjs';
4
- /* empty css */
5
- import { E as ElAlert } from '../../chunk/D3AvJlVX.mjs';
6
- import { E as ElInput } from '../../chunk/DX-2VRY2.mjs';
7
- import { E as ElSpace } from '../../chunk/Dgu95mOy.mjs';
8
- /* empty css */
2
+ import { ElSpace, ElTag, ElInput, ElPopover, ElAlert } from 'element-plus/es';
3
+ import 'element-plus/es/components/base/style/css';
4
+ import 'element-plus/es/components/popover/style/css';
5
+ import 'element-plus/es/components/alert/style/css';
6
+ import 'element-plus/es/components/input/style/css';
7
+ import 'element-plus/es/components/space/style/css';
8
+ import 'element-plus/es/components/tag/style/css';
9
9
  import { defineComponent, ref, computed, watch, createBlock, unref, openBlock, withCtx, createElementBlock, Fragment, renderList, mergeProps, createTextVNode, toDisplayString, createVNode, createCommentVNode, normalizeClass, isRef, withDirectives, withKeys } from 'vue';
10
10
  import { useFormDisabled, useFormItem } from 'element-plus';
11
11
  import { VueDraggable } from 'vue-draggable-plus';
12
12
  import { v as vFocus } from '../../chunk/CL65DvCP.mjs';
13
13
  import { C as Component$1 } from '../button/button.mjs';
14
- import { E as ElTag } from '../../chunk/Dmi-1GRO.mjs';
15
- import { E as ElPopover } from '../../chunk/Da199A5L.mjs';
16
14
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
17
15
 
18
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,7 +1,7 @@
1
1
  import './index.css'
2
- import '../../chunk/Gk1J52Yw.mjs';
3
- /* empty css */
4
- import { a as ElTooltip } from '../../chunk/CoGexPPD.mjs';
2
+ import { ElTooltip } from 'element-plus/es';
3
+ import 'element-plus/es/components/base/style/css';
4
+ import 'element-plus/es/components/tooltip/style/css';
5
5
  import { defineComponent, ref, useTemplateRef, computed, watch, onMounted, nextTick, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createElementVNode, renderSlot, createTextVNode, toDisplayString } from 'vue';
6
6
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
7
7
 
@@ -1,10 +1,42 @@
1
1
  import './index.css'
2
- import { defineComponent, useTemplateRef, computed, ref, watch, nextTick, withDirectives, createCommentVNode, unref, createBlock, openBlock, mergeProps, isRef, createSlots, withCtx, renderSlot } from 'vue';
2
+ import { defineComponent, useTemplateRef, computed, ref, watch, nextTick, withDirectives, createCommentVNode, unref, createBlock, openBlock, normalizeClass, isRef, createSlots, withCtx, renderSlot } from 'vue';
3
3
  import { t as thousand } from '../../chunk/Mq_fqKb4.mjs';
4
4
  import { C as Component$1 } from '../input/input.mjs';
5
- import { i as isEqual } from '../../chunk/B71xEPfK.mjs';
5
+ import { b as baseIsEqual } from '../../chunk/uuUHUjSk.mjs';
6
6
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
7
7
 
8
+ /**
9
+ * Performs a deep comparison between two values to determine if they are
10
+ * equivalent.
11
+ *
12
+ * **Note:** This method supports comparing arrays, array buffers, booleans,
13
+ * date objects, error objects, maps, numbers, `Object` objects, regexes,
14
+ * sets, strings, symbols, and typed arrays. `Object` objects are compared
15
+ * by their own, not inherited, enumerable properties. Functions and DOM
16
+ * nodes are compared by strict equality, i.e. `===`.
17
+ *
18
+ * @static
19
+ * @memberOf _
20
+ * @since 0.1.0
21
+ * @category Lang
22
+ * @param {*} value The value to compare.
23
+ * @param {*} other The other value to compare.
24
+ * @returns {boolean} Returns `true` if the values are equivalent, else `false`.
25
+ * @example
26
+ *
27
+ * var object = { 'a': 1 };
28
+ * var other = { 'a': 1 };
29
+ *
30
+ * _.isEqual(object, other);
31
+ * // => true
32
+ *
33
+ * object === other;
34
+ * // => false
35
+ */
36
+ function isEqual(value, other) {
37
+ return baseIsEqual(value, other);
38
+ }
39
+
8
40
  const _sfc_main = /* @__PURE__ */ defineComponent({
9
41
  __name: "thousand-input",
10
42
  props: {
@@ -80,17 +112,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
112
  });
81
113
  });
82
114
  return (_ctx, _cache) => {
83
- return unref(visible) ? withDirectives((openBlock(), createBlock(Component$1, mergeProps({
115
+ return unref(visible) ? withDirectives((openBlock(), createBlock(Component$1, {
84
116
  key: 0,
85
117
  ref_key: "inputRef",
86
118
  ref: inputRef,
87
119
  modelValue: unref(myValue),
88
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myValue) ? myValue.value = $event : null)
89
- }, _ctx.$attrs, {
120
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => isRef(myValue) ? myValue.value = $event : null),
90
121
  clearable: false,
91
- class: _ctx.$style.main,
122
+ class: normalizeClass(_ctx.$style.main),
92
123
  onChange: handleChange
93
- }), createSlots({ _: 2 }, [
124
+ }, createSlots({ _: 2 }, [
94
125
  _ctx.$slots.prepend ? {
95
126
  name: "prepend",
96
127
  fn: withCtx(() => [
@@ -105,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
105
136
  ]),
106
137
  key: "1"
107
138
  } : void 0
108
- ]), 1040, ["modelValue", "class"])), [
139
+ ]), 1032, ["modelValue", "class"])), [
109
140
  [unref(thousand), __props.options]
110
141
  ]) : createCommentVNode("", true);
111
142
  };
@@ -1,6 +1,7 @@
1
1
  import './index.css'
2
- import '../../chunk/Gk1J52Yw.mjs';
3
- import { v as vLoading } from '../../chunk/BTSSEFfD.mjs';
2
+ import { ElLoadingDirective } from 'element-plus/es';
3
+ import 'element-plus/es/components/base/style/css';
4
+ import 'element-plus/es/components/loading/style/css';
4
5
  import { defineComponent, useCssVars, shallowRef, ref, computed, watch, onMounted, onBeforeUnmount, withDirectives, createElementBlock, openBlock, normalizeClass, createElementVNode, unref } from 'vue';
5
6
  import { useDark } from '@vueuse/core';
6
7
  import { i as index } from '../../chunk/BaJ7k5Lg.mjs';
@@ -172,7 +173,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
172
173
  }
173
174
  __expose({ setContent, getContent });
174
175
  return (_ctx, _cache) => {
175
- const _directive_loading = vLoading;
176
+ const _directive_loading = ElLoadingDirective;
176
177
  return withDirectives((openBlock(), createElementBlock("div", {
177
178
  class: normalizeClass(_ctx.$style.tinymce)
178
179
  }, [
@@ -1,14 +1,13 @@
1
1
  import './index.css'
2
- import '../../chunk/Gk1J52Yw.mjs';
3
- import '../../chunk/CoGexPPD.mjs';
4
- /* empty css */
2
+ import { ElPopover } from 'element-plus/es';
3
+ import 'element-plus/es/components/base/style/css';
4
+ import 'element-plus/es/components/popover/style/css';
5
5
  import { defineComponent, useCssVars, unref, computed, useCssModule, useTemplateRef, createBlock, openBlock, withCtx, createElementVNode, normalizeClass, createVNode, isRef, mergeProps } from 'vue';
6
6
  import { useFormDisabled } from 'element-plus';
7
7
  import { f as formatToPx } from '../../chunk/DZ5W9TaA.mjs';
8
8
  import { C as Component$2 } from '../select/select.mjs';
9
9
  import { C as Component$1 } from '../transfer-panel/transfer-panel.mjs';
10
10
  import { useVModel, useToggle, useThrottleFn, onClickOutside } from '@vueuse/core';
11
- import { E as ElPopover } from '../../chunk/Da199A5L.mjs';
12
11
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
13
12
 
14
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,15 +1,16 @@
1
1
  import './index.css'
2
2
  import { defineComponent, useCssVars, ref, computed, createElementBlock, openBlock, normalizeClass, createVNode, createElementVNode, unref, withKeys, isRef, withCtx, createBlock, createTextVNode, toDisplayString, Fragment, renderList, createCommentVNode, renderSlot } from 'vue';
3
3
  import { useFormDisabled } from 'element-plus';
4
- import '../../chunk/Gk1J52Yw.mjs';
5
- import { E as ElInput } from '../../chunk/DX-2VRY2.mjs';
6
- import { E as ElText } from '../../chunk/DbhQlaOz.mjs';
4
+ import { ElInput, ElText } from 'element-plus/es';
5
+ import 'element-plus/es/components/base/style/css';
6
+ import 'element-plus/es/components/input/style/css';
7
+ import 'element-plus/es/components/text/style/css';
7
8
  import { Search } from '@element-plus/icons-vue';
8
9
  import { C as Component$3 } from '../button/button.mjs';
9
10
  import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
10
11
  import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
11
12
  import { useVModel } from '@vueuse/core';
12
- import { d as debounce } from '../../chunk/DAnWZLYj.mjs';
13
+ import { d as debounce } from '../../chunk/CzWfBa_8.mjs';
13
14
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
14
15
 
15
16
  const _hoisted_1 = ["onClick"];