genus-ui 2.25.31 → 2.26.32
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/index.es.js +293 -258
- package/dist/index.umd.js +72 -40
- package/package.json +1 -1
- package/types/genus-slider/index.d.ts +1 -0
package/dist/index.es.js
CHANGED
|
@@ -2,8 +2,8 @@ var Ra = Object.defineProperty;
|
|
|
2
2
|
var Na = (i, t, e) => t in i ? Ra(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var Y = (i, t, e) => Na(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { css as B, LitElement as K, html as b } from "lit";
|
|
5
|
-
import { property as M, state as j, customElement as X, queryAssignedElements as Po, query as
|
|
6
|
-
import { when as
|
|
5
|
+
import { property as M, state as j, customElement as X, queryAssignedElements as Po, query as zt } from "lit/decorators.js";
|
|
6
|
+
import { when as Rt } from "lit/directives/when.js";
|
|
7
7
|
import { unsafeHTML as _s } from "lit/directives/unsafe-html.js";
|
|
8
8
|
const Ha = B`
|
|
9
9
|
* { box-sizing: border-box; }
|
|
@@ -68,12 +68,12 @@ const Ha = B`
|
|
|
68
68
|
font-size: var(--textarea-label-font-size, 1rem);
|
|
69
69
|
}
|
|
70
70
|
`;
|
|
71
|
-
var Ua = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor,
|
|
71
|
+
var Ua = Object.defineProperty, Ka = Object.getOwnPropertyDescriptor, De = (i, t, e, s) => {
|
|
72
72
|
for (var n = s > 1 ? void 0 : s ? Ka(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
73
73
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
74
74
|
return s && n && Ua(t, e, n), n;
|
|
75
75
|
};
|
|
76
|
-
let
|
|
76
|
+
let Ft = class extends K {
|
|
77
77
|
constructor() {
|
|
78
78
|
super(...arguments), this.labelText = "", this.inputValue = "", this.withoutLabel = !1, this.placeholderText = "", this.readOnly = !1, this.getInputValue = (i) => {
|
|
79
79
|
this.dispatchEvent(new CustomEvent("typed", { detail: i.target.value }));
|
|
@@ -83,7 +83,7 @@ let Ht = class extends K {
|
|
|
83
83
|
this.inputValue === "" && this._targetInput != null && (this._targetInput.value = "");
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return
|
|
86
|
+
return Rt(
|
|
87
87
|
this.withoutLabel,
|
|
88
88
|
() => b`
|
|
89
89
|
<div class='form-field form-field--without-label'>
|
|
@@ -99,28 +99,28 @@ let Ht = class extends K {
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
Ft.styles = [Ha, Va, Fa, Za, Wa];
|
|
103
|
+
De([
|
|
104
104
|
M({ attribute: "label-text" })
|
|
105
|
-
],
|
|
106
|
-
|
|
105
|
+
], Ft.prototype, "labelText", 2);
|
|
106
|
+
De([
|
|
107
107
|
M({ attribute: "input-value" })
|
|
108
|
-
],
|
|
109
|
-
|
|
108
|
+
], Ft.prototype, "inputValue", 2);
|
|
109
|
+
De([
|
|
110
110
|
M({ attribute: "without-label", type: Boolean })
|
|
111
|
-
],
|
|
112
|
-
|
|
111
|
+
], Ft.prototype, "withoutLabel", 2);
|
|
112
|
+
De([
|
|
113
113
|
M({ attribute: "placeholder-text" })
|
|
114
|
-
],
|
|
115
|
-
|
|
114
|
+
], Ft.prototype, "placeholderText", 2);
|
|
115
|
+
De([
|
|
116
116
|
M({ attribute: "read-only", type: Boolean })
|
|
117
|
-
],
|
|
118
|
-
|
|
117
|
+
], Ft.prototype, "readOnly", 2);
|
|
118
|
+
De([
|
|
119
119
|
j()
|
|
120
|
-
],
|
|
121
|
-
|
|
120
|
+
], Ft.prototype, "_targetInput", 2);
|
|
121
|
+
Ft = De([
|
|
122
122
|
X("genus-textarea")
|
|
123
|
-
],
|
|
123
|
+
], Ft);
|
|
124
124
|
const Xa = B`
|
|
125
125
|
input[type='text'], input[type='email'], input[type='password'], input[type='number']
|
|
126
126
|
{
|
|
@@ -848,7 +848,7 @@ let et = class extends K {
|
|
|
848
848
|
this.inputValue === "" && this._targetInput != null && (this._targetInput.value = ""), this.inputValue && this._targetInput != null && (this._targetInput.value = this.inputValue);
|
|
849
849
|
}
|
|
850
850
|
render() {
|
|
851
|
-
return
|
|
851
|
+
return Rt(
|
|
852
852
|
this.withoutLabel,
|
|
853
853
|
() => b`
|
|
854
854
|
<div class='date-picker'>
|
|
@@ -996,15 +996,26 @@ const wr = B`
|
|
|
996
996
|
`, mr = B`
|
|
997
997
|
.tab-labels
|
|
998
998
|
{
|
|
999
|
-
padding: var(--tabs-container-padding);
|
|
1000
|
-
background: var(--tabs-container-background-color);
|
|
1001
|
-
border-radius: var(--tabs-container-border-radius);
|
|
999
|
+
padding: var(--tabs-container-padding, 1rem);
|
|
1000
|
+
background: var(--tabs-container-background-color, #fdc54a);
|
|
1001
|
+
border-radius: var(--tabs-container-border-radius, 1rem);
|
|
1002
1002
|
grid-area: 1 / 1 / 2 / -1;
|
|
1003
1003
|
}
|
|
1004
1004
|
|
|
1005
|
-
.tab-labels--with-border-buttom
|
|
1005
|
+
.tab-labels--with-border-buttom
|
|
1006
|
+
{
|
|
1007
|
+
border-bottom: 0.0625rem solid var(--tab-border-bottom-color, #ccc);
|
|
1008
|
+
background: none;
|
|
1009
|
+
padding: 0;
|
|
1010
|
+
}
|
|
1006
1011
|
|
|
1007
|
-
::slotted(genus-tab-content)
|
|
1012
|
+
::slotted(genus-tab-content)
|
|
1013
|
+
{
|
|
1014
|
+
padding: var(--tab-content-padding);
|
|
1015
|
+
border-radius: var(--tab-content-border-radius);
|
|
1016
|
+
background: var(--tab-content-background-color);
|
|
1017
|
+
grid-area: 2 / 1 / -1 / -1;
|
|
1018
|
+
}
|
|
1008
1019
|
|
|
1009
1020
|
::slotted(.hide-content)
|
|
1010
1021
|
{
|
|
@@ -1025,11 +1036,9 @@ const wr = B`
|
|
|
1025
1036
|
{
|
|
1026
1037
|
background: var(--tab-background-color, #f4f9f9);
|
|
1027
1038
|
width: var(--tab-width, -webkit-fill-available);
|
|
1039
|
+
border-radius: var(--tab-border-radius, 0.375rem);
|
|
1028
1040
|
}
|
|
1029
1041
|
|
|
1030
|
-
.tab:first-of-type { border-radius: var(--first-tab-border-radius, 0.375rem 0 0 0.375rem); }
|
|
1031
|
-
.tab:last-of-type { border-radius: var(--last-tab-border-radius, 0 0.375rem 0.375rem 0); }
|
|
1032
|
-
|
|
1033
1042
|
.tab-radio:checked + .tab
|
|
1034
1043
|
{
|
|
1035
1044
|
position: relative;
|
|
@@ -1048,6 +1057,17 @@ const wr = B`
|
|
|
1048
1057
|
height: 0.1875rem;
|
|
1049
1058
|
background: var(--active-tab-border-bottom-color, #213e70);
|
|
1050
1059
|
}
|
|
1060
|
+
|
|
1061
|
+
:where(.tab-labels--with-border-buttom)
|
|
1062
|
+
{
|
|
1063
|
+
.tab
|
|
1064
|
+
{
|
|
1065
|
+
background: none;
|
|
1066
|
+
border-radius: unset;
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
.tab-radio:checked + .tab { background: none; }
|
|
1070
|
+
}
|
|
1051
1071
|
`, Mr = B`
|
|
1052
1072
|
.tab
|
|
1053
1073
|
{
|
|
@@ -1058,27 +1078,39 @@ const wr = B`
|
|
|
1058
1078
|
line-height: 3rem;
|
|
1059
1079
|
text-transform: capitalize;
|
|
1060
1080
|
}
|
|
1081
|
+
|
|
1082
|
+
:where(.tab-labels--with-border-buttom)
|
|
1083
|
+
{
|
|
1084
|
+
.tab-radio:checked + .tab
|
|
1085
|
+
{
|
|
1086
|
+
font-family: var(--active-tab-font-family, 'Sofia Pro Semi');
|
|
1087
|
+
color: var(--active-tab-font-color, #213e70);
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
1061
1090
|
`, Dr = B`
|
|
1062
1091
|
.tab-container
|
|
1063
1092
|
{
|
|
1064
1093
|
display: grid;
|
|
1065
1094
|
grid-template-columns: repeat(10, 1fr);
|
|
1066
|
-
grid-template-rows: 3rem minmax(10vh, 1fr);
|
|
1067
|
-
grid-row-gap: 2rem;
|
|
1095
|
+
grid-template-rows: minmax(3rem, var(--tab-container-row-height, auto)) minmax(10vh, 1fr);
|
|
1096
|
+
grid-row-gap: var(--tab-container-row-gap, 2rem);
|
|
1068
1097
|
}
|
|
1069
1098
|
`, Br = B`
|
|
1070
1099
|
.tab-labels
|
|
1071
1100
|
{
|
|
1072
1101
|
display: flex;
|
|
1073
|
-
justify-content: center;
|
|
1102
|
+
justify-content: center;
|
|
1103
|
+
column-gap: var(--tab-labels-column-gap, 1rem);
|
|
1074
1104
|
}
|
|
1105
|
+
|
|
1106
|
+
.tab-labels--with-border-buttom { column-gap: unset }
|
|
1075
1107
|
`;
|
|
1076
1108
|
var xr = Object.defineProperty, Gr = Object.getOwnPropertyDescriptor, Oe = (i, t, e, s) => {
|
|
1077
1109
|
for (var n = s > 1 ? void 0 : s ? Gr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1078
1110
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1079
1111
|
return s && n && xr(t, e, n), n;
|
|
1080
1112
|
};
|
|
1081
|
-
let
|
|
1113
|
+
let Wt = class extends K {
|
|
1082
1114
|
constructor() {
|
|
1083
1115
|
super(...arguments), this.tabNames = [], this.withBorderBottom = !1, this._numberOfTabs = 0, this._tabsTemplate = [], this.hideCurrentContent = () => {
|
|
1084
1116
|
this._tabContents.forEach((i) => {
|
|
@@ -1117,25 +1149,25 @@ let Vt = class extends K {
|
|
|
1117
1149
|
`;
|
|
1118
1150
|
}
|
|
1119
1151
|
};
|
|
1120
|
-
|
|
1152
|
+
Wt.styles = [wr, br, mr, Mr, Dr, Br];
|
|
1121
1153
|
Oe([
|
|
1122
1154
|
M({ attribute: "tab-names", type: Array })
|
|
1123
|
-
],
|
|
1155
|
+
], Wt.prototype, "tabNames", 2);
|
|
1124
1156
|
Oe([
|
|
1125
1157
|
M({ attribute: "with-border-bottom", type: Boolean })
|
|
1126
|
-
],
|
|
1158
|
+
], Wt.prototype, "withBorderBottom", 2);
|
|
1127
1159
|
Oe([
|
|
1128
1160
|
Po()
|
|
1129
|
-
],
|
|
1161
|
+
], Wt.prototype, "_tabContents", 2);
|
|
1130
1162
|
Oe([
|
|
1131
1163
|
j()
|
|
1132
|
-
],
|
|
1164
|
+
], Wt.prototype, "_numberOfTabs", 2);
|
|
1133
1165
|
Oe([
|
|
1134
1166
|
j()
|
|
1135
|
-
],
|
|
1136
|
-
|
|
1167
|
+
], Wt.prototype, "_tabsTemplate", 2);
|
|
1168
|
+
Wt = Oe([
|
|
1137
1169
|
X("genus-tab-container")
|
|
1138
|
-
],
|
|
1170
|
+
], Wt);
|
|
1139
1171
|
var Yr = Object.defineProperty, vr = Object.getOwnPropertyDescriptor, yr = (i, t, e, s) => {
|
|
1140
1172
|
for (var n = s > 1 ? void 0 : s ? vr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1141
1173
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
@@ -1152,7 +1184,7 @@ ws = yr([
|
|
|
1152
1184
|
const Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1153
1185
|
__proto__: null,
|
|
1154
1186
|
get GenusTabContainer() {
|
|
1155
|
-
return
|
|
1187
|
+
return Wt;
|
|
1156
1188
|
},
|
|
1157
1189
|
get GenusTabContent() {
|
|
1158
1190
|
return ws;
|
|
@@ -1357,7 +1389,7 @@ let dt = class extends K {
|
|
|
1357
1389
|
</div>
|
|
1358
1390
|
`), b`
|
|
1359
1391
|
<div class='steps-container'>
|
|
1360
|
-
${
|
|
1392
|
+
${Rt(
|
|
1361
1393
|
this.displayMode === "mobile",
|
|
1362
1394
|
() => b`
|
|
1363
1395
|
<div class="progress-container progress-container--mobile">
|
|
@@ -1422,7 +1454,7 @@ Yt([
|
|
|
1422
1454
|
j()
|
|
1423
1455
|
], dt.prototype, "_circumference", 2);
|
|
1424
1456
|
Yt([
|
|
1425
|
-
|
|
1457
|
+
zt(".circular-progress-bar")
|
|
1426
1458
|
], dt.prototype, "_circularProgressBar", 2);
|
|
1427
1459
|
dt = Yt([
|
|
1428
1460
|
X("genus-step-wizard")
|
|
@@ -1577,7 +1609,7 @@ let Dt = class extends K {
|
|
|
1577
1609
|
<label class='label options-label group-label'>${this.labelText}</label>
|
|
1578
1610
|
<div class="options-container">
|
|
1579
1611
|
${this.options.map((i) => b`
|
|
1580
|
-
${
|
|
1612
|
+
${Rt(
|
|
1581
1613
|
this.withoutIcon,
|
|
1582
1614
|
() => b`
|
|
1583
1615
|
<input type='radio' id='genus-radiobtn-${i.value}' class='genus-radiobtn' @change=${this.getInputValue} value=${i.value} name=${this.inputName} ?checked=${i.value === this.selectedOption} />
|
|
@@ -1819,17 +1851,17 @@ const Zr = B`
|
|
|
1819
1851
|
height: var(--icon-height, 1.5625rem);
|
|
1820
1852
|
}
|
|
1821
1853
|
`;
|
|
1822
|
-
var qr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor,
|
|
1854
|
+
var qr = Object.defineProperty, _r = Object.getOwnPropertyDescriptor, Be = (i, t, e, s) => {
|
|
1823
1855
|
for (var n = s > 1 ? void 0 : s ? _r(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1824
1856
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1825
1857
|
return s && n && qr(t, e, n), n;
|
|
1826
1858
|
};
|
|
1827
|
-
let
|
|
1859
|
+
let Zt = class extends K {
|
|
1828
1860
|
constructor() {
|
|
1829
1861
|
super(...arguments), this.dataCardTitle = "", this.dataCardValue = "", this.dataCardIcon = "", this.dataCardLayoutDirection = "row", this.withoutIcon = !1, this.isLoading = 0;
|
|
1830
1862
|
}
|
|
1831
1863
|
render() {
|
|
1832
|
-
return
|
|
1864
|
+
return Rt(
|
|
1833
1865
|
this.withoutIcon,
|
|
1834
1866
|
() => this.isLoading ? b`
|
|
1835
1867
|
<div class='data-card-loader data-card-loader--no-icon'>
|
|
@@ -1860,28 +1892,28 @@ let Ft = class extends K {
|
|
|
1860
1892
|
);
|
|
1861
1893
|
}
|
|
1862
1894
|
};
|
|
1863
|
-
|
|
1864
|
-
|
|
1895
|
+
Zt.styles = [Zr, Xr, Ur, Kr, Jr];
|
|
1896
|
+
Be([
|
|
1865
1897
|
M({ attribute: "card-title" })
|
|
1866
|
-
],
|
|
1867
|
-
|
|
1898
|
+
], Zt.prototype, "dataCardTitle", 2);
|
|
1899
|
+
Be([
|
|
1868
1900
|
M({ attribute: "card-value" })
|
|
1869
|
-
],
|
|
1870
|
-
|
|
1901
|
+
], Zt.prototype, "dataCardValue", 2);
|
|
1902
|
+
Be([
|
|
1871
1903
|
M({ attribute: "data-card-icon" })
|
|
1872
|
-
],
|
|
1873
|
-
|
|
1904
|
+
], Zt.prototype, "dataCardIcon", 2);
|
|
1905
|
+
Be([
|
|
1874
1906
|
M({ attribute: "layout-direction" })
|
|
1875
|
-
],
|
|
1876
|
-
|
|
1907
|
+
], Zt.prototype, "dataCardLayoutDirection", 2);
|
|
1908
|
+
Be([
|
|
1877
1909
|
M({ type: Boolean, attribute: "without-icon" })
|
|
1878
|
-
],
|
|
1879
|
-
|
|
1910
|
+
], Zt.prototype, "withoutIcon", 2);
|
|
1911
|
+
Be([
|
|
1880
1912
|
M({ attribute: "is-loading", type: Number })
|
|
1881
|
-
],
|
|
1882
|
-
|
|
1913
|
+
], Zt.prototype, "isLoading", 2);
|
|
1914
|
+
Zt = Be([
|
|
1883
1915
|
X("genus-data-card")
|
|
1884
|
-
],
|
|
1916
|
+
], Zt);
|
|
1885
1917
|
const So = B`
|
|
1886
1918
|
.label-text
|
|
1887
1919
|
{
|
|
@@ -1974,7 +2006,7 @@ const So = B`
|
|
|
1974
2006
|
column-gap: unset;
|
|
1975
2007
|
}
|
|
1976
2008
|
`, el = "data:image/svg+xml;base64,PCEtLSA8P3htbC1zdHlsZXNoZWV0IHR5cGU9InRleHQvY3NzIiBocmVmPSIuLi9jc3Mvc3R5bGUuY3NzIiA/PiAtLT4NCjxzdmcgd2lkdGg9IjE2IiBoZWlnaHQ9IjE2IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGNsYXNzPSdjaGVja2JveC1pY29uLXN2ZyB1bmNoZWNrZWQtc3ZnJyBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPg0KICAgIDxyZWN0IHg9IjAuNSIgeT0iMC41IiB3aWR0aD0iMTUiIGhlaWdodD0iMTUiIHJ4PSIzLjUiIGZpbGw9IndoaXRlIiBzdHJva2U9IiNCOUJEQkEiLz4NCjwvc3ZnPg0K", il = "data:image/svg+xml;base64,PCEtLSA8P3htbC1zdHlsZXNoZWV0IHR5cGU9InRleHQvY3NzIiBocmVmPSIuLi9jc3Mvc3R5bGUuY3NzIiA/PiAtLT4NCjxzdmcgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBjbGFzcz0nY2hlY2tib3gtaWNvbi1zdmcgY2hlY2tlZC1zdmcnIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8c3R5bGU+DQogICAgICAgIC5jaGVja2JveC1pY29uLXN2ZyBwYXRoIHsgZmlsbDogIzI5NDA2YTsgfQ0KICAgICAgICAuY2hlY2tlZC1zdmcgcGF0aCB7IGZpbGw6ICNmZGM1NGE7IH0NCiAgICA8L3N0eWxlPg0KICAgIA0KICAgIDxwYXRoIGQ9Ik0xNi4xOSAySDcuODFDNC4xNyAyIDIgNC4xNyAyIDcuODFWMTYuMThDMiAxOS44MyA0LjE3IDIyIDcuODEgMjJIMTYuMThDMTkuODIgMjIgMjEuOTkgMTkuODMgMjEuOTkgMTYuMTlWNy44MUMyMiA0LjE3IDE5LjgzIDIgMTYuMTkgMlpNMTYuNzggOS43TDExLjExIDE1LjM3QzEwLjk3IDE1LjUxIDEwLjc4IDE1LjU5IDEwLjU4IDE1LjU5QzEwLjM4IDE1LjU5IDEwLjE5IDE1LjUxIDEwLjA1IDE1LjM3TDcuMjIgMTIuNTRDNi45MyAxMi4yNSA2LjkzIDExLjc3IDcuMjIgMTEuNDhDNy41MSAxMS4xOSA3Ljk5IDExLjE5IDguMjggMTEuNDhMMTAuNTggMTMuNzhMMTUuNzIgOC42NEMxNi4wMSA4LjM1IDE2LjQ5IDguMzUgMTYuNzggOC42NEMxNy4wNyA4LjkzIDE3LjA3IDkuNCAxNi43OCA5LjdaIiBmaWxsPSIjMjkyRDMyIi8+DQo8L3N2Zz4NCg==";
|
|
1977
|
-
var sl = Object.defineProperty, nl = Object.getOwnPropertyDescriptor,
|
|
2009
|
+
var sl = Object.defineProperty, nl = Object.getOwnPropertyDescriptor, xe = (i, t, e, s) => {
|
|
1978
2010
|
for (var n = s > 1 ? void 0 : s ? nl(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1979
2011
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1980
2012
|
return s && n && sl(t, e, n), n;
|
|
@@ -2004,25 +2036,25 @@ let Bt = class extends K {
|
|
|
2004
2036
|
};
|
|
2005
2037
|
Bt.styles = [So, $r, To, tl, jo];
|
|
2006
2038
|
Bt.formAssociated = !0;
|
|
2007
|
-
|
|
2039
|
+
xe([
|
|
2008
2040
|
M({ attribute: "option-value" })
|
|
2009
2041
|
], Bt.prototype, "optionValue", 2);
|
|
2010
|
-
|
|
2042
|
+
xe([
|
|
2011
2043
|
M({ attribute: "option-id" })
|
|
2012
2044
|
], Bt.prototype, "optionID", 2);
|
|
2013
|
-
|
|
2045
|
+
xe([
|
|
2014
2046
|
M({ attribute: "name", reflect: !0 })
|
|
2015
2047
|
], Bt.prototype, "inputName", 2);
|
|
2016
|
-
|
|
2048
|
+
xe([
|
|
2017
2049
|
M({ type: Boolean, attribute: "without-icon" })
|
|
2018
2050
|
], Bt.prototype, "withoutIcon", 2);
|
|
2019
|
-
|
|
2051
|
+
xe([
|
|
2020
2052
|
M({ attribute: "checked-box-icon" })
|
|
2021
2053
|
], Bt.prototype, "checkedBoxIcon", 2);
|
|
2022
|
-
|
|
2054
|
+
xe([
|
|
2023
2055
|
M({ attribute: "unchecked-box-icon" })
|
|
2024
2056
|
], Bt.prototype, "uncheckedBoxIcon", 2);
|
|
2025
|
-
Bt =
|
|
2057
|
+
Bt = xe([
|
|
2026
2058
|
X("genus-checkbox-option")
|
|
2027
2059
|
], Bt);
|
|
2028
2060
|
const ol = B`
|
|
@@ -2619,7 +2651,7 @@ function Fe(i) {
|
|
|
2619
2651
|
function $t(i) {
|
|
2620
2652
|
return Kt(hi(i * 255), 0, 255);
|
|
2621
2653
|
}
|
|
2622
|
-
function
|
|
2654
|
+
function Tt(i) {
|
|
2623
2655
|
return Kt(hi(i / 2.55) / 100, 0, 1);
|
|
2624
2656
|
}
|
|
2625
2657
|
function rn(i) {
|
|
@@ -2706,7 +2738,7 @@ function Wl(i) {
|
|
|
2706
2738
|
if (!i)
|
|
2707
2739
|
return;
|
|
2708
2740
|
const t = Ls(i), e = t[0], s = rn(t[1]), n = rn(t[2]);
|
|
2709
|
-
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${
|
|
2741
|
+
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${Tt(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
|
|
2710
2742
|
}
|
|
2711
2743
|
const ln = {
|
|
2712
2744
|
x: "dark",
|
|
@@ -2925,15 +2957,15 @@ function Xl(i) {
|
|
|
2925
2957
|
}
|
|
2926
2958
|
}
|
|
2927
2959
|
function Jl(i) {
|
|
2928
|
-
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${
|
|
2960
|
+
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${Tt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
2929
2961
|
}
|
|
2930
2962
|
const ns = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, Ce = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
2931
2963
|
function ql(i, t, e) {
|
|
2932
|
-
const s = Ce(
|
|
2964
|
+
const s = Ce(Tt(i.r)), n = Ce(Tt(i.g)), o = Ce(Tt(i.b));
|
|
2933
2965
|
return {
|
|
2934
|
-
r: $t(ns(s + e * (Ce(
|
|
2935
|
-
g: $t(ns(n + e * (Ce(
|
|
2936
|
-
b: $t(ns(o + e * (Ce(
|
|
2966
|
+
r: $t(ns(s + e * (Ce(Tt(t.r)) - s))),
|
|
2967
|
+
g: $t(ns(n + e * (Ce(Tt(t.g)) - n))),
|
|
2968
|
+
b: $t(ns(o + e * (Ce(Tt(t.b)) - o))),
|
|
2937
2969
|
a: i.a + e * (t.a - i.a)
|
|
2938
2970
|
};
|
|
2939
2971
|
}
|
|
@@ -2966,7 +2998,7 @@ class si {
|
|
|
2966
2998
|
}
|
|
2967
2999
|
get rgb() {
|
|
2968
3000
|
var t = Zo(this._rgb);
|
|
2969
|
-
return t && (t.a =
|
|
3001
|
+
return t && (t.a = Tt(t.a)), t;
|
|
2970
3002
|
}
|
|
2971
3003
|
set rgb(t) {
|
|
2972
3004
|
this._rgb = An(t);
|
|
@@ -3036,7 +3068,7 @@ class si {
|
|
|
3036
3068
|
* (c) 2024 Chart.js Contributors
|
|
3037
3069
|
* Released under the MIT License
|
|
3038
3070
|
*/
|
|
3039
|
-
function
|
|
3071
|
+
function Lt() {
|
|
3040
3072
|
}
|
|
3041
3073
|
const $l = /* @__PURE__ */ (() => {
|
|
3042
3074
|
let i = 0;
|
|
@@ -3182,7 +3214,7 @@ const oi = (i) => typeof i < "u", ee = (i) => typeof i == "function", dn = (i, t
|
|
|
3182
3214
|
function oc(i) {
|
|
3183
3215
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
3184
3216
|
}
|
|
3185
|
-
const H = Math.PI, N = 2 * H, ac = N + H, Wi = Number.POSITIVE_INFINITY, rc = H / 180, q = H / 2,
|
|
3217
|
+
const H = Math.PI, N = 2 * H, ac = N + H, Wi = Number.POSITIVE_INFINITY, rc = H / 180, q = H / 2, ce = H / 4, gn = H * 2 / 3, Xt = Math.log10, Et = Math.sign;
|
|
3186
3218
|
function qe(i, t, e) {
|
|
3187
3219
|
return Math.abs(i - t) < e;
|
|
3188
3220
|
}
|
|
@@ -3252,7 +3284,7 @@ function tt(i, t, e) {
|
|
|
3252
3284
|
function hc(i) {
|
|
3253
3285
|
return tt(i, -32768, 32767);
|
|
3254
3286
|
}
|
|
3255
|
-
function
|
|
3287
|
+
function Nt(i, t, e, s = 1e-6) {
|
|
3256
3288
|
return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s;
|
|
3257
3289
|
}
|
|
3258
3290
|
function Rs(i, t, e) {
|
|
@@ -3265,7 +3297,7 @@ function Rs(i, t, e) {
|
|
|
3265
3297
|
hi: s
|
|
3266
3298
|
};
|
|
3267
3299
|
}
|
|
3268
|
-
const
|
|
3300
|
+
const Ht = (i, t, e, s) => Rs(i, e, s ? (n) => {
|
|
3269
3301
|
const o = i[n][t];
|
|
3270
3302
|
return o < e || o === e && i[n + 1][t] === e;
|
|
3271
3303
|
} : (n) => i[n][t] < e), dc = (i, t, e) => Rs(i, e, (s) => i[s][t] >= e);
|
|
@@ -3351,14 +3383,14 @@ function ea(i, t, e) {
|
|
|
3351
3383
|
const { iScale: a, _parsed: r } = i, l = a.axis, { min: c, max: A, minDefined: h, maxDefined: d } = a.getUserBounds();
|
|
3352
3384
|
h && (n = tt(Math.min(
|
|
3353
3385
|
// @ts-expect-error Need to type _parsed
|
|
3354
|
-
|
|
3386
|
+
Ht(r, l, c).lo,
|
|
3355
3387
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
3356
|
-
e ? s :
|
|
3388
|
+
e ? s : Ht(t, l, a.getPixelForValue(c)).lo
|
|
3357
3389
|
), 0, s - 1)), d ? o = tt(Math.max(
|
|
3358
3390
|
// @ts-expect-error Need to type _parsed
|
|
3359
|
-
|
|
3391
|
+
Ht(r, a.axis, A, !0).hi + 1,
|
|
3360
3392
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
3361
|
-
e ? 0 :
|
|
3393
|
+
e ? 0 : Ht(t, l, a.getPixelForValue(A), !0).hi + 1
|
|
3362
3394
|
), n, s) - n : o = s - n;
|
|
3363
3395
|
}
|
|
3364
3396
|
return {
|
|
@@ -3633,7 +3665,7 @@ function xc(i) {
|
|
|
3633
3665
|
_indexable: (t) => t !== "backdropPadding"
|
|
3634
3666
|
});
|
|
3635
3667
|
}
|
|
3636
|
-
const
|
|
3668
|
+
const me = /* @__PURE__ */ Object.create(null), Ms = /* @__PURE__ */ Object.create(null);
|
|
3637
3669
|
function $e(i, t) {
|
|
3638
3670
|
if (!t)
|
|
3639
3671
|
return i;
|
|
@@ -3677,7 +3709,7 @@ class Gc {
|
|
|
3677
3709
|
return as(Ms, t, e);
|
|
3678
3710
|
}
|
|
3679
3711
|
override(t, e) {
|
|
3680
|
-
return as(
|
|
3712
|
+
return as(me, t, e);
|
|
3681
3713
|
}
|
|
3682
3714
|
route(t, e, s, n) {
|
|
3683
3715
|
const o = $e(this, t), a = $e(this, s), r = "_" + e;
|
|
@@ -3746,7 +3778,7 @@ function vc(i, t, e, s) {
|
|
|
3746
3778
|
}
|
|
3747
3779
|
return a;
|
|
3748
3780
|
}
|
|
3749
|
-
function
|
|
3781
|
+
function Ae(i, t, e) {
|
|
3750
3782
|
const s = i.currentDevicePixelRatio, n = e !== 0 ? Math.max(e / 2, 0.5) : 0;
|
|
3751
3783
|
return Math.round((t - n) * s) / s + n;
|
|
3752
3784
|
}
|
|
@@ -3773,24 +3805,24 @@ function na(i, t, e, s, n) {
|
|
|
3773
3805
|
A = n ? n / 2 : f, i.moveTo(e + Math.sin(p) * A, s - Math.cos(p) * f), p += gn, i.lineTo(e + Math.sin(p) * A, s - Math.cos(p) * f), p += gn, i.lineTo(e + Math.sin(p) * A, s - Math.cos(p) * f), i.closePath();
|
|
3774
3806
|
break;
|
|
3775
3807
|
case "rectRounded":
|
|
3776
|
-
c = f * 0.516, l = f - c, a = Math.cos(p +
|
|
3808
|
+
c = f * 0.516, l = f - c, a = Math.cos(p + ce) * l, h = Math.cos(p + ce) * (n ? n / 2 - c : l), r = Math.sin(p + ce) * l, d = Math.sin(p + ce) * (n ? n / 2 - c : l), i.arc(e - h, s - r, c, p - H, p - q), i.arc(e + d, s - a, c, p - q, p), i.arc(e + h, s + r, c, p, p + q), i.arc(e - d, s + a, c, p + q, p + H), i.closePath();
|
|
3777
3809
|
break;
|
|
3778
3810
|
case "rect":
|
|
3779
3811
|
if (!u) {
|
|
3780
3812
|
l = Math.SQRT1_2 * f, A = n ? n / 2 : l, i.rect(e - A, s - l, 2 * A, 2 * l);
|
|
3781
3813
|
break;
|
|
3782
3814
|
}
|
|
3783
|
-
p +=
|
|
3815
|
+
p += ce;
|
|
3784
3816
|
case "rectRot":
|
|
3785
3817
|
h = Math.cos(p) * (n ? n / 2 : f), a = Math.cos(p) * f, r = Math.sin(p) * f, d = Math.sin(p) * (n ? n / 2 : f), i.moveTo(e - h, s - r), i.lineTo(e + d, s - a), i.lineTo(e + h, s + r), i.lineTo(e - d, s + a), i.closePath();
|
|
3786
3818
|
break;
|
|
3787
3819
|
case "crossRot":
|
|
3788
|
-
p +=
|
|
3820
|
+
p += ce;
|
|
3789
3821
|
case "cross":
|
|
3790
3822
|
h = Math.cos(p) * (n ? n / 2 : f), a = Math.cos(p) * f, r = Math.sin(p) * f, d = Math.sin(p) * (n ? n / 2 : f), i.moveTo(e - h, s - r), i.lineTo(e + h, s + r), i.moveTo(e + d, s - a), i.lineTo(e - d, s + a);
|
|
3791
3823
|
break;
|
|
3792
3824
|
case "star":
|
|
3793
|
-
h = Math.cos(p) * (n ? n / 2 : f), a = Math.cos(p) * f, r = Math.sin(p) * f, d = Math.sin(p) * (n ? n / 2 : f), i.moveTo(e - h, s - r), i.lineTo(e + h, s + r), i.moveTo(e + d, s - a), i.lineTo(e - d, s + a), p +=
|
|
3825
|
+
h = Math.cos(p) * (n ? n / 2 : f), a = Math.cos(p) * f, r = Math.sin(p) * f, d = Math.sin(p) * (n ? n / 2 : f), i.moveTo(e - h, s - r), i.lineTo(e + h, s + r), i.moveTo(e + d, s - a), i.lineTo(e - d, s + a), p += ce, h = Math.cos(p) * (n ? n / 2 : f), a = Math.cos(p) * f, r = Math.sin(p) * f, d = Math.sin(p) * (n ? n / 2 : f), i.moveTo(e - h, s - r), i.lineTo(e + h, s + r), i.moveTo(e + d, s - a), i.lineTo(e - d, s + a);
|
|
3794
3826
|
break;
|
|
3795
3827
|
case "line":
|
|
3796
3828
|
a = n ? n / 2 : Math.cos(p) * f, r = Math.sin(p) * f, i.moveTo(e - a, s - r), i.lineTo(e + a, s + r);
|
|
@@ -3805,7 +3837,7 @@ function na(i, t, e, s, n) {
|
|
|
3805
3837
|
i.fill(), t.borderWidth > 0 && i.stroke();
|
|
3806
3838
|
}
|
|
3807
3839
|
}
|
|
3808
|
-
function
|
|
3840
|
+
function Vt(i, t, e) {
|
|
3809
3841
|
return e = e || 0.5, !t || i && i.x > t.left - e && i.x < t.right + e && i.y > t.top - e && i.y < t.bottom + e;
|
|
3810
3842
|
}
|
|
3811
3843
|
function $i(i, t) {
|
|
@@ -3841,7 +3873,7 @@ function kc(i, t) {
|
|
|
3841
3873
|
const e = i.fillStyle;
|
|
3842
3874
|
i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
|
|
3843
3875
|
}
|
|
3844
|
-
function
|
|
3876
|
+
function be(i, t, e, s, n, o = {}) {
|
|
3845
3877
|
const a = F(t) ? t : [
|
|
3846
3878
|
t
|
|
3847
3879
|
], r = o.strokeWidth > 0 && o.strokeColor !== "";
|
|
@@ -3883,7 +3915,7 @@ function oa(i) {
|
|
|
3883
3915
|
left: "x"
|
|
3884
3916
|
});
|
|
3885
3917
|
}
|
|
3886
|
-
function
|
|
3918
|
+
function pe(i) {
|
|
3887
3919
|
return Vs(i, [
|
|
3888
3920
|
"topLeft",
|
|
3889
3921
|
"topRight",
|
|
@@ -4228,9 +4260,9 @@ function Bi(i, t, e) {
|
|
|
4228
4260
|
return Math.max(Math.min(i, e), t);
|
|
4229
4261
|
}
|
|
4230
4262
|
function qc(i, t) {
|
|
4231
|
-
let e, s, n, o, a, r =
|
|
4263
|
+
let e, s, n, o, a, r = Vt(i[0], t);
|
|
4232
4264
|
for (e = 0, s = i.length; e < s; ++e)
|
|
4233
|
-
a = o, o = r, r = e < s - 1 &&
|
|
4265
|
+
a = o, o = r, r = e < s - 1 && Vt(i[e + 1], t), o && (n = i[e], a && (n.cp1x = Bi(n.cp1x, t.left, t.right), n.cp1y = Bi(n.cp1y, t.top, t.bottom)), r && (n.cp2x = Bi(n.cp2x, t.left, t.right), n.cp2y = Bi(n.cp2y, t.top, t.bottom)));
|
|
4234
4266
|
}
|
|
4235
4267
|
function _c(i, t, e, s, n) {
|
|
4236
4268
|
let o, a, r, l;
|
|
@@ -4264,7 +4296,7 @@ const tA = [
|
|
|
4264
4296
|
"bottom",
|
|
4265
4297
|
"left"
|
|
4266
4298
|
];
|
|
4267
|
-
function
|
|
4299
|
+
function we(i, t, e) {
|
|
4268
4300
|
const s = {};
|
|
4269
4301
|
e = e ? "-" + e : "";
|
|
4270
4302
|
for (let n = 0; n < 4; n++) {
|
|
@@ -4289,10 +4321,10 @@ function iA(i, t) {
|
|
|
4289
4321
|
box: a
|
|
4290
4322
|
};
|
|
4291
4323
|
}
|
|
4292
|
-
function
|
|
4324
|
+
function ge(i, t) {
|
|
4293
4325
|
if ("native" in i)
|
|
4294
4326
|
return i;
|
|
4295
|
-
const { canvas: e, currentDevicePixelRatio: s } = t, n = es(e), o = n.boxSizing === "border-box", a =
|
|
4327
|
+
const { canvas: e, currentDevicePixelRatio: s } = t, n = es(e), o = n.boxSizing === "border-box", a = we(n, "padding"), r = we(n, "border", "width"), { x: l, y: c, box: A } = iA(i, e), h = a.left + (A && r.left), d = a.top + (A && r.top);
|
|
4296
4328
|
let { width: g, height: u } = t;
|
|
4297
4329
|
return o && (g -= a.width + r.width, u -= a.height + r.height), {
|
|
4298
4330
|
x: Math.round((l - h) / g * e.width / s),
|
|
@@ -4306,7 +4338,7 @@ function sA(i, t, e) {
|
|
|
4306
4338
|
if (!o)
|
|
4307
4339
|
t = i.clientWidth, e = i.clientHeight;
|
|
4308
4340
|
else {
|
|
4309
|
-
const a = o.getBoundingClientRect(), r = es(o), l =
|
|
4341
|
+
const a = o.getBoundingClientRect(), r = es(o), l = we(r, "border", "width"), c = we(r, "padding");
|
|
4310
4342
|
t = a.width - c.width - l.width, e = a.height - c.height - l.height, s = Ui(r.maxWidth, o, "clientWidth"), n = Ui(r.maxHeight, o, "clientHeight");
|
|
4311
4343
|
}
|
|
4312
4344
|
}
|
|
@@ -4319,10 +4351,10 @@ function sA(i, t, e) {
|
|
|
4319
4351
|
}
|
|
4320
4352
|
const xi = (i) => Math.round(i * 10) / 10;
|
|
4321
4353
|
function nA(i, t, e, s) {
|
|
4322
|
-
const n = es(i), o =
|
|
4354
|
+
const n = es(i), o = we(n, "margin"), a = Ui(n.maxWidth, i, "clientWidth") || Wi, r = Ui(n.maxHeight, i, "clientHeight") || Wi, l = sA(i, t, e);
|
|
4323
4355
|
let { width: c, height: A } = l;
|
|
4324
4356
|
if (n.boxSizing === "content-box") {
|
|
4325
|
-
const d =
|
|
4357
|
+
const d = we(n, "border", "width"), g = we(n, "padding");
|
|
4326
4358
|
c -= g.width + d.width, A -= g.height + d.height;
|
|
4327
4359
|
}
|
|
4328
4360
|
return c = Math.max(0, c - o.width), A = Math.max(0, s ? c / s : A - o.height), c = xi(Math.min(c, a, l.maxWidth)), A = xi(Math.min(A, r, l.maxHeight)), c && !A && (A = xi(c / 2)), (t !== void 0 || e !== void 0) && s && l.height && A > l.height && (A = l.height, c = xi(Math.floor(A * s))), {
|
|
@@ -4353,7 +4385,7 @@ function Yn(i, t) {
|
|
|
4353
4385
|
const e = $c(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
|
|
4354
4386
|
return s ? +s[1] : void 0;
|
|
4355
4387
|
}
|
|
4356
|
-
function
|
|
4388
|
+
function ue(i, t, e, s) {
|
|
4357
4389
|
return {
|
|
4358
4390
|
x: i.x + e * (t.x - i.x),
|
|
4359
4391
|
y: i.y + e * (t.y - i.y)
|
|
@@ -4372,8 +4404,8 @@ function rA(i, t, e, s) {
|
|
|
4372
4404
|
}, o = {
|
|
4373
4405
|
x: t.cp1x,
|
|
4374
4406
|
y: t.cp1y
|
|
4375
|
-
}, a =
|
|
4376
|
-
return
|
|
4407
|
+
}, a = ue(i, n, e), r = ue(n, o, e), l = ue(o, t, e), c = ue(a, r, e), A = ue(r, l, e);
|
|
4408
|
+
return ue(c, A, e);
|
|
4377
4409
|
}
|
|
4378
4410
|
const lA = function(i, t) {
|
|
4379
4411
|
return {
|
|
@@ -4430,7 +4462,7 @@ function ua(i) {
|
|
|
4430
4462
|
compare: Ac,
|
|
4431
4463
|
normalize: ft
|
|
4432
4464
|
} : {
|
|
4433
|
-
between:
|
|
4465
|
+
between: Nt,
|
|
4434
4466
|
compare: (t, e) => t - e,
|
|
4435
4467
|
normalize: (t) => t
|
|
4436
4468
|
};
|
|
@@ -4677,7 +4709,7 @@ class pA {
|
|
|
4677
4709
|
return this._charts.delete(t);
|
|
4678
4710
|
}
|
|
4679
4711
|
}
|
|
4680
|
-
var
|
|
4712
|
+
var Ot = /* @__PURE__ */ new pA();
|
|
4681
4713
|
const In = "transparent", wA = {
|
|
4682
4714
|
boolean(i, t, e) {
|
|
4683
4715
|
return e > 0.5 ? t : i;
|
|
@@ -4823,7 +4855,7 @@ class wa {
|
|
|
4823
4855
|
}
|
|
4824
4856
|
const s = this._createAnimations(t, e);
|
|
4825
4857
|
if (s.length)
|
|
4826
|
-
return
|
|
4858
|
+
return Ot.add(this._chart, s), !0;
|
|
4827
4859
|
}
|
|
4828
4860
|
}
|
|
4829
4861
|
function bA(i, t) {
|
|
@@ -5723,7 +5755,7 @@ function RA(i, t, e) {
|
|
|
5723
5755
|
offsetY: a
|
|
5724
5756
|
};
|
|
5725
5757
|
}
|
|
5726
|
-
class
|
|
5758
|
+
class fe extends Mt {
|
|
5727
5759
|
constructor(t, e) {
|
|
5728
5760
|
super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
|
|
5729
5761
|
}
|
|
@@ -5846,7 +5878,7 @@ class ue extends Mt {
|
|
|
5846
5878
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
5847
5879
|
}
|
|
5848
5880
|
}
|
|
5849
|
-
Y(
|
|
5881
|
+
Y(fe, "id", "doughnut"), Y(fe, "defaults", {
|
|
5850
5882
|
datasetElementType: !1,
|
|
5851
5883
|
dataElementType: "arc",
|
|
5852
5884
|
animation: {
|
|
@@ -5876,10 +5908,10 @@ Y(ue, "id", "doughnut"), Y(ue, "defaults", {
|
|
|
5876
5908
|
radius: "100%",
|
|
5877
5909
|
spacing: 0,
|
|
5878
5910
|
indexAxis: "r"
|
|
5879
|
-
}), Y(
|
|
5911
|
+
}), Y(fe, "descriptors", {
|
|
5880
5912
|
_scriptable: (t) => t !== "spacing",
|
|
5881
5913
|
_indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
|
|
5882
|
-
}), Y(
|
|
5914
|
+
}), Y(fe, "overrides", {
|
|
5883
5915
|
aspectRatio: 1,
|
|
5884
5916
|
plugins: {
|
|
5885
5917
|
legend: {
|
|
@@ -6099,7 +6131,7 @@ Y(ti, "id", "polarArea"), Y(ti, "defaults", {
|
|
|
6099
6131
|
}
|
|
6100
6132
|
}
|
|
6101
6133
|
});
|
|
6102
|
-
class Bs extends
|
|
6134
|
+
class Bs extends fe {
|
|
6103
6135
|
}
|
|
6104
6136
|
Y(Bs, "id", "pie"), Y(Bs, "defaults", {
|
|
6105
6137
|
cutout: 0,
|
|
@@ -6237,14 +6269,14 @@ var NA = /* @__PURE__ */ Object.freeze({
|
|
|
6237
6269
|
__proto__: null,
|
|
6238
6270
|
BarController: Pi,
|
|
6239
6271
|
BubbleController: zi,
|
|
6240
|
-
DoughnutController:
|
|
6272
|
+
DoughnutController: fe,
|
|
6241
6273
|
LineController: Li,
|
|
6242
6274
|
PieController: Bs,
|
|
6243
6275
|
PolarAreaController: ti,
|
|
6244
6276
|
RadarController: Oi,
|
|
6245
6277
|
ScatterController: Si
|
|
6246
6278
|
});
|
|
6247
|
-
function
|
|
6279
|
+
function he() {
|
|
6248
6280
|
throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
|
|
6249
6281
|
}
|
|
6250
6282
|
class Xs {
|
|
@@ -6269,25 +6301,25 @@ class Xs {
|
|
|
6269
6301
|
init() {
|
|
6270
6302
|
}
|
|
6271
6303
|
formats() {
|
|
6272
|
-
return
|
|
6304
|
+
return he();
|
|
6273
6305
|
}
|
|
6274
6306
|
parse() {
|
|
6275
|
-
return
|
|
6307
|
+
return he();
|
|
6276
6308
|
}
|
|
6277
6309
|
format() {
|
|
6278
|
-
return
|
|
6310
|
+
return he();
|
|
6279
6311
|
}
|
|
6280
6312
|
add() {
|
|
6281
|
-
return
|
|
6313
|
+
return he();
|
|
6282
6314
|
}
|
|
6283
6315
|
diff() {
|
|
6284
|
-
return
|
|
6316
|
+
return he();
|
|
6285
6317
|
}
|
|
6286
6318
|
startOf() {
|
|
6287
|
-
return
|
|
6319
|
+
return he();
|
|
6288
6320
|
}
|
|
6289
6321
|
endOf() {
|
|
6290
|
-
return
|
|
6322
|
+
return he();
|
|
6291
6323
|
}
|
|
6292
6324
|
}
|
|
6293
6325
|
var HA = {
|
|
@@ -6296,7 +6328,7 @@ var HA = {
|
|
|
6296
6328
|
function VA(i, t, e, s) {
|
|
6297
6329
|
const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
|
|
6298
6330
|
if (r && t === r.axis && t !== "r" && a && o.length) {
|
|
6299
|
-
const l = r._reversePixels ? dc :
|
|
6331
|
+
const l = r._reversePixels ? dc : Ht;
|
|
6300
6332
|
if (s) {
|
|
6301
6333
|
if (n._sharedOptions) {
|
|
6302
6334
|
const c = o[0], A = typeof c.getRange == "function" && c.getRange(t);
|
|
@@ -6335,7 +6367,7 @@ function FA(i) {
|
|
|
6335
6367
|
function hs(i, t, e, s, n) {
|
|
6336
6368
|
const o = [];
|
|
6337
6369
|
return !n && !i.isPointInArea(t) || gi(i, e, t, function(r, l, c) {
|
|
6338
|
-
!n && !
|
|
6370
|
+
!n && !Vt(r, i.chartArea, 0) || r.inRange(t.x, t.y, s) && o.push({
|
|
6339
6371
|
element: r,
|
|
6340
6372
|
datasetIndex: l,
|
|
6341
6373
|
index: c
|
|
@@ -6404,7 +6436,7 @@ var UA = {
|
|
|
6404
6436
|
evaluateInteractionItems: gi,
|
|
6405
6437
|
modes: {
|
|
6406
6438
|
index(i, t, e, s) {
|
|
6407
|
-
const n =
|
|
6439
|
+
const n = ge(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? hs(i, n, o, s, a) : ds(i, n, o, !1, s, a), l = [];
|
|
6408
6440
|
return r.length ? (i.getSortedVisibleDatasetMetas().forEach((c) => {
|
|
6409
6441
|
const A = r[0].index, h = c.data[A];
|
|
6410
6442
|
h && !h.skip && l.push({
|
|
@@ -6415,7 +6447,7 @@ var UA = {
|
|
|
6415
6447
|
}), l) : [];
|
|
6416
6448
|
},
|
|
6417
6449
|
dataset(i, t, e, s) {
|
|
6418
|
-
const n =
|
|
6450
|
+
const n = ge(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
6419
6451
|
let r = e.intersect ? hs(i, n, o, s, a) : ds(i, n, o, !1, s, a);
|
|
6420
6452
|
if (r.length > 0) {
|
|
6421
6453
|
const l = r[0].datasetIndex, c = i.getDatasetMeta(l).data;
|
|
@@ -6430,19 +6462,19 @@ var UA = {
|
|
|
6430
6462
|
return r;
|
|
6431
6463
|
},
|
|
6432
6464
|
point(i, t, e, s) {
|
|
6433
|
-
const n =
|
|
6465
|
+
const n = ge(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
6434
6466
|
return hs(i, n, o, s, a);
|
|
6435
6467
|
},
|
|
6436
6468
|
nearest(i, t, e, s) {
|
|
6437
|
-
const n =
|
|
6469
|
+
const n = ge(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
6438
6470
|
return ds(i, n, o, e.intersect, s, a);
|
|
6439
6471
|
},
|
|
6440
6472
|
x(i, t, e, s) {
|
|
6441
|
-
const n =
|
|
6473
|
+
const n = ge(t, i);
|
|
6442
6474
|
return Tn(i, n, "x", e.intersect, s);
|
|
6443
6475
|
},
|
|
6444
6476
|
y(i, t, e, s) {
|
|
6445
|
-
const n =
|
|
6477
|
+
const n = ge(t, i);
|
|
6446
6478
|
return Tn(i, n, "y", e.intersect, s);
|
|
6447
6479
|
}
|
|
6448
6480
|
}
|
|
@@ -6745,7 +6777,7 @@ function oh(i, t, e) {
|
|
|
6745
6777
|
i && i.canvas && i.canvas.removeEventListener(t, e, xa);
|
|
6746
6778
|
}
|
|
6747
6779
|
function ah(i, t) {
|
|
6748
|
-
const e = ih[i.type] || i.type, { x: s, y: n } =
|
|
6780
|
+
const e = ih[i.type] || i.type, { x: s, y: n } = ge(i, t);
|
|
6749
6781
|
return {
|
|
6750
6782
|
type: e,
|
|
6751
6783
|
chart: t,
|
|
@@ -7041,7 +7073,7 @@ function yh(i, t, e, s) {
|
|
|
7041
7073
|
rotation: h
|
|
7042
7074
|
};
|
|
7043
7075
|
}
|
|
7044
|
-
class
|
|
7076
|
+
class Ge extends xt {
|
|
7045
7077
|
constructor(t) {
|
|
7046
7078
|
super(), this.id = t.id, this.type = t.type, this.options = void 0, this.ctx = t.ctx, this.chart = t.chart, this.top = void 0, this.bottom = void 0, this.left = void 0, this.right = void 0, this.width = void 0, this.height = void 0, this._margins = {
|
|
7047
7079
|
left: 0,
|
|
@@ -7314,7 +7346,7 @@ class xe extends xt {
|
|
|
7314
7346
|
getPixelForDecimal(t) {
|
|
7315
7347
|
this._reversePixels && (t = 1 - t);
|
|
7316
7348
|
const e = this._startPixel + t * this._length;
|
|
7317
|
-
return hc(this._alignToPixels ?
|
|
7349
|
+
return hc(this._alignToPixels ? Ae(this.chart, e, 0) : e);
|
|
7318
7350
|
}
|
|
7319
7351
|
getDecimalForPixel(t) {
|
|
7320
7352
|
const e = (t - this._startPixel) / this._length;
|
|
@@ -7345,7 +7377,7 @@ class xe extends xt {
|
|
|
7345
7377
|
}
|
|
7346
7378
|
_computeGridLineItems(t) {
|
|
7347
7379
|
const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, l = o.offset, c = this.isHorizontal(), h = this.ticks.length + (l ? 1 : 0), d = He(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(V) {
|
|
7348
|
-
return
|
|
7380
|
+
return Ae(s, V, f);
|
|
7349
7381
|
};
|
|
7350
7382
|
let m, G, x, D, v, y, C, I, k, Q, z, it;
|
|
7351
7383
|
if (a === "top")
|
|
@@ -7375,8 +7407,8 @@ class xe extends xt {
|
|
|
7375
7407
|
}
|
|
7376
7408
|
const gt = E(n.ticks.maxTicksLimit, h), S = Math.max(1, Math.ceil(h / gt));
|
|
7377
7409
|
for (G = 0; G < h; G += S) {
|
|
7378
|
-
const V = this.getContext(G), J = o.setContext(V), mt = r.setContext(V), st = J.lineWidth, Ye = J.color, fi = mt.dash || [], ve = mt.dashOffset, Se = J.tickWidth,
|
|
7379
|
-
x = Bh(this, G, l), x !== void 0 && (D =
|
|
7410
|
+
const V = this.getContext(G), J = o.setContext(V), mt = r.setContext(V), st = J.lineWidth, Ye = J.color, fi = mt.dash || [], ve = mt.dashOffset, Se = J.tickWidth, re = J.tickColor, Te = J.tickBorderDash || [], le = J.tickBorderDashOffset;
|
|
7411
|
+
x = Bh(this, G, l), x !== void 0 && (D = Ae(s, x, st), c ? v = C = k = z = D : y = I = Q = it = D, g.push({
|
|
7380
7412
|
tx1: v,
|
|
7381
7413
|
ty1: y,
|
|
7382
7414
|
tx2: C,
|
|
@@ -7390,9 +7422,9 @@ class xe extends xt {
|
|
|
7390
7422
|
borderDash: fi,
|
|
7391
7423
|
borderDashOffset: ve,
|
|
7392
7424
|
tickWidth: Se,
|
|
7393
|
-
tickColor:
|
|
7425
|
+
tickColor: re,
|
|
7394
7426
|
tickBorderDash: Te,
|
|
7395
|
-
tickBorderDashOffset:
|
|
7427
|
+
tickBorderDashOffset: le
|
|
7396
7428
|
}));
|
|
7397
7429
|
}
|
|
7398
7430
|
return this._ticksLength = h, this._borderValue = m, g;
|
|
@@ -7438,8 +7470,8 @@ class xe extends xt {
|
|
|
7438
7470
|
a ? (D = C, y === "inner" && (w === m - 1 ? Ye = this.options.reverse ? "left" : "right" : w === 0 ? Ye = this.options.reverse ? "right" : "left" : Ye = "center"), n === "top" ? c === "near" || f !== 0 ? z = -Q * k + k / 2 : c === "center" ? z = -gt.highest.height / 2 - V * k + k : z = -gt.highest.height + k / 2 : c === "near" || f !== 0 ? z = k / 2 : c === "center" ? z = gt.highest.height / 2 - V * k : z = gt.highest.height - Q * k, h && (z *= -1), f !== 0 && !S.showLabelBackdrop && (D += k / 2 * Math.sin(f))) : (v = C, z = (1 - Q) * k / 2);
|
|
7439
7471
|
let fi;
|
|
7440
7472
|
if (S.showLabelBackdrop) {
|
|
7441
|
-
const ve = at(S.backdropPadding), Se = gt.heights[w],
|
|
7442
|
-
let Te = z - ve.top,
|
|
7473
|
+
const ve = at(S.backdropPadding), Se = gt.heights[w], re = gt.widths[w];
|
|
7474
|
+
let Te = z - ve.top, le = 0 - ve.left;
|
|
7443
7475
|
switch (it) {
|
|
7444
7476
|
case "middle":
|
|
7445
7477
|
Te -= Se / 2;
|
|
@@ -7450,19 +7482,19 @@ class xe extends xt {
|
|
|
7450
7482
|
}
|
|
7451
7483
|
switch (y) {
|
|
7452
7484
|
case "center":
|
|
7453
|
-
|
|
7485
|
+
le -= re / 2;
|
|
7454
7486
|
break;
|
|
7455
7487
|
case "right":
|
|
7456
|
-
|
|
7488
|
+
le -= re;
|
|
7457
7489
|
break;
|
|
7458
7490
|
case "inner":
|
|
7459
|
-
w === m - 1 ?
|
|
7491
|
+
w === m - 1 ? le -= re : w > 0 && (le -= re / 2);
|
|
7460
7492
|
break;
|
|
7461
7493
|
}
|
|
7462
7494
|
fi = {
|
|
7463
|
-
left:
|
|
7495
|
+
left: le,
|
|
7464
7496
|
top: Te,
|
|
7465
|
-
width:
|
|
7497
|
+
width: re + ve.width,
|
|
7466
7498
|
height: Se + ve.height,
|
|
7467
7499
|
color: S.backdropColor
|
|
7468
7500
|
};
|
|
@@ -7568,7 +7600,7 @@ class xe extends xt {
|
|
|
7568
7600
|
return;
|
|
7569
7601
|
const r = n.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
|
|
7570
7602
|
let c, A, h, d;
|
|
7571
|
-
this.isHorizontal() ? (c =
|
|
7603
|
+
this.isHorizontal() ? (c = Ae(t, this.left, a) - a / 2, A = Ae(t, this.right, r) + r / 2, h = d = l) : (h = Ae(t, this.top, a) - a / 2, d = Ae(t, this.bottom, r) + r / 2, c = A = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(c, h), e.lineTo(A, d), e.stroke(), e.restore();
|
|
7572
7604
|
}
|
|
7573
7605
|
drawLabels(t) {
|
|
7574
7606
|
if (!this.options.ticks.display)
|
|
@@ -7578,7 +7610,7 @@ class xe extends xt {
|
|
|
7578
7610
|
const o = this.getLabelItems(t);
|
|
7579
7611
|
for (const a of o) {
|
|
7580
7612
|
const r = a.options, l = a.font, c = a.label, A = a.textOffset;
|
|
7581
|
-
|
|
7613
|
+
be(s, c, 0, A, l, r);
|
|
7582
7614
|
}
|
|
7583
7615
|
n && ts(s);
|
|
7584
7616
|
}
|
|
@@ -7590,7 +7622,7 @@ class xe extends xt {
|
|
|
7590
7622
|
let l = o.lineHeight / 2;
|
|
7591
7623
|
e === "bottom" || e === "center" || P(e) ? (l += a.bottom, F(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
|
|
7592
7624
|
const { titleX: c, titleY: A, maxWidth: h, rotation: d } = yh(this, l, e, r);
|
|
7593
|
-
|
|
7625
|
+
be(t, s.text, 0, 0, o, {
|
|
7594
7626
|
color: s.color,
|
|
7595
7627
|
maxWidth: h,
|
|
7596
7628
|
rotation: d,
|
|
@@ -7607,7 +7639,7 @@ class xe extends xt {
|
|
|
7607
7639
|
}
|
|
7608
7640
|
_layers() {
|
|
7609
7641
|
const t = this.options, e = t.ticks && t.ticks.z || 0, s = E(t.grid && t.grid.z, -1), n = E(t.border && t.border.z, 0);
|
|
7610
|
-
return !this._isVisible() || this.draw !==
|
|
7642
|
+
return !this._isVisible() || this.draw !== Ge.prototype.draw ? [
|
|
7611
7643
|
{
|
|
7612
7644
|
z: e,
|
|
7613
7645
|
draw: (o) => {
|
|
@@ -7674,7 +7706,7 @@ class vi {
|
|
|
7674
7706
|
}
|
|
7675
7707
|
unregister(t) {
|
|
7676
7708
|
const e = this.items, s = t.id, n = this.scope;
|
|
7677
|
-
s in e && delete e[s], n && s in W[n] && (delete W[n][s], this.override && delete
|
|
7709
|
+
s in e && delete e[s], n && s in W[n] && (delete W[n][s], this.override && delete me[s]);
|
|
7678
7710
|
}
|
|
7679
7711
|
}
|
|
7680
7712
|
function Ch(i, t, e) {
|
|
@@ -7698,7 +7730,7 @@ function Eh(i) {
|
|
|
7698
7730
|
}
|
|
7699
7731
|
class kh {
|
|
7700
7732
|
constructor() {
|
|
7701
|
-
this.controllers = new vi(Mt, "datasets", !0), this.elements = new vi(xt, "elements"), this.plugins = new vi(Object, "plugins"), this.scales = new vi(
|
|
7733
|
+
this.controllers = new vi(Mt, "datasets", !0), this.elements = new vi(xt, "elements"), this.plugins = new vi(Object, "plugins"), this.scales = new vi(Ge, "scales"), this._typedRegistries = [
|
|
7702
7734
|
this.controllers,
|
|
7703
7735
|
this.scales,
|
|
7704
7736
|
this.elements
|
|
@@ -7904,7 +7936,7 @@ function Rh(i, t) {
|
|
|
7904
7936
|
return {};
|
|
7905
7937
|
}
|
|
7906
7938
|
function Nh(i, t) {
|
|
7907
|
-
const e =
|
|
7939
|
+
const e = me[i.type] || {
|
|
7908
7940
|
scales: {}
|
|
7909
7941
|
}, s = t.scales || {}, n = xs(i.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
7910
7942
|
return Object.keys(s).forEach((a) => {
|
|
@@ -7923,7 +7955,7 @@ function Nh(i, t) {
|
|
|
7923
7955
|
A[c]
|
|
7924
7956
|
]);
|
|
7925
7957
|
}), i.data.datasets.forEach((a) => {
|
|
7926
|
-
const r = a.type || i.type, l = a.indexAxis || xs(r, t), A = (
|
|
7958
|
+
const r = a.type || i.type, l = a.indexAxis || xs(r, t), A = (me[r] || {}).scales || {};
|
|
7927
7959
|
Object.keys(A).forEach((h) => {
|
|
7928
7960
|
const d = Sh(h, l), g = a[d + "AxisID"] || d;
|
|
7929
7961
|
o[g] = o[g] || /* @__PURE__ */ Object.create(null), Je(o[g], [
|
|
@@ -8046,7 +8078,7 @@ class Vh {
|
|
|
8046
8078
|
return r;
|
|
8047
8079
|
const l = /* @__PURE__ */ new Set();
|
|
8048
8080
|
e.forEach((A) => {
|
|
8049
|
-
t && (l.add(t), A.forEach((h) => Ve(l, t, h))), A.forEach((h) => Ve(l, n, h)), A.forEach((h) => Ve(l,
|
|
8081
|
+
t && (l.add(t), A.forEach((h) => Ve(l, t, h))), A.forEach((h) => Ve(l, n, h)), A.forEach((h) => Ve(l, me[o] || {}, h)), A.forEach((h) => Ve(l, W, h)), A.forEach((h) => Ve(l, Ms, h));
|
|
8050
8082
|
});
|
|
8051
8083
|
const c = Array.from(l);
|
|
8052
8084
|
return c.length === 0 && c.push(/* @__PURE__ */ Object.create(null)), ya.has(e) && a.set(e, c), c;
|
|
@@ -8055,7 +8087,7 @@ class Vh {
|
|
|
8055
8087
|
const { options: t, type: e } = this;
|
|
8056
8088
|
return [
|
|
8057
8089
|
t,
|
|
8058
|
-
|
|
8090
|
+
me[e] || {},
|
|
8059
8091
|
W.datasets[e] || {},
|
|
8060
8092
|
{
|
|
8061
8093
|
type: e
|
|
@@ -8167,7 +8199,7 @@ function qh(i, t) {
|
|
|
8167
8199
|
bottom: Ci(s, t, "bottom")
|
|
8168
8200
|
} : t;
|
|
8169
8201
|
}
|
|
8170
|
-
class
|
|
8202
|
+
class jt {
|
|
8171
8203
|
static register(...t) {
|
|
8172
8204
|
It.add(...t), io();
|
|
8173
8205
|
}
|
|
@@ -8185,7 +8217,7 @@ class St {
|
|
|
8185
8217
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
8186
8218
|
return;
|
|
8187
8219
|
}
|
|
8188
|
-
|
|
8220
|
+
Ot.listen(this, "complete", to), Ot.listen(this, "progress", Kh), this._initialize(), this.attached && this.update();
|
|
8189
8221
|
}
|
|
8190
8222
|
get aspectRatio() {
|
|
8191
8223
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
|
|
@@ -8213,10 +8245,10 @@ class St {
|
|
|
8213
8245
|
return Dn(this.canvas, this.ctx), this;
|
|
8214
8246
|
}
|
|
8215
8247
|
stop() {
|
|
8216
|
-
return
|
|
8248
|
+
return Ot.stop(this), this;
|
|
8217
8249
|
}
|
|
8218
8250
|
resize(t, e) {
|
|
8219
|
-
|
|
8251
|
+
Ot.running(this) ? this._resizeBeforeDraw = {
|
|
8220
8252
|
width: t,
|
|
8221
8253
|
height: e
|
|
8222
8254
|
} : this._resize(t, e);
|
|
@@ -8406,7 +8438,7 @@ class St {
|
|
|
8406
8438
|
render() {
|
|
8407
8439
|
this.notifyPlugins("beforeRender", {
|
|
8408
8440
|
cancelable: !0
|
|
8409
|
-
}) !== !1 && (
|
|
8441
|
+
}) !== !1 && (Ot.has(this) ? this.attached && !Ot.running(this) && Ot.start(this) : (this.draw(), to({
|
|
8410
8442
|
chart: this
|
|
8411
8443
|
})));
|
|
8412
8444
|
}
|
|
@@ -8463,7 +8495,7 @@ class St {
|
|
|
8463
8495
|
}), t.controller.draw(), n && ts(e), a.cancelable = !1, this.notifyPlugins("afterDatasetDraw", a));
|
|
8464
8496
|
}
|
|
8465
8497
|
isPointInArea(t) {
|
|
8466
|
-
return
|
|
8498
|
+
return Vt(t, this.chartArea, this._minPadding);
|
|
8467
8499
|
}
|
|
8468
8500
|
getElementsAtEventForMode(t, e, s, n) {
|
|
8469
8501
|
const o = UA.modes[e];
|
|
@@ -8531,7 +8563,7 @@ class St {
|
|
|
8531
8563
|
}
|
|
8532
8564
|
_stop() {
|
|
8533
8565
|
let t, e;
|
|
8534
|
-
for (this.stop(),
|
|
8566
|
+
for (this.stop(), Ot.remove(this), t = 0, e = this.data.datasets.length; t < e; ++t)
|
|
8535
8567
|
this._destroyDatasetMeta(t);
|
|
8536
8568
|
}
|
|
8537
8569
|
destroy() {
|
|
@@ -8647,9 +8679,9 @@ class St {
|
|
|
8647
8679
|
return this.getElementsAtEventForMode(t, o.mode, o, n);
|
|
8648
8680
|
}
|
|
8649
8681
|
}
|
|
8650
|
-
Y(
|
|
8682
|
+
Y(jt, "defaults", W), Y(jt, "instances", ji), Y(jt, "overrides", me), Y(jt, "registry", It), Y(jt, "version", Zh), Y(jt, "getChart", eo);
|
|
8651
8683
|
function io() {
|
|
8652
|
-
return O(
|
|
8684
|
+
return O(jt.instances, (i) => i._plugins.invalidate());
|
|
8653
8685
|
}
|
|
8654
8686
|
function _h(i, t, e) {
|
|
8655
8687
|
const { startAngle: s, pixelMargin: n, x: o, y: a, outerRadius: r, innerRadius: l } = t;
|
|
@@ -8771,7 +8803,7 @@ class Ue extends xt {
|
|
|
8771
8803
|
"innerRadius",
|
|
8772
8804
|
"outerRadius",
|
|
8773
8805
|
"circumference"
|
|
8774
|
-
], n), g = (this.options.spacing + this.options.borderWidth) / 2, u = E(d, c - l), f = ai(a, l, c) && l !== c, p = u >= N || f, w =
|
|
8806
|
+
], n), g = (this.options.spacing + this.options.borderWidth) / 2, u = E(d, c - l), f = ai(a, l, c) && l !== c, p = u >= N || f, w = Nt(r, A + g, h + g);
|
|
8775
8807
|
return p && w;
|
|
8776
8808
|
}
|
|
8777
8809
|
getCenterPoint(e) {
|
|
@@ -8864,7 +8896,7 @@ function Ys(i) {
|
|
|
8864
8896
|
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? ad : od;
|
|
8865
8897
|
}
|
|
8866
8898
|
function rd(i) {
|
|
8867
|
-
return i.stepped ? aA : i.tension || i.cubicInterpolationMode === "monotone" ? rA :
|
|
8899
|
+
return i.stepped ? aA : i.tension || i.cubicInterpolationMode === "monotone" ? rA : ue;
|
|
8868
8900
|
}
|
|
8869
8901
|
function ld(i, t, e, s) {
|
|
8870
8902
|
let n = t._path;
|
|
@@ -9015,7 +9047,7 @@ class Ri extends xt {
|
|
|
9015
9047
|
}
|
|
9016
9048
|
draw(e, s) {
|
|
9017
9049
|
const n = this.options;
|
|
9018
|
-
this.skip || n.radius < 0.1 || !
|
|
9050
|
+
this.skip || n.radius < 0.1 || !Vt(this, s, this.size(n) / 2) || (e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.fillStyle = n.backgroundColor, Ds(e, n, this.x, this.y));
|
|
9019
9051
|
}
|
|
9020
9052
|
getRange() {
|
|
9021
9053
|
const e = this.options || {};
|
|
@@ -9071,7 +9103,7 @@ function dd(i, t, e) {
|
|
|
9071
9103
|
function gd(i, t, e) {
|
|
9072
9104
|
const { enableBorderRadius: s } = i.getProps([
|
|
9073
9105
|
"enableBorderRadius"
|
|
9074
|
-
]), n = i.options.borderRadius, o =
|
|
9106
|
+
]), n = i.options.borderRadius, o = pe(n), a = Math.min(t, e), r = i.borderSkipped, l = s || P(n);
|
|
9075
9107
|
return {
|
|
9076
9108
|
topLeft: qt(!l || r.top || r.left, o.topLeft, 0, a),
|
|
9077
9109
|
topRight: qt(!l || r.top || r.right, o.topRight, 0, a),
|
|
@@ -9105,7 +9137,7 @@ function ud(i) {
|
|
|
9105
9137
|
}
|
|
9106
9138
|
function us(i, t, e, s) {
|
|
9107
9139
|
const n = t === null, o = e === null, r = i && !(n && o) && ka(i, s);
|
|
9108
|
-
return r && (n ||
|
|
9140
|
+
return r && (n || Nt(t, r.left, r.right)) && (o || Nt(e, r.top, r.bottom));
|
|
9109
9141
|
}
|
|
9110
9142
|
function fd(i) {
|
|
9111
9143
|
return i.topLeft || i.topRight || i.bottomLeft || i.bottomRight;
|
|
@@ -9202,7 +9234,7 @@ function Dd(i) {
|
|
|
9202
9234
|
let t = 0;
|
|
9203
9235
|
return (e, s) => {
|
|
9204
9236
|
const n = i.getDatasetMeta(s).controller;
|
|
9205
|
-
n instanceof
|
|
9237
|
+
n instanceof fe ? t = bd(e, t) : n instanceof ti ? t = Md(e, t) : n && (t = md(e, t));
|
|
9206
9238
|
};
|
|
9207
9239
|
}
|
|
9208
9240
|
function oo(i) {
|
|
@@ -9300,7 +9332,7 @@ function yd(i, t) {
|
|
|
9300
9332
|
const e = t.length;
|
|
9301
9333
|
let s = 0, n;
|
|
9302
9334
|
const { iScale: o } = i, { min: a, max: r, minDefined: l, maxDefined: c } = o.getUserBounds();
|
|
9303
|
-
return l && (s = tt(
|
|
9335
|
+
return l && (s = tt(Ht(t, o.axis, a).lo, 0, e - 1)), c ? n = tt(Ht(t, o.axis, r).hi + 1, s, e) - s : n = e - s, {
|
|
9304
9336
|
start: s,
|
|
9305
9337
|
count: n
|
|
9306
9338
|
};
|
|
@@ -9544,7 +9576,7 @@ function Rd(i, t, e) {
|
|
|
9544
9576
|
let r = !1, l = !1;
|
|
9545
9577
|
for (let c = 0; c < o.length; c++) {
|
|
9546
9578
|
const A = o[c], h = a[A.start][e], d = a[A.end][e];
|
|
9547
|
-
if (
|
|
9579
|
+
if (Nt(n, h, d)) {
|
|
9548
9580
|
r = n === h, l = n === d;
|
|
9549
9581
|
break;
|
|
9550
9582
|
}
|
|
@@ -9841,7 +9873,7 @@ class uo extends xt {
|
|
|
9841
9873
|
}, Q = l.xPlus(v, u / 2), z = y + d;
|
|
9842
9874
|
na(n, k, Q, z, a.pointStyleWidth && u);
|
|
9843
9875
|
} else {
|
|
9844
|
-
const k = y + Math.max((h - f) / 2, 0), Q = l.leftForLtr(v, u), z =
|
|
9876
|
+
const k = y + Math.max((h - f) / 2, 0), Q = l.leftForLtr(v, u), z = pe(C.borderRadius);
|
|
9845
9877
|
n.beginPath(), Object.values(z).some((it) => it !== 0) ? ri(n, {
|
|
9846
9878
|
x: Q,
|
|
9847
9879
|
y: k,
|
|
@@ -9852,7 +9884,7 @@ class uo extends xt {
|
|
|
9852
9884
|
}
|
|
9853
9885
|
n.restore();
|
|
9854
9886
|
}, m = function(v, y, C) {
|
|
9855
|
-
|
|
9887
|
+
be(n, C.text, v, y + p / 2, c, {
|
|
9856
9888
|
strikethrough: C.hidden,
|
|
9857
9889
|
textAlign: l.textAlign(C.textAlign)
|
|
9858
9890
|
});
|
|
@@ -9895,7 +9927,7 @@ class uo extends xt {
|
|
|
9895
9927
|
A = c + nt(t.align, this.top, this.bottom - u - t.labels.padding - this._computeTitleHeight());
|
|
9896
9928
|
}
|
|
9897
9929
|
const g = nt(r, h, h + d);
|
|
9898
|
-
a.textAlign = o.textAlign(Ns(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string,
|
|
9930
|
+
a.textAlign = o.textAlign(Ns(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, be(a, e.text, g, A, s);
|
|
9899
9931
|
}
|
|
9900
9932
|
_computeTitleHeight() {
|
|
9901
9933
|
const t = this.options.title, e = _(t.font), s = at(t.padding);
|
|
@@ -9903,9 +9935,9 @@ class uo extends xt {
|
|
|
9903
9935
|
}
|
|
9904
9936
|
_getLegendItemAt(t, e) {
|
|
9905
9937
|
let s, n, o;
|
|
9906
|
-
if (
|
|
9938
|
+
if (Nt(t, this.left, this.right) && Nt(e, this.top, this.bottom)) {
|
|
9907
9939
|
for (o = this.legendHitBoxes, s = 0; s < o.length; ++s)
|
|
9908
|
-
if (n = o[s],
|
|
9940
|
+
if (n = o[s], Nt(t, n.left, n.left + n.width) && Nt(e, n.top, n.top + n.height))
|
|
9909
9941
|
return this.legendItems[s];
|
|
9910
9942
|
}
|
|
9911
9943
|
return null;
|
|
@@ -10074,7 +10106,7 @@ class qs extends xt {
|
|
|
10074
10106
|
if (!e.display)
|
|
10075
10107
|
return;
|
|
10076
10108
|
const s = _(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: c } = this._drawArgs(o);
|
|
10077
|
-
|
|
10109
|
+
be(t, e.text, 0, 0, s, {
|
|
10078
10110
|
color: e.color,
|
|
10079
10111
|
maxWidth: l,
|
|
10080
10112
|
rotation: c,
|
|
@@ -10210,7 +10242,7 @@ const Ke = {
|
|
|
10210
10242
|
function Ct(i, t) {
|
|
10211
10243
|
return t && (F(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
|
|
10212
10244
|
}
|
|
10213
|
-
function
|
|
10245
|
+
function St(i) {
|
|
10214
10246
|
return (typeof i == "string" || i instanceof String) && i.indexOf(`
|
|
10215
10247
|
`) > -1 ? i.split(`
|
|
10216
10248
|
`) : i;
|
|
@@ -10278,7 +10310,7 @@ function cg(i, t, e) {
|
|
|
10278
10310
|
return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
|
|
10279
10311
|
}
|
|
10280
10312
|
function wo(i, t, e, s) {
|
|
10281
|
-
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: A, topRight: h, bottomLeft: d, bottomRight: g } =
|
|
10313
|
+
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, c = n + o, { topLeft: A, topRight: h, bottomLeft: d, bottomRight: g } = pe(a);
|
|
10282
10314
|
let u = lg(t, r);
|
|
10283
10315
|
const f = cg(t, l, c);
|
|
10284
10316
|
return l === "center" ? r === "left" ? u += c : r === "right" && (u -= c) : r === "left" ? u -= Math.max(A, d) + n : r === "right" && (u += Math.max(h, g) + n), {
|
|
@@ -10291,7 +10323,7 @@ function Ei(i, t, e) {
|
|
|
10291
10323
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
|
|
10292
10324
|
}
|
|
10293
10325
|
function mo(i) {
|
|
10294
|
-
return Ct([],
|
|
10326
|
+
return Ct([], St(i));
|
|
10295
10327
|
}
|
|
10296
10328
|
function Ag(i, t, e) {
|
|
10297
10329
|
return se(i, {
|
|
@@ -10305,7 +10337,7 @@ function bo(i, t) {
|
|
|
10305
10337
|
return e ? i.override(e) : i;
|
|
10306
10338
|
}
|
|
10307
10339
|
const Ta = {
|
|
10308
|
-
beforeTitle:
|
|
10340
|
+
beforeTitle: Lt,
|
|
10309
10341
|
title(i) {
|
|
10310
10342
|
if (i.length > 0) {
|
|
10311
10343
|
const t = i[0], e = t.chart.data.labels, s = e ? e.length : 0;
|
|
@@ -10318,9 +10350,9 @@ const Ta = {
|
|
|
10318
10350
|
}
|
|
10319
10351
|
return "";
|
|
10320
10352
|
},
|
|
10321
|
-
afterTitle:
|
|
10322
|
-
beforeBody:
|
|
10323
|
-
beforeLabel:
|
|
10353
|
+
afterTitle: Lt,
|
|
10354
|
+
beforeBody: Lt,
|
|
10355
|
+
beforeLabel: Lt,
|
|
10324
10356
|
label(i) {
|
|
10325
10357
|
if (this && this.options && this.options.mode === "dataset")
|
|
10326
10358
|
return i.label + ": " + i.formattedValue || i.formattedValue;
|
|
@@ -10350,11 +10382,11 @@ const Ta = {
|
|
|
10350
10382
|
rotation: e.rotation
|
|
10351
10383
|
};
|
|
10352
10384
|
},
|
|
10353
|
-
afterLabel:
|
|
10354
|
-
afterBody:
|
|
10355
|
-
beforeFooter:
|
|
10356
|
-
footer:
|
|
10357
|
-
afterFooter:
|
|
10385
|
+
afterLabel: Lt,
|
|
10386
|
+
afterBody: Lt,
|
|
10387
|
+
beforeFooter: Lt,
|
|
10388
|
+
footer: Lt,
|
|
10389
|
+
afterFooter: Lt
|
|
10358
10390
|
};
|
|
10359
10391
|
function At(i, t, e, s) {
|
|
10360
10392
|
const n = i[t].call(e, s);
|
|
@@ -10380,7 +10412,7 @@ class Cs extends xt {
|
|
|
10380
10412
|
getTitle(t, e) {
|
|
10381
10413
|
const { callbacks: s } = e, n = At(s, "beforeTitle", this, t), o = At(s, "title", this, t), a = At(s, "afterTitle", this, t);
|
|
10382
10414
|
let r = [];
|
|
10383
|
-
return r = Ct(r,
|
|
10415
|
+
return r = Ct(r, St(n)), r = Ct(r, St(o)), r = Ct(r, St(a)), r;
|
|
10384
10416
|
}
|
|
10385
10417
|
getBeforeBody(t, e) {
|
|
10386
10418
|
return mo(At(e.callbacks, "beforeBody", this, t));
|
|
@@ -10393,7 +10425,7 @@ class Cs extends xt {
|
|
|
10393
10425
|
lines: [],
|
|
10394
10426
|
after: []
|
|
10395
10427
|
}, r = bo(s, o);
|
|
10396
|
-
Ct(a.before,
|
|
10428
|
+
Ct(a.before, St(At(r, "beforeLabel", this, o))), Ct(a.lines, At(r, "label", this, o)), Ct(a.after, St(At(r, "afterLabel", this, o))), n.push(a);
|
|
10397
10429
|
}), n;
|
|
10398
10430
|
}
|
|
10399
10431
|
getAfterBody(t, e) {
|
|
@@ -10402,7 +10434,7 @@ class Cs extends xt {
|
|
|
10402
10434
|
getFooter(t, e) {
|
|
10403
10435
|
const { callbacks: s } = e, n = At(s, "beforeFooter", this, t), o = At(s, "footer", this, t), a = At(s, "afterFooter", this, t);
|
|
10404
10436
|
let r = [];
|
|
10405
|
-
return r = Ct(r,
|
|
10437
|
+
return r = Ct(r, St(n)), r = Ct(r, St(o)), r = Ct(r, St(a)), r;
|
|
10406
10438
|
}
|
|
10407
10439
|
_createItems(t) {
|
|
10408
10440
|
const e = this._active, s = this.chart.data, n = [], o = [], a = [];
|
|
@@ -10446,7 +10478,7 @@ class Cs extends xt {
|
|
|
10446
10478
|
e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
|
|
10447
10479
|
}
|
|
10448
10480
|
getCaretPosition(t, e, s) {
|
|
10449
|
-
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: A, bottomRight: h } =
|
|
10481
|
+
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: c, bottomLeft: A, bottomRight: h } = pe(r), { x: d, y: g } = t, { width: u, height: f } = e;
|
|
10450
10482
|
let p, w, m, G, x, D;
|
|
10451
10483
|
return o === "center" ? (x = g + f / 2, n === "left" ? (p = d, w = p - a, G = x + a, D = x - a) : (p = d + u, w = p + a, G = x - a, D = x + a), m = p) : (n === "left" ? w = d + Math.max(l, A) + a : n === "right" ? w = d + u - Math.max(c, h) - a : w = this.caretX, o === "top" ? (G = g, x = G - a, p = w - a, m = w + a) : (G = g + f, x = G + a, p = w + a, m = w - a), D = G), {
|
|
10452
10484
|
x1: p,
|
|
@@ -10478,7 +10510,7 @@ class Cs extends xt {
|
|
|
10478
10510
|
t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, Ds(t, f, p, w), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, Ds(t, f, p, w);
|
|
10479
10511
|
} else {
|
|
10480
10512
|
t.lineWidth = P(a.borderWidth) ? Math.max(...Object.values(a.borderWidth)) : a.borderWidth || 1, t.strokeStyle = a.borderColor, t.setLineDash(a.borderDash || []), t.lineDashOffset = a.borderDashOffset || 0;
|
|
10481
|
-
const f = n.leftForLtr(d, c), p = n.leftForLtr(n.xPlus(d, 1), c - 2), w =
|
|
10513
|
+
const f = n.leftForLtr(d, c), p = n.leftForLtr(n.xPlus(d, 1), c - 2), w = pe(a.borderRadius);
|
|
10482
10514
|
Object.values(w).some((m) => m !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, ri(t, {
|
|
10483
10515
|
x: f,
|
|
10484
10516
|
y: u,
|
|
@@ -10519,7 +10551,7 @@ class Cs extends xt {
|
|
|
10519
10551
|
}
|
|
10520
10552
|
}
|
|
10521
10553
|
drawBackground(t, e, s, n) {
|
|
10522
|
-
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: A } = s, { topLeft: h, topRight: d, bottomLeft: g, bottomRight: u } =
|
|
10554
|
+
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: c, height: A } = s, { topLeft: h, topRight: d, bottomLeft: g, bottomRight: u } = pe(n.cornerRadius);
|
|
10523
10555
|
e.fillStyle = n.backgroundColor, e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.beginPath(), e.moveTo(r + h, l), a === "top" && this.drawCaret(t, e, s, n), e.lineTo(r + c - d, l), e.quadraticCurveTo(r + c, l, r + c, l + d), a === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(r + c, l + A - u), e.quadraticCurveTo(r + c, l + A, r + c - u, l + A), a === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(r + g, l + A), e.quadraticCurveTo(r, l + A, r, l + A - g), a === "center" && o === "left" && this.drawCaret(t, e, s, n), e.lineTo(r, l + h), e.quadraticCurveTo(r, l, r + h, l), e.closePath(), e.fill(), n.borderWidth > 0 && e.stroke();
|
|
10524
10556
|
}
|
|
10525
10557
|
_updateAnimationTarget(t) {
|
|
@@ -10734,7 +10766,7 @@ function Mo(i) {
|
|
|
10734
10766
|
const t = this.getLabels();
|
|
10735
10767
|
return i >= 0 && i < t.length ? t[i] : i;
|
|
10736
10768
|
}
|
|
10737
|
-
class Is extends
|
|
10769
|
+
class Is extends Ge {
|
|
10738
10770
|
constructor(t) {
|
|
10739
10771
|
super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
|
|
10740
10772
|
}
|
|
@@ -10830,7 +10862,7 @@ function Do(i, t, { horizontal: e, minRotation: s }) {
|
|
|
10830
10862
|
const n = bt(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, a = 0.75 * t * ("" + i).length;
|
|
10831
10863
|
return Math.min(t / o, a);
|
|
10832
10864
|
}
|
|
10833
|
-
class Ji extends
|
|
10865
|
+
class Ji extends Ge {
|
|
10834
10866
|
constructor(t) {
|
|
10835
10867
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
10836
10868
|
}
|
|
@@ -10912,7 +10944,7 @@ Y(Es, "id", "linear"), Y(Es, "defaults", {
|
|
|
10912
10944
|
callback: _i.formatters.numeric
|
|
10913
10945
|
}
|
|
10914
10946
|
});
|
|
10915
|
-
const ci = (i) => Math.floor(Xt(i)),
|
|
10947
|
+
const ci = (i) => Math.floor(Xt(i)), de = (i, t) => Math.pow(10, ci(i) + t);
|
|
10916
10948
|
function Bo(i) {
|
|
10917
10949
|
return i / Math.pow(10, ci(i)) === 1;
|
|
10918
10950
|
}
|
|
@@ -10948,7 +10980,7 @@ function mg(i, { min: t, max: e }) {
|
|
|
10948
10980
|
significand: h
|
|
10949
10981
|
}), s;
|
|
10950
10982
|
}
|
|
10951
|
-
class ks extends
|
|
10983
|
+
class ks extends Ge {
|
|
10952
10984
|
constructor(t) {
|
|
10953
10985
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._valueRange = 0;
|
|
10954
10986
|
}
|
|
@@ -10965,13 +10997,13 @@ class ks extends xe {
|
|
|
10965
10997
|
}
|
|
10966
10998
|
determineDataLimits() {
|
|
10967
10999
|
const { min: t, max: e } = this.getMinMax(!0);
|
|
10968
|
-
this.min = U(t) ? Math.max(0, t) : null, this.max = U(e) ? Math.max(0, e) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !U(this._userMin) && (this.min = t ===
|
|
11000
|
+
this.min = U(t) ? Math.max(0, t) : null, this.max = U(e) ? Math.max(0, e) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !U(this._userMin) && (this.min = t === de(this.min, 0) ? de(this.min, -1) : de(this.min, 0)), this.handleTickRangeOptions();
|
|
10969
11001
|
}
|
|
10970
11002
|
handleTickRangeOptions() {
|
|
10971
11003
|
const { minDefined: t, maxDefined: e } = this.getUserBounds();
|
|
10972
11004
|
let s = this.min, n = this.max;
|
|
10973
11005
|
const o = (r) => s = t ? s : r, a = (r) => n = e ? n : r;
|
|
10974
|
-
s === n && (s <= 0 ? (o(1), a(10)) : (o(
|
|
11006
|
+
s === n && (s <= 0 ? (o(1), a(10)) : (o(de(s, -1)), a(de(n, 1)))), s <= 0 && o(de(n, -1)), n <= 0 && a(de(s, 1)), this.min = s, this.max = n;
|
|
10975
11007
|
}
|
|
10976
11008
|
buildTicks() {
|
|
10977
11009
|
const t = this.options, e = {
|
|
@@ -11070,16 +11102,16 @@ function xg(i, t) {
|
|
|
11070
11102
|
if (!t)
|
|
11071
11103
|
return !0;
|
|
11072
11104
|
const { left: e, top: s, right: n, bottom: o } = i;
|
|
11073
|
-
return !(
|
|
11105
|
+
return !(Vt({
|
|
11074
11106
|
x: e,
|
|
11075
11107
|
y: s
|
|
11076
|
-
}, t) ||
|
|
11108
|
+
}, t) || Vt({
|
|
11077
11109
|
x: e,
|
|
11078
11110
|
y: o
|
|
11079
|
-
}, t) ||
|
|
11111
|
+
}, t) || Vt({
|
|
11080
11112
|
x: n,
|
|
11081
11113
|
y: s
|
|
11082
|
-
}, t) ||
|
|
11114
|
+
}, t) || Vt({
|
|
11083
11115
|
x: n,
|
|
11084
11116
|
y: o
|
|
11085
11117
|
}, t));
|
|
@@ -11109,7 +11141,7 @@ function yg(i, t, e) {
|
|
|
11109
11141
|
function Cg(i, t, e) {
|
|
11110
11142
|
const { left: s, top: n, right: o, bottom: a } = e, { backdropColor: r } = t;
|
|
11111
11143
|
if (!L(r)) {
|
|
11112
|
-
const l =
|
|
11144
|
+
const l = pe(t.borderRadius), c = at(t.backdropPadding);
|
|
11113
11145
|
i.fillStyle = r;
|
|
11114
11146
|
const A = s - c.left, h = n - c.top, d = o - s + c.width, g = a - n + c.height;
|
|
11115
11147
|
Object.values(l).some((u) => u !== 0) ? (i.beginPath(), ri(i, {
|
|
@@ -11130,7 +11162,7 @@ function Ig(i, t) {
|
|
|
11130
11162
|
const a = s.setContext(i.getPointLabelContext(n));
|
|
11131
11163
|
Cg(e, a, o);
|
|
11132
11164
|
const r = _(a.font), { x: l, y: c, textAlign: A } = o;
|
|
11133
|
-
|
|
11165
|
+
be(e, i._pointLabels[n], l, c + r.lineHeight / 2, r, {
|
|
11134
11166
|
color: a.color,
|
|
11135
11167
|
textAlign: A,
|
|
11136
11168
|
textBaseline: "middle"
|
|
@@ -11277,7 +11309,7 @@ class Xe extends Ji {
|
|
|
11277
11309
|
const h = at(c.backdropPadding);
|
|
11278
11310
|
t.fillRect(-a / 2 - h.left, -o - A.size / 2 - h.top, a + h.width, A.size + h.height);
|
|
11279
11311
|
}
|
|
11280
|
-
|
|
11312
|
+
be(t, r.label, 0, -o, A, {
|
|
11281
11313
|
color: c.color,
|
|
11282
11314
|
strokeColor: c.textStrokeColor,
|
|
11283
11315
|
strokeWidth: c.textStrokeWidth
|
|
@@ -11430,7 +11462,7 @@ function Io(i, t, e) {
|
|
|
11430
11462
|
});
|
|
11431
11463
|
return o === 0 || !e ? s : zg(i, s, n, e);
|
|
11432
11464
|
}
|
|
11433
|
-
class Ai extends
|
|
11465
|
+
class Ai extends Ge {
|
|
11434
11466
|
constructor(t) {
|
|
11435
11467
|
super(t), this._cache = {
|
|
11436
11468
|
data: [],
|
|
@@ -11595,7 +11627,7 @@ Y(Ai, "id", "time"), Y(Ai, "defaults", {
|
|
|
11595
11627
|
});
|
|
11596
11628
|
function ki(i, t, e) {
|
|
11597
11629
|
let s = 0, n = i.length - 1, o, a, r, l;
|
|
11598
|
-
e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } =
|
|
11630
|
+
e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Ht(i, "pos", t)), { pos: o, time: r } = i[s], { pos: a, time: l } = i[n]) : (t >= i[s].time && t <= i[n].time && ({ lo: s, hi: n } = Ht(i, "time", t)), { time: o, pos: r } = i[s], { time: a, pos: l } = i[n]);
|
|
11599
11631
|
const c = a - o;
|
|
11600
11632
|
return c ? r + (l - r) * (t - o) / c : r;
|
|
11601
11633
|
}
|
|
@@ -11666,7 +11698,7 @@ const Og = [
|
|
|
11666
11698
|
dg,
|
|
11667
11699
|
Lg
|
|
11668
11700
|
];
|
|
11669
|
-
|
|
11701
|
+
jt.register(...Og);
|
|
11670
11702
|
var Sg = Object.defineProperty, Tg = Object.getOwnPropertyDescriptor, Ut = (i, t, e, s) => {
|
|
11671
11703
|
for (var n = s > 1 ? void 0 : s ? Tg(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
11672
11704
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
@@ -11675,7 +11707,7 @@ var Sg = Object.defineProperty, Tg = Object.getOwnPropertyDescriptor, Ut = (i, t
|
|
|
11675
11707
|
let Gt = class extends K {
|
|
11676
11708
|
constructor() {
|
|
11677
11709
|
super(...arguments), this.chartTitle = "", this.chartType = "", this.chartLabels = [], this.chartDataSets = [], this.chartOptions = {}, this.isLoading = 0, this.createChart = () => {
|
|
11678
|
-
this._chart = new
|
|
11710
|
+
this._chart = new jt(
|
|
11679
11711
|
this._chartCanvas,
|
|
11680
11712
|
{
|
|
11681
11713
|
type: this.chartType,
|
|
@@ -11728,7 +11760,7 @@ Ut([
|
|
|
11728
11760
|
M({ attribute: "is-loading", type: Number })
|
|
11729
11761
|
], Gt.prototype, "isLoading", 2);
|
|
11730
11762
|
Ut([
|
|
11731
|
-
|
|
11763
|
+
zt("#chart-canvas")
|
|
11732
11764
|
], Gt.prototype, "_chartCanvas", 2);
|
|
11733
11765
|
Ut([
|
|
11734
11766
|
j()
|
|
@@ -12195,12 +12227,12 @@ let T = class extends K {
|
|
|
12195
12227
|
<tr>${this.generateTableHeadColumns()}</tr>
|
|
12196
12228
|
</thead>
|
|
12197
12229
|
<tbody>
|
|
12198
|
-
${this.dataSource.length > 0 ?
|
|
12230
|
+
${this.dataSource.length > 0 ? Rt(
|
|
12199
12231
|
this.withPagination,
|
|
12200
12232
|
() => this._paginatedArray.map((i) => b`
|
|
12201
12233
|
<tr>
|
|
12202
12234
|
${this.generateDataColumns(i)}
|
|
12203
|
-
${
|
|
12235
|
+
${Rt(
|
|
12204
12236
|
this.rowActions.length > 0,
|
|
12205
12237
|
() => b`
|
|
12206
12238
|
<td>
|
|
@@ -12230,7 +12262,7 @@ let T = class extends K {
|
|
|
12230
12262
|
() => this.dataSource.map((i) => b`
|
|
12231
12263
|
<tr>
|
|
12232
12264
|
${this.generateDataColumns(i)}
|
|
12233
|
-
${
|
|
12265
|
+
${Rt(
|
|
12234
12266
|
this.rowActions.length > 0,
|
|
12235
12267
|
() => b`
|
|
12236
12268
|
<td>
|
|
@@ -12269,7 +12301,7 @@ let T = class extends K {
|
|
|
12269
12301
|
</table>
|
|
12270
12302
|
</div>
|
|
12271
12303
|
<div class='card__footer'>
|
|
12272
|
-
${
|
|
12304
|
+
${Rt(
|
|
12273
12305
|
this.withPagination,
|
|
12274
12306
|
() => b`
|
|
12275
12307
|
<div class='pagination-control'>
|
|
@@ -12374,7 +12406,7 @@ Z([
|
|
|
12374
12406
|
j()
|
|
12375
12407
|
], T.prototype, "_dataKey", 2);
|
|
12376
12408
|
Z([
|
|
12377
|
-
|
|
12409
|
+
zt(".current-page-input")
|
|
12378
12410
|
], T.prototype, "_targetInput", 2);
|
|
12379
12411
|
Z([
|
|
12380
12412
|
j()
|
|
@@ -12919,7 +12951,7 @@ oe([
|
|
|
12919
12951
|
M({ type: Boolean, attribute: "allow-multiple-uploads" })
|
|
12920
12952
|
], Qt.prototype, "allowMultipelUploads", 2);
|
|
12921
12953
|
oe([
|
|
12922
|
-
|
|
12954
|
+
zt("#file-input")
|
|
12923
12955
|
], Qt.prototype, "_fileInput", 2);
|
|
12924
12956
|
Qt = oe([
|
|
12925
12957
|
X("genus-file-upload")
|
|
@@ -12981,7 +13013,7 @@ var Yu = Object.defineProperty, vu = Object.getOwnPropertyDescriptor, ui = (i, t
|
|
|
12981
13013
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
12982
13014
|
return s && n && Yu(t, e, n), n;
|
|
12983
13015
|
};
|
|
12984
|
-
let
|
|
13016
|
+
let Me = class extends K {
|
|
12985
13017
|
constructor() {
|
|
12986
13018
|
super(...arguments), this.toggleSwitchValues = [], this.withoutToggleText = !1, this.getInputValue = (i) => {
|
|
12987
13019
|
this._toggleCheckBox === null && (this._toggleCheckBox = i.target), this._toggleCheckBox.checked ? this._switchValue = this.toggleSwitchValues[1] : this._switchValue = this.toggleSwitchValues[0], this.dispatchEvent(new CustomEvent("toggled", { detail: this._switchValue }));
|
|
@@ -13006,22 +13038,22 @@ let be = class extends K {
|
|
|
13006
13038
|
`;
|
|
13007
13039
|
}
|
|
13008
13040
|
};
|
|
13009
|
-
|
|
13041
|
+
Me.styles = [Du, Bu, xu, Gu];
|
|
13010
13042
|
ui([
|
|
13011
13043
|
M({ attribute: "toggle-switch-values", type: Array })
|
|
13012
|
-
],
|
|
13044
|
+
], Me.prototype, "toggleSwitchValues", 2);
|
|
13013
13045
|
ui([
|
|
13014
13046
|
M({ attribute: "without-toggle-text", type: Boolean })
|
|
13015
|
-
],
|
|
13047
|
+
], Me.prototype, "withoutToggleText", 2);
|
|
13016
13048
|
ui([
|
|
13017
13049
|
j()
|
|
13018
|
-
],
|
|
13050
|
+
], Me.prototype, "_toggleCheckBox", 2);
|
|
13019
13051
|
ui([
|
|
13020
13052
|
j()
|
|
13021
|
-
],
|
|
13022
|
-
|
|
13053
|
+
], Me.prototype, "_switchValue", 2);
|
|
13054
|
+
Me = ui([
|
|
13023
13055
|
X("genus-toggle-switch")
|
|
13024
|
-
],
|
|
13056
|
+
], Me);
|
|
13025
13057
|
const yu = B`
|
|
13026
13058
|
.input-control
|
|
13027
13059
|
{
|
|
@@ -13185,13 +13217,13 @@ yt([
|
|
|
13185
13217
|
M({ attribute: "slider-max-value", type: Number })
|
|
13186
13218
|
], pt.prototype, "sliderMaxValue", 2);
|
|
13187
13219
|
yt([
|
|
13188
|
-
|
|
13220
|
+
zt(".slider-track")
|
|
13189
13221
|
], pt.prototype, "_sliderTrack", 2);
|
|
13190
13222
|
yt([
|
|
13191
|
-
|
|
13223
|
+
zt(".min-range-slider")
|
|
13192
13224
|
], pt.prototype, "_minRangeSlider", 2);
|
|
13193
13225
|
yt([
|
|
13194
|
-
|
|
13226
|
+
zt(".max-range-slider")
|
|
13195
13227
|
], pt.prototype, "_maxRangeSlider", 2);
|
|
13196
13228
|
yt([
|
|
13197
13229
|
j()
|
|
@@ -13253,12 +13285,12 @@ const Lu = B`
|
|
|
13253
13285
|
margin-top: var(--navigation-margin-top, 0.625rem);
|
|
13254
13286
|
}
|
|
13255
13287
|
`;
|
|
13256
|
-
var Tu = Object.defineProperty, ju = Object.getOwnPropertyDescriptor,
|
|
13288
|
+
var Tu = Object.defineProperty, ju = Object.getOwnPropertyDescriptor, ae = (i, t, e, s) => {
|
|
13257
13289
|
for (var n = s > 1 ? void 0 : s ? ju(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
13258
13290
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
13259
13291
|
return s && n && Tu(t, e, n), n;
|
|
13260
13292
|
};
|
|
13261
|
-
let
|
|
13293
|
+
let Pt = class extends K {
|
|
13262
13294
|
constructor() {
|
|
13263
13295
|
super(...arguments), this.autoplay = !1, this.autoplayInterval = 5e3, this._currentSlide = 0, this._slideCount = 0, this.autoplayTimer = null, this.startX = null, this.moveX = null, this.handleTouchStart = (i) => {
|
|
13264
13296
|
this.startX = i.touches[0].pageX;
|
|
@@ -13282,7 +13314,7 @@ let Wt = class extends K {
|
|
|
13282
13314
|
this.addEventListener("touchstart", this.handleTouchStart), this.addEventListener("touchmove", this.handleTouchMove), this.addEventListener("touchend", this.handleTouchEnd), this._sliderContainer.addEventListener("scroll", this.handleScroll);
|
|
13283
13315
|
}
|
|
13284
13316
|
goToSlide(i) {
|
|
13285
|
-
this._currentSlide = i
|
|
13317
|
+
this._currentSlide = i, this._sliderContent.style.transform = `translateX(-${this._currentSlide * 100}%)`;
|
|
13286
13318
|
}
|
|
13287
13319
|
nextSlide() {
|
|
13288
13320
|
this._currentSlide = (this._currentSlide + 1) % this._slideCount, this.updateSlider();
|
|
@@ -13326,28 +13358,31 @@ let Wt = class extends K {
|
|
|
13326
13358
|
`;
|
|
13327
13359
|
}
|
|
13328
13360
|
};
|
|
13329
|
-
|
|
13330
|
-
|
|
13361
|
+
Pt.styles = [Lu, Ou, Su];
|
|
13362
|
+
ae([
|
|
13331
13363
|
M({ type: Boolean, attribute: "auto-play" })
|
|
13332
|
-
],
|
|
13333
|
-
|
|
13364
|
+
], Pt.prototype, "autoplay", 2);
|
|
13365
|
+
ae([
|
|
13334
13366
|
M({ type: Number, attribute: "auto-play-interval" })
|
|
13335
|
-
],
|
|
13336
|
-
|
|
13367
|
+
], Pt.prototype, "autoplayInterval", 2);
|
|
13368
|
+
ae([
|
|
13337
13369
|
j()
|
|
13338
|
-
],
|
|
13339
|
-
|
|
13370
|
+
], Pt.prototype, "_currentSlide", 2);
|
|
13371
|
+
ae([
|
|
13340
13372
|
j()
|
|
13341
|
-
],
|
|
13342
|
-
|
|
13343
|
-
|
|
13344
|
-
],
|
|
13345
|
-
|
|
13346
|
-
|
|
13347
|
-
],
|
|
13348
|
-
|
|
13373
|
+
], Pt.prototype, "_slideCount", 2);
|
|
13374
|
+
ae([
|
|
13375
|
+
zt("slot")
|
|
13376
|
+
], Pt.prototype, "_slotElement", 2);
|
|
13377
|
+
ae([
|
|
13378
|
+
zt(".slider-container")
|
|
13379
|
+
], Pt.prototype, "_sliderContainer", 2);
|
|
13380
|
+
ae([
|
|
13381
|
+
zt(".slider-content")
|
|
13382
|
+
], Pt.prototype, "_sliderContent", 2);
|
|
13383
|
+
Pt = ae([
|
|
13349
13384
|
X("genus-slider")
|
|
13350
|
-
],
|
|
13385
|
+
], Pt);
|
|
13351
13386
|
const Ru = () => {
|
|
13352
13387
|
let i = `
|
|
13353
13388
|
@font-face
|
|
@@ -13402,7 +13437,7 @@ export {
|
|
|
13402
13437
|
Gt as GenusChart,
|
|
13403
13438
|
ke as GenusCheckBox,
|
|
13404
13439
|
Ku as GenusCheckBoxGroup,
|
|
13405
|
-
|
|
13440
|
+
Zt as GenusDataCard,
|
|
13406
13441
|
kt as GenusDataListItem,
|
|
13407
13442
|
Ju as GenusDataTable,
|
|
13408
13443
|
et as GenusDatePicker,
|
|
@@ -13410,11 +13445,11 @@ export {
|
|
|
13410
13445
|
Qt as GenusFileUpload,
|
|
13411
13446
|
Dt as GenusRadioBtnGroup,
|
|
13412
13447
|
pt as GenusRangeSlider,
|
|
13413
|
-
|
|
13448
|
+
Pt as GenusSlider,
|
|
13414
13449
|
Zu as GenusTabs,
|
|
13415
|
-
|
|
13450
|
+
Ft as GenusTextArea,
|
|
13416
13451
|
$ as GenusTextBox,
|
|
13417
13452
|
Le as GenusToastMessage,
|
|
13418
|
-
|
|
13453
|
+
Me as GenusToggleSwitch,
|
|
13419
13454
|
Uu as GenusWizard
|
|
13420
13455
|
};
|