@citizenplane/pimp 8.2.3 → 8.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pimp.es.js +130 -95
- package/dist/pimp.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +11 -11
- package/src/components/core/playground-sections/SectionToggles.vue +3 -3
- package/src/components/inputs/CpInput.vue +0 -2
- package/src/components/toggles/CpCheckbox/index.vue +8 -5
- package/src/components/toggles/CpSwitch/index.vue +0 -1
- package/src/components/visual/CpIcon.vue +4 -3
- package/package-lock.json +0 -9192
package/dist/pimp.es.js
CHANGED
|
@@ -15,11 +15,11 @@ function _mergeNamespaces(n2, m2) {
|
|
|
15
15
|
});
|
|
16
16
|
return Object.freeze(Object.defineProperty(n2, Symbol.toStringTag, { value: "Module" }));
|
|
17
17
|
}
|
|
18
|
-
/*! maska v2.1.
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var m = (n2, t, s2) => (
|
|
22
|
-
const
|
|
18
|
+
/*! maska v2.1.7 | (c) Alexander Shabunevich | Released under the MIT license */
|
|
19
|
+
var W = Object.defineProperty;
|
|
20
|
+
var b = (n2, t, s2) => t in n2 ? W(n2, t, { enumerable: true, configurable: true, writable: true, value: s2 }) : n2[t] = s2;
|
|
21
|
+
var m = (n2, t, s2) => (b(n2, typeof t != "symbol" ? t + "" : t, s2), s2);
|
|
22
|
+
const O = {
|
|
23
23
|
"#": { pattern: /[0-9]/ },
|
|
24
24
|
"@": { pattern: /[a-zA-Z]/ },
|
|
25
25
|
"*": { pattern: /[a-zA-Z0-9]/ }
|
|
@@ -31,11 +31,11 @@ class w {
|
|
|
31
31
|
var e;
|
|
32
32
|
const s2 = { ...t };
|
|
33
33
|
if (s2.tokens != null) {
|
|
34
|
-
s2.tokens = s2.tokensReplace ? { ...s2.tokens } : { ...
|
|
34
|
+
s2.tokens = s2.tokensReplace ? { ...s2.tokens } : { ...O, ...s2.tokens };
|
|
35
35
|
for (const a of Object.values(s2.tokens))
|
|
36
36
|
typeof a.pattern == "string" && (a.pattern = new RegExp(a.pattern));
|
|
37
37
|
} else
|
|
38
|
-
s2.tokens =
|
|
38
|
+
s2.tokens = O;
|
|
39
39
|
Array.isArray(s2.mask) && (s2.mask.length > 1 ? s2.mask.sort((a, i) => a.length - i.length) : s2.mask = (e = s2.mask[0]) != null ? e : ""), s2.mask === "" && (s2.mask = null), this.opts = s2;
|
|
40
40
|
}
|
|
41
41
|
masked(t) {
|
|
@@ -76,40 +76,40 @@ class w {
|
|
|
76
76
|
}), { mask: s2.join(""), escaped: e };
|
|
77
77
|
}
|
|
78
78
|
process(t, s2, e = true) {
|
|
79
|
-
var
|
|
79
|
+
var A;
|
|
80
80
|
if (s2 == null)
|
|
81
81
|
return t;
|
|
82
82
|
const a = `value=${t},mask=${s2},masked=${e ? 1 : 0}`;
|
|
83
83
|
if (this.memo.has(a))
|
|
84
84
|
return this.memo.get(a);
|
|
85
|
-
const { mask: i, escaped: c } = this.escapeMask(s2), r = [], k = this.opts.tokens != null ? this.opts.tokens : {}, l2 = this.isReversed() ? -1 : 1, d = this.isReversed() ? "unshift" : "push", g = this.isReversed() ? 0 : i.length - 1,
|
|
86
|
-
let E, u = -1, o = this.isReversed() ? i.length - 1 : 0,
|
|
87
|
-
for (;
|
|
88
|
-
const f = i.charAt(o),
|
|
89
|
-
if (!c.includes(o) &&
|
|
90
|
-
if (M.match(
|
|
91
|
-
r[d](M),
|
|
92
|
-
else if (
|
|
93
|
-
const
|
|
94
|
-
|
|
85
|
+
const { mask: i, escaped: c } = this.escapeMask(s2), r = [], k = this.opts.tokens != null ? this.opts.tokens : {}, l2 = this.isReversed() ? -1 : 1, d = this.isReversed() ? "unshift" : "push", g = this.isReversed() ? 0 : i.length - 1, C = this.isReversed() ? () => o > -1 && p > -1 : () => o < i.length && p < t.length, S = (f) => !this.isReversed() && f <= g || this.isReversed() && f >= g;
|
|
86
|
+
let E, u = -1, o = this.isReversed() ? i.length - 1 : 0, p = this.isReversed() ? t.length - 1 : 0;
|
|
87
|
+
for (; C(); ) {
|
|
88
|
+
const f = i.charAt(o), h2 = k[f], M = (h2 == null ? void 0 : h2.transform) != null ? h2.transform(t.charAt(p)) : t.charAt(p);
|
|
89
|
+
if (!c.includes(o) && h2 != null) {
|
|
90
|
+
if (M.match(h2.pattern) != null)
|
|
91
|
+
r[d](M), h2.repeated ? (u === -1 ? u = o : o === g && o !== u && (o = u - l2), g === u && (o -= l2)) : h2.multiple && (o -= l2), o += l2;
|
|
92
|
+
else if (h2.multiple) {
|
|
93
|
+
const P = ((A = r[p - l2]) == null ? void 0 : A.match(h2.pattern)) != null, R = i.charAt(o + l2);
|
|
94
|
+
P && R !== "" && k[R] == null ? (o += l2, p -= l2) : r[d]("");
|
|
95
95
|
} else
|
|
96
|
-
M === E ? E = void 0 :
|
|
97
|
-
|
|
96
|
+
M === E ? E = void 0 : h2.optional && (o += l2, p -= l2);
|
|
97
|
+
p += l2;
|
|
98
98
|
} else
|
|
99
|
-
e && !this.isEager() && r[d](f), M === f && !this.isEager() ?
|
|
99
|
+
e && !this.isEager() && r[d](f), M === f && !this.isEager() ? p += l2 : E = f, this.isEager() || (o += l2);
|
|
100
100
|
if (this.isEager())
|
|
101
|
-
for (;
|
|
102
|
-
e ? r[d](i.charAt(o)) : i.charAt(o) === t.charAt(
|
|
101
|
+
for (; S(o) && (k[i.charAt(o)] == null || c.includes(o)); )
|
|
102
|
+
e ? r[d](i.charAt(o)) : i.charAt(o) === t.charAt(p) && (p += l2), o += l2;
|
|
103
103
|
}
|
|
104
104
|
return this.memo.set(a, r.join("")), this.memo.get(a);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
const
|
|
107
|
+
const V = (n2) => JSON.parse(n2.replaceAll("'", '"')), T = (n2, t = {}) => {
|
|
108
108
|
const s2 = { ...t };
|
|
109
|
-
return n2.dataset.maska != null && n2.dataset.maska !== "" && (s2.mask =
|
|
110
|
-
}, y = (n2) => n2 !== "" ? Boolean(JSON.parse(n2)) : true,
|
|
109
|
+
return n2.dataset.maska != null && n2.dataset.maska !== "" && (s2.mask = L(n2.dataset.maska)), n2.dataset.maskaEager != null && (s2.eager = y(n2.dataset.maskaEager)), n2.dataset.maskaReversed != null && (s2.reversed = y(n2.dataset.maskaReversed)), n2.dataset.maskaTokensReplace != null && (s2.tokensReplace = y(n2.dataset.maskaTokensReplace)), n2.dataset.maskaTokens != null && (s2.tokens = x(n2.dataset.maskaTokens)), s2;
|
|
110
|
+
}, y = (n2) => n2 !== "" ? Boolean(JSON.parse(n2)) : true, L = (n2) => n2.startsWith("[") && n2.endsWith("]") ? V(n2) : n2, x = (n2) => {
|
|
111
111
|
if (n2.startsWith("{") && n2.endsWith("}"))
|
|
112
|
-
return
|
|
112
|
+
return V(n2);
|
|
113
113
|
const t = {};
|
|
114
114
|
return n2.split("|").forEach((s2) => {
|
|
115
115
|
const e = s2.split(":");
|
|
@@ -121,7 +121,7 @@ const S = (n2) => JSON.parse(n2.replaceAll("'", '"')), O = (n2, t = {}) => {
|
|
|
121
121
|
};
|
|
122
122
|
}), t;
|
|
123
123
|
};
|
|
124
|
-
class
|
|
124
|
+
class J {
|
|
125
125
|
constructor(t, s2 = {}) {
|
|
126
126
|
m(this, "items", /* @__PURE__ */ new Map());
|
|
127
127
|
m(this, "beforeinputEvent", (t2) => {
|
|
@@ -156,17 +156,21 @@ class N {
|
|
|
156
156
|
t.removeEventListener("input", this.inputEvent), t.removeEventListener("beforeinput", this.beforeinputEvent);
|
|
157
157
|
this.items.clear();
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
const e = this.items.get(t), a = new w(
|
|
159
|
+
needUpdateOptions(t, s2) {
|
|
160
|
+
const e = this.items.get(t), a = new w(T(t, this.getMaskOpts(s2)));
|
|
161
161
|
return JSON.stringify(e.opts) !== JSON.stringify(a.opts);
|
|
162
162
|
}
|
|
163
|
+
needUpdateValue(t) {
|
|
164
|
+
const s2 = t.dataset.maskaValue;
|
|
165
|
+
return s2 == null && t.value !== "" || s2 != null && s2 !== t.value;
|
|
166
|
+
}
|
|
163
167
|
getMaskOpts(t) {
|
|
164
168
|
const { onMaska: s2, preProcess: e, postProcess: a, ...i } = t;
|
|
165
169
|
return i;
|
|
166
170
|
}
|
|
167
171
|
init(t, s2) {
|
|
168
172
|
for (const e of t) {
|
|
169
|
-
const a = new w(
|
|
173
|
+
const a = new w(T(e, s2));
|
|
170
174
|
this.items.set(e, a), e.value !== "" && this.setMaskedValue(e, e.value), e.addEventListener("input", this.inputEvent), e.addEventListener("beforeinput", this.beforeinputEvent);
|
|
171
175
|
}
|
|
172
176
|
}
|
|
@@ -177,16 +181,19 @@ class N {
|
|
|
177
181
|
s2 = a, this.options.postProcess != null && (s2 = this.options.postProcess(s2)), t.value = s2, t.dataset.maskaValue = s2, this.options.onMaska != null && (Array.isArray(this.options.onMaska) ? this.options.onMaska.forEach((k) => k(r)) : this.options.onMaska(r)), t.dispatchEvent(new CustomEvent("maska", { detail: r })), t.dispatchEvent(new CustomEvent("input", { detail: r }));
|
|
178
182
|
}
|
|
179
183
|
}
|
|
180
|
-
const
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
+
const v = /* @__PURE__ */ new WeakMap(), N = (n2) => {
|
|
185
|
+
setTimeout(() => {
|
|
186
|
+
var t;
|
|
187
|
+
((t = v.get(n2)) == null ? void 0 : t.needUpdateValue(n2)) === true && n2.dispatchEvent(new CustomEvent("input"));
|
|
188
|
+
});
|
|
189
|
+
}, U = (n2, t) => {
|
|
184
190
|
const s2 = n2 instanceof HTMLInputElement ? n2 : n2.querySelector("input"), e = { ...t.arg };
|
|
185
191
|
if (s2 == null)
|
|
186
192
|
return;
|
|
187
|
-
|
|
193
|
+
N(s2);
|
|
194
|
+
const a = v.get(s2);
|
|
188
195
|
if (a != null) {
|
|
189
|
-
if (
|
|
196
|
+
if (!a.needUpdateOptions(s2, e))
|
|
190
197
|
return;
|
|
191
198
|
a.destroy();
|
|
192
199
|
}
|
|
@@ -196,9 +203,7 @@ const T = /* @__PURE__ */ new WeakMap(), C = (n2) => {
|
|
|
196
203
|
};
|
|
197
204
|
e.onMaska = e.onMaska == null ? c : Array.isArray(e.onMaska) ? [...e.onMaska, c] : [e.onMaska, c];
|
|
198
205
|
}
|
|
199
|
-
|
|
200
|
-
C(s2);
|
|
201
|
-
});
|
|
206
|
+
v.set(s2, new J(s2, e));
|
|
202
207
|
};
|
|
203
208
|
var ClickOutside = {
|
|
204
209
|
beforeMount(el, binding) {
|
|
@@ -722,8 +727,11 @@ class PolyNumberFormatter {
|
|
|
722
727
|
class PolyDateFormatter {
|
|
723
728
|
constructor(dt, intl, opts) {
|
|
724
729
|
this.opts = opts;
|
|
730
|
+
this.originalZone = void 0;
|
|
725
731
|
let z = void 0;
|
|
726
|
-
if (
|
|
732
|
+
if (this.opts.timeZone) {
|
|
733
|
+
this.dt = dt;
|
|
734
|
+
} else if (dt.zone.type === "fixed") {
|
|
727
735
|
const gmtOffset = -1 * (dt.offset / 60);
|
|
728
736
|
const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;
|
|
729
737
|
if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {
|
|
@@ -731,27 +739,48 @@ class PolyDateFormatter {
|
|
|
731
739
|
this.dt = dt;
|
|
732
740
|
} else {
|
|
733
741
|
z = "UTC";
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
} else {
|
|
737
|
-
this.dt = dt.offset === 0 ? dt : DateTime.fromMillis(dt.ts + dt.offset * 60 * 1e3);
|
|
738
|
-
}
|
|
742
|
+
this.dt = dt.offset === 0 ? dt : dt.setZone("UTC").plus({ minutes: dt.offset });
|
|
743
|
+
this.originalZone = dt.zone;
|
|
739
744
|
}
|
|
740
745
|
} else if (dt.zone.type === "system") {
|
|
741
746
|
this.dt = dt;
|
|
742
|
-
} else {
|
|
747
|
+
} else if (dt.zone.type === "iana") {
|
|
743
748
|
this.dt = dt;
|
|
744
749
|
z = dt.zone.name;
|
|
750
|
+
} else {
|
|
751
|
+
z = "UTC";
|
|
752
|
+
this.dt = dt.setZone("UTC").plus({ minutes: dt.offset });
|
|
753
|
+
this.originalZone = dt.zone;
|
|
745
754
|
}
|
|
746
755
|
const intlOpts = { ...this.opts };
|
|
747
756
|
intlOpts.timeZone = intlOpts.timeZone || z;
|
|
748
757
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
749
758
|
}
|
|
750
759
|
format() {
|
|
760
|
+
if (this.originalZone) {
|
|
761
|
+
return this.formatToParts().map(({ value }) => value).join("");
|
|
762
|
+
}
|
|
751
763
|
return this.dtf.format(this.dt.toJSDate());
|
|
752
764
|
}
|
|
753
765
|
formatToParts() {
|
|
754
|
-
|
|
766
|
+
const parts = this.dtf.formatToParts(this.dt.toJSDate());
|
|
767
|
+
if (this.originalZone) {
|
|
768
|
+
return parts.map((part) => {
|
|
769
|
+
if (part.type === "timeZoneName") {
|
|
770
|
+
const offsetName = this.originalZone.offsetName(this.dt.ts, {
|
|
771
|
+
locale: this.dt.locale,
|
|
772
|
+
format: this.opts.timeZoneName
|
|
773
|
+
});
|
|
774
|
+
return {
|
|
775
|
+
...part,
|
|
776
|
+
value: offsetName
|
|
777
|
+
};
|
|
778
|
+
} else {
|
|
779
|
+
return part;
|
|
780
|
+
}
|
|
781
|
+
});
|
|
782
|
+
}
|
|
783
|
+
return parts;
|
|
755
784
|
}
|
|
756
785
|
resolvedOptions() {
|
|
757
786
|
return this.dtf.resolvedOptions();
|
|
@@ -1187,7 +1216,7 @@ function objToLocalTS(obj) {
|
|
|
1187
1216
|
);
|
|
1188
1217
|
if (obj.year < 100 && obj.year >= 0) {
|
|
1189
1218
|
d = new Date(d);
|
|
1190
|
-
d.setUTCFullYear(
|
|
1219
|
+
d.setUTCFullYear(obj.year, obj.month - 1, obj.day);
|
|
1191
1220
|
}
|
|
1192
1221
|
return +d;
|
|
1193
1222
|
}
|
|
@@ -1235,10 +1264,10 @@ function normalizeObject(obj, normalizer) {
|
|
|
1235
1264
|
const normalized = {};
|
|
1236
1265
|
for (const u in obj) {
|
|
1237
1266
|
if (hasOwnProperty(obj, u)) {
|
|
1238
|
-
const
|
|
1239
|
-
if (
|
|
1267
|
+
const v2 = obj[u];
|
|
1268
|
+
if (v2 === void 0 || v2 === null)
|
|
1240
1269
|
continue;
|
|
1241
|
-
normalized[normalizer(u)] = asNumber(
|
|
1270
|
+
normalized[normalizer(u)] = asNumber(v2);
|
|
1242
1271
|
}
|
|
1243
1272
|
}
|
|
1244
1273
|
return normalized;
|
|
@@ -1427,7 +1456,7 @@ class Formatter {
|
|
|
1427
1456
|
const c = fmt.charAt(i);
|
|
1428
1457
|
if (c === "'") {
|
|
1429
1458
|
if (currentFull.length > 0) {
|
|
1430
|
-
splits.push({ literal: bracketed, val: currentFull });
|
|
1459
|
+
splits.push({ literal: bracketed || /^\s+$/.test(currentFull), val: currentFull });
|
|
1431
1460
|
}
|
|
1432
1461
|
current = null;
|
|
1433
1462
|
currentFull = "";
|
|
@@ -1438,14 +1467,14 @@ class Formatter {
|
|
|
1438
1467
|
currentFull += c;
|
|
1439
1468
|
} else {
|
|
1440
1469
|
if (currentFull.length > 0) {
|
|
1441
|
-
splits.push({ literal:
|
|
1470
|
+
splits.push({ literal: /^\s+$/.test(currentFull), val: currentFull });
|
|
1442
1471
|
}
|
|
1443
1472
|
currentFull = c;
|
|
1444
1473
|
current = c;
|
|
1445
1474
|
}
|
|
1446
1475
|
}
|
|
1447
1476
|
if (currentFull.length > 0) {
|
|
1448
|
-
splits.push({ literal: bracketed, val: currentFull });
|
|
1477
|
+
splits.push({ literal: bracketed || /^\s+$/.test(currentFull), val: currentFull });
|
|
1449
1478
|
}
|
|
1450
1479
|
return splits;
|
|
1451
1480
|
}
|
|
@@ -2510,7 +2539,7 @@ class Interval {
|
|
|
2510
2539
|
if (!this.isValid)
|
|
2511
2540
|
return NaN;
|
|
2512
2541
|
const start = this.start.startOf(unit), end = this.end.startOf(unit);
|
|
2513
|
-
return Math.floor(end.diff(start, unit).get(unit)) +
|
|
2542
|
+
return Math.floor(end.diff(start, unit).get(unit)) + (end.valueOf() !== this.end.valueOf());
|
|
2514
2543
|
}
|
|
2515
2544
|
hasSame(unit) {
|
|
2516
2545
|
return this.isValid ? this.isEmpty() || this.e.minus(1).hasSame(this.s, unit) : false;
|
|
@@ -2984,6 +3013,8 @@ function unitForToken(token, loc) {
|
|
|
2984
3013
|
return offset(new RegExp(`([+-]${oneOrTwo.source})(${two.source})?`), 2);
|
|
2985
3014
|
case "z":
|
|
2986
3015
|
return simple(/[a-z_+-/]{1,256}?/i);
|
|
3016
|
+
case " ":
|
|
3017
|
+
return simple(/[^\S\n\r]/);
|
|
2987
3018
|
default:
|
|
2988
3019
|
return literal(t);
|
|
2989
3020
|
}
|
|
@@ -3035,9 +3066,10 @@ const partTypeStyleToTokenVal = {
|
|
|
3035
3066
|
function tokenForPart(part, formatOpts) {
|
|
3036
3067
|
const { type, value } = part;
|
|
3037
3068
|
if (type === "literal") {
|
|
3069
|
+
const isSpace = /^\s+$/.test(value);
|
|
3038
3070
|
return {
|
|
3039
|
-
literal:
|
|
3040
|
-
val: value
|
|
3071
|
+
literal: !isSpace,
|
|
3072
|
+
val: isSpace ? " " : value
|
|
3041
3073
|
};
|
|
3042
3074
|
}
|
|
3043
3075
|
const style = formatOpts[type];
|
|
@@ -3376,7 +3408,7 @@ function adjustTime(inst, dur) {
|
|
|
3376
3408
|
}
|
|
3377
3409
|
function parseDataToDateTime(parsed, parsedZone, opts, format, text, specificOffset) {
|
|
3378
3410
|
const { setZone, zone } = opts;
|
|
3379
|
-
if (parsed && Object.keys(parsed).length !== 0) {
|
|
3411
|
+
if (parsed && Object.keys(parsed).length !== 0 || parsedZone) {
|
|
3380
3412
|
const interpretationZone = parsedZone || zone, inst = DateTime.fromObject(parsed, {
|
|
3381
3413
|
...opts,
|
|
3382
3414
|
zone: interpretationZone,
|
|
@@ -3677,8 +3709,8 @@ class DateTime {
|
|
|
3677
3709
|
}
|
|
3678
3710
|
let foundFirst = false;
|
|
3679
3711
|
for (const u of units) {
|
|
3680
|
-
const
|
|
3681
|
-
if (!isUndefined(
|
|
3712
|
+
const v2 = normalized[u];
|
|
3713
|
+
if (!isUndefined(v2)) {
|
|
3682
3714
|
foundFirst = true;
|
|
3683
3715
|
} else if (foundFirst) {
|
|
3684
3716
|
normalized[u] = defaultValues[u];
|
|
@@ -5107,7 +5139,7 @@ var feather$2 = { exports: {} };
|
|
|
5107
5139
|
var getIteratorMethod = __webpack_require__("./node_modules/core-js/internals/get-iterator-method.js");
|
|
5108
5140
|
module2.exports = function from(arrayLike) {
|
|
5109
5141
|
var O2 = toObject(arrayLike);
|
|
5110
|
-
var
|
|
5142
|
+
var C = typeof this == "function" ? this : Array;
|
|
5111
5143
|
var argumentsLength = arguments.length;
|
|
5112
5144
|
var mapfn = argumentsLength > 1 ? arguments[1] : void 0;
|
|
5113
5145
|
var mapping = mapfn !== void 0;
|
|
@@ -5116,9 +5148,9 @@ var feather$2 = { exports: {} };
|
|
|
5116
5148
|
var length, result, step, iterator;
|
|
5117
5149
|
if (mapping)
|
|
5118
5150
|
mapfn = bind(mapfn, argumentsLength > 2 ? arguments[2] : void 0, 2);
|
|
5119
|
-
if (iteratorMethod != void 0 && !(
|
|
5151
|
+
if (iteratorMethod != void 0 && !(C == Array && isArrayIteratorMethod(iteratorMethod))) {
|
|
5120
5152
|
iterator = iteratorMethod.call(O2);
|
|
5121
|
-
result = new
|
|
5153
|
+
result = new C();
|
|
5122
5154
|
for (; !(step = iterator.next()).done; index++) {
|
|
5123
5155
|
createProperty(
|
|
5124
5156
|
result,
|
|
@@ -5128,7 +5160,7 @@ var feather$2 = { exports: {} };
|
|
|
5128
5160
|
}
|
|
5129
5161
|
} else {
|
|
5130
5162
|
length = toLength(O2.length);
|
|
5131
|
-
result = new
|
|
5163
|
+
result = new C(length);
|
|
5132
5164
|
for (; length > index; index++) {
|
|
5133
5165
|
createProperty(result, index, mapping ? mapfn(O2[index], index) : O2[index]);
|
|
5134
5166
|
}
|
|
@@ -5878,8 +5910,8 @@ var feather$2 = { exports: {} };
|
|
|
5878
5910
|
var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
|
|
5879
5911
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
5880
5912
|
var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
|
|
5881
|
-
exports2.f = NASHORN_BUG ? function propertyIsEnumerable(
|
|
5882
|
-
var descriptor = getOwnPropertyDescriptor(this,
|
|
5913
|
+
exports2.f = NASHORN_BUG ? function propertyIsEnumerable(V2) {
|
|
5914
|
+
var descriptor = getOwnPropertyDescriptor(this, V2);
|
|
5883
5915
|
return !!descriptor && descriptor.enumerable;
|
|
5884
5916
|
} : nativePropertyIsEnumerable;
|
|
5885
5917
|
},
|
|
@@ -6018,14 +6050,14 @@ var feather$2 = { exports: {} };
|
|
|
6018
6050
|
var toInteger = __webpack_require__("./node_modules/core-js/internals/to-integer.js");
|
|
6019
6051
|
var requireObjectCoercible = __webpack_require__("./node_modules/core-js/internals/require-object-coercible.js");
|
|
6020
6052
|
module2.exports = function(that, pos, CONVERT_TO_STRING) {
|
|
6021
|
-
var
|
|
6053
|
+
var S = String(requireObjectCoercible(that));
|
|
6022
6054
|
var position = toInteger(pos);
|
|
6023
|
-
var size =
|
|
6055
|
+
var size = S.length;
|
|
6024
6056
|
var first, second;
|
|
6025
6057
|
if (position < 0 || position >= size)
|
|
6026
6058
|
return CONVERT_TO_STRING ? "" : void 0;
|
|
6027
|
-
first =
|
|
6028
|
-
return first < 55296 || first > 56319 || position + 1 === size || (second =
|
|
6059
|
+
first = S.charCodeAt(position);
|
|
6060
|
+
return first < 55296 || first > 56319 || position + 1 === size || (second = S.charCodeAt(position + 1)) < 56320 || second > 57343 ? CONVERT_TO_STRING ? S.charAt(position) : first : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 55296 << 10) + (second - 56320) + 65536;
|
|
6029
6061
|
};
|
|
6030
6062
|
},
|
|
6031
6063
|
"./node_modules/core-js/internals/to-absolute-index.js": function(module2, exports2, __webpack_require__) {
|
|
@@ -6066,15 +6098,15 @@ var feather$2 = { exports: {} };
|
|
|
6066
6098
|
},
|
|
6067
6099
|
"./node_modules/core-js/internals/to-primitive.js": function(module2, exports2, __webpack_require__) {
|
|
6068
6100
|
var isObject = __webpack_require__("./node_modules/core-js/internals/is-object.js");
|
|
6069
|
-
module2.exports = function(it,
|
|
6101
|
+
module2.exports = function(it, S) {
|
|
6070
6102
|
if (!isObject(it))
|
|
6071
6103
|
return it;
|
|
6072
6104
|
var fn, val;
|
|
6073
|
-
if (
|
|
6105
|
+
if (S && typeof (fn = it.toString) == "function" && !isObject(val = fn.call(it)))
|
|
6074
6106
|
return val;
|
|
6075
6107
|
if (typeof (fn = it.valueOf) == "function" && !isObject(val = fn.call(it)))
|
|
6076
6108
|
return val;
|
|
6077
|
-
if (!
|
|
6109
|
+
if (!S && typeof (fn = it.toString) == "function" && !isObject(val = fn.call(it)))
|
|
6078
6110
|
return val;
|
|
6079
6111
|
throw TypeError("Can't convert object to primitive value");
|
|
6080
6112
|
};
|
|
@@ -8667,14 +8699,14 @@ var bezier = function() {
|
|
|
8667
8699
|
function B(aA1, aA2) {
|
|
8668
8700
|
return 3 * aA2 - 6 * aA1;
|
|
8669
8701
|
}
|
|
8670
|
-
function
|
|
8702
|
+
function C(aA1) {
|
|
8671
8703
|
return 3 * aA1;
|
|
8672
8704
|
}
|
|
8673
8705
|
function calcBezier(aT, aA1, aA2) {
|
|
8674
|
-
return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT +
|
|
8706
|
+
return ((A(aA1, aA2) * aT + B(aA1, aA2)) * aT + C(aA1)) * aT;
|
|
8675
8707
|
}
|
|
8676
8708
|
function getSlope(aT, aA1, aA2) {
|
|
8677
|
-
return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT +
|
|
8709
|
+
return 3 * A(aA1, aA2) * aT * aT + 2 * B(aA1, aA2) * aT + C(aA1);
|
|
8678
8710
|
}
|
|
8679
8711
|
function binarySubdivide(aX, aA, aB, mX1, mX2) {
|
|
8680
8712
|
var currentX, currentT, i = 0;
|
|
@@ -9242,8 +9274,8 @@ function normalizePropertyTweens(prop, tweenSettings) {
|
|
|
9242
9274
|
}
|
|
9243
9275
|
}
|
|
9244
9276
|
var propArray = is.arr(prop) ? prop : [prop];
|
|
9245
|
-
return propArray.map(function(
|
|
9246
|
-
var obj = is.obj(
|
|
9277
|
+
return propArray.map(function(v2, i) {
|
|
9278
|
+
var obj = is.obj(v2) && !is.pth(v2) ? v2 : { value: v2 };
|
|
9247
9279
|
if (is.und(obj.delay)) {
|
|
9248
9280
|
obj.delay = !i ? tweenSettings.delay : 0;
|
|
9249
9281
|
}
|
|
@@ -9308,8 +9340,8 @@ function normalizeTweenValues(tween, animatable) {
|
|
|
9308
9340
|
for (var p in tween) {
|
|
9309
9341
|
var value = getFunctionValue(tween[p], animatable);
|
|
9310
9342
|
if (is.arr(value)) {
|
|
9311
|
-
value = value.map(function(
|
|
9312
|
-
return getFunctionValue(
|
|
9343
|
+
value = value.map(function(v2) {
|
|
9344
|
+
return getFunctionValue(v2, animatable);
|
|
9313
9345
|
});
|
|
9314
9346
|
if (value.length === 1) {
|
|
9315
9347
|
value = value[0];
|
|
@@ -9352,17 +9384,17 @@ function normalizeTweens(prop, animatable) {
|
|
|
9352
9384
|
});
|
|
9353
9385
|
}
|
|
9354
9386
|
var setProgressValue = {
|
|
9355
|
-
css: function(t, p,
|
|
9356
|
-
return t.style[p] =
|
|
9387
|
+
css: function(t, p, v2) {
|
|
9388
|
+
return t.style[p] = v2;
|
|
9357
9389
|
},
|
|
9358
|
-
attribute: function(t, p,
|
|
9359
|
-
return t.setAttribute(p,
|
|
9390
|
+
attribute: function(t, p, v2) {
|
|
9391
|
+
return t.setAttribute(p, v2);
|
|
9360
9392
|
},
|
|
9361
|
-
object: function(t, p,
|
|
9362
|
-
return t[p] =
|
|
9393
|
+
object: function(t, p, v2) {
|
|
9394
|
+
return t[p] = v2;
|
|
9363
9395
|
},
|
|
9364
|
-
transform: function(t, p,
|
|
9365
|
-
transforms.list.set(p,
|
|
9396
|
+
transform: function(t, p, v2, transforms, manual) {
|
|
9397
|
+
transforms.list.set(p, v2);
|
|
9366
9398
|
if (p === transforms.last || manual) {
|
|
9367
9399
|
var str = "";
|
|
9368
9400
|
transforms.list.forEach(function(value, prop) {
|
|
@@ -10104,7 +10136,7 @@ var CpSelectMenu = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_ren
|
|
|
10104
10136
|
var index_vue_vue_type_style_index_0_lang$4 = "";
|
|
10105
10137
|
const _sfc_main$4 = {
|
|
10106
10138
|
props: {
|
|
10107
|
-
|
|
10139
|
+
modelValue: {
|
|
10108
10140
|
type: [Array, Boolean],
|
|
10109
10141
|
default: () => [],
|
|
10110
10142
|
required: false
|
|
@@ -10149,7 +10181,7 @@ const _sfc_main$4 = {
|
|
|
10149
10181
|
default: false
|
|
10150
10182
|
}
|
|
10151
10183
|
},
|
|
10152
|
-
emits: ["update:
|
|
10184
|
+
emits: ["update:modelValue"],
|
|
10153
10185
|
data() {
|
|
10154
10186
|
return {
|
|
10155
10187
|
checkedProxy: false,
|
|
@@ -10159,7 +10191,7 @@ const _sfc_main$4 = {
|
|
|
10159
10191
|
computed: {
|
|
10160
10192
|
isChecked: {
|
|
10161
10193
|
get() {
|
|
10162
|
-
return this.
|
|
10194
|
+
return this.modelValue;
|
|
10163
10195
|
},
|
|
10164
10196
|
set(newValue) {
|
|
10165
10197
|
this.checkedProxy = newValue;
|
|
@@ -10176,6 +10208,9 @@ const _sfc_main$4 = {
|
|
|
10176
10208
|
},
|
|
10177
10209
|
`cpCheckbox--is${this.capitalizedColor}`
|
|
10178
10210
|
];
|
|
10211
|
+
},
|
|
10212
|
+
labelComputedClasses() {
|
|
10213
|
+
return { "cpCheckbox__label--isCapitalized": this.capitalizeLabel };
|
|
10179
10214
|
}
|
|
10180
10215
|
},
|
|
10181
10216
|
mounted() {
|
|
@@ -10183,7 +10218,7 @@ const _sfc_main$4 = {
|
|
|
10183
10218
|
},
|
|
10184
10219
|
methods: {
|
|
10185
10220
|
onChange() {
|
|
10186
|
-
this.$emit("update:
|
|
10221
|
+
this.$emit("update:modelValue", this.checkedProxy);
|
|
10187
10222
|
}
|
|
10188
10223
|
}
|
|
10189
10224
|
};
|
|
@@ -10209,7 +10244,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10209
10244
|
]),
|
|
10210
10245
|
createVNode(_component_cp_icon, { type: "check" }),
|
|
10211
10246
|
createElementVNode("span", {
|
|
10212
|
-
class: normalizeClass(["cpCheckbox__label",
|
|
10247
|
+
class: normalizeClass(["cpCheckbox__label", $options.labelComputedClasses])
|
|
10213
10248
|
}, toDisplayString($props.checkboxLabel), 3)
|
|
10214
10249
|
], 10, _hoisted_1$4);
|
|
10215
10250
|
}
|
|
@@ -10951,7 +10986,7 @@ const Pimp = {
|
|
|
10951
10986
|
app.component(name, Components[name]);
|
|
10952
10987
|
});
|
|
10953
10988
|
app.directive("click-outside", ClickOutside);
|
|
10954
|
-
app.directive("maska",
|
|
10989
|
+
app.directive("maska", U);
|
|
10955
10990
|
}
|
|
10956
10991
|
};
|
|
10957
10992
|
export { Pimp as default };
|