@nysds/components 1.4.4 → 1.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/dist/nysds.es.js +145 -135
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +12 -2
- package/dist/nysds.js.map +1 -1
- package/package.json +1 -1
package/dist/nysds.es.js
CHANGED
|
@@ -245,7 +245,7 @@ var U1 = Object.defineProperty, P1 = Object.getOwnPropertyDescriptor, D = (l, e,
|
|
|
245
245
|
};
|
|
246
246
|
let O1 = 0;
|
|
247
247
|
var J;
|
|
248
|
-
const
|
|
248
|
+
const k = (J = class extends u {
|
|
249
249
|
constructor() {
|
|
250
250
|
super(...arguments), this.id = "", this.heading = "", this.icon = "", this.dismissible = !1, this.duration = 0, this.text = "", this.primaryAction = "", this.secondaryAction = "", this.primaryLabel = "Learn more", this.secondaryLabel = "Dismiss", this._alertClosed = !1, this._slotHasContent = !0, this._type = "base", this._timeoutId = null;
|
|
251
251
|
}
|
|
@@ -368,44 +368,44 @@ const L = (J = class extends u {
|
|
|
368
368
|
], J);
|
|
369
369
|
D([
|
|
370
370
|
r({ type: String })
|
|
371
|
-
],
|
|
371
|
+
], k.prototype, "id", 2);
|
|
372
372
|
D([
|
|
373
373
|
r({ type: String })
|
|
374
|
-
],
|
|
374
|
+
], k.prototype, "heading", 2);
|
|
375
375
|
D([
|
|
376
376
|
r({ type: String })
|
|
377
|
-
],
|
|
377
|
+
], k.prototype, "icon", 2);
|
|
378
378
|
D([
|
|
379
379
|
r({ type: Boolean, reflect: !0 })
|
|
380
|
-
],
|
|
380
|
+
], k.prototype, "dismissible", 2);
|
|
381
381
|
D([
|
|
382
382
|
r({ type: Number, reflect: !0 })
|
|
383
|
-
],
|
|
383
|
+
], k.prototype, "duration", 2);
|
|
384
384
|
D([
|
|
385
385
|
r({ type: String })
|
|
386
|
-
],
|
|
386
|
+
], k.prototype, "text", 2);
|
|
387
387
|
D([
|
|
388
388
|
r({ type: String })
|
|
389
|
-
],
|
|
389
|
+
], k.prototype, "primaryAction", 2);
|
|
390
390
|
D([
|
|
391
391
|
r({ type: String })
|
|
392
|
-
],
|
|
392
|
+
], k.prototype, "secondaryAction", 2);
|
|
393
393
|
D([
|
|
394
394
|
r({ type: String })
|
|
395
|
-
],
|
|
395
|
+
], k.prototype, "primaryLabel", 2);
|
|
396
396
|
D([
|
|
397
397
|
r({ type: String })
|
|
398
|
-
],
|
|
398
|
+
], k.prototype, "secondaryLabel", 2);
|
|
399
399
|
D([
|
|
400
400
|
O()
|
|
401
|
-
],
|
|
401
|
+
], k.prototype, "_alertClosed", 2);
|
|
402
402
|
D([
|
|
403
403
|
O()
|
|
404
|
-
],
|
|
404
|
+
], k.prototype, "_slotHasContent", 2);
|
|
405
405
|
D([
|
|
406
406
|
r({ reflect: !0 })
|
|
407
|
-
],
|
|
408
|
-
let R1 =
|
|
407
|
+
], k.prototype, "type", 1);
|
|
408
|
+
let R1 = k;
|
|
409
409
|
customElements.get("nys-alert") || customElements.define("nys-alert", R1);
|
|
410
410
|
const T1 = g`
|
|
411
411
|
:host {
|
|
@@ -1098,8 +1098,8 @@ var X1 = Object.defineProperty, Q1 = Object.getOwnPropertyDescriptor, v = (l, e,
|
|
|
1098
1098
|
return o && s && X1(e, t, s), s;
|
|
1099
1099
|
};
|
|
1100
1100
|
let J1 = 0;
|
|
1101
|
-
var
|
|
1102
|
-
const f = (
|
|
1101
|
+
var w;
|
|
1102
|
+
const f = (w = class extends u {
|
|
1103
1103
|
// allows use of elementInternals' API
|
|
1104
1104
|
constructor() {
|
|
1105
1105
|
super(), this.id = "", this.name = "", this._size = "md", this.fullWidth = !1, this._variant = "filled", this.inverted = !1, this.label = "", this.ariaLabel = "", this.prefixIcon = "", this.suffixIcon = "", this.circle = !1, this.icon = "", this.disabled = !1, this.form = "", this.value = "", this.ariaDescription = "", this._type = "button", this.onClick = () => {
|
|
@@ -1109,7 +1109,7 @@ const f = (x = class extends u {
|
|
|
1109
1109
|
return this._size;
|
|
1110
1110
|
}
|
|
1111
1111
|
set size(e) {
|
|
1112
|
-
this._size =
|
|
1112
|
+
this._size = w.VALID_SIZES.includes(
|
|
1113
1113
|
e
|
|
1114
1114
|
) ? e : "md";
|
|
1115
1115
|
}
|
|
@@ -1117,7 +1117,7 @@ const f = (x = class extends u {
|
|
|
1117
1117
|
return this._variant;
|
|
1118
1118
|
}
|
|
1119
1119
|
set variant(e) {
|
|
1120
|
-
this._variant =
|
|
1120
|
+
this._variant = w.VALID_VARIANTS.includes(
|
|
1121
1121
|
e
|
|
1122
1122
|
) ? e : "filled";
|
|
1123
1123
|
}
|
|
@@ -1125,7 +1125,7 @@ const f = (x = class extends u {
|
|
|
1125
1125
|
return this._type;
|
|
1126
1126
|
}
|
|
1127
1127
|
set type(e) {
|
|
1128
|
-
this._type =
|
|
1128
|
+
this._type = w.VALID_TYPES.includes(
|
|
1129
1129
|
e
|
|
1130
1130
|
) ? e : "button";
|
|
1131
1131
|
}
|
|
@@ -1133,7 +1133,7 @@ const f = (x = class extends u {
|
|
|
1133
1133
|
return this._target;
|
|
1134
1134
|
}
|
|
1135
1135
|
set target(e) {
|
|
1136
|
-
this._target =
|
|
1136
|
+
this._target = w.VALID_TARGETS.includes(
|
|
1137
1137
|
e
|
|
1138
1138
|
) ? e : "_self";
|
|
1139
1139
|
}
|
|
@@ -1249,18 +1249,18 @@ const f = (x = class extends u {
|
|
|
1249
1249
|
`}
|
|
1250
1250
|
`;
|
|
1251
1251
|
}
|
|
1252
|
-
},
|
|
1252
|
+
}, w.VALID_SIZES = ["sm", "md", "lg"], w.VALID_VARIANTS = [
|
|
1253
1253
|
"filled",
|
|
1254
1254
|
"outline",
|
|
1255
1255
|
"ghost",
|
|
1256
1256
|
"text"
|
|
1257
|
-
],
|
|
1257
|
+
], w.VALID_TYPES = ["submit", "reset", "button"], w.VALID_TARGETS = [
|
|
1258
1258
|
"_self",
|
|
1259
1259
|
"_blank",
|
|
1260
1260
|
"_parent",
|
|
1261
1261
|
"_top",
|
|
1262
1262
|
"framename"
|
|
1263
|
-
],
|
|
1263
|
+
], w.styles = K1, w.formAssociated = !0, w);
|
|
1264
1264
|
v([
|
|
1265
1265
|
r({ type: String })
|
|
1266
1266
|
], f.prototype, "id", 2);
|
|
@@ -1729,7 +1729,7 @@ const A = (j = class extends u {
|
|
|
1729
1729
|
if (Array.from(
|
|
1730
1730
|
this.querySelectorAll("nys-checkbox")
|
|
1731
1731
|
).filter(
|
|
1732
|
-
(
|
|
1732
|
+
($) => $.checked
|
|
1733
1733
|
).length === 0)
|
|
1734
1734
|
return c;
|
|
1735
1735
|
} else
|
|
@@ -1834,14 +1834,14 @@ T([
|
|
|
1834
1834
|
], A.prototype, "size", 1);
|
|
1835
1835
|
let re = A;
|
|
1836
1836
|
customElements.get("nys-checkboxgroup") || customElements.define("nys-checkboxgroup", re);
|
|
1837
|
-
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor,
|
|
1837
|
+
var ne = Object.defineProperty, ie = Object.getOwnPropertyDescriptor, M = (l, e, t, o) => {
|
|
1838
1838
|
for (var s = o > 1 ? void 0 : o ? ie(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
1839
1839
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
1840
1840
|
return o && s && ne(e, t, s), s;
|
|
1841
1841
|
};
|
|
1842
1842
|
let ae = 0;
|
|
1843
1843
|
var G;
|
|
1844
|
-
const
|
|
1844
|
+
const L = (G = class extends u {
|
|
1845
1845
|
// allows use of elementInternals' API
|
|
1846
1846
|
constructor() {
|
|
1847
1847
|
super(), this.checked = !1, this.disabled = !1, this.required = !1, this.label = "", this.description = "", this.id = "", this.name = "", this.value = "", this.showError = !1, this.errorMessage = "", this.groupExist = !1, this.tile = !1, this._size = "md", this._internals = this.attachInternals();
|
|
@@ -1999,46 +1999,46 @@ const S = (G = class extends u {
|
|
|
1999
1999
|
`;
|
|
2000
2000
|
}
|
|
2001
2001
|
}, G.VALID_SIZES = ["sm", "md"], G.styles = H1, G.formAssociated = !0, G);
|
|
2002
|
-
|
|
2002
|
+
M([
|
|
2003
2003
|
r({ type: Boolean, reflect: !0 })
|
|
2004
|
-
],
|
|
2005
|
-
|
|
2004
|
+
], L.prototype, "checked", 2);
|
|
2005
|
+
M([
|
|
2006
2006
|
r({ type: Boolean, reflect: !0 })
|
|
2007
|
-
],
|
|
2008
|
-
|
|
2007
|
+
], L.prototype, "disabled", 2);
|
|
2008
|
+
M([
|
|
2009
2009
|
r({ type: Boolean, reflect: !0 })
|
|
2010
|
-
],
|
|
2011
|
-
|
|
2010
|
+
], L.prototype, "required", 2);
|
|
2011
|
+
M([
|
|
2012
2012
|
r({ type: String })
|
|
2013
|
-
],
|
|
2014
|
-
|
|
2013
|
+
], L.prototype, "label", 2);
|
|
2014
|
+
M([
|
|
2015
2015
|
r({ type: String })
|
|
2016
|
-
],
|
|
2017
|
-
|
|
2016
|
+
], L.prototype, "description", 2);
|
|
2017
|
+
M([
|
|
2018
2018
|
r({ type: String })
|
|
2019
|
-
],
|
|
2020
|
-
|
|
2019
|
+
], L.prototype, "id", 2);
|
|
2020
|
+
M([
|
|
2021
2021
|
r({ type: String, reflect: !0 })
|
|
2022
|
-
],
|
|
2023
|
-
|
|
2022
|
+
], L.prototype, "name", 2);
|
|
2023
|
+
M([
|
|
2024
2024
|
r({ type: String })
|
|
2025
|
-
],
|
|
2026
|
-
|
|
2025
|
+
], L.prototype, "value", 2);
|
|
2026
|
+
M([
|
|
2027
2027
|
r({ type: Boolean, reflect: !0 })
|
|
2028
|
-
],
|
|
2029
|
-
|
|
2028
|
+
], L.prototype, "showError", 2);
|
|
2029
|
+
M([
|
|
2030
2030
|
r({ type: String })
|
|
2031
|
-
],
|
|
2032
|
-
|
|
2031
|
+
], L.prototype, "errorMessage", 2);
|
|
2032
|
+
M([
|
|
2033
2033
|
r({ type: Boolean })
|
|
2034
|
-
],
|
|
2035
|
-
|
|
2034
|
+
], L.prototype, "groupExist", 2);
|
|
2035
|
+
M([
|
|
2036
2036
|
r({ type: Boolean, reflect: !0 })
|
|
2037
|
-
],
|
|
2038
|
-
|
|
2037
|
+
], L.prototype, "tile", 2);
|
|
2038
|
+
M([
|
|
2039
2039
|
r({ reflect: !0 })
|
|
2040
|
-
],
|
|
2041
|
-
let le =
|
|
2040
|
+
], L.prototype, "size", 1);
|
|
2041
|
+
let le = L;
|
|
2042
2042
|
customElements.get("nys-checkbox") || customElements.define("nys-checkbox", le);
|
|
2043
2043
|
const ce = g`
|
|
2044
2044
|
:host {
|
|
@@ -2479,7 +2479,7 @@ v1([
|
|
|
2479
2479
|
r({ type: String })
|
|
2480
2480
|
], r1.prototype, "errorMessage");
|
|
2481
2481
|
customElements.define("nys-fileitem", r1);
|
|
2482
|
-
var ge = Object.defineProperty,
|
|
2482
|
+
var ge = Object.defineProperty, V = (l, e, t, o) => {
|
|
2483
2483
|
for (var s = void 0, n = l.length - 1, i; n >= 0; n--)
|
|
2484
2484
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
2485
2485
|
return s && ge(e, t, s), s;
|
|
@@ -2778,47 +2778,47 @@ const C1 = class C1 extends u {
|
|
|
2778
2778
|
}
|
|
2779
2779
|
};
|
|
2780
2780
|
C1.styles = ye, C1.formAssociated = !0;
|
|
2781
|
-
let
|
|
2782
|
-
|
|
2781
|
+
let x = C1;
|
|
2782
|
+
V([
|
|
2783
2783
|
r({ type: String })
|
|
2784
|
-
],
|
|
2785
|
-
|
|
2784
|
+
], x.prototype, "id");
|
|
2785
|
+
V([
|
|
2786
2786
|
r({ type: String, reflect: !0 })
|
|
2787
|
-
],
|
|
2788
|
-
|
|
2787
|
+
], x.prototype, "name");
|
|
2788
|
+
V([
|
|
2789
2789
|
r({ type: String })
|
|
2790
|
-
],
|
|
2791
|
-
|
|
2790
|
+
], x.prototype, "label");
|
|
2791
|
+
V([
|
|
2792
2792
|
r({ type: String })
|
|
2793
|
-
],
|
|
2794
|
-
|
|
2793
|
+
], x.prototype, "description");
|
|
2794
|
+
V([
|
|
2795
2795
|
r({ type: Boolean })
|
|
2796
|
-
],
|
|
2797
|
-
|
|
2796
|
+
], x.prototype, "multiple");
|
|
2797
|
+
V([
|
|
2798
2798
|
r({ type: String })
|
|
2799
|
-
],
|
|
2800
|
-
|
|
2799
|
+
], x.prototype, "accept");
|
|
2800
|
+
V([
|
|
2801
2801
|
r({ type: Boolean, reflect: !0 })
|
|
2802
|
-
],
|
|
2803
|
-
|
|
2802
|
+
], x.prototype, "disabled");
|
|
2803
|
+
V([
|
|
2804
2804
|
r({ type: Boolean, reflect: !0 })
|
|
2805
|
-
],
|
|
2806
|
-
|
|
2805
|
+
], x.prototype, "required");
|
|
2806
|
+
V([
|
|
2807
2807
|
r({ type: Boolean, reflect: !0 })
|
|
2808
|
-
],
|
|
2809
|
-
|
|
2808
|
+
], x.prototype, "optional");
|
|
2809
|
+
V([
|
|
2810
2810
|
r({ type: Boolean, reflect: !0 })
|
|
2811
|
-
],
|
|
2812
|
-
|
|
2811
|
+
], x.prototype, "showError");
|
|
2812
|
+
V([
|
|
2813
2813
|
r({ type: String })
|
|
2814
|
-
],
|
|
2815
|
-
|
|
2814
|
+
], x.prototype, "errorMessage");
|
|
2815
|
+
V([
|
|
2816
2816
|
r({ type: Boolean })
|
|
2817
|
-
],
|
|
2818
|
-
|
|
2817
|
+
], x.prototype, "dropzone");
|
|
2818
|
+
V([
|
|
2819
2819
|
r({ type: String, reflect: !0 })
|
|
2820
|
-
],
|
|
2821
|
-
customElements.get("nys-fileinput") || customElements.define("nys-fileinput",
|
|
2820
|
+
], x.prototype, "width");
|
|
2821
|
+
customElements.get("nys-fileinput") || customElements.define("nys-fileinput", x);
|
|
2822
2822
|
const Ce = {
|
|
2823
2823
|
// --------- UX Team Main Library (below) --------- //
|
|
2824
2824
|
// *** CORE *** //
|
|
@@ -4147,12 +4147,12 @@ B([
|
|
|
4147
4147
|
], E.prototype, "tile", 2);
|
|
4148
4148
|
let $e = E;
|
|
4149
4149
|
customElements.get("nys-radiogroup") || customElements.define("nys-radiogroup", $e);
|
|
4150
|
-
var De = Object.defineProperty,
|
|
4151
|
-
for (var s = o > 1 ? void 0 : o ?
|
|
4150
|
+
var De = Object.defineProperty, Me = Object.getOwnPropertyDescriptor, F = (l, e, t, o) => {
|
|
4151
|
+
for (var s = o > 1 ? void 0 : o ? Me(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4152
4152
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4153
4153
|
return o && s && De(e, t, s), s;
|
|
4154
4154
|
};
|
|
4155
|
-
let
|
|
4155
|
+
let Ve = 0;
|
|
4156
4156
|
var y;
|
|
4157
4157
|
const q = (y = class extends u {
|
|
4158
4158
|
constructor() {
|
|
@@ -4177,7 +4177,7 @@ const q = (y = class extends u {
|
|
|
4177
4177
|
/********************** Lifecycle updates **********************/
|
|
4178
4178
|
// Generate a unique ID if one is not provided
|
|
4179
4179
|
connectedCallback() {
|
|
4180
|
-
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${
|
|
4180
|
+
super.connectedCallback(), this.id || (this.id = `nys-radiobutton-${Date.now()}-${Ve++}`), this.checked && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
|
|
4181
4181
|
}
|
|
4182
4182
|
updated(e) {
|
|
4183
4183
|
e.has("checked") && this.checked && y.buttonGroup[this.name] !== this && (y.buttonGroup[this.name] && (y.buttonGroup[this.name].checked = !1, y.buttonGroup[this.name].requestUpdate()), y.buttonGroup[this.name] = this);
|
|
@@ -4955,7 +4955,7 @@ const Pe = g`
|
|
|
4955
4955
|
cursor: not-allowed;
|
|
4956
4956
|
}
|
|
4957
4957
|
`;
|
|
4958
|
-
var Oe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor,
|
|
4958
|
+
var Oe = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, m = (l, e, t, o) => {
|
|
4959
4959
|
for (var s = o > 1 ? void 0 : o ? Re(e, t) : e, n = l.length - 1, i; n >= 0; n--)
|
|
4960
4960
|
(i = l[n]) && (s = (o ? i(e, t, s) : i(s)) || s);
|
|
4961
4961
|
return o && s && Oe(e, t, s), s;
|
|
@@ -5123,55 +5123,55 @@ ${this.value}</textarea
|
|
|
5123
5123
|
`;
|
|
5124
5124
|
}
|
|
5125
5125
|
}, Z.VALID_WIDTHS = ["sm", "md", "lg", "full"], Z.VALID_RESIZE = ["vertical", "none"], Z.styles = Pe, Z.formAssociated = !0, Z);
|
|
5126
|
-
|
|
5126
|
+
m([
|
|
5127
5127
|
r({ type: String })
|
|
5128
5128
|
], b.prototype, "id", 2);
|
|
5129
|
-
|
|
5129
|
+
m([
|
|
5130
5130
|
r({ type: String, reflect: !0 })
|
|
5131
5131
|
], b.prototype, "name", 2);
|
|
5132
|
-
|
|
5132
|
+
m([
|
|
5133
5133
|
r({ type: String })
|
|
5134
5134
|
], b.prototype, "label", 2);
|
|
5135
|
-
|
|
5135
|
+
m([
|
|
5136
5136
|
r({ type: String })
|
|
5137
5137
|
], b.prototype, "description", 2);
|
|
5138
|
-
|
|
5138
|
+
m([
|
|
5139
5139
|
r({ type: String })
|
|
5140
5140
|
], b.prototype, "placeholder", 2);
|
|
5141
|
-
|
|
5141
|
+
m([
|
|
5142
5142
|
r({ type: String })
|
|
5143
5143
|
], b.prototype, "value", 2);
|
|
5144
|
-
|
|
5144
|
+
m([
|
|
5145
5145
|
r({ type: Boolean, reflect: !0 })
|
|
5146
5146
|
], b.prototype, "disabled", 2);
|
|
5147
|
-
|
|
5147
|
+
m([
|
|
5148
5148
|
r({ type: Boolean, reflect: !0 })
|
|
5149
5149
|
], b.prototype, "readonly", 2);
|
|
5150
|
-
|
|
5150
|
+
m([
|
|
5151
5151
|
r({ type: Boolean, reflect: !0 })
|
|
5152
5152
|
], b.prototype, "required", 2);
|
|
5153
|
-
|
|
5153
|
+
m([
|
|
5154
5154
|
r({ type: Boolean, reflect: !0 })
|
|
5155
5155
|
], b.prototype, "optional", 2);
|
|
5156
|
-
|
|
5156
|
+
m([
|
|
5157
5157
|
r({ type: String })
|
|
5158
5158
|
], b.prototype, "form", 2);
|
|
5159
|
-
|
|
5159
|
+
m([
|
|
5160
5160
|
r({ type: Number })
|
|
5161
5161
|
], b.prototype, "maxlength", 2);
|
|
5162
|
-
|
|
5162
|
+
m([
|
|
5163
5163
|
r({ reflect: !0 })
|
|
5164
5164
|
], b.prototype, "width", 2);
|
|
5165
|
-
|
|
5165
|
+
m([
|
|
5166
5166
|
r({ type: Number })
|
|
5167
5167
|
], b.prototype, "rows", 2);
|
|
5168
|
-
|
|
5168
|
+
m([
|
|
5169
5169
|
r({ reflect: !0 })
|
|
5170
5170
|
], b.prototype, "resize", 1);
|
|
5171
|
-
|
|
5171
|
+
m([
|
|
5172
5172
|
r({ type: Boolean, reflect: !0 })
|
|
5173
5173
|
], b.prototype, "showError", 2);
|
|
5174
|
-
|
|
5174
|
+
m([
|
|
5175
5175
|
r({ type: String })
|
|
5176
5176
|
], b.prototype, "errorMessage", 2);
|
|
5177
5177
|
let Fe = b;
|
|
@@ -6067,7 +6067,17 @@ const tt = g`
|
|
|
6067
6067
|
--_nys-tooltip-color: var(--nys-color-text-reverse, #ffffff);
|
|
6068
6068
|
--_nys-tooltip-background: var(--nys-color-ink, #1b1b1b);
|
|
6069
6069
|
--_nys-tooltip-border-radius: var(--nys-radius-md, 4px);
|
|
6070
|
-
--_nys-tooltip-font-family: var(
|
|
6070
|
+
--_nys-tooltip-font-family: var(
|
|
6071
|
+
--nys-font-family-ui,
|
|
6072
|
+
var(
|
|
6073
|
+
--nys-font-family-sans,
|
|
6074
|
+
"Proxima Nova",
|
|
6075
|
+
"Helvetica Neue",
|
|
6076
|
+
"Helvetica",
|
|
6077
|
+
"Arial",
|
|
6078
|
+
sans-serif
|
|
6079
|
+
)
|
|
6080
|
+
);
|
|
6071
6081
|
--_nys-tooltip-font-size: var(--nys-type-size-ui-sm, 14px);
|
|
6072
6082
|
--_nys-tooltip-letterspacing: var(--nys-font-letterspacing-ui-sm, 0.044px);
|
|
6073
6083
|
--_nys-tooltip-lineheight: var(--nys-font-lineheight-ui-sm, 24px);
|
|
@@ -6306,8 +6316,8 @@ const D1 = class D1 extends u {
|
|
|
6306
6316
|
}
|
|
6307
6317
|
// Checks if user's set position fit with current viewport (Does not account for overflow texts at this moment)
|
|
6308
6318
|
_doesPositionFit(e) {
|
|
6309
|
-
var
|
|
6310
|
-
const t = (
|
|
6319
|
+
var S, $;
|
|
6320
|
+
const t = (S = this.shadowRoot) == null ? void 0 : S.querySelector(".nys-tooltip__wrapper"), o = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(".nys-tooltip__content");
|
|
6311
6321
|
if (!t || !o || e == null) return;
|
|
6312
6322
|
const s = t.getBoundingClientRect(), n = o.getBoundingClientRect(), i = 8, c = {
|
|
6313
6323
|
top: s.top - i,
|
|
@@ -6324,10 +6334,10 @@ const D1 = class D1 extends u {
|
|
|
6324
6334
|
}
|
|
6325
6335
|
// Calculates the best placement based on available space (flips placement if it doesn't fit)
|
|
6326
6336
|
async autoPositionTooltip() {
|
|
6327
|
-
var
|
|
6328
|
-
const e = (
|
|
6337
|
+
var S, $;
|
|
6338
|
+
const e = (S = this.shadowRoot) == null ? void 0 : S.querySelector(
|
|
6329
6339
|
".nys-tooltip__wrapper"
|
|
6330
|
-
), t = (
|
|
6340
|
+
), t = ($ = this.shadowRoot) == null ? void 0 : $.querySelector(
|
|
6331
6341
|
".nys-tooltip__content"
|
|
6332
6342
|
);
|
|
6333
6343
|
if (!e || !t) return;
|
|
@@ -6344,17 +6354,17 @@ const D1 = class D1 extends u {
|
|
|
6344
6354
|
"left"
|
|
6345
6355
|
];
|
|
6346
6356
|
if (this._userHasSetPosition && this._originalUserPosition) {
|
|
6347
|
-
const
|
|
6348
|
-
|
|
6357
|
+
const _ = this._originalUserPosition;
|
|
6358
|
+
_ === "left" ? i = ["left", "right", "top", "bottom"] : _ === "right" ? i = ["right", "left", "top", "bottom"] : _ === "top" ? i = ["top", "bottom", "right", "left"] : _ === "bottom" && (i = ["bottom", "top", "right", "left"]);
|
|
6349
6359
|
}
|
|
6350
|
-
for (const
|
|
6351
|
-
if (this._doesPositionFit(
|
|
6352
|
-
this._setInternalPosition(
|
|
6360
|
+
for (const _ of i)
|
|
6361
|
+
if (this._doesPositionFit(_)) {
|
|
6362
|
+
this._setInternalPosition(_), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6353
6363
|
return;
|
|
6354
6364
|
}
|
|
6355
6365
|
let c = "top", d = n.top;
|
|
6356
|
-
for (const
|
|
6357
|
-
n[
|
|
6366
|
+
for (const _ of i)
|
|
6367
|
+
n[_] > d && (d = n[_], c = _);
|
|
6358
6368
|
this._setInternalPosition(c), await this.updateComplete, this._shiftTooltipIntoViewport(t);
|
|
6359
6369
|
}
|
|
6360
6370
|
// Sets flag to distinguish to position's setter that we are updating "position" prop internally
|
|
@@ -6363,13 +6373,13 @@ const D1 = class D1 extends u {
|
|
|
6363
6373
|
}
|
|
6364
6374
|
// Determines if text of tooltip over-extends outside of viewport edge and adjust tooltip for horizontal overflow
|
|
6365
6375
|
_shiftTooltipIntoViewport(e) {
|
|
6366
|
-
var
|
|
6367
|
-
const
|
|
6376
|
+
var _;
|
|
6377
|
+
const o = ((_ = this.shadowRoot) == null ? void 0 : _.querySelector(
|
|
6368
6378
|
".nys-tooltip__wrapper"
|
|
6369
|
-
)).getBoundingClientRect(), n =
|
|
6379
|
+
)).getBoundingClientRect(), s = e.getBoundingClientRect(), n = o.left + o.width / 2, i = s.left < 0, c = s.right > window.innerWidth;
|
|
6370
6380
|
this._resetTooltipPositioningStyles(e), i ? (e.style.left = "0px", e.style.transform = "none") : c && (e.style.right = "0px", e.style.left = "auto", e.style.transform = "none");
|
|
6371
|
-
const d = e.getBoundingClientRect(),
|
|
6372
|
-
e.style.setProperty("--arrow-offset-x", `${$}
|
|
6381
|
+
const d = e.getBoundingClientRect(), S = (n - d.left) / d.width, $ = Math.max(0, Math.min(1, S)) * 100;
|
|
6382
|
+
e.style.setProperty("--arrow-offset-x", `${$}%`);
|
|
6373
6383
|
}
|
|
6374
6384
|
// Reposition tooltip back to original set position (e.g. top, left, bottom, right) to avoid positioning issue base on last position
|
|
6375
6385
|
_resetTooltipPositioningStyles(e) {
|
|
@@ -6794,7 +6804,7 @@ var at = Object.defineProperty, l1 = (l, e, t, o) => {
|
|
|
6794
6804
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
6795
6805
|
return s && at(e, t, s), s;
|
|
6796
6806
|
};
|
|
6797
|
-
const
|
|
6807
|
+
const M1 = class M1 extends u {
|
|
6798
6808
|
constructor() {
|
|
6799
6809
|
super(...arguments), this.trustbarVisible = !1, this.searchDropdownVisible = !1, this.languageVisible = !1, this.isSearchFocused = !1, this.hideTranslate = !1, this.hideSearch = !1, this.languages = [
|
|
6800
6810
|
["English", ""],
|
|
@@ -7069,8 +7079,8 @@ const V1 = class V1 extends u {
|
|
|
7069
7079
|
`;
|
|
7070
7080
|
}
|
|
7071
7081
|
};
|
|
7072
|
-
|
|
7073
|
-
let P =
|
|
7082
|
+
M1.styles = nt;
|
|
7083
|
+
let P = M1;
|
|
7074
7084
|
l1([
|
|
7075
7085
|
r({ type: Boolean })
|
|
7076
7086
|
], P.prototype, "trustbarVisible");
|
|
@@ -7379,7 +7389,7 @@ var ct = Object.defineProperty, g1 = (l, e, t, o) => {
|
|
|
7379
7389
|
(i = l[n]) && (s = i(e, t, s) || s);
|
|
7380
7390
|
return s && ct(e, t, s), s;
|
|
7381
7391
|
};
|
|
7382
|
-
const
|
|
7392
|
+
const V1 = class V1 extends u {
|
|
7383
7393
|
constructor() {
|
|
7384
7394
|
super(...arguments), this.appName = "", this.agencyName = "", this.homepageLink = "", this.slotHasContent = !0, this.isMobileMenuOpen = !1;
|
|
7385
7395
|
}
|
|
@@ -7404,10 +7414,10 @@ const M1 = class M1 extends u {
|
|
|
7404
7414
|
);
|
|
7405
7415
|
o && s && (o.innerHTML = "", s.innerHTML = "", t.forEach((d) => {
|
|
7406
7416
|
if (d.nodeType === Node.ELEMENT_NODE) {
|
|
7407
|
-
const
|
|
7417
|
+
const S = d.cloneNode(!0), $ = d.cloneNode(!0);
|
|
7408
7418
|
["script", "iframe", "object", "embed, img"].forEach((A1) => {
|
|
7409
|
-
|
|
7410
|
-
}), o.appendChild(
|
|
7419
|
+
S.querySelectorAll(A1).forEach((B1) => B1.remove());
|
|
7420
|
+
}), o.appendChild(S), s.appendChild($), d.remove();
|
|
7411
7421
|
}
|
|
7412
7422
|
}));
|
|
7413
7423
|
}
|
|
@@ -7478,8 +7488,8 @@ const M1 = class M1 extends u {
|
|
|
7478
7488
|
`;
|
|
7479
7489
|
}
|
|
7480
7490
|
};
|
|
7481
|
-
|
|
7482
|
-
let s1 =
|
|
7491
|
+
V1.styles = lt;
|
|
7492
|
+
let s1 = V1;
|
|
7483
7493
|
g1([
|
|
7484
7494
|
r({ type: String })
|
|
7485
7495
|
], s1.prototype, "appName");
|
|
@@ -7683,8 +7693,8 @@ const z1 = class z1 extends u {
|
|
|
7683
7693
|
o && (o.classList.toggle("columns", s), o.classList.toggle("small", !s), o.innerHTML = "", t.forEach((c) => {
|
|
7684
7694
|
if (c.nodeType === Node.ELEMENT_NODE) {
|
|
7685
7695
|
const d = c.cloneNode(!0);
|
|
7686
|
-
["script", "iframe", "object", "embed", "img"].forEach((
|
|
7687
|
-
d.querySelectorAll(
|
|
7696
|
+
["script", "iframe", "object", "embed", "img"].forEach(($) => {
|
|
7697
|
+
d.querySelectorAll($).forEach((_) => _.remove());
|
|
7688
7698
|
}), o.appendChild(d), c.remove();
|
|
7689
7699
|
}
|
|
7690
7700
|
}));
|
|
@@ -7940,7 +7950,7 @@ export {
|
|
|
7940
7950
|
le as NysCheckbox,
|
|
7941
7951
|
re as NysCheckboxgroup,
|
|
7942
7952
|
d1 as NysErrorMessage,
|
|
7943
|
-
|
|
7953
|
+
x as NysFileinput,
|
|
7944
7954
|
h1 as NysGlobalFooter,
|
|
7945
7955
|
s1 as NysGlobalHeader,
|
|
7946
7956
|
me as NysIcon,
|