hisonvue 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{HAccordion-CrCXK2YM.mjs → HAccordion-DF3nVecV.mjs} +14 -14
- package/dist/{HAccordion-DleNf4M-.js → HAccordion-DOOZ-cp8.js} +1 -1
- package/dist/{HBaggie-CtDuqAan.js → HBaggie-BS9EOCwx.js} +1 -1
- package/dist/{HBaggie-DR86wX0x.mjs → HBaggie-ls0EmS6D.mjs} +2 -2
- package/dist/{HBanner-D4j3o022.mjs → HBanner-B4wgOfzY.mjs} +46 -46
- package/dist/{HBanner-BDv5sYCa.js → HBanner-COBAvXo0.js} +1 -1
- package/dist/{HButton-CkHZhjwN.js → HButton--7fP_vis.js} +1 -1
- package/dist/{HButton-BeKvR0cC.mjs → HButton-BK-ZbuUQ.mjs} +2 -2
- package/dist/{HCalendar-vI0VJJUJ.mjs → HCalendar-DmdKh3Qo.mjs} +6 -6
- package/dist/HCalendar-a5EHwb5A.js +2 -0
- package/dist/{HCaption-DbjKugnx.js → HCaption-C_vEGNoa.js} +1 -1
- package/dist/{HCaption-Cf3dj2IG.mjs → HCaption-DO68MwY6.mjs} +1 -1
- package/dist/{HChart-CTa5zLah.js → HChart-9E_I-x6Y.js} +1 -1
- package/dist/{HChart-BITDUWsH.mjs → HChart-BVRcRsT3.mjs} +1 -1
- package/dist/{HDrawer-vEgPHlwE.mjs → HDrawer-BGvH_WSe.mjs} +47 -47
- package/dist/HDrawer-CyBGVCBD.js +1 -0
- package/dist/{HDropdown-BojM0eHC.mjs → HDropdown-32cdUXbK.mjs} +13 -13
- package/dist/{HDropdown-BfZUh6z-.js → HDropdown-D6cW14fc.js} +1 -1
- package/dist/{HFileset-BG5l_qx4.mjs → HFileset-B1qWPkxl.mjs} +1 -1
- package/dist/{HFileset-Cb7WvJLf.js → HFileset-BF4UVyu4.js} +1 -1
- package/dist/{HGap-CZfD94Bb.js → HGap-DFyCoOJ5.js} +1 -1
- package/dist/{HGap-CNKNrbB5.mjs → HGap-DLd-xSyD.mjs} +1 -1
- package/dist/{HGrid-CbxqCD5t.js → HGrid-DW-cQ3on.js} +1 -1
- package/dist/{HGrid-BudEkfCU.mjs → HGrid-pnp7TclN.mjs} +1 -1
- package/dist/{HImagebox-BPvmvGWb.js → HImagebox-CcLBY_a2.js} +1 -1
- package/dist/{HImagebox--UAgOadx.mjs → HImagebox-CrcuUhRU.mjs} +1 -1
- package/dist/{HInput-C5otOYZ7.mjs → HInput-ChSLa05p.mjs} +1 -1
- package/dist/{HInput-CpbGKZg2.js → HInput-DEZ6MbLr.js} +1 -1
- package/dist/{HInputGroup-BRYFCJDS.js → HInputGroup-By4XNJU6.js} +1 -1
- package/dist/{HInputGroup-CV595p3t.mjs → HInputGroup-CjYjDbBQ.mjs} +1 -1
- package/dist/{HLabel-buiY-oWY.js → HLabel-BX6neUF1.js} +1 -1
- package/dist/{HLabel-DSOf8CAF.mjs → HLabel-aTZYkQw1.mjs} +2 -2
- package/dist/{HLayout-0PWr0ybN.mjs → HLayout-BLp-fgKU.mjs} +2 -2
- package/dist/{HLayout-Bu0hB8wf.js → HLayout-DEseTam_.js} +1 -1
- package/dist/{HList-BIKaUFs1.js → HList-BDvvtTrI.js} +1 -1
- package/dist/{HList-CAYpxvpT.mjs → HList-DU0geFQh.mjs} +2 -2
- package/dist/{HModal-FqJbINTG.mjs → HModal-D3oCVpWD.mjs} +1 -1
- package/dist/{HModal-DDL-MrHu.js → HModal-DOrSoz2M.js} +1 -1
- package/dist/{HNote-Dwbr1_V2.js → HNote-3-iGUI9U.js} +1 -1
- package/dist/{HNote-CQVkY196.mjs → HNote-BmfnGJHZ.mjs} +1 -1
- package/dist/{HPagination-DFnrZYhq.js → HPagination-C8gUshha.js} +1 -1
- package/dist/{HPagination-DwYSg0IX.mjs → HPagination-CQRz-Z4t.mjs} +15 -15
- package/dist/{HParagraph-DCTkBsye.mjs → HParagraph-BDxl9UgO.mjs} +1 -1
- package/dist/{HParagraph-BFQ0qCCP.js → HParagraph-BStWjxxd.js} +1 -1
- package/dist/{HPopup-DNzBPmHh.mjs → HPopup-Cc80agmP.mjs} +1 -1
- package/dist/{HPopup-hBOpdf7v.js → HPopup-D7DbbSxf.js} +1 -1
- package/dist/{HSpinner-DN8JhipU.mjs → HSpinner-9m6Xgu_g.mjs} +6 -6
- package/dist/{HSpinner-Zl3b9VKW.js → HSpinner-Cw0YH36D.js} +1 -1
- package/dist/{HTable-8jwoguW_.js → HTable-B_h-t7HB.js} +1 -1
- package/dist/{HTable-Ci4lTwPm.mjs → HTable-ynCYS0Ah.mjs} +1 -1
- package/dist/ar.es-XxSuE68c.mjs +57 -0
- package/dist/{bg.es-BxUPtB2r.mjs → bg.es-BJ7fu6yy.mjs} +15 -15
- package/dist/bn.es-CYlBkxc5.mjs +57 -0
- package/dist/{bs.es-Fq6ZEbY-.mjs → bs.es-yMnaKmdi.mjs} +13 -13
- package/dist/{ca.es-Bu3i72ow.mjs → ca.es-DIhlxmQc.mjs} +21 -21
- package/dist/{cs.es-CeLWs7BX.mjs → cs.es-BN8oxRXQ.mjs} +19 -19
- package/dist/da.es-DJB5lAli.mjs +57 -0
- package/dist/{de.es-Dxj10D7g.mjs → de.es-glb8GeJh.mjs} +15 -15
- package/dist/drag-and-drop.es-4ttM1tRs.js +5 -0
- package/dist/{drag-and-drop.es-CoYQRahm.mjs → drag-and-drop.es-Ckzp6XEn.mjs} +1 -1
- package/dist/{el.es-BcvYhsc8.mjs → el.es-_bBZf22h.mjs} +23 -23
- package/dist/{en.es-stDfj1fG.mjs → en.es-CV9nmQGr.mjs} +11 -11
- package/dist/es.es-CZjcWK54.mjs +57 -0
- package/dist/{et.es-Bh__rR0h.mjs → et.es-CjvQAzNF.mjs} +20 -20
- package/dist/fa.es-DykeFwDA.mjs +57 -0
- package/dist/{he.es-Bytj24fj.mjs → he.es-nF4GFhjH.mjs} +21 -21
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.d.ts +10 -10
- package/dist/hisonvue.es.js +2 -2
- package/dist/{hr.es-DjKclO4X.mjs → hr.es-QFfz660j.mjs} +15 -15
- package/dist/{hu.es-CgiNeVVu.mjs → hu.es-Ck2rE01V.mjs} +21 -21
- package/dist/index-CNLboPo7.js +153 -0
- package/dist/{index-0mmn7cpg.mjs → index-D_yqQfj7.mjs} +890 -890
- package/dist/is.es-bzprHvXI.mjs +57 -0
- package/dist/ja.es-BaiGjqZ6.mjs +57 -0
- package/dist/{ka.es-6dlQBWDo.mjs → ka.es-x9QJo_dl.mjs} +20 -20
- package/dist/ko.es-6c447eTS.mjs +57 -0
- package/dist/mn.es-BLQRG1uu.mjs +57 -0
- package/dist/{nl.es-CN5JXXxr.mjs → nl.es-bB1qWR_S.mjs} +15 -15
- package/dist/no.es-CWDVXpTf.mjs +57 -0
- package/dist/{pl.es-BJ9nIcgc.mjs → pl.es-Dzct23w9.mjs} +21 -21
- package/dist/pt-br.es-BeBuiitI.mjs +57 -0
- package/dist/pt-pt.es-BeBuiitI.mjs +57 -0
- package/dist/ro.es-DfMVJ30M.mjs +57 -0
- package/dist/{ru.es-CPzb0Fst.mjs → ru.es-Bv9UvrBe.mjs} +23 -23
- package/dist/{setButtonCssEvent-BNLo78yX.mjs → setButtonCssEvent-Cth_qAIe.mjs} +1 -1
- package/dist/{setButtonCssEvent-Dl2nV55A.js → setButtonCssEvent-Dghl_9dx.js} +1 -1
- package/dist/sk.es-CUOTpLuL.mjs +57 -0
- package/dist/{sl.es-D0fiCGIm.mjs → sl.es-DeIGgZbR.mjs} +16 -16
- package/dist/{sq.es-a8QTS1Hv.mjs → sq.es-CQJJrZHv.mjs} +17 -17
- package/dist/{sr.es-CIc0WPBO.mjs → sr.es-CKS0AkiW.mjs} +13 -13
- package/dist/sv.es-ChHQRrAe.mjs +57 -0
- package/dist/tr.es-B3v90gVv.mjs +57 -0
- package/dist/{uk.es-BvUxN5ag.mjs → uk.es-CiR4NnbN.mjs} +23 -23
- package/dist/{vi.es-C0AyhgP1.mjs → vi.es-DFDi5l7p.mjs} +26 -26
- package/dist/zh-cn.es-9cbEAuAi.mjs +67 -0
- package/dist/zh-hk.es-z0tio4jE.mjs +67 -0
- package/package.json +2 -2
- package/dist/HCalendar-BbVDcV_g.js +0 -2
- package/dist/HDrawer-BdhP3EDS.js +0 -1
- package/dist/ar.es-C08a05mp.mjs +0 -57
- package/dist/bn.es-J9yOJsGH.mjs +0 -57
- package/dist/da.es-BkbgeF4x.mjs +0 -57
- package/dist/drag-and-drop.es-DWn92Mem.js +0 -5
- package/dist/es.es-DJ9hC3M1.mjs +0 -57
- package/dist/fa.es-CyoM_QAj.mjs +0 -57
- package/dist/index-DON-Hfjr.js +0 -153
- package/dist/is.es-yRheRWhc.mjs +0 -57
- package/dist/ja.es-CALG6dhe.mjs +0 -57
- package/dist/ko.es-BU6TVPXM.mjs +0 -57
- package/dist/mn.es-CY_Brq9B.mjs +0 -57
- package/dist/no.es-BZkgoly8.mjs +0 -57
- package/dist/pt-br.es-DEhn4BON.mjs +0 -57
- package/dist/pt-pt.es-DEhn4BON.mjs +0 -57
- package/dist/ro.es-CsOras9g.mjs +0 -57
- package/dist/sk.es-D6YtHvSy.mjs +0 -57
- package/dist/sv.es-DFVxHUOu.mjs +0 -57
- package/dist/tr.es-CXIKJ2UV.mjs +0 -57
- package/dist/zh-cn.es-AODwJ7q7.mjs +0 -67
- package/dist/zh-hk.es-Bdbs8ke2.mjs +0 -67
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as M, ref as o, computed as T, onMounted as K, onBeforeUnmount as G, watch as i, nextTick as P, createElementBlock as X, openBlock as J, normalizeClass as w, createElementVNode as c, normalizeStyle as N, withKeys as D, withModifiers as H, renderSlot as
|
|
2
|
-
import { T as Y, g as Z, u as _, e as ee, t as te, a as ne, b as q, h as f, r as le, c as oe, d as ie } from "./index-
|
|
3
|
-
import { a as ae, r as se } from "./setButtonCssEvent-
|
|
1
|
+
import { defineComponent as M, ref as o, computed as T, onMounted as K, onBeforeUnmount as G, watch as i, nextTick as P, createElementBlock as X, openBlock as J, normalizeClass as w, createElementVNode as c, normalizeStyle as N, withKeys as D, withModifiers as H, renderSlot as L, createTextVNode as Q, toDisplayString as W } from "vue";
|
|
2
|
+
import { T as Y, g as Z, u as _, e as ee, t as te, a as ne, b as q, h as f, r as le, c as oe, d as ie } from "./index-D_yqQfj7.mjs";
|
|
3
|
+
import { a as ae, r as se } from "./setButtonCssEvent-Cth_qAIe.mjs";
|
|
4
4
|
import { _ as re } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const ue = {
|
|
6
6
|
/**
|
|
@@ -93,7 +93,7 @@ const ue = {
|
|
|
93
93
|
setup(t, { emit: l }) {
|
|
94
94
|
const a = t.id || Z(), C = `haccordion:${a}`, s = o(null), O = o(null), r = _(), g = o(!!t.visible), m = o(t.title ?? ""), u = o(!!t.defaultOpen), y = o(t.textAlign ?? "left"), p = o(t.animate ?? !0), b = o(t.duration ?? 500), h = o(t.easing ?? "ease"), S = o(
|
|
95
95
|
t.tabIndex !== null && t.tabIndex !== "" ? Number(t.tabIndex) : null
|
|
96
|
-
), F = T(() => g.value ? "" : "hison-display-none"), d = o([]),
|
|
96
|
+
), F = T(() => g.value ? "" : "hison-display-none"), d = o([]), B = () => {
|
|
97
97
|
d.value = ee(te(t.class) || "", r.value), ne(d.value, "col") === -1 && d.value.push("hison-col-12"), q(d.value, "size", f.componentStyle.size), q(d.value, "color", "primary");
|
|
98
98
|
}, V = T(() => ({
|
|
99
99
|
"--hacc-duration": `${b.value}ms`,
|
|
@@ -105,12 +105,12 @@ const ue = {
|
|
|
105
105
|
if (!u.value) return;
|
|
106
106
|
const n = document.activeElement, x = O.value;
|
|
107
107
|
x && n && x.contains(n) && ((R = s.value) == null || R.focus()), u.value = !1, l("close", e ?? null, v.value);
|
|
108
|
-
},
|
|
109
|
-
l("toggle", e, v.value),
|
|
108
|
+
}, E = (e) => u.value ? A(e) : I(e), U = (e) => {
|
|
109
|
+
l("toggle", e, v.value), E(e);
|
|
110
110
|
}, v = o(null), $ = () => {
|
|
111
111
|
f.component.accordionList[a] && f.component.accordionList[a].isHisonvueComponent && console.warn(`[Hisonvue] The accordion ID is at risk of being duplicated. ${a}`), le(C, () => {
|
|
112
112
|
k(), P($);
|
|
113
|
-
}), s.value && ae(s.value),
|
|
113
|
+
}), s.value && ae(s.value), B(), v.value = {
|
|
114
114
|
isHisonvueComponent: !0,
|
|
115
115
|
getId: () => a,
|
|
116
116
|
getType: () => "accordion",
|
|
@@ -121,7 +121,7 @@ const ue = {
|
|
|
121
121
|
isOpen: () => u.value,
|
|
122
122
|
open: I,
|
|
123
123
|
close: A,
|
|
124
|
-
toggle:
|
|
124
|
+
toggle: E,
|
|
125
125
|
getTitle: () => m.value,
|
|
126
126
|
setTitle: (e) => {
|
|
127
127
|
m.value = e ?? "";
|
|
@@ -158,7 +158,7 @@ const ue = {
|
|
|
158
158
|
ie(C), s.value && se(s.value), (e = f.component) != null && e.accordionList && delete f.component.accordionList[a];
|
|
159
159
|
};
|
|
160
160
|
return K($), G(k), i(r, (e) => {
|
|
161
|
-
|
|
161
|
+
B(), l("responsive-change", e);
|
|
162
162
|
}), i(() => t.visible, (e) => {
|
|
163
163
|
e !== g.value && (g.value = !!e);
|
|
164
164
|
}), i(() => t.title, (e) => {
|
|
@@ -177,7 +177,7 @@ const ue = {
|
|
|
177
177
|
}), i(() => t.tabIndex, (e) => {
|
|
178
178
|
const n = e === null || e === "" ? null : Number(e);
|
|
179
179
|
n !== S.value && (S.value = n);
|
|
180
|
-
}), i(() => t.class, () =>
|
|
180
|
+
}), i(() => t.class, () => B()), {
|
|
181
181
|
headerRef: s,
|
|
182
182
|
contentRef: O,
|
|
183
183
|
props: t,
|
|
@@ -193,7 +193,7 @@ const ue = {
|
|
|
193
193
|
onToggleClick: U,
|
|
194
194
|
open: I,
|
|
195
195
|
close: A,
|
|
196
|
-
toggle:
|
|
196
|
+
toggle: E
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
}), de = ["aria-expanded", "tabindex"], ve = { class: "hison-accordion-toggle" }, fe = ["inert"], ge = { class: "hison-accordion-panel" }, me = { class: "hison-accordion-panel-inner" };
|
|
@@ -230,12 +230,12 @@ function ye(t, l, a, C, s, O) {
|
|
|
230
230
|
class: "hison-accordion-title",
|
|
231
231
|
style: N([t.titleInlineStyle])
|
|
232
232
|
}, [
|
|
233
|
-
|
|
233
|
+
L(t.$slots, "title", {}, () => [
|
|
234
234
|
Q(W(t.title), 1)
|
|
235
235
|
])
|
|
236
236
|
], 4),
|
|
237
237
|
c("div", ve, [
|
|
238
|
-
|
|
238
|
+
L(t.$slots, "toggle", {}, () => [
|
|
239
239
|
l[3] || (l[3] = c("span", { class: "hison-dropdown-caret" }, "▾", -1))
|
|
240
240
|
])
|
|
241
241
|
])
|
|
@@ -249,7 +249,7 @@ function ye(t, l, a, C, s, O) {
|
|
|
249
249
|
}, [
|
|
250
250
|
c("div", ge, [
|
|
251
251
|
c("div", me, [
|
|
252
|
-
|
|
252
|
+
L(t.$slots, "default")
|
|
253
253
|
])
|
|
254
254
|
])
|
|
255
255
|
], 12, fe)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),l=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),l=require("./index-CNLboPo7.js"),V=require("./setButtonCssEvent-Dghl_9dx.js"),q=require("./_plugin-vue_export-helper-BHFhmbuH.js"),z={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},headerStyle:{type:[String,Object,Array],required:!1},contentStyle:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},defaultOpen:{type:Boolean,default:!1},title:{type:String,default:""},textAlign:{type:String,default:"left",validator:n=>l.TEXT_ALIGN_VALUES.includes(n)},animate:{type:Boolean,default:!0},duration:{type:Number,default:220,validator:n=>Number.isFinite(n)&&n>=0},easing:{type:String,default:"ease"},tabIndex:{type:[Number,String],default:null,validator:n=>n===null||n===""||!isNaN(+n)&&isFinite(+n)}},R=t.defineComponent({name:"HAccordion",props:z,inheritAttrs:!1,emits:["mounted","responsive-change","open","close","toggle"],setup(n,{emit:i}){const a=n.id||l.getUUID(),b=`haccordion:${a}`,s=t.ref(null),N=t.ref(null),r=l.useDevice(),v=t.ref(!!n.visible),f=t.ref(n.title??""),u=t.ref(!!n.defaultOpen),g=t.ref(n.textAlign??"left"),m=t.ref(n.animate??!0),h=t.ref(n.duration??500),y=t.ref(n.easing??"ease"),p=t.ref(n.tabIndex!==null&&n.tabIndex!==""?Number(n.tabIndex):null),B=t.computed(()=>v.value?"":"hison-display-none"),c=t.ref([]),E=()=>{c.value=l.extractResponsiveClasses(l.toClassString(n.class)||"",r.value),l.getIndexSpecificClassNameFromClassList(c.value,"col")===-1&&c.value.push("hison-col-12"),l.addComponentNameToClass(c.value,"size",l.hisonCloser.componentStyle.size),l.addComponentNameToClass(c.value,"color","primary")},L=t.computed(()=>({"--hacc-duration":`${h.value}ms`,"--hacc-easing":y.value})),x=t.computed(()=>({})),$=t.computed(()=>({textAlign:g.value})),C=e=>{u.value||(u.value,u.value=!0,i("open",e??null,d.value))},S=e=>{var O;if(!u.value)return;const o=document.activeElement,A=N.value;A&&o&&A.contains(o)&&((O=s.value)==null||O.focus()),u.value=!1,i("close",e??null,d.value)},I=e=>u.value?S(e):C(e),k=e=>{i("toggle",e,d.value),I(e)},d=t.ref(null),T=()=>{l.hisonCloser.component.accordionList[a]&&l.hisonCloser.component.accordionList[a].isHisonvueComponent&&console.warn(`[Hisonvue] The accordion ID is at risk of being duplicated. ${a}`),l.registerReloadable(b,()=>{w(),t.nextTick(T)}),s.value&&V.addButtonCssEvent(s.value),E(),d.value={isHisonvueComponent:!0,getId:()=>a,getType:()=>"accordion",isVisible:()=>v.value,setVisible:e=>{v.value=!!e},isOpen:()=>u.value,open:C,close:S,toggle:I,getTitle:()=>f.value,setTitle:e=>{f.value=e??""},getTextAlign:()=>g.value,setTextAlign:e=>{(e==="left"||e==="center"||e==="right")&&(g.value=e)},getAnimate:()=>m.value,setAnimate:e=>{m.value=!!e},getDuration:()=>h.value,setDuration:e=>{const o=Number(e);Number.isFinite(o)&&o>=0&&(h.value=o)},getEasing:()=>y.value,setEasing:e=>{typeof e=="string"&&(y.value=e)},getTabIndex:()=>p.value,setTabIndex:e=>{p.value=e!=null?Number(e):null},focus:()=>{var e;(e=s.value)==null||e.focus()},reload:()=>l.reloadHisonComponent(b)},l.hisonCloser.component.accordionList[a]=d.value,i("mounted",d.value)},w=()=>{var e;l.unregisterReloadable(b),s.value&&V.removeButtonCssEvent(s.value),(e=l.hisonCloser.component)!=null&&e.accordionList&&delete l.hisonCloser.component.accordionList[a]};return t.onMounted(T),t.onBeforeUnmount(w),t.watch(r,e=>{E(),i("responsive-change",e)}),t.watch(()=>n.visible,e=>{e!==v.value&&(v.value=!!e)}),t.watch(()=>n.title,e=>{const o=e??"";o!==f.value&&(f.value=o)}),t.watch(()=>n.defaultOpen,e=>e?C(null):S(null)),t.watch(()=>n.textAlign,e=>{(e==="left"||e==="center"||e==="right")&&e!==g.value&&(g.value=e)}),t.watch(()=>n.animate,e=>{const o=!!e;o!==m.value&&(m.value=o)}),t.watch(()=>n.duration,e=>{const o=Number(e);Number.isFinite(o)&&o>=0&&o!==h.value&&(h.value=o)}),t.watch(()=>n.easing,e=>{typeof e=="string"&&e!==y.value&&(y.value=e)}),t.watch(()=>n.tabIndex,e=>{const o=e===null||e===""?null:Number(e);o!==p.value&&(p.value=o)}),t.watch(()=>n.class,()=>E()),{headerRef:s,contentRef:N,props:n,visibleClass:B,responsiveClassList:c,isOpen:u,title:f,headerBoxStyle:x,titleInlineStyle:$,rootInlineStyle:L,animate:m,tabIndex:p,onToggleClick:k,open:C,close:S,toggle:I}}}),H=["aria-expanded","tabindex"],D={class:"hison-accordion-toggle"},j=["inert"],F={class:"hison-accordion-panel"},M={class:"hison-accordion-panel-inner"};function U(n,i,a,b,s,N){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...n.responsiveClassList,n.visibleClass])},[t.createElementVNode("div",{class:t.normalizeClass(["hison-accordion",n.isOpen?"hison-open":"",n.animate?"":"hison-no-anim"]),style:t.normalizeStyle([n.rootInlineStyle,n.props.style])},[t.createElementVNode("div",{ref:"headerRef",class:"hison-accordion-header",style:t.normalizeStyle([n.headerBoxStyle,n.props.headerStyle]),role:"button","aria-expanded":n.isOpen?"true":"false",tabindex:n.tabIndex??void 0,onClick:i[0]||(i[0]=r=>n.onToggleClick(r)),onKeydown:[i[1]||(i[1]=t.withKeys(t.withModifiers(r=>n.onToggleClick(r),["prevent"]),["enter"])),i[2]||(i[2]=t.withKeys(t.withModifiers(r=>n.onToggleClick(r),["prevent"]),["space"]))]},[t.createElementVNode("div",{class:"hison-accordion-title",style:t.normalizeStyle([n.titleInlineStyle])},[t.renderSlot(n.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(n.title),1)])],4),t.createElementVNode("div",D,[t.renderSlot(n.$slots,"toggle",{},()=>[i[3]||(i[3]=t.createElementVNode("span",{class:"hison-dropdown-caret"},"▾",-1))])])],44,H),t.createElementVNode("div",{ref:"contentRef",class:"hison-accordion-content",style:t.normalizeStyle(n.props.contentStyle),role:"region",inert:!n.isOpen||void 0},[t.createElementVNode("div",F,[t.createElementVNode("div",M,[t.renderSlot(n.$slots,"default")])])],12,j)],6)],2)}const K=q._export_sfc(R,[["render",U]]);exports.default=K;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),s=require("./index-CNLboPo7.js"),T=require("./setButtonCssEvent-Dghl_9dx.js"),H=require("./_plugin-vue_export-helper-BHFhmbuH.js"),P={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},baggieVisible:{type:Boolean,default:!0},zIndex:{type:Number,default:1e3},position:{type:String,default:s.ScreenPosition.topRight,validator:e=>s.SCREEN_POSITION_VALUES.includes(e)},text:{type:String,required:!1},backgroundType:{type:String,default:s.BackgroundType.filled,validator:e=>s.BACKGROUND_TYPE_VALUES.includes(e)},border:{type:Boolean,default:!0},shape:{type:String,default:"rounded",validator:e=>["square","rounded","circle"].includes(e)},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)},buttonEnabled:{type:Boolean,default:!1}},x=t.defineComponent({name:"HBaggie",props:P,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(e,{emit:a}){const l=e.id||s.getUUID(),h=`hbaggie:${l}`,B=s.useDevice(),w=t.ref(null),i=t.ref(null),g=t.ref(e.visible),b=t.ref(e.baggieVisible),r=t.ref(e.zIndex??1e3),c=t.ref(e.position),v=t.ref(e.text??""),f=t.ref(e.border??!0),m=t.ref(e.backgroundType||s.BackgroundType.filled),d=t.ref(e.shape||"rounded"),y=t.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),u=t.ref(e.buttonEnabled??!1),V=t.computed(()=>g.value?"":"hison-display-none"),M=t.computed(()=>b.value?"":"hison-display-none"),$=t.computed(()=>f.value?"hison-border":""),q=t.computed(()=>{switch(m.value){case s.BackgroundType.transparent:return"hison-bg-transparent";case s.BackgroundType.empty:return"hison-bg-empty";default:return"hison-bg-filled"}}),z=t.computed(()=>d.value==="circle"?"hison-baggie-shape-circle":d.value==="square"?"hison-baggie-shape-square":"hison-baggie-shape-rounded"),C=t.ref([]),S=()=>{C.value=s.extractResponsiveClasses(s.toClassString(e.class)||"",B.value),s.addComponentNameToClass(C.value,"size",s.hisonCloser.componentStyle.size),s.addComponentNameToClass(C.value,"color","primary")},A=t.computed(()=>`hison-baggie-pos-${c.value}`),R=t.computed(()=>({zIndex:r.value})),K=t.computed(()=>({zIndex:r.value+1})),k=(n=!0)=>{const o=i.value;o&&(T.removeButtonCssEvent(o),n&&u.value&&T.addButtonCssEvent(o))},I=n=>{u.value&&a("click",n,t.unref(p))},L=()=>{u.value&&I(new MouseEvent("click"))},p=t.ref(null),E=()=>{s.hisonCloser.component.baggieList[l]&&s.hisonCloser.component.baggieList[l].isHisonvueComponent&&console.warn(`[Hisonvue] The baggie ID is at risk of being duplicated. ${l}`),s.registerReloadable(h,()=>{N(),t.nextTick(E)}),S(),t.nextTick(()=>k(!0)),p.value={isHisonvueComponent:!0,getId:()=>l,getType:()=>"baggie",isVisible:()=>g.value,setVisible:n=>{g.value=n},isBaggieVisible:()=>b.value,setBaggieVisible:n=>{b.value=n},getZIndex:()=>r.value,setZIndex:n=>{r.value=n},getPosition:()=>c.value,setPosition:n=>{c.value=n},getText:()=>v.value,setText:n=>{v.value=n},isBorder:()=>f.value,setBorder:n=>{f.value=n},getBackgroundType:()=>m.value,setBackgroundType:n=>{m.value=n},getShape:()=>d.value,setShape:n=>{d.value=n},getTabIndex:()=>y.value,setTabIndex:n=>{y.value=n!=null?Number(n):null},isButtonEnabled:()=>u.value,setButtonEnabled:n=>{u.value=n,t.nextTick(()=>k(!0))},reload:()=>s.reloadHisonComponent(h)},s.hisonCloser.component.baggieList[l]=p.value,a("mounted",p.value)},N=()=>{s.unregisterReloadable(h);const n=i.value;n&&T.removeButtonCssEvent(n),delete s.hisonCloser.component.baggieList[l]};return t.onMounted(E),t.onBeforeUnmount(N),t.watch(B,n=>{S(),a("responsive-change",n)}),t.watch(()=>e.visible,n=>{n!==g.value&&(g.value=!!n)}),t.watch(()=>e.baggieVisible,n=>{n!==b.value&&(b.value=!!n,t.nextTick(()=>k(!0)))}),t.watch(()=>e.zIndex,n=>{const o=Number(n);Number.isFinite(o)&&o!==r.value&&(r.value=o)}),t.watch(()=>e.position,n=>{typeof n=="string"&&n!==c.value&&(c.value=n)}),t.watch(()=>e.text,n=>{const o=n??"";o!==v.value&&(v.value=o)}),t.watch(()=>e.border,n=>{const o=!!n;o!==f.value&&(f.value=o)}),t.watch(()=>e.backgroundType,n=>{n&&n!==m.value&&(m.value=n)}),t.watch(()=>e.shape,n=>{(n==="square"||n==="rounded"||n==="circle")&&n!==d.value&&(d.value=n)}),t.watch(()=>e.tabIndex,n=>{const o=n===null||n===""?null:Number(n);o!==y.value&&(y.value=o)}),t.watch(()=>e.buttonEnabled,n=>{const o=!!n;o!==u.value&&(u.value=o,t.nextTick(()=>k(!0)))}),t.watch(()=>e.class,()=>S()),{id:l,props:e,anchorRef:w,baggieRef:i,text:v,visibleClass:V,baggieVisibleClass:M,responsiveClassList:C,backgroundTypeClass:q,borderClass:$,shapeClass:z,positionClass:A,anchorStyle:R,badgeStyle:K,baggieMethods:t.computed(()=>t.unref(p)),tabIndex:y,buttonEnabled:u,onClick:I,onKeyActivate:L}}}),O={class:"hison-baggie-target"},U=["tabindex"],D={key:1,class:"hison-baggie-text"};function j(e,a,l,h,B,w){return t.openBlock(),t.createElementBlock("span",{ref:"anchorRef",class:t.normalizeClass(["hison-baggie-anchor",e.visibleClass,...e.responsiveClassList]),style:t.normalizeStyle(e.anchorStyle),onMousedown:a[3]||(a[3]=i=>e.$emit("mousedown",i,e.baggieMethods)),onMouseup:a[4]||(a[4]=i=>e.$emit("mouseup",i,e.baggieMethods)),onMouseover:a[5]||(a[5]=i=>e.$emit("mouseover",i,e.baggieMethods)),onMouseout:a[6]||(a[6]=i=>e.$emit("mouseout",i,e.baggieMethods))},[t.createElementVNode("span",O,[t.renderSlot(e.$slots,"default")]),e.baggieVisible?(t.openBlock(),t.createElementBlock("div",{key:0,ref:"baggieRef",class:t.normalizeClass(["hison-baggie",e.positionClass,e.backgroundTypeClass,e.borderClass,e.shapeClass,e.baggieVisibleClass,e.buttonEnabled?"hison-baggie-button":null]),style:t.normalizeStyle([e.badgeStyle,e.props.style]),role:"status",tabindex:e.tabIndex??void 0,onClick:a[0]||(a[0]=(...i)=>e.onClick&&e.onClick(...i)),onKeydown:[a[1]||(a[1]=t.withKeys(t.withModifiers((...i)=>e.onKeyActivate&&e.onKeyActivate(...i),["prevent"]),["enter"])),a[2]||(a[2]=t.withKeys(t.withModifiers((...i)=>e.onKeyActivate&&e.onKeyActivate(...i),["prevent"]),["space"]))]},[e.$slots.badge?t.renderSlot(e.$slots,"badge",{key:0}):(t.openBlock(),t.createElementBlock("span",D,t.toDisplayString(e.text),1))],46,U)):t.createCommentVNode("",!0)],38)}const F=H._export_sfc(x,[["render",j]]);exports.default=F;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as W, ref as o, computed as u, onMounted as X, onBeforeUnmount as _, watch as i, nextTick as C, unref as z, createElementBlock as V, openBlock as $, normalizeStyle as L, normalizeClass as q, createElementVNode as ee, createCommentVNode as se, renderSlot as K, withKeys as H, withModifiers as P, toDisplayString as te } from "vue";
|
|
2
|
-
import { B as ne, f as T, S as ae, i as oe, g as ie, u as le, e as ue, t as re, b as U, h as S, r as de, c as ge, d as be } from "./index-
|
|
3
|
-
import { r as D, a as ve } from "./setButtonCssEvent-
|
|
2
|
+
import { B as ne, f as T, S as ae, i as oe, g as ie, u as le, e as ue, t as re, b as U, h as S, r as de, c as ge, d as be } from "./index-D_yqQfj7.mjs";
|
|
3
|
+
import { r as D, a as ve } from "./setButtonCssEvent-Cth_qAIe.mjs";
|
|
4
4
|
import { _ as ce } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const fe = {
|
|
6
6
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as pe, useSlots as Ce, ref as o, computed as v, onMounted as ke, onBeforeUnmount as Be, watch as s, unref as Ie, nextTick as Me, resolveComponent as Se, createElementBlock as c, openBlock as
|
|
2
|
-
import { B as Pe, f as x, g as De, u as Le, j as le, t as Y, e as He, a as $e, b as ie, h as S, r as Ae, c as Ee } from "./index-
|
|
3
|
-
import Oe from "./HButton-
|
|
4
|
-
import { _ as
|
|
5
|
-
const
|
|
1
|
+
import { defineComponent as pe, useSlots as Ce, ref as o, computed as v, onMounted as ke, onBeforeUnmount as Be, watch as s, unref as Ie, nextTick as Me, resolveComponent as Se, createElementBlock as c, openBlock as u, normalizeClass as g, createElementVNode as M, withModifiers as Ne, normalizeStyle as ee, createCommentVNode as X, Fragment as te, renderList as ne, createBlock as Te, resolveDynamicComponent as we, renderSlot as oe, createVNode as ae, withCtx as se } from "vue";
|
|
2
|
+
import { B as Pe, f as x, g as De, u as Le, j as le, t as Y, e as He, a as $e, b as ie, h as S, r as Ae, c as Ee } from "./index-D_yqQfj7.mjs";
|
|
3
|
+
import Oe from "./HButton-BK-ZbuUQ.mjs";
|
|
4
|
+
import { _ as Fe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
|
+
const Re = {
|
|
6
6
|
/**
|
|
7
7
|
* Unique identifier for the banner.
|
|
8
8
|
* - Access runtime methods via `hison.component.getBanner(id)`
|
|
@@ -110,10 +110,10 @@ const Ve = {
|
|
|
110
110
|
* Whether to pause autoplay when mouse hovering on banner.
|
|
111
111
|
*/
|
|
112
112
|
pauseOnHover: { type: Boolean, default: !0 }
|
|
113
|
-
},
|
|
113
|
+
}, Ve = pe({
|
|
114
114
|
name: "HBanner",
|
|
115
115
|
components: { HButton: Oe },
|
|
116
|
-
props:
|
|
116
|
+
props: Re,
|
|
117
117
|
emits: [
|
|
118
118
|
"mounted",
|
|
119
119
|
"responsive-change",
|
|
@@ -124,7 +124,7 @@ const Ve = {
|
|
|
124
124
|
"autoplay-stop"
|
|
125
125
|
],
|
|
126
126
|
setup(t, { emit: n }) {
|
|
127
|
-
const d = t.id ? t.id : De(), j = `hbanner:${d}`, q = Le(), N = Ce(), l = o(null), a = o(null), h = o(t.visible),
|
|
127
|
+
const d = t.id ? t.id : De(), j = `hbanner:${d}`, q = Le(), N = Ce(), l = o(null), a = o(null), h = o(t.visible), ue = v(() => h.value ? "" : "hison-display-none"), T = o(t.border ?? !1), re = v(() => T.value ? "hison-border" : ""), w = o(t.backgroundType), ve = v(() => {
|
|
128
128
|
switch (w.value) {
|
|
129
129
|
case x.empty:
|
|
130
130
|
return "hison-bg-empty";
|
|
@@ -138,8 +138,8 @@ const Ve = {
|
|
|
138
138
|
), $ = o(t.indicatorClickable), A = o(t.autoIntervalMs), E = o(t.autoDirection), b = o(t.loop), p = o(t.pauseOnHover), O = o(t.transitionMs);
|
|
139
139
|
let f;
|
|
140
140
|
const i = o(0), C = o(t.initialIndex ?? 0), J = v(() => {
|
|
141
|
-
var
|
|
142
|
-
return ((
|
|
141
|
+
var r;
|
|
142
|
+
return ((r = N.default) == null ? void 0 : r.call(N)) ?? [];
|
|
143
143
|
}), y = v(() => J.value.length), m = o([]), G = () => {
|
|
144
144
|
m.value = He(Y(t.class) || "", q.value), $e(m.value, "col") === -1 && m.value.push("hison-col-12"), ie(m.value, "size", S.componentStyle.size), ie(m.value, "color", "primary");
|
|
145
145
|
}, de = v(() => {
|
|
@@ -151,34 +151,34 @@ const Ve = {
|
|
|
151
151
|
width: "100%",
|
|
152
152
|
transform: `translateX(${-i.value * 100}%)`,
|
|
153
153
|
transition: `transform ${Math.max(0, O.value)}ms ease`
|
|
154
|
-
})),
|
|
154
|
+
})), F = (e) => {
|
|
155
155
|
if (y.value <= 0) return 0;
|
|
156
156
|
if (b.value) {
|
|
157
|
-
const
|
|
158
|
-
return (e %
|
|
157
|
+
const r = y.value;
|
|
158
|
+
return (e % r + r) % r;
|
|
159
159
|
}
|
|
160
160
|
return Math.min(Math.max(0, e), y.value - 1);
|
|
161
161
|
}, k = (e) => {
|
|
162
|
-
const
|
|
163
|
-
|
|
164
|
-
},
|
|
162
|
+
const r = i.value, K = F(e);
|
|
163
|
+
r !== K && (i.value = K, n("change", K, l.value));
|
|
164
|
+
}, R = () => {
|
|
165
165
|
if (!b.value && Q.value) return;
|
|
166
|
-
const e =
|
|
166
|
+
const e = F(i.value - 1);
|
|
167
167
|
i.value = e, n("prev", e, l.value), n("change", e, l.value);
|
|
168
|
-
},
|
|
168
|
+
}, V = () => {
|
|
169
169
|
if (!b.value && W.value) return;
|
|
170
|
-
const e =
|
|
170
|
+
const e = F(i.value + 1);
|
|
171
171
|
i.value = e, n("next", e, l.value), n("change", e, l.value);
|
|
172
|
-
},
|
|
172
|
+
}, z = () => {
|
|
173
173
|
f && (window.clearInterval(f), f = void 0, n("autoplay-stop", l.value));
|
|
174
174
|
}, B = () => {
|
|
175
|
-
|
|
175
|
+
z();
|
|
176
176
|
const e = Number(A.value);
|
|
177
177
|
!Number.isFinite(e) || e < 100 || y.value <= 1 || (f = window.setInterval(() => {
|
|
178
|
-
E.value === "prev" ?
|
|
178
|
+
E.value === "prev" ? R() : V();
|
|
179
179
|
}, e), n("autoplay-start", l.value));
|
|
180
180
|
}, he = () => {
|
|
181
|
-
p.value &&
|
|
181
|
+
p.value && z();
|
|
182
182
|
}, ye = () => {
|
|
183
183
|
p.value && B();
|
|
184
184
|
}, U = o(null), I = o(0), fe = (e) => {
|
|
@@ -186,7 +186,7 @@ const Ve = {
|
|
|
186
186
|
}, me = (e) => {
|
|
187
187
|
U.value == null || !e.touches || e.touches.length !== 1 || (I.value = e.touches[0].clientX - U.value);
|
|
188
188
|
}, ge = () => {
|
|
189
|
-
Math.abs(I.value) > 40 && (I.value > 0 ?
|
|
189
|
+
Math.abs(I.value) > 40 && (I.value > 0 ? R() : V()), U.value = null, I.value = 0;
|
|
190
190
|
}, Z = () => {
|
|
191
191
|
S.component.bannerList[d] && S.component.bannerList[d].isHisonvueComponent && console.warn(`[Hisonvue] The banner ID is at risk of being duplicated. ${d}`), Ae(j, () => {
|
|
192
192
|
_(), Me(Z);
|
|
@@ -216,10 +216,10 @@ const Ve = {
|
|
|
216
216
|
},
|
|
217
217
|
getSlideCount: () => y.value,
|
|
218
218
|
next: () => {
|
|
219
|
-
|
|
219
|
+
V();
|
|
220
220
|
},
|
|
221
221
|
prev: () => {
|
|
222
|
-
|
|
222
|
+
R();
|
|
223
223
|
},
|
|
224
224
|
goTo: (e) => {
|
|
225
225
|
k(e);
|
|
@@ -264,16 +264,16 @@ const Ve = {
|
|
|
264
264
|
B();
|
|
265
265
|
},
|
|
266
266
|
stopAuto: () => {
|
|
267
|
-
|
|
267
|
+
z();
|
|
268
268
|
},
|
|
269
269
|
getTransitionMs: () => O.value,
|
|
270
270
|
setTransitionMs: (e) => {
|
|
271
271
|
O.value = Math.max(0, Number(e) || 0);
|
|
272
272
|
},
|
|
273
273
|
reload: () => Ee(j)
|
|
274
|
-
}, S.component.bannerList[d] = l.value, n("mounted", l.value), i.value =
|
|
274
|
+
}, S.component.bannerList[d] = l.value, n("mounted", l.value), i.value = F(C.value), B();
|
|
275
275
|
}, _ = () => {
|
|
276
|
-
|
|
276
|
+
z(), delete S.component.bannerList[d];
|
|
277
277
|
};
|
|
278
278
|
return ke(Z), Be(_), s(q, (e) => {
|
|
279
279
|
G(), n("responsive-change", e);
|
|
@@ -282,16 +282,16 @@ const Ve = {
|
|
|
282
282
|
}), s(() => t.indicatorClickable, (e) => $.value = e), s(() => t.transitionMs, (e) => O.value = e), s(() => t.autoIntervalMs, (e) => {
|
|
283
283
|
A.value = e, f && B();
|
|
284
284
|
}), s(() => t.autoDirection, (e) => E.value = e), s(() => t.loop, (e) => b.value = e), s(() => t.pauseOnHover, (e) => p.value = e), s(() => t.initialIndex, (e) => {
|
|
285
|
-
const
|
|
286
|
-
C.value =
|
|
285
|
+
const r = Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : 0;
|
|
286
|
+
C.value = r, k(r);
|
|
287
287
|
}), s(() => t.class, () => {
|
|
288
288
|
G();
|
|
289
289
|
}), {
|
|
290
290
|
id: d,
|
|
291
291
|
props: t,
|
|
292
292
|
bannerMethods: v(() => Ie(l)),
|
|
293
|
-
visibleClass:
|
|
294
|
-
borderClass:
|
|
293
|
+
visibleClass: ue,
|
|
294
|
+
borderClass: re,
|
|
295
295
|
backgroundTypeClass: ve,
|
|
296
296
|
responsiveClassList: m,
|
|
297
297
|
buttonClassList: de,
|
|
@@ -307,8 +307,8 @@ const Ve = {
|
|
|
307
307
|
isNextDisabled: W,
|
|
308
308
|
trackStyle: be,
|
|
309
309
|
trackRef: a,
|
|
310
|
-
goPrev:
|
|
311
|
-
goNext:
|
|
310
|
+
goPrev: R,
|
|
311
|
+
goNext: V,
|
|
312
312
|
goTo: k,
|
|
313
313
|
onMouseEnter: he,
|
|
314
314
|
onMouseLeave: ye,
|
|
@@ -317,13 +317,13 @@ const Ve = {
|
|
|
317
317
|
onTouchEnd: ge
|
|
318
318
|
};
|
|
319
319
|
}
|
|
320
|
-
}),
|
|
320
|
+
}), ze = { class: "hison-banner-viewport" }, Ue = {
|
|
321
321
|
key: 0,
|
|
322
322
|
class: "hison-banner-nav"
|
|
323
323
|
}, Xe = { class: "hison-banner-nav-prev" }, je = { key: 0 }, qe = { key: 1 }, Ge = { class: "hison-banner-nav-next" }, Ke = { key: 0 }, Ye = { key: 1 }, xe = ["title", "onClick"];
|
|
324
324
|
function Je(t, n, d, j, q, N) {
|
|
325
325
|
const l = Se("HButton");
|
|
326
|
-
return
|
|
326
|
+
return u(), c("div", {
|
|
327
327
|
class: g([
|
|
328
328
|
"hison-wrapper",
|
|
329
329
|
...t.responsiveClassList,
|
|
@@ -343,21 +343,21 @@ function Je(t, n, d, j, q, N) {
|
|
|
343
343
|
onTouchmove: n[3] || (n[3] = Ne((...a) => t.onTouchMove && t.onTouchMove(...a), ["prevent"])),
|
|
344
344
|
onTouchendPassive: n[4] || (n[4] = (...a) => t.onTouchEnd && t.onTouchEnd(...a))
|
|
345
345
|
}, [
|
|
346
|
-
M("div",
|
|
346
|
+
M("div", ze, [
|
|
347
347
|
M("div", {
|
|
348
348
|
ref: "trackRef",
|
|
349
349
|
class: "hison-banner-track",
|
|
350
350
|
style: ee(t.trackStyle)
|
|
351
351
|
}, [
|
|
352
|
-
(
|
|
352
|
+
(u(!0), c(te, null, ne(t.slideNodes, (a, h) => (u(), c("div", {
|
|
353
353
|
key: h,
|
|
354
354
|
class: "hison-banner-slide"
|
|
355
355
|
}, [
|
|
356
|
-
(
|
|
356
|
+
(u(), Te(we(a)))
|
|
357
357
|
]))), 128))
|
|
358
358
|
], 4)
|
|
359
359
|
]),
|
|
360
|
-
t.showNavButtons && t.slideCount > 1 ? (
|
|
360
|
+
t.showNavButtons && t.slideCount > 1 ? (u(), c("div", Ue, [
|
|
361
361
|
M("div", Xe, [
|
|
362
362
|
oe(t.$slots, "prev-button", {
|
|
363
363
|
prev: t.goPrev,
|
|
@@ -372,7 +372,7 @@ function Je(t, n, d, j, q, N) {
|
|
|
372
372
|
onClick: t.goPrev
|
|
373
373
|
}, {
|
|
374
374
|
icon: se(() => [
|
|
375
|
-
t.navButtonStyle === "chevron" ? (
|
|
375
|
+
t.navButtonStyle === "chevron" ? (u(), c("span", je, "〈")) : t.navButtonStyle === "triangle" ? (u(), c("span", qe, "◀")) : X("", !0)
|
|
376
376
|
]),
|
|
377
377
|
_: 1
|
|
378
378
|
}, 8, ["id", "disable", "class", "onClick"])
|
|
@@ -392,18 +392,18 @@ function Je(t, n, d, j, q, N) {
|
|
|
392
392
|
onClick: t.goNext
|
|
393
393
|
}, {
|
|
394
394
|
icon: se(() => [
|
|
395
|
-
t.navButtonStyle === "chevron" ? (
|
|
395
|
+
t.navButtonStyle === "chevron" ? (u(), c("span", Ke, "〉")) : t.navButtonStyle === "triangle" ? (u(), c("span", Ye, "▶")) : X("", !0)
|
|
396
396
|
]),
|
|
397
397
|
_: 1
|
|
398
398
|
}, 8, ["id", "disable", "class", "onClick"])
|
|
399
399
|
])
|
|
400
400
|
])
|
|
401
401
|
])) : X("", !0),
|
|
402
|
-
t.showIndicators && t.slideCount > 0 ? (
|
|
402
|
+
t.showIndicators && t.slideCount > 0 ? (u(), c("div", {
|
|
403
403
|
key: 1,
|
|
404
404
|
class: g(["hison-banner-indicators", [t.indicatorsPositionClass]])
|
|
405
405
|
}, [
|
|
406
|
-
(
|
|
406
|
+
(u(!0), c(te, null, ne(t.slideCount, (a) => (u(), c("button", {
|
|
407
407
|
key: a,
|
|
408
408
|
class: g(["hison-banner-indicator", { active: t.currentIndex === a - 1, "no-pointer": !t.indicatorClickable }]),
|
|
409
409
|
title: `Go to ${a}`,
|
|
@@ -414,7 +414,7 @@ function Je(t, n, d, j, q, N) {
|
|
|
414
414
|
], 38)
|
|
415
415
|
], 2);
|
|
416
416
|
}
|
|
417
|
-
const et = /* @__PURE__ */
|
|
417
|
+
const et = /* @__PURE__ */ Fe(Ve, [["render", Je]]);
|
|
418
418
|
export {
|
|
419
419
|
et as default
|
|
420
420
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CNLboPo7.js"),ne=require("./HButton--7fP_vis.js"),oe=require("./_plugin-vue_export-helper-BHFhmbuH.js"),ae={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},backgroundType:{type:String,default:o.BackgroundType.transparent,validator:n=>o.BACKGROUND_TYPE_VALUES.includes(n)},border:{type:Boolean,default:!1},initialIndex:{type:Number,default:0},transitionMs:{type:Number,default:600},navButtonStyle:{type:String,default:"chevron",validator:n=>n==="chevron"||n==="triangle"},showNavButtons:{type:Boolean,default:!0},showIndicators:{type:Boolean,default:!0},indicatorsPosition:{type:String,default:"bottom",validator:n=>n==="bottom"||n==="overlay"},indicatorClickable:{type:Boolean,default:!0},autoIntervalMs:{type:Number,default:0},autoDirection:{type:String,default:"next",validator:n=>n==="next"||n==="prev"},loop:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!0}},se=e.defineComponent({name:"HBanner",components:{HButton:ne.default},props:ae,emits:["mounted","responsive-change","change","next","prev","autoplay-start","autoplay-stop"],setup(n,{emit:a}){const u=n.id?n.id:o.getUUID(),A=`hbanner:${u}`,z=o.useDevice(),g=e.useSlots(),l=e.ref(null),s=e.ref(null),d=e.ref(n.visible),j=e.computed(()=>d.value?"":"hison-display-none"),k=e.ref(n.border??!1),G=e.computed(()=>k.value?"hison-border":""),B=e.ref(n.backgroundType),K=e.computed(()=>{switch(B.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),w=e.ref(n.navButtonStyle),N=e.ref(n.showNavButtons),S=e.ref(n.showIndicators),I=e.ref(n.indicatorsPosition),Y=e.computed(()=>I.value==="overlay"?"hison-banner-indicators-overlay":"hison-banner-indicators-bottom"),M=e.ref(n.indicatorClickable),T=e.ref(n.autoIntervalMs),E=e.ref(n.autoDirection),c=e.ref(n.loop),m=e.ref(n.pauseOnHover),P=e.ref(n.transitionMs);let h;const r=e.ref(0),f=e.ref(n.initialIndex??0),F=e.computed(()=>{var i;return((i=g.default)==null?void 0:i.call(g))??[]}),v=e.computed(()=>F.value.length),b=e.ref([]),O=()=>{b.value=o.extractResponsiveClasses(o.toClassString(n.class)||"",z.value),o.getIndexSpecificClassNameFromClassList(b.value,"col")===-1&&b.value.push("hison-col-12"),o.addComponentNameToClass(b.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(b.value,"color","primary")},J=e.computed(()=>{const t=[];return t.push(...o.extractPrefixedClasses(o.toClassString(n.class)||"","size")),t.push(...o.extractPrefixedClasses(o.toClassString(n.class)||"","color")),t}),R=e.computed(()=>!c.value&&r.value<=0),U=e.computed(()=>!c.value&&r.value>=Math.max(0,v.value-1)),Q=e.computed(()=>({display:"flex",flexDirection:"row",width:"100%",transform:`translateX(${-r.value*100}%)`,transition:`transform ${Math.max(0,P.value)}ms ease`})),L=t=>{if(v.value<=0)return 0;if(c.value){const i=v.value;return(t%i+i)%i}return Math.min(Math.max(0,t),v.value-1)},y=t=>{const i=r.value,q=L(t);i!==q&&(r.value=q,a("change",q,l.value))},D=()=>{if(!c.value&&R.value)return;const t=L(r.value-1);r.value=t,a("prev",t,l.value),a("change",t,l.value)},H=()=>{if(!c.value&&U.value)return;const t=L(r.value+1);r.value=t,a("next",t,l.value),a("change",t,l.value)},V=()=>{h&&(window.clearInterval(h),h=void 0,a("autoplay-stop",l.value))},p=()=>{V();const t=Number(T.value);!Number.isFinite(t)||t<100||v.value<=1||(h=window.setInterval(()=>{E.value==="prev"?D():H()},t),a("autoplay-start",l.value))},W=()=>{m.value&&V()},Z=()=>{m.value&&p()},$=e.ref(null),C=e.ref(0),_=t=>{!t.touches||t.touches.length!==1||($.value=t.touches[0].clientX,C.value=0)},ee=t=>{$.value==null||!t.touches||t.touches.length!==1||(C.value=t.touches[0].clientX-$.value)},te=()=>{Math.abs(C.value)>40&&(C.value>0?D():H()),$.value=null,C.value=0},X=()=>{o.hisonCloser.component.bannerList[u]&&o.hisonCloser.component.bannerList[u].isHisonvueComponent&&console.warn(`[Hisonvue] The banner ID is at risk of being duplicated. ${u}`),o.registerReloadable(A,()=>{x(),e.nextTick(X)}),O(),l.value={isHisonvueComponent:!0,getId:()=>u,getType:()=>"banner",isVisible:()=>d.value,setVisible:t=>{d.value=t},isBorder:()=>k.value,setBorder:t=>{k.value=t},getBackgroundType:()=>B.value,setBackgroundType:t=>{B.value=t},getCurrentIndex:()=>r.value,setCurrentIndex:t=>{y(t)},getInitialIndex:()=>f.value,setInitialIndex:t=>{f.value=Number.isFinite(t)?Math.max(0,Math.trunc(t)):0,y(f.value)},getSlideCount:()=>v.value,next:()=>{H()},prev:()=>{D()},goTo:t=>{y(t)},getNavButtonStyle:()=>w.value,setNavButtonStyle:t=>{w.value=t},isShowNavButtons:()=>N.value,setShowNavButtons:t=>{N.value=t},isShowIndicators:()=>S.value,setShowIndicators:t=>{S.value=t},getIndicatorsPosition:()=>I.value,setIndicatorsPosition:t=>{I.value=t},isIndicatorClickable:()=>M.value,setIndicatorClickable:t=>{M.value=t},getAutoInterval:()=>T.value,setAutoInterval:t=>{T.value=Number(t),h&&p()},getAutoDirection:()=>E.value,setAutoDirection:t=>{E.value=t},isLoop:()=>c.value,setLoop:t=>{c.value=t},isPauseOnHover:()=>m.value,setPauseOnHover:t=>{m.value=t},startAuto:()=>{p()},stopAuto:()=>{V()},getTransitionMs:()=>P.value,setTransitionMs:t=>{P.value=Math.max(0,Number(t)||0)},reload:()=>o.reloadHisonComponent(A)},o.hisonCloser.component.bannerList[u]=l.value,a("mounted",l.value),r.value=L(f.value),p()},x=()=>{V(),delete o.hisonCloser.component.bannerList[u]};return e.onMounted(X),e.onBeforeUnmount(x),e.watch(z,t=>{O(),a("responsive-change",t)}),e.watch(()=>n.visible,t=>d.value=t),e.watch(()=>n.border,t=>k.value=!!t),e.watch(()=>n.backgroundType,t=>B.value=t),e.watch(()=>n.navButtonStyle,t=>w.value=t),e.watch(()=>n.showNavButtons,t=>N.value=t),e.watch(()=>n.showIndicators,t=>S.value=t),e.watch(()=>n.indicatorsPosition,t=>{I.value=t}),e.watch(()=>n.indicatorClickable,t=>M.value=t),e.watch(()=>n.transitionMs,t=>P.value=t),e.watch(()=>n.autoIntervalMs,t=>{T.value=t,h&&p()}),e.watch(()=>n.autoDirection,t=>E.value=t),e.watch(()=>n.loop,t=>c.value=t),e.watch(()=>n.pauseOnHover,t=>m.value=t),e.watch(()=>n.initialIndex,t=>{const i=Number.isFinite(t)?Math.max(0,Math.trunc(t)):0;f.value=i,y(i)}),e.watch(()=>n.class,()=>{O()}),{id:u,props:n,bannerMethods:e.computed(()=>e.unref(l)),visibleClass:j,borderClass:G,backgroundTypeClass:K,responsiveClassList:b,buttonClassList:J,slideNodes:F,slideCount:v,currentIndex:r,navButtonStyle:w,showNavButtons:N,showIndicators:S,indicatorsPositionClass:Y,indicatorClickable:M,isPrevDisabled:R,isNextDisabled:U,trackStyle:Q,trackRef:s,goPrev:D,goNext:H,goTo:y,onMouseEnter:W,onMouseLeave:Z,onTouchStart:_,onTouchMove:ee,onTouchEnd:te}}}),le={class:"hison-banner-viewport"},re={key:0,class:"hison-banner-nav"},ie={class:"hison-banner-nav-prev"},ue={key:0},ce={key:1},de={class:"hison-banner-nav-next"},ve={key:0},he={key:1},be=["title","onClick"];function me(n,a,u,A,z,g){const l=e.resolveComponent("HButton");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["hison-wrapper",...n.responsiveClassList,n.visibleClass])},[e.createElementVNode("div",{class:e.normalizeClass(["hison-banner",n.borderClass,n.backgroundTypeClass]),style:e.normalizeStyle(n.props.style),onMouseenter:a[0]||(a[0]=(...s)=>n.onMouseEnter&&n.onMouseEnter(...s)),onMouseleave:a[1]||(a[1]=(...s)=>n.onMouseLeave&&n.onMouseLeave(...s)),onTouchstartPassive:a[2]||(a[2]=(...s)=>n.onTouchStart&&n.onTouchStart(...s)),onTouchmove:a[3]||(a[3]=e.withModifiers((...s)=>n.onTouchMove&&n.onTouchMove(...s),["prevent"])),onTouchendPassive:a[4]||(a[4]=(...s)=>n.onTouchEnd&&n.onTouchEnd(...s))},[e.createElementVNode("div",le,[e.createElementVNode("div",{ref:"trackRef",class:"hison-banner-track",style:e.normalizeStyle(n.trackStyle)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.slideNodes,(s,d)=>(e.openBlock(),e.createElementBlock("div",{key:d,class:"hison-banner-slide"},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(s)))]))),128))],4)]),n.showNavButtons&&n.slideCount>1?(e.openBlock(),e.createElementBlock("div",re,[e.createElementVNode("div",ie,[e.renderSlot(n.$slots,"prev-button",{prev:n.goPrev,disabled:n.isPrevDisabled},()=>[e.createVNode(l,{id:`hison_banner_prev_button_${n.id}`,disable:n.isPrevDisabled,class:e.normalizeClass(["hison-col-12",...n.buttonClassList]),"background-type":"transparent",border:!1,onClick:n.goPrev},{icon:e.withCtx(()=>[n.navButtonStyle==="chevron"?(e.openBlock(),e.createElementBlock("span",ue,"〈")):n.navButtonStyle==="triangle"?(e.openBlock(),e.createElementBlock("span",ce,"◀")):e.createCommentVNode("",!0)]),_:1},8,["id","disable","class","onClick"])])]),e.createElementVNode("div",de,[e.renderSlot(n.$slots,"next-button",{next:n.goNext,disabled:n.isNextDisabled},()=>[e.createVNode(l,{id:`hison_banner_next_button_${n.id}`,disable:n.isNextDisabled,class:e.normalizeClass(["hison-col-12",...n.buttonClassList]),"background-type":"transparent",border:!1,onClick:n.goNext},{icon:e.withCtx(()=>[n.navButtonStyle==="chevron"?(e.openBlock(),e.createElementBlock("span",ve,"〉")):n.navButtonStyle==="triangle"?(e.openBlock(),e.createElementBlock("span",he,"▶")):e.createCommentVNode("",!0)]),_:1},8,["id","disable","class","onClick"])])])])):e.createCommentVNode("",!0),n.showIndicators&&n.slideCount>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["hison-banner-indicators",[n.indicatorsPositionClass]])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.slideCount,s=>(e.openBlock(),e.createElementBlock("button",{key:s,class:e.normalizeClass(["hison-banner-indicator",{active:n.currentIndex===s-1,"no-pointer":!n.indicatorClickable}]),title:`Go to ${s}`,type:"button",onClick:d=>n.indicatorClickable?n.goTo(s-1):null}," ● ",10,be))),128))],2)):e.createCommentVNode("",!0)],38)],2)}const fe=oe._export_sfc(se,[["render",me]]);exports.default=fe;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),A=require("./setButtonCssEvent-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),A=require("./setButtonCssEvent-Dghl_9dx.js"),o=require("./index-CNLboPo7.js"),F=require("./_plugin-vue_export-helper-BHFhmbuH.js"),G={id:{type:String,required:!1},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},disable:{type:Boolean,default:!1},title:{type:String,required:!1},text:{type:String,required:!1},clickInterval:{type:Number,default:0},border:{type:Boolean,default:!0},backgroundType:{type:String,default:o.BackgroundType.filled,validator:e=>o.BACKGROUND_TYPE_VALUES.includes(e)},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)}},K=t.defineComponent({name:"HButton",props:G,inheritAttrs:!1,emits:["mounted","responsive-change","click","mousedown","mouseup","mouseover","mouseout"],setup(e,{emit:a}){var L;const r=t.ref(null),c=t.ref(null),i=e.id?e.id:o.getUUID(),h=`hbutton:${i}`,s=o.useDevice(),u=t.useSlots(),k=t.ref(!1),v=t.ref(e.clickInterval||0),T=t.ref(0),f=t.ref(e.visible),b=t.ref(e.disable),m=t.ref(e.title||""),q=t.computed(()=>f.value?"":"hison-display-none"),E=t.computed(()=>b.value?"hison-disable":""),y=t.ref(e.border??!1),H=t.computed(()=>y.value?"hison-border":""),g=t.ref(e.backgroundType||o.BackgroundType.filled),O=t.computed(()=>{switch(g.value){case o.BackgroundType.empty:return"hison-bg-empty";case o.BackgroundType.transparent:return"hison-bg-transparent";default:return"hison-bg-filled"}}),d=t.ref(e.text||""),N=t.ref(!1),p=t.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),R=n=>!n||!n.length?!1:n.some(l=>l.type===t.Comment?!1:l.type===t.Text?!/^\s*$/.test(String(l.children??"")):!0),I=((L=u.default)==null?void 0:L.call(u))??[],V=I.length>0&&I.every(n=>n.type===t.Text);if(!u.label&&V){const n=I.map(l=>String(l.children??"")).join("").trim();d.value=n,N.value=!0}const z=t.computed(()=>{var n;return((n=u.default)==null?void 0:n.call(u))??[]}),P=t.computed(()=>R(z.value)),C=t.computed(()=>u.label?!0:N.value?!1:P.value),U=t.computed(()=>{if(!!u.icon&&!C.value&&!d.value)return e.title||"button"}),B=t.ref([]),w=()=>{B.value=o.extractResponsiveClasses(o.toClassString(e.class)||"",s.value),o.addComponentNameToClass(B.value,"size",o.hisonCloser.componentStyle.size),o.addComponentNameToClass(B.value,"color","primary")},j=async n=>{const l=Date.now();if(!k.value&&!(v.value>0&&l-T.value<v.value)){T.value=l,k.value=!0;try{const M=a("click",n,c.value),x=Array.isArray(M)?M:[];await Promise.all(x.filter(S=>S&&typeof S.then=="function").map(S=>S))}finally{k.value=!1}}},$=()=>{o.hisonCloser.component.buttonList[i]&&o.hisonCloser.component.buttonList[i].isHisonvueComponent&&console.warn(`[Hisonvue] The button ID is at risk of being duplicated. ${i}`),o.registerReloadable(h,()=>{D(),t.nextTick($)}),r.value&&A.addButtonCssEvent(r.value),w(),c.value={isHisonvueComponent:!0,getId:()=>i,getType:()=>"button",getText:()=>C.value?"":d.value,getTitle:()=>m.value,isVisible:()=>f.value,isDisable:()=>b.value,setText:n=>{C.value||(d.value=n)},setTitle:n=>{m.value=n},setVisible:n=>{f.value=n},setDisable:n=>{b.value=n},isBorder:()=>y.value,setBorder:n=>{y.value=n},getBackgroundType:()=>g.value,setBackgroundType:n=>{g.value=n},unlock:()=>{k.value=!1},getClickInterval:()=>v.value,setClickInterval:n=>{v.value=n,T.value=0},getTabIndex:()=>p.value,setTabIndex:n=>{p.value=n!=null?Number(n):null},focus:()=>{var n;(n=r.value)==null||n.focus()},reload:()=>o.reloadHisonComponent(h)},o.hisonCloser.component.buttonList[i]=c.value,a("mounted",c.value)},D=()=>{o.unregisterReloadable(h),delete o.hisonCloser.component.buttonList[i],r.value&&A.removeButtonCssEvent(r.value)};return t.onMounted($),t.onBeforeUnmount(D),t.watch(s,()=>{w(),a("responsive-change",s.value)}),t.watch(()=>e.visible,n=>{const l=!!n;l!==f.value&&(f.value=l)}),t.watch(()=>e.disable,n=>{const l=!!n;l!==b.value&&(b.value=l)}),t.watch(()=>e.title,n=>{const l=n??"";l!==m.value&&(m.value=l)}),t.watch(()=>e.border,n=>{const l=!!n;l!==y.value&&(y.value=l)}),t.watch(()=>e.backgroundType,n=>{n&&n!==g.value&&(g.value=n)}),t.watch(()=>e.text,n=>{if(!C.value){const l=n??"";l!==d.value&&(d.value=l)}}),t.watch(()=>e.tabIndex,n=>{const l=n===null||n===""?null:Number(n);l!==p.value&&(p.value=l)}),t.watch(()=>e.clickInterval,n=>{const l=Number(n)||0;l!==v.value&&(v.value=l,T.value=0)}),t.watch(()=>e.class,()=>{w()}),{buttonRef:r,buttonMethods:t.computed(()=>t.unref(c)),props:e,visibleClass:q,disable:b,disableClass:E,borderClass:H,backgroundTypeClass:O,title:m,responsiveClassList:B,hasLabelSlot:C,computedAriaLabel:U,internalText:d,tabIndex:p,onClick:j}}}),Y=["disabled","title","tabindex","aria-label"],J={key:2,class:"hison-button-text"};function Q(e,a,r,c,i,h){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["hison-wrapper",...e.responsiveClassList,e.visibleClass])},[t.createElementVNode("button",{ref:"buttonRef",class:t.normalizeClass(["hison-button",e.disableClass,e.borderClass,e.backgroundTypeClass]),style:t.normalizeStyle(e.props.style),disabled:e.disable,title:e.title||void 0,tabindex:e.tabIndex??void 0,onClick:a[0]||(a[0]=(...s)=>e.onClick&&e.onClick(...s)),onMousedown:a[1]||(a[1]=s=>e.$emit("mousedown",s,e.buttonMethods)),onMouseup:a[2]||(a[2]=s=>e.$emit("mouseup",s,e.buttonMethods)),onMouseover:a[3]||(a[3]=s=>e.$emit("mouseover",s,e.buttonMethods)),onMouseout:a[4]||(a[4]=s=>e.$emit("mouseout",s,e.buttonMethods)),"aria-label":e.computedAriaLabel},[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):t.createCommentVNode("",!0),e.hasLabelSlot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots.label?t.renderSlot(e.$slots,"label",{key:0}):t.renderSlot(e.$slots,"default",{key:1})],64)):(t.openBlock(),t.createElementBlock("span",J,t.toDisplayString(e.internalText),1))],46,Y)],2)}const W=F._export_sfc(K,[["render",Q]]);exports.default=W;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as a, useSlots as _, computed as i, Text as U, onMounted as ee, onBeforeUnmount as te, watch as o, unref as le, Comment as ne, nextTick as ae, createElementBlock as A, openBlock as M, normalizeClass as V, createElementVNode as se, normalizeStyle as oe, renderSlot as w, createCommentVNode as ue, Fragment as ie, toDisplayString as re } from "vue";
|
|
2
|
-
import { a as de, r as ve } from "./setButtonCssEvent-
|
|
3
|
-
import { B as be, f as N, g as ce, u as fe, e as me, t as ye, b as z, h, r as ge, c as Ce, d as ke } from "./index-
|
|
2
|
+
import { a as de, r as ve } from "./setButtonCssEvent-Cth_qAIe.mjs";
|
|
3
|
+
import { B as be, f as N, g as ce, u as fe, e as me, t as ye, b as z, h, r as ge, c as Ce, d as ke } from "./index-D_yqQfj7.mjs";
|
|
4
4
|
import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
5
5
|
const he = {
|
|
6
6
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { resolveComponent as ae, createElementBlock as m, openBlock as v, normalizeClass as V, createVNode as We, createCommentVNode as D, createSlots as Le, withCtx as T, renderSlot as k, createTextVNode as x, toDisplayString as E, createElementVNode as H, Transition as Ye, createBlock as G, normalizeProps as ze, mergeProps as Re, normalizeStyle as z, Fragment as L, renderList as N, resolveDynamicComponent as at, TransitionGroup as ft, withKeys as nt, withModifiers as oe, defineComponent as wt, ref as b, useSlots as Dt, computed as Ie, onMounted as gt, onBeforeUnmount as pt, watch as p, nextTick as Je, guardReactiveProps as bt } from "vue";
|
|
2
|
-
import { H as Ze, k as kt, g as Ct, u as _t, l as P, n as ue, m as de, e as Tt, t as Mt, a as St, b as Qe, h as C, o as Ve, p as $e, q as R, s as Ae, v as je, r as Et, c as Ht, d as Ot } from "./index-
|
|
2
|
+
import { H as Ze, k as kt, g as Ct, u as _t, l as P, n as ue, m as de, e as Tt, t as Mt, a as St, b as Qe, h as C, o as Ve, p as $e, q as R, s as Ae, v as je, r as Et, c as Ht, d as Ot } from "./index-D_yqQfj7.mjs";
|
|
3
3
|
import { _ as Wt } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
4
4
|
var Vt = Object.defineProperty, At = (t, e, s) => e in t ? Vt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s, Z = (t, e, s) => At(t, typeof e != "symbol" ? e + "" : e, s);
|
|
5
5
|
const jt = (t, e, s) => {
|
|
@@ -285,7 +285,7 @@ class Ft {
|
|
|
285
285
|
}
|
|
286
286
|
// ====================================================================
|
|
287
287
|
}
|
|
288
|
-
const Lt =
|
|
288
|
+
const Lt = 24 * 60;
|
|
289
289
|
class Yt {
|
|
290
290
|
constructor(e) {
|
|
291
291
|
Z(this, "_vuecal", null), Z(this, "selectCell", (s = !1, l, r) => {
|
|
@@ -302,7 +302,7 @@ class Yt {
|
|
|
302
302
|
}), this._vuecal = e;
|
|
303
303
|
}
|
|
304
304
|
}
|
|
305
|
-
const Nt = 2, Pe =
|
|
305
|
+
const Nt = 2, Pe = 24 * 60;
|
|
306
306
|
let M, S, xe;
|
|
307
307
|
class Bt {
|
|
308
308
|
constructor(e, s) {
|
|
@@ -1734,7 +1734,7 @@ function Xi(t, e, s, l, r, i) {
|
|
|
1734
1734
|
]))
|
|
1735
1735
|
], 10, ki);
|
|
1736
1736
|
}
|
|
1737
|
-
const Oe =
|
|
1737
|
+
const Oe = 24 * 60, Fe = {
|
|
1738
1738
|
weekDays: Array(7).fill(""),
|
|
1739
1739
|
weekDaysShort: [],
|
|
1740
1740
|
months: Array(12).fill(""),
|
|
@@ -1945,14 +1945,14 @@ const Oe = 1440, Fe = {
|
|
|
1945
1945
|
this.texts = Object.assign({}, Fe, t), this.utils.date.updateTexts(this.texts);
|
|
1946
1946
|
return;
|
|
1947
1947
|
}
|
|
1948
|
-
const e = await jt(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("./ar.es-
|
|
1948
|
+
const e = await jt(/* @__PURE__ */ Object.assign({ "./i18n/ar.json": () => import("./ar.es-XxSuE68c.mjs"), "./i18n/bg.json": () => import("./bg.es-BJ7fu6yy.mjs"), "./i18n/bn.json": () => import("./bn.es-CYlBkxc5.mjs"), "./i18n/bs.json": () => import("./bs.es-yMnaKmdi.mjs"), "./i18n/ca.json": () => import("./ca.es-DIhlxmQc.mjs"), "./i18n/cs.json": () => import("./cs.es-BN8oxRXQ.mjs"), "./i18n/da.json": () => import("./da.es-DJB5lAli.mjs"), "./i18n/de.json": () => import("./de.es-glb8GeJh.mjs"), "./i18n/el.json": () => import("./el.es-_bBZf22h.mjs"), "./i18n/en.json": () => import("./en.es-CV9nmQGr.mjs"), "./i18n/es.json": () => import("./es.es-CZjcWK54.mjs"), "./i18n/et.json": () => import("./et.es-CjvQAzNF.mjs"), "./i18n/fa.json": () => import("./fa.es-DykeFwDA.mjs"), "./i18n/fi.json": () => import("./fi.es-Bl7Pp7AO.mjs"), "./i18n/fr.json": () => import("./fr.es-CNKVhFfO.mjs"), "./i18n/he.json": () => import("./he.es-nF4GFhjH.mjs"), "./i18n/hr.json": () => import("./hr.es-QFfz660j.mjs"), "./i18n/hu.json": () => import("./hu.es-Ck2rE01V.mjs"), "./i18n/id.json": () => import("./id.es-Je7FEUJ5.mjs"), "./i18n/is.json": () => import("./is.es-bzprHvXI.mjs"), "./i18n/it.json": () => import("./it.es-CJtfqmNS.mjs"), "./i18n/ja.json": () => import("./ja.es-BaiGjqZ6.mjs"), "./i18n/ka.json": () => import("./ka.es-x9QJo_dl.mjs"), "./i18n/ko.json": () => import("./ko.es-6c447eTS.mjs"), "./i18n/lt.json": () => import("./lt.es-2twYdvmJ.mjs"), "./i18n/mn.json": () => import("./mn.es-BLQRG1uu.mjs"), "./i18n/nl.json": () => import("./nl.es-bB1qWR_S.mjs"), "./i18n/no.json": () => import("./no.es-CWDVXpTf.mjs"), "./i18n/pl.json": () => import("./pl.es-Dzct23w9.mjs"), "./i18n/pt-br.json": () => import("./pt-br.es-BeBuiitI.mjs"), "./i18n/pt-pt.json": () => import("./pt-pt.es-BeBuiitI.mjs"), "./i18n/ro.json": () => import("./ro.es-DfMVJ30M.mjs"), "./i18n/ru.json": () => import("./ru.es-Bv9UvrBe.mjs"), "./i18n/sk.json": () => import("./sk.es-CUOTpLuL.mjs"), "./i18n/sl.json": () => import("./sl.es-DeIGgZbR.mjs"), "./i18n/sq.json": () => import("./sq.es-CQJJrZHv.mjs"), "./i18n/sr.json": () => import("./sr.es-CKS0AkiW.mjs"), "./i18n/sv.json": () => import("./sv.es-ChHQRrAe.mjs"), "./i18n/tr.json": () => import("./tr.es-B3v90gVv.mjs"), "./i18n/uk.json": () => import("./uk.es-CiR4NnbN.mjs"), "./i18n/vi.json": () => import("./vi.es-DFDi5l7p.mjs"), "./i18n/zh-cn.json": () => import("./zh-cn.es-9cbEAuAi.mjs"), "./i18n/zh-hk.json": () => import("./zh-hk.es-z0tio4jE.mjs") }), `./i18n/${t}.json`, 3);
|
|
1949
1949
|
this.texts = Object.assign({}, Fe, e), this.utils.date.updateTexts(this.texts);
|
|
1950
1950
|
},
|
|
1951
1951
|
/**
|
|
1952
1952
|
* Only import drag and drop module on demand to keep a small library weight.
|
|
1953
1953
|
*/
|
|
1954
1954
|
loadDragAndDrop() {
|
|
1955
|
-
import("./drag-and-drop.es-
|
|
1955
|
+
import("./drag-and-drop.es-Ckzp6XEn.mjs").then((t) => {
|
|
1956
1956
|
const { DragAndDrop: e } = t;
|
|
1957
1957
|
this.modules.dnd = new e(this);
|
|
1958
1958
|
}).catch(() => console.warn("Vue Cal: Missing drag & drop module."));
|