@vc-shell/framework 1.1.61 → 1.1.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/core/composables/useLanguages/index.ts +16 -73
- package/core/services/index.ts +1 -0
- package/core/services/language-service.ts +88 -0
- package/core/services/menu-service.ts +9 -20
- package/core/types/index.ts +1 -1
- package/dist/core/composables/useLanguages/index.d.ts +4 -15
- package/dist/core/composables/useLanguages/index.d.ts.map +1 -1
- package/dist/core/services/index.d.ts +1 -0
- package/dist/core/services/index.d.ts.map +1 -1
- package/dist/core/services/language-service.d.ts +15 -0
- package/dist/core/services/language-service.d.ts.map +1 -0
- package/dist/core/services/menu-service.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +12621 -9109
- package/dist/index.d.ts.map +1 -1
- package/dist/injection-keys.d.ts +2 -1
- package/dist/injection-keys.d.ts.map +1 -1
- package/dist/shared/components/language-selector/language-selector.vue.d.ts.map +1 -1
- package/dist/shared/components/theme-selector/theme-selector.vue.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/vendor-boolbase-A_-Pp38P.js +23 -0
- package/dist/{vendor-cheerio-CleDsuQZ.js → vendor-cheerio-C46iBpCu.js} +10 -10
- package/dist/{vendor-cheerio-select-CVkYl3Z-.js → vendor-cheerio-select-C8emRZsx.js} +5 -5
- package/dist/vendor-core-js-DFA7rceR.js +1206 -0
- package/dist/{vendor-css-select-CtIzVIiG.js → vendor-css-select-DR9bp36p.js} +3 -3
- package/dist/{vendor-dom-serializer-CugO0RdN.js → vendor-dom-serializer-Sk3xHhQk.js} +1 -1
- package/dist/{vendor-domutils-D3Y2YQFR.js → vendor-domutils-BiVCXO8c.js} +2 -2
- package/dist/{vendor-entities-v26HW8wW.js → vendor-entities-CCReaWqU.js} +35 -34
- package/dist/{vendor-floating-ui-core-C9uEvi1M.js → vendor-floating-ui-core-DpX2jufl.js} +10 -10
- package/dist/{vendor-floating-ui-dom-CZkYGmv4.js → vendor-floating-ui-dom-C4AKN5Mo.js} +8 -8
- package/dist/{vendor-floating-ui-utils-Bx3BTd6_.js → vendor-floating-ui-utils-CRaCuFxS.js} +29 -29
- package/dist/{vendor-floating-ui-vue-CLOiVYP7.js → vendor-floating-ui-vue-OwtolkBv.js} +12 -12
- package/dist/{vendor-htmlparser2-CXL_uhMI.js → vendor-htmlparser2-CpQu33io.js} +1 -1
- package/dist/{vendor-iso-639-1-dVGfSUIM.js → vendor-iso-639-1-BJO6WZAt.js} +3 -3
- package/dist/{vendor-markdown-it-4AJoRTAg.js → vendor-markdown-it-RJo-N9ov.js} +1 -1
- package/dist/{vendor-markdown-it-task-lists-Byg1-ms9.js → vendor-markdown-it-task-lists-BxLwscWK.js} +2 -2
- package/dist/{vendor-microsoft-applicationinsights-analytics-js-DA-ctcAL.js → vendor-microsoft-applicationinsights-analytics-js-CauId95v.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-cfgsync-js-COfRj-2q.js → vendor-microsoft-applicationinsights-cfgsync-js-DGfB75It.js} +3 -3
- package/dist/{vendor-microsoft-applicationinsights-channel-js-MTPYhH-I.js → vendor-microsoft-applicationinsights-channel-js-B4PYlGv8.js} +11 -11
- package/dist/{vendor-microsoft-applicationinsights-common-CDVnJ6MR.js → vendor-microsoft-applicationinsights-common-Bj6sQeoz.js} +7 -7
- package/dist/{vendor-microsoft-applicationinsights-core-js-D7Aicf8S.js → vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js} +13 -13
- package/dist/{vendor-microsoft-applicationinsights-dependencies-js-CvQWWraU.js → vendor-microsoft-applicationinsights-dependencies-js-CH87Sln6.js} +68 -68
- package/dist/{vendor-microsoft-applicationinsights-properties-js-C0Iv1cZE.js → vendor-microsoft-applicationinsights-properties-js-CLE2OEt_.js} +5 -5
- package/dist/{vendor-microsoft-applicationinsights-web-BRuQAzjU.js → vendor-microsoft-applicationinsights-web-8IaeIl22.js} +8 -8
- package/dist/{vendor-nevware21-ts-async-FAyg3c9V.js → vendor-nevware21-ts-async-DadHEt7N.js} +3 -3
- package/dist/{vendor-nth-check-BE7AeBMg.js → vendor-nth-check-CS1D-zr5.js} +1 -1
- package/dist/{vendor-parse5-htmlparser2-tree-adapter-CNubfdOP.js → vendor-parse5-htmlparser2-tree-adapter-BWywtwol.js} +9 -9
- package/dist/{vendor-parse5-DqztJOGh.js → vendor-parse5-zq5Hn0y9.js} +3 -1
- package/dist/{vendor-prettier-D8C9GG-0.js → vendor-prettier-DaiSFsWE.js} +1184 -1167
- package/dist/vendor-prosemirror-commands-B8fhFbTo.js +385 -0
- package/dist/{vendor-prosemirror-dropcursor-CwZhBUcZ.js → vendor-prosemirror-dropcursor-CdHQ9kQG.js} +2 -2
- package/dist/{vendor-prosemirror-gapcursor-COcwb4TJ.js → vendor-prosemirror-gapcursor-W-ky5QTm.js} +4 -4
- package/dist/{vendor-prosemirror-history-DmPvdOpr.js → vendor-prosemirror-history-CrtTR5Cd.js} +2 -2
- package/dist/{vendor-prosemirror-keymap-CS1uIBpE.js → vendor-prosemirror-keymap-DWvoDWf6.js} +1 -1
- package/dist/{vendor-prosemirror-markdown-sO1Pn6SW.js → vendor-prosemirror-markdown-CuzWQ2N6.js} +2 -2
- package/dist/{vendor-prosemirror-model-DwojkhDQ.js → vendor-prosemirror-model-CVTn1Stc.js} +2 -2
- package/dist/{vendor-prosemirror-schema-list-rrOzMlj0.js → vendor-prosemirror-schema-list-Ds6x_KLX.js} +2 -2
- package/dist/{vendor-prosemirror-state-BN86J-Ko.js → vendor-prosemirror-state-CRUasa1V.js} +2 -2
- package/dist/{vendor-prosemirror-tables-C7XMqyon.js → vendor-prosemirror-tables-DzTfCeHX.js} +5 -5
- package/dist/{vendor-prosemirror-transform-B0c_LAV_.js → vendor-prosemirror-transform-BeDaI3CS.js} +1 -1
- package/dist/{vendor-prosemirror-view-DyWzmy4t.js → vendor-prosemirror-view-BGYdOWiJ.js} +76 -74
- package/dist/{vendor-semver-BoKYtkQw.js → vendor-semver-FuwqpOls.js} +435 -435
- package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
- package/dist/{vendor-tippy-js-BGdgwGX-.js → vendor-tippy-js-nNhcw_JH.js} +15 -15
- package/dist/{vendor-tiptap-core-BgwY40dr.js → vendor-tiptap-core-dlTW4S11.js} +76 -65
- package/dist/{vendor-tiptap-extension-blockquote-BVW0VVC0.js → vendor-tiptap-extension-blockquote-iAIM-meW.js} +1 -1
- package/dist/{vendor-tiptap-extension-bold-xhi5xxPT.js → vendor-tiptap-extension-bold-bkOLNH6E.js} +1 -1
- package/dist/{vendor-tiptap-extension-bubble-menu-DhWtcCL3.js → vendor-tiptap-extension-bubble-menu-BRWVLpun.js} +6 -6
- package/dist/{vendor-tiptap-extension-bullet-list-Ba21suMY.js → vendor-tiptap-extension-bullet-list-DfU428XB.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-DFTxp7wE.js → vendor-tiptap-extension-code-CgIql8q6.js} +1 -1
- package/dist/{vendor-tiptap-extension-code-block-B2KK5g8S.js → vendor-tiptap-extension-code-block-V26-erQk.js} +2 -2
- package/dist/{vendor-tiptap-extension-document-CW8jybcc.js → vendor-tiptap-extension-document-BYF_BzDD.js} +1 -1
- package/dist/{vendor-tiptap-extension-dropcursor-DdRuETKJ.js → vendor-tiptap-extension-dropcursor-DqjaaFex.js} +2 -2
- package/dist/{vendor-tiptap-extension-floating-menu-Da7fpnr7.js → vendor-tiptap-extension-floating-menu-vptdm_Y0.js} +6 -6
- package/dist/{vendor-tiptap-extension-gapcursor-CafmhWSf.js → vendor-tiptap-extension-gapcursor-DxLBw8V0.js} +2 -2
- package/dist/{vendor-tiptap-extension-hard-break-n9aI6ybJ.js → vendor-tiptap-extension-hard-break-DygHhzqw.js} +1 -1
- package/dist/{vendor-tiptap-extension-heading-xj24usOy.js → vendor-tiptap-extension-heading-C-ArDc3_.js} +1 -1
- package/dist/{vendor-tiptap-extension-history-C2uOLua2.js → vendor-tiptap-extension-history-C41RW3Bv.js} +2 -2
- package/dist/{vendor-tiptap-extension-horizontal-rule--uXIYeaK.js → vendor-tiptap-extension-horizontal-rule-BGMGd9fo.js} +2 -2
- package/dist/{vendor-tiptap-extension-image-BJx5lyoG.js → vendor-tiptap-extension-image-DChcWb4v.js} +1 -1
- package/dist/{vendor-tiptap-extension-italic-DPAViC4y.js → vendor-tiptap-extension-italic-BNJrFvrR.js} +1 -1
- package/dist/{vendor-tiptap-extension-link-aDGmrWTi.js → vendor-tiptap-extension-link-DFN4ENph.js} +2 -2
- package/dist/{vendor-tiptap-extension-list-item-DE9dJ64Q.js → vendor-tiptap-extension-list-item-3qKYhGHe.js} +1 -1
- package/dist/{vendor-tiptap-extension-ordered-list-CcNtDDJm.js → vendor-tiptap-extension-ordered-list-D3QL0eiW.js} +1 -1
- package/dist/{vendor-tiptap-extension-paragraph-DvlrAzIW.js → vendor-tiptap-extension-paragraph-DZfkaJJ-.js} +1 -1
- package/dist/{vendor-tiptap-extension-placeholder-DyW7px66.js → vendor-tiptap-extension-placeholder-CoOAmd0a.js} +7 -7
- package/dist/{vendor-tiptap-extension-strike-DMMLEFkd.js → vendor-tiptap-extension-strike-BlGNozxy.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-BpegTABL.js → vendor-tiptap-extension-table-CZn6Xykb.js} +16 -16
- package/dist/{vendor-tiptap-extension-table-cell-8rHRq4BW.js → vendor-tiptap-extension-table-cell-BQuS-XFD.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-header-DZ1y7iS2.js → vendor-tiptap-extension-table-header-ZrtK7HiQ.js} +1 -1
- package/dist/{vendor-tiptap-extension-table-row-DmkNUw4L.js → vendor-tiptap-extension-table-row-CBrXvqsO.js} +1 -1
- package/dist/{vendor-tiptap-extension-text-Cwas3TQT.js → vendor-tiptap-extension-text-DwA7jrBq.js} +1 -1
- package/dist/{vendor-tiptap-extension-underline-Hz5uJRfR.js → vendor-tiptap-extension-underline-CIVtuRLl.js} +1 -1
- package/dist/{vendor-tiptap-markdown-Dj1XZWg4.js → vendor-tiptap-markdown-CidDIpZ-.js} +12 -11
- package/dist/vendor-tiptap-pm-9TOy65Oe.js +1 -0
- package/dist/{vendor-tiptap-starter-kit-Cxj07T7v.js → vendor-tiptap-starter-kit-BdU6UtqB.js} +19 -19
- package/dist/{vendor-tiptap-vue-3-DF4kzEFI.js → vendor-tiptap-vue-3-CnYccgV4.js} +3 -3
- package/dist/{vendor-truncate-html-Bx1HJzRq.js → vendor-truncate-html-DYC0Lj9o.js} +1 -1
- package/dist/{vendor-vee-validate-rules-DDeNM2Gc.js → vendor-vee-validate-rules-4oWUZPpG.js} +4 -2
- package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js} +88 -86
- package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
- package/dist/{vendor-vue3-application-insights-dAGGfA_M.js → vendor-vue3-application-insights-C8xbxXXX.js} +2 -2
- package/dist/{vendor-vuepic-vue-datepicker-_JffV5We.js → vendor-vuepic-vue-datepicker-DkHsqyoL.js} +257 -257
- package/dist/vendor-vueuse-components-B0zqjNRW.js +542 -0
- package/dist/{vendor-vueuse-core-cB-c7DzH.js → vendor-vueuse-core-CYgwn-B2.js} +31 -30
- package/dist/{vendor-vueuse-shared-Dg7PMM0z.js → vendor-vueuse-shared-B_uDJJ6V.js} +33 -33
- package/package.json +5 -5
- package/shared/components/language-selector/language-selector.vue +16 -8
- package/shared/components/theme-selector/theme-selector.vue +5 -10
- package/ui/components/organisms/vc-app/_internal/vc-app-menu/_internal/vc-app-menu-item/_internal/vc-app-menu-link.vue +4 -4
- package/dist/vendor-boolbase-Bgn9I6iN.js +0 -21
- package/dist/vendor-core-js-l0sNRNKZ.js +0 -1
- package/dist/vendor-intlify-core-base-FyGSkd6r.js +0 -1130
- package/dist/vendor-intlify-message-compiler-D_vL9-DK.js +0 -945
- package/dist/vendor-intlify-shared-BMbzEQSk.js +0 -144
- package/dist/vendor-prosemirror-commands-C6teL3Xo.js +0 -344
- package/dist/vendor-tanstack-vue-virtual-l0sNRNKZ.js +0 -1
- package/dist/vendor-tiptap-pm-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-demi-l0sNRNKZ.js +0 -1
- package/dist/vendor-vue-i18n-DC6m6S7G.js +0 -1359
- package/dist/vendor-vueuse-components-DtK_mxpP.js +0 -219
package/dist/{vendor-vue-currency-input-DxWnS-HB.js → vendor-vue-currency-input-BqaYAdhD.js}
RENAMED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { ref as
|
|
1
|
+
import { ref as x, getCurrentInstance as N, version as O, computed as $, watch as P } from "vue";
|
|
2
2
|
/**
|
|
3
3
|
* Vue Currency Input 3.2.1
|
|
4
4
|
* (c) 2018-2025 Matthias Stiller
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var F;
|
|
8
8
|
(function(s) {
|
|
9
9
|
s.symbol = "symbol", s.narrowSymbol = "narrowSymbol", s.code = "code", s.name = "name", s.hidden = "hidden";
|
|
10
|
-
})(
|
|
10
|
+
})(F || (F = {}));
|
|
11
11
|
var p;
|
|
12
12
|
(function(s) {
|
|
13
13
|
s.precision = "precision", s.thousands = "thousands", s.tenThousands = "tenThousands", s.millions = "millions", s.billions = "billions";
|
|
14
14
|
})(p || (p = {}));
|
|
15
|
-
const
|
|
15
|
+
const S = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = (s) => s.replace(/^0+(0$|[^0])/, "$1"), D = (s, i) => (s.match(new RegExp(S(i), "g")) || []).length, R = (s, i) => s.substring(0, s.indexOf(i)), I = [
|
|
16
16
|
",",
|
|
17
17
|
".",
|
|
18
18
|
"٫",
|
|
@@ -20,25 +20,25 @@ const b = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), E = (s) => s.replace(
|
|
|
20
20
|
], V = "(0|[1-9]\\d*)";
|
|
21
21
|
class _ {
|
|
22
22
|
constructor(i) {
|
|
23
|
-
var t, e, n,
|
|
24
|
-
const { currency:
|
|
25
|
-
this.locale =
|
|
26
|
-
currency:
|
|
27
|
-
useGrouping:
|
|
23
|
+
var t, e, n, m, o, c;
|
|
24
|
+
const { currency: l, currencyDisplay: d, locale: r, precision: a, accountingSign: h, useGrouping: f } = i;
|
|
25
|
+
this.locale = r, this.options = {
|
|
26
|
+
currency: l,
|
|
27
|
+
useGrouping: f,
|
|
28
28
|
style: "currency",
|
|
29
|
-
currencySign:
|
|
30
|
-
currencyDisplay:
|
|
29
|
+
currencySign: h ? "accounting" : void 0,
|
|
30
|
+
currencyDisplay: d !== F.hidden ? d : void 0
|
|
31
31
|
};
|
|
32
|
-
const
|
|
33
|
-
this.currency = (t =
|
|
34
|
-
const
|
|
35
|
-
this.prefix =
|
|
32
|
+
const u = new Intl.NumberFormat(r, this.options), y = u.formatToParts(123456);
|
|
33
|
+
this.currency = (t = y.find(({ type: g }) => g === "currency")) === null || t === void 0 ? void 0 : t.value, this.digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].map((g) => g.toLocaleString(r)), this.decimalSymbol = (e = y.find(({ type: g }) => g === "decimal")) === null || e === void 0 ? void 0 : e.value, this.groupingSymbol = (n = y.find(({ type: g }) => g === "group")) === null || n === void 0 ? void 0 : n.value, this.minusSign = (m = u.formatToParts(-1).find(({ type: g }) => g === "minusSign")) === null || m === void 0 ? void 0 : m.value, this.decimalSymbol === void 0 ? this.minimumFractionDigits = this.maximumFractionDigits = 0 : typeof a == "number" ? this.minimumFractionDigits = this.maximumFractionDigits = a : (this.minimumFractionDigits = (o = a?.min) !== null && o !== void 0 ? o : u.resolvedOptions().minimumFractionDigits, this.maximumFractionDigits = (c = a?.max) !== null && c !== void 0 ? c : u.resolvedOptions().maximumFractionDigits);
|
|
34
|
+
const b = (g) => R(g, this.digits[1]), v = (g) => g.substring(g.lastIndexOf(this.decimalSymbol ? this.digits[0] : this.digits[1]) + 1);
|
|
35
|
+
this.prefix = b(u.format(1)), this.suffix = v(u.format(1)), this.negativePrefix = b(u.format(-1)), this.negativeSuffix = v(u.format(-1));
|
|
36
36
|
}
|
|
37
37
|
parse(i) {
|
|
38
38
|
if (i) {
|
|
39
39
|
const t = this.isNegative(i);
|
|
40
40
|
i = this.normalizeDigits(i), i = this.stripCurrency(i, t), i = this.stripSignLiterals(i);
|
|
41
|
-
const e = this.decimalSymbol ? `(?:${
|
|
41
|
+
const e = this.decimalSymbol ? `(?:${S(this.decimalSymbol)}(\\d*))?` : "", n = this.stripGroupingSeparator(i).match(new RegExp(`^${V}${e}$`));
|
|
42
42
|
if (n && this.isValidIntegerFormat(this.decimalSymbol ? i.split(this.decimalSymbol)[0] : i, Number(n[1])))
|
|
43
43
|
return +`${t ? "-" : ""}${this.onlyDigits(n[1])}.${this.onlyDigits(n[2] || "")}`;
|
|
44
44
|
}
|
|
@@ -61,7 +61,7 @@ class _ {
|
|
|
61
61
|
return `${this.digits[0]}${this.decimalSymbol}${this.onlyLocaleDigits(i.substring(1)).substring(0, this.maximumFractionDigits)}`;
|
|
62
62
|
}
|
|
63
63
|
isFractionIncomplete(i) {
|
|
64
|
-
return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${V}${
|
|
64
|
+
return !!this.normalizeDigits(this.stripGroupingSeparator(i)).match(new RegExp(`^${V}${S(this.decimalSymbol)}$`));
|
|
65
65
|
}
|
|
66
66
|
isNegative(i) {
|
|
67
67
|
return i.startsWith(this.negativePrefix) || this.minusSign === void 0 && (i.startsWith("(") || i.startsWith("-")) || this.minusSign !== void 0 && i.replace("-", this.minusSign).startsWith(this.minusSign);
|
|
@@ -70,7 +70,7 @@ class _ {
|
|
|
70
70
|
return `${t ? this.negativePrefix : this.prefix}${i}${t ? this.negativeSuffix : this.suffix}`;
|
|
71
71
|
}
|
|
72
72
|
stripGroupingSeparator(i) {
|
|
73
|
-
return this.groupingSymbol !== void 0 ? i.replace(new RegExp(
|
|
73
|
+
return this.groupingSymbol !== void 0 ? i.replace(new RegExp(S(this.groupingSymbol), "g"), "") : i;
|
|
74
74
|
}
|
|
75
75
|
stripSignLiterals(i) {
|
|
76
76
|
return this.minusSign !== void 0 ? i.replace("-", this.minusSign).replace(this.minusSign, "") : i.replace(/[-()]/g, "");
|
|
@@ -95,37 +95,37 @@ class _ {
|
|
|
95
95
|
return i.replace(new RegExp(`[^${this.digits.join("")}]*`, "g"), "");
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
class
|
|
98
|
+
class M {
|
|
99
99
|
constructor(i) {
|
|
100
100
|
this.currencyFormat = i;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
|
-
class C extends
|
|
103
|
+
class C extends M {
|
|
104
104
|
conformToMask(i, t = "") {
|
|
105
|
-
const e = this.currencyFormat.isNegative(i), n = (
|
|
106
|
-
if (n(
|
|
105
|
+
const e = this.currencyFormat.isNegative(i), n = (u) => u === "" && e && !(this.currencyFormat.minusSign === void 0 ? t === this.currencyFormat.negativePrefix + this.currencyFormat.negativeSuffix : t === this.currencyFormat.negativePrefix), m = (u) => {
|
|
106
|
+
if (n(u))
|
|
107
107
|
return "";
|
|
108
108
|
if (this.currencyFormat.maximumFractionDigits > 0) {
|
|
109
|
-
if (this.currencyFormat.isFractionIncomplete(
|
|
110
|
-
return
|
|
111
|
-
if (
|
|
112
|
-
return this.currencyFormat.toFraction(
|
|
109
|
+
if (this.currencyFormat.isFractionIncomplete(u))
|
|
110
|
+
return u;
|
|
111
|
+
if (u.startsWith(this.currencyFormat.decimalSymbol))
|
|
112
|
+
return this.currencyFormat.toFraction(u);
|
|
113
113
|
}
|
|
114
114
|
return null;
|
|
115
115
|
};
|
|
116
|
-
let
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
if (
|
|
120
|
-
return this.currencyFormat.insertCurrency(
|
|
121
|
-
const [
|
|
122
|
-
return
|
|
123
|
-
numberValue: +`${e ? "-" : ""}${
|
|
124
|
-
fractionDigits:
|
|
116
|
+
let o = i;
|
|
117
|
+
o = this.currencyFormat.stripCurrency(o, e), o = this.currencyFormat.stripSignLiterals(o);
|
|
118
|
+
const c = m(o);
|
|
119
|
+
if (c != null)
|
|
120
|
+
return this.currencyFormat.insertCurrency(c, e);
|
|
121
|
+
const [l, ...d] = o.split(this.currencyFormat.decimalSymbol), r = E(this.currencyFormat.onlyDigits(l)), a = this.currencyFormat.onlyDigits(d.join("")).substring(0, this.currencyFormat.maximumFractionDigits), h = d.length > 0 && a.length === 0, f = r === "" && e && (this.currencyFormat.minusSign === void 0 ? t === i.slice(0, -2) + this.currencyFormat.negativeSuffix : t === i.slice(0, -1));
|
|
122
|
+
return h || f || n(r) ? t : r.match(/\d+/) ? {
|
|
123
|
+
numberValue: +`${e ? "-" : ""}${r}.${a}`,
|
|
124
|
+
fractionDigits: a
|
|
125
125
|
} : "";
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
class A extends
|
|
128
|
+
class A extends M {
|
|
129
129
|
conformToMask(i, t = "") {
|
|
130
130
|
if (i === "" || this.currencyFormat.parse(t) === 0 && this.currencyFormat.stripCurrency(t, !0).slice(0, -1) === this.currencyFormat.stripCurrency(i, !0))
|
|
131
131
|
return "";
|
|
@@ -202,16 +202,16 @@ class T {
|
|
|
202
202
|
const e = this.numberMask.conformToMask(i, this.formattedValue);
|
|
203
203
|
let n;
|
|
204
204
|
if (typeof e == "object") {
|
|
205
|
-
const { numberValue:
|
|
206
|
-
let { maximumFractionDigits:
|
|
207
|
-
this.focus ?
|
|
205
|
+
const { numberValue: m, fractionDigits: o } = e;
|
|
206
|
+
let { maximumFractionDigits: c, minimumFractionDigits: l } = this.currencyFormat;
|
|
207
|
+
this.focus ? l = t ? o.replace(/0+$/, "").length : Math.min(c, o.length) : Number.isInteger(m) && !this.options.autoDecimalDigits && (this.options.precision === void 0 || l === 0) && (l = c = 0), n = this.toInteger(Math.abs(m)) > Number.MAX_SAFE_INTEGER ? this.formattedValue : this.currencyFormat.format(m, {
|
|
208
208
|
useGrouping: this.options.useGrouping !== !1 && !(this.focus && this.options.hideGroupingSeparatorOnFocus),
|
|
209
|
-
minimumFractionDigits:
|
|
210
|
-
maximumFractionDigits:
|
|
209
|
+
minimumFractionDigits: l,
|
|
210
|
+
maximumFractionDigits: c
|
|
211
211
|
});
|
|
212
212
|
} else
|
|
213
213
|
n = e;
|
|
214
|
-
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay ===
|
|
214
|
+
this.maxValue <= 0 && !this.currencyFormat.isNegative(n) && this.currencyFormat.parse(n) !== 0 && (n = n.replace(this.currencyFormat.prefix, this.currencyFormat.negativePrefix)), this.minValue >= 0 && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.prefix)), (this.options.currencyDisplay === F.hidden || this.focus && this.options.hideCurrencySymbolOnFocus) && (n = n.replace(this.currencyFormat.negativePrefix, this.currencyFormat.minusSign !== void 0 ? this.currencyFormat.minusSign : "(").replace(this.currencyFormat.negativeSuffix, this.currencyFormat.minusSign !== void 0 ? "" : ")").replace(this.currencyFormat.prefix, "").replace(this.currencyFormat.suffix, "")), this.el.value = n, this.numberValue = this.currencyFormat.parse(n);
|
|
215
215
|
} else
|
|
216
216
|
this.el.value = "", this.numberValue = null;
|
|
217
217
|
this.formattedValue = this.el.value, this.onInput(this.getValue());
|
|
@@ -220,25 +220,25 @@ class T {
|
|
|
220
220
|
this.el.addEventListener("input", (i) => {
|
|
221
221
|
const { value: t, selectionStart: e } = this.el, n = i;
|
|
222
222
|
if (e && n.data && I.includes(n.data) && (this.decimalSymbolInsertedAt = e - 1), this.format(t), this.focus && e != null) {
|
|
223
|
-
const
|
|
224
|
-
const { prefix:
|
|
225
|
-
let
|
|
226
|
-
const
|
|
223
|
+
const m = () => {
|
|
224
|
+
const { prefix: o, suffix: c, decimalSymbol: l, maximumFractionDigits: d, groupingSymbol: r } = this.currencyFormat;
|
|
225
|
+
let a = t.length - e;
|
|
226
|
+
const h = this.formattedValue.length;
|
|
227
227
|
if (this.currencyFormat.minusSign === void 0 && (t.startsWith("(") || t.startsWith("-")) && !t.endsWith(")"))
|
|
228
|
-
return
|
|
229
|
-
if (this.formattedValue.substring(e, 1) ===
|
|
230
|
-
return
|
|
231
|
-
if (
|
|
228
|
+
return h - this.currencyFormat.negativeSuffix.length > 1 ? this.formattedValue.substring(e).length : 1;
|
|
229
|
+
if (this.formattedValue.substring(e, 1) === r && D(this.formattedValue, r) === D(t, r) + 1)
|
|
230
|
+
return h - a - 1;
|
|
231
|
+
if (h < a)
|
|
232
232
|
return e;
|
|
233
|
-
if (
|
|
234
|
-
const
|
|
235
|
-
if (Math.abs(
|
|
236
|
-
return this.formattedValue.indexOf(
|
|
237
|
-
!this.options.autoDecimalDigits && e >
|
|
233
|
+
if (l !== void 0 && t.indexOf(l) !== -1) {
|
|
234
|
+
const f = t.indexOf(l) + 1;
|
|
235
|
+
if (Math.abs(h - t.length) > 1 && e <= f)
|
|
236
|
+
return this.formattedValue.indexOf(l) + 1;
|
|
237
|
+
!this.options.autoDecimalDigits && e > f && this.currencyFormat.onlyDigits(t.substring(f)).length - 1 === d && (a -= 1);
|
|
238
238
|
}
|
|
239
|
-
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay ===
|
|
239
|
+
return this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === F.hidden ? h - a : Math.max(h - Math.max(a, c.length), o.length);
|
|
240
240
|
};
|
|
241
|
-
this.setCaretPosition(
|
|
241
|
+
this.setCaretPosition(m());
|
|
242
242
|
}
|
|
243
243
|
}), this.el.addEventListener("focus", () => {
|
|
244
244
|
this.focus = !0, this.numberValueOnFocus = this.numberValue, setTimeout(() => {
|
|
@@ -257,23 +257,23 @@ class T {
|
|
|
257
257
|
getCaretPositionOnFocus(i, t) {
|
|
258
258
|
if (this.numberValue == null)
|
|
259
259
|
return t;
|
|
260
|
-
const { prefix: e, negativePrefix: n, suffix:
|
|
261
|
-
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay ===
|
|
262
|
-
if (
|
|
260
|
+
const { prefix: e, negativePrefix: n, suffix: m, negativeSuffix: o, groupingSymbol: c, currency: l } = this.currencyFormat, d = this.numberValue < 0, r = d ? n : e, a = r.length;
|
|
261
|
+
if (this.options.hideCurrencySymbolOnFocus || this.options.currencyDisplay === F.hidden) {
|
|
262
|
+
if (d) {
|
|
263
263
|
if (t <= 1)
|
|
264
264
|
return 1;
|
|
265
265
|
if (i.endsWith(")") && t > i.indexOf(")"))
|
|
266
266
|
return this.formattedValue.length - 1;
|
|
267
267
|
}
|
|
268
268
|
} else {
|
|
269
|
-
const
|
|
270
|
-
if (t >= i.length -
|
|
271
|
-
return this.formattedValue.length -
|
|
272
|
-
if (t <
|
|
273
|
-
return
|
|
269
|
+
const f = d ? o.length : m.length;
|
|
270
|
+
if (t >= i.length - f)
|
|
271
|
+
return this.formattedValue.length - f;
|
|
272
|
+
if (t < a)
|
|
273
|
+
return a;
|
|
274
274
|
}
|
|
275
|
-
let
|
|
276
|
-
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !==
|
|
275
|
+
let h = t;
|
|
276
|
+
return this.options.hideCurrencySymbolOnFocus && this.options.currencyDisplay !== F.hidden && t >= a && l !== void 0 && r.includes(l) && (h -= a, d && (h += 1)), this.options.hideGroupingSeparatorOnFocus && c !== void 0 && (h -= D(i.substring(0, t), c)), h;
|
|
277
277
|
}
|
|
278
278
|
setCaretPosition(i, t = i) {
|
|
279
279
|
this.el.setSelectionRange(i, t);
|
|
@@ -281,35 +281,37 @@ class T {
|
|
|
281
281
|
}
|
|
282
282
|
const w = (s) => s?.matches("input") ? s : s?.querySelector("input");
|
|
283
283
|
function k(s, i) {
|
|
284
|
-
var t, e, n;
|
|
285
|
-
let
|
|
286
|
-
const
|
|
284
|
+
var t, e, n, m;
|
|
285
|
+
let o;
|
|
286
|
+
const c = x(null), l = x(null), d = x(null), r = N();
|
|
287
287
|
r?.emit || ((e = (t = r?.proxy) === null || t === void 0 ? void 0 : t.$emit) === null || e === void 0 || e.bind(r?.proxy));
|
|
288
|
-
const
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
288
|
+
const a = r?.props || ((n = r?.proxy) === null || n === void 0 ? void 0 : n.$props), h = O.startsWith("3");
|
|
289
|
+
h && ((m = r?.attrs.modelModifiers) === null || m === void 0 || m.lazy);
|
|
290
|
+
const f = $(() => a?.[h ? "modelValue" : "value"]);
|
|
291
|
+
return P(c, (u) => {
|
|
292
|
+
var y;
|
|
293
|
+
if (u) {
|
|
294
|
+
const b = w((y = u?.$el) !== null && y !== void 0 ? y : u);
|
|
295
|
+
b ? (o = new T({
|
|
296
|
+
el: b,
|
|
295
297
|
options: s,
|
|
296
298
|
onInput: (v) => {
|
|
297
|
-
|
|
299
|
+
d.value = v.number, l.value = v.formatted;
|
|
298
300
|
},
|
|
299
301
|
onChange: (v) => {
|
|
300
302
|
}
|
|
301
|
-
}),
|
|
303
|
+
}), o.setValue(f.value)) : console.error('No input element found. Please make sure that the "inputRef" template ref is properly assigned.');
|
|
302
304
|
} else
|
|
303
|
-
|
|
305
|
+
o = null;
|
|
304
306
|
}), {
|
|
305
|
-
inputRef:
|
|
306
|
-
numberValue:
|
|
307
|
-
formattedValue:
|
|
308
|
-
setValue: (
|
|
309
|
-
setOptions: (
|
|
307
|
+
inputRef: c,
|
|
308
|
+
numberValue: d,
|
|
309
|
+
formattedValue: l,
|
|
310
|
+
setValue: (u) => o?.setValue(u),
|
|
311
|
+
setOptions: (u) => o?.setOptions(u)
|
|
310
312
|
};
|
|
311
313
|
}
|
|
312
314
|
export {
|
|
313
|
-
|
|
315
|
+
F as C,
|
|
314
316
|
k as u
|
|
315
317
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { inject as l } from "vue";
|
|
2
|
-
import { A as f } from "./vendor-microsoft-applicationinsights-web-
|
|
3
|
-
import { t as u } from "./vendor-microsoft-applicationinsights-core-js-
|
|
2
|
+
import { A as f } from "./vendor-microsoft-applicationinsights-web-8IaeIl22.js";
|
|
3
|
+
import { t as u } from "./vendor-microsoft-applicationinsights-core-js-Cga21Mpw.js";
|
|
4
4
|
var g = Symbol("appInsights"), o = "[ApplicationInsights Plugin]";
|
|
5
5
|
function p(e) {
|
|
6
6
|
var n, t;
|