hisonvue 1.1.22 → 1.1.23
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/LICENSE +21 -21
- package/README.md +260 -260
- package/dist/{HAccordion-CNWAodMp.mjs → HAccordion-BFl1mLFn.mjs} +2 -2
- package/dist/{HAccordion-CKbaRrfY.js → HAccordion-D4VuY7dP.js} +1 -1
- package/dist/{HBaggie-BQYZO1MF.js → HBaggie-B2-hUbeO.js} +1 -1
- package/dist/{HBaggie-C-OS7n2D.mjs → HBaggie-Cu0cqy_0.mjs} +2 -2
- package/dist/{HBanner-8AQVAGPP.js → HBanner-Bbp_22he.js} +1 -1
- package/dist/{HBanner-D0ImN6h1.mjs → HBanner-CJhgh8Av.mjs} +2 -2
- package/dist/{HButton-CuoH95_k.mjs → HButton-BJy7qJxO.mjs} +2 -2
- package/dist/{HButton-C1AtcoQd.js → HButton-CnI66WaY.js} +1 -1
- package/dist/{HCalendar-DFXWXkci.js → HCalendar-Birc716P.js} +2 -2
- package/dist/{HCalendar-CnuUn3Xk.mjs → HCalendar-CkzhtP-a.mjs} +2 -2
- package/dist/{HCaption-Di8ePmqg.mjs → HCaption-CvfOGjLH.mjs} +1 -1
- package/dist/{HCaption-BaelSNHR.js → HCaption-o7zHNPFi.js} +1 -1
- package/dist/{HChart-xM2KDiJi.mjs → HChart-9HpLcSAF.mjs} +1 -1
- package/dist/{HChart-DKfoM5dM.js → HChart-CRNhurrL.js} +1 -1
- package/dist/{HDrawer-A3BpOuup.js → HDrawer-C4C1soyr.js} +1 -1
- package/dist/{HDrawer-Vt4JA6pk.mjs → HDrawer-_GV5YZAt.mjs} +1 -1
- package/dist/{HDropdown-Dj7h-JPP.js → HDropdown-CZOjJzGI.js} +1 -1
- package/dist/{HDropdown-BBEH646p.mjs → HDropdown-rOSEF1le.mjs} +2 -2
- package/dist/{HFileset-B9EmgNi1.js → HFileset-BWdpsZxK.js} +1 -1
- package/dist/{HFileset-oi7P1lcc.mjs → HFileset-DEtMGoeG.mjs} +1 -1
- package/dist/{HGap-Bp1hRvbT.mjs → HGap-Bu7F233f.mjs} +1 -1
- package/dist/{HGap-Dy_H_-in.js → HGap-DzddYH3m.js} +1 -1
- package/dist/{HGrid-Bc13aqjL.mjs → HGrid--_YRxc-I.mjs} +1 -1
- package/dist/{HGrid-DDbU5kIr.js → HGrid-Bt_iy9Kt.js} +1 -1
- package/dist/{HImagebox-8Uwvm5U0.mjs → HImagebox-BOE4P4WI.mjs} +1 -1
- package/dist/{HImagebox-BVeQuB4p.js → HImagebox-BSjnoCEL.js} +1 -1
- package/dist/HInput-BPqc5Yki.js +1 -0
- package/dist/{HInput-DoSKCROI.mjs → HInput-WrTJ-7Za.mjs} +364 -451
- package/dist/HInputGroup-B9TLmdJA.mjs +320 -0
- package/dist/HInputGroup-CmYq67bE.js +1 -0
- package/dist/{HLabel-BAbaNhJP.js → HLabel-BOD2RCZp.js} +1 -1
- package/dist/{HLabel-DQVACpDP.mjs → HLabel-D5wM-IkN.mjs} +2 -2
- package/dist/{HLayout-BoHgIQcJ.mjs → HLayout-B5lrXA5M.mjs} +1 -1
- package/dist/{HLayout-CgaYkiuH.js → HLayout-ddBZkvt_.js} +1 -1
- package/dist/{HList-BROYxKwn.js → HList-CAsiBzwq.js} +1 -1
- package/dist/{HList-BQEDGW7_.mjs → HList-qvvMg1GY.mjs} +2 -2
- package/dist/{HModal-DTqm3PfL.js → HModal-CK9wkc73.js} +1 -1
- package/dist/{HModal-GpwcBz5c.mjs → HModal-DxuxiUAp.mjs} +1 -1
- package/dist/{HNote-Dv8mltb0.mjs → HNote-8-eRuRxV.mjs} +1 -1
- package/dist/{HNote-BotCfjhk.js → HNote-DAiqR0NK.js} +1 -1
- package/dist/{HPagination-DyqohdbC.js → HPagination-D2EbHt09.js} +1 -1
- package/dist/{HPagination-DG0I3Orn.mjs → HPagination-DSfxM1dp.mjs} +2 -2
- package/dist/{HParagraph-dWlO5RLM.mjs → HParagraph-BwXjwyuQ.mjs} +1 -1
- package/dist/{HParagraph-BheX7M-W.js → HParagraph-CBsf7TXw.js} +1 -1
- package/dist/{HPopup-BrkB_lUB.mjs → HPopup-CFt35psB.mjs} +1 -1
- package/dist/{HPopup-BcGomDSy.js → HPopup-DF9ffRS8.js} +1 -1
- package/dist/{HSpinner-CjjGcQJD.js → HSpinner-CUBK5bDY.js} +1 -1
- package/dist/{HSpinner-D6VNpQLM.mjs → HSpinner-DYOnQbZ_.mjs} +1 -1
- package/dist/{HTable-D2HYTuO9.mjs → HTable-CTqwvXER.mjs} +1 -1
- package/dist/{HTable-BdNtBsjD.js → HTable-Y-8ga-98.js} +1 -1
- package/dist/hisonvue.cjs.js +1 -1
- package/dist/hisonvue.css +1 -1
- package/dist/hisonvue.d.ts +97 -64
- package/dist/hisonvue.es.js +2 -2
- package/dist/{index-DcB16odB.js → index-B6cKtmm6.js} +3 -3
- package/dist/{index-CGr5-mvg.mjs → index-HfC1PNxb.mjs} +5 -7
- package/dist/{setButtonCssEvent-T2QV1cDz.mjs → setButtonCssEvent-DKQg_9AF.mjs} +1 -1
- package/dist/{setButtonCssEvent-CTLQPvWj.js → setButtonCssEvent-fK8lE3Ve.js} +1 -1
- package/nuxt/module.mjs +40 -40
- package/nuxt/plugin.mjs +21 -21
- package/nuxt/warn-filter.mjs +41 -41
- package/package.json +56 -56
- package/dist/HInput-DHK28wmp.js +0 -1
- package/dist/HInputGroup-DSUZqea5.mjs +0 -281
- package/dist/HInputGroup-gD-E8vgq.js +0 -1
|
@@ -2979,7 +2979,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2979
2979
|
for (var O = 0; O < p.length; O++) N[O] = ne.utils.deepCopyObject(p[O], x);
|
|
2980
2980
|
} else for (var T in N = {}, x.push({ source: p, copy: N }), p) p.hasOwnProperty(T) && (N[T] = ne.utils.deepCopyObject(p[T], x));
|
|
2981
2981
|
return N;
|
|
2982
|
-
} }), Pe(this, "shield", { isHison: !0,
|
|
2982
|
+
} }), Pe(this, "shield", { isHison: !0, excute: function(p) {
|
|
2983
2983
|
if (!p) throw new Error("Invalid argument: 'hison' is required.");
|
|
2984
2984
|
if (!p.shield.isHison) throw new Error("Invalid argument: 'hison' must be an instance of Hison.");
|
|
2985
2985
|
var x, S, N = function(O) {
|
|
@@ -3316,8 +3316,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
3316
3316
|
return ne.utils.getEncodeBase64(d);
|
|
3317
3317
|
}, deepCopyObject: function(d, p) {
|
|
3318
3318
|
return ne.utils.deepCopyObject(d, p);
|
|
3319
|
-
} }, shield: { isHison: !0,
|
|
3320
|
-
ne.shield.
|
|
3319
|
+
} }, shield: { isHison: !0, excute: function(d) {
|
|
3320
|
+
ne.shield.excute(d);
|
|
3321
3321
|
} }, data: ne.data, link: ne.link };
|
|
3322
3322
|
};
|
|
3323
3323
|
return ht(), o;
|
|
@@ -7310,9 +7310,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7310
7310
|
v._status.mouseX = 0, v._status.mouseY = 0, Ve.stopScrolling(v), v._status.isDragging && (v._status.isDragging = !1), v._status.isHeaderDragging && (v._status.isHeaderDragging = !1);
|
|
7311
7311
|
}, document.removeEventListener("mouseup", v.documentEvent.mouseup), document.addEventListener("mouseup", v.documentEvent.mouseup), v.documentEvent.keydown = function(w) {
|
|
7312
7312
|
if (v._status.activeGrid && !v._status.activeGridEditor) {
|
|
7313
|
-
var A = v._status.activeGrid;
|
|
7314
|
-
if (!A) return;
|
|
7315
|
-
var M = A.data.id;
|
|
7313
|
+
var A = v._status.activeGrid, M = A.data.id;
|
|
7316
7314
|
if (A.events.onKeydownGrid(w) === !1) return w.stopPropagation(), void w.preventDefault();
|
|
7317
7315
|
if (w.ctrlKey || w.metaKey) switch (w.key) {
|
|
7318
7316
|
case "z":
|
|
@@ -20142,7 +20140,7 @@ const Ta = zs("pc"), ry = () => rd(Ta), zg = () => {
|
|
|
20142
20140
|
return te.componentStyle.invertColor;
|
|
20143
20141
|
}
|
|
20144
20142
|
}, t.component = {}, t.component.getAccordion = (o) => te.component.accordionList[o], t.component.getBaggie = (o) => te.component.baggieList[o], t.component.getBanner = (o) => te.component.bannerList[o], t.component.getButton = (o) => te.component.buttonList[o], t.component.getCalendar = (o) => te.component.calendarList[o], t.component.getCaption = (o) => te.component.captionList[o], t.component.getChart = (o) => te.component.chartList[o], t.component.getDrawer = (o) => te.component.drawerList[o], t.component.getDropdown = (o) => te.component.dropdownList[o], t.component.getGap = (o) => te.component.gapList[o], t.component.getFileset = (o) => te.component.filesetList[o], t.component.getGrid = (o) => te.grid.getGrid(o), t.component.getImagebox = (o) => te.component.imageboxList[o], t.component.getInput = (o) => te.component.inputList[o], t.component.getInputGroup = (o) => te.component.inputGroupList[o], t.component.getLabel = (o) => te.component.labelList[o], t.component.getLayout = (o) => te.component.layoutList[o], t.component.getList = (o) => te.component.listList[o], t.component.getModal = (o) => te.component.modalList[o], t.component.getNote = (o) => te.note.getNote(o), t.component.getPagination = (o) => te.component.paginationList[o], t.component.getParagraph = (o) => te.component.paragraphList[o], t.component.getPopup = (o) => te.component.popupList[o], t.component.getSpinner = (o) => te.component.spinnerList[o], t.component.getTable = (o) => te.component.tableList[o];
|
|
20145
|
-
}, Gg = Bt(() => import("./HAccordion-
|
|
20143
|
+
}, Gg = Bt(() => import("./HAccordion-BFl1mLFn.mjs"), "HAccordion"), jg = Bt(() => import("./HBaggie-Cu0cqy_0.mjs"), "HBaggie"), Wg = Bt(() => import("./HBanner-CJhgh8Av.mjs"), "HBanner"), qg = Bt(() => import("./HButton-BJy7qJxO.mjs"), "HButton"), $g = Bt(() => import("./HCalendar-CkzhtP-a.mjs"), "HCalendar"), Yg = Bt(() => import("./HCaption-CvfOGjLH.mjs"), "HCaption"), Kg = Bt(() => import("./HChart-9HpLcSAF.mjs"), "HChart"), Xg = Bt(() => import("./HDrawer-_GV5YZAt.mjs"), "HDrawer"), Jg = Bt(() => import("./HDropdown-rOSEF1le.mjs"), "HDropdown"), Zg = Bt(() => import("./HFileset-DEtMGoeG.mjs"), "HFileset"), Qg = Bt(() => import("./HGap-Bu7F233f.mjs"), "HGap"), ep = Bt(() => import("./HGrid--_YRxc-I.mjs"), "HGrid"), tp = Bt(() => import("./HImagebox-BOE4P4WI.mjs"), "HImagebox"), np = Bt(() => import("./HInput-WrTJ-7Za.mjs"), "HInput"), op = Bt(() => import("./HInputGroup-B9TLmdJA.mjs"), "HInputGroup"), rp = Bt(() => import("./HLabel-D5wM-IkN.mjs"), "HLabel"), ip = Bt(() => import("./HLayout-B5lrXA5M.mjs"), "HLayout"), ap = Bt(() => import("./HList-qvvMg1GY.mjs"), "HList"), lp = Bt(() => import("./HModal-DxuxiUAp.mjs"), "HModal"), sp = Bt(() => import("./HNote-8-eRuRxV.mjs"), "HNote"), cp = Bt(() => import("./HPagination-DSfxM1dp.mjs"), "HPagination"), dp = Bt(() => import("./HParagraph-BwXjwyuQ.mjs"), "HParagraph"), up = Bt(() => import("./HPopup-CFt35psB.mjs"), "HPopup"), fp = Bt(() => import("./HSpinner-DYOnQbZ_.mjs"), "HSpinner"), hp = Bt(() => import("./HTable-CTqwvXER.mjs"), "HTable"), gn = sn.createHison(), iy = {
|
|
20146
20144
|
install(t, e) {
|
|
20147
20145
|
const n = Ps();
|
|
20148
20146
|
e ? Object.keys(n).forEach((o) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as n } from "./index-
|
|
1
|
+
import { h as n } from "./index-HfC1PNxb.mjs";
|
|
2
2
|
const o = /* @__PURE__ */ new WeakMap(), r = /* @__PURE__ */ new WeakSet(), u = (t) => {
|
|
3
3
|
const e = t.currentTarget;
|
|
4
4
|
if (n.event.cssEvent.button_onBeforeFocus(t) === !1) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const o=require("./index-
|
|
1
|
+
"use strict";const o=require("./index-B6cKtmm6.js"),n=new WeakMap,r=new WeakSet,u=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeFocus(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-focus"),o.hisonCloser.event.cssEvent.button_onAfterFocus(t)},a=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeBlur(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-focus"),e.classList.remove("hison-button-on-active");const s=n.get(e);s&&(clearTimeout(s),n.delete(e)),o.hisonCloser.event.cssEvent.button_onAfterBlur(t)},c=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeClick(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover","hison-button-on-focus"),e.classList.add("hison-button-on-active");const s=n.get(e);s&&clearTimeout(s);const l=window.setTimeout(()=>{e.classList.remove("hison-button-on-active"),document.activeElement===e&&e.classList.add("hison-button-on-focus"),o.hisonCloser.event.cssEvent.button_onAfterClick(t),n.delete(e)},100);n.set(e,l)},i=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeMouseover(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterMouseover(t)},v=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeMouseout(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterMouseout(t)},f=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeTouchstart(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.add("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterTouchstart(t)},d=t=>{const e=t.currentTarget;if(o.hisonCloser.event.cssEvent.button_onBeforeTouchend(t)===!1){t.stopPropagation(),t.preventDefault();return}e.classList.remove("hison-button-on-mouseover"),o.hisonCloser.event.cssEvent.button_onAfterTouchend(t)},h=t=>{r.has(t)||(r.add(t),t.addEventListener("click",c,{capture:!0}),t.addEventListener("focus",u),t.addEventListener("blur",a),t.addEventListener("mouseenter",i),t.addEventListener("mouseleave",v),t.addEventListener("touchstart",f,{passive:!1,capture:!0}),t.addEventListener("touchend",d,{passive:!1,capture:!0}))},E=t=>{if(!r.has(t))return;r.delete(t),t.removeEventListener("click",c,{capture:!0}),t.removeEventListener("focus",u),t.removeEventListener("blur",a),t.removeEventListener("mouseenter",i),t.removeEventListener("mouseleave",v),t.removeEventListener("touchstart",f,{capture:!0}),t.removeEventListener("touchend",d,{capture:!0});const e=n.get(t);e&&(clearTimeout(e),n.delete(t))};exports.addButtonCssEvent=h;exports.removeButtonCssEvent=E;
|
package/nuxt/module.mjs
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
//nuxt/module.mjs
|
|
2
|
-
import { defineNuxtModule, addPlugin, createResolver, addTypeTemplate } from '@nuxt/kit'
|
|
3
|
-
import { readFileSync } from 'fs'
|
|
4
|
-
import { fileURLToPath } from 'url'
|
|
5
|
-
import { dirname, resolve } from 'path'
|
|
6
|
-
|
|
7
|
-
export default defineNuxtModule({
|
|
8
|
-
meta: {
|
|
9
|
-
name: 'hisonvue',
|
|
10
|
-
configKey: 'hisonvue'
|
|
11
|
-
},
|
|
12
|
-
defaults: {
|
|
13
|
-
autoInstall: true
|
|
14
|
-
},
|
|
15
|
-
setup(options, nuxt) {
|
|
16
|
-
const resolver = createResolver(import.meta.url)
|
|
17
|
-
/*
|
|
18
|
-
const hasUserHisonvuePlugin = (nuxt.options.plugins || []).some((p) => {
|
|
19
|
-
const src = typeof p === 'string' ? p : p.src
|
|
20
|
-
return src && /hisonvue/i.test(src)
|
|
21
|
-
})
|
|
22
|
-
if (!hasUserHisonvuePlugin && options.autoInstall !== false) {
|
|
23
|
-
addPlugin(resolver.resolve('./plugin.mjs'))
|
|
24
|
-
}
|
|
25
|
-
*/
|
|
26
|
-
addPlugin({ src: resolver.resolve('./warn-filter.mjs'), mode: 'all' })
|
|
27
|
-
|
|
28
|
-
const __filename = fileURLToPath(import.meta.url)
|
|
29
|
-
const __dirname = dirname(__filename)
|
|
30
|
-
const globalComponentsPath = resolve(__dirname, '../dist/hisonvue.d.ts')
|
|
31
|
-
|
|
32
|
-
addTypeTemplate({
|
|
33
|
-
filename: 'types/hisonvue-components.d.ts',
|
|
34
|
-
getContents: () => readFileSync(globalComponentsPath, 'utf-8')
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
nuxt.hook('prepare:types', (opts) => {
|
|
38
|
-
opts.references.push({ path: resolver.resolve('types/hisonvue-components.d.ts') })
|
|
39
|
-
})
|
|
40
|
-
}
|
|
1
|
+
//nuxt/module.mjs
|
|
2
|
+
import { defineNuxtModule, addPlugin, createResolver, addTypeTemplate } from '@nuxt/kit'
|
|
3
|
+
import { readFileSync } from 'fs'
|
|
4
|
+
import { fileURLToPath } from 'url'
|
|
5
|
+
import { dirname, resolve } from 'path'
|
|
6
|
+
|
|
7
|
+
export default defineNuxtModule({
|
|
8
|
+
meta: {
|
|
9
|
+
name: 'hisonvue',
|
|
10
|
+
configKey: 'hisonvue'
|
|
11
|
+
},
|
|
12
|
+
defaults: {
|
|
13
|
+
autoInstall: true
|
|
14
|
+
},
|
|
15
|
+
setup(options, nuxt) {
|
|
16
|
+
const resolver = createResolver(import.meta.url)
|
|
17
|
+
/*
|
|
18
|
+
const hasUserHisonvuePlugin = (nuxt.options.plugins || []).some((p) => {
|
|
19
|
+
const src = typeof p === 'string' ? p : p.src
|
|
20
|
+
return src && /hisonvue/i.test(src)
|
|
21
|
+
})
|
|
22
|
+
if (!hasUserHisonvuePlugin && options.autoInstall !== false) {
|
|
23
|
+
addPlugin(resolver.resolve('./plugin.mjs'))
|
|
24
|
+
}
|
|
25
|
+
*/
|
|
26
|
+
addPlugin({ src: resolver.resolve('./warn-filter.mjs'), mode: 'all' })
|
|
27
|
+
|
|
28
|
+
const __filename = fileURLToPath(import.meta.url)
|
|
29
|
+
const __dirname = dirname(__filename)
|
|
30
|
+
const globalComponentsPath = resolve(__dirname, '../dist/hisonvue.d.ts')
|
|
31
|
+
|
|
32
|
+
addTypeTemplate({
|
|
33
|
+
filename: 'types/hisonvue-components.d.ts',
|
|
34
|
+
getContents: () => readFileSync(globalComponentsPath, 'utf-8')
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
nuxt.hook('prepare:types', (opts) => {
|
|
38
|
+
opts.references.push({ path: resolver.resolve('types/hisonvue-components.d.ts') })
|
|
39
|
+
})
|
|
40
|
+
}
|
|
41
41
|
})
|
package/nuxt/plugin.mjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
//nuxt/plugin.mjs
|
|
2
|
-
import { defineNuxtPlugin, useAppConfig, useRuntimeConfig } from '#app'
|
|
3
|
-
import { hisonvue, getDefaultHisonConfig } from 'hisonvue'
|
|
4
|
-
import 'hisonvue/style.css'
|
|
5
|
-
|
|
6
|
-
export default defineNuxtPlugin((nuxtApp) => {
|
|
7
|
-
if (!process.client) return
|
|
8
|
-
|
|
9
|
-
const installed = (nuxtApp.vueApp && (nuxtApp.vueApp)._context && (nuxtApp.vueApp)._context.installedPlugins)
|
|
10
|
-
if (installed && installed.has(hisonvue)) {
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const cfg = getDefaultHisonConfig()
|
|
15
|
-
try {
|
|
16
|
-
const appCfg = (useAppConfig() || {}).hisonvue || {}
|
|
17
|
-
const runtimeCfg = ((useRuntimeConfig() || {}).public || {}).hisonvue || {}
|
|
18
|
-
Object.assign(cfg, appCfg, runtimeCfg)
|
|
19
|
-
} catch (_) { }
|
|
20
|
-
|
|
21
|
-
nuxtApp.vueApp.use(hisonvue, cfg)
|
|
1
|
+
//nuxt/plugin.mjs
|
|
2
|
+
import { defineNuxtPlugin, useAppConfig, useRuntimeConfig } from '#app'
|
|
3
|
+
import { hisonvue, getDefaultHisonConfig } from 'hisonvue'
|
|
4
|
+
import 'hisonvue/style.css'
|
|
5
|
+
|
|
6
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
7
|
+
if (!process.client) return
|
|
8
|
+
|
|
9
|
+
const installed = (nuxtApp.vueApp && (nuxtApp.vueApp)._context && (nuxtApp.vueApp)._context.installedPlugins)
|
|
10
|
+
if (installed && installed.has(hisonvue)) {
|
|
11
|
+
return
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const cfg = getDefaultHisonConfig()
|
|
15
|
+
try {
|
|
16
|
+
const appCfg = (useAppConfig() || {}).hisonvue || {}
|
|
17
|
+
const runtimeCfg = ((useRuntimeConfig() || {}).public || {}).hisonvue || {}
|
|
18
|
+
Object.assign(cfg, appCfg, runtimeCfg)
|
|
19
|
+
} catch (_) { }
|
|
20
|
+
|
|
21
|
+
nuxtApp.vueApp.use(hisonvue, cfg)
|
|
22
22
|
})
|
package/nuxt/warn-filter.mjs
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
// nuxt/warn-filter.mjs
|
|
2
|
-
import { defineNuxtPlugin } from '#app'
|
|
3
|
-
|
|
4
|
-
const HISON_TAGS = new Set([
|
|
5
|
-
'HAccordion','HBaggie','HBanner','HButton','HCalendar','HCaption','HChart','HDrawer',
|
|
6
|
-
'HDropdown','HFileset','HGap','HGrid','HImagebox','HInput','HInputGroup','HLabel',
|
|
7
|
-
'HLayout','HList','HModal','HNote','HPagination','HParagraph','HPopup','HSpinner','HTable',
|
|
8
|
-
])
|
|
9
|
-
|
|
10
|
-
// [Vue warn]: ... 또는 (Nuxt 축약) Failed to resolve component: ...
|
|
11
|
-
const RESOLVE_RE = /^(?:\[Vue warn\]:\s*)?Failed to resolve component:\s+([A-Za-z][\w-]*)/
|
|
12
|
-
|
|
13
|
-
const WRAP_KEY = '__hisonvue_warn_wrapped__'
|
|
14
|
-
|
|
15
|
-
export default defineNuxtPlugin((nuxtApp) => {
|
|
16
|
-
const app = nuxtApp.vueApp
|
|
17
|
-
if (app.config.globalProperties[WRAP_KEY]) return
|
|
18
|
-
app.config.globalProperties[WRAP_KEY] = true
|
|
19
|
-
|
|
20
|
-
const prev = app.config.warnHandler
|
|
21
|
-
|
|
22
|
-
const forward = (msg, instance, trace) => {
|
|
23
|
-
if (typeof prev === 'function') return prev(msg, instance, trace)
|
|
24
|
-
try {
|
|
25
|
-
// vue 기본 로거 대체
|
|
26
|
-
if (trace) console.warn(msg, trace)
|
|
27
|
-
else console.warn(msg)
|
|
28
|
-
} catch {}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
app.config.warnHandler = (msg, instance, trace) => {
|
|
32
|
-
if (typeof msg === 'string') {
|
|
33
|
-
const m = msg.match(RESOLVE_RE)
|
|
34
|
-
if (m && HISON_TAGS.has(m[1])) {
|
|
35
|
-
// 우리 컴포넌트 미해결 경고만 억제
|
|
36
|
-
return
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
// 나머지는 그대로 출력
|
|
40
|
-
forward(msg, instance, trace)
|
|
41
|
-
}
|
|
1
|
+
// nuxt/warn-filter.mjs
|
|
2
|
+
import { defineNuxtPlugin } from '#app'
|
|
3
|
+
|
|
4
|
+
const HISON_TAGS = new Set([
|
|
5
|
+
'HAccordion','HBaggie','HBanner','HButton','HCalendar','HCaption','HChart','HDrawer',
|
|
6
|
+
'HDropdown','HFileset','HGap','HGrid','HImagebox','HInput','HInputGroup','HLabel',
|
|
7
|
+
'HLayout','HList','HModal','HNote','HPagination','HParagraph','HPopup','HSpinner','HTable',
|
|
8
|
+
])
|
|
9
|
+
|
|
10
|
+
// [Vue warn]: ... 또는 (Nuxt 축약) Failed to resolve component: ...
|
|
11
|
+
const RESOLVE_RE = /^(?:\[Vue warn\]:\s*)?Failed to resolve component:\s+([A-Za-z][\w-]*)/
|
|
12
|
+
|
|
13
|
+
const WRAP_KEY = '__hisonvue_warn_wrapped__'
|
|
14
|
+
|
|
15
|
+
export default defineNuxtPlugin((nuxtApp) => {
|
|
16
|
+
const app = nuxtApp.vueApp
|
|
17
|
+
if (app.config.globalProperties[WRAP_KEY]) return
|
|
18
|
+
app.config.globalProperties[WRAP_KEY] = true
|
|
19
|
+
|
|
20
|
+
const prev = app.config.warnHandler
|
|
21
|
+
|
|
22
|
+
const forward = (msg, instance, trace) => {
|
|
23
|
+
if (typeof prev === 'function') return prev(msg, instance, trace)
|
|
24
|
+
try {
|
|
25
|
+
// vue 기본 로거 대체
|
|
26
|
+
if (trace) console.warn(msg, trace)
|
|
27
|
+
else console.warn(msg)
|
|
28
|
+
} catch {}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
app.config.warnHandler = (msg, instance, trace) => {
|
|
32
|
+
if (typeof msg === 'string') {
|
|
33
|
+
const m = msg.match(RESOLVE_RE)
|
|
34
|
+
if (m && HISON_TAGS.has(m[1])) {
|
|
35
|
+
// 우리 컴포넌트 미해결 경고만 억제
|
|
36
|
+
return
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
// 나머지는 그대로 출력
|
|
40
|
+
forward(msg, instance, trace)
|
|
41
|
+
}
|
|
42
42
|
})
|
package/package.json
CHANGED
|
@@ -1,56 +1,56 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "hisonvue",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"main": "./dist/hisonvue.cjs.js",
|
|
5
|
-
"module": "./dist/hisonvue.es.js",
|
|
6
|
-
"types": "./dist/hisonvue.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/hisonvue.d.ts",
|
|
10
|
-
"import": "./dist/hisonvue.es.js",
|
|
11
|
-
"require": "./dist/hisonvue.cjs.js"
|
|
12
|
-
},
|
|
13
|
-
"./style.css": {
|
|
14
|
-
"default": "./dist/hisonvue.css"
|
|
15
|
-
},
|
|
16
|
-
"./nuxt": {
|
|
17
|
-
"import": "./nuxt/module.mjs"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"files": [
|
|
21
|
-
"dist/**/*",
|
|
22
|
-
"nuxt/**/*",
|
|
23
|
-
"style.css",
|
|
24
|
-
"styles/**/*",
|
|
25
|
-
"index.*",
|
|
26
|
-
"*.d.ts"
|
|
27
|
-
],
|
|
28
|
-
"scripts": {
|
|
29
|
-
"dev": "vite",
|
|
30
|
-
"build": "vite build && npm run type:bundle",
|
|
31
|
-
"type:bundle": "dts-bundle-generator -c dts-bundle-generator.json",
|
|
32
|
-
"build:nuxt": "tsc nuxt/module.ts --module ESNext --outDir nuxt && tsc nuxt/plugin.ts --module ESNext --outDir nuxt",
|
|
33
|
-
"type-check": "tsc --noEmit",
|
|
34
|
-
"preview": "vite preview"
|
|
35
|
-
},
|
|
36
|
-
"peerDependencies": {
|
|
37
|
-
"@nuxt/kit": "^3.0.0",
|
|
38
|
-
"vue": "^3.0.0"
|
|
39
|
-
},
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@vitejs/plugin-vue": "^5.2.3",
|
|
42
|
-
"dts-bundle-generator": "^9.5.1",
|
|
43
|
-
"sass-embedded": "^1.87.0",
|
|
44
|
-
"typescript": "^5.8.2",
|
|
45
|
-
"vite": "^6.2.2",
|
|
46
|
-
"vite-plugin-dts": "^4.5.3",
|
|
47
|
-
"vue": "^3.5.13"
|
|
48
|
-
},
|
|
49
|
-
"dependencies": {
|
|
50
|
-
"chart.js": "^4.5.0",
|
|
51
|
-
"hisonjs": "^1.2.8",
|
|
52
|
-
"vanillagrid2": "^1.0.8",
|
|
53
|
-
"vanillanote2": "^1.1.0",
|
|
54
|
-
"vue-cal": "^4.10.2"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "hisonvue",
|
|
3
|
+
"version": "1.1.23",
|
|
4
|
+
"main": "./dist/hisonvue.cjs.js",
|
|
5
|
+
"module": "./dist/hisonvue.es.js",
|
|
6
|
+
"types": "./dist/hisonvue.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/hisonvue.d.ts",
|
|
10
|
+
"import": "./dist/hisonvue.es.js",
|
|
11
|
+
"require": "./dist/hisonvue.cjs.js"
|
|
12
|
+
},
|
|
13
|
+
"./style.css": {
|
|
14
|
+
"default": "./dist/hisonvue.css"
|
|
15
|
+
},
|
|
16
|
+
"./nuxt": {
|
|
17
|
+
"import": "./nuxt/module.mjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist/**/*",
|
|
22
|
+
"nuxt/**/*",
|
|
23
|
+
"style.css",
|
|
24
|
+
"styles/**/*",
|
|
25
|
+
"index.*",
|
|
26
|
+
"*.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"dev": "vite",
|
|
30
|
+
"build": "vite build && npm run type:bundle",
|
|
31
|
+
"type:bundle": "dts-bundle-generator -c dts-bundle-generator.json",
|
|
32
|
+
"build:nuxt": "tsc nuxt/module.ts --module ESNext --outDir nuxt && tsc nuxt/plugin.ts --module ESNext --outDir nuxt",
|
|
33
|
+
"type-check": "tsc --noEmit",
|
|
34
|
+
"preview": "vite preview"
|
|
35
|
+
},
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"@nuxt/kit": "^3.0.0",
|
|
38
|
+
"vue": "^3.0.0"
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@vitejs/plugin-vue": "^5.2.3",
|
|
42
|
+
"dts-bundle-generator": "^9.5.1",
|
|
43
|
+
"sass-embedded": "^1.87.0",
|
|
44
|
+
"typescript": "^5.8.2",
|
|
45
|
+
"vite": "^6.2.2",
|
|
46
|
+
"vite-plugin-dts": "^4.5.3",
|
|
47
|
+
"vue": "^3.5.13"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"chart.js": "^4.5.0",
|
|
51
|
+
"hisonjs": "^1.2.8",
|
|
52
|
+
"vanillagrid2": "^1.0.8",
|
|
53
|
+
"vanillanote2": "^1.1.0",
|
|
54
|
+
"vue-cal": "^4.10.2"
|
|
55
|
+
}
|
|
56
|
+
}
|
package/dist/HInput-DHK28wmp.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("vue"),u=require("./index-DcB16odB.js"),Re=require("./_plugin-vue_export-helper-BHFhmbuH.js"),ze={id:{type:String,required:!1},name:{type:String,required:!1},modelValue:{type:[String,Number,Boolean,Object,Array,Date],default:null},class:{type:[String,Array,Object],required:!1},style:{type:[String,Object,Array],required:!1},visible:{type:Boolean,default:!0},title:{type:String,required:!1},inputType:{type:String,required:!1,validator:e=>u.INPUT_TYPE_VALUES.includes(e)},format:{type:String,required:!1},nullText:{type:String,default:""},maxNumber:{type:[String,Number],required:!1},minNumber:{type:[String,Number],required:!1},roundNumber:{type:[String,Number],required:!1},maxLength:{type:[String,Number],required:!1},maxByte:{type:[String,Number],required:!1},placeholder:{type:String,required:!1},placeholderColor:{type:String,default:"primary"},editMode:{type:String,default:u.EditMode.editable,validator:e=>["editable","disable","readonly"].includes(e)},required:{type:Boolean,default:!1},fontBold:{type:Boolean,default:!1},fontItalic:{type:Boolean,default:!1},fontThruline:{type:Boolean,default:!1},fontUnderline:{type:Boolean,default:!1},textAlign:{type:String,default:null,validator:e=>e==null||u.TEXT_ALIGN_VALUES.includes(e)},border:{type:Boolean,default:!0},options:{type:Array,required:!1,default:()=>[]},checkedText:{type:String,default:"Y"},uncheckedText:{type:String,default:"N"},tabIndex:{type:[Number,String],default:null,validator:e=>e===null||e===""||!isNaN(+e)&&isFinite(+e)},inputTextdHandler:{type:Function,default:void 0},toggleStyle:{type:String,default:"default",validator:e=>["default","switch"].includes(e)}},O=new WeakSet,j=new WeakSet,te=e=>{const n=e.currentTarget;if(u.hisonCloser.event.cssEvent.input_onBeforeFocus(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.add("hison-input-on-active"),u.hisonCloser.event.cssEvent.input_onAfterFocus(e)},ie=e=>{const n=e.currentTarget;if(u.hisonCloser.event.cssEvent.input_onBeforeBlur(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.remove("hison-input-on-active"),n.classList.remove("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterBlur(e)},ue=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeMouseover(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.add("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterMouseover(e)}},le=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeMouseout(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.remove("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterMouseout(e)}},se=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeTouchstart(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.add("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterTouchstart(e)}},re=e=>{const n=e.currentTarget;if(!n.readOnly){if(u.hisonCloser.event.cssEvent.input_onBeforeTouchend(e)===!1){e.stopPropagation(),e.preventDefault();return}n.classList.remove("hison-input-on-mouseover"),u.hisonCloser.event.cssEvent.input_onAfterTouchend(e)}},de=e=>{const n=e.currentTarget;n.readOnly||n.classList.remove("hison-input-on-mouseover")},Ke=e=>{O.has(e)||(O.add(e),e.addEventListener("mouseenter",ue),e.addEventListener("mouseleave",le),e.addEventListener("touchstart",se,{passive:!1,capture:!0}),e.addEventListener("touchend",re,{passive:!1,capture:!0}),e.addEventListener("touchcancel",de,{passive:!1,capture:!0}))},Ue=e=>{O.has(e)&&(O.delete(e),e.removeEventListener("mouseenter",ue),e.removeEventListener("mouseleave",le),e.removeEventListener("touchstart",se,{capture:!0}),e.removeEventListener("touchend",re,{capture:!0}),e.removeEventListener("touchcancel",de,{capture:!0}),e.classList.remove("hison-input-on-mouseover"))},He=e=>{j.has(e)||(j.add(e),e.addEventListener("focus",te),e.addEventListener("blur",ie))},Oe=e=>{j.has(e)&&(j.delete(e),e.removeEventListener("focus",te),e.removeEventListener("blur",ie),e.classList.remove("hison-input-on-active"),e.classList.remove("hison-input-on-mouseover"))},je=i.defineComponent({name:"HInput",props:ze,inheritAttrs:!1,emits:["update:modelValue","mounted","responsive-change","click","dblclick","mousedown","mouseup","mouseenter","mouseleave","mouseover","mouseout","mousemove","pointerdown","pointerup","pointermove","pointerenter","pointerleave","touchstart","touchend","touchmove","touchcancel","focus","blur","input","change","compositionstart","compositionupdate","compositionend","keydown","keyup","dragstart","dragend","drag","drop","copy","cut","paste","wheel","contextmenu"],setup(e,{emit:n}){const m=i.ref(null),b=i.ref(null),f=i.ref(null),p=e.id?e.id:u.getUUID(),o=i.ref(e.name??p),ae=i.computed(()=>o.value),W=`hinput:${p}`,c=u.useDevice(),w=i.ref([]),Y=()=>{w.value=u.extractResponsiveClasses(u.toClassString(e.class)||"",c.value),u.getIndexSpecificClassNameFromClassList(w.value,"col")===-1&&w.value.push("hison-col-12"),u.addComponentNameToClass(w.value,"size",u.hisonCloser.componentStyle.size),u.addComponentNameToClass(w.value,"color","primary")},r=i.ref(e.inputType??u.InputType.text),X=i.computed(()=>{switch(r.value){case u.InputType.checkbox:return"checkbox";case u.InputType.radio:return"radio";case u.InputType.select:return"select";case u.InputType.range:return"range";case u.InputType.color:return"color";default:return"text"}}),pe=i.computed(()=>{switch(r.value){case u.InputType.mask:case u.InputType.digit:return"text";default:return r.value}}),L=i.ref(e.toggleStyle??"default"),M=i.ref(e.format??null),T=i.ref(u.hison.utils.isNumeric(e.maxNumber)?Number(e.maxNumber):null),$=i.ref(u.hison.utils.isNumeric(e.minNumber)?Number(e.minNumber):null),B=i.ref(u.hison.utils.isInteger(e.roundNumber)||u.hison.utils.isNegativeInteger(e.roundNumber)||e.roundNumber==="0"?Number(e.roundNumber):null),C=i.ref(u.hison.utils.isPositiveInteger(e.maxLength)?Number(e.maxLength):null),h=i.ref(u.hison.utils.isPositiveInteger(e.maxByte)?Number(e.maxByte):null),J=t=>{switch(t){case u.InputType.number:case u.InputType.digit:return u.TextAlign.right;case u.InputType.date:case u.InputType.month:case u.InputType.time:return u.TextAlign.center;default:return u.TextAlign.left}},k=i.ref(e.textAlign??J(r.value)),me=i.computed(()=>({textAlign:k.value})),E=i.ref(e.border??!0),ve=t=>(t=String(t),C.value&&(t=t.substring(0,C.value)),h.value&&(t=u.hison.utils.getCutByteLength(t,h.value)),t),fe=t=>(t=Number(t),T.value&&t>T.value&&(t=T.value),$.value&&t<$.value&&(t=$.value),B.value&&(t=u.hison.utils.getRound(t,B.value)),t),Q=t=>{if(u.isNullOrUndefined(t))return r.value===u.InputType.checkbox||r.value===u.InputType.radio?!1:t;try{switch(r.value){case u.InputType.text:case u.InputType.password:case u.InputType.email:case u.InputType.mask:case u.InputType.digit:case u.InputType.textarea:r.value===u.InputType.mask&&(t=u.getMaskValue(t,M.value??"")),r.value===u.InputType.digit&&(t=u.getDigitsOnly(t)),t=ve(t);break;case u.InputType.number:r.value===u.InputType.number&&(t=fe(t));break;case u.InputType.date:t&&(t=u.hison.utils.getDateWithFormat(t,u.Hisonjs_bundleExports.DateFormat["yyyy-MM-dd"]));break;case u.InputType.month:t&&(t=u.hison.utils.getDateWithFormat(t,u.Hisonjs_bundleExports.YearMonthFormat["yyyy-MM"]));break;case u.InputType.time:t&&(t=u.hison.utils.getDateWithFormat(t,u.Hisonjs_bundleExports.TimeFormat["HH:mm:ss"]));break;case u.InputType.checkbox:case u.InputType.radio:t=!!t;default:break}}catch(l){console.warn("[HInput] Failed to format value",t,l)}return t},s=i.ref(Q(e.modelValue)),ye=i.computed(()=>s.value),v=i.ref(null),F=i.ref(e.visible),P=i.ref(e.title??""),S=i.ref(e.nullText??""),y=i.ref(e.editMode),Me=i.computed(()=>y.value===u.EditMode.disable),Z=i.computed(()=>y.value===u.EditMode.readonly),ge=i.computed(()=>E.value&&!Z.value?"hison-border":""),be=i.computed(()=>y.value!==u.EditMode.editable?[`hison-input-${y.value}`,`hison-input-${X.value}-${y.value}`]:[]),A=i.ref(e.required),Te=i.computed(()=>A.value?["hison-input-required",`hison-input-${X.value}-required`]:[]),V=i.ref(e.placeholder??""),D=i.ref(e.placeholderColor??"primary"),$e=t=>{if(!t)return null;const l=t.trim();return["primary","muted","info","success","danger","warning","custom1","custom2","custom3","custom4","custom5"].includes(l)?`var(--hison-${l}-emptyTextColor)`:l},Ce=i.computed(()=>{const t=$e(D.value);return t?{"--hison-input-placeholder-color":t}:{}}),q=i.ref(e.fontBold),he=i.computed(()=>{if(q.value)return"hison-font-bold"}),R=i.ref(e.fontItalic),ke=i.computed(()=>{if(R.value)return"hison-font-italic"}),z=i.ref(e.fontThruline),Ie=i.computed(()=>{if(z.value)return"hison-font-thruline"}),K=i.ref(e.fontUnderline),we=i.computed(()=>{if(K.value)return"hison-font-underline"}),Be=i.computed(()=>F.value?"":"hison-display-none"),G=i.ref(!1),g=i.ref(!1),U=i.ref(e.tabIndex!==null&&e.tabIndex!==""?Number(e.tabIndex):null),_=i.inject("registerToInputGroup",null),d=i.inject("notifyInputGroupStatus",null),N=i.inject("radioMembershipChanged",null),x=t=>{if(r.value===u.InputType.checkbox||r.value===u.InputType.radio)return t?e.checkedText:e.uncheckedText;if(u.isNullOrUndefined(t)||t==="")return S.value??"";if(e.inputTextdHandler)return e.inputTextdHandler(t);let l=String(t);try{switch(r.value){case u.InputType.password:l="•".repeat(t.length);break;case u.InputType.number:l=u.hison.utils.getNumberFormat(t,M.value??u.hison.getNumberFormat());break;case u.InputType.date:l=u.hison.utils.getDateWithFormat(t,M.value??u.hison.getDateFormat());break;case u.InputType.month:l=u.hison.utils.getDateWithFormat(t,M.value??u.hison.getYearMonthFormat());break;case u.InputType.time:l=u.hison.utils.getDateWithFormat(t,M.value??u.hison.getTimeFormat());break;case u.InputType.select:const I=m.value,oe=I.selectedIndex;l=oe>=0?I.options[oe].text:"";break}}catch(I){console.warn("[HInput] Failed to format value",t,I),l=""}return l},H=i.ref(""),Ne=t=>{y.value===u.EditMode.editable&&(G.value=!0),i.nextTick(()=>{var l;(l=m.value)==null||l.focus()})},Le=t=>{let l=m.value.value;(r.value===u.InputType.mask||r.value===u.InputType.digit||(C.value||h.value)&&(r.value===u.InputType.text||r.value===u.InputType.email||r.value===u.InputType.password||r.value===u.InputType.textarea))&&(l=Q(l),m.value.value=l),s.value=l,g.value=!0,d==null||d(p,s.value),n("input",t,f.value,s.value),n("update:modelValue",s.value)},Ee=t=>{v.value=s.value,n("focus",t,f.value)},Fe=t=>{v.value!==s.value&&(a(s.value,!0,!0),g.value=!0,d==null||d(p,s.value)),G.value=!1,n("blur",t,f.value)},a=(t,l=!0,I=!1)=>{s.value=l?Q(t):t,H.value=x(s.value),r.value===u.InputType.checkbox||r.value===u.InputType.radio?m.value.checked=!!s.value:m.value.value=s.value,I&&n("change",v.value,s.value,f.value)},Pe=t=>{const l=t.target;a(l.value,!1,!0),g.value=!0,d==null||d(p,s.value),n("update:modelValue",s.value)},Se=t=>{const l=t.target;a(l.value,!1,!0),g.value=!0,d==null||d(p,s.value),n("update:modelValue",s.value)},Ae=t=>{const l=t.target;a(l.checked,!1,!0),g.value=!0,d==null||d(p,s.value),n("update:modelValue",s.value)},Ve=t=>{const l=t.target;a(l.checked,!1,!0),g.value=!0,d&&o.value?d(o.value,l.checked?p:null):d==null||d(p,s.value),n("update:modelValue",s.value)},De=t=>{const l=t.target;a(l.value,!1,!0),g.value=!0,d==null||d(p,s.value),n("update:modelValue",s.value)},qe=t=>{if(Z.value&&(t.code==="Space"||t.code==="Enter")){t.preventDefault(),t.stopPropagation();return}n("keydown",t,f.value)},ee=()=>{u.hisonCloser.component.inputList[p]&&u.hisonCloser.component.inputList[p].isHisonvueComponent&&console.warn(`[Hisonvue] The input ID is at risk of being duplicated. ${p}`),u.registerReloadable(W,()=>{ne(),i.nextTick(ee)}),m.value&&(Y(),b.value&&Ke(b.value),r.value!==u.InputType.checkbox&&r.value!==u.InputType.radio&&r.value!==u.InputType.range&&r.value!==u.InputType.color&&He(m.value),a(s.value,!1),f.value={isHisonvueComponent:!0,getId:()=>p,getType:()=>"input",getName:()=>o.value,setName:t=>{if(t===o.value)return;const l=o.value;o.value=t,r.value===u.InputType.radio&&(N==null||N(p,l,t,!!s.value))},getText:()=>H.value,getValue:()=>s.value,setValue:t=>{v.value=s.value,s.value=t,a(s.value)},getTitle:()=>P.value,setTitle:t=>{P.value=t},isVisible:()=>F.value,setVisible:t=>{F.value=t},getInputType:()=>r.value,setInputType:t=>{r.value=u.InputType[t],v.value=s.value,a(s.value),e.textAlign==null&&(k.value=J(r.value))},getFormat:()=>M.value??"",setFormat:t=>{M.value=t,v.value=s.value,a(s.value)},getNullText:()=>S.value,setNullText:t=>{S.value=t,(u.isNullOrUndefined(s.value)||s.value==="")&&(H.value=x(s.value))},getEditMode:()=>y.value,setEditMode:t=>{y.value=t},getMaxNumber:()=>T.value,setMaxNumber:t=>{u.hison.utils.isNumeric(t)&&(T.value=t,v.value=s.value,r.value===u.InputType.number&&a(s.value))},getMinNumber:()=>$.value,setMinNumber:t=>{u.hison.utils.isNumeric(t)&&($.value=t,v.value=s.value,r.value===u.InputType.number&&a(s.value))},getRoundNumber:()=>B.value,setRoundNumber:t=>{!u.hison.utils.isPositiveInteger(t)&&!u.hison.utils.isNegativeInteger(t)&&t!==0||(B.value=t,v.value=s.value,r.value===u.InputType.number&&a(s.value))},getMaxLength:()=>C.value,setMaxLength:t=>{u.hison.utils.isPositiveInteger(t)&&(C.value=t),v.value=s.value,a(s.value)},getMaxByte:()=>h.value,setMaxByte:t=>{u.hison.utils.isPositiveInteger(t)&&(h.value=t),v.value=s.value,a(s.value)},getRequired:()=>A.value,setRequired:t=>{A.value=t},getPlaceholder:()=>V.value,setPlaceholder:t=>{V.value=t},getPlaceholderColor:()=>D.value,setPlaceholderColor:t=>{const l=(t??"").trim();D.value=l.length>0?l:"primary"},isFontBold:()=>q.value,setFontBold:t=>{q.value=t},isFontItalic:()=>R.value,setFontItalic:t=>{R.value=t},isFontThruline:()=>z.value,setFontThruline:t=>{z.value=t},isFontUnderline:()=>K.value,setFontUnderline:t=>{K.value=t},getTextAlign:()=>k.value,setTextAlign:t=>{(t===u.TextAlign.left||t===u.TextAlign.center||t===u.TextAlign.right)&&(k.value=t)},isBorder:()=>E.value,setBorder:t=>{E.value=t},isModified:()=>g.value,setModified:t=>{g.value=t},getToggleStyle:()=>L.value,setToggleStyle:t=>{(t==="default"||t==="switch")&&(L.value=t)},getTabIndex:()=>U.value,setTabIndex:t=>{U.value=t!=null?Number(t):null},focus:()=>{var t;b.value?b.value.focus():(t=m.value)==null||t.focus()},reload:()=>u.reloadHisonComponent(W)},u.hisonCloser.component.inputList[p]=f.value,_&&_(p),n("mounted",f.value))},ne=()=>{u.unregisterReloadable(W),delete u.hisonCloser.component.inputList[p],r.value!==u.InputType.checkbox&&r.value!==u.InputType.radio&&r.value!==u.InputType.range&&r.value!==u.InputType.color&&Oe(m.value),b.value&&Ue(b.value)};return i.onMounted(ee),i.onBeforeUnmount(ne),i.watch(c,t=>{Y(),n("responsive-change",t)}),i.watch(()=>e.modelValue,t=>{a(t,!1)}),i.watch(()=>e.name,t=>{if(t&&t!==o.value){const l=o.value;o.value=t,r.value===u.InputType.radio&&(N==null||N(p,l,t,!!s.value))}}),i.watch(()=>e.visible,t=>{const l=!!t;l!==F.value&&(F.value=l)}),i.watch(()=>e.title,t=>{const l=t??"";l!==P.value&&(P.value=l)}),i.watch(()=>e.nullText,t=>{const l=t??"";l!==S.value&&(S.value=l,(u.isNullOrUndefined(s.value)||s.value==="")&&(H.value=x(s.value)))}),i.watch(()=>e.inputType,t=>{t&&t!==r.value&&(r.value=t,e.textAlign==null&&(k.value=J(r.value)),a(s.value))}),i.watch(()=>e.format,t=>{const l=t??null;l!==M.value&&(M.value=l,a(s.value))}),i.watch(()=>e.maxNumber,t=>{const l=u.hison.utils.isNumeric(t)?Number(t):null;l!==T.value&&(T.value=l,r.value===u.InputType.number&&a(s.value))}),i.watch(()=>e.minNumber,t=>{const l=u.hison.utils.isNumeric(t)?Number(t):null;l!==$.value&&($.value=l,r.value===u.InputType.number&&a(s.value))}),i.watch(()=>e.roundNumber,t=>{const l=u.hison.utils.isInteger(t)||u.hison.utils.isNegativeInteger(t)||t==="0"?Number(t):null;l!==B.value&&(B.value=l,r.value===u.InputType.number&&a(s.value))}),i.watch(()=>e.maxLength,t=>{const l=u.hison.utils.isPositiveInteger(t)?Number(t):null;l!==C.value&&(C.value=l,a(s.value))}),i.watch(()=>e.maxByte,t=>{const l=u.hison.utils.isPositiveInteger(t)?Number(t):null;l!==h.value&&(h.value=l,a(s.value))}),i.watch(()=>e.textAlign,t=>{t&&t!==k.value&&(t===u.TextAlign.left||t===u.TextAlign.center||t===u.TextAlign.right)&&(k.value=t)}),i.watch(()=>e.border,t=>{const l=!!t;l!==E.value&&(E.value=l)}),i.watch(()=>e.placeholder,t=>{const l=t??"";l!==V.value&&(V.value=l)}),i.watch(()=>e.placeholderColor,t=>{const l=t??"primary";l!==D.value&&(D.value=l)}),i.watch(()=>e.required,t=>{const l=!!t;l!==A.value&&(A.value=l)}),i.watch(()=>e.fontBold,t=>{const l=!!t;l!==q.value&&(q.value=l)}),i.watch(()=>e.fontItalic,t=>{const l=!!t;l!==R.value&&(R.value=l)}),i.watch(()=>e.fontThruline,t=>{const l=!!t;l!==z.value&&(z.value=l)}),i.watch(()=>e.fontUnderline,t=>{const l=!!t;l!==K.value&&(K.value=l)}),i.watch(()=>e.editMode,t=>{t&&t!==y.value&&(y.value=t)}),i.watch(()=>e.tabIndex,t=>{const l=t===null||t===""?null:Number(t);l!==U.value&&(U.value=l)}),i.watch(()=>e.class,()=>{Y()}),i.watch(()=>e.toggleStyle,t=>{const l=t??"default";l!==L.value&&(l==="default"||l==="switch")&&(L.value=l)}),{inputRef:m,inputTextRef:b,inputMethods:i.computed(()=>i.unref(f)),inputValue:ye,editing:G,props:e,id:p,nameAttr:ae,responsiveClassList:w,visibleClass:Be,editModeClassList:be,requiredClassList:Te,fontBoldClass:he,fontItalicClass:ke,fontThrulineClass:Ie,fontUnderlineClass:we,textAlignStyle:me,placeholderColorStyle:Ce,borderClass:ge,disable:Me,readonly:Z,inputType:r,inputExpressionType:X,inputAttrType:pe,title:P,placeholder:V,maxNumber:T,minNumber:$,spanText:H,toggleStyle:L,tabIndex:U,onInput:Le,onTextInputFocus:Ne,onFocus:Ee,onBlur:Fe,onRangeChange:Pe,onColorChange:Se,onCheckboxChange:Ae,onRadioChange:Ve,onSelectChange:De,onKeydown:qe}}}),We=["id","name","value","disabled","readonly","title","tabindex"],Ye=["id","name","value","disabled","readonly","checked","title","tabindex"],Xe=["id","name","disabled","readonly","checked","title","tabindex"],Je=["id","name","disabled","readonly","checked","title","tabindex"],Qe=["id","name","disabled","readonly","checked","title","tabindex"],Ze=["id","name","disabled","readonly","checked","title","tabindex"],Ge=["id","name","value","disabled","readonly","title","tabindex"],xe=["value"],ce=["id","name","value","disabled","readonly","placeholder","title","maxlength","tabindex"],_e=["id","name","value","disabled","readonly","title","placeholder","tabindex"],en=["id","name","value","disabled","readonly","type","title","placeholder","max","min","tabindex"];function nn(e,n,m,b,f,p){return i.openBlock(),i.createElementBlock("div",{class:i.normalizeClass(["hison-wrapper","hison-s-input-margin-adjustment",...e.responsiveClassList,e.visibleClass])},[e.inputType==="range"?(i.openBlock(),i.createElementBlock("div",{key:0,class:i.normalizeClass(["hison-input","hison-input-range-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"range",class:i.normalizeClass([`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList]),value:e.inputValue,disabled:e.disable,readonly:e.readonly,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[0]||(n[0]=(...o)=>e.onRangeChange&&e.onRangeChange(...o)),onFocus:n[1]||(n[1]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[2]||(n[2]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[3]||(n[3]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[4]||(n[4]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[5]||(n[5]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[6]||(n[6]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[7]||(n[7]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[8]||(n[8]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[9]||(n[9]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[10]||(n[10]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[11]||(n[11]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[12]||(n[12]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[13]||(n[13]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[14]||(n[14]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[15]||(n[15]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[16]||(n[16]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[17]||(n[17]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[18]||(n[18]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[19]||(n[19]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[20]||(n[20]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[21]||(n[21]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,We)],4)):e.inputType==="color"?(i.openBlock(),i.createElementBlock("div",{key:1,class:i.normalizeClass(["hison-input","hison-input-color-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"color",class:i.normalizeClass([`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList]),value:e.inputValue,disabled:e.disable,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[22]||(n[22]=(...o)=>e.onColorChange&&e.onColorChange(...o)),onFocus:n[23]||(n[23]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[24]||(n[24]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[25]||(n[25]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[26]||(n[26]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[27]||(n[27]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[28]||(n[28]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[29]||(n[29]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[30]||(n[30]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[31]||(n[31]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[32]||(n[32]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[33]||(n[33]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[34]||(n[34]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[35]||(n[35]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[36]||(n[36]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[37]||(n[37]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[38]||(n[38]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[39]||(n[39]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[40]||(n[40]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[41]||(n[41]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[42]||(n[42]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[43]||(n[43]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,Ye)],4)):e.inputType==="checkbox"?(i.openBlock(),i.createElementBlock("div",{key:2,class:i.normalizeClass(["hison-input","hison-input-checkbox-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[e.toggleStyle!=="switch"?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"checkbox",class:i.normalizeClass([`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList]),disabled:e.disable,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[44]||(n[44]=(...o)=>e.onCheckboxChange&&e.onCheckboxChange(...o)),onFocus:n[45]||(n[45]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[46]||(n[46]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[47]||(n[47]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[48]||(n[48]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[49]||(n[49]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[50]||(n[50]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[51]||(n[51]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[52]||(n[52]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[53]||(n[53]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[54]||(n[54]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[55]||(n[55]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[56]||(n[56]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[57]||(n[57]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[58]||(n[58]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[59]||(n[59]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[60]||(n[60]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[61]||(n[61]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[62]||(n[62]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[63]||(n[63]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[64]||(n[64]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[65]||(n[65]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,Xe)):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(["hison-input-checkbox-switch",...e.editModeClassList])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"checkbox",class:"hison-cswitch-input",disabled:e.disable,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[66]||(n[66]=(...o)=>e.onCheckboxChange&&e.onCheckboxChange(...o)),onFocus:n[67]||(n[67]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[68]||(n[68]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[69]||(n[69]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[70]||(n[70]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[71]||(n[71]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[72]||(n[72]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[73]||(n[73]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[74]||(n[74]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[75]||(n[75]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[76]||(n[76]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[77]||(n[77]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[78]||(n[78]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[79]||(n[79]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[80]||(n[80]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[81]||(n[81]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[82]||(n[82]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[83]||(n[83]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[84]||(n[84]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[85]||(n[85]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[86]||(n[86]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[87]||(n[87]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,40,Je),i.createElementVNode("span",{class:i.normalizeClass(["hison-switch-visual",[...e.editModeClassList,...e.requiredClassList]]),"aria-hidden":"true"},null,2)],2))],4)):e.inputType==="radio"?(i.openBlock(),i.createElementBlock("div",{key:3,class:i.normalizeClass(["hison-input","hison-input-radio-div"]),style:i.normalizeStyle([e.textAlignStyle,e.props.style])},[e.toggleStyle!=="switch"?(i.openBlock(),i.createElementBlock("input",{key:0,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"radio",class:i.normalizeClass([`hison-input-${e.inputType}`,"hison-input-radio--default",...e.editModeClassList,...e.requiredClassList]),disabled:e.disable||e.readonly,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[88]||(n[88]=(...o)=>e.onRadioChange&&e.onRadioChange(...o)),onFocus:n[89]||(n[89]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[90]||(n[90]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[91]||(n[91]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[92]||(n[92]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[93]||(n[93]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[94]||(n[94]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[95]||(n[95]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[96]||(n[96]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[97]||(n[97]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[98]||(n[98]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[99]||(n[99]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[100]||(n[100]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[101]||(n[101]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[102]||(n[102]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[103]||(n[103]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[104]||(n[104]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[105]||(n[105]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[106]||(n[106]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[107]||(n[107]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[108]||(n[108]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[109]||(n[109]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,42,Qe)):(i.openBlock(),i.createElementBlock("label",{key:1,class:i.normalizeClass(["hison-input-radio-switch",...e.editModeClassList])},[i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,type:"radio",class:"hison-radio-switch-input",disabled:e.disable||e.readonly,readonly:e.readonly,checked:e.inputValue===!0,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[110]||(n[110]=(...o)=>e.onRadioChange&&e.onRadioChange(...o)),onFocus:n[111]||(n[111]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[112]||(n[112]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[113]||(n[113]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[114]||(n[114]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[115]||(n[115]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[116]||(n[116]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[117]||(n[117]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[118]||(n[118]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[119]||(n[119]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[120]||(n[120]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[121]||(n[121]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[122]||(n[122]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[123]||(n[123]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[124]||(n[124]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[125]||(n[125]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[126]||(n[126]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[127]||(n[127]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[128]||(n[128]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[129]||(n[129]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[130]||(n[130]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[131]||(n[131]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,40,Ze),i.createElementVNode("span",{class:i.normalizeClass(["hison-switch-visual",[...e.editModeClassList,...e.requiredClassList]]),"aria-hidden":"true"},null,2)],2))],4)):e.inputType==="select"?(i.openBlock(),i.createElementBlock("select",{key:4,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,style:i.normalizeStyle([e.textAlignStyle,e.placeholderColorStyle,e.props.style]),class:i.normalizeClass(["hison-input",`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList,e.fontBoldClass,e.fontItalicClass,e.fontThrulineClass,e.fontUnderlineClass,e.borderClass]),value:e.inputValue,disabled:e.disable,readonly:e.readonly,title:e.title||void 0,tabindex:e.tabIndex??void 0,onChange:n[132]||(n[132]=(...o)=>e.onSelectChange&&e.onSelectChange(...o)),onFocus:n[133]||(n[133]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[134]||(n[134]=(...o)=>e.onBlur&&e.onBlur(...o)),onKeydown:n[135]||(n[135]=(...o)=>e.onKeydown&&e.onKeydown(...o)),onClick:n[136]||(n[136]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[137]||(n[137]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[138]||(n[138]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[139]||(n[139]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[140]||(n[140]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[141]||(n[141]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[142]||(n[142]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[143]||(n[143]=o=>e.$emit("mouseout",o,e.inputMethods)),onPointerdown:n[144]||(n[144]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[145]||(n[145]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[146]||(n[146]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[147]||(n[147]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[148]||(n[148]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[149]||(n[149]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[150]||(n[150]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[151]||(n[151]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[152]||(n[152]=o=>e.$emit("touchcancel",o,e.inputMethods)),onContextmenu:n[153]||(n[153]=o=>e.$emit("contextmenu",o,e.inputMethods))},[(i.openBlock(!0),i.createElementBlock(i.Fragment,null,i.renderList(e.props.options,o=>(i.openBlock(),i.createElementBlock("option",{key:o.value,value:o.value},i.toDisplayString(o.text),9,xe))),128))],46,Ge)):e.inputType==="textarea"?(i.openBlock(),i.createElementBlock("textarea",{key:5,ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,class:i.normalizeClass(["hison-input",`hison-input-${e.inputType}`,...e.editModeClassList,...e.requiredClassList,e.fontBoldClass,e.fontItalicClass,e.fontThrulineClass,e.fontUnderlineClass,e.borderClass]),value:e.inputValue,style:i.normalizeStyle([e.textAlignStyle,e.placeholderColorStyle,e.props.style]),disabled:e.disable,readonly:e.readonly,placeholder:e.placeholder||void 0,title:e.title||void 0,maxlength:e.maxLength||void 0,tabindex:e.tabIndex??void 0,onInput:n[154]||(n[154]=(...o)=>e.onInput&&e.onInput(...o)),onFocus:n[155]||(n[155]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[156]||(n[156]=(...o)=>e.onBlur&&e.onBlur(...o))},i.toDisplayString(e.inputValue),47,ce)):(i.openBlock(),i.createElementBlock(i.Fragment,{key:6},[i.withDirectives(i.createElementVNode("input",{ref:"inputTextRef",id:`input_text_${e.id}`,name:`input_text_${e.nameAttr}`,class:i.normalizeClass(["hison-input",`hison-input-text-${e.inputType}`,...e.editModeClassList,...e.requiredClassList,e.fontBoldClass,e.fontItalicClass,e.fontThrulineClass,e.fontUnderlineClass,e.borderClass]),type:"text",value:e.spanText,style:i.normalizeStyle([e.textAlignStyle,e.placeholderColorStyle,e.props.style]),disabled:e.disable,readonly:e.readonly,title:e.title||void 0,placeholder:e.placeholder||void 0,tabindex:e.tabIndex??void 0,onFocus:n[157]||(n[157]=(...o)=>e.onTextInputFocus&&e.onTextInputFocus(...o)),onClick:n[158]||(n[158]=o=>e.$emit("click",o,e.inputMethods)),onDblclick:n[159]||(n[159]=o=>e.$emit("dblclick",o,e.inputMethods)),onMousedown:n[160]||(n[160]=o=>e.$emit("mousedown",o,e.inputMethods)),onMouseup:n[161]||(n[161]=o=>e.$emit("mouseup",o,e.inputMethods)),onMouseenter:n[162]||(n[162]=o=>e.$emit("mouseenter",o,e.inputMethods)),onMouseleave:n[163]||(n[163]=o=>e.$emit("mouseleave",o,e.inputMethods)),onMouseover:n[164]||(n[164]=o=>e.$emit("mouseover",o,e.inputMethods)),onMouseout:n[165]||(n[165]=o=>e.$emit("mouseout",o,e.inputMethods)),onMousemove:n[166]||(n[166]=o=>e.$emit("mousemove",o,e.inputMethods)),onPointerdown:n[167]||(n[167]=o=>e.$emit("pointerdown",o,e.inputMethods)),onPointerup:n[168]||(n[168]=o=>e.$emit("pointerup",o,e.inputMethods)),onPointermove:n[169]||(n[169]=o=>e.$emit("pointermove",o,e.inputMethods)),onPointerenter:n[170]||(n[170]=o=>e.$emit("pointerenter",o,e.inputMethods)),onPointerleave:n[171]||(n[171]=o=>e.$emit("pointerleave",o,e.inputMethods)),onTouchstart:n[172]||(n[172]=o=>e.$emit("touchstart",o,e.inputMethods)),onTouchend:n[173]||(n[173]=o=>e.$emit("touchend",o,e.inputMethods)),onTouchmove:n[174]||(n[174]=o=>e.$emit("touchmove",o,e.inputMethods)),onTouchcancel:n[175]||(n[175]=o=>e.$emit("touchcancel",o,e.inputMethods))},null,46,_e),[[i.vShow,!e.editing]]),i.withDirectives(i.createElementVNode("input",{ref:"inputRef",id:`${e.id}`,name:`${e.nameAttr}`,class:i.normalizeClass(["hison-input",`hison-input-${e.inputType}`,...e.editModeClassList,e.borderClass]),value:e.inputValue,style:i.normalizeStyle([e.textAlignStyle,e.placeholderColorStyle,e.props.style]),disabled:e.disable,readonly:e.readonly,type:e.inputType,title:e.title||void 0,placeholder:e.placeholder||void 0,max:e.maxNumber||void 0,min:e.minNumber||void 0,tabindex:e.tabIndex??void 0,onFocus:n[176]||(n[176]=(...o)=>e.onFocus&&e.onFocus(...o)),onBlur:n[177]||(n[177]=(...o)=>e.onBlur&&e.onBlur(...o)),onInput:n[178]||(n[178]=(...o)=>e.onInput&&e.onInput(...o)),onCompositionstart:n[179]||(n[179]=o=>e.$emit("compositionstart",o,e.inputMethods)),onCompositionupdate:n[180]||(n[180]=o=>e.$emit("compositionupdate",o,e.inputMethods)),onCompositionend:n[181]||(n[181]=o=>e.$emit("compositionend",o,e.inputMethods)),onKeydown:n[182]||(n[182]=o=>e.$emit("keydown",o,e.inputMethods)),onKeyup:n[183]||(n[183]=o=>e.$emit("keyup",o,e.inputMethods)),onDragstart:n[184]||(n[184]=o=>e.$emit("dragstart",o,e.inputMethods)),onDragend:n[185]||(n[185]=o=>e.$emit("dragend",o,e.inputMethods)),onDrag:n[186]||(n[186]=o=>e.$emit("drag",o,e.inputMethods)),onDrop:n[187]||(n[187]=o=>e.$emit("drop",o,e.inputMethods)),onCopy:n[188]||(n[188]=o=>e.$emit("copy",o,e.inputMethods)),onCut:n[189]||(n[189]=o=>e.$emit("cut",o,e.inputMethods)),onPaste:n[190]||(n[190]=o=>e.$emit("paste",o,e.inputMethods)),onWheel:n[191]||(n[191]=o=>e.$emit("wheel",o,e.inputMethods)),onContextmenu:n[192]||(n[192]=o=>e.$emit("contextmenu",o,e.inputMethods))},null,46,en),[[i.vShow,e.editing]])],64))],2)}const on=Re._export_sfc(je,[["render",nn],["__scopeId","data-v-f3c99304"]]);exports.default=on;
|