hys-ui 0.3.0 → 0.5.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.
Files changed (168) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +68 -73
  3. package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +5 -41
  4. package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +467 -2
  5. package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.js +7 -0
  6. package/dist/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas2.vue.js +166 -0
  7. package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.js +7 -0
  8. package/dist/components/HysAnimatedNumber/NumberDigits/NumberDigits2.vue.js +105 -0
  9. package/dist/components/HysAnimatedNumber/animation/digital.js +186 -0
  10. package/dist/components/HysAnimatedNumber/animation/morph.js +110 -0
  11. package/dist/components/HysAnimatedNumber/animation/paint.js +34 -0
  12. package/dist/components/HysAnimatedNumber/animation/particles.js +51 -0
  13. package/dist/components/HysAnimatedNumber/animation/paths.js +165 -0
  14. package/dist/components/HysAnimatedNumber/animation/physics.js +66 -0
  15. package/dist/components/HysAnimatedNumber/animation/render.js +89 -0
  16. package/dist/components/HysAnimatedNumber/animation/reveal.js +125 -0
  17. package/dist/components/HysAnimatedNumber/animation/rolling.js +66 -0
  18. package/dist/components/HysAnimatedNumber/animation/scenarios.js +217 -0
  19. package/dist/components/HysAnimatedNumber/animation/spatial.js +112 -0
  20. package/dist/components/HysAnimatedNumber/useNumberCountdown.js +58 -0
  21. package/dist/components/HysAnimatedNumber/useNumberVisuals.js +60 -0
  22. package/dist/components/HysButton/HysButton.vue.js +2 -2
  23. package/dist/components/HysButton/HysButton2.vue.js +227 -60
  24. package/dist/components/HysButtonGroup/HysButtonGroup.vue.js +7 -0
  25. package/dist/components/HysButtonGroup/HysButtonGroup2.vue.js +51 -0
  26. package/dist/components/HysFormItem/HysFormItem.vue.js +1 -1
  27. package/dist/components/HysFormItem/HysFormItem2.vue.js +231 -229
  28. package/dist/components/HysInput/HysInput.vue.js +2 -2
  29. package/dist/components/HysInput/HysInput2.vue.js +327 -274
  30. package/dist/components/HysMention/HysMention.vue.js +1 -1
  31. package/dist/components/HysMention/HysMention2.vue.js +1092 -154
  32. package/dist/components/HysModal/HysModal.vue.js +3 -3
  33. package/dist/components/HysModal/HysModal2.vue.js +81 -80
  34. package/dist/components/HysPagination/HysPagination.vue.js +2 -2
  35. package/dist/components/HysPagination/HysPagination2.vue.js +243 -180
  36. package/dist/components/HysSearch/HysSearch.vue.js +5 -82
  37. package/dist/components/HysSearch/HysSearch2.vue.js +176 -2
  38. package/dist/components/HysSelect/HysSelect.vue.js +2 -2
  39. package/dist/components/HysSelect/HysSelect2.vue.js +472 -443
  40. package/dist/components/HysSplitPane/HysSplitPane.vue.js +315 -58
  41. package/dist/components/HysSplitPane/HysSplitPane3.vue.js +5 -0
  42. package/dist/components/HysTable/HysTable.vue.js +2 -2
  43. package/dist/components/HysTable/HysTable2.vue.js +1418 -1150
  44. package/dist/components/HysTextarea/HysTextarea.vue.js +56 -32
  45. package/dist/components/HysTour/HysTour.vue.js +291 -67
  46. package/dist/components/HysTour/HysTour3.vue.js +5 -0
  47. package/dist/composables/animatedNumberDigits.js +106 -0
  48. package/dist/composables/animatedNumberFormat.js +222 -0
  49. package/dist/composables/animatedNumberTiming.js +66 -0
  50. package/dist/composables/buttonGroup.js +12 -0
  51. package/dist/composables/floatingPosition.js +18 -0
  52. package/dist/composables/mentionDocument.js +79 -0
  53. package/dist/composables/mentionEditor.js +58 -0
  54. package/dist/composables/numberAnimation.js +72 -0
  55. package/dist/composables/numberAnimationCatalog.js +301 -0
  56. package/dist/composables/numberAnimationSequence.js +45 -0
  57. package/dist/composables/selectOptions.js +44 -38
  58. package/dist/composables/splitPaneSizes.js +58 -0
  59. package/dist/composables/table.js +128 -105
  60. package/dist/composables/textInput.js +23 -14
  61. package/dist/composables/useDialog.js +50 -50
  62. package/dist/composables/useFloating.js +107 -103
  63. package/dist/composables/useHysAnimatedNumber.js +264 -0
  64. package/dist/composables/useHysNumberAnimationGroup.js +23 -0
  65. package/dist/composables/useMentionCaret.js +81 -0
  66. package/dist/composables/useMentionList.js +81 -0
  67. package/dist/composables/useMentionModel.js +90 -0
  68. package/dist/composables/useMentionOptions.js +421 -0
  69. package/dist/composables/useSplitPaneDrag.js +52 -0
  70. package/dist/composables/useSplitPaneStorage.js +38 -0
  71. package/dist/composables/useTable.js +344 -312
  72. package/dist/composables/useTableSticky.js +79 -0
  73. package/dist/composables/useTextareaSize.js +62 -46
  74. package/dist/composables/useTourLayout.js +129 -0
  75. package/dist/config.js +11 -11
  76. package/dist/index.js +183 -152
  77. package/dist/internal/MultiSplitPane.vue.js +305 -0
  78. package/dist/internal/MultiSplitPane2.vue.js +4 -0
  79. package/dist/style.css +1 -1
  80. package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +99 -6
  81. package/dist/types/components/HysAnimatedNumber/NumberAnimationCanvas/NumberAnimationCanvas.vue.d.ts +19 -0
  82. package/dist/types/components/HysAnimatedNumber/NumberDigits/NumberDigits.vue.d.ts +31 -0
  83. package/dist/types/components/HysAnimatedNumber/animation/digital.d.ts +3 -0
  84. package/dist/types/components/HysAnimatedNumber/animation/morph.d.ts +2 -0
  85. package/dist/types/components/HysAnimatedNumber/animation/paint.d.ts +44 -0
  86. package/dist/types/components/HysAnimatedNumber/animation/particles.d.ts +5 -0
  87. package/dist/types/components/HysAnimatedNumber/animation/paths.d.ts +12 -0
  88. package/dist/types/components/HysAnimatedNumber/animation/physics.d.ts +2 -0
  89. package/dist/types/components/HysAnimatedNumber/animation/render.d.ts +2 -0
  90. package/dist/types/components/HysAnimatedNumber/animation/reveal.d.ts +2 -0
  91. package/dist/types/components/HysAnimatedNumber/animation/rolling.d.ts +2 -0
  92. package/dist/types/components/HysAnimatedNumber/animation/scenarios.d.ts +4 -0
  93. package/dist/types/components/HysAnimatedNumber/animation/spatial.d.ts +2 -0
  94. package/dist/types/components/HysAnimatedNumber/useNumberCountdown.d.ts +8 -0
  95. package/dist/types/components/HysAnimatedNumber/useNumberVisuals.d.ts +12 -0
  96. package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +12 -3
  97. package/dist/types/components/HysAvatarGroup/HysAvatarGroup.vue.d.ts +2 -2
  98. package/dist/types/components/HysButton/HysButton.vue.d.ts +82 -22
  99. package/dist/types/components/HysButtonGroup/HysButtonGroup.vue.d.ts +30 -0
  100. package/dist/types/components/HysCard/HysCard.vue.d.ts +1 -1
  101. package/dist/types/components/HysCascader/HysCascader.vue.d.ts +3 -3
  102. package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +3 -3
  103. package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +3 -3
  104. package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +2 -2
  105. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +3 -3
  106. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +6 -6
  107. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +3 -3
  108. package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +2 -2
  109. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
  110. package/dist/types/components/HysInput/HysInput.vue.d.ts +13 -1
  111. package/dist/types/components/HysMention/HysMention.vue.d.ts +91 -40
  112. package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
  113. package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
  114. package/dist/types/components/HysPagination/HysPagination.vue.d.ts +55 -4
  115. package/dist/types/components/HysPopover/HysPopover.vue.d.ts +1 -1
  116. package/dist/types/components/HysRating/HysRating.vue.d.ts +1 -1
  117. package/dist/types/components/HysSearch/HysSearch.vue.d.ts +46 -8
  118. package/dist/types/components/HysSelect/HysSelect.vue.d.ts +6 -1
  119. package/dist/types/components/HysSkeleton/HysSkeleton.vue.d.ts +2 -2
  120. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +125 -14
  121. package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
  122. package/dist/types/components/HysTable/HysTable.vue.d.ts +1740 -3
  123. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +1 -1
  124. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +1 -1
  125. package/dist/types/components/HysTextarea/HysTextarea.vue.d.ts +13 -2
  126. package/dist/types/components/HysToast/HysToast.vue.d.ts +1 -1
  127. package/dist/types/components/HysTooltip/HysTooltip.vue.d.ts +1 -1
  128. package/dist/types/components/HysTour/HysTour.vue.d.ts +46 -9
  129. package/dist/types/components/HysTreeSelect/HysTreeSelect.vue.d.ts +3 -3
  130. package/dist/types/components/HysUpload/HysUpload.vue.d.ts +2 -2
  131. package/dist/types/composables/animatedNumber.d.ts +220 -0
  132. package/dist/types/composables/animatedNumberDigits.d.ts +32 -0
  133. package/dist/types/composables/animatedNumberFormat.d.ts +16 -0
  134. package/dist/types/composables/animatedNumberTiming.d.ts +21 -0
  135. package/dist/types/composables/buttonGroup.d.ts +9 -0
  136. package/dist/types/composables/drawer.d.ts +1 -1
  137. package/dist/types/composables/floatingPosition.d.ts +14 -0
  138. package/dist/types/composables/mention.d.ts +284 -0
  139. package/dist/types/composables/mentionDocument.d.ts +15 -0
  140. package/dist/types/composables/mentionEditor.d.ts +7 -0
  141. package/dist/types/composables/modal.d.ts +2 -0
  142. package/dist/types/composables/numberAnimation.d.ts +29 -0
  143. package/dist/types/composables/numberAnimationCatalog.d.ts +58 -0
  144. package/dist/types/composables/numberAnimationSequence.d.ts +13 -0
  145. package/dist/types/composables/selectOptions.d.ts +5 -0
  146. package/dist/types/composables/splitPaneSizes.d.ts +11 -0
  147. package/dist/types/composables/table.d.ts +116 -6
  148. package/dist/types/composables/textInput.d.ts +39 -4
  149. package/dist/types/composables/tour.d.ts +68 -0
  150. package/dist/types/composables/useFloating.d.ts +1 -1
  151. package/dist/types/composables/useHysAnimatedNumber.d.ts +37 -0
  152. package/dist/types/composables/useHysNumberAnimationGroup.d.ts +4 -0
  153. package/dist/types/composables/useMentionCaret.d.ts +6 -0
  154. package/dist/types/composables/useMentionList.d.ts +23 -0
  155. package/dist/types/composables/useMentionModel.d.ts +14 -0
  156. package/dist/types/composables/useMentionOptions.d.ts +26 -0
  157. package/dist/types/composables/useSplitPaneDrag.d.ts +14 -0
  158. package/dist/types/composables/useSplitPaneStorage.d.ts +4 -0
  159. package/dist/types/composables/useTable.d.ts +7 -3
  160. package/dist/types/composables/useTableSticky.d.ts +22 -0
  161. package/dist/types/composables/useTextareaSize.d.ts +5 -2
  162. package/dist/types/composables/useTourLayout.d.ts +33 -0
  163. package/dist/types/config.d.ts +1 -0
  164. package/dist/types/index.d.ts +46 -1
  165. package/dist/types/internal/MultiSplitPane.vue.d.ts +54 -0
  166. package/package.json +3 -2
  167. package/dist/components/HysSplitPane/HysSplitPane2.vue.js +0 -4
  168. package/dist/components/HysTour/HysTour2.vue.js +0 -4
@@ -1,7 +1,7 @@
1
1
  import o from "./HysModal2.vue.js";
2
2
  /* empty css */
3
- import a from "../../_virtual/_plugin-vue_export-helper.js";
4
- const p = /* @__PURE__ */ a(o, [["__scopeId", "data-v-401a39a8"]]);
3
+ import t from "../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-84baf613"]]);
5
5
  export {
6
- p as default
6
+ m as default
7
7
  };
@@ -1,10 +1,10 @@
1
- import { defineComponent as oe, useSlots as le, useAttrs as ie, ref as ne, useId as re, computed as h, mergeProps as B, openBlock as n, createBlock as C, Teleport as de, createVNode as g, Transition as se, normalizeProps as y, guardReactiveProps as m, withCtx as w, unref as a, withDirectives as j, createElementBlock as u, createElementVNode as c, toDisplayString as v, createCommentVNode as s, normalizeStyle as z, normalizeClass as T, renderSlot as b, resolveDynamicComponent as D, createTextVNode as F, vShow as p, withModifiers as ue } from "vue";
1
+ import { defineComponent as oe, useSlots as le, useAttrs as ie, ref as ne, useId as re, computed as g, mergeProps as B, openBlock as r, createBlock as C, Teleport as de, createVNode as v, Transition as se, normalizeProps as y, guardReactiveProps as m, withCtx as w, unref as a, withDirectives as p, createElementBlock as u, renderSlot as h, createElementVNode as c, toDisplayString as b, createCommentVNode as s, normalizeStyle as z, normalizeClass as T, resolveDynamicComponent as D, createTextVNode as F, vShow as j, withModifiers as ue } from "vue";
2
2
  import { Info as q, CircleHelp as ce, CircleX as ye, TriangleAlert as me, CircleCheck as fe, GripHorizontal as he, GripVertical as N, Minimize2 as ge, Maximize2 as ve, X as be, LoaderCircle as ke } from "lucide-vue-next";
3
3
  import R from "../HysButton/HysButton.vue.js";
4
4
  import { useHysRootAttrs as Be } from "../../config.js";
5
5
  import { useModal as Ce } from "../../composables/useModal.js";
6
6
  import { modalLength as k, modalWidth as we } from "../../composables/modal.js";
7
- const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describedby", "aria-busy"], xe = { class: "hys-ui-modal-title-wrap" }, Se = {
7
+ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describedby", "aria-busy"], Se = { class: "hys-ui-modal-title-wrap" }, xe = {
8
8
  class: "hys-ui-modal-head-actions",
9
9
  "data-hys-modal-no-drag": ""
10
10
  }, Pe = ["aria-label", "title", "aria-pressed"], He = ["aria-label", "disabled"], Te = {
@@ -116,11 +116,11 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
116
116
  },
117
117
  emits: ["update:open", "update:modelValue", "update:fullscreen", "open", "opened", "close", "closed", "afterClose", "visibleChange", "fullscreenChange", "ok", "cancel", "closeError", "confirmError", "openAutoFocus", "closeAutoFocus", "dragStart", "drag", "dragEnd", "resizeStart", "resize", "resizeEnd"],
118
118
  setup(e, { expose: G, emit: U }) {
119
- const l = e, X = U, J = le(), Q = ie(), A = Be(), x = ne(), O = re(), S = O + "-title", P = O + "-description", t = Ce(
119
+ const l = e, X = U, J = le(), Q = ie(), A = Be(), S = ne(), O = re(), x = O + "-title", P = O + "-description", t = Ce(
120
120
  l,
121
- x,
122
- (d, ...o) => X(d, ...o)
123
- ), r = t.fullscreen, f = h(() => ({
121
+ S,
122
+ (n, ...o) => X(n, ...o)
123
+ ), d = t.fullscreen, f = g(() => ({
124
124
  close: t.requestClose,
125
125
  cancel: t.cancel,
126
126
  confirm: t.confirm,
@@ -128,58 +128,58 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
128
128
  confirming: t.confirming.value,
129
129
  busy: t.busy.value,
130
130
  error: t.error.value,
131
- titleId: S,
131
+ titleId: x,
132
132
  descriptionId: P,
133
- fullscreen: r.value,
133
+ fullscreen: d.value,
134
134
  toggleFullscreen: t.toggleFullscreen
135
- })), Y = h(
135
+ })), Y = g(
136
136
  () => l.footer !== !1 && (l.footer === !0 || !!J.footer)
137
- ), Z = h(
137
+ ), Z = g(
138
138
  () => Math.max(1, Math.min(6, Math.trunc(l.headerAriaLevel)))
139
- ), _ = h(() => {
140
- var d, o;
139
+ ), _ = g(() => {
140
+ var n, o;
141
141
  return {
142
142
  ...l.modalStyle,
143
143
  ...l.opacity !== void 0 ? {
144
144
  "--hys-ui-modal-opacity": t.alpha(l.opacity) * 100 + "%",
145
145
  background: `color-mix(in srgb,var(--hys-ui-surface,var(--hys-ui-theme-surface)) ${t.alpha(l.opacity) * 100}%,transparent)`
146
146
  } : {},
147
- width: r.value ? "100%" : k(
148
- ((d = t.interaction.dimensions.value) == null ? void 0 : d.width) ?? we(l)
147
+ width: d.value ? "100%" : k(
148
+ ((n = t.interaction.dimensions.value) == null ? void 0 : n.width) ?? we(l)
149
149
  ),
150
- height: r.value ? "100dvh" : k(((o = t.interaction.dimensions.value) == null ? void 0 : o.height) ?? l.height),
151
- maxWidth: r.value ? "100%" : l.maxWidth ? `min(${l.maxWidth}px,100%)` : "100%",
152
- maxHeight: r.value ? "100dvh" : k(l.maxHeight) ?? "calc(100dvh - 36px)",
150
+ height: d.value ? "100dvh" : k(((o = t.interaction.dimensions.value) == null ? void 0 : o.height) ?? l.height),
151
+ maxWidth: d.value ? "100%" : l.maxWidth ? `min(${l.maxWidth}px,100%)` : "100%",
152
+ maxHeight: d.value ? "100dvh" : k(l.maxHeight) ?? "calc(100dvh - 36px)",
153
153
  "--hys-ui-modal-x": t.interaction.position.value.x + "px",
154
154
  "--hys-ui-modal-y": t.interaction.position.value.y + "px"
155
155
  };
156
- }), ee = h(() => ({
156
+ }), ee = g(() => ({
157
157
  ...l.maskStyle,
158
158
  ...l.modal !== !1 && l.maskOpacity !== void 0 ? {
159
159
  "--hys-ui-modal-mask-opacity": t.alpha(l.maskOpacity) * 100 + "%",
160
160
  background: `color-mix(in srgb,#0b183d ${t.alpha(l.maskOpacity) * 100}%,transparent)`
161
161
  } : {},
162
162
  zIndex: t.state.zIndex.value,
163
- ...l.centered === !1 && !r.value ? { alignItems: "flex-start", paddingTop: k(l.top) ?? "15vh" } : {},
163
+ ...l.centered === !1 && !d.value ? { alignItems: "flex-start", paddingTop: k(l.top) ?? "15vh" } : {},
164
164
  ...l.transitionDuration !== void 0 ? {
165
165
  "--hys-ui-modal-duration": Math.max(0, Math.min(5e3, l.transitionDuration)) + "ms"
166
166
  } : {}
167
- })), te = h(() => {
168
- const d = typeof l.transition == "object" ? l.transition : {
167
+ })), te = g(() => {
168
+ const n = typeof l.transition == "object" ? l.transition : {
169
169
  name: typeof l.transition == "string" ? l.transition : void 0
170
- }, o = d.name ?? "hys-ui-modal-motion";
170
+ }, o = n.name ?? "hys-ui-modal-motion";
171
171
  return B(
172
- { ...d },
172
+ { ...n },
173
173
  {
174
174
  name: ["fade", "scale", "slide"].includes(o) ? "hys-ui-modal-" + o : o,
175
175
  appear: !0,
176
- css: t.motion.value && d.css !== !1,
176
+ css: t.motion.value && n.css !== !1,
177
177
  ...l.transitionDuration !== void 0 ? { duration: Math.max(0, Math.min(5e3, l.transitionDuration)) } : {},
178
178
  onAfterEnter: t.afterEnter,
179
179
  onAfterLeave: t.afterLeave
180
180
  }
181
181
  );
182
- }), ae = h(
182
+ }), ae = g(
183
183
  () => l.icon ?? {
184
184
  info: q,
185
185
  success: fe,
@@ -193,11 +193,11 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
193
193
  l.draggable && t.interaction.resetPosition();
194
194
  }
195
195
  return G({
196
- element: x,
196
+ element: S,
197
197
  open: t.shown,
198
198
  closing: t.closing,
199
199
  confirming: t.confirming,
200
- fullscreen: r,
200
+ fullscreen: d,
201
201
  get position() {
202
202
  return t.interaction.getPosition();
203
203
  },
@@ -218,19 +218,19 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
218
218
  resetSize: t.interaction.resetSize,
219
219
  setPosition: t.interaction.setPosition,
220
220
  setSize: t.interaction.setSize
221
- }), (d, o) => (n(), C(de, {
221
+ }), (n, o) => (r(), C(de, {
222
222
  to: e.appendTo || "body",
223
223
  disabled: e.appendTo === !1
224
224
  }, [
225
- g(se, y(m(te.value)), {
225
+ v(se, y(m(te.value)), {
226
226
  default: w(() => {
227
227
  var E, M;
228
228
  return [
229
- a(t).state.active.value && (e.forceRender || a(t).rendered.value) ? j((n(), u("div", B({ key: 0 }, a(A), {
229
+ a(t).state.active.value && (e.forceRender || a(t).rendered.value) ? p((r(), u("div", B({ key: 0 }, a(A), {
230
230
  class: ["hys-ui-overlay hys-ui-modal-overlay", [
231
231
  e.overlayClass,
232
232
  {
233
- "hys-ui-modal-fullscreen": a(r),
233
+ "hys-ui-modal-fullscreen": a(d),
234
234
  "hys-ui-modal-no-mask": l.modal === !1,
235
235
  "hys-ui-modal-penetrable": l.modal === !1 && e.modalPenetrable,
236
236
  "hys-ui-modal-center": e.center,
@@ -243,17 +243,18 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
243
243
  onPointerup: o[12] || (o[12] = //@ts-ignore
244
244
  (...i) => a(t).maskUp && a(t).maskUp(...i))
245
245
  }), [
246
- a(t).interaction.previewing.value ? (n(), u("div", {
246
+ h(n.$slots, "backdrop", y(m(f.value)), void 0, !0),
247
+ a(t).interaction.previewing.value ? (r(), u("div", {
247
248
  key: 0,
248
249
  ref: (i) => a(t).interaction.previewLayer.value = i,
249
250
  class: "hys-ui-modal-drag-preview",
250
251
  "aria-hidden": "true"
251
252
  }, [
252
- c("span", null, v(e.title || "移动位置"), 1)
253
+ c("span", null, b(e.title || "移动位置"), 1)
253
254
  ], 512)) : s("", !0),
254
255
  c("section", B({
255
256
  ref_key: "dialog",
256
- ref: x
257
+ ref: S
257
258
  }, { ...a(A), ...a(Q) }, {
258
259
  tabindex: "-1",
259
260
  class: ["hys-ui-modal", [
@@ -269,20 +270,20 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
269
270
  role: e.role ?? "dialog",
270
271
  "aria-modal": l.modal === !1 && e.modalPenetrable ? void 0 : !0,
271
272
  "aria-label": e.ariaLabel || e.title || "对话框",
272
- "aria-labelledby": e.ariaLabelledby || (e.title || d.$slots.header ? S : void 0),
273
+ "aria-labelledby": e.ariaLabelledby || (e.title || n.$slots.header ? x : void 0),
273
274
  "aria-describedby": e.ariaDescribedby || (e.description ? P : void 0),
274
275
  "aria-busy": a(t).busy.value || void 0,
275
276
  style: _.value,
276
277
  onKeydown: o[10] || (o[10] = //@ts-ignore
277
278
  (...i) => a(t).key && a(t).key(...i))
278
279
  }), [
279
- e.title || d.$slots.header || e.showClose || e.showFullscreen || e.draggable ? (n(), u("header", {
280
+ e.title || n.$slots.header || e.showClose || e.showFullscreen || e.draggable ? (r(), u("header", {
280
281
  key: 0,
281
282
  class: T(["hys-ui-dialog-head", [
282
283
  e.headerClass,
283
284
  "hys-ui-modal-header-" + (e.headerSize ?? "md"),
284
285
  {
285
- "hys-ui-modal-header-with-center-grip": e.draggable && !a(r) && e.dragHandlePosition === "center"
286
+ "hys-ui-modal-header-with-center-grip": e.draggable && !a(d) && e.dragHandlePosition === "center"
286
287
  }
287
288
  ]]),
288
289
  style: z({
@@ -290,7 +291,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
290
291
  minHeight: a(k)(e.headerHeight) ?? ((E = e.headerStyle) == null ? void 0 : E.minHeight)
291
292
  })
292
293
  }, [
293
- e.draggable && !a(r) && e.dragHandlePosition === "center" ? (n(), u("button", {
294
+ e.draggable && !a(d) && e.dragHandlePosition === "center" ? (r(), u("button", {
294
295
  key: 0,
295
296
  type: "button",
296
297
  class: "hys-ui-modal-drag-handle hys-ui-modal-drag-handle-center",
@@ -302,13 +303,13 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
302
303
  (...i) => a(t).interaction.headerKey && a(t).interaction.headerKey(...i)),
303
304
  onDblclick: H
304
305
  }, [
305
- g(a(he), {
306
+ v(a(he), {
306
307
  size: 18,
307
308
  "aria-hidden": "true"
308
309
  })
309
310
  ], 32)) : s("", !0),
310
- c("div", xe, [
311
- e.draggable && !a(r) && ["left", "both"].includes(e.dragHandlePosition) ? (n(), u("button", {
311
+ c("div", Se, [
312
+ e.draggable && !a(d) && ["left", "both"].includes(e.dragHandlePosition) ? (r(), u("button", {
312
313
  key: 0,
313
314
  type: "button",
314
315
  class: "hys-ui-modal-drag-handle",
@@ -320,26 +321,26 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
320
321
  (...i) => a(t).interaction.headerKey && a(t).interaction.headerKey(...i)),
321
322
  onDblclick: H
322
323
  }, [
323
- g(a(N), {
324
+ v(a(N), {
324
325
  size: 16,
325
326
  "aria-hidden": "true"
326
327
  })
327
328
  ], 32)) : s("", !0),
328
- b(d.$slots, "header", y(m(f.value)), () => [
329
- (n(), C(D("h" + Z.value), {
330
- id: S,
329
+ h(n.$slots, "header", y(m(f.value)), () => [
330
+ (r(), C(D("h" + Z.value), {
331
+ id: x,
331
332
  class: "hys-ui-modal-title",
332
333
  style: z({ fontSize: a(k)(e.titleFontSize) })
333
334
  }, {
334
335
  default: w(() => [
335
- F(v(e.title), 1)
336
+ F(b(e.title), 1)
336
337
  ]),
337
338
  _: 1
338
339
  }, 8, ["style"]))
339
340
  ], !0)
340
341
  ]),
341
- c("div", Se, [
342
- e.draggable && !a(r) && ["right", "both"].includes(e.dragHandlePosition) ? (n(), u("button", {
342
+ c("div", xe, [
343
+ e.draggable && !a(d) && ["right", "both"].includes(e.dragHandlePosition) ? (r(), u("button", {
343
344
  key: 0,
344
345
  type: "button",
345
346
  class: "hys-ui-modal-drag-handle",
@@ -351,26 +352,26 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
351
352
  (...i) => a(t).interaction.headerKey && a(t).interaction.headerKey(...i)),
352
353
  onDblclick: H
353
354
  }, [
354
- g(a(N), {
355
+ v(a(N), {
355
356
  size: 16,
356
357
  "aria-hidden": "true"
357
358
  })
358
359
  ], 32)) : s("", !0),
359
- e.showFullscreen ? (n(), u("button", {
360
+ e.showFullscreen ? (r(), u("button", {
360
361
  key: 1,
361
362
  type: "button",
362
363
  class: "hys-ui-icon-action",
363
- "aria-label": a(r) ? e.restoreText : e.fullscreenText,
364
- title: a(r) ? e.restoreText : e.fullscreenText,
365
- "aria-pressed": a(r),
364
+ "aria-label": a(d) ? e.restoreText : e.fullscreenText,
365
+ title: a(d) ? e.restoreText : e.fullscreenText,
366
+ "aria-pressed": a(d),
366
367
  onClick: o[6] || (o[6] = //@ts-ignore
367
368
  (...i) => a(t).toggleFullscreen && a(t).toggleFullscreen(...i))
368
369
  }, [
369
- b(d.$slots, "fullscreen-icon", y(m(f.value)), () => [
370
- (n(), C(D(a(r) ? a(ge) : a(ve)), { size: 16 }))
370
+ h(n.$slots, "fullscreen-icon", y(m(f.value)), () => [
371
+ (r(), C(D(a(d) ? a(ge) : a(ve)), { size: 16 }))
371
372
  ], !0)
372
373
  ], 8, Pe)) : s("", !0),
373
- e.showClose ? (n(), u("button", {
374
+ e.showClose ? (r(), u("button", {
374
375
  key: 2,
375
376
  type: "button",
376
377
  class: "hys-ui-icon-action",
@@ -378,8 +379,8 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
378
379
  disabled: a(t).closing.value || a(t).confirming.value && !e.closeWhileConfirming,
379
380
  onClick: o[7] || (o[7] = (i) => a(t).requestClose("button", i))
380
381
  }, [
381
- b(d.$slots, "close-icon", y(m(f.value)), () => [
382
- g(a(be), { size: 18 })
382
+ h(n.$slots, "close-icon", y(m(f.value)), () => [
383
+ v(a(be), { size: 18 })
383
384
  ], !0)
384
385
  ], 8, He)) : s("", !0)
385
386
  ])
@@ -388,40 +389,40 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
388
389
  class: T(["hys-ui-dialog-body", e.bodyClass]),
389
390
  style: z(e.bodyStyle)
390
391
  }, [
391
- e.loading ? (n(), u("div", Te, [
392
- b(d.$slots, "loading", y(m(f.value)), () => [
393
- g(a(ke), {
392
+ e.loading ? (r(), u("div", Te, [
393
+ h(n.$slots, "loading", y(m(f.value)), () => [
394
+ v(a(ke), {
394
395
  size: 23,
395
396
  class: "hys-ui-modal-spinner"
396
397
  }),
397
- c("span", null, v(e.loadingText), 1)
398
+ c("span", null, b(e.loadingText), 1)
398
399
  ], !0)
399
400
  ])) : s("", !0),
400
- j(c("div", De, [
401
- e.showIcon ?? e.type !== "default" ? (n(), u("span", {
401
+ p(c("div", De, [
402
+ e.showIcon ?? e.type !== "default" ? (r(), u("span", {
402
403
  key: 0,
403
404
  class: "hys-ui-modal-type-icon",
404
405
  "data-type": e.type,
405
406
  "aria-hidden": "true"
406
407
  }, [
407
- b(d.$slots, "icon", y(m(f.value)), () => [
408
- (n(), C(D(ae.value), { size: 24 }))
408
+ h(n.$slots, "icon", y(m(f.value)), () => [
409
+ (r(), C(D(ae.value), { size: 24 }))
409
410
  ], !0)
410
411
  ], 8, Fe)) : s("", !0),
411
412
  c("div", Ae, [
412
- e.description ? (n(), u("p", {
413
+ e.description ? (r(), u("p", {
413
414
  key: 0,
414
415
  id: P,
415
416
  class: "hys-ui-modal-description"
416
- }, v(e.description), 1)) : s("", !0),
417
- b(d.$slots, "default", y(m(f.value)), void 0, !0)
417
+ }, b(e.description), 1)) : s("", !0),
418
+ h(n.$slots, "default", y(m(f.value)), void 0, !0)
418
419
  ])
419
420
  ], 512), [
420
- [p, !e.loading]
421
+ [j, !e.loading]
421
422
  ]),
422
- e.showError && a(t).error.value ? (n(), u("p", Oe, v(a(t).error.value), 1)) : s("", !0)
423
+ e.showError && a(t).error.value ? (r(), u("p", Oe, b(a(t).error.value), 1)) : s("", !0)
423
424
  ], 6),
424
- Y.value ? (n(), u("footer", {
425
+ Y.value ? (r(), u("footer", {
425
426
  key: 1,
426
427
  class: T(["hys-ui-dialog-foot", [
427
428
  e.footerClass,
@@ -431,13 +432,13 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
431
432
  ...e.footerStyle,
432
433
  minHeight: a(k)(e.footerHeight) ?? ((M = e.footerStyle) == null ? void 0 : M.minHeight),
433
434
  justifyContent: e.footerAlign === "start" ? "flex-start" : e.footerAlign === "center" || e.center ? "center" : "flex-end",
434
- paddingInlineEnd: e.resizable && !a(r) ? "38px" : void 0
435
+ paddingInlineEnd: e.resizable && !a(d) ? "38px" : void 0
435
436
  })
436
437
  }, [
437
- b(d.$slots, "footer", y(m(f.value)), () => {
438
+ h(n.$slots, "footer", y(m(f.value)), () => {
438
439
  var i, K, L, $, I, V, W;
439
440
  return [
440
- e.showCancel ? (n(), C(R, B({ key: 0 }, e.cancelButtonProps, {
441
+ e.showCancel ? (r(), C(R, B({ key: 0 }, e.cancelButtonProps, {
441
442
  "data-hys-modal-cancel": "",
442
443
  variant: ((i = e.cancelButtonProps) == null ? void 0 : i.variant) ?? "secondary",
443
444
  size: ((K = e.cancelButtonProps) == null ? void 0 : K.size) ?? e.footerSize ?? "md",
@@ -445,11 +446,11 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
445
446
  onClick: a(t).cancel
446
447
  }), {
447
448
  default: w(() => [
448
- F(v(e.cancelText), 1)
449
+ F(b(e.cancelText), 1)
449
450
  ]),
450
451
  _: 1
451
452
  }, 16, ["variant", "size", "disabled", "onClick"])) : s("", !0),
452
- g(R, B(e.okButtonProps, {
453
+ v(R, B(e.okButtonProps, {
453
454
  "data-hys-modal-confirm": "",
454
455
  variant: (($ = e.okButtonProps) == null ? void 0 : $.variant) ?? e.okVariant ?? "primary",
455
456
  size: ((I = e.okButtonProps) == null ? void 0 : I.size) ?? e.footerSize ?? "md",
@@ -458,14 +459,14 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
458
459
  onClick: a(t).confirm
459
460
  }), {
460
461
  default: w(() => [
461
- F(v(e.okText), 1)
462
+ F(b(e.okText), 1)
462
463
  ]),
463
464
  _: 1
464
465
  }, 16, ["variant", "size", "loading", "disabled", "onClick"])
465
466
  ];
466
467
  }, !0)
467
468
  ], 6)) : s("", !0),
468
- e.resizable && !a(r) ? (n(), u("button", {
469
+ e.resizable && !a(d) ? (r(), u("button", {
469
470
  key: 2,
470
471
  type: "button",
471
472
  class: "hys-ui-modal-resize-handle",
@@ -492,7 +493,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
492
493
  ])], 32)) : s("", !0)
493
494
  ], 16, ze)
494
495
  ], 16)), [
495
- [p, a(t).shown.value]
496
+ [j, a(t).shown.value]
496
497
  ]) : s("", !0)
497
498
  ];
498
499
  }),
@@ -1,7 +1,7 @@
1
1
  import o from "./HysPagination2.vue.js";
2
2
  /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const i = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dba949dd"]]);
4
+ const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-451ed107"]]);
5
5
  export {
6
- i as default
6
+ m as default
7
7
  };