next-flow-design 1.6.1 → 1.6.2
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/components/nf-input-number/nf-input-number.d.ts +0 -1
- package/dist/index.js +280 -283
- package/dist/react/index.js +47 -50
- package/package.json +1 -1
package/dist/react/index.js
CHANGED
|
@@ -375,8 +375,8 @@ async function qe(t) {
|
|
|
375
375
|
return new Promise((e) => setTimeout(e, t));
|
|
376
376
|
}
|
|
377
377
|
const We = C`:host{width:var(--nf-width);-webkit-user-select:none;user-select:none;cursor:pointer}:host .text{flex-grow:1;display:inline-block;outline:0;white-space:nowrap}:host .icon{width:1.5rem;height:1.5rem;display:inline-block;fill:none;stroke:var(--nf-select-icon-color);stroke-width:1;stroke-linecap:round;margin:0 -.3rem 0 .5rem}:host .dropdown{position:absolute;top:2rem;right:0;left:0;padding:.3rem;background:var(--nf-dropdown-background);-webkit-backdrop-filter:blur(32px);backdrop-filter:blur(32px);border-radius:.5rem;opacity:0;pointer-events:none;color:var(--nf-color);box-shadow:0 0 1rem 0 var(--nf-dropdown-shadow);z-index:1000;transition:opacity var(--nf-transition) ease-out,transform var(--nf-transition) ease-out}:host .dropdown .item{white-space:nowrap;padding:.4rem .7rem;overflow:hidden;text-overflow:ellipsis;border-radius:.3rem;cursor:pointer}:host .dropdown .item-unselected:hover{background:var(--nf-item-background-hover);transition:background-color var(--nf-transition) ease-in-out}:host .dropdown .item-unselected:active{background:var(--nf-item-background-active)}:host .dropdown .item-selected{background-color:color-mix(in srgb,var(--nf-primary-color) 30%,transparent)}:host([disabled]){cursor:not-allowed}:host([disabled]) .text{color:var(--nf-color-disabled)}:host([disabled]) .icon{stroke:var(--nf-color-disabled)}:host([disabled]) .dropdown{display:none}:host(:focus:not([disabled])){color:var(--nf-focus-text-color)}:host(:focus:not([disabled])) .dropdown{transform:translateY(.5rem);opacity:1;pointer-events:auto}:host(:focus:not([disabled])) .cover{pointer-events:auto}`;
|
|
378
|
-
var Ke = Object.defineProperty,
|
|
379
|
-
for (var s = r > 1 ? void 0 : r ?
|
|
378
|
+
var Ke = Object.defineProperty, Ze = Object.getOwnPropertyDescriptor, Z = (t, e, o, r) => {
|
|
379
|
+
for (var s = r > 1 ? void 0 : r ? Ze(e, o) : e, i = t.length - 1, n; i >= 0; i--)
|
|
380
380
|
(n = t[i]) && (s = (r ? n(e, o, s) : n(s)) || s);
|
|
381
381
|
return r && s && Ke(e, o, s), s;
|
|
382
382
|
};
|
|
@@ -417,10 +417,10 @@ let A = class extends W {
|
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
A.styles = [K, We];
|
|
420
|
-
|
|
420
|
+
Z([
|
|
421
421
|
h({ type: String })
|
|
422
422
|
], A.prototype, "value", 2);
|
|
423
|
-
|
|
423
|
+
Z([
|
|
424
424
|
h({
|
|
425
425
|
type: Array,
|
|
426
426
|
converter: (t) => {
|
|
@@ -436,13 +436,13 @@ Y([
|
|
|
436
436
|
}
|
|
437
437
|
})
|
|
438
438
|
], A.prototype, "options", 2);
|
|
439
|
-
|
|
439
|
+
Z([
|
|
440
440
|
h({ type: Boolean, reflect: !0 })
|
|
441
441
|
], A.prototype, "disabled", 2);
|
|
442
|
-
|
|
442
|
+
Z([
|
|
443
443
|
w()
|
|
444
444
|
], A.prototype, "showDropdown", 2);
|
|
445
|
-
A =
|
|
445
|
+
A = Z([
|
|
446
446
|
O("nf-select")
|
|
447
447
|
], A);
|
|
448
448
|
const Tt = N({
|
|
@@ -454,9 +454,9 @@ const Tt = N({
|
|
|
454
454
|
onChange: "change"
|
|
455
455
|
}
|
|
456
456
|
});
|
|
457
|
-
const ne = globalThis, be = (t) => t, Q = ne.trustedTypes, me = Q ? Q.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Ee = "?" + E,
|
|
457
|
+
const ne = globalThis, be = (t) => t, Q = ne.trustedTypes, me = Q ? Q.createPolicy("lit-html", { createHTML: (t) => t }) : void 0, ke = "$lit$", E = `lit$${Math.random().toFixed(9).slice(2)}$`, Ee = "?" + E, Ye = `<${Ee}>`, M = document, j = () => M.createComment(""), R = (t) => t === null || typeof t != "object" && typeof t != "function", ae = Array.isArray, Xe = (t) => ae(t) || typeof t?.[Symbol.iterator] == "function", oe = `[
|
|
458
458
|
\f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ge = /-->/g, ve = />/g, S = RegExp(`>|${oe}(?:([^\\s"'>=/]+)(${oe}*=${oe}*(?:[^
|
|
459
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), _e = /'/g, ye = /"/g, Ae = /^(?:script|style|textarea|title)$/i, Ge = (t) => (e, ...o) => ({ _$litType$: t, strings: e, values: o }), re = Ge(1), D = /* @__PURE__ */ Symbol.for("lit-noChange"),
|
|
459
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), _e = /'/g, ye = /"/g, Ae = /^(?:script|style|textarea|title)$/i, Ge = (t) => (e, ...o) => ({ _$litType$: t, strings: e, values: o }), re = Ge(1), D = /* @__PURE__ */ Symbol.for("lit-noChange"), b = /* @__PURE__ */ Symbol.for("lit-nothing"), we = /* @__PURE__ */ new WeakMap(), P = M.createTreeWalker(M, 129);
|
|
460
460
|
function Ce(t, e) {
|
|
461
461
|
if (!ae(t) || !t.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
462
462
|
return me !== void 0 ? me.createHTML(e) : e;
|
|
@@ -469,7 +469,7 @@ const Je = (t, e) => {
|
|
|
469
469
|
let c, p, d = -1, x = 0;
|
|
470
470
|
for (; x < a.length && (n.lastIndex = x, p = n.exec(a), p !== null); ) x = n.lastIndex, n === I ? p[1] === "!--" ? n = ge : p[1] !== void 0 ? n = ve : p[2] !== void 0 ? (Ae.test(p[2]) && (s = RegExp("</" + p[2], "g")), n = S) : p[3] !== void 0 && (n = S) : n === S ? p[0] === ">" ? (n = s ?? I, d = -1) : p[1] === void 0 ? d = -2 : (d = n.lastIndex - p[2].length, c = p[1], n = p[3] === void 0 ? S : p[3] === '"' ? ye : _e) : n === ye || n === _e ? n = S : n === ge || n === ve ? n = I : (n = S, s = void 0);
|
|
471
471
|
const k = n === S && t[l + 1].startsWith("/>") ? " " : "";
|
|
472
|
-
i += n === I ? a +
|
|
472
|
+
i += n === I ? a + Ye : d >= 0 ? (r.push(c), a.slice(0, d) + ke + a.slice(d) + E + k) : a + E + (d === -2 ? l : k);
|
|
473
473
|
}
|
|
474
474
|
return [Ce(t, i + (t[o] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), r];
|
|
475
475
|
};
|
|
@@ -533,7 +533,7 @@ class Qe {
|
|
|
533
533
|
for (; a !== void 0; ) {
|
|
534
534
|
if (n === a.index) {
|
|
535
535
|
let c;
|
|
536
|
-
a.type === 2 ? c = new
|
|
536
|
+
a.type === 2 ? c = new Y(i, i.nextSibling, this, e) : a.type === 1 ? c = new a.ctor(i, a.name, a.strings, this, e) : a.type === 6 && (c = new rt(i, this, e)), this._$AV.push(c), a = r[++l];
|
|
537
537
|
}
|
|
538
538
|
n !== a?.index && (i = P.nextNode(), n++);
|
|
539
539
|
}
|
|
@@ -544,12 +544,12 @@ class Qe {
|
|
|
544
544
|
for (const r of this._$AV) r !== void 0 && (r.strings !== void 0 ? (r._$AI(e, r, o), o += r.strings.length - 2) : r._$AI(e[o])), o++;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
class
|
|
547
|
+
class Y {
|
|
548
548
|
get _$AU() {
|
|
549
549
|
return this._$AM?._$AU ?? this._$Cv;
|
|
550
550
|
}
|
|
551
551
|
constructor(e, o, r, s) {
|
|
552
|
-
this.type = 2, this._$AH =
|
|
552
|
+
this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = e, this._$AB = o, this._$AM = r, this.options = s, this._$Cv = s?.isConnected ?? !0;
|
|
553
553
|
}
|
|
554
554
|
get parentNode() {
|
|
555
555
|
let e = this._$AA.parentNode;
|
|
@@ -563,7 +563,7 @@ class Z {
|
|
|
563
563
|
return this._$AB;
|
|
564
564
|
}
|
|
565
565
|
_$AI(e, o = this) {
|
|
566
|
-
e = U(this, e, o), R(e) ? e ===
|
|
566
|
+
e = U(this, e, o), R(e) ? e === b || e == null || e === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : e !== this._$AH && e !== D && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Xe(e) ? this.k(e) : this._(e);
|
|
567
567
|
}
|
|
568
568
|
O(e) {
|
|
569
569
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -572,7 +572,7 @@ class Z {
|
|
|
572
572
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
573
573
|
}
|
|
574
574
|
_(e) {
|
|
575
|
-
this._$AH !==
|
|
575
|
+
this._$AH !== b && R(this._$AH) ? this._$AA.nextSibling.data = e : this.T(M.createTextNode(e)), this._$AH = e;
|
|
576
576
|
}
|
|
577
577
|
$(e) {
|
|
578
578
|
const { values: o, _$litType$: r } = e, s = typeof r == "number" ? this._$AC(e) : (r.el === void 0 && (r.el = q.createElement(Ce(r.h, r.h[0]), this.options)), r);
|
|
@@ -590,7 +590,7 @@ class Z {
|
|
|
590
590
|
ae(this._$AH) || (this._$AH = [], this._$AR());
|
|
591
591
|
const o = this._$AH;
|
|
592
592
|
let r, s = 0;
|
|
593
|
-
for (const i of e) s === o.length ? o.push(r = new
|
|
593
|
+
for (const i of e) s === o.length ? o.push(r = new Y(this.O(j()), this.O(j()), this, this.options)) : r = o[s], r._$AI(i), s++;
|
|
594
594
|
s < o.length && (this._$AR(r && r._$AB.nextSibling, s), o.length = s);
|
|
595
595
|
}
|
|
596
596
|
_$AR(e = this._$AA.nextSibling, o) {
|
|
@@ -611,7 +611,7 @@ class te {
|
|
|
611
611
|
return this._$AM._$AU;
|
|
612
612
|
}
|
|
613
613
|
constructor(e, o, r, s, i) {
|
|
614
|
-
this.type = 1, this._$AH =
|
|
614
|
+
this.type = 1, this._$AH = b, this._$AN = void 0, this.element = e, this.name = o, this._$AM = s, this.options = i, r.length > 2 || r[0] !== "" || r[1] !== "" ? (this._$AH = Array(r.length - 1).fill(new String()), this.strings = r) : this._$AH = b;
|
|
615
615
|
}
|
|
616
616
|
_$AI(e, o = this, r, s) {
|
|
617
617
|
const i = this.strings;
|
|
@@ -620,12 +620,12 @@ class te {
|
|
|
620
620
|
else {
|
|
621
621
|
const l = e;
|
|
622
622
|
let a, c;
|
|
623
|
-
for (e = i[0], a = 0; a < i.length - 1; a++) c = U(this, l[r + a], o, a), c === D && (c = this._$AH[a]), n ||= !R(c) || c !== this._$AH[a], c ===
|
|
623
|
+
for (e = i[0], a = 0; a < i.length - 1; a++) c = U(this, l[r + a], o, a), c === D && (c = this._$AH[a]), n ||= !R(c) || c !== this._$AH[a], c === b ? e = b : e !== b && (e += (c ?? "") + i[a + 1]), this._$AH[a] = c;
|
|
624
624
|
}
|
|
625
625
|
n && !s && this.j(e);
|
|
626
626
|
}
|
|
627
627
|
j(e) {
|
|
628
|
-
e ===
|
|
628
|
+
e === b ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
class et extends te {
|
|
@@ -633,7 +633,7 @@ class et extends te {
|
|
|
633
633
|
super(...arguments), this.type = 3;
|
|
634
634
|
}
|
|
635
635
|
j(e) {
|
|
636
|
-
this.element[this.name] = e ===
|
|
636
|
+
this.element[this.name] = e === b ? void 0 : e;
|
|
637
637
|
}
|
|
638
638
|
}
|
|
639
639
|
class tt extends te {
|
|
@@ -641,7 +641,7 @@ class tt extends te {
|
|
|
641
641
|
super(...arguments), this.type = 4;
|
|
642
642
|
}
|
|
643
643
|
j(e) {
|
|
644
|
-
this.element.toggleAttribute(this.name, !!e && e !==
|
|
644
|
+
this.element.toggleAttribute(this.name, !!e && e !== b);
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
class ot extends te {
|
|
@@ -649,8 +649,8 @@ class ot extends te {
|
|
|
649
649
|
super(e, o, r, s, i), this.type = 5;
|
|
650
650
|
}
|
|
651
651
|
_$AI(e, o = this) {
|
|
652
|
-
if ((e = U(this, e, o, 0) ??
|
|
653
|
-
const r = this._$AH, s = e ===
|
|
652
|
+
if ((e = U(this, e, o, 0) ?? b) === D) return;
|
|
653
|
+
const r = this._$AH, s = e === b && r !== b || e.capture !== r.capture || e.once !== r.once || e.passive !== r.passive, i = e !== b && (r === b || s);
|
|
654
654
|
s && this.element.removeEventListener(this.name, this, r), i && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
655
655
|
}
|
|
656
656
|
handleEvent(e) {
|
|
@@ -669,13 +669,13 @@ class rt {
|
|
|
669
669
|
}
|
|
670
670
|
}
|
|
671
671
|
const st = ne.litHtmlPolyfillSupport;
|
|
672
|
-
st?.(q,
|
|
672
|
+
st?.(q, Y), (ne.litHtmlVersions ??= []).push("3.3.2");
|
|
673
673
|
const it = (t, e, o) => {
|
|
674
674
|
const r = o?.renderBefore ?? e;
|
|
675
675
|
let s = r._$litPart$;
|
|
676
676
|
if (s === void 0) {
|
|
677
677
|
const i = o?.renderBefore ?? null;
|
|
678
|
-
r._$litPart$ = s = new
|
|
678
|
+
r._$litPart$ = s = new Y(e.insertBefore(j(), i), i, void 0, o ?? {});
|
|
679
679
|
}
|
|
680
680
|
return s._$AI(t), s;
|
|
681
681
|
};
|
|
@@ -763,8 +763,8 @@ const Bt = N({
|
|
|
763
763
|
events: {
|
|
764
764
|
onChange: "change"
|
|
765
765
|
}
|
|
766
|
-
}), ct = C`:host{width:10rem;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0;overflow:hidden;--nf-input-number-color:var(--nf-color);--nf-input-number-prefix-color:color-mix(in srgb, var(--nf-color), transparent 20%);--nf-input-number-surfix-color:color-mix(in srgb, var(--nf-color), transparent 20%)}.input-number{position:relative;padding-right:.6125rem;flex:1;height:100%;outline:0;border:none;background:0 0;box-sizing:border-box;color:var(--nf-input-number-color);font-weight:var(--nf-font-weight);text-align:left;transition:padding-right var(--nf-transition-fast) ease}.input-number .input-number-input-wrapper{height:100
|
|
767
|
-
var dt = Object.defineProperty, ut = Object.getOwnPropertyDescriptor,
|
|
766
|
+
}), ct = C`:host{width:10rem;position:relative;display:inline-flex;align-items:center;box-sizing:border-box;padding:0;overflow:hidden;--nf-input-number-color:var(--nf-color);--nf-input-number-prefix-color:color-mix(in srgb, var(--nf-color), transparent 20%);--nf-input-number-surfix-color:color-mix(in srgb, var(--nf-color), transparent 20%)}.input-number{position:relative;padding-right:.6125rem;flex:1;height:100%;outline:0;border:none;background:0 0;box-sizing:border-box;color:var(--nf-input-number-color);font-weight:var(--nf-font-weight);text-align:left;transition:padding-right var(--nf-transition-fast) ease}.input-number .input-number-input-wrapper{height:100%}.input-number .input-number-input-wrapper .input-number-input{background:0 0;width:100%;height:100%;text-align:start;border:0;outline:0;padding:0;box-sizing:border-box;color:var(--nf-input-number-color);font-size:var(--nf-font-size);font-weight:var(--nf-font-weight);font-family:var(--nf-font-family),sans-serif}.input-number::-webkit-inner-spin-button,.input-number::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.input-number[type=number]{appearance:textfield}:host([controls]) .input-number:hover{padding-right:1.5rem}:host([controls]) .input-number:hover .controls{width:1.5rem}:host([center]) .input-number{padding-left:1.5rem!important;padding-right:1.5rem!important}:host([center]) .input-number .input-number-input{text-align:center}:host([center]) .input-number:hover{padding-left:1.5rem!important;padding-right:1.5rem!important}:host([center]) .input-prefix{position:absolute;left:0;top:0;bottom:0;z-index:1;pointer-events:none}:host([center]) .input-suffix{position:absolute;right:0;top:0;bottom:0;z-index:1;pointer-events:none}:host([center]) .input-number{flex:1;width:100%}.input-prefix{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding-inline-start:.6125rem;color:var(--nf-input-number-prefix-color);font-size:var(--nf-font-size);pointer-events:none;-webkit-user-select:none;user-select:none}.input-prefix:not(:empty){padding-inline-end:.25rem}.input-suffix{display:flex;align-items:center;justify-content:center;color:var(--nf-input-number-surfix-color);font-size:var(--nf-font-size);pointer-events:none;-webkit-user-select:none;user-select:none}.input-suffix:not(:empty){padding-inline-end:.6125rem;padding-inline-start:.5rem}.controls{position:absolute;top:0;right:0;height:100%;width:0;overflow:hidden;display:flex;flex-direction:column;box-sizing:border-box;transition:width var(--nf-transition-fast) ease}.controls:before{content:\"\";position:absolute;left:0;top:0;bottom:0;width:.67px;background-color:var(--nf-control-divider-color)}:host([suffix]) .controls:after{content:\"\";position:absolute;right:0;top:0;bottom:0;width:.67px;background-color:var(--nf-control-divider-color)}.control-btn{flex:1;display:flex;align-items:center;justify-content:center;background:0 0;border:none;cursor:pointer;transition:background-color var(--nf-transition-fast) ease;outline:0;-webkit-user-select:none;user-select:none}.control-btn:hover{background-color:var(--nf-control-btn-background-hover)}.control-btn:active{background-color:var(--nf-control-btn-background-active)}.control-btn:focus-visible{background-color:var(--nf-control-btn-background-hover)}.control-btn svg{display:block;pointer-events:none;fill:none;stroke:var(--nf-select-icon-color);stroke-width:1;stroke-linecap:round}.control-btn-up{border-bottom:.67px solid var(--nf-control-divider-color)}:host(:not([suffix])) .control-btn-up{border-top-right-radius:var(--nf-border-radius)}:host(:not([suffix])) .control-btn-down{border-bottom-right-radius:var(--nf-border-radius)}:host([disabled]) .input-number-input{cursor:not-allowed;color:var(--nf-color-disabled)}:host([disabled]) .input-prefix,:host([disabled]) .input-suffix{color:var(--nf-color-disabled)}:host([disabled]) .controls{display:none}:host([disabled]) .control-btn{cursor:not-allowed;pointer-events:none;opacity:.5}`;
|
|
767
|
+
var dt = Object.defineProperty, ut = Object.getOwnPropertyDescriptor, m = (t, e, o, r) => {
|
|
768
768
|
for (var s = r > 1 ? void 0 : r ? ut(e, o) : e, i = t.length - 1, n; i >= 0; i--)
|
|
769
769
|
(n = t[i]) && (s = (r ? n(e, o, s) : n(s)) || s);
|
|
770
770
|
return r && s && dt(e, o, s), s;
|
|
@@ -784,7 +784,7 @@ let u = class extends W {
|
|
|
784
784
|
return null;
|
|
785
785
|
const e = Number(t);
|
|
786
786
|
return Number.isNaN(e) ? null : this.clampValue(e);
|
|
787
|
-
}, this.prefix = null, this.suffix = null, this.
|
|
787
|
+
}, this.prefix = null, this.suffix = null, this.controls = !0, this.step = 1, this.min = null, this.max = null, this.changeOnWheel = !0, this.disabled = !1, this.noDecimal = !1, this.noZero = !1, this.noNegative = !1, this.center = !1, this.text = "", this.isTyping = !1, this.isFocused = !1;
|
|
788
788
|
}
|
|
789
789
|
// 对解析结果进行额外验证
|
|
790
790
|
validateParsed(t) {
|
|
@@ -871,29 +871,26 @@ let u = class extends W {
|
|
|
871
871
|
}
|
|
872
872
|
/* ================== Render ================== */
|
|
873
873
|
render() {
|
|
874
|
-
return f`<div class=input-prefix>${this.prefix}</div><div class=input-number><div class=input-number-input-wrapper><input inputmode=decimal class=input-number-input .value=${this.text} ?disabled=${this.disabled} @blur=${this.onBlur} @focus=${this.onFocus} @input=${this.onInput} @keydown=${this.onKeyDown} @wheel=${this.onWheel} @keyup=${this.onKeyUp}
|
|
874
|
+
return f`<div class=input-prefix>${this.prefix}</div><div class=input-number><div class=input-number-input-wrapper><input inputmode=decimal class=input-number-input .value=${this.text} ?disabled=${this.disabled} @blur=${this.onBlur} @focus=${this.onFocus} @input=${this.onInput} @keydown=${this.onKeyDown} @wheel=${this.onWheel} @keyup=${this.onKeyUp}></div>${this.controls ? f`<div class=controls><button class="control-btn control-btn-up"type=button ?disabled=${this.disabled} @click=${() => this.handleStepChange(1)} aria-label="Increase value"><svg width=12 height=12 viewBox="0 0 24 24"><path d="M6 14.6l6-6.6 6 6.6"/></svg></button><button class="control-btn control-btn-down"type=button ?disabled=${this.disabled} @click=${() => this.handleStepChange(-1)} aria-label="Decrease value"><svg width=12 height=12 viewBox="0 0 24 24"><path d="M18 9.4l-6 6.6-6-6.6"/></svg></button></div>` : ""}</div>${this.suffix ? f`<div class=input-suffix>${this.suffix}</div>` : ""}`;
|
|
875
875
|
}
|
|
876
876
|
};
|
|
877
877
|
u.styles = [K, ct];
|
|
878
|
-
|
|
878
|
+
m([
|
|
879
879
|
h({ type: Number })
|
|
880
880
|
], u.prototype, "value", 2);
|
|
881
|
-
|
|
881
|
+
m([
|
|
882
882
|
h({ attribute: !1 })
|
|
883
883
|
], u.prototype, "formatter", 2);
|
|
884
|
-
|
|
884
|
+
m([
|
|
885
885
|
h({ attribute: !1 })
|
|
886
886
|
], u.prototype, "parser", 2);
|
|
887
|
-
|
|
887
|
+
m([
|
|
888
888
|
h({ type: String, reflect: !0 })
|
|
889
889
|
], u.prototype, "prefix", 2);
|
|
890
|
-
|
|
890
|
+
m([
|
|
891
891
|
h({ type: String, reflect: !0 })
|
|
892
892
|
], u.prototype, "suffix", 2);
|
|
893
|
-
|
|
894
|
-
h({ type: String, reflect: !0 })
|
|
895
|
-
], u.prototype, "unit", 2);
|
|
896
|
-
b([
|
|
893
|
+
m([
|
|
897
894
|
h({
|
|
898
895
|
type: Boolean,
|
|
899
896
|
reflect: !0,
|
|
@@ -903,16 +900,16 @@ b([
|
|
|
903
900
|
}
|
|
904
901
|
})
|
|
905
902
|
], u.prototype, "controls", 2);
|
|
906
|
-
|
|
903
|
+
m([
|
|
907
904
|
h({ type: Number })
|
|
908
905
|
], u.prototype, "step", 2);
|
|
909
|
-
|
|
906
|
+
m([
|
|
910
907
|
h({ type: Number })
|
|
911
908
|
], u.prototype, "min", 2);
|
|
912
|
-
|
|
909
|
+
m([
|
|
913
910
|
h({ type: Number })
|
|
914
911
|
], u.prototype, "max", 2);
|
|
915
|
-
|
|
912
|
+
m([
|
|
916
913
|
h({
|
|
917
914
|
type: Boolean,
|
|
918
915
|
attribute: "change-on-wheel",
|
|
@@ -922,28 +919,28 @@ b([
|
|
|
922
919
|
}
|
|
923
920
|
})
|
|
924
921
|
], u.prototype, "changeOnWheel", 2);
|
|
925
|
-
|
|
922
|
+
m([
|
|
926
923
|
h({ type: Boolean, reflect: !0 })
|
|
927
924
|
], u.prototype, "disabled", 2);
|
|
928
|
-
|
|
925
|
+
m([
|
|
929
926
|
h({ type: Boolean, attribute: "no-decimal" })
|
|
930
927
|
], u.prototype, "noDecimal", 2);
|
|
931
|
-
|
|
928
|
+
m([
|
|
932
929
|
h({ type: Boolean, attribute: "no-zero" })
|
|
933
930
|
], u.prototype, "noZero", 2);
|
|
934
|
-
|
|
931
|
+
m([
|
|
935
932
|
h({ type: Boolean, attribute: "no-negative" })
|
|
936
933
|
], u.prototype, "noNegative", 2);
|
|
937
|
-
|
|
934
|
+
m([
|
|
938
935
|
h({ type: Boolean, reflect: !0 })
|
|
939
936
|
], u.prototype, "center", 2);
|
|
940
|
-
|
|
937
|
+
m([
|
|
941
938
|
w()
|
|
942
939
|
], u.prototype, "text", 2);
|
|
943
|
-
|
|
940
|
+
m([
|
|
944
941
|
w()
|
|
945
942
|
], u.prototype, "isFocused", 2);
|
|
946
|
-
u =
|
|
943
|
+
u = m([
|
|
947
944
|
O("nf-input-number")
|
|
948
945
|
], u);
|
|
949
946
|
const pt = N({
|