savor-ui 0.3.0 → 0.3.2

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 (157) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/es/components/index.d.ts +0 -1
  3. package/dist/es/components/index.mjs +0 -2
  4. package/dist/es/components/src/_comp/HeightTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +17 -18
  5. package/dist/es/components/src/_comp/OpacityTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +13 -14
  6. package/dist/es/components/src/_comp/ScaleTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +14 -15
  7. package/dist/es/components/src/_comp/SideTransition.vue_vue_type_script_setup_true_vapor_true_lang.mjs +22 -23
  8. package/dist/es/components/src/anchor/anchor-link.vue_vue_type_script_setup_true_vapor_true_lang.mjs +20 -21
  9. package/dist/es/components/src/anchor/anchor.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  10. package/dist/es/components/src/auto-complete/auto-complete.vue_vue_type_script_setup_true_vapor_true_lang.mjs +49 -50
  11. package/dist/es/components/src/avatar/avatar.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  12. package/dist/es/components/src/back-top/back-top.vue_vue_type_script_setup_true_vapor_true_lang.mjs +24 -25
  13. package/dist/es/components/src/badge/badge.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -7
  14. package/dist/es/components/src/button/button-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  15. package/dist/es/components/src/button/button.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  16. package/dist/es/components/src/card/card.vue_vue_type_script_setup_true_vapor_true_lang.mjs +14 -15
  17. package/dist/es/components/src/carousel/carousel.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -11
  18. package/dist/es/components/src/cascader/cascader-column.vue_vue_type_script_setup_true_vapor_true_lang.mjs +52 -52
  19. package/dist/es/components/src/cascader/cascader.vue_vue_type_script_setup_true_vapor_true_lang.mjs +80 -81
  20. package/dist/es/components/src/checkbox/checkbox-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  21. package/dist/es/components/src/checkbox/checkbox.vue_vue_type_script_setup_true_vapor_true_lang.mjs +27 -28
  22. package/dist/es/components/src/collapse/collapse-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +15 -16
  23. package/dist/es/components/src/collapse/collapse.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  24. package/dist/es/components/src/color-picker/color-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +83 -84
  25. package/dist/es/components/src/config-provider/config-provider.d.ts +17 -9
  26. package/dist/es/components/src/config-provider/config-provider.vue.mjs +1 -1
  27. package/dist/es/components/src/{config-provider-vapor/config-provider-vapor.vue_vue_type_script_setup_true_vapor_true_lang.mjs → config-provider/config-provider.vue_vue_type_script_setup_true_vapor_true_lang.mjs} +6 -7
  28. package/dist/es/components/src/config-provider/index.d.ts +19 -16
  29. package/dist/es/components/src/date-picker/date-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +24 -25
  30. package/dist/es/components/src/date-picker/day-view.vue_vue_type_script_setup_true_vapor_true_lang.mjs +17 -18
  31. package/dist/es/components/src/date-picker/month-view.vue_vue_type_script_setup_true_vapor_true_lang.mjs +50 -51
  32. package/dist/es/components/src/date-picker/panel-day-range.vue_vue_type_script_setup_true_vapor_true_lang.mjs +5 -6
  33. package/dist/es/components/src/date-picker/panel-day.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  34. package/dist/es/components/src/date-picker/panel-month-range.vue_vue_type_script_setup_true_vapor_true_lang.mjs +5 -6
  35. package/dist/es/components/src/date-picker/panel-month.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  36. package/dist/es/components/src/date-picker/panel-week-range.vue_vue_type_script_setup_true_vapor_true_lang.mjs +7 -8
  37. package/dist/es/components/src/date-picker/panel-week.vue_vue_type_script_setup_true_vapor_true_lang.mjs +5 -6
  38. package/dist/es/components/src/date-picker/panel-year-range.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  39. package/dist/es/components/src/date-picker/panel-year.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  40. package/dist/es/components/src/date-picker/week-view.vue_vue_type_script_setup_true_vapor_true_lang.mjs +16 -17
  41. package/dist/es/components/src/date-picker/year-view.vue_vue_type_script_setup_true_vapor_true_lang.mjs +45 -46
  42. package/dist/es/components/src/datetime-picker/datetime-picker.vue_vue_type_script_setup_true_vapor_true_lang.mjs +39 -40
  43. package/dist/es/components/src/datetime-picker/panel-datetime-range.vue_vue_type_script_setup_true_vapor_true_lang.mjs +7 -8
  44. package/dist/es/components/src/datetime-picker/panel-datetime-time.vue_vue_type_script_setup_true_vapor_true_lang.mjs +8 -9
  45. package/dist/es/components/src/datetime-picker/panel-datetime.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -11
  46. package/dist/es/components/src/datetime-picker/panel-time.vue_vue_type_script_setup_true_vapor_true_lang.mjs +11 -12
  47. package/dist/es/components/src/descriptions/descriptions-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  48. package/dist/es/components/src/descriptions/descriptions.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  49. package/dist/es/components/src/divider/divider.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  50. package/dist/es/components/src/drawer/drawer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +79 -80
  51. package/dist/es/components/src/dropdown/doption.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -7
  52. package/dist/es/components/src/dropdown/dropdown.vue_vue_type_script_setup_true_vapor_true_lang.mjs +18 -19
  53. package/dist/es/components/src/dropdown/dsubmenu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +20 -21
  54. package/dist/es/components/src/empty/empty.vue_vue_type_script_setup_true_vapor_true_lang.mjs +1 -2
  55. package/dist/es/components/src/form/form-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +61 -62
  56. package/dist/es/components/src/form/form.vue_vue_type_script_setup_true_vapor_true_lang.mjs +10 -11
  57. package/dist/es/components/src/galleria/galleria.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -7
  58. package/dist/es/components/src/grid/grid-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  59. package/dist/es/components/src/grid/grid.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  60. package/dist/es/components/src/icon/icon.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  61. package/dist/es/components/src/image/image-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +40 -41
  62. package/dist/es/components/src/image/image-preview.vue_vue_type_script_setup_true_vapor_true_lang.mjs +33 -34
  63. package/dist/es/components/src/image/image.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -2
  64. package/dist/es/components/src/input/input.vue_vue_type_script_setup_true_vapor_true_lang.mjs +50 -51
  65. package/dist/es/components/src/input-number/input-number.vue_vue_type_script_setup_true_vapor_true_lang.mjs +56 -57
  66. package/dist/es/components/src/input-tag/input-tag.vue_vue_type_script_setup_true_vapor_true_lang.mjs +53 -54
  67. package/dist/es/components/src/layer/layer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +70 -75
  68. package/dist/es/components/src/layout/aside.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  69. package/dist/es/components/src/layout/content.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  70. package/dist/es/components/src/layout/footer.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  71. package/dist/es/components/src/layout/header.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  72. package/dist/es/components/src/layout/layout.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  73. package/dist/es/components/src/link/link.vue_vue_type_script_setup_true_vapor_true_lang.mjs +1 -2
  74. package/dist/es/components/src/list/list.vue_vue_type_script_setup_true_vapor_true_lang.mjs +19 -20
  75. package/dist/es/components/src/menu/menu-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +16 -17
  76. package/dist/es/components/src/menu/menu-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +41 -42
  77. package/dist/es/components/src/menu/menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +41 -42
  78. package/dist/es/components/src/menu/sub-menu.vue_vue_type_script_setup_true_vapor_true_lang.mjs +66 -67
  79. package/dist/es/components/src/message/message-container.vue_vue_type_script_setup_true_vapor_true_lang.mjs +36 -37
  80. package/dist/es/components/src/message/message.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -7
  81. package/dist/es/components/src/meter-group/meter-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  82. package/dist/es/components/src/modal/modal.vue_vue_type_script_setup_true_vapor_true_lang.mjs +113 -114
  83. package/dist/es/components/src/pagination/pagination.vue_vue_type_script_setup_true_vapor_true_lang.mjs +12 -13
  84. package/dist/es/components/src/panel/panel.vue_vue_type_script_setup_true_vapor_true_lang.mjs +20 -21
  85. package/dist/es/components/src/popover/popover.vue_vue_type_script_setup_true_vapor_true_lang.mjs +72 -72
  86. package/dist/es/components/src/progress/progress.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  87. package/dist/es/components/src/radio/radio-group.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  88. package/dist/es/components/src/radio/radio.vue_vue_type_script_setup_true_vapor_true_lang.mjs +24 -25
  89. package/dist/es/components/src/scrollbar/scrollbar.vue_vue_type_script_setup_true_vapor_true_lang.mjs +76 -77
  90. package/dist/es/components/src/segmented/segmented.vue_vue_type_script_setup_true_vapor_true_lang.mjs +34 -35
  91. package/dist/es/components/src/select/select.vue_vue_type_script_setup_true_vapor_true_lang.mjs +142 -143
  92. package/dist/es/components/src/skeleton/skeleton.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  93. package/dist/es/components/src/space/space.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  94. package/dist/es/components/src/statistic/statistic.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  95. package/dist/es/components/src/switch/switch.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -7
  96. package/dist/es/components/src/table/table.vue_vue_type_script_setup_true_vapor_true_lang.mjs +192 -193
  97. package/dist/es/components/src/tabs/index.d.ts +8 -0
  98. package/dist/es/components/src/tabs/tab-pane.vue_vue_type_script_setup_true_vapor_true_lang.mjs +24 -16
  99. package/dist/es/components/src/tabs/tab.d.ts +4 -0
  100. package/dist/es/components/src/tabs/tab.vue_vue_type_script_setup_true_vapor_true_lang.mjs +24 -16
  101. package/dist/es/components/src/tabs/tabs.vue_vue_type_script_setup_true_vapor_true_lang.mjs +117 -113
  102. package/dist/es/components/src/tag/tag.vue_vue_type_script_setup_true_vapor_true_lang.mjs +4 -5
  103. package/dist/es/components/src/text/text.vue_vue_type_script_setup_true_vapor_true_lang.mjs +54 -55
  104. package/dist/es/components/src/textarea/textarea.vue_vue_type_script_setup_true_vapor_true_lang.mjs +30 -31
  105. package/dist/es/components/src/timeline/timeline-item.vue_vue_type_script_setup_true_vapor_true_lang.mjs +6 -7
  106. package/dist/es/components/src/timeline/timeline.vue_vue_type_script_setup_true_vapor_true_lang.mjs +2 -3
  107. package/dist/es/components/src/tooltip/tooltip.vue_vue_type_script_setup_true_vapor_true_lang.mjs +22 -23
  108. package/dist/es/components/src/tree/node.vue_vue_type_script_setup_true_vapor_true_lang.mjs +19 -20
  109. package/dist/es/components/src/tree/tree.vue_vue_type_script_setup_true_vapor_true_lang.mjs +46 -47
  110. package/dist/es/components/src/upload/upload-drag.vue_vue_type_script_setup_true_vapor_true_lang.mjs +3 -4
  111. package/dist/es/components/src/upload/upload.vue_vue_type_script_setup_true_vapor_true_lang.mjs +89 -90
  112. package/dist/es/components/src/waterfall/waterfall.vue_vue_type_script_setup_true_vapor_true_lang.mjs +32 -33
  113. package/dist/es/components/src/watermark/watermark.vue_vue_type_script_setup_true_vapor_true_lang.mjs +8 -9
  114. package/dist/es/components/src/wheel/wheel.vue_vue_type_script_setup_true_vapor_true_lang.mjs +7 -8
  115. package/dist/es/core/components.mjs +51 -53
  116. package/dist/es/core/index.mjs +51 -53
  117. package/dist/es/icons/src/arrows-left.vue.mjs +2 -2
  118. package/dist/es/icons/src/arrows-right.vue.mjs +2 -2
  119. package/dist/es/icons/src/asterisk.vue.mjs +2 -2
  120. package/dist/es/icons/src/calendar.vue.mjs +2 -2
  121. package/dist/es/icons/src/check-circle-fill.vue.mjs +2 -2
  122. package/dist/es/icons/src/close-circle-fill.vue.mjs +2 -2
  123. package/dist/es/icons/src/close.vue.mjs +2 -2
  124. package/dist/es/icons/src/copy.vue.mjs +2 -2
  125. package/dist/es/icons/src/delete.vue.mjs +2 -2
  126. package/dist/es/icons/src/down.vue.mjs +2 -2
  127. package/dist/es/icons/src/edit.vue.mjs +2 -2
  128. package/dist/es/icons/src/eye-close.vue.mjs +2 -2
  129. package/dist/es/icons/src/eye.vue.mjs +2 -2
  130. package/dist/es/icons/src/fullscreen-exit.vue.mjs +2 -2
  131. package/dist/es/icons/src/fullscreen.vue.mjs +2 -2
  132. package/dist/es/icons/src/info-circle-fill.vue.mjs +2 -2
  133. package/dist/es/icons/src/left.vue.mjs +2 -2
  134. package/dist/es/icons/src/loading.vue.mjs +2 -2
  135. package/dist/es/icons/src/minus.vue.mjs +2 -2
  136. package/dist/es/icons/src/plus.vue.mjs +2 -2
  137. package/dist/es/icons/src/question.vue.mjs +2 -2
  138. package/dist/es/icons/src/refresh-left.vue.mjs +2 -2
  139. package/dist/es/icons/src/refresh-right.vue.mjs +2 -2
  140. package/dist/es/icons/src/refresh.vue.mjs +2 -2
  141. package/dist/es/icons/src/right.vue.mjs +2 -2
  142. package/dist/es/icons/src/up.vue.mjs +2 -2
  143. package/dist/es/icons/src/upload.vue.mjs +2 -2
  144. package/dist/es/icons/src/warning-circle-fill.vue.mjs +2 -2
  145. package/dist/es/icons/src/zoom-in.vue.mjs +2 -2
  146. package/dist/es/icons/src/zoom-out.vue.mjs +2 -2
  147. package/dist/json/vetur-attributes.json +0 -7
  148. package/dist/json/vetur-tags.json +0 -6
  149. package/dist/json/web-types.json +1 -29
  150. package/package.json +63 -63
  151. package/dist/es/components/src/config-provider/config-provider.vue_vue_type_script_setup_true_lang.mjs +0 -24
  152. package/dist/es/components/src/config-provider-vapor/config-provider-vapor.d.ts +0 -20
  153. package/dist/es/components/src/config-provider-vapor/config-provider-vapor.vue.mjs +0 -5
  154. package/dist/es/components/src/config-provider-vapor/index.d.ts +0 -21
  155. package/dist/es/components/src/config-provider-vapor/index.mjs +0 -8
  156. package/dist/es/components/src/config-provider-vapor/types.d.ts +0 -17
  157. package/dist/es/components/src/config-provider-vapor/types.mjs +0 -4
@@ -3,22 +3,22 @@ import "../../../hooks/index.mjs";
3
3
  import { formItemContextKey as t } from "../form/types.mjs";
4
4
  import { useFormItem as n } from "../form/use-form-item.mjs";
5
5
  import ee from "../../../icons/src/close.vue.mjs";
6
- import te from "../../../icons/src/down.vue.mjs";
7
- import r from "../../../icons/src/minus.vue.mjs";
8
- import i from "../../../icons/src/plus.vue.mjs";
6
+ import r from "../../../icons/src/down.vue.mjs";
7
+ import i from "../../../icons/src/minus.vue.mjs";
8
+ import te from "../../../icons/src/plus.vue.mjs";
9
9
  import ne from "../../../icons/src/up.vue.mjs";
10
10
  import "../../../icons/index.mjs";
11
11
  import { configProviderContextKey as re } from "../config-provider/types.mjs";
12
12
  import "../config-provider/index.mjs";
13
13
  import "../form/index.mjs";
14
- import { child as a, computed as ie, createComponent as o, createIf as s, createInvoker as c, createSlot as l, createTemplateRefSetter as ae, defineVaporComponent as u, delegateEvents as d, inject as f, mergeModels as p, next as oe, nextTick as m, on as h, ref as g, renderEffect as _, setClass as v, setInsertionState as y, setProp as b, setText as x, setValue as se, template as S, toDisplayString as C, toRefs as w, unref as T, useModel as E, watch as D, withModifiers as O } from "vue";
14
+ import { child as a, computed as ie, createComponent as o, createIf as s, createInvoker as c, createSlot as l, createTemplateRefSetter as ae, defineVaporComponent as u, delegateEvents as d, inject as f, mergeModels as p, next as oe, nextTick as m, on as h, ref as g, renderEffect as _, setClass as v, setInsertionState as y, setProp as b, setText as x, setValue as S, template as C, toDisplayString as w, toRefs as se, unref as T, useModel as ce, watch as E, withModifiers as D, withVaporModifiers as O } from "vue";
15
15
  //#region ../components/src/input-number/input-number.vue?vue&type=script&setup=true&vapor=true&lang.ts
16
- var k = S(" "), A = S("<div>"), ce = S("<div><div></div><div></div>"), le = S("<div><div><div><input type=text></div>", !0);
16
+ var k = C(" "), A = C("<div>"), j = C("<div><div></div><div></div>"), M = C("<div><div><div><input type=text></div>", 1);
17
17
  d("mousedown", "input", "keydown");
18
- var j = /* @__PURE__ */ u({
18
+ var N = /*@__PURE__*/ u({
19
19
  name: "SInputNumber",
20
20
  __name: "input-number",
21
- props: /* @__PURE__ */ p({
21
+ props: /*@__PURE__*/ p({
22
22
  size: { default: "medium" },
23
23
  min: {},
24
24
  max: {},
@@ -48,7 +48,7 @@ var j = /* @__PURE__ */ u({
48
48
  modelValue: { default: null },
49
49
  modelModifiers: {}
50
50
  }),
51
- emits: /* @__PURE__ */ p([
51
+ emits: /*@__PURE__*/ p([
52
52
  "input",
53
53
  "change",
54
54
  "press-enter",
@@ -56,58 +56,57 @@ var j = /* @__PURE__ */ u({
56
56
  "focus",
57
57
  "blur"
58
58
  ], ["update:modelValue"]),
59
- __multiRoot: !1,
60
- setup(u, { expose: d, emit: p, slots: S }) {
61
- let j = u, M = E(u, "modelValue"), N = f(re, void 0), ue = ie(() => N?.inputFilled?.value || j.filled), P = p, { size: de, error: F } = w(j), { mergedSize: I, mergedError: L } = n({
59
+ setup(u, { expose: d, emit: p, slots: C }) {
60
+ let N = u, P = ce(u, "modelValue"), le = f(re, void 0), ue = ie(() => le?.inputFilled?.value || N.filled), F = p, { size: de, error: fe } = se(N), { mergedSize: I, mergedError: L } = n({
62
61
  size: de,
63
- error: F
64
- }), R = g(null), z = g(!1), B = g(""), V = g(!1), fe = () => {
62
+ error: fe
63
+ }), R = g(null), z = g(!1), B = g(""), V = g(!1), pe = () => {
65
64
  V.value = !0;
66
- }, pe = () => {
65
+ }, me = () => {
67
66
  V.value = !1;
68
67
  }, H = (e) => {
69
68
  if (e === null) {
70
69
  B.value = "";
71
70
  return;
72
71
  }
73
- j.precision === void 0 ? B.value = String(e) : B.value = e.toFixed(j.precision);
72
+ N.precision === void 0 ? B.value = String(e) : B.value = e.toFixed(N.precision);
74
73
  }, U = (e) => {
75
74
  let t = e;
76
- return j.min !== void 0 && t < j.min && (t = j.min), j.max !== void 0 && t > j.max && (t = j.max), j.precision !== void 0 && (t = Number(t.toFixed(j.precision))), t;
75
+ return N.min !== void 0 && t < N.min && (t = N.min), N.max !== void 0 && t > N.max && (t = N.max), N.precision !== void 0 && (t = Number(t.toFixed(N.precision))), t;
77
76
  }, W = (e) => {
78
77
  if (e === "") return null;
79
78
  let t = Number(e);
80
- return isNaN(t) ? M.value : t;
81
- }, me = (e) => {
79
+ return isNaN(t) ? P.value : t;
80
+ }, he = (e) => {
82
81
  let t = e.target, n = W(t.value);
83
- n === null ? t.value = B.value : (B.value = t.value, P("input", U(n), e), J("input"));
82
+ n === null ? t.value = B.value : (B.value = t.value, F("input", U(n), e), J("input"));
84
83
  }, G = (e) => {
85
84
  let t = W(B.value), n = t;
86
- t === null ? M.value = null : (n = U(t), M.value = n), H(n), P("change", n, e), J("change");
87
- }, he = (e) => {
88
- e.key === "Enter" && P("press-enter", e), e.key === "ArrowUp" && (e.preventDefault(), K()), e.key === "ArrowDown" && (e.preventDefault(), q());
85
+ t === null ? P.value = null : (n = U(t), P.value = n), H(n), F("change", n, e), J("change");
89
86
  }, ge = (e) => {
90
- z.value = !0, P("focus", e);
87
+ e.key === "Enter" && F("press-enter", e), e.key === "ArrowUp" && (e.preventDefault(), K()), e.key === "ArrowDown" && (e.preventDefault(), q());
91
88
  }, _e = (e) => {
92
- z.value = !1, P("blur", e), J("blur"), G(e);
89
+ z.value = !0, F("focus", e);
93
90
  }, ve = (e) => {
94
- M.value = null, B.value = "", P("input", null, e), P("clear", e), m(() => {
91
+ z.value = !1, F("blur", e), J("blur"), G(e);
92
+ }, ye = (e) => {
93
+ P.value = null, B.value = "", F("input", null, e), F("clear", e), m(() => {
95
94
  R.value?.focus();
96
95
  });
97
96
  }, K = (e) => {
98
- if (j.disabled || j.readonly) return;
99
- let t = U((M.value ?? 0) + j.step);
100
- M.value = t, H(t), e && (P("input", t, e), P("change", t, e));
97
+ if (N.disabled || N.readonly) return;
98
+ let t = U((P.value ?? 0) + N.step);
99
+ P.value = t, H(t), e && (F("input", t, e), F("change", t, e));
101
100
  }, q = (e) => {
102
- if (j.disabled || j.readonly) return;
103
- let t = U((M.value ?? 0) - j.step);
104
- M.value = t, H(t), e && (P("input", t, e), P("change", t, e));
105
- }, ye = f(t, null), J = (e) => {
106
- ye?.validate(e).catch(() => {});
101
+ if (N.disabled || N.readonly) return;
102
+ let t = U((P.value ?? 0) - N.step);
103
+ P.value = t, H(t), e && (F("input", t, e), F("change", t, e));
104
+ }, be = f(t, null), J = (e) => {
105
+ be?.validate(e).catch(() => {});
107
106
  };
108
- D(M, (e) => {
107
+ E(P, (e) => {
109
108
  H(e);
110
- }, { immediate: !0 }), D(() => j.autofocus, (e) => {
109
+ }, { immediate: !0 }), E(() => N.autofocus, (e) => {
111
110
  e && m(() => {
112
111
  R.value?.focus();
113
112
  });
@@ -119,7 +118,7 @@ var j = /* @__PURE__ */ u({
119
118
  R.value?.blur();
120
119
  }
121
120
  });
122
- let Y = e("input-number"), be = ae(), X = le(), Z = a(X), Q = a(Z, 2), $ = a(Q, 1);
121
+ let Y = e("input-number"), xe = ae(), X = M(), Z = a(X), Q = a(Z, 2), $ = a(Q, 1);
123
122
  return _(() => {
124
123
  let e = T(Y);
125
124
  v(X, [e.b(), e.m(T(I))]), v(Z, [
@@ -128,55 +127,55 @@ var j = /* @__PURE__ */ u({
128
127
  e.is("error", T(L)),
129
128
  e.is("filled", ue.value)
130
129
  ]);
131
- }), y(Z, 0, 0), s(() => S.prepend || u.prepend, () => {
130
+ }), y(Z, 0, 0), s(() => C.prepend || u.prepend, () => {
132
131
  let e = A();
133
132
  return _(() => v(e, [T(Y).e("prepend")])), y(e, null, 0), l("prepend", null, () => {
134
133
  let e = k();
135
- return _(() => x(e, C(u.prepend))), e;
134
+ return _(() => x(e, w(u.prepend))), e;
136
135
  }), e;
137
- }, null, 1), y(Z, 0, 1), s(() => u.showButton, () => {
136
+ }), y(Z, 0, 1), s(() => u.showButton, () => {
138
137
  let e = A();
139
138
  return _(() => {
140
139
  let t = T(Y);
141
140
  v(e, [t.e("button"), t.e("prepend-button")]);
142
- }), y(e, null, 0), o(T(r)), h(e, "click", c(O(q, ["stop"]))), e.$evtmousedown = c(O(() => {}, ["prevent"])), e;
143
- }, null, 1), _(() => v(Q, [T(Y).e("inner")])), y(Q, 0, 0), s(() => S.prefix || u.prefix, () => {
141
+ }), y(e, null, 0), o(T(i)), h(e, "click", D(q, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
142
+ }), _(() => v(Q, [T(Y).e("inner")])), y(Q, 0, 0), s(() => C.prefix || u.prefix, () => {
144
143
  let e = A();
145
144
  return _(() => v(e, [T(Y).e("prefix")])), y(e, null, 0), l("prefix", null, () => {
146
145
  let e = k();
147
- return _(() => x(e, C(u.prefix))), e;
146
+ return _(() => x(e, w(u.prefix))), e;
148
147
  }), e;
149
- }, null, 1), h($, "blur", c(_e)), h($, "change", c(G)), h($, "focus", c(ge)), $.$evtinput = c(me), $.$evtkeydown = c(he), be($, R, null, "inputRef"), _(() => {
150
- b($, "autofocus", u.autofocus), v($, [T(Y).e("input")]), b($, "disabled", u.disabled), b($, "maxlength", u.maxlength), b($, "minlength", u.minlength), b($, "name", u.name), b($, "placeholder", u.placeholder), b($, "readonly", u.readonly ? !0 : void 0), se($, B.value);
151
- }), y(Q, null, 2), s(() => V.value && !!M.value && u.clearable, () => {
148
+ }), h($, "blur", ve), h($, "change", G), h($, "focus", _e), $.$evtinput = c(he), $.$evtkeydown = c(ge), xe($, R, null, "inputRef"), _(() => {
149
+ b($, "autofocus", u.autofocus), v($, [T(Y).e("input")]), b($, "disabled", u.disabled), b($, "maxlength", u.maxlength), b($, "minlength", u.minlength), b($, "name", u.name), b($, "placeholder", u.placeholder), b($, "readonly", u.readonly ? !0 : void 0), S($, B.value);
150
+ }), y(Q, null, 2), s(() => V.value && !!P.value && u.clearable, () => {
152
151
  let e = A();
153
- return _(() => v(e, T(Y).e("clear"))), y(e, null, 0), o(T(ee)), h(e, "click", c(O(ve, ["stop"]))), e.$evtmousedown = c(O(() => {}, ["prevent"])), e;
154
- }, null, 1), y(Q, null, 3), s(() => S.suffix || u.suffix, () => {
152
+ return _(() => v(e, T(Y).e("clear"))), y(e, null, 0), o(T(ee)), h(e, "click", D(ye, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
153
+ }), y(Q, null, 3), s(() => C.suffix || u.suffix, () => {
155
154
  let e = A();
156
155
  return _(() => v(e, [T(Y).e("suffix")])), y(e, null, 0), l("suffix", null, () => {
157
156
  let e = k();
158
- return _(() => x(e, C(u.suffix))), e;
157
+ return _(() => x(e, w(u.suffix))), e;
159
158
  }), e;
160
- }, null, 1), y(Q, null, 4), s(() => u.controls && !u.showButton, () => {
161
- let e = ce(), t = a(e), n = oe(t, 1);
159
+ }), y(Q, null, 4), s(() => u.controls && !u.showButton, () => {
160
+ let e = j(), t = a(e), n = oe(t, 1);
162
161
  return _(() => {
163
162
  let n = T(Y);
164
163
  v(e, [n.e("controls")]), v(t, n.e("increase"));
165
- }), y(t, null, 0), o(T(ne)), h(t, "click", c(O(K, ["stop"]))), t.$evtmousedown = c(O(() => {}, ["prevent"])), _(() => v(n, T(Y).e("decrease"))), y(n, null, 0), o(T(te)), h(n, "click", c(O(q, ["stop"]))), n.$evtmousedown = c(O(() => {}, ["prevent"])), e;
166
- }, null, 1), y(Z, null, 3), s(() => u.showButton, () => {
164
+ }), y(t, null, 0), o(T(ne)), h(t, "click", D(K, ["stop"])), t.$evtmousedown = O(() => {}, ["prevent"]), _(() => v(n, T(Y).e("decrease"))), y(n, null, 0), o(T(r)), h(n, "click", D(q, ["stop"])), n.$evtmousedown = O(() => {}, ["prevent"]), e;
165
+ }), y(Z, null, 3), s(() => u.showButton, () => {
167
166
  let e = A();
168
167
  return _(() => {
169
168
  let t = T(Y);
170
169
  v(e, [t.e("button"), t.e("append-button")]);
171
- }), y(e, null, 0), o(T(i)), h(e, "click", c(O(K, ["stop"]))), e.$evtmousedown = c(O(() => {}, ["prevent"])), e;
172
- }, null, 1), y(Z, null, 4), s(() => S.append || u.append, () => {
170
+ }), y(e, null, 0), o(T(te)), h(e, "click", D(K, ["stop"])), e.$evtmousedown = O(() => {}, ["prevent"]), e;
171
+ }), y(Z, null, 4), s(() => C.append || u.append, () => {
173
172
  let e = A();
174
173
  return _(() => v(e, [T(Y).e("append")])), y(e, null, 0), l("append", null, () => {
175
174
  let e = k();
176
- return _(() => x(e, C(u.append))), e;
175
+ return _(() => x(e, w(u.append))), e;
177
176
  }), e;
178
- }, null, 1), h(Z, "mouseenter", c(fe)), h(Z, "mouseleave", c(pe)), X;
177
+ }), h(Z, "mouseenter", pe), h(Z, "mouseleave", me), X;
179
178
  }
180
179
  });
181
180
  //#endregion
182
- export { j as default };
181
+ export { N as default };
@@ -7,14 +7,14 @@ import "../../../icons/index.mjs";
7
7
  import { configProviderContextKey as i } from "../config-provider/types.mjs";
8
8
  import "../config-provider/index.mjs";
9
9
  import "../form/index.mjs";
10
- import { child as a, computed as o, createComponent as s, createFor as ee, createIf as c, createInvoker as l, createSlot as u, defineVaporComponent as d, delegateEvents as f, inject as p, mergeModels as m, next as h, on as g, ref as _, renderEffect as v, setClass as y, setInsertionState as b, setProp as x, setText as S, setValue as te, template as C, toDisplayString as ne, toRefs as re, txt as w, unref as T, useModel as E, withKeys as D, withModifiers as O } from "vue";
10
+ import { child as a, computed as o, createComponent as s, createFor as c, createIf as l, createInvoker as ee, createSlot as u, defineVaporComponent as d, delegateEvents as f, inject as p, mergeModels as m, next as h, on as g, ref as _, renderEffect as v, setClass as y, setInsertionState as b, setProp as x, setText as te, setValue as ne, template as S, toDisplayString as re, toRefs as C, txt as w, unref as T, useModel as E, withKeys as D, withModifiers as O, withVaporModifiers as k } from "vue";
11
11
  //#region ../components/src/input-tag/input-tag.vue?vue&type=script&setup=true&vapor=true&lang.ts
12
- var k = C("<div>"), ie = C("<div><span> </span><span>"), ae = C("<div><div><div><div><input></div></div>", !0);
12
+ var A = S("<div>"), ie = S("<div><span> </span><span>"), ae = S("<div><div><div><div><input></div></div>", 1);
13
13
  f("mousedown", "input");
14
- var A = /* @__PURE__ */ d({
14
+ var j = /*@__PURE__*/ d({
15
15
  name: "SInputTag",
16
16
  __name: "input-tag",
17
- props: /* @__PURE__ */ m({
17
+ props: /*@__PURE__*/ m({
18
18
  max: {},
19
19
  disabled: { type: Boolean },
20
20
  clearable: { type: Boolean },
@@ -34,66 +34,65 @@ var A = /* @__PURE__ */ d({
34
34
  modelValue: { default: () => [] },
35
35
  modelModifiers: {}
36
36
  }),
37
- emits: /* @__PURE__ */ m(["change", "clear"], ["update:modelValue"]),
38
- __multiRoot: !1,
37
+ emits: /*@__PURE__*/ m(["change", "clear"], ["update:modelValue"]),
39
38
  setup(d, { emit: f, slots: m }) {
40
- let C = d, A = f, j = e("input-tag"), M = E(d, "modelValue"), N = p(i, void 0), P = o(() => N?.inputFilled?.value || C.filled), { size: F, error: I } = re(C), { mergedSize: L, mergedError: R } = n({
41
- size: F,
42
- error: I
43
- }), z = _(""), B = _(!1), V = () => {
44
- B.value = !0;
45
- }, H = () => {
46
- B.value = !1;
39
+ let S = d, j = f, M = e("input-tag"), N = E(d, "modelValue"), P = p(i, void 0), F = o(() => P?.inputFilled?.value || S.filled), { size: I, error: L } = C(S), { mergedSize: R, mergedError: z } = n({
40
+ size: I,
41
+ error: L
42
+ }), B = _(""), V = _(!1), H = () => {
43
+ V.value = !0;
47
44
  }, U = () => {
48
- C.trigger === "enter" && (M.value.push(z.value), z.value = "", A("change", M.value));
49
- }, W = (e) => {
50
- z.value = e.target.value, J("input");
51
- }, G = () => {
52
- C.trigger === "space" && (M.value.push(z.value), z.value = "", A("change", M.value));
53
- }, K = (e) => {
54
- M.value = M.value.toSpliced(M.value.indexOf(e), 1), A("change", M.value);
45
+ V.value = !1;
46
+ }, W = () => {
47
+ S.trigger === "enter" && (N.value.push(B.value), B.value = "", j("change", N.value));
48
+ }, G = (e) => {
49
+ B.value = e.target.value, J("input");
50
+ }, K = () => {
51
+ S.trigger === "space" && (N.value.push(B.value), B.value = "", j("change", N.value));
55
52
  }, q = (e) => {
56
- M.value = [], A("clear", e);
57
- }, oe = p(t, null), J = (e) => {
58
- oe?.validate(e).catch(() => {});
53
+ N.value = N.value.toSpliced(N.value.indexOf(e), 1), j("change", N.value);
54
+ }, oe = (e) => {
55
+ N.value = [], j("clear", e);
56
+ }, se = p(t, null), J = (e) => {
57
+ se?.validate(e).catch(() => {});
59
58
  }, Y = ae(), X = a(Y), Z = a(X, 2), Q = a(Z, 2), $ = a(Q);
60
59
  return v(() => {
61
- let e = T(j);
62
- y(Y, [e.b(), e.m(T(L))]), y(X, [
60
+ let e = T(M);
61
+ y(Y, [e.b(), e.m(T(R))]), y(X, [
63
62
  e.e("wrapper"),
64
63
  e.is("disabled", d.disabled),
65
- e.is("error", T(R)),
66
- e.is("filled", P.value)
64
+ e.is("error", T(z)),
65
+ e.is("filled", F.value)
67
66
  ]);
68
- }), b(X, 0, 0), c(() => m.prepend || d.prepend, () => {
69
- let e = k();
70
- return v(() => y(e, [T(j).e("prepend")])), b(e, null, 0), u("prepend", null), e;
71
- }, null, 1), b(X, 0, 1), c(() => m.prefix || d.prefix, () => {
72
- let e = k();
73
- return v(() => y(e, [T(j).e("prefix")])), b(e, null, 0), u("prefix", null), e;
74
- }, null, 1), v(() => y(Z, [T(j).e("inner")])), b(Z, 0, 0), ee(() => M.value, (e) => {
67
+ }), b(X, 0, 0), l(() => m.prepend || d.prepend, () => {
68
+ let e = A();
69
+ return v(() => y(e, [T(M).e("prepend")])), b(e, null, 0), u("prepend"), e;
70
+ }), b(X, 0, 1), l(() => m.prefix || d.prefix, () => {
71
+ let e = A();
72
+ return v(() => y(e, [T(M).e("prefix")])), b(e, null, 0), u("prefix"), e;
73
+ }), v(() => y(Z, [T(M).e("inner")])), b(Z, 0, 0), c(() => N.value, (e) => {
75
74
  let t = ie(), n = a(t), i = h(n, 1), o = w(n);
76
75
  return v(() => {
77
- let n = T(j);
78
- y(t, [n.e("item")]), S(o, ne(e.value)), y(i, [n.e("item-close")]);
79
- }), b(i, null, 0), s(T(r)), g(i, "click", l(O(() => K(e.value), ["stop"]))), i.$evtmousedown = l(O(() => {}, ["prevent"])), t.$evtmousedown = l(O(() => {}, ["prevent"])), t;
80
- }, (e) => e), b(Z, 0, 1), c(() => d.collapse && d.max && M.value.length > d.max, () => {
81
- let e = k();
82
- return v(() => y(e, [T(j).e("item")])), e;
83
- }, null, 1), g($, "keydown", l(D(O(U, ["stop", "prevent"]), ["enter"]))), g($, "keydown", l(D(O(G, ["stop", "prevent"]), ["space"]))), $.$evtinput = l(W), g($, "blur", l(() => J("blur"))), g($, "change", l(() => J("change"))), v(() => {
84
- let e = T(j);
85
- y(Q, [e.e("input-wrapper")]), y($, [e.e("input")]), te($, z.value), x($, "readonly", d.readonly ? !0 : void 0), x($, "disabled", d.disabled), x($, "placeholder", d.placeholder);
86
- }), b(X, null, 3), c(() => B.value && M.value.length > 0 && d.clearable, () => {
87
- let e = k();
88
- return v(() => y(e, T(j).e("clear"))), b(e, null, 0), s(T(r)), g(e, "click", l(O(q, ["stop"]))), e;
89
- }, null, 1), b(X, null, 4), c(() => m.suffix || d.suffix, () => {
90
- let e = k();
91
- return v(() => y(e, [T(j).e("suffix")])), b(e, null, 0), u("suffix", null), e;
92
- }, null, 1), b(X, null, 5), c(() => m.append || d.append, () => {
93
- let e = k();
94
- return v(() => y(e, [T(j).e("append")])), b(e, null, 0), u("append", null), e;
95
- }, null, 1), g(X, "mouseenter", l(V)), g(X, "mouseleave", l(H)), Y;
76
+ let n = T(M);
77
+ y(t, [n.e("item")]), te(o, re(e.value)), y(i, [n.e("item-close")]);
78
+ }), b(i, null, 0), s(T(r)), g(i, "click", O(() => q(e.value), ["stop"])), i.$evtmousedown = k(() => {}, ["prevent"]), t.$evtmousedown = k(() => {}, ["prevent"]), t;
79
+ }, (e) => e, 8), b(Z, 0, 1), l(() => d.collapse && d.max && N.value.length > d.max, () => {
80
+ let e = A();
81
+ return v(() => y(e, [T(M).e("item")])), e;
82
+ }), g($, "keydown", D(O(W, ["stop", "prevent"]), ["enter"])), g($, "keydown", D(O(K, ["stop", "prevent"]), ["space"])), $.$evtinput = ee(G), g($, "blur", () => J("blur")), g($, "change", () => J("change")), v(() => {
83
+ let e = T(M);
84
+ y(Q, [e.e("input-wrapper")]), y($, [e.e("input")]), ne($, B.value), x($, "readonly", d.readonly ? !0 : void 0), x($, "disabled", d.disabled), x($, "placeholder", d.placeholder);
85
+ }), b(X, null, 3), l(() => V.value && N.value.length > 0 && d.clearable, () => {
86
+ let e = A();
87
+ return v(() => y(e, T(M).e("clear"))), b(e, null, 0), s(T(r)), g(e, "click", O(oe, ["stop"])), e;
88
+ }), b(X, null, 4), l(() => m.suffix || d.suffix, () => {
89
+ let e = A();
90
+ return v(() => y(e, [T(M).e("suffix")])), b(e, null, 0), u("suffix"), e;
91
+ }), b(X, null, 5), l(() => m.append || d.append, () => {
92
+ let e = A();
93
+ return v(() => y(e, [T(M).e("append")])), b(e, null, 0), u("append"), e;
94
+ }), g(X, "mouseenter", H), g(X, "mouseleave", U), Y;
96
95
  }
97
96
  });
98
97
  //#endregion
99
- export { A as default };
98
+ export { j as default };
@@ -16,14 +16,14 @@ import { SScrollbar as se } from "../scrollbar/index.mjs";
16
16
  import { SButton as i } from "../button/index.mjs";
17
17
  import ce from "../_comp/OpacityTransition.vue.mjs";
18
18
  import le from "../_comp/ScaleTransition.vue.mjs";
19
- import { VaporTeleport as ue, applyVShow as a, child as o, computed as s, createComponent as c, createFor as de, createIf as l, createInvoker as u, createSlot as fe, createTemplateRefSetter as pe, defineVaporComponent as d, delegateEvents as f, mergeModels as p, nextTick as m, onUnmounted as me, ref as h, renderEffect as g, setClass as _, setInsertionState as v, setProp as he, setStyle as y, setText as b, template as x, toDisplayString as S, toRefs as ge, txt as _e, unref as C, useModel as ve, useTemplateRef as w, watch as ye, watchEffect as be, withVaporCtx as T } from "vue";
19
+ import { VaporTeleport as ue, applyVShow as a, child as o, computed as s, createComponent as c, createFor as de, createIf as l, createInvoker as u, createSlot as fe, createTemplateRefSetter as pe, defineVaporComponent as d, delegateEvents as f, mergeModels as p, nextTick as m, onUnmounted as me, ref as h, renderEffect as g, setClass as _, setInsertionState as v, setProp as he, setStyle as y, setText as b, template as x, toDisplayString as S, toRefs as ge, txt as _e, unref as C, useModel as ve, useTemplateRef as w, watch as ye, watchEffect as be } from "vue";
20
20
  //#region ../components/src/layer/layer.vue?vue&type=script&setup=true&vapor=true&lang.ts
21
- var E = x("<div>"), xe = x(" "), Se = x("<div><div style=\"padding: 20px\"> </div>"), Ce = x("<div><iframe></iframe>"), we = x("<div><div><div></div></div>"), Te = x("<div><div>");
21
+ var T = x("<div>"), xe = x(" "), E = x("<div><div style=\"padding: 20px\"> </div>"), Se = x("<div><iframe style=width:100%;height:100%;border:none;></iframe>"), Ce = x("<div><div><div></div></div>"), we = x("<div><div>");
22
22
  f("click");
23
- var D = /* @__PURE__ */ d({
23
+ var D = /*@__PURE__*/ d({
24
24
  inheritAttrs: !1,
25
25
  __name: "layer",
26
- props: /* @__PURE__ */ p({
26
+ props: /*@__PURE__*/ p({
27
27
  type: {},
28
28
  title: {},
29
29
  content: {},
@@ -96,12 +96,11 @@ var D = /* @__PURE__ */ d({
96
96
  modelModifiers: {}
97
97
  }),
98
98
  emits: ["update:modelValue"],
99
- __multiRoot: !1,
100
99
  setup(d, { expose: f }) {
101
- let p = d, x = n("layer"), { lockScroll: D, unlockScroll: O } = te(), { zIndex: k } = ne(), A = w("layerRef"), j = w("headerRef"), M = w("pageContentRef"), N = ve(d, "modelValue"), P = h(!1), F = h(!1), I = h(!1), L = h(!1), R = h(!1), z = h(!1), B = h(0), V = h(0), H = h(0), U = h(0), W = h(0), G = h(0), K = s(() => typeof p.to == "string" ? document.querySelector(p.to) || document.body : p.to), Ee = s(() => ({
100
+ let p = d, x = n("layer"), { lockScroll: D, unlockScroll: O } = te(), { zIndex: k } = ne(), A = w("layerRef"), j = w("headerRef"), M = w("pageContentRef"), N = ve(d, "modelValue"), P = h(!1), F = h(!1), I = h(!1), L = h(!1), R = h(!1), z = h(!1), B = h(0), V = h(0), H = h(0), U = h(0), W = h(0), G = h(0), K = s(() => typeof p.to == "string" ? document.querySelector(p.to) || document.body : p.to), Te = s(() => ({
102
101
  zIndex: p.zIndex ?? k.value,
103
102
  position: K.value === document.body ? "fixed" : "absolute"
104
- })), De = s(() => {
103
+ })), Ee = s(() => {
105
104
  if (I.value) return {};
106
105
  if (Z.value && p.minAnimate) return L.value ? {
107
106
  width: `${Q.value.width}px`,
@@ -131,23 +130,23 @@ var D = /* @__PURE__ */ d({
131
130
  maxHeight: W.value ? `${W.value - 40}px` : void 0,
132
131
  borderRadius: `${p.radius}px`
133
132
  };
134
- }), Oe = () => {
133
+ }), De = () => {
135
134
  p.opened?.();
136
- }, ke = () => {
135
+ }, Oe = () => {
137
136
  F.value = !1, R.value = !1, z.value = !1, m(O), p.closed?.();
138
- }, Ae = () => {
137
+ }, ke = () => {
139
138
  p.closeOnOverlayClick && J();
140
139
  }, q = (e) => {
141
140
  e ? N.value = !1 : R.value = !1;
142
- }, je = () => {
141
+ }, Ae = () => {
143
142
  p.yes ? (R.value = !0, p.yes(q)) : q(!0);
144
143
  }, J = () => {
145
144
  N.value = !1, p.cancel?.();
146
- }, Me = (e) => {
145
+ }, je = (e) => {
147
146
  e === 0 ? p.btn1?.() : e === 1 ? p.btn2?.() : e === 2 && p.btn3?.();
148
- }, Ne = () => {
147
+ }, Me = () => {
149
148
  N.value = !0;
150
- }, Pe = () => {
149
+ }, Ne = () => {
151
150
  I.value = !I.value;
152
151
  }, Y = (e) => {
153
152
  e.key === "Escape" && p.closeOnEsc && P.value && (p.zIndex ?? k.value) >= k.value && J();
@@ -155,7 +154,7 @@ var D = /* @__PURE__ */ d({
155
154
  if (await m(), !A.value || z.value) return;
156
155
  let e = A.value;
157
156
  H.value = Math.max(0, (W.value - e.offsetHeight) / 2), U.value = Math.max(0, (G.value - e.offsetWidth) / 2);
158
- }, Fe = () => {
157
+ }, Pe = () => {
159
158
  p.click?.();
160
159
  };
161
160
  ye(N, async (e) => {
@@ -171,7 +170,7 @@ var D = /* @__PURE__ */ d({
171
170
  left: 0,
172
171
  width: 0,
173
172
  height: 0
174
- }), Ie = () => {
173
+ }), Fe = () => {
175
174
  if (!A.value) return;
176
175
  let e = A.value.getBoundingClientRect();
177
176
  Q.value = {
@@ -180,7 +179,7 @@ var D = /* @__PURE__ */ d({
180
179
  width: e.width,
181
180
  height: e.height
182
181
  }, L.value = !0, Z.value = !0;
183
- }, Le = () => {
182
+ }, Ie = () => {
184
183
  if (!p.minAnimate) {
185
184
  L.value = !1, Z.value = !1;
186
185
  return;
@@ -188,7 +187,7 @@ var D = /* @__PURE__ */ d({
188
187
  H.value = Q.value.top, U.value = Q.value.left, B.value = 0, V.value = 0, L.value = !1, setTimeout(() => {
189
188
  Z.value = !1;
190
189
  }, 300);
191
- }, { minWidth: Re, minHeight: ze, maxWidth: Be, maxHeight: Ve } = ge(p);
190
+ }, { minWidth: Le, minHeight: Re, maxWidth: ze, maxHeight: Be } = ge(p);
192
191
  ee(K, () => {
193
192
  let e = K.value;
194
193
  W.value = e.clientHeight, G.value = e.clientWidth, X();
@@ -196,10 +195,10 @@ var D = /* @__PURE__ */ d({
196
195
  target: A,
197
196
  container: K,
198
197
  enable: s(() => p.resizable && !I.value && !L.value),
199
- minWidth: Re,
200
- minHeight: ze,
201
- maxWidth: Be,
202
- maxHeight: Ve,
198
+ minWidth: Le,
199
+ minHeight: Re,
200
+ maxWidth: ze,
201
+ maxHeight: Be,
203
202
  divWidth: B,
204
203
  divHeight: V,
205
204
  divTop: H,
@@ -215,99 +214,95 @@ var D = /* @__PURE__ */ d({
215
214
  }), me(() => {
216
215
  p.hiddenBodyScrollbar && O();
217
216
  }), f({
218
- handleOpen: Ne,
217
+ handleOpen: Me,
219
218
  handleCancel: J,
220
- handleRestore: Le,
219
+ handleRestore: Ie,
221
220
  pageContentRef: M
222
221
  });
223
222
  let $ = pe();
224
223
  return c(ue, {
225
224
  to: () => d.to,
226
- defer: () => ""
227
- }, { default: T(() => {
228
- let e = Te(), t = o(e, 1);
225
+ defer: ""
226
+ }, () => {
227
+ let e = we(), t = o(e, 1);
229
228
  return g(() => {
230
- _(e, [C(x).e("container")]), y(e, Ee.value);
231
- }), v(e, 0, 0), c(ce, null, { default: () => l(() => d.showMask && P.value && !I.value && !L.value, () => {
232
- let e = E();
233
- return e.$evtclick = u(Ae), g(() => {
229
+ _(e, [C(x).e("container")]), y(e, Te.value);
230
+ }), v(e, 0, 0), c(ce, null, () => l(() => d.showMask && P.value && !I.value && !L.value, () => {
231
+ let e = T();
232
+ return e.$evtclick = u(ke), g(() => {
234
233
  y(e, d.maskStyle), _(e, [C(x).e("mask")]);
235
234
  }), e;
236
- }, null, 1) }), g(() => _(t, [C(x).e("wrapper")])), v(t, null, 0), c(le, {
237
- onAfterLeave: () => ke,
238
- onAfterEnter: () => Oe
239
- }, { default: T(() => {
240
- let e = we(), t = o(e), n = o(t);
235
+ }, null, 129)), g(() => _(t, [C(x).e("wrapper")])), v(t, null, 0), c(le, {
236
+ onAfterLeave: () => Oe,
237
+ onAfterEnter: () => De
238
+ }, () => {
239
+ let e = Ce(), t = o(e), n = o(t);
241
240
  return g(() => {
242
241
  let r = C(x);
243
242
  _(e, [
244
243
  r.b(),
245
244
  r.is("max", I.value),
246
245
  r.is("min", L.value)
247
- ]), y(e, De.value), _(t, [r.e("header")]), _(n, [r.e("title")]);
246
+ ]), y(e, Ee.value), _(t, [r.e("header")]), _(n, [r.e("title")]);
248
247
  }), v(n, null, 0), fe("header", null, () => {
249
248
  let e = xe();
250
249
  return g(() => b(e, S(d.title))), e;
251
250
  }), v(t, null, 1), l(() => d.maxmin || d.closable, () => {
252
- let e = E();
251
+ let e = T();
253
252
  return g(() => _(e, [C(x).e("header-icon")])), v(e, null, 0), l(() => d.maxmin, () => c(C(i), {
254
- text: () => "",
255
- size: () => "mini",
256
- onClick: () => Ie
257
- }, { icon: T(() => c(C(oe))) }), null, 1), v(e, null, 1), l(() => d.maxmin, () => c(C(i), {
258
- text: () => "",
259
- size: () => "mini",
260
- onClick: () => Pe
261
- }, { icon: T(() => l(() => I.value, () => c(C(ie)), () => c(C(ae)), 5, null, 2)) }), null, 1), v(e, null, 2), l(() => d.closable, () => c(C(i), {
262
- text: () => "",
263
- size: () => "mini",
253
+ text: "",
254
+ size: "mini",
255
+ onClick: () => Fe
256
+ }, { icon: () => c(C(oe)) })), v(e, null, 1), l(() => d.maxmin, () => c(C(i), {
257
+ text: "",
258
+ size: "mini",
259
+ onClick: () => Ne
260
+ }, { icon: () => l(() => I.value, () => c(C(ie)), () => c(C(ae)), 901) })), v(e, null, 2), l(() => d.closable, () => c(C(i), {
261
+ text: "",
262
+ size: "mini",
264
263
  disabled: () => R.value,
265
264
  onClick: () => J
266
- }, { icon: T(() => c(C(re))) }), null, 1), e;
267
- }, null, 1), $(t, j, null, "headerRef"), v(e, null, 1), l(() => d.type === "page", () => {
268
- let e = E();
269
- return g(() => _(e, [C(x).e("body")])), v(e, null, 0), c(C(se), null, { default: () => {
270
- let e = E();
265
+ }, { icon: () => c(C(re)) })), e;
266
+ }), $(t, j, null, "headerRef"), v(e, null, 1), l(() => d.type === "page", () => {
267
+ let e = T();
268
+ return g(() => _(e, [C(x).e("body")])), v(e, null, 0), c(C(se), null, () => {
269
+ let e = T();
271
270
  return $(e, M, null, "pageContentRef"), g(() => _(e, [C(x).e("content")])), e;
272
- } }), e;
271
+ }), e;
273
272
  }, () => l(() => d.type === "dialog", () => {
274
- let e = Se(), t = _e(o(e));
273
+ let e = E(), t = _e(o(e));
275
274
  return g(() => {
276
275
  _(e, [C(x).e("body")]), b(t, S(d.content));
277
276
  }), e;
278
277
  }, () => l(() => d.type === "iframe", () => {
279
- let e = Ce(), t = o(e);
280
- return y(t, {
281
- width: "100%",
282
- height: "100%",
283
- border: "none"
284
- }), g(() => {
278
+ let e = Se(), t = o(e);
279
+ return g(() => {
285
280
  _(e, [C(x).e("body")]), he(t, "src", d.content);
286
281
  }), e;
287
- }, null, 1), 5, null, 7), 5, null, 6), v(e, null, 2), l(() => d.type === "dialog" || d.btn && d.btn.length > 0, () => {
288
- let e = E();
282
+ }), 2053), 1797), v(e, null, 2), l(() => d.type === "dialog" || d.btn && d.btn.length > 0, () => {
283
+ let e = T();
289
284
  return g(() => _(e, [C(x).e("footer")])), v(e, null, 0), l(() => d.yesBtn, () => c(C(i), {
290
285
  label: () => d.yesText,
291
286
  loading: () => R.value,
292
- type: () => "primary",
293
- size: () => "small",
294
- onClick: () => je
295
- }), null, 1), v(e, null, 1), l(() => d.cancelBtn, () => c(C(i), {
287
+ type: "primary",
288
+ size: "small",
289
+ onClick: () => Ae
290
+ })), v(e, null, 1), l(() => d.cancelBtn, () => c(C(i), {
296
291
  label: () => d.cancelText,
297
- secondary: () => "",
298
- size: () => "small",
292
+ secondary: "",
293
+ size: "small",
299
294
  onClick: () => J
300
- }), null, 1), v(e, null, 2), de(() => d.btn, (e, t) => {
301
- let n = () => Me(t.value);
295
+ })), v(e, null, 2), de(() => d.btn, (e, t) => {
296
+ let n = () => je(t.value);
302
297
  return c(C(i), {
303
298
  label: () => e.value,
304
- size: () => "small",
299
+ size: "small",
305
300
  onClick: () => n
306
301
  });
307
302
  }, (e, t) => t, 2), e;
308
- }, null, 1), a(e, () => P.value), e.$evtclick = u(Fe), $(e, A, null, "layerRef"), e;
309
- }) }), a(e, () => F.value), e;
310
- }) }, !0);
303
+ }), a(e, () => P.value), e.$evtclick = u(Pe), $(e, A, null, "layerRef"), e;
304
+ }), a(e, () => F.value), e;
305
+ }, !0);
311
306
  }
312
307
  });
313
308
  //#endregion