hys-ui 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/README.md +68 -73
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber.vue.js +5 -41
- package/dist/components/HysAnimatedNumber/HysAnimatedNumber2.vue.js +146 -2
- package/dist/components/HysButton/HysButton.vue.js +2 -2
- package/dist/components/HysButton/HysButton2.vue.js +227 -60
- package/dist/components/HysButtonGroup/HysButtonGroup.vue.js +7 -0
- package/dist/components/HysButtonGroup/HysButtonGroup2.vue.js +51 -0
- package/dist/components/HysMention/HysMention.vue.js +1 -1
- package/dist/components/HysMention/HysMention2.vue.js +1092 -154
- package/dist/components/HysModal/HysModal.vue.js +3 -3
- package/dist/components/HysModal/HysModal2.vue.js +81 -80
- package/dist/components/HysPagination/HysPagination.vue.js +2 -2
- package/dist/components/HysPagination/HysPagination2.vue.js +243 -180
- package/dist/components/HysSearch/HysSearch.vue.js +5 -82
- package/dist/components/HysSearch/HysSearch2.vue.js +176 -2
- package/dist/components/HysSelect/HysSelect.vue.js +2 -2
- package/dist/components/HysSelect/HysSelect2.vue.js +472 -443
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +315 -58
- package/dist/components/HysSplitPane/HysSplitPane3.vue.js +5 -0
- package/dist/components/HysTable/HysTable.vue.js +2 -2
- package/dist/components/HysTable/HysTable2.vue.js +1418 -1150
- package/dist/components/HysTour/HysTour.vue.js +291 -67
- package/dist/components/HysTour/HysTour3.vue.js +5 -0
- package/dist/composables/buttonGroup.js +12 -0
- package/dist/composables/floatingPosition.js +18 -0
- package/dist/composables/mentionDocument.js +79 -0
- package/dist/composables/mentionEditor.js +58 -0
- package/dist/composables/selectOptions.js +44 -38
- package/dist/composables/splitPaneSizes.js +58 -0
- package/dist/composables/table.js +128 -105
- package/dist/composables/useDialog.js +50 -50
- package/dist/composables/useFloating.js +107 -103
- package/dist/composables/useMentionCaret.js +81 -0
- package/dist/composables/useMentionList.js +81 -0
- package/dist/composables/useMentionModel.js +90 -0
- package/dist/composables/useMentionOptions.js +421 -0
- package/dist/composables/useSplitPaneDrag.js +52 -0
- package/dist/composables/useSplitPaneStorage.js +38 -0
- package/dist/composables/useTable.js +344 -312
- package/dist/composables/useTableSticky.js +79 -0
- package/dist/composables/useTourLayout.js +129 -0
- package/dist/config.js +11 -11
- package/dist/index.js +175 -156
- package/dist/internal/MultiSplitPane.vue.js +305 -0
- package/dist/internal/MultiSplitPane2.vue.js +4 -0
- package/dist/style.css +1 -1
- package/dist/types/components/HysAnimatedNumber/HysAnimatedNumber.vue.d.ts +61 -7
- package/dist/types/components/HysAutocomplete/HysAutocomplete.vue.d.ts +1 -1
- package/dist/types/components/HysButton/HysButton.vue.d.ts +82 -22
- package/dist/types/components/HysButtonGroup/HysButtonGroup.vue.d.ts +30 -0
- package/dist/types/components/HysCascader/HysCascaderColumn.vue.d.ts +2 -2
- package/dist/types/components/HysColorPicker/HysColorPicker.vue.d.ts +2 -2
- package/dist/types/components/HysContextMenu/HysMenuPanel.vue.d.ts +2 -2
- package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +2 -2
- package/dist/types/components/HysDrawer/HysDrawer.vue.d.ts +1 -1
- package/dist/types/components/HysMention/HysMention.vue.d.ts +91 -40
- package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
- package/dist/types/components/HysNumberInput/HysNumberInput.vue.d.ts +2 -2
- package/dist/types/components/HysPagination/HysPagination.vue.d.ts +55 -4
- package/dist/types/components/HysRating/HysRating.vue.d.ts +1 -1
- package/dist/types/components/HysSearch/HysSearch.vue.d.ts +45 -7
- package/dist/types/components/HysSelect/HysSelect.vue.d.ts +6 -1
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +125 -14
- package/dist/types/components/HysSteps/HysSteps.vue.d.ts +1 -1
- package/dist/types/components/HysTable/HysTable.vue.d.ts +1740 -3
- package/dist/types/components/HysTour/HysTour.vue.d.ts +46 -9
- package/dist/types/composables/buttonGroup.d.ts +9 -0
- package/dist/types/composables/floatingPosition.d.ts +14 -0
- package/dist/types/composables/mention.d.ts +284 -0
- package/dist/types/composables/mentionDocument.d.ts +15 -0
- package/dist/types/composables/mentionEditor.d.ts +7 -0
- package/dist/types/composables/modal.d.ts +2 -0
- package/dist/types/composables/selectOptions.d.ts +5 -0
- package/dist/types/composables/splitPaneSizes.d.ts +11 -0
- package/dist/types/composables/table.d.ts +116 -6
- package/dist/types/composables/tour.d.ts +68 -0
- package/dist/types/composables/useFloating.d.ts +1 -1
- package/dist/types/composables/useMentionCaret.d.ts +6 -0
- package/dist/types/composables/useMentionList.d.ts +23 -0
- package/dist/types/composables/useMentionModel.d.ts +14 -0
- package/dist/types/composables/useMentionOptions.d.ts +26 -0
- package/dist/types/composables/useSplitPaneDrag.d.ts +14 -0
- package/dist/types/composables/useSplitPaneStorage.d.ts +4 -0
- package/dist/types/composables/useTable.d.ts +7 -3
- package/dist/types/composables/useTableSticky.d.ts +22 -0
- package/dist/types/composables/useTourLayout.d.ts +33 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/index.d.ts +36 -1
- package/dist/types/internal/MultiSplitPane.vue.d.ts +54 -0
- package/package.json +3 -2
- package/dist/components/HysSplitPane/HysSplitPane2.vue.js +0 -4
- 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
|
|
4
|
-
const
|
|
3
|
+
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-84baf613"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
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
|
|
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"],
|
|
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(),
|
|
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
|
-
|
|
122
|
-
(
|
|
123
|
-
),
|
|
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:
|
|
131
|
+
titleId: x,
|
|
132
132
|
descriptionId: P,
|
|
133
|
-
fullscreen:
|
|
133
|
+
fullscreen: d.value,
|
|
134
134
|
toggleFullscreen: t.toggleFullscreen
|
|
135
|
-
})), Y =
|
|
135
|
+
})), Y = g(
|
|
136
136
|
() => l.footer !== !1 && (l.footer === !0 || !!J.footer)
|
|
137
|
-
), Z =
|
|
137
|
+
), Z = g(
|
|
138
138
|
() => Math.max(1, Math.min(6, Math.trunc(l.headerAriaLevel)))
|
|
139
|
-
), _ =
|
|
140
|
-
var
|
|
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:
|
|
148
|
-
((
|
|
147
|
+
width: d.value ? "100%" : k(
|
|
148
|
+
((n = t.interaction.dimensions.value) == null ? void 0 : n.width) ?? we(l)
|
|
149
149
|
),
|
|
150
|
-
height:
|
|
151
|
-
maxWidth:
|
|
152
|
-
maxHeight:
|
|
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 =
|
|
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 && !
|
|
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 =
|
|
168
|
-
const
|
|
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 =
|
|
170
|
+
}, o = n.name ?? "hys-ui-modal-motion";
|
|
171
171
|
return B(
|
|
172
|
-
{ ...
|
|
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 &&
|
|
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 =
|
|
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:
|
|
196
|
+
element: S,
|
|
197
197
|
open: t.shown,
|
|
198
198
|
closing: t.closing,
|
|
199
199
|
confirming: t.confirming,
|
|
200
|
-
fullscreen:
|
|
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
|
-
}), (
|
|
221
|
+
}), (n, o) => (r(), C(de, {
|
|
222
222
|
to: e.appendTo || "body",
|
|
223
223
|
disabled: e.appendTo === !1
|
|
224
224
|
}, [
|
|
225
|
-
|
|
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) ?
|
|
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(
|
|
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
|
-
|
|
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,
|
|
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:
|
|
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 ||
|
|
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 ||
|
|
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(
|
|
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(
|
|
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
|
-
|
|
306
|
+
v(a(he), {
|
|
306
307
|
size: 18,
|
|
307
308
|
"aria-hidden": "true"
|
|
308
309
|
})
|
|
309
310
|
], 32)) : s("", !0),
|
|
310
|
-
c("div",
|
|
311
|
-
e.draggable && !a(
|
|
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
|
-
|
|
324
|
+
v(a(N), {
|
|
324
325
|
size: 16,
|
|
325
326
|
"aria-hidden": "true"
|
|
326
327
|
})
|
|
327
328
|
], 32)) : s("", !0),
|
|
328
|
-
|
|
329
|
-
(
|
|
330
|
-
id:
|
|
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(
|
|
336
|
+
F(b(e.title), 1)
|
|
336
337
|
]),
|
|
337
338
|
_: 1
|
|
338
339
|
}, 8, ["style"]))
|
|
339
340
|
], !0)
|
|
340
341
|
]),
|
|
341
|
-
c("div",
|
|
342
|
-
e.draggable && !a(
|
|
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
|
-
|
|
355
|
+
v(a(N), {
|
|
355
356
|
size: 16,
|
|
356
357
|
"aria-hidden": "true"
|
|
357
358
|
})
|
|
358
359
|
], 32)) : s("", !0),
|
|
359
|
-
e.showFullscreen ? (
|
|
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(
|
|
364
|
-
title: a(
|
|
365
|
-
"aria-pressed": a(
|
|
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
|
-
|
|
370
|
-
(
|
|
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 ? (
|
|
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
|
-
|
|
382
|
-
|
|
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 ? (
|
|
392
|
-
|
|
393
|
-
|
|
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,
|
|
398
|
+
c("span", null, b(e.loadingText), 1)
|
|
398
399
|
], !0)
|
|
399
400
|
])) : s("", !0),
|
|
400
|
-
|
|
401
|
-
e.showIcon ?? e.type !== "default" ? (
|
|
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
|
-
|
|
408
|
-
(
|
|
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 ? (
|
|
413
|
+
e.description ? (r(), u("p", {
|
|
413
414
|
key: 0,
|
|
414
415
|
id: P,
|
|
415
416
|
class: "hys-ui-modal-description"
|
|
416
|
-
},
|
|
417
|
-
|
|
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
|
-
[
|
|
421
|
+
[j, !e.loading]
|
|
421
422
|
]),
|
|
422
|
-
e.showError && a(t).error.value ? (
|
|
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 ? (
|
|
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(
|
|
435
|
+
paddingInlineEnd: e.resizable && !a(d) ? "38px" : void 0
|
|
435
436
|
})
|
|
436
437
|
}, [
|
|
437
|
-
|
|
438
|
+
h(n.$slots, "footer", y(m(f.value)), () => {
|
|
438
439
|
var i, K, L, $, I, V, W;
|
|
439
440
|
return [
|
|
440
|
-
e.showCancel ? (
|
|
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(
|
|
449
|
+
F(b(e.cancelText), 1)
|
|
449
450
|
]),
|
|
450
451
|
_: 1
|
|
451
452
|
}, 16, ["variant", "size", "disabled", "onClick"])) : s("", !0),
|
|
452
|
-
|
|
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(
|
|
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(
|
|
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
|
-
[
|
|
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
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-451ed107"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|