@nside/wefa 0.4.3 → 0.4.5
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/README.md +1 -1
- package/dist/LegalConsent-BxOWAO0s.js +126 -0
- package/dist/LegalConsent-ChW-GYBv.cjs +1 -0
- package/dist/LegalDocument-BM4HLw9A.js +1580 -0
- package/dist/LegalDocument-hhYW9BBO.cjs +114 -0
- package/dist/LoginView-BpDNpbMQ.cjs +1 -0
- package/dist/LoginView-bUKvV6JV.js +17 -0
- package/dist/LogoutView-BrAt0b2J.js +16 -0
- package/dist/LogoutView-D7D3LcfL.cjs +1 -0
- package/dist/angledown-DgMf_Vjv.cjs +2 -0
- package/dist/angledown-igq2UW-u.js +46 -0
- package/dist/badge-2r_VjcsG.js +102 -0
- package/dist/badge-DPwocFJ8.cjs +76 -0
- package/dist/basecomponent-CGerMr_k.cjs +146 -0
- package/dist/basecomponent-CRTLSsqZ.js +1278 -0
- package/dist/baseeditableholder-BEn83TQE.js +126 -0
- package/dist/baseeditableholder-Q1_XheNU.cjs +1 -0
- package/dist/baseicon-Ct8wtBEp.cjs +34 -0
- package/dist/baseicon-DdvhP0UT.js +90 -0
- package/dist/baseinput-B6KUYtrd.js +37 -0
- package/dist/baseinput-D8710HSg.cjs +1 -0
- package/dist/bff/openapi.yaml +7 -0
- package/dist/button-M3QREAcT.cjs +651 -0
- package/dist/button-xI3Wu15Z.js +311 -0
- package/dist/calendar-B8nJAQne.js +2891 -0
- package/dist/calendar-CW9WbT3C.cjs +477 -0
- package/dist/card-BXosepCe.js +57 -0
- package/dist/card-Db30JagR.cjs +32 -0
- package/dist/check-BYTdkWQh.js +46 -0
- package/dist/check-D4kxzECF.cjs +2 -0
- package/dist/checkbox-BIDoCr_X.cjs +142 -0
- package/dist/checkbox-TAWN7HJG.js +323 -0
- package/dist/chevrondown-DLIH6sRy.cjs +2 -0
- package/dist/chevrondown-v3qKRLEG.js +46 -0
- package/dist/chevronleft-DMbyAEgw.cjs +2 -0
- package/dist/chevronleft-dQlHS1Vs.js +46 -0
- package/dist/chevronright-B3qtGWZb.js +46 -0
- package/dist/chevronright-BisalZVe.cjs +2 -0
- package/dist/chip-CBoKYRL5.js +107 -0
- package/dist/chip-CLwNi1p_.cjs +54 -0
- package/dist/chunk-BK-Lzi7j.cjs +1 -0
- package/dist/chunk-DgQ9yJBH.js +17 -0
- package/dist/classnames-4RuV7Ryo.js +19 -0
- package/dist/classnames-DqVQ5xbt.cjs +1 -0
- package/dist/containers.cjs +23 -26
- package/dist/containers.d.ts +0 -116
- package/dist/containers.js +4476 -5541
- package/dist/focustrap-BhHF6zvb.js +558 -0
- package/dist/focustrap-C_v0dFmU.cjs +152 -0
- package/dist/inputnumber-CvuB8fHc.cjs +195 -0
- package/dist/inputnumber-UfGZdwk2.js +983 -0
- package/dist/inputtext-B-iUN1cV.js +108 -0
- package/dist/inputtext-D2Ay4aYr.cjs +79 -0
- package/dist/legalConsent-B3erdrHX.cjs +1 -0
- package/dist/legalConsent-kc_KWyR6.js +66 -0
- package/dist/lib.cjs +1331 -1
- package/dist/lib.d.ts +0 -728
- package/dist/lib.js +22977 -35
- package/dist/locales-4eL4-K7f.js +3168 -0
- package/dist/locales-DzyBr_JU.cjs +5 -0
- package/dist/markdown-Cb6J3R4j.js +28 -0
- package/dist/markdown-Dxqg6Ggd.cjs +1 -0
- package/dist/network-DD_yGfK6.js +2404 -0
- package/dist/network-uPe9-HeS.cjs +9 -0
- package/dist/network.cjs +1 -1
- package/dist/network.d.ts +0 -103
- package/dist/network.js +2 -48
- package/dist/portal-BbZw4bN9.js +265 -0
- package/dist/portal-pIcEXWz1.cjs +2 -0
- package/dist/{index-EDm9-cRY.cjs → progressbar-BPR5tRX7.cjs} +2 -2
- package/dist/progressbar-CzckKCUr.js +96 -0
- package/dist/rating-DsIxcJXU.js +332 -0
- package/dist/rating-HfRWRXuI.cjs +61 -0
- package/dist/ripple-CoTE8rF8.js +501 -0
- package/dist/ripple-UYfqtU0m.cjs +24 -0
- package/dist/router-CR-sxf1q.js +34 -0
- package/dist/router-qXH6kffG.cjs +1 -0
- package/dist/router.cjs +1 -1
- package/dist/router.d.ts +0 -54
- package/dist/router.js +2 -16
- package/dist/select-C05BBcmi.js +2357 -0
- package/dist/select-CZouTpLB.cjs +360 -0
- package/dist/stores-BAbCgIKW.cjs +1 -0
- package/dist/stores-C5CUNzM_.js +203 -0
- package/dist/textarea-DUmMHVXf.cjs +84 -0
- package/dist/textarea-f6-j7m1N.js +131 -0
- package/dist/times--t6-zeg6.js +46 -0
- package/dist/times-GcOHYs3E.cjs +2 -0
- package/dist/timescircle-CHGzPrwL.cjs +2 -0
- package/dist/timescircle-_NJIsGD1.js +48 -0
- package/dist/wefa.css +2 -1
- package/package.json +36 -34
- package/src/components/DashboardComponent/DashboardGroupComponent.vue +1 -1
- package/src/components/NetworkButton/__tests__/ApiMutationButton.test.ts +12 -3
- package/src/components/NetworkButton/__tests__/ApiQueryButton.test.ts +12 -3
- package/src/containers/LayoutContainer/SideNavigationComponent/MainComponent/NavigationLinkComponent.vue +1 -1
- package/src/containers/SideMenuContainer/SideMenuContainer.vue +14 -3
- package/src/containers/helpers.ts +1 -1
- package/src/router/guards.ts +2 -2
- package/src/stores/__tests__/backend/jwt.test.ts +6 -6
- package/src/stores/__tests__/backend/oauth.test.ts +1 -1
- package/src/stores/__tests__/backend/token.test.ts +5 -5
- package/src/stores/backend/schemes/jwt.ts +3 -3
- package/src/stores/backend/schemes/token.ts +6 -7
- package/dist/LegalConsent-DQ7fkgVc.cjs +0 -1
- package/dist/LegalConsent-OLyvuzRY.js +0 -151
- package/dist/LegalDocument-B-nntRW7.cjs +0 -109
- package/dist/LegalDocument-BKebNzIK.js +0 -1330
- package/dist/LoginView-DUPa_PsC.js +0 -24
- package/dist/LoginView-Dihs8n_X.cjs +0 -1
- package/dist/LogoutView-DAh7MrFi.js +0 -19
- package/dist/LogoutView-Fl3nfeJ0.cjs +0 -1
- package/dist/apiClient-BHDjT0dU.js +0 -928
- package/dist/apiClient-Cr0IvG5Z.cjs +0 -1
- package/dist/axios-CZvsFspN.js +0 -1887
- package/dist/axios-DMqeKDaq.cjs +0 -6
- package/dist/index--_rUTrqU.js +0 -1414
- package/dist/index-05ASaj7N.cjs +0 -477
- package/dist/index-B7hJ2pku.cjs +0 -61
- package/dist/index-BHSxFTgZ.js +0 -49
- package/dist/index-BaA_oL1s.cjs +0 -32
- package/dist/index-Be5h48vc.js +0 -3530
- package/dist/index-Becfy0pF.cjs +0 -2
- package/dist/index-CPv4agmV.js +0 -400
- package/dist/index-CgAb-gZi.js +0 -89
- package/dist/index-DFSkcsx-.cjs +0 -943
- package/dist/index-DGUVQqZw.js +0 -208
- package/dist/index-DRozw3P8.js +0 -167
- package/dist/index-DfCQoHSf.cjs +0 -146
- package/dist/index-DkuJMEY1.js +0 -6731
- package/dist/index-Dv6jyKbT.js +0 -47
- package/dist/index-IGN7_cyg.cjs +0 -2
- package/dist/index-lFl6UsTa.js +0 -212
- package/dist/index-lQmq7gxp.cjs +0 -54
- package/dist/index-t0sdL3f2.cjs +0 -84
- package/dist/lib-DZzubLGt.js +0 -26376
- package/dist/lib-lTzD7ltX.cjs +0 -2104
- package/dist/libRoutes-B-H3e9wZ.js +0 -22
- package/dist/libRoutes-Cl3TklhN.cjs +0 -1
|
@@ -0,0 +1,983 @@
|
|
|
1
|
+
import { t as e } from "./chunk-DgQ9yJBH.js";
|
|
2
|
+
import { t } from "./classnames-4RuV7Ryo.js";
|
|
3
|
+
import { B as n, E as r, dt as i, r as a, x as o } from "./basecomponent-CRTLSsqZ.js";
|
|
4
|
+
import { t as s } from "./baseicon-DdvhP0UT.js";
|
|
5
|
+
import { t as c } from "./times--t6-zeg6.js";
|
|
6
|
+
import { t as l } from "./baseinput-B6KUYtrd.js";
|
|
7
|
+
import { n as u } from "./inputtext-B-iUN1cV.js";
|
|
8
|
+
import { t as d } from "./angledown-igq2UW-u.js";
|
|
9
|
+
import { createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, mergeProps as _, normalizeClass as v, normalizeStyle as y, openBlock as b, renderSlot as x, resolveComponent as S, resolveDynamicComponent as C, toHandlers as w } from "vue";
|
|
10
|
+
//#region node_modules/@primevue/icons/angleup/index.mjs
|
|
11
|
+
var T = {
|
|
12
|
+
name: "AngleUpIcon",
|
|
13
|
+
extends: s
|
|
14
|
+
};
|
|
15
|
+
function E(e) {
|
|
16
|
+
return A(e) || k(e) || O(e) || D();
|
|
17
|
+
}
|
|
18
|
+
function D() {
|
|
19
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
20
|
+
}
|
|
21
|
+
function O(e, t) {
|
|
22
|
+
if (e) {
|
|
23
|
+
if (typeof e == "string") return j(e, t);
|
|
24
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
25
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? j(e, t) : void 0;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function k(e) {
|
|
29
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
30
|
+
}
|
|
31
|
+
function A(e) {
|
|
32
|
+
if (Array.isArray(e)) return j(e);
|
|
33
|
+
}
|
|
34
|
+
function j(e, t) {
|
|
35
|
+
(t == null || t > e.length) && (t = e.length);
|
|
36
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
37
|
+
return r;
|
|
38
|
+
}
|
|
39
|
+
function M(e, t, n, r, i, a) {
|
|
40
|
+
return b(), m("svg", _({
|
|
41
|
+
width: "14",
|
|
42
|
+
height: "14",
|
|
43
|
+
viewBox: "0 0 14 14",
|
|
44
|
+
fill: "none",
|
|
45
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
46
|
+
}, e.pti()), E(t[0] ||= [h("path", {
|
|
47
|
+
d: "M10.4134 9.49931C10.3148 9.49977 10.2172 9.48055 10.1262 9.44278C10.0352 9.405 9.95263 9.34942 9.88338 9.27931L6.88338 6.27931L3.88338 9.27931C3.73811 9.34946 3.57409 9.3709 3.41567 9.34044C3.25724 9.30999 3.11286 9.22926 3.00395 9.11025C2.89504 8.99124 2.82741 8.84028 2.8111 8.67978C2.79478 8.51928 2.83065 8.35781 2.91338 8.21931L6.41338 4.71931C6.55401 4.57886 6.74463 4.49997 6.94338 4.49997C7.14213 4.49997 7.33276 4.57886 7.47338 4.71931L10.9734 8.21931C11.1138 8.35994 11.1927 8.55056 11.1927 8.74931C11.1927 8.94806 11.1138 9.13868 10.9734 9.27931C10.9007 9.35315 10.8132 9.41089 10.7168 9.44879C10.6203 9.48669 10.5169 9.5039 10.4134 9.49931Z",
|
|
48
|
+
fill: "currentColor"
|
|
49
|
+
}, null, -1)]), 16);
|
|
50
|
+
}
|
|
51
|
+
T.render = M;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region node_modules/primevue/inputnumber/style/index.mjs
|
|
54
|
+
var N = a.extend({
|
|
55
|
+
name: "inputnumber",
|
|
56
|
+
style: "\n .p-inputnumber {\n display: inline-flex;\n position: relative;\n }\n\n .p-inputnumber-button {\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n cursor: pointer;\n background: dt('inputnumber.button.background');\n color: dt('inputnumber.button.color');\n width: dt('inputnumber.button.width');\n transition:\n background dt('inputnumber.transition.duration'),\n color dt('inputnumber.transition.duration'),\n border-color dt('inputnumber.transition.duration'),\n outline-color dt('inputnumber.transition.duration');\n }\n\n .p-inputnumber-button:disabled {\n cursor: auto;\n }\n\n .p-inputnumber-button:not(:disabled):hover {\n background: dt('inputnumber.button.hover.background');\n color: dt('inputnumber.button.hover.color');\n }\n\n .p-inputnumber-button:not(:disabled):active {\n background: dt('inputnumber.button.active.background');\n color: dt('inputnumber.button.active.color');\n }\n\n .p-inputnumber-stacked .p-inputnumber-button {\n position: relative;\n flex: 1 1 auto;\n border: 0 none;\n }\n\n .p-inputnumber-stacked .p-inputnumber-button-group {\n display: flex;\n flex-direction: column;\n position: absolute;\n inset-block-start: 1px;\n inset-inline-end: 1px;\n height: calc(100% - 2px);\n z-index: 1;\n }\n\n .p-inputnumber-stacked .p-inputnumber-increment-button {\n padding: 0;\n border-start-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);\n }\n\n .p-inputnumber-stacked .p-inputnumber-decrement-button {\n padding: 0;\n border-end-end-radius: calc(dt('inputnumber.button.border.radius') - 1px);\n }\n\n .p-inputnumber-stacked .p-inputnumber-input {\n padding-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));\n }\n\n .p-inputnumber-horizontal .p-inputnumber-button {\n border: 1px solid dt('inputnumber.button.border.color');\n }\n\n .p-inputnumber-horizontal .p-inputnumber-button:hover {\n border-color: dt('inputnumber.button.hover.border.color');\n }\n\n .p-inputnumber-horizontal .p-inputnumber-button:active {\n border-color: dt('inputnumber.button.active.border.color');\n }\n\n .p-inputnumber-horizontal .p-inputnumber-increment-button {\n order: 3;\n border-start-end-radius: dt('inputnumber.button.border.radius');\n border-end-end-radius: dt('inputnumber.button.border.radius');\n border-inline-start: 0 none;\n }\n\n .p-inputnumber-horizontal .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n }\n\n .p-inputnumber-horizontal .p-inputnumber-decrement-button {\n order: 1;\n border-start-start-radius: dt('inputnumber.button.border.radius');\n border-end-start-radius: dt('inputnumber.button.border.radius');\n border-inline-end: 0 none;\n }\n\n .p-floatlabel:has(.p-inputnumber-horizontal) label {\n margin-inline-start: dt('inputnumber.button.width');\n }\n\n .p-inputnumber-vertical {\n flex-direction: column;\n }\n\n .p-inputnumber-vertical .p-inputnumber-button {\n border: 1px solid dt('inputnumber.button.border.color');\n padding: dt('inputnumber.button.vertical.padding');\n }\n\n .p-inputnumber-vertical .p-inputnumber-button:hover {\n border-color: dt('inputnumber.button.hover.border.color');\n }\n\n .p-inputnumber-vertical .p-inputnumber-button:active {\n border-color: dt('inputnumber.button.active.border.color');\n }\n\n .p-inputnumber-vertical .p-inputnumber-increment-button {\n order: 1;\n border-start-start-radius: dt('inputnumber.button.border.radius');\n border-start-end-radius: dt('inputnumber.button.border.radius');\n width: 100%;\n border-block-end: 0 none;\n }\n\n .p-inputnumber-vertical .p-inputnumber-input {\n order: 2;\n border-radius: 0;\n text-align: center;\n }\n\n .p-inputnumber-vertical .p-inputnumber-decrement-button {\n order: 3;\n border-end-start-radius: dt('inputnumber.button.border.radius');\n border-end-end-radius: dt('inputnumber.button.border.radius');\n width: 100%;\n border-block-start: 0 none;\n }\n\n .p-inputnumber-input {\n flex: 1 1 auto;\n }\n\n .p-inputnumber-fluid {\n width: 100%;\n }\n\n .p-inputnumber-fluid .p-inputnumber-input {\n width: 1%;\n }\n\n .p-inputnumber-fluid.p-inputnumber-vertical .p-inputnumber-input {\n width: 100%;\n }\n\n .p-inputnumber:has(.p-inputtext-sm) .p-inputnumber-button .p-icon {\n font-size: dt('form.field.sm.font.size');\n width: dt('form.field.sm.font.size');\n height: dt('form.field.sm.font.size');\n }\n\n .p-inputnumber:has(.p-inputtext-lg) .p-inputnumber-button .p-icon {\n font-size: dt('form.field.lg.font.size');\n width: dt('form.field.lg.font.size');\n height: dt('form.field.lg.font.size');\n }\n\n .p-inputnumber-clear-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n cursor: pointer;\n inset-inline-end: dt('form.field.padding.x');\n color: dt('form.field.icon.color');\n }\n\n .p-inputnumber:has(.p-inputnumber-clear-icon) .p-inputnumber-input {\n padding-inline-end: calc((dt('form.field.padding.x') * 2) + dt('icon.size'));\n }\n\n .p-inputnumber-stacked .p-inputnumber-clear-icon {\n inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));\n }\n\n .p-inputnumber-stacked:has(.p-inputnumber-clear-icon) .p-inputnumber-input {\n padding-inline-end: calc(dt('inputnumber.button.width') + (dt('form.field.padding.x') * 2) + dt('icon.size'));\n }\n\n .p-inputnumber-horizontal .p-inputnumber-clear-icon {\n inset-inline-end: calc(dt('inputnumber.button.width') + dt('form.field.padding.x'));\n }\n",
|
|
57
|
+
classes: {
|
|
58
|
+
root: function(e) {
|
|
59
|
+
var t = e.instance, n = e.props;
|
|
60
|
+
return ["p-inputnumber p-component p-inputwrapper", {
|
|
61
|
+
"p-invalid": t.$invalid,
|
|
62
|
+
"p-inputwrapper-filled": t.$filled || n.allowEmpty === !1,
|
|
63
|
+
"p-inputwrapper-focus": t.focused,
|
|
64
|
+
"p-inputnumber-stacked": n.showButtons && n.buttonLayout === "stacked",
|
|
65
|
+
"p-inputnumber-horizontal": n.showButtons && n.buttonLayout === "horizontal",
|
|
66
|
+
"p-inputnumber-vertical": n.showButtons && n.buttonLayout === "vertical",
|
|
67
|
+
"p-inputnumber-fluid": t.$fluid
|
|
68
|
+
}];
|
|
69
|
+
},
|
|
70
|
+
pcInputText: "p-inputnumber-input",
|
|
71
|
+
clearIcon: "p-inputnumber-clear-icon",
|
|
72
|
+
buttonGroup: "p-inputnumber-button-group",
|
|
73
|
+
incrementButton: function(e) {
|
|
74
|
+
var t = e.instance, n = e.props;
|
|
75
|
+
return ["p-inputnumber-button p-inputnumber-increment-button", { "p-disabled": n.showButtons && n.max !== null && t.maxBoundry() }];
|
|
76
|
+
},
|
|
77
|
+
decrementButton: function(e) {
|
|
78
|
+
var t = e.instance, n = e.props;
|
|
79
|
+
return ["p-inputnumber-button p-inputnumber-decrement-button", { "p-disabled": n.showButtons && n.min !== null && t.minBoundry() }];
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}), P = /* @__PURE__ */ e({ default: () => J }), F = {
|
|
83
|
+
name: "BaseInputNumber",
|
|
84
|
+
extends: l,
|
|
85
|
+
props: {
|
|
86
|
+
format: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !0
|
|
89
|
+
},
|
|
90
|
+
showButtons: {
|
|
91
|
+
type: Boolean,
|
|
92
|
+
default: !1
|
|
93
|
+
},
|
|
94
|
+
buttonLayout: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "stacked"
|
|
97
|
+
},
|
|
98
|
+
incrementButtonClass: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: null
|
|
101
|
+
},
|
|
102
|
+
decrementButtonClass: {
|
|
103
|
+
type: String,
|
|
104
|
+
default: null
|
|
105
|
+
},
|
|
106
|
+
incrementButtonIcon: {
|
|
107
|
+
type: String,
|
|
108
|
+
default: void 0
|
|
109
|
+
},
|
|
110
|
+
incrementIcon: {
|
|
111
|
+
type: String,
|
|
112
|
+
default: void 0
|
|
113
|
+
},
|
|
114
|
+
decrementButtonIcon: {
|
|
115
|
+
type: String,
|
|
116
|
+
default: void 0
|
|
117
|
+
},
|
|
118
|
+
decrementIcon: {
|
|
119
|
+
type: String,
|
|
120
|
+
default: void 0
|
|
121
|
+
},
|
|
122
|
+
locale: {
|
|
123
|
+
type: String,
|
|
124
|
+
default: void 0
|
|
125
|
+
},
|
|
126
|
+
localeMatcher: {
|
|
127
|
+
type: String,
|
|
128
|
+
default: void 0
|
|
129
|
+
},
|
|
130
|
+
mode: {
|
|
131
|
+
type: String,
|
|
132
|
+
default: "decimal"
|
|
133
|
+
},
|
|
134
|
+
prefix: {
|
|
135
|
+
type: String,
|
|
136
|
+
default: null
|
|
137
|
+
},
|
|
138
|
+
suffix: {
|
|
139
|
+
type: String,
|
|
140
|
+
default: null
|
|
141
|
+
},
|
|
142
|
+
currency: {
|
|
143
|
+
type: String,
|
|
144
|
+
default: void 0
|
|
145
|
+
},
|
|
146
|
+
currencyDisplay: {
|
|
147
|
+
type: String,
|
|
148
|
+
default: void 0
|
|
149
|
+
},
|
|
150
|
+
useGrouping: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: !0
|
|
153
|
+
},
|
|
154
|
+
minFractionDigits: {
|
|
155
|
+
type: Number,
|
|
156
|
+
default: void 0
|
|
157
|
+
},
|
|
158
|
+
maxFractionDigits: {
|
|
159
|
+
type: Number,
|
|
160
|
+
default: void 0
|
|
161
|
+
},
|
|
162
|
+
roundingMode: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: "halfExpand",
|
|
165
|
+
validator: function(e) {
|
|
166
|
+
return [
|
|
167
|
+
"ceil",
|
|
168
|
+
"floor",
|
|
169
|
+
"expand",
|
|
170
|
+
"trunc",
|
|
171
|
+
"halfCeil",
|
|
172
|
+
"halfFloor",
|
|
173
|
+
"halfExpand",
|
|
174
|
+
"halfTrunc",
|
|
175
|
+
"halfEven"
|
|
176
|
+
].includes(e);
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
min: {
|
|
180
|
+
type: Number,
|
|
181
|
+
default: null
|
|
182
|
+
},
|
|
183
|
+
max: {
|
|
184
|
+
type: Number,
|
|
185
|
+
default: null
|
|
186
|
+
},
|
|
187
|
+
step: {
|
|
188
|
+
type: Number,
|
|
189
|
+
default: 1
|
|
190
|
+
},
|
|
191
|
+
allowEmpty: {
|
|
192
|
+
type: Boolean,
|
|
193
|
+
default: !0
|
|
194
|
+
},
|
|
195
|
+
highlightOnFocus: {
|
|
196
|
+
type: Boolean,
|
|
197
|
+
default: !1
|
|
198
|
+
},
|
|
199
|
+
showClear: {
|
|
200
|
+
type: Boolean,
|
|
201
|
+
default: !1
|
|
202
|
+
},
|
|
203
|
+
readonly: {
|
|
204
|
+
type: Boolean,
|
|
205
|
+
default: !1
|
|
206
|
+
},
|
|
207
|
+
placeholder: {
|
|
208
|
+
type: String,
|
|
209
|
+
default: null
|
|
210
|
+
},
|
|
211
|
+
inputId: {
|
|
212
|
+
type: String,
|
|
213
|
+
default: null
|
|
214
|
+
},
|
|
215
|
+
inputClass: {
|
|
216
|
+
type: [String, Object],
|
|
217
|
+
default: null
|
|
218
|
+
},
|
|
219
|
+
inputStyle: {
|
|
220
|
+
type: Object,
|
|
221
|
+
default: null
|
|
222
|
+
},
|
|
223
|
+
ariaLabelledby: {
|
|
224
|
+
type: String,
|
|
225
|
+
default: null
|
|
226
|
+
},
|
|
227
|
+
ariaLabel: {
|
|
228
|
+
type: String,
|
|
229
|
+
default: null
|
|
230
|
+
},
|
|
231
|
+
required: {
|
|
232
|
+
type: Boolean,
|
|
233
|
+
default: !1
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
style: N,
|
|
237
|
+
provide: function() {
|
|
238
|
+
return {
|
|
239
|
+
$pcInputNumber: this,
|
|
240
|
+
$parentInstance: this
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
};
|
|
244
|
+
function I(e) {
|
|
245
|
+
"@babel/helpers - typeof";
|
|
246
|
+
return I = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
247
|
+
return typeof e;
|
|
248
|
+
} : function(e) {
|
|
249
|
+
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
250
|
+
}, I(e);
|
|
251
|
+
}
|
|
252
|
+
function L(e, t) {
|
|
253
|
+
var n = Object.keys(e);
|
|
254
|
+
if (Object.getOwnPropertySymbols) {
|
|
255
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
256
|
+
t && (r = r.filter(function(t) {
|
|
257
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
258
|
+
})), n.push.apply(n, r);
|
|
259
|
+
}
|
|
260
|
+
return n;
|
|
261
|
+
}
|
|
262
|
+
function R(e) {
|
|
263
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
264
|
+
var n = arguments[t] == null ? {} : arguments[t];
|
|
265
|
+
t % 2 ? L(Object(n), !0).forEach(function(t) {
|
|
266
|
+
z(e, t, n[t]);
|
|
267
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : L(Object(n)).forEach(function(t) {
|
|
268
|
+
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
return e;
|
|
272
|
+
}
|
|
273
|
+
function z(e, t, n) {
|
|
274
|
+
return (t = B(t)) in e ? Object.defineProperty(e, t, {
|
|
275
|
+
value: n,
|
|
276
|
+
enumerable: !0,
|
|
277
|
+
configurable: !0,
|
|
278
|
+
writable: !0
|
|
279
|
+
}) : e[t] = n, e;
|
|
280
|
+
}
|
|
281
|
+
function B(e) {
|
|
282
|
+
var t = V(e, "string");
|
|
283
|
+
return I(t) == "symbol" ? t : t + "";
|
|
284
|
+
}
|
|
285
|
+
function V(e, t) {
|
|
286
|
+
if (I(e) != "object" || !e) return e;
|
|
287
|
+
var n = e[Symbol.toPrimitive];
|
|
288
|
+
if (n !== void 0) {
|
|
289
|
+
var r = n.call(e, t);
|
|
290
|
+
if (I(r) != "object") return r;
|
|
291
|
+
throw TypeError("@@toPrimitive must return a primitive value.");
|
|
292
|
+
}
|
|
293
|
+
return (t === "string" ? String : Number)(e);
|
|
294
|
+
}
|
|
295
|
+
function H(e) {
|
|
296
|
+
return K(e) || G(e) || W(e) || U();
|
|
297
|
+
}
|
|
298
|
+
function U() {
|
|
299
|
+
throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
300
|
+
}
|
|
301
|
+
function W(e, t) {
|
|
302
|
+
if (e) {
|
|
303
|
+
if (typeof e == "string") return q(e, t);
|
|
304
|
+
var n = {}.toString.call(e).slice(8, -1);
|
|
305
|
+
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? q(e, t) : void 0;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
function G(e) {
|
|
309
|
+
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
310
|
+
}
|
|
311
|
+
function K(e) {
|
|
312
|
+
if (Array.isArray(e)) return q(e);
|
|
313
|
+
}
|
|
314
|
+
function q(e, t) {
|
|
315
|
+
(t == null || t > e.length) && (t = e.length);
|
|
316
|
+
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
317
|
+
return r;
|
|
318
|
+
}
|
|
319
|
+
var J = {
|
|
320
|
+
name: "InputNumber",
|
|
321
|
+
extends: F,
|
|
322
|
+
inheritAttrs: !1,
|
|
323
|
+
emits: [
|
|
324
|
+
"input",
|
|
325
|
+
"focus",
|
|
326
|
+
"blur"
|
|
327
|
+
],
|
|
328
|
+
inject: { $pcFluid: { default: null } },
|
|
329
|
+
numberFormat: null,
|
|
330
|
+
_numeral: null,
|
|
331
|
+
_decimal: null,
|
|
332
|
+
_group: null,
|
|
333
|
+
_minusSign: null,
|
|
334
|
+
_currency: null,
|
|
335
|
+
_suffix: null,
|
|
336
|
+
_prefix: null,
|
|
337
|
+
_index: null,
|
|
338
|
+
groupChar: "",
|
|
339
|
+
isSpecialChar: null,
|
|
340
|
+
prefixChar: null,
|
|
341
|
+
suffixChar: null,
|
|
342
|
+
timer: null,
|
|
343
|
+
data: function() {
|
|
344
|
+
return {
|
|
345
|
+
d_modelValue: this.d_value,
|
|
346
|
+
focused: !1
|
|
347
|
+
};
|
|
348
|
+
},
|
|
349
|
+
watch: {
|
|
350
|
+
d_value: {
|
|
351
|
+
immediate: !0,
|
|
352
|
+
handler: function(e) {
|
|
353
|
+
var t;
|
|
354
|
+
this.d_modelValue = e, (t = this.$refs.clearIcon) != null && (t = t.$el) != null && t.style && (this.$refs.clearIcon.$el.style.display = o(e) ? "none" : "block");
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
locale: function(e, t) {
|
|
358
|
+
this.updateConstructParser(e, t);
|
|
359
|
+
},
|
|
360
|
+
localeMatcher: function(e, t) {
|
|
361
|
+
this.updateConstructParser(e, t);
|
|
362
|
+
},
|
|
363
|
+
mode: function(e, t) {
|
|
364
|
+
this.updateConstructParser(e, t);
|
|
365
|
+
},
|
|
366
|
+
currency: function(e, t) {
|
|
367
|
+
this.updateConstructParser(e, t);
|
|
368
|
+
},
|
|
369
|
+
currencyDisplay: function(e, t) {
|
|
370
|
+
this.updateConstructParser(e, t);
|
|
371
|
+
},
|
|
372
|
+
useGrouping: function(e, t) {
|
|
373
|
+
this.updateConstructParser(e, t);
|
|
374
|
+
},
|
|
375
|
+
minFractionDigits: function(e, t) {
|
|
376
|
+
this.updateConstructParser(e, t);
|
|
377
|
+
},
|
|
378
|
+
maxFractionDigits: function(e, t) {
|
|
379
|
+
this.updateConstructParser(e, t);
|
|
380
|
+
},
|
|
381
|
+
suffix: function(e, t) {
|
|
382
|
+
this.updateConstructParser(e, t);
|
|
383
|
+
},
|
|
384
|
+
prefix: function(e, t) {
|
|
385
|
+
this.updateConstructParser(e, t);
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
created: function() {
|
|
389
|
+
this.constructParser();
|
|
390
|
+
},
|
|
391
|
+
mounted: function() {
|
|
392
|
+
var e;
|
|
393
|
+
(e = this.$refs.clearIcon) != null && (e = e.$el) != null && e.style && (this.$refs.clearIcon.$el.style.display = this.$filled ? "block" : "none");
|
|
394
|
+
},
|
|
395
|
+
methods: {
|
|
396
|
+
getOptions: function() {
|
|
397
|
+
return {
|
|
398
|
+
localeMatcher: this.localeMatcher,
|
|
399
|
+
style: this.mode,
|
|
400
|
+
currency: this.currency,
|
|
401
|
+
currencyDisplay: this.currencyDisplay,
|
|
402
|
+
useGrouping: this.useGrouping,
|
|
403
|
+
minimumFractionDigits: this.minFractionDigits,
|
|
404
|
+
maximumFractionDigits: this.maxFractionDigits,
|
|
405
|
+
roundingMode: this.roundingMode
|
|
406
|
+
};
|
|
407
|
+
},
|
|
408
|
+
constructParser: function() {
|
|
409
|
+
this.numberFormat = new Intl.NumberFormat(this.locale, this.getOptions());
|
|
410
|
+
var e = H(new Intl.NumberFormat(this.locale, { useGrouping: !1 }).format(9876543210)).reverse(), t = new Map(e.map(function(e, t) {
|
|
411
|
+
return [e, t];
|
|
412
|
+
}));
|
|
413
|
+
this._numeral = RegExp(`[${e.join("")}]`, "g"), this._group = this.getGroupingExpression(), this._minusSign = this.getMinusSignExpression(), this._currency = this.getCurrencyExpression(), this._decimal = this.getDecimalExpression(), this._suffix = this.getSuffixExpression(), this._prefix = this.getPrefixExpression(), this._index = function(e) {
|
|
414
|
+
return t.get(e);
|
|
415
|
+
};
|
|
416
|
+
},
|
|
417
|
+
updateConstructParser: function(e, t) {
|
|
418
|
+
e !== t && this.constructParser();
|
|
419
|
+
},
|
|
420
|
+
escapeRegExp: function(e) {
|
|
421
|
+
return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
|
422
|
+
},
|
|
423
|
+
getDecimalExpression: function() {
|
|
424
|
+
var e = new Intl.NumberFormat(this.locale, R(R({}, this.getOptions()), {}, { useGrouping: !1 })), t = e.format(1.1);
|
|
425
|
+
return t === e.format(1) ? /* @__PURE__ */ RegExp("[]", "g") : RegExp(`[${t.replace(this._currency, "").trim().replace(this._numeral, "")}]`, "g");
|
|
426
|
+
},
|
|
427
|
+
getGroupingExpression: function() {
|
|
428
|
+
return this.groupChar = new Intl.NumberFormat(this.locale, { useGrouping: !0 }).format(1e6).trim().replace(this._numeral, "").charAt(0), RegExp(`[${this.groupChar}]`, "g");
|
|
429
|
+
},
|
|
430
|
+
getMinusSignExpression: function() {
|
|
431
|
+
var e = new Intl.NumberFormat(this.locale, { useGrouping: !1 });
|
|
432
|
+
return RegExp(`[${e.format(-1).trim().replace(this._numeral, "")}]`, "g");
|
|
433
|
+
},
|
|
434
|
+
getCurrencyExpression: function() {
|
|
435
|
+
if (this.currency) {
|
|
436
|
+
var e = new Intl.NumberFormat(this.locale, {
|
|
437
|
+
style: "currency",
|
|
438
|
+
currency: this.currency,
|
|
439
|
+
currencyDisplay: this.currencyDisplay,
|
|
440
|
+
minimumFractionDigits: 0,
|
|
441
|
+
maximumFractionDigits: 0,
|
|
442
|
+
roundingMode: this.roundingMode
|
|
443
|
+
});
|
|
444
|
+
return RegExp(`[${e.format(1).replace(/\s/g, "").replace(this._numeral, "").replace(this._group, "")}]`, "g");
|
|
445
|
+
}
|
|
446
|
+
return /* @__PURE__ */ RegExp("[]", "g");
|
|
447
|
+
},
|
|
448
|
+
getPrefixExpression: function() {
|
|
449
|
+
return this.prefix ? this.prefixChar = this.prefix : this.prefixChar = new Intl.NumberFormat(this.locale, {
|
|
450
|
+
style: this.mode,
|
|
451
|
+
currency: this.currency,
|
|
452
|
+
currencyDisplay: this.currencyDisplay
|
|
453
|
+
}).format(1).split("1")[0], RegExp(`${this.escapeRegExp(this.prefixChar || "")}`, "g");
|
|
454
|
+
},
|
|
455
|
+
getSuffixExpression: function() {
|
|
456
|
+
return this.suffix ? this.suffixChar = this.suffix : this.suffixChar = new Intl.NumberFormat(this.locale, {
|
|
457
|
+
style: this.mode,
|
|
458
|
+
currency: this.currency,
|
|
459
|
+
currencyDisplay: this.currencyDisplay,
|
|
460
|
+
minimumFractionDigits: 0,
|
|
461
|
+
maximumFractionDigits: 0,
|
|
462
|
+
roundingMode: this.roundingMode
|
|
463
|
+
}).format(1).split("1")[1], RegExp(`${this.escapeRegExp(this.suffixChar || "")}`, "g");
|
|
464
|
+
},
|
|
465
|
+
formatValue: function(e) {
|
|
466
|
+
if (e != null) {
|
|
467
|
+
if (e === "-") return e;
|
|
468
|
+
if (this.format) {
|
|
469
|
+
var t = new Intl.NumberFormat(this.locale, this.getOptions()).format(e);
|
|
470
|
+
return this.prefix && (t = this.prefix + t), this.suffix && (t += this.suffix), t;
|
|
471
|
+
}
|
|
472
|
+
return e.toString();
|
|
473
|
+
}
|
|
474
|
+
return "";
|
|
475
|
+
},
|
|
476
|
+
parseValue: function(e) {
|
|
477
|
+
var t = e.replace(this._suffix, "").replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").replace(this._group, "").replace(this._minusSign, "-").replace(this._decimal, ".").replace(this._numeral, this._index);
|
|
478
|
+
if (t) {
|
|
479
|
+
if (t === "-") return t;
|
|
480
|
+
var n = +t;
|
|
481
|
+
return isNaN(n) ? null : n;
|
|
482
|
+
}
|
|
483
|
+
return null;
|
|
484
|
+
},
|
|
485
|
+
repeat: function(e, t, n) {
|
|
486
|
+
var r = this;
|
|
487
|
+
if (!this.readonly) {
|
|
488
|
+
var i = t || 500;
|
|
489
|
+
this.clearTimer(), this.timer = setTimeout(function() {
|
|
490
|
+
r.repeat(e, 40, n);
|
|
491
|
+
}, i), this.spin(e, n);
|
|
492
|
+
}
|
|
493
|
+
},
|
|
494
|
+
addWithPrecision: function(e, t) {
|
|
495
|
+
var n = e.toString(), r = t.toString(), i = n.includes(".") ? n.split(".")[1].length : 0, a = r.includes(".") ? r.split(".")[1].length : 0, o = 10 ** Math.max(i, a);
|
|
496
|
+
return Math.round((e + t) * o) / o;
|
|
497
|
+
},
|
|
498
|
+
spin: function(e, t) {
|
|
499
|
+
if (this.$refs.input) {
|
|
500
|
+
var n = this.step * t, r = this.parseValue(this.$refs.input.$el.value) || 0, i = this.validateValue(this.addWithPrecision(r, n));
|
|
501
|
+
this.updateInput(i, null, "spin"), this.updateModel(e, i), this.handleOnInput(e, r, i);
|
|
502
|
+
}
|
|
503
|
+
},
|
|
504
|
+
onUpButtonMouseDown: function(e) {
|
|
505
|
+
this.disabled || (this.$refs.input.$el.focus(), this.repeat(e, null, 1), e.preventDefault());
|
|
506
|
+
},
|
|
507
|
+
onUpButtonMouseUp: function() {
|
|
508
|
+
this.disabled || this.clearTimer();
|
|
509
|
+
},
|
|
510
|
+
onUpButtonMouseLeave: function() {
|
|
511
|
+
this.disabled || this.clearTimer();
|
|
512
|
+
},
|
|
513
|
+
onUpButtonKeyUp: function() {
|
|
514
|
+
this.disabled || this.clearTimer();
|
|
515
|
+
},
|
|
516
|
+
onUpButtonKeyDown: function(e) {
|
|
517
|
+
(e.code === "Space" || e.code === "Enter" || e.code === "NumpadEnter") && this.repeat(e, null, 1);
|
|
518
|
+
},
|
|
519
|
+
onDownButtonMouseDown: function(e) {
|
|
520
|
+
this.disabled || (this.$refs.input.$el.focus(), this.repeat(e, null, -1), e.preventDefault());
|
|
521
|
+
},
|
|
522
|
+
onDownButtonMouseUp: function() {
|
|
523
|
+
this.disabled || this.clearTimer();
|
|
524
|
+
},
|
|
525
|
+
onDownButtonMouseLeave: function() {
|
|
526
|
+
this.disabled || this.clearTimer();
|
|
527
|
+
},
|
|
528
|
+
onDownButtonKeyUp: function() {
|
|
529
|
+
this.disabled || this.clearTimer();
|
|
530
|
+
},
|
|
531
|
+
onDownButtonKeyDown: function(e) {
|
|
532
|
+
(e.code === "Space" || e.code === "Enter" || e.code === "NumpadEnter") && this.repeat(e, null, -1);
|
|
533
|
+
},
|
|
534
|
+
onUserInput: function() {
|
|
535
|
+
this.isSpecialChar && (this.$refs.input.$el.value = this.lastValue), this.isSpecialChar = !1;
|
|
536
|
+
},
|
|
537
|
+
onInputKeyDown: function(e) {
|
|
538
|
+
if (!this.readonly && !e.isComposing) {
|
|
539
|
+
if (e.altKey || e.ctrlKey || e.metaKey) {
|
|
540
|
+
this.isSpecialChar = !0, this.lastValue = this.$refs.input.$el.value;
|
|
541
|
+
return;
|
|
542
|
+
}
|
|
543
|
+
this.lastValue = e.target.value;
|
|
544
|
+
var t = e.target.selectionStart, n = e.target.selectionEnd, i = n - t, a = e.target.value, o = null;
|
|
545
|
+
switch (e.code || e.key) {
|
|
546
|
+
case "ArrowUp":
|
|
547
|
+
this.spin(e, 1), e.preventDefault();
|
|
548
|
+
break;
|
|
549
|
+
case "ArrowDown":
|
|
550
|
+
this.spin(e, -1), e.preventDefault();
|
|
551
|
+
break;
|
|
552
|
+
case "ArrowLeft":
|
|
553
|
+
if (i > 1) {
|
|
554
|
+
var s = this.isNumeralChar(a.charAt(t)) ? t + 1 : t + 2;
|
|
555
|
+
this.$refs.input.$el.setSelectionRange(s, s);
|
|
556
|
+
} else this.isNumeralChar(a.charAt(t - 1)) || e.preventDefault();
|
|
557
|
+
break;
|
|
558
|
+
case "ArrowRight":
|
|
559
|
+
if (i > 1) {
|
|
560
|
+
var c = n - 1;
|
|
561
|
+
this.$refs.input.$el.setSelectionRange(c, c);
|
|
562
|
+
} else this.isNumeralChar(a.charAt(t)) || e.preventDefault();
|
|
563
|
+
break;
|
|
564
|
+
case "Tab":
|
|
565
|
+
case "Enter":
|
|
566
|
+
case "NumpadEnter":
|
|
567
|
+
o = this.validateValue(this.parseValue(a)), this.$refs.input.$el.value = this.formatValue(o), this.$refs.input.$el.setAttribute("aria-valuenow", o), this.updateModel(e, o);
|
|
568
|
+
break;
|
|
569
|
+
case "Backspace":
|
|
570
|
+
if (e.preventDefault(), t === n) {
|
|
571
|
+
t >= a.length && this.suffixChar !== null && (t = a.length - this.suffixChar.length, this.$refs.input.$el.setSelectionRange(t, t));
|
|
572
|
+
var l = a.charAt(t - 1), u = this.getDecimalCharIndexes(a), d = u.decimalCharIndex, f = u.decimalCharIndexWithoutPrefix;
|
|
573
|
+
if (this.isNumeralChar(l)) {
|
|
574
|
+
var p = this.getDecimalLength(a);
|
|
575
|
+
if (this._group.test(l)) this._group.lastIndex = 0, o = a.slice(0, t - 2) + a.slice(t - 1);
|
|
576
|
+
else if (this._decimal.test(l)) this._decimal.lastIndex = 0, p ? this.$refs.input.$el.setSelectionRange(t - 1, t - 1) : o = a.slice(0, t - 1) + a.slice(t);
|
|
577
|
+
else if (d > 0 && t > d) {
|
|
578
|
+
var m = this.isDecimalMode() && (this.minFractionDigits || 0) < p ? "" : "0";
|
|
579
|
+
o = a.slice(0, t - 1) + m + a.slice(t);
|
|
580
|
+
} else f === 1 ? (o = a.slice(0, t - 1) + "0" + a.slice(t), o = this.parseValue(o) > 0 ? o : "") : o = a.slice(0, t - 1) + a.slice(t);
|
|
581
|
+
}
|
|
582
|
+
this.updateValue(e, o, null, "delete-single");
|
|
583
|
+
} else o = this.deleteRange(a, t, n), this.updateValue(e, o, null, "delete-range");
|
|
584
|
+
break;
|
|
585
|
+
case "Delete":
|
|
586
|
+
if (e.preventDefault(), t === n) {
|
|
587
|
+
var h = a.charAt(t), g = this.getDecimalCharIndexes(a), _ = g.decimalCharIndex, v = g.decimalCharIndexWithoutPrefix;
|
|
588
|
+
if (this.isNumeralChar(h)) {
|
|
589
|
+
var y = this.getDecimalLength(a);
|
|
590
|
+
if (this._group.test(h)) this._group.lastIndex = 0, o = a.slice(0, t) + a.slice(t + 2);
|
|
591
|
+
else if (this._decimal.test(h)) this._decimal.lastIndex = 0, y ? this.$refs.input.$el.setSelectionRange(t + 1, t + 1) : o = a.slice(0, t) + a.slice(t + 1);
|
|
592
|
+
else if (_ > 0 && t > _) {
|
|
593
|
+
var b = this.isDecimalMode() && (this.minFractionDigits || 0) < y ? "" : "0";
|
|
594
|
+
o = a.slice(0, t) + b + a.slice(t + 1);
|
|
595
|
+
} else v === 1 ? (o = a.slice(0, t) + "0" + a.slice(t + 1), o = this.parseValue(o) > 0 ? o : "") : o = a.slice(0, t) + a.slice(t + 1);
|
|
596
|
+
}
|
|
597
|
+
this.updateValue(e, o, null, "delete-back-single");
|
|
598
|
+
} else o = this.deleteRange(a, t, n), this.updateValue(e, o, null, "delete-range");
|
|
599
|
+
break;
|
|
600
|
+
case "Home":
|
|
601
|
+
e.preventDefault(), r(this.min) && this.updateModel(e, this.min);
|
|
602
|
+
break;
|
|
603
|
+
case "End":
|
|
604
|
+
e.preventDefault(), r(this.max) && this.updateModel(e, this.max);
|
|
605
|
+
break;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
onInputKeyPress: function(e) {
|
|
610
|
+
if (!this.readonly) {
|
|
611
|
+
var t = e.key, n = this.isDecimalSign(t), r = this.isMinusSign(t);
|
|
612
|
+
e.code !== "Enter" && e.preventDefault(), (Number(t) >= 0 && Number(t) <= 9 || r || n) && this.insert(e, t, {
|
|
613
|
+
isDecimalSign: n,
|
|
614
|
+
isMinusSign: r
|
|
615
|
+
});
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
onPaste: function(e) {
|
|
619
|
+
if (!(this.readonly || this.disabled)) {
|
|
620
|
+
e.preventDefault();
|
|
621
|
+
var t = (e.clipboardData || window.clipboardData).getData("Text");
|
|
622
|
+
if (!(this.inputId === "integeronly" && /[^\d-]/.test(t)) && t) {
|
|
623
|
+
var n = this.parseValue(t);
|
|
624
|
+
n != null && this.insert(e, n.toString());
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
onClearClick: function(e) {
|
|
629
|
+
this.updateModel(e, null), this.$refs.input.$el.focus();
|
|
630
|
+
},
|
|
631
|
+
allowMinusSign: function() {
|
|
632
|
+
return this.min === null || this.min < 0;
|
|
633
|
+
},
|
|
634
|
+
isMinusSign: function(e) {
|
|
635
|
+
return this._minusSign.test(e) || e === "-" ? (this._minusSign.lastIndex = 0, !0) : !1;
|
|
636
|
+
},
|
|
637
|
+
isDecimalSign: function(e) {
|
|
638
|
+
var t;
|
|
639
|
+
return (t = this.locale) != null && t.includes("fr") && [".", ","].includes(e) || this._decimal.test(e) ? (this._decimal.lastIndex = 0, !0) : !1;
|
|
640
|
+
},
|
|
641
|
+
isDecimalMode: function() {
|
|
642
|
+
return this.mode === "decimal";
|
|
643
|
+
},
|
|
644
|
+
getDecimalCharIndexes: function(e) {
|
|
645
|
+
var t = e.search(this._decimal);
|
|
646
|
+
this._decimal.lastIndex = 0;
|
|
647
|
+
var n = e.replace(this._prefix, "").trim().replace(/\s/g, "").replace(this._currency, "").search(this._decimal);
|
|
648
|
+
return this._decimal.lastIndex = 0, {
|
|
649
|
+
decimalCharIndex: t,
|
|
650
|
+
decimalCharIndexWithoutPrefix: n
|
|
651
|
+
};
|
|
652
|
+
},
|
|
653
|
+
getCharIndexes: function(e) {
|
|
654
|
+
var t = e.search(this._decimal);
|
|
655
|
+
this._decimal.lastIndex = 0;
|
|
656
|
+
var n = e.search(this._minusSign);
|
|
657
|
+
this._minusSign.lastIndex = 0;
|
|
658
|
+
var r = e.search(this._suffix);
|
|
659
|
+
this._suffix.lastIndex = 0;
|
|
660
|
+
var i = e.search(this._currency);
|
|
661
|
+
return this._currency.lastIndex = 0, {
|
|
662
|
+
decimalCharIndex: t,
|
|
663
|
+
minusCharIndex: n,
|
|
664
|
+
suffixCharIndex: r,
|
|
665
|
+
currencyCharIndex: i
|
|
666
|
+
};
|
|
667
|
+
},
|
|
668
|
+
insert: function(e, t) {
|
|
669
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
670
|
+
isDecimalSign: !1,
|
|
671
|
+
isMinusSign: !1
|
|
672
|
+
}, r = t.search(this._minusSign);
|
|
673
|
+
if (this._minusSign.lastIndex = 0, !(!this.allowMinusSign() && r !== -1)) {
|
|
674
|
+
var i = this.$refs.input.$el.selectionStart, a = this.$refs.input.$el.selectionEnd, o = this.$refs.input.$el.value.trim(), s = this.getCharIndexes(o), c = s.decimalCharIndex, l = s.minusCharIndex, u = s.suffixCharIndex, d = s.currencyCharIndex, f;
|
|
675
|
+
if (n.isMinusSign) {
|
|
676
|
+
var p = l === -1;
|
|
677
|
+
(i === 0 || i === d + 1) && (f = o, (p || a !== 0) && (f = this.insertText(o, t, 0, a)), this.updateValue(e, f, t, "insert"));
|
|
678
|
+
} else if (n.isDecimalSign) c > 0 && i === c ? this.updateValue(e, o, t, "insert") : (c > i && c < a || c === -1 && this.maxFractionDigits) && (f = this.insertText(o, t, i, a), this.updateValue(e, f, t, "insert"));
|
|
679
|
+
else {
|
|
680
|
+
var m = this.numberFormat.resolvedOptions().maximumFractionDigits, h = i === a ? "insert" : "range-insert";
|
|
681
|
+
if (c > 0 && i > c) {
|
|
682
|
+
if (i + t.length - (c + 1) <= m) {
|
|
683
|
+
var g = d >= i ? d - 1 : u >= i ? u : o.length;
|
|
684
|
+
f = o.slice(0, i) + t + o.slice(i + t.length, g) + o.slice(g), this.updateValue(e, f, t, h);
|
|
685
|
+
}
|
|
686
|
+
} else f = this.insertText(o, t, i, a), this.updateValue(e, f, t, h);
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
},
|
|
690
|
+
insertText: function(e, t, n, r) {
|
|
691
|
+
if ((t === "." ? t : t.split(".")).length === 2) {
|
|
692
|
+
var i = e.slice(n, r).search(this._decimal);
|
|
693
|
+
return this._decimal.lastIndex = 0, i > 0 ? e.slice(0, n) + this.formatValue(t) + e.slice(r) : this.formatValue(t) || e;
|
|
694
|
+
} else if (r - n === e.length) return this.formatValue(t);
|
|
695
|
+
else if (n === 0) return t + e.slice(r);
|
|
696
|
+
else if (r === e.length) return e.slice(0, n) + t;
|
|
697
|
+
else return e.slice(0, n) + t + e.slice(r);
|
|
698
|
+
},
|
|
699
|
+
deleteRange: function(e, t, n) {
|
|
700
|
+
return n - t === e.length ? "" : t === 0 ? e.slice(n) : n === e.length ? e.slice(0, t) : e.slice(0, t) + e.slice(n);
|
|
701
|
+
},
|
|
702
|
+
initCursor: function() {
|
|
703
|
+
var e = this.$refs.input.$el.selectionStart, t = this.$refs.input.$el.value, n = t.length, r = null, i = (this.prefixChar || "").length;
|
|
704
|
+
t = t.replace(this._prefix, ""), e -= i;
|
|
705
|
+
var a = t.charAt(e);
|
|
706
|
+
if (this.isNumeralChar(a)) return e + i;
|
|
707
|
+
for (var o = e - 1; o >= 0;) if (a = t.charAt(o), this.isNumeralChar(a)) {
|
|
708
|
+
r = o + i;
|
|
709
|
+
break;
|
|
710
|
+
} else o--;
|
|
711
|
+
if (r !== null) this.$refs.input.$el.setSelectionRange(r + 1, r + 1);
|
|
712
|
+
else {
|
|
713
|
+
for (o = e; o < n;) if (a = t.charAt(o), this.isNumeralChar(a)) {
|
|
714
|
+
r = o + i;
|
|
715
|
+
break;
|
|
716
|
+
} else o++;
|
|
717
|
+
r !== null && this.$refs.input.$el.setSelectionRange(r, r);
|
|
718
|
+
}
|
|
719
|
+
return r || 0;
|
|
720
|
+
},
|
|
721
|
+
onInputClick: function() {
|
|
722
|
+
var e = this.$refs.input.$el.value;
|
|
723
|
+
!this.readonly && e !== n() && this.initCursor();
|
|
724
|
+
},
|
|
725
|
+
isNumeralChar: function(e) {
|
|
726
|
+
return e.length === 1 && (this._numeral.test(e) || this._decimal.test(e) || this._group.test(e) || this._minusSign.test(e)) ? (this.resetRegex(), !0) : !1;
|
|
727
|
+
},
|
|
728
|
+
resetRegex: function() {
|
|
729
|
+
this._numeral.lastIndex = 0, this._decimal.lastIndex = 0, this._group.lastIndex = 0, this._minusSign.lastIndex = 0;
|
|
730
|
+
},
|
|
731
|
+
updateValue: function(e, t, n, r) {
|
|
732
|
+
var i = this.$refs.input.$el.value, a = null;
|
|
733
|
+
t != null && (a = this.parseValue(t), a = !a && !this.allowEmpty ? 0 : a, this.updateInput(a, n, r, t), this.handleOnInput(e, i, a));
|
|
734
|
+
},
|
|
735
|
+
handleOnInput: function(e, t, n) {
|
|
736
|
+
if (this.isValueChanged(t, n)) {
|
|
737
|
+
var r, i;
|
|
738
|
+
this.$emit("input", {
|
|
739
|
+
originalEvent: e,
|
|
740
|
+
value: n,
|
|
741
|
+
formattedValue: t
|
|
742
|
+
}), (r = (i = this.formField).onInput) == null || r.call(i, {
|
|
743
|
+
originalEvent: e,
|
|
744
|
+
value: n
|
|
745
|
+
});
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
isValueChanged: function(e, t) {
|
|
749
|
+
return t === null && e !== null ? !0 : t == null ? !1 : t !== (typeof e == "string" ? this.parseValue(e) : e);
|
|
750
|
+
},
|
|
751
|
+
validateValue: function(e) {
|
|
752
|
+
return e === "-" || e == null ? null : this.min != null && e < this.min ? this.min : this.max != null && e > this.max ? this.max : e;
|
|
753
|
+
},
|
|
754
|
+
updateInput: function(e, t, n, r) {
|
|
755
|
+
var i;
|
|
756
|
+
t ||= "";
|
|
757
|
+
var a = this.$refs.input.$el.value, s = this.formatValue(e), c = a.length;
|
|
758
|
+
if (s !== r && (s = this.concatValues(s, r)), c === 0) {
|
|
759
|
+
this.$refs.input.$el.value = s, this.$refs.input.$el.setSelectionRange(0, 0);
|
|
760
|
+
var l = this.initCursor() + t.length;
|
|
761
|
+
this.$refs.input.$el.setSelectionRange(l, l);
|
|
762
|
+
} else {
|
|
763
|
+
var u = this.$refs.input.$el.selectionStart, d = this.$refs.input.$el.selectionEnd;
|
|
764
|
+
this.$refs.input.$el.value = s;
|
|
765
|
+
var f = s.length;
|
|
766
|
+
if (n === "range-insert") {
|
|
767
|
+
var p = this.parseValue((a || "").slice(0, u)), m = (p === null ? "" : p.toString()).split("").join(`(${this.groupChar})?`), h = new RegExp(m, "g");
|
|
768
|
+
h.test(s);
|
|
769
|
+
var g = t.split("").join(`(${this.groupChar})?`), _ = new RegExp(g, "g");
|
|
770
|
+
_.test(s.slice(h.lastIndex)), d = h.lastIndex + _.lastIndex, this.$refs.input.$el.setSelectionRange(d, d);
|
|
771
|
+
} else if (f === c) n === "insert" || n === "delete-back-single" ? this.$refs.input.$el.setSelectionRange(d + 1, d + 1) : n === "delete-single" ? this.$refs.input.$el.setSelectionRange(d - 1, d - 1) : (n === "delete-range" || n === "spin") && this.$refs.input.$el.setSelectionRange(d, d);
|
|
772
|
+
else if (n === "delete-back-single") {
|
|
773
|
+
var v = a.charAt(d - 1), y = a.charAt(d), b = c - f, x = this._group.test(y);
|
|
774
|
+
x && b === 1 ? d += 1 : !x && this.isNumeralChar(v) && (d += -1 * b + 1), this._group.lastIndex = 0, this.$refs.input.$el.setSelectionRange(d, d);
|
|
775
|
+
} else if (a === "-" && n === "insert") {
|
|
776
|
+
this.$refs.input.$el.setSelectionRange(0, 0);
|
|
777
|
+
var S = this.initCursor() + t.length + 1;
|
|
778
|
+
this.$refs.input.$el.setSelectionRange(S, S);
|
|
779
|
+
} else d += f - c, this.$refs.input.$el.setSelectionRange(d, d);
|
|
780
|
+
}
|
|
781
|
+
this.$refs.input.$el.setAttribute("aria-valuenow", e), (i = this.$refs.clearIcon) != null && (i = i.$el) != null && i.style && (this.$refs.clearIcon.$el.style.display = o(s) ? "none" : "block");
|
|
782
|
+
},
|
|
783
|
+
concatValues: function(e, t) {
|
|
784
|
+
if (e && t) {
|
|
785
|
+
var n = t.search(this._decimal);
|
|
786
|
+
return this._decimal.lastIndex = 0, this.suffixChar ? n === -1 ? e : e.replace(this.suffixChar, "").split(this._decimal)[0] + t.replace(this.suffixChar, "").slice(n) + this.suffixChar : n === -1 ? e : e.split(this._decimal)[0] + t.slice(n);
|
|
787
|
+
}
|
|
788
|
+
return e;
|
|
789
|
+
},
|
|
790
|
+
getDecimalLength: function(e) {
|
|
791
|
+
if (e) {
|
|
792
|
+
var t = e.split(this._decimal);
|
|
793
|
+
if (t.length === 2) return t[1].replace(this._suffix, "").trim().replace(/\s/g, "").replace(this._currency, "").length;
|
|
794
|
+
}
|
|
795
|
+
return 0;
|
|
796
|
+
},
|
|
797
|
+
updateModel: function(e, t) {
|
|
798
|
+
this.writeValue(t, e);
|
|
799
|
+
},
|
|
800
|
+
onInputFocus: function(e) {
|
|
801
|
+
this.focused = !0, !this.disabled && !this.readonly && this.$refs.input.$el.value !== n() && this.highlightOnFocus && e.target.select(), this.$emit("focus", e);
|
|
802
|
+
},
|
|
803
|
+
onInputBlur: function(e) {
|
|
804
|
+
var t, n;
|
|
805
|
+
this.focused = !1;
|
|
806
|
+
var r = e.target, a = this.validateValue(this.parseValue(r.value));
|
|
807
|
+
this.$emit("blur", {
|
|
808
|
+
originalEvent: e,
|
|
809
|
+
value: r.value
|
|
810
|
+
}), (t = (n = this.formField).onBlur) == null || t.call(n, e), r.value = this.formatValue(a), r.setAttribute("aria-valuenow", a), this.updateModel(e, a), !this.disabled && !this.readonly && this.highlightOnFocus && i();
|
|
811
|
+
},
|
|
812
|
+
clearTimer: function() {
|
|
813
|
+
this.timer && clearTimeout(this.timer);
|
|
814
|
+
},
|
|
815
|
+
maxBoundry: function() {
|
|
816
|
+
return this.d_value >= this.max;
|
|
817
|
+
},
|
|
818
|
+
minBoundry: function() {
|
|
819
|
+
return this.d_value <= this.min;
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
computed: {
|
|
823
|
+
upButtonListeners: function() {
|
|
824
|
+
var e = this;
|
|
825
|
+
return {
|
|
826
|
+
mousedown: function(t) {
|
|
827
|
+
return e.onUpButtonMouseDown(t);
|
|
828
|
+
},
|
|
829
|
+
mouseup: function(t) {
|
|
830
|
+
return e.onUpButtonMouseUp(t);
|
|
831
|
+
},
|
|
832
|
+
mouseleave: function(t) {
|
|
833
|
+
return e.onUpButtonMouseLeave(t);
|
|
834
|
+
},
|
|
835
|
+
keydown: function(t) {
|
|
836
|
+
return e.onUpButtonKeyDown(t);
|
|
837
|
+
},
|
|
838
|
+
keyup: function(t) {
|
|
839
|
+
return e.onUpButtonKeyUp(t);
|
|
840
|
+
}
|
|
841
|
+
};
|
|
842
|
+
},
|
|
843
|
+
downButtonListeners: function() {
|
|
844
|
+
var e = this;
|
|
845
|
+
return {
|
|
846
|
+
mousedown: function(t) {
|
|
847
|
+
return e.onDownButtonMouseDown(t);
|
|
848
|
+
},
|
|
849
|
+
mouseup: function(t) {
|
|
850
|
+
return e.onDownButtonMouseUp(t);
|
|
851
|
+
},
|
|
852
|
+
mouseleave: function(t) {
|
|
853
|
+
return e.onDownButtonMouseLeave(t);
|
|
854
|
+
},
|
|
855
|
+
keydown: function(t) {
|
|
856
|
+
return e.onDownButtonKeyDown(t);
|
|
857
|
+
},
|
|
858
|
+
keyup: function(t) {
|
|
859
|
+
return e.onDownButtonKeyUp(t);
|
|
860
|
+
}
|
|
861
|
+
};
|
|
862
|
+
},
|
|
863
|
+
formattedValue: function() {
|
|
864
|
+
var e = !this.d_value && !this.allowEmpty ? 0 : this.d_value;
|
|
865
|
+
return this.formatValue(e);
|
|
866
|
+
},
|
|
867
|
+
getFormatter: function() {
|
|
868
|
+
return this.numberFormat;
|
|
869
|
+
},
|
|
870
|
+
dataP: function() {
|
|
871
|
+
return t(z(z({
|
|
872
|
+
invalid: this.$invalid,
|
|
873
|
+
fluid: this.$fluid,
|
|
874
|
+
filled: this.$variant === "filled"
|
|
875
|
+
}, this.size, this.size), this.buttonLayout, this.showButtons && this.buttonLayout));
|
|
876
|
+
}
|
|
877
|
+
},
|
|
878
|
+
components: {
|
|
879
|
+
InputText: u,
|
|
880
|
+
AngleUpIcon: T,
|
|
881
|
+
AngleDownIcon: d,
|
|
882
|
+
TimesIcon: c
|
|
883
|
+
}
|
|
884
|
+
}, Y = ["data-p"], X = ["data-p"], Z = ["disabled", "data-p"], Q = ["disabled", "data-p"], $ = ["disabled", "data-p"], ee = ["disabled", "data-p"];
|
|
885
|
+
function te(e, t, n, r, i, a) {
|
|
886
|
+
var o = S("InputText"), s = S("TimesIcon");
|
|
887
|
+
return b(), m("span", _({ class: e.cx("root") }, e.ptmi("root"), { "data-p": a.dataP }), [
|
|
888
|
+
g(o, {
|
|
889
|
+
ref: "input",
|
|
890
|
+
id: e.inputId,
|
|
891
|
+
name: e.$formName,
|
|
892
|
+
role: "spinbutton",
|
|
893
|
+
class: v([e.cx("pcInputText"), e.inputClass]),
|
|
894
|
+
style: y(e.inputStyle),
|
|
895
|
+
defaultValue: a.formattedValue,
|
|
896
|
+
"aria-valuemin": e.min,
|
|
897
|
+
"aria-valuemax": e.max,
|
|
898
|
+
"aria-valuenow": e.d_value,
|
|
899
|
+
inputmode: e.mode === "decimal" && !e.minFractionDigits ? "numeric" : "decimal",
|
|
900
|
+
disabled: e.disabled,
|
|
901
|
+
readonly: e.readonly,
|
|
902
|
+
placeholder: e.placeholder,
|
|
903
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
904
|
+
"aria-label": e.ariaLabel,
|
|
905
|
+
required: e.required,
|
|
906
|
+
size: e.size,
|
|
907
|
+
invalid: e.invalid,
|
|
908
|
+
variant: e.variant,
|
|
909
|
+
onInput: a.onUserInput,
|
|
910
|
+
onKeydown: a.onInputKeyDown,
|
|
911
|
+
onKeypress: a.onInputKeyPress,
|
|
912
|
+
onPaste: a.onPaste,
|
|
913
|
+
onClick: a.onInputClick,
|
|
914
|
+
onFocus: a.onInputFocus,
|
|
915
|
+
onBlur: a.onInputBlur,
|
|
916
|
+
pt: e.ptm("pcInputText"),
|
|
917
|
+
unstyled: e.unstyled,
|
|
918
|
+
"data-p": a.dataP
|
|
919
|
+
}, null, 8, /* @__PURE__ */ "id.name.class.style.defaultValue.aria-valuemin.aria-valuemax.aria-valuenow.inputmode.disabled.readonly.placeholder.aria-labelledby.aria-label.required.size.invalid.variant.onInput.onKeydown.onKeypress.onPaste.onClick.onFocus.onBlur.pt.unstyled.data-p".split(".")),
|
|
920
|
+
e.showClear && e.buttonLayout !== "vertical" ? x(e.$slots, "clearicon", {
|
|
921
|
+
key: 0,
|
|
922
|
+
class: v(e.cx("clearIcon")),
|
|
923
|
+
clearCallback: a.onClearClick
|
|
924
|
+
}, function() {
|
|
925
|
+
return [g(s, _({
|
|
926
|
+
ref: "clearIcon",
|
|
927
|
+
class: [e.cx("clearIcon")],
|
|
928
|
+
onClick: a.onClearClick
|
|
929
|
+
}, e.ptm("clearIcon")), null, 16, ["class", "onClick"])];
|
|
930
|
+
}) : p("", !0),
|
|
931
|
+
e.showButtons && e.buttonLayout === "stacked" ? (b(), m("span", _({
|
|
932
|
+
key: 1,
|
|
933
|
+
class: e.cx("buttonGroup")
|
|
934
|
+
}, e.ptm("buttonGroup"), { "data-p": a.dataP }), [x(e.$slots, "incrementbutton", { listeners: a.upButtonListeners }, function() {
|
|
935
|
+
return [h("button", _({ class: [e.cx("incrementButton"), e.incrementButtonClass] }, w(a.upButtonListeners, !0), {
|
|
936
|
+
disabled: e.disabled,
|
|
937
|
+
tabindex: -1,
|
|
938
|
+
"aria-hidden": "true",
|
|
939
|
+
type: "button"
|
|
940
|
+
}, e.ptm("incrementButton"), { "data-p": a.dataP }), [x(e.$slots, e.$slots.incrementicon ? "incrementicon" : "incrementbuttonicon", {}, function() {
|
|
941
|
+
return [(b(), f(C(e.incrementIcon || e.incrementButtonIcon ? "span" : "AngleUpIcon"), _({ class: [e.incrementIcon, e.incrementButtonIcon] }, e.ptm("incrementIcon"), { "data-pc-section": "incrementicon" }), null, 16, ["class"]))];
|
|
942
|
+
})], 16, Z)];
|
|
943
|
+
}), x(e.$slots, "decrementbutton", { listeners: a.downButtonListeners }, function() {
|
|
944
|
+
return [h("button", _({ class: [e.cx("decrementButton"), e.decrementButtonClass] }, w(a.downButtonListeners, !0), {
|
|
945
|
+
disabled: e.disabled,
|
|
946
|
+
tabindex: -1,
|
|
947
|
+
"aria-hidden": "true",
|
|
948
|
+
type: "button"
|
|
949
|
+
}, e.ptm("decrementButton"), { "data-p": a.dataP }), [x(e.$slots, e.$slots.decrementicon ? "decrementicon" : "decrementbuttonicon", {}, function() {
|
|
950
|
+
return [(b(), f(C(e.decrementIcon || e.decrementButtonIcon ? "span" : "AngleDownIcon"), _({ class: [e.decrementIcon, e.decrementButtonIcon] }, e.ptm("decrementIcon"), { "data-pc-section": "decrementicon" }), null, 16, ["class"]))];
|
|
951
|
+
})], 16, Q)];
|
|
952
|
+
})], 16, X)) : p("", !0),
|
|
953
|
+
x(e.$slots, "incrementbutton", { listeners: a.upButtonListeners }, function() {
|
|
954
|
+
return [e.showButtons && e.buttonLayout !== "stacked" ? (b(), m("button", _({
|
|
955
|
+
key: 0,
|
|
956
|
+
class: [e.cx("incrementButton"), e.incrementButtonClass]
|
|
957
|
+
}, w(a.upButtonListeners, !0), {
|
|
958
|
+
disabled: e.disabled,
|
|
959
|
+
tabindex: -1,
|
|
960
|
+
"aria-hidden": "true",
|
|
961
|
+
type: "button"
|
|
962
|
+
}, e.ptm("incrementButton"), { "data-p": a.dataP }), [x(e.$slots, e.$slots.incrementicon ? "incrementicon" : "incrementbuttonicon", {}, function() {
|
|
963
|
+
return [(b(), f(C(e.incrementIcon || e.incrementButtonIcon ? "span" : "AngleUpIcon"), _({ class: [e.incrementIcon, e.incrementButtonIcon] }, e.ptm("incrementIcon"), { "data-pc-section": "incrementicon" }), null, 16, ["class"]))];
|
|
964
|
+
})], 16, $)) : p("", !0)];
|
|
965
|
+
}),
|
|
966
|
+
x(e.$slots, "decrementbutton", { listeners: a.downButtonListeners }, function() {
|
|
967
|
+
return [e.showButtons && e.buttonLayout !== "stacked" ? (b(), m("button", _({
|
|
968
|
+
key: 0,
|
|
969
|
+
class: [e.cx("decrementButton"), e.decrementButtonClass]
|
|
970
|
+
}, w(a.downButtonListeners, !0), {
|
|
971
|
+
disabled: e.disabled,
|
|
972
|
+
tabindex: -1,
|
|
973
|
+
"aria-hidden": "true",
|
|
974
|
+
type: "button"
|
|
975
|
+
}, e.ptm("decrementButton"), { "data-p": a.dataP }), [x(e.$slots, e.$slots.decrementicon ? "decrementicon" : "decrementbuttonicon", {}, function() {
|
|
976
|
+
return [(b(), f(C(e.decrementIcon || e.decrementButtonIcon ? "span" : "AngleDownIcon"), _({ class: [e.decrementIcon, e.decrementButtonIcon] }, e.ptm("decrementIcon"), { "data-pc-section": "decrementicon" }), null, 16, ["class"]))];
|
|
977
|
+
})], 16, ee)) : p("", !0)];
|
|
978
|
+
})
|
|
979
|
+
], 16, Y);
|
|
980
|
+
}
|
|
981
|
+
J.render = te;
|
|
982
|
+
//#endregion
|
|
983
|
+
export { J as n, P as t };
|