genus-ui 2.6.29 → 2.10.30
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
CHANGED
|
@@ -2,8 +2,8 @@ var Ta = Object.defineProperty;
|
|
|
2
2
|
var Ra = (i, t, e) => t in i ? Ta(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var Y = (i, t, e) => (Ra(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import { css as B, LitElement as J, html as b } from "lit";
|
|
5
|
-
import { property as M, state as F, customElement as q, queryAssignedElements as ko, query as
|
|
6
|
-
import { when as
|
|
5
|
+
import { property as M, state as F, customElement as q, queryAssignedElements as ko, query as we } from "lit/decorators.js";
|
|
6
|
+
import { when as St } from "lit/directives/when.js";
|
|
7
7
|
import { unsafeHTML as Us } from "lit/directives/unsafe-html.js";
|
|
8
8
|
const ja = B`
|
|
9
9
|
* { box-sizing: border-box; }
|
|
@@ -68,12 +68,12 @@ const ja = B`
|
|
|
68
68
|
font-size: var(--textarea-label-font-size, 1rem);
|
|
69
69
|
}
|
|
70
70
|
`;
|
|
71
|
-
var Wa = Object.defineProperty, Za = Object.getOwnPropertyDescriptor,
|
|
71
|
+
var Wa = Object.defineProperty, Za = Object.getOwnPropertyDescriptor, me = (i, t, e, s) => {
|
|
72
72
|
for (var n = s > 1 ? void 0 : s ? Za(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 && Wa(t, e, n), n;
|
|
75
75
|
};
|
|
76
|
-
let
|
|
76
|
+
let Vt = class extends J {
|
|
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 jt = class extends J {
|
|
|
83
83
|
this.inputValue === "" && this._targetInput != null && (this._targetInput.value = "");
|
|
84
84
|
}
|
|
85
85
|
render() {
|
|
86
|
-
return
|
|
86
|
+
return St(
|
|
87
87
|
this.withoutLabel,
|
|
88
88
|
() => b`
|
|
89
89
|
<div class='form-field form-field--without-label'>
|
|
@@ -99,28 +99,28 @@ let jt = class extends J {
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
};
|
|
102
|
-
|
|
103
|
-
|
|
102
|
+
Vt.styles = [ja, Va, Ha, Na, Fa];
|
|
103
|
+
me([
|
|
104
104
|
M({ attribute: "label-text" })
|
|
105
|
-
],
|
|
106
|
-
|
|
105
|
+
], Vt.prototype, "labelText", 2);
|
|
106
|
+
me([
|
|
107
107
|
M({ attribute: "input-value" })
|
|
108
|
-
],
|
|
109
|
-
|
|
108
|
+
], Vt.prototype, "inputValue", 2);
|
|
109
|
+
me([
|
|
110
110
|
M({ attribute: "without-label", type: Boolean })
|
|
111
|
-
],
|
|
112
|
-
|
|
111
|
+
], Vt.prototype, "withoutLabel", 2);
|
|
112
|
+
me([
|
|
113
113
|
M({ attribute: "placeholder-text" })
|
|
114
|
-
],
|
|
115
|
-
|
|
114
|
+
], Vt.prototype, "placeholderText", 2);
|
|
115
|
+
me([
|
|
116
116
|
M({ attribute: "read-only", type: Boolean })
|
|
117
|
-
],
|
|
118
|
-
|
|
117
|
+
], Vt.prototype, "readOnly", 2);
|
|
118
|
+
me([
|
|
119
119
|
F()
|
|
120
|
-
],
|
|
121
|
-
|
|
120
|
+
], Vt.prototype, "_targetInput", 2);
|
|
121
|
+
Vt = me([
|
|
122
122
|
q("genus-textarea")
|
|
123
|
-
],
|
|
123
|
+
], Vt);
|
|
124
124
|
const Ka = B`
|
|
125
125
|
input[type='text'], input[type='email'], input[type='password'], input[type='number']
|
|
126
126
|
{
|
|
@@ -856,7 +856,7 @@ let et = class extends J {
|
|
|
856
856
|
this.inputValue === "" && this._targetInput != null && (this._targetInput.value = ""), this.inputValue && this._targetInput != null && (this._targetInput.value = this.inputValue);
|
|
857
857
|
}
|
|
858
858
|
render() {
|
|
859
|
-
return
|
|
859
|
+
return St(
|
|
860
860
|
this.withoutLabel,
|
|
861
861
|
() => b`
|
|
862
862
|
<div class='date-picker'>
|
|
@@ -1086,7 +1086,7 @@ var Dr = Object.defineProperty, Br = Object.getOwnPropertyDescriptor, Oe = (i, t
|
|
|
1086
1086
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1087
1087
|
return s && n && Dr(t, e, n), n;
|
|
1088
1088
|
};
|
|
1089
|
-
let
|
|
1089
|
+
let Ht = class extends J {
|
|
1090
1090
|
constructor() {
|
|
1091
1091
|
super(...arguments), this.tabNames = [], this.withBorderBottom = !1, this._numberOfTabs = 0, this._tabsTemplate = [], this.hideCurrentContent = () => {
|
|
1092
1092
|
this._tabContents.forEach((i) => {
|
|
@@ -1097,15 +1097,15 @@ let Vt = class extends J {
|
|
|
1097
1097
|
}, this.generateTabs = () => {
|
|
1098
1098
|
for (let i = 0; i < this._numberOfTabs; i++)
|
|
1099
1099
|
i === 0 ? this._tabsTemplate.push(b`
|
|
1100
|
-
<input class="tab-radio" id=${this.tabNames[i]} type="radio" name="tabGroup" @change=${() => {
|
|
1100
|
+
<input class="tab-radio" id=${this.tabNames[i].value} type="radio" name="tabGroup" @change=${() => {
|
|
1101
1101
|
this.showContent(i);
|
|
1102
1102
|
}} checked/>
|
|
1103
|
-
<label class="tab ${this.tabNames[i]}-tab" for=${this.tabNames[i]}>${this.tabNames[i]
|
|
1103
|
+
<label class="tab ${this.tabNames[i].value}-tab" for=${this.tabNames[i].value}>${this.tabNames[i].label}</label>
|
|
1104
1104
|
`) : this._tabsTemplate.push(b`
|
|
1105
|
-
<input class="tab-radio" id=${this.tabNames[i]} type="radio" name="tabGroup" @change=${() => {
|
|
1105
|
+
<input class="tab-radio" id=${this.tabNames[i].value} type="radio" name="tabGroup" @change=${() => {
|
|
1106
1106
|
this.showContent(i);
|
|
1107
1107
|
}}/>
|
|
1108
|
-
<label class="tab ${this.tabNames[i]}-tab" for=${this.tabNames[i]}>${this.tabNames[i]
|
|
1108
|
+
<label class="tab ${this.tabNames[i].value}-tab" for=${this.tabNames[i].value}>${this.tabNames[i].label}</label>
|
|
1109
1109
|
`);
|
|
1110
1110
|
};
|
|
1111
1111
|
}
|
|
@@ -1125,25 +1125,25 @@ let Vt = class extends J {
|
|
|
1125
1125
|
`;
|
|
1126
1126
|
}
|
|
1127
1127
|
};
|
|
1128
|
-
|
|
1128
|
+
Ht.styles = [fr, wr, pr, mr, br, Mr];
|
|
1129
1129
|
Oe([
|
|
1130
1130
|
M({ attribute: "tab-names", type: Array })
|
|
1131
|
-
],
|
|
1131
|
+
], Ht.prototype, "tabNames", 2);
|
|
1132
1132
|
Oe([
|
|
1133
1133
|
M({ attribute: "with-border-bottom", type: Boolean })
|
|
1134
|
-
],
|
|
1134
|
+
], Ht.prototype, "withBorderBottom", 2);
|
|
1135
1135
|
Oe([
|
|
1136
1136
|
ko()
|
|
1137
|
-
],
|
|
1137
|
+
], Ht.prototype, "_tabContents", 2);
|
|
1138
1138
|
Oe([
|
|
1139
1139
|
F()
|
|
1140
|
-
],
|
|
1140
|
+
], Ht.prototype, "_numberOfTabs", 2);
|
|
1141
1141
|
Oe([
|
|
1142
1142
|
F()
|
|
1143
|
-
],
|
|
1144
|
-
|
|
1143
|
+
], Ht.prototype, "_tabsTemplate", 2);
|
|
1144
|
+
Ht = Oe([
|
|
1145
1145
|
q("genus-tab-container")
|
|
1146
|
-
],
|
|
1146
|
+
], Ht);
|
|
1147
1147
|
var Gr = Object.defineProperty, xr = Object.getOwnPropertyDescriptor, Yr = (i, t, e, s) => {
|
|
1148
1148
|
for (var n = s > 1 ? void 0 : s ? xr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1149
1149
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
@@ -1160,7 +1160,7 @@ gs = Yr([
|
|
|
1160
1160
|
const Su = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1161
1161
|
__proto__: null,
|
|
1162
1162
|
get GenusTabContainer() {
|
|
1163
|
-
return
|
|
1163
|
+
return Ht;
|
|
1164
1164
|
},
|
|
1165
1165
|
get GenusTabContent() {
|
|
1166
1166
|
return gs;
|
|
@@ -1365,7 +1365,7 @@ let dt = class extends J {
|
|
|
1365
1365
|
</div>
|
|
1366
1366
|
`), b`
|
|
1367
1367
|
<div class='steps-container'>
|
|
1368
|
-
${
|
|
1368
|
+
${St(
|
|
1369
1369
|
this.displayMode === "mobile",
|
|
1370
1370
|
() => b`
|
|
1371
1371
|
<div class="progress-container progress-container--mobile">
|
|
@@ -1430,7 +1430,7 @@ Yt([
|
|
|
1430
1430
|
F()
|
|
1431
1431
|
], dt.prototype, "_circumference", 2);
|
|
1432
1432
|
Yt([
|
|
1433
|
-
|
|
1433
|
+
we(".circular-progress-bar")
|
|
1434
1434
|
], dt.prototype, "_circularProgressBar", 2);
|
|
1435
1435
|
dt = Yt([
|
|
1436
1436
|
q("genus-step-wizard")
|
|
@@ -1501,7 +1501,7 @@ const Tu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1501
1501
|
{
|
|
1502
1502
|
display: grid;
|
|
1503
1503
|
grid-template-columns: repeat(6, 1fr);
|
|
1504
|
-
grid-template-rows: max-content
|
|
1504
|
+
grid-template-rows: repeat(2, max-content);
|
|
1505
1505
|
grid-row-gap: 0.625rem;
|
|
1506
1506
|
grid-template-areas:
|
|
1507
1507
|
'ol ol ol ol . .'
|
|
@@ -1585,18 +1585,18 @@ let Dt = class extends J {
|
|
|
1585
1585
|
<label class='label options-label group-label'>${this.labelText}</label>
|
|
1586
1586
|
<div class="options-container">
|
|
1587
1587
|
${this.options.map((i) => b`
|
|
1588
|
-
${
|
|
1588
|
+
${St(
|
|
1589
1589
|
this.withoutIcon,
|
|
1590
1590
|
() => b`
|
|
1591
|
-
<input type='radio' id='genus-radiobtn-${i}' class='genus-radiobtn' @change=${this.getInputValue} value=${i} name=${this.inputName} ?checked=${i === this.selectedOption} />
|
|
1592
|
-
<label class='label genus-radiobtn-label genus-radiobtn-label--without-icon' for='genus-radiobtn-${i}'>
|
|
1593
|
-
<span class="label-text">${i
|
|
1591
|
+
<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} />
|
|
1592
|
+
<label class='label genus-radiobtn-label genus-radiobtn-label--without-icon' for='genus-radiobtn-${i.value}'>
|
|
1593
|
+
<span class="label-text">${i.label}</span>
|
|
1594
1594
|
</label>
|
|
1595
1595
|
`,
|
|
1596
1596
|
() => b`
|
|
1597
|
-
<input type='radio' id='genus-radiobtn-${i}' class='genus-radiobtn' @change=${this.getInputValue} value=${i} name=${this.inputName} ?checked=${i === this.selectedOption} />
|
|
1598
|
-
<label class='label genus-radiobtn-label' for='genus-radiobtn-${i}'>
|
|
1599
|
-
<span class="label-text">${i
|
|
1597
|
+
<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} />
|
|
1598
|
+
<label class='label genus-radiobtn-label' for='genus-radiobtn-${i.value}'>
|
|
1599
|
+
<span class="label-text">${i.label}</span>
|
|
1600
1600
|
<img class="component-icon radiobtn-icon unchecked-icon" src='${this.uncheckedRadioIcon || jr}' />
|
|
1601
1601
|
<img class="component-icon radiobtn-icon checked-icon" src='${this.checkedRadioIcon || Vr}' />
|
|
1602
1602
|
</label>
|
|
@@ -1827,17 +1827,17 @@ const Nr = B`
|
|
|
1827
1827
|
height: var(--icon-height, 1.5625rem);
|
|
1828
1828
|
}
|
|
1829
1829
|
`;
|
|
1830
|
-
var Xr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor,
|
|
1830
|
+
var Xr = Object.defineProperty, Jr = Object.getOwnPropertyDescriptor, be = (i, t, e, s) => {
|
|
1831
1831
|
for (var n = s > 1 ? void 0 : s ? Jr(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1832
1832
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1833
1833
|
return s && n && Xr(t, e, n), n;
|
|
1834
1834
|
};
|
|
1835
|
-
let
|
|
1835
|
+
let Ft = class extends J {
|
|
1836
1836
|
constructor() {
|
|
1837
1837
|
super(...arguments), this.dataCardTitle = "", this.dataCardValue = "", this.dataCardIcon = "", this.dataCardLayoutDirection = "row", this.withoutIcon = !1, this.isLoading = 0;
|
|
1838
1838
|
}
|
|
1839
1839
|
render() {
|
|
1840
|
-
return
|
|
1840
|
+
return St(
|
|
1841
1841
|
this.withoutIcon,
|
|
1842
1842
|
() => this.isLoading ? b`
|
|
1843
1843
|
<div class='data-card-loader data-card-loader--no-icon'>
|
|
@@ -1868,28 +1868,28 @@ let Ht = class extends J {
|
|
|
1868
1868
|
);
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
1871
|
-
|
|
1872
|
-
|
|
1871
|
+
Ft.styles = [Nr, Kr, Wr, Zr, Ur];
|
|
1872
|
+
be([
|
|
1873
1873
|
M({ attribute: "card-title" })
|
|
1874
|
-
],
|
|
1875
|
-
|
|
1874
|
+
], Ft.prototype, "dataCardTitle", 2);
|
|
1875
|
+
be([
|
|
1876
1876
|
M({ attribute: "card-value" })
|
|
1877
|
-
],
|
|
1878
|
-
|
|
1877
|
+
], Ft.prototype, "dataCardValue", 2);
|
|
1878
|
+
be([
|
|
1879
1879
|
M({ attribute: "data-card-icon" })
|
|
1880
|
-
],
|
|
1881
|
-
|
|
1880
|
+
], Ft.prototype, "dataCardIcon", 2);
|
|
1881
|
+
be([
|
|
1882
1882
|
M({ attribute: "layout-direction" })
|
|
1883
|
-
],
|
|
1884
|
-
|
|
1883
|
+
], Ft.prototype, "dataCardLayoutDirection", 2);
|
|
1884
|
+
be([
|
|
1885
1885
|
M({ type: Boolean, attribute: "without-icon" })
|
|
1886
|
-
],
|
|
1887
|
-
|
|
1886
|
+
], Ft.prototype, "withoutIcon", 2);
|
|
1887
|
+
be([
|
|
1888
1888
|
M({ attribute: "is-loading", type: Number })
|
|
1889
|
-
],
|
|
1890
|
-
|
|
1889
|
+
], Ft.prototype, "isLoading", 2);
|
|
1890
|
+
Ft = be([
|
|
1891
1891
|
q("genus-data-card")
|
|
1892
|
-
],
|
|
1892
|
+
], Ft);
|
|
1893
1893
|
const zo = B`
|
|
1894
1894
|
.label-text
|
|
1895
1895
|
{
|
|
@@ -1982,7 +1982,7 @@ const zo = B`
|
|
|
1982
1982
|
column-gap: unset;
|
|
1983
1983
|
}
|
|
1984
1984
|
`, $r = "data:image/svg+xml,%3c!--%20%3c?xml-stylesheet%20type='text/css'%20href='../css/style.css'%20?%3e%20--%3e%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20class='checkbox-icon-svg%20unchecked-svg'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='0.5'%20y='0.5'%20width='15'%20height='15'%20rx='3.5'%20fill='white'%20stroke='%23B9BDBA'/%3e%3c/svg%3e", tl = "data:image/svg+xml,%3c!--%20%3c?xml-stylesheet%20type='text/css'%20href='../css/style.css'%20?%3e%20--%3e%3csvg%20width='24'%20height='24'%20class='checkbox-icon-svg%20checked-svg'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cstyle%3e%20.checkbox-icon-svg%20path%20{%20fill:%20%2329406a;%20}%20.checked-svg%20path%20{%20fill:%20%23fdc54a;%20}%20%3c/style%3e%3cpath%20d='M16.19%202H7.81C4.17%202%202%204.17%202%207.81V16.18C2%2019.83%204.17%2022%207.81%2022H16.18C19.82%2022%2021.99%2019.83%2021.99%2016.19V7.81C22%204.17%2019.83%202%2016.19%202ZM16.78%209.7L11.11%2015.37C10.97%2015.51%2010.78%2015.59%2010.58%2015.59C10.38%2015.59%2010.19%2015.51%2010.05%2015.37L7.22%2012.54C6.93%2012.25%206.93%2011.77%207.22%2011.48C7.51%2011.19%207.99%2011.19%208.28%2011.48L10.58%2013.78L15.72%208.64C16.01%208.35%2016.49%208.35%2016.78%208.64C17.07%208.93%2017.07%209.4%2016.78%209.7Z'%20fill='%23292D32'/%3e%3c/svg%3e";
|
|
1985
|
-
var el = Object.defineProperty, il = Object.getOwnPropertyDescriptor,
|
|
1985
|
+
var el = Object.defineProperty, il = Object.getOwnPropertyDescriptor, Me = (i, t, e, s) => {
|
|
1986
1986
|
for (var n = s > 1 ? void 0 : s ? il(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
1987
1987
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
1988
1988
|
return s && n && el(t, e, n), n;
|
|
@@ -2012,25 +2012,25 @@ let Bt = class extends J {
|
|
|
2012
2012
|
};
|
|
2013
2013
|
Bt.styles = [zo, qr, Lo, _r, So];
|
|
2014
2014
|
Bt.formAssociated = !0;
|
|
2015
|
-
|
|
2015
|
+
Me([
|
|
2016
2016
|
M({ attribute: "option-value" })
|
|
2017
2017
|
], Bt.prototype, "optionValue", 2);
|
|
2018
|
-
|
|
2018
|
+
Me([
|
|
2019
2019
|
M({ attribute: "option-id" })
|
|
2020
2020
|
], Bt.prototype, "optionID", 2);
|
|
2021
|
-
|
|
2021
|
+
Me([
|
|
2022
2022
|
M({ attribute: "name", reflect: !0 })
|
|
2023
2023
|
], Bt.prototype, "inputName", 2);
|
|
2024
|
-
|
|
2024
|
+
Me([
|
|
2025
2025
|
M({ type: Boolean, attribute: "without-icon" })
|
|
2026
2026
|
], Bt.prototype, "withoutIcon", 2);
|
|
2027
|
-
|
|
2027
|
+
Me([
|
|
2028
2028
|
M({ attribute: "checked-box-icon" })
|
|
2029
2029
|
], Bt.prototype, "checkedBoxIcon", 2);
|
|
2030
|
-
|
|
2030
|
+
Me([
|
|
2031
2031
|
M({ attribute: "unchecked-box-icon" })
|
|
2032
2032
|
], Bt.prototype, "uncheckedBoxIcon", 2);
|
|
2033
|
-
Bt =
|
|
2033
|
+
Bt = Me([
|
|
2034
2034
|
q("genus-checkbox-option")
|
|
2035
2035
|
], Bt);
|
|
2036
2036
|
const sl = B`
|
|
@@ -2186,7 +2186,6 @@ const pl = B`
|
|
|
2186
2186
|
border-right: none;
|
|
2187
2187
|
padding: var(--input-padding, 1.125rem 0.9375rem);
|
|
2188
2188
|
background: var(--input-background-color, #f2f7f9);
|
|
2189
|
-
text-transform: capitalize;
|
|
2190
2189
|
}
|
|
2191
2190
|
|
|
2192
2191
|
input[type='text']:focus { outline: none; }
|
|
@@ -2208,7 +2207,6 @@ const pl = B`
|
|
|
2208
2207
|
border-radius: 0.375rem;
|
|
2209
2208
|
background: white !important;
|
|
2210
2209
|
width: 100%;
|
|
2211
|
-
text-transform: unset !important;
|
|
2212
2210
|
}
|
|
2213
2211
|
`, wl = B`
|
|
2214
2212
|
.input-label
|
|
@@ -2629,7 +2627,7 @@ function He(i) {
|
|
|
2629
2627
|
function qt(i) {
|
|
2630
2628
|
return Zt(Ai(i * 255), 0, 255);
|
|
2631
2629
|
}
|
|
2632
|
-
function
|
|
2630
|
+
function zt(i) {
|
|
2633
2631
|
return Zt(Ai(i / 2.55) / 100, 0, 1);
|
|
2634
2632
|
}
|
|
2635
2633
|
function sn(i) {
|
|
@@ -2716,7 +2714,7 @@ function Fl(i) {
|
|
|
2716
2714
|
if (!i)
|
|
2717
2715
|
return;
|
|
2718
2716
|
const t = ks(i), e = t[0], s = sn(t[1]), n = sn(t[2]);
|
|
2719
|
-
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${
|
|
2717
|
+
return i.a < 255 ? `hsla(${e}, ${s}%, ${n}%, ${zt(i.a)})` : `hsl(${e}, ${s}%, ${n}%)`;
|
|
2720
2718
|
}
|
|
2721
2719
|
const nn = {
|
|
2722
2720
|
x: "dark",
|
|
@@ -2935,15 +2933,15 @@ function Kl(i) {
|
|
|
2935
2933
|
}
|
|
2936
2934
|
}
|
|
2937
2935
|
function Ul(i) {
|
|
2938
|
-
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${
|
|
2936
|
+
return i && (i.a < 255 ? `rgba(${i.r}, ${i.g}, ${i.b}, ${zt(i.a)})` : `rgb(${i.r}, ${i.g}, ${i.b})`);
|
|
2939
2937
|
}
|
|
2940
2938
|
const es = (i) => i <= 31308e-7 ? i * 12.92 : Math.pow(i, 1 / 2.4) * 1.055 - 0.055, ve = (i) => i <= 0.04045 ? i / 12.92 : Math.pow((i + 0.055) / 1.055, 2.4);
|
|
2941
2939
|
function Xl(i, t, e) {
|
|
2942
|
-
const s = ve(
|
|
2940
|
+
const s = ve(zt(i.r)), n = ve(zt(i.g)), o = ve(zt(i.b));
|
|
2943
2941
|
return {
|
|
2944
|
-
r: qt(es(s + e * (ve(
|
|
2945
|
-
g: qt(es(n + e * (ve(
|
|
2946
|
-
b: qt(es(o + e * (ve(
|
|
2942
|
+
r: qt(es(s + e * (ve(zt(t.r)) - s))),
|
|
2943
|
+
g: qt(es(n + e * (ve(zt(t.g)) - n))),
|
|
2944
|
+
b: qt(es(o + e * (ve(zt(t.b)) - o))),
|
|
2947
2945
|
a: i.a + e * (t.a - i.a)
|
|
2948
2946
|
};
|
|
2949
2947
|
}
|
|
@@ -2976,7 +2974,7 @@ class ei {
|
|
|
2976
2974
|
}
|
|
2977
2975
|
get rgb() {
|
|
2978
2976
|
var t = No(this._rgb);
|
|
2979
|
-
return t && (t.a =
|
|
2977
|
+
return t && (t.a = zt(t.a)), t;
|
|
2980
2978
|
}
|
|
2981
2979
|
set rgb(t) {
|
|
2982
2980
|
this._rgb = an(t);
|
|
@@ -3046,7 +3044,7 @@ class ei {
|
|
|
3046
3044
|
* (c) 2024 Chart.js Contributors
|
|
3047
3045
|
* Released under the MIT License
|
|
3048
3046
|
*/
|
|
3049
|
-
function
|
|
3047
|
+
function Qt() {
|
|
3050
3048
|
}
|
|
3051
3049
|
const ql = /* @__PURE__ */ (() => {
|
|
3052
3050
|
let i = 0;
|
|
@@ -3196,7 +3194,7 @@ const si = (i) => typeof i < "u", $t = (i) => typeof i == "function", ln = (i, t
|
|
|
3196
3194
|
function sA(i) {
|
|
3197
3195
|
return i.type === "mouseup" || i.type === "click" || i.type === "contextmenu";
|
|
3198
3196
|
}
|
|
3199
|
-
const H = Math.PI, V = 2 * H, nA = V + H, Hi = Number.POSITIVE_INFINITY, oA = H / 180, X = H / 2,
|
|
3197
|
+
const H = Math.PI, V = 2 * H, nA = V + H, Hi = Number.POSITIVE_INFINITY, oA = H / 180, X = H / 2, oe = H / 4, An = H * 2 / 3, Kt = Math.log10, Et = Math.sign;
|
|
3200
3198
|
function Xe(i, t, e) {
|
|
3201
3199
|
return Math.abs(i - t) < e;
|
|
3202
3200
|
}
|
|
@@ -3266,7 +3264,7 @@ function tt(i, t, e) {
|
|
|
3266
3264
|
function AA(i) {
|
|
3267
3265
|
return tt(i, -32768, 32767);
|
|
3268
3266
|
}
|
|
3269
|
-
function
|
|
3267
|
+
function Tt(i, t, e, s = 1e-6) {
|
|
3270
3268
|
return i >= Math.min(t, e) - s && i <= Math.max(t, e) + s;
|
|
3271
3269
|
}
|
|
3272
3270
|
function Ls(i, t, e) {
|
|
@@ -3279,7 +3277,7 @@ function Ls(i, t, e) {
|
|
|
3279
3277
|
hi: s
|
|
3280
3278
|
};
|
|
3281
3279
|
}
|
|
3282
|
-
const
|
|
3280
|
+
const Rt = (i, t, e, s) => Ls(i, e, s ? (n) => {
|
|
3283
3281
|
const o = i[n][t];
|
|
3284
3282
|
return o < e || o === e && i[n + 1][t] === e;
|
|
3285
3283
|
} : (n) => i[n][t] < e), cA = (i, t, e) => Ls(i, e, (s) => i[s][t] >= e);
|
|
@@ -3365,14 +3363,14 @@ function $o(i, t, e) {
|
|
|
3365
3363
|
const { iScale: a, _parsed: r } = i, l = a.axis, { min: A, max: c, minDefined: h, maxDefined: d } = a.getUserBounds();
|
|
3366
3364
|
h && (n = tt(Math.min(
|
|
3367
3365
|
// @ts-expect-error Need to type _parsed
|
|
3368
|
-
|
|
3366
|
+
Rt(r, l, A).lo,
|
|
3369
3367
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
3370
|
-
e ? s :
|
|
3368
|
+
e ? s : Rt(t, l, a.getPixelForValue(A)).lo
|
|
3371
3369
|
), 0, s - 1)), d ? o = tt(Math.max(
|
|
3372
3370
|
// @ts-expect-error Need to type _parsed
|
|
3373
|
-
|
|
3371
|
+
Rt(r, a.axis, c, !0).hi + 1,
|
|
3374
3372
|
// @ts-expect-error Need to fix types on _lookupByKey
|
|
3375
|
-
e ? 0 :
|
|
3373
|
+
e ? 0 : Rt(t, l, a.getPixelForValue(c), !0).hi + 1
|
|
3376
3374
|
), n, s) - n : o = s - n;
|
|
3377
3375
|
}
|
|
3378
3376
|
return {
|
|
@@ -3647,7 +3645,7 @@ function DA(i) {
|
|
|
3647
3645
|
_indexable: (t) => t !== "backdropPadding"
|
|
3648
3646
|
});
|
|
3649
3647
|
}
|
|
3650
|
-
const
|
|
3648
|
+
const ue = /* @__PURE__ */ Object.create(null), ps = /* @__PURE__ */ Object.create(null);
|
|
3651
3649
|
function qe(i, t) {
|
|
3652
3650
|
if (!t)
|
|
3653
3651
|
return i;
|
|
@@ -3691,7 +3689,7 @@ class BA {
|
|
|
3691
3689
|
return ss(ps, t, e);
|
|
3692
3690
|
}
|
|
3693
3691
|
override(t, e) {
|
|
3694
|
-
return ss(
|
|
3692
|
+
return ss(ue, t, e);
|
|
3695
3693
|
}
|
|
3696
3694
|
route(t, e, s, n) {
|
|
3697
3695
|
const o = qe(this, t), a = qe(this, s), r = "_" + e;
|
|
@@ -3760,7 +3758,7 @@ function xA(i, t, e, s) {
|
|
|
3760
3758
|
}
|
|
3761
3759
|
return a;
|
|
3762
3760
|
}
|
|
3763
|
-
function
|
|
3761
|
+
function ae(i, t, e) {
|
|
3764
3762
|
const s = i.currentDevicePixelRatio, n = e !== 0 ? Math.max(e / 2, 0.5) : 0;
|
|
3765
3763
|
return Math.round((t - n) * s) / s + n;
|
|
3766
3764
|
}
|
|
@@ -3787,24 +3785,24 @@ function ia(i, t, e, s, n) {
|
|
|
3787
3785
|
c = n ? n / 2 : f, i.moveTo(e + Math.sin(p) * c, s - Math.cos(p) * f), p += An, i.lineTo(e + Math.sin(p) * c, s - Math.cos(p) * f), p += An, i.lineTo(e + Math.sin(p) * c, s - Math.cos(p) * f), i.closePath();
|
|
3788
3786
|
break;
|
|
3789
3787
|
case "rectRounded":
|
|
3790
|
-
A = f * 0.516, l = f - A, a = Math.cos(p +
|
|
3788
|
+
A = f * 0.516, l = f - A, a = Math.cos(p + oe) * l, h = Math.cos(p + oe) * (n ? n / 2 - A : l), r = Math.sin(p + oe) * l, d = Math.sin(p + oe) * (n ? n / 2 - A : l), i.arc(e - h, s - r, A, p - H, p - X), i.arc(e + d, s - a, A, p - X, p), i.arc(e + h, s + r, A, p, p + X), i.arc(e - d, s + a, A, p + X, p + H), i.closePath();
|
|
3791
3789
|
break;
|
|
3792
3790
|
case "rect":
|
|
3793
3791
|
if (!u) {
|
|
3794
3792
|
l = Math.SQRT1_2 * f, c = n ? n / 2 : l, i.rect(e - c, s - l, 2 * c, 2 * l);
|
|
3795
3793
|
break;
|
|
3796
3794
|
}
|
|
3797
|
-
p +=
|
|
3795
|
+
p += oe;
|
|
3798
3796
|
case "rectRot":
|
|
3799
3797
|
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();
|
|
3800
3798
|
break;
|
|
3801
3799
|
case "crossRot":
|
|
3802
|
-
p +=
|
|
3800
|
+
p += oe;
|
|
3803
3801
|
case "cross":
|
|
3804
3802
|
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);
|
|
3805
3803
|
break;
|
|
3806
3804
|
case "star":
|
|
3807
|
-
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 +=
|
|
3805
|
+
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 += oe, 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);
|
|
3808
3806
|
break;
|
|
3809
3807
|
case "line":
|
|
3810
3808
|
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);
|
|
@@ -3819,7 +3817,7 @@ function ia(i, t, e, s, n) {
|
|
|
3819
3817
|
i.fill(), t.borderWidth > 0 && i.stroke();
|
|
3820
3818
|
}
|
|
3821
3819
|
}
|
|
3822
|
-
function
|
|
3820
|
+
function jt(i, t, e) {
|
|
3823
3821
|
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;
|
|
3824
3822
|
}
|
|
3825
3823
|
function Ji(i, t) {
|
|
@@ -3856,7 +3854,7 @@ function IA(i, t) {
|
|
|
3856
3854
|
const e = i.fillStyle;
|
|
3857
3855
|
i.fillStyle = t.color, i.fillRect(t.left, t.top, t.width, t.height), i.fillStyle = e;
|
|
3858
3856
|
}
|
|
3859
|
-
function
|
|
3857
|
+
function fe(i, t, e, s, n, o = {}) {
|
|
3860
3858
|
const a = j(t) ? t : [
|
|
3861
3859
|
t
|
|
3862
3860
|
], r = o.strokeWidth > 0 && o.strokeColor !== "";
|
|
@@ -3898,7 +3896,7 @@ function sa(i) {
|
|
|
3898
3896
|
left: "x"
|
|
3899
3897
|
});
|
|
3900
3898
|
}
|
|
3901
|
-
function
|
|
3899
|
+
function de(i) {
|
|
3902
3900
|
return Rs(i, [
|
|
3903
3901
|
"topLeft",
|
|
3904
3902
|
"topRight",
|
|
@@ -4243,9 +4241,9 @@ function Mi(i, t, e) {
|
|
|
4243
4241
|
return Math.max(Math.min(i, e), t);
|
|
4244
4242
|
}
|
|
4245
4243
|
function XA(i, t) {
|
|
4246
|
-
let e, s, n, o, a, r =
|
|
4244
|
+
let e, s, n, o, a, r = jt(i[0], t);
|
|
4247
4245
|
for (e = 0, s = i.length; e < s; ++e)
|
|
4248
|
-
a = o, o = r, r = e < s - 1 &&
|
|
4246
|
+
a = o, o = r, r = e < s - 1 && jt(i[e + 1], t), o && (n = i[e], a && (n.cp1x = Mi(n.cp1x, t.left, t.right), n.cp1y = Mi(n.cp1y, t.top, t.bottom)), r && (n.cp2x = Mi(n.cp2x, t.left, t.right), n.cp2y = Mi(n.cp2y, t.top, t.bottom)));
|
|
4249
4247
|
}
|
|
4250
4248
|
function JA(i, t, e, s, n) {
|
|
4251
4249
|
let o, a, r, l;
|
|
@@ -4279,7 +4277,7 @@ const _A = [
|
|
|
4279
4277
|
"bottom",
|
|
4280
4278
|
"left"
|
|
4281
4279
|
];
|
|
4282
|
-
function
|
|
4280
|
+
function ge(i, t, e) {
|
|
4283
4281
|
const s = {};
|
|
4284
4282
|
e = e ? "-" + e : "";
|
|
4285
4283
|
for (let n = 0; n < 4; n++) {
|
|
@@ -4304,10 +4302,10 @@ function tc(i, t) {
|
|
|
4304
4302
|
box: a
|
|
4305
4303
|
};
|
|
4306
4304
|
}
|
|
4307
|
-
function
|
|
4305
|
+
function Ae(i, t) {
|
|
4308
4306
|
if ("native" in i)
|
|
4309
4307
|
return i;
|
|
4310
|
-
const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a =
|
|
4308
|
+
const { canvas: e, currentDevicePixelRatio: s } = t, n = _i(e), o = n.boxSizing === "border-box", a = ge(n, "padding"), r = ge(n, "border", "width"), { x: l, y: A, box: c } = tc(i, e), h = a.left + (c && r.left), d = a.top + (c && r.top);
|
|
4311
4309
|
let { width: g, height: u } = t;
|
|
4312
4310
|
return o && (g -= a.width + r.width, u -= a.height + r.height), {
|
|
4313
4311
|
x: Math.round((l - h) / g * e.width / s),
|
|
@@ -4321,7 +4319,7 @@ function ec(i, t, e) {
|
|
|
4321
4319
|
if (!o)
|
|
4322
4320
|
t = i.clientWidth, e = i.clientHeight;
|
|
4323
4321
|
else {
|
|
4324
|
-
const a = o.getBoundingClientRect(), r = _i(o), l =
|
|
4322
|
+
const a = o.getBoundingClientRect(), r = _i(o), l = ge(r, "border", "width"), A = ge(r, "padding");
|
|
4325
4323
|
t = a.width - A.width - l.width, e = a.height - A.height - l.height, s = Ni(r.maxWidth, o, "clientWidth"), n = Ni(r.maxHeight, o, "clientHeight");
|
|
4326
4324
|
}
|
|
4327
4325
|
}
|
|
@@ -4334,10 +4332,10 @@ function ec(i, t, e) {
|
|
|
4334
4332
|
}
|
|
4335
4333
|
const Di = (i) => Math.round(i * 10) / 10;
|
|
4336
4334
|
function ic(i, t, e, s) {
|
|
4337
|
-
const n = _i(i), o =
|
|
4335
|
+
const n = _i(i), o = ge(n, "margin"), a = Ni(n.maxWidth, i, "clientWidth") || Hi, r = Ni(n.maxHeight, i, "clientHeight") || Hi, l = ec(i, t, e);
|
|
4338
4336
|
let { width: A, height: c } = l;
|
|
4339
4337
|
if (n.boxSizing === "content-box") {
|
|
4340
|
-
const d =
|
|
4338
|
+
const d = ge(n, "border", "width"), g = ge(n, "padding");
|
|
4341
4339
|
A -= g.width + d.width, c -= g.height + d.height;
|
|
4342
4340
|
}
|
|
4343
4341
|
return A = Math.max(0, A - o.width), c = Math.max(0, s ? A / s : c - o.height), A = Di(Math.min(A, a, l.maxWidth)), c = Di(Math.min(c, r, l.maxHeight)), A && !c && (c = Di(A / 2)), (t !== void 0 || e !== void 0) && s && l.height && c > l.height && (c = l.height, A = Di(Math.floor(c * s))), {
|
|
@@ -4368,7 +4366,7 @@ function Dn(i, t) {
|
|
|
4368
4366
|
const e = qA(i, t), s = e && e.match(/^(\d+)(\.\d+)?px$/);
|
|
4369
4367
|
return s ? +s[1] : void 0;
|
|
4370
4368
|
}
|
|
4371
|
-
function
|
|
4369
|
+
function ce(i, t, e, s) {
|
|
4372
4370
|
return {
|
|
4373
4371
|
x: i.x + e * (t.x - i.x),
|
|
4374
4372
|
y: i.y + e * (t.y - i.y)
|
|
@@ -4387,8 +4385,8 @@ function oc(i, t, e, s) {
|
|
|
4387
4385
|
}, o = {
|
|
4388
4386
|
x: t.cp1x,
|
|
4389
4387
|
y: t.cp1y
|
|
4390
|
-
}, a =
|
|
4391
|
-
return
|
|
4388
|
+
}, a = ce(i, n, e), r = ce(n, o, e), l = ce(o, t, e), A = ce(a, r, e), c = ce(r, l, e);
|
|
4389
|
+
return ce(A, c, e);
|
|
4392
4390
|
}
|
|
4393
4391
|
const ac = function(i, t) {
|
|
4394
4392
|
return {
|
|
@@ -4445,7 +4443,7 @@ function da(i) {
|
|
|
4445
4443
|
compare: lA,
|
|
4446
4444
|
normalize: ft
|
|
4447
4445
|
} : {
|
|
4448
|
-
between:
|
|
4446
|
+
between: Tt,
|
|
4449
4447
|
compare: (t, e) => t - e,
|
|
4450
4448
|
normalize: (t) => t
|
|
4451
4449
|
};
|
|
@@ -4692,7 +4690,7 @@ class uc {
|
|
|
4692
4690
|
return this._charts.delete(t);
|
|
4693
4691
|
}
|
|
4694
4692
|
}
|
|
4695
|
-
var
|
|
4693
|
+
var Pt = /* @__PURE__ */ new uc();
|
|
4696
4694
|
const Yn = "transparent", fc = {
|
|
4697
4695
|
boolean(i, t, e) {
|
|
4698
4696
|
return e > 0.5 ? t : i;
|
|
@@ -4838,7 +4836,7 @@ class fa {
|
|
|
4838
4836
|
}
|
|
4839
4837
|
const s = this._createAnimations(t, e);
|
|
4840
4838
|
if (s.length)
|
|
4841
|
-
return
|
|
4839
|
+
return Pt.add(this._chart, s), !0;
|
|
4842
4840
|
}
|
|
4843
4841
|
}
|
|
4844
4842
|
function wc(i, t) {
|
|
@@ -5737,7 +5735,7 @@ function Tc(i, t, e) {
|
|
|
5737
5735
|
offsetY: a
|
|
5738
5736
|
};
|
|
5739
5737
|
}
|
|
5740
|
-
class
|
|
5738
|
+
class he extends Mt {
|
|
5741
5739
|
constructor(t, e) {
|
|
5742
5740
|
super(t, e), this.enableOptionSharing = !0, this.innerRadius = void 0, this.outerRadius = void 0, this.offsetX = void 0, this.offsetY = void 0;
|
|
5743
5741
|
}
|
|
@@ -5860,7 +5858,7 @@ class ce extends Mt {
|
|
|
5860
5858
|
return this._getRingWeightOffset(this.chart.data.datasets.length) || 1;
|
|
5861
5859
|
}
|
|
5862
5860
|
}
|
|
5863
|
-
Y(
|
|
5861
|
+
Y(he, "id", "doughnut"), Y(he, "defaults", {
|
|
5864
5862
|
datasetElementType: !1,
|
|
5865
5863
|
dataElementType: "arc",
|
|
5866
5864
|
animation: {
|
|
@@ -5890,10 +5888,10 @@ Y(ce, "id", "doughnut"), Y(ce, "defaults", {
|
|
|
5890
5888
|
radius: "100%",
|
|
5891
5889
|
spacing: 0,
|
|
5892
5890
|
indexAxis: "r"
|
|
5893
|
-
}), Y(
|
|
5891
|
+
}), Y(he, "descriptors", {
|
|
5894
5892
|
_scriptable: (t) => t !== "spacing",
|
|
5895
5893
|
_indexable: (t) => t !== "spacing" && !t.startsWith("borderDash") && !t.startsWith("hoverBorderDash")
|
|
5896
|
-
}), Y(
|
|
5894
|
+
}), Y(he, "overrides", {
|
|
5897
5895
|
aspectRatio: 1,
|
|
5898
5896
|
plugins: {
|
|
5899
5897
|
legend: {
|
|
@@ -6113,7 +6111,7 @@ Y(_e, "id", "polarArea"), Y(_e, "defaults", {
|
|
|
6113
6111
|
}
|
|
6114
6112
|
}
|
|
6115
6113
|
});
|
|
6116
|
-
class ms extends
|
|
6114
|
+
class ms extends he {
|
|
6117
6115
|
}
|
|
6118
6116
|
Y(ms, "id", "pie"), Y(ms, "defaults", {
|
|
6119
6117
|
cutout: 0,
|
|
@@ -6252,14 +6250,14 @@ var Rc = /* @__PURE__ */ Object.freeze({
|
|
|
6252
6250
|
__proto__: null,
|
|
6253
6251
|
BarController: Ei,
|
|
6254
6252
|
BubbleController: ki,
|
|
6255
|
-
DoughnutController:
|
|
6253
|
+
DoughnutController: he,
|
|
6256
6254
|
LineController: Qi,
|
|
6257
6255
|
PieController: ms,
|
|
6258
6256
|
PolarAreaController: _e,
|
|
6259
6257
|
RadarController: Pi,
|
|
6260
6258
|
ScatterController: Oi
|
|
6261
6259
|
});
|
|
6262
|
-
function
|
|
6260
|
+
function re() {
|
|
6263
6261
|
throw new Error("This method is not implemented: Check that a complete date adapter is provided.");
|
|
6264
6262
|
}
|
|
6265
6263
|
class Ws {
|
|
@@ -6284,25 +6282,25 @@ class Ws {
|
|
|
6284
6282
|
init() {
|
|
6285
6283
|
}
|
|
6286
6284
|
formats() {
|
|
6287
|
-
return
|
|
6285
|
+
return re();
|
|
6288
6286
|
}
|
|
6289
6287
|
parse() {
|
|
6290
|
-
return
|
|
6288
|
+
return re();
|
|
6291
6289
|
}
|
|
6292
6290
|
format() {
|
|
6293
|
-
return
|
|
6291
|
+
return re();
|
|
6294
6292
|
}
|
|
6295
6293
|
add() {
|
|
6296
|
-
return
|
|
6294
|
+
return re();
|
|
6297
6295
|
}
|
|
6298
6296
|
diff() {
|
|
6299
|
-
return
|
|
6297
|
+
return re();
|
|
6300
6298
|
}
|
|
6301
6299
|
startOf() {
|
|
6302
|
-
return
|
|
6300
|
+
return re();
|
|
6303
6301
|
}
|
|
6304
6302
|
endOf() {
|
|
6305
|
-
return
|
|
6303
|
+
return re();
|
|
6306
6304
|
}
|
|
6307
6305
|
}
|
|
6308
6306
|
var jc = {
|
|
@@ -6311,7 +6309,7 @@ var jc = {
|
|
|
6311
6309
|
function Vc(i, t, e, s) {
|
|
6312
6310
|
const { controller: n, data: o, _sorted: a } = i, r = n._cachedMeta.iScale;
|
|
6313
6311
|
if (r && t === r.axis && t !== "r" && a && o.length) {
|
|
6314
|
-
const l = r._reversePixels ? cA :
|
|
6312
|
+
const l = r._reversePixels ? cA : Rt;
|
|
6315
6313
|
if (s) {
|
|
6316
6314
|
if (n._sharedOptions) {
|
|
6317
6315
|
const A = o[0], c = typeof A.getRange == "function" && A.getRange(t);
|
|
@@ -6351,7 +6349,7 @@ function Hc(i) {
|
|
|
6351
6349
|
function rs(i, t, e, s, n) {
|
|
6352
6350
|
const o = [];
|
|
6353
6351
|
return !n && !i.isPointInArea(t) || hi(i, e, t, function(r, l, A) {
|
|
6354
|
-
!n && !
|
|
6352
|
+
!n && !jt(r, i.chartArea, 0) || r.inRange(t.x, t.y, s) && o.push({
|
|
6355
6353
|
element: r,
|
|
6356
6354
|
datasetIndex: l,
|
|
6357
6355
|
index: A
|
|
@@ -6420,7 +6418,7 @@ var Wc = {
|
|
|
6420
6418
|
evaluateInteractionItems: hi,
|
|
6421
6419
|
modes: {
|
|
6422
6420
|
index(i, t, e, s) {
|
|
6423
|
-
const n =
|
|
6421
|
+
const n = Ae(t, i), o = e.axis || "x", a = e.includeInvisible || !1, r = e.intersect ? rs(i, n, o, s, a) : ls(i, n, o, !1, s, a), l = [];
|
|
6424
6422
|
return r.length ? (i.getSortedVisibleDatasetMetas().forEach((A) => {
|
|
6425
6423
|
const c = r[0].index, h = A.data[c];
|
|
6426
6424
|
h && !h.skip && l.push({
|
|
@@ -6431,7 +6429,7 @@ var Wc = {
|
|
|
6431
6429
|
}), l) : [];
|
|
6432
6430
|
},
|
|
6433
6431
|
dataset(i, t, e, s) {
|
|
6434
|
-
const n =
|
|
6432
|
+
const n = Ae(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
6435
6433
|
let r = e.intersect ? rs(i, n, o, s, a) : ls(i, n, o, !1, s, a);
|
|
6436
6434
|
if (r.length > 0) {
|
|
6437
6435
|
const l = r[0].datasetIndex, A = i.getDatasetMeta(l).data;
|
|
@@ -6446,19 +6444,19 @@ var Wc = {
|
|
|
6446
6444
|
return r;
|
|
6447
6445
|
},
|
|
6448
6446
|
point(i, t, e, s) {
|
|
6449
|
-
const n =
|
|
6447
|
+
const n = Ae(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
6450
6448
|
return rs(i, n, o, s, a);
|
|
6451
6449
|
},
|
|
6452
6450
|
nearest(i, t, e, s) {
|
|
6453
|
-
const n =
|
|
6451
|
+
const n = Ae(t, i), o = e.axis || "xy", a = e.includeInvisible || !1;
|
|
6454
6452
|
return ls(i, n, o, e.intersect, s, a);
|
|
6455
6453
|
},
|
|
6456
6454
|
x(i, t, e, s) {
|
|
6457
|
-
const n =
|
|
6455
|
+
const n = Ae(t, i);
|
|
6458
6456
|
return zn(i, n, "x", e.intersect, s);
|
|
6459
6457
|
},
|
|
6460
6458
|
y(i, t, e, s) {
|
|
6461
|
-
const n =
|
|
6459
|
+
const n = Ae(t, i);
|
|
6462
6460
|
return zn(i, n, "y", e.intersect, s);
|
|
6463
6461
|
}
|
|
6464
6462
|
}
|
|
@@ -6761,7 +6759,7 @@ function sh(i, t, e) {
|
|
|
6761
6759
|
i && i.canvas && i.canvas.removeEventListener(t, e, Da);
|
|
6762
6760
|
}
|
|
6763
6761
|
function nh(i, t) {
|
|
6764
|
-
const e = th[i.type] || i.type, { x: s, y: n } =
|
|
6762
|
+
const e = th[i.type] || i.type, { x: s, y: n } = Ae(i, t);
|
|
6765
6763
|
return {
|
|
6766
6764
|
type: e,
|
|
6767
6765
|
chart: t,
|
|
@@ -7059,7 +7057,7 @@ function Yh(i, t, e, s) {
|
|
|
7059
7057
|
rotation: h
|
|
7060
7058
|
};
|
|
7061
7059
|
}
|
|
7062
|
-
class
|
|
7060
|
+
class De extends Gt {
|
|
7063
7061
|
constructor(t) {
|
|
7064
7062
|
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 = {
|
|
7065
7063
|
left: 0,
|
|
@@ -7332,7 +7330,7 @@ class Me extends Gt {
|
|
|
7332
7330
|
getPixelForDecimal(t) {
|
|
7333
7331
|
this._reversePixels && (t = 1 - t);
|
|
7334
7332
|
const e = this._startPixel + t * this._length;
|
|
7335
|
-
return AA(this._alignToPixels ?
|
|
7333
|
+
return AA(this._alignToPixels ? ae(this.chart, e, 0) : e);
|
|
7336
7334
|
}
|
|
7337
7335
|
getDecimalForPixel(t) {
|
|
7338
7336
|
const e = (t - this._startPixel) / this._length;
|
|
@@ -7363,7 +7361,7 @@ class Me extends Gt {
|
|
|
7363
7361
|
}
|
|
7364
7362
|
_computeGridLineItems(t) {
|
|
7365
7363
|
const e = this.axis, s = this.chart, n = this.options, { grid: o, position: a, border: r } = n, l = o.offset, A = this.isHorizontal(), h = this.ticks.length + (l ? 1 : 0), d = je(o), g = [], u = r.setContext(this.getContext()), f = u.display ? u.width : 0, p = f / 2, w = function(N) {
|
|
7366
|
-
return
|
|
7364
|
+
return ae(s, N, f);
|
|
7367
7365
|
};
|
|
7368
7366
|
let m, x, G, D, v, y, C, I, k, Q, O, it;
|
|
7369
7367
|
if (a === "top")
|
|
@@ -7393,8 +7391,8 @@ class Me extends Gt {
|
|
|
7393
7391
|
}
|
|
7394
7392
|
const gt = E(n.ticks.maxTicksLimit, h), S = Math.max(1, Math.ceil(h / gt));
|
|
7395
7393
|
for (x = 0; x < h; x += S) {
|
|
7396
|
-
const N = this.getContext(x), U = o.setContext(N), mt = r.setContext(N), st = U.lineWidth, Ge = U.color, gi = mt.dash || [], xe = mt.dashOffset, ze = U.tickWidth,
|
|
7397
|
-
G = Mh(this, x, l), G !== void 0 && (D =
|
|
7394
|
+
const N = this.getContext(x), U = o.setContext(N), mt = r.setContext(N), st = U.lineWidth, Ge = U.color, gi = mt.dash || [], xe = mt.dashOffset, ze = U.tickWidth, se = U.tickColor, Le = U.tickBorderDash || [], ne = U.tickBorderDashOffset;
|
|
7395
|
+
G = Mh(this, x, l), G !== void 0 && (D = ae(s, G, st), A ? v = C = k = O = D : y = I = Q = it = D, g.push({
|
|
7398
7396
|
tx1: v,
|
|
7399
7397
|
ty1: y,
|
|
7400
7398
|
tx2: C,
|
|
@@ -7408,9 +7406,9 @@ class Me extends Gt {
|
|
|
7408
7406
|
borderDash: gi,
|
|
7409
7407
|
borderDashOffset: xe,
|
|
7410
7408
|
tickWidth: ze,
|
|
7411
|
-
tickColor:
|
|
7409
|
+
tickColor: se,
|
|
7412
7410
|
tickBorderDash: Le,
|
|
7413
|
-
tickBorderDashOffset:
|
|
7411
|
+
tickBorderDashOffset: ne
|
|
7414
7412
|
}));
|
|
7415
7413
|
}
|
|
7416
7414
|
return this._ticksLength = h, this._borderValue = m, g;
|
|
@@ -7456,8 +7454,8 @@ class Me extends Gt {
|
|
|
7456
7454
|
a ? (D = C, y === "inner" && (w === m - 1 ? Ge = this.options.reverse ? "left" : "right" : w === 0 ? Ge = this.options.reverse ? "right" : "left" : Ge = "center"), n === "top" ? A === "near" || f !== 0 ? O = -Q * k + k / 2 : A === "center" ? O = -gt.highest.height / 2 - N * k + k : O = -gt.highest.height + k / 2 : A === "near" || f !== 0 ? O = k / 2 : A === "center" ? O = gt.highest.height / 2 - N * k : O = gt.highest.height - Q * k, h && (O *= -1), f !== 0 && !S.showLabelBackdrop && (D += k / 2 * Math.sin(f))) : (v = C, O = (1 - Q) * k / 2);
|
|
7457
7455
|
let gi;
|
|
7458
7456
|
if (S.showLabelBackdrop) {
|
|
7459
|
-
const xe = at(S.backdropPadding), ze = gt.heights[w],
|
|
7460
|
-
let Le = O - xe.top,
|
|
7457
|
+
const xe = at(S.backdropPadding), ze = gt.heights[w], se = gt.widths[w];
|
|
7458
|
+
let Le = O - xe.top, ne = 0 - xe.left;
|
|
7461
7459
|
switch (it) {
|
|
7462
7460
|
case "middle":
|
|
7463
7461
|
Le -= ze / 2;
|
|
@@ -7468,19 +7466,19 @@ class Me extends Gt {
|
|
|
7468
7466
|
}
|
|
7469
7467
|
switch (y) {
|
|
7470
7468
|
case "center":
|
|
7471
|
-
|
|
7469
|
+
ne -= se / 2;
|
|
7472
7470
|
break;
|
|
7473
7471
|
case "right":
|
|
7474
|
-
|
|
7472
|
+
ne -= se;
|
|
7475
7473
|
break;
|
|
7476
7474
|
case "inner":
|
|
7477
|
-
w === m - 1 ?
|
|
7475
|
+
w === m - 1 ? ne -= se : w > 0 && (ne -= se / 2);
|
|
7478
7476
|
break;
|
|
7479
7477
|
}
|
|
7480
7478
|
gi = {
|
|
7481
|
-
left:
|
|
7479
|
+
left: ne,
|
|
7482
7480
|
top: Le,
|
|
7483
|
-
width:
|
|
7481
|
+
width: se + xe.width,
|
|
7484
7482
|
height: ze + xe.height,
|
|
7485
7483
|
color: S.backdropColor
|
|
7486
7484
|
};
|
|
@@ -7586,7 +7584,7 @@ class Me extends Gt {
|
|
|
7586
7584
|
return;
|
|
7587
7585
|
const r = n.setContext(this.getContext(0)).lineWidth, l = this._borderValue;
|
|
7588
7586
|
let A, c, h, d;
|
|
7589
|
-
this.isHorizontal() ? (A =
|
|
7587
|
+
this.isHorizontal() ? (A = ae(t, this.left, a) - a / 2, c = 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, A = c = l), e.save(), e.lineWidth = o.width, e.strokeStyle = o.color, e.beginPath(), e.moveTo(A, h), e.lineTo(c, d), e.stroke(), e.restore();
|
|
7590
7588
|
}
|
|
7591
7589
|
drawLabels(t) {
|
|
7592
7590
|
if (!this.options.ticks.display)
|
|
@@ -7596,7 +7594,7 @@ class Me extends Gt {
|
|
|
7596
7594
|
const o = this.getLabelItems(t);
|
|
7597
7595
|
for (const a of o) {
|
|
7598
7596
|
const r = a.options, l = a.font, A = a.label, c = a.textOffset;
|
|
7599
|
-
|
|
7597
|
+
fe(s, A, 0, c, l, r);
|
|
7600
7598
|
}
|
|
7601
7599
|
n && qi(s);
|
|
7602
7600
|
}
|
|
@@ -7608,7 +7606,7 @@ class Me extends Gt {
|
|
|
7608
7606
|
let l = o.lineHeight / 2;
|
|
7609
7607
|
e === "bottom" || e === "center" || P(e) ? (l += a.bottom, j(s.text) && (l += o.lineHeight * (s.text.length - 1))) : l += a.top;
|
|
7610
7608
|
const { titleX: A, titleY: c, maxWidth: h, rotation: d } = Yh(this, l, e, r);
|
|
7611
|
-
|
|
7609
|
+
fe(t, s.text, 0, 0, o, {
|
|
7612
7610
|
color: s.color,
|
|
7613
7611
|
maxWidth: h,
|
|
7614
7612
|
rotation: d,
|
|
@@ -7625,7 +7623,7 @@ class Me extends Gt {
|
|
|
7625
7623
|
}
|
|
7626
7624
|
_layers() {
|
|
7627
7625
|
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);
|
|
7628
|
-
return !this._isVisible() || this.draw !==
|
|
7626
|
+
return !this._isVisible() || this.draw !== De.prototype.draw ? [
|
|
7629
7627
|
{
|
|
7630
7628
|
z: e,
|
|
7631
7629
|
draw: (o) => {
|
|
@@ -7692,7 +7690,7 @@ class xi {
|
|
|
7692
7690
|
}
|
|
7693
7691
|
unregister(t) {
|
|
7694
7692
|
const e = this.items, s = t.id, n = this.scope;
|
|
7695
|
-
s in e && delete e[s], n && s in K[n] && (delete K[n][s], this.override && delete
|
|
7693
|
+
s in e && delete e[s], n && s in K[n] && (delete K[n][s], this.override && delete ue[s]);
|
|
7696
7694
|
}
|
|
7697
7695
|
}
|
|
7698
7696
|
function vh(i, t, e) {
|
|
@@ -7716,7 +7714,7 @@ function Ch(i) {
|
|
|
7716
7714
|
}
|
|
7717
7715
|
class Ih {
|
|
7718
7716
|
constructor() {
|
|
7719
|
-
this.controllers = new xi(Mt, "datasets", !0), this.elements = new xi(Gt, "elements"), this.plugins = new xi(Object, "plugins"), this.scales = new xi(
|
|
7717
|
+
this.controllers = new xi(Mt, "datasets", !0), this.elements = new xi(Gt, "elements"), this.plugins = new xi(Object, "plugins"), this.scales = new xi(De, "scales"), this._typedRegistries = [
|
|
7720
7718
|
this.controllers,
|
|
7721
7719
|
this.scales,
|
|
7722
7720
|
this.elements
|
|
@@ -7922,7 +7920,7 @@ function Th(i, t) {
|
|
|
7922
7920
|
return {};
|
|
7923
7921
|
}
|
|
7924
7922
|
function Rh(i, t) {
|
|
7925
|
-
const e =
|
|
7923
|
+
const e = ue[i.type] || {
|
|
7926
7924
|
scales: {}
|
|
7927
7925
|
}, s = t.scales || {}, n = bs(i.type, t), o = /* @__PURE__ */ Object.create(null);
|
|
7928
7926
|
return Object.keys(s).forEach((a) => {
|
|
@@ -7941,7 +7939,7 @@ function Rh(i, t) {
|
|
|
7941
7939
|
c[A]
|
|
7942
7940
|
]);
|
|
7943
7941
|
}), i.data.datasets.forEach((a) => {
|
|
7944
|
-
const r = a.type || i.type, l = a.indexAxis || bs(r, t), c = (
|
|
7942
|
+
const r = a.type || i.type, l = a.indexAxis || bs(r, t), c = (ue[r] || {}).scales || {};
|
|
7945
7943
|
Object.keys(c).forEach((h) => {
|
|
7946
7944
|
const d = zh(h, l), g = a[d + "AxisID"] || d;
|
|
7947
7945
|
o[g] = o[g] || /* @__PURE__ */ Object.create(null), Ue(o[g], [
|
|
@@ -8064,7 +8062,7 @@ class Vh {
|
|
|
8064
8062
|
return r;
|
|
8065
8063
|
const l = /* @__PURE__ */ new Set();
|
|
8066
8064
|
e.forEach((c) => {
|
|
8067
|
-
t && (l.add(t), c.forEach((h) => Ve(l, t, h))), c.forEach((h) => Ve(l, n, h)), c.forEach((h) => Ve(l,
|
|
8065
|
+
t && (l.add(t), c.forEach((h) => Ve(l, t, h))), c.forEach((h) => Ve(l, n, h)), c.forEach((h) => Ve(l, ue[o] || {}, h)), c.forEach((h) => Ve(l, K, h)), c.forEach((h) => Ve(l, ps, h));
|
|
8068
8066
|
});
|
|
8069
8067
|
const A = Array.from(l);
|
|
8070
8068
|
return A.length === 0 && A.push(/* @__PURE__ */ Object.create(null)), Ya.has(e) && a.set(e, A), A;
|
|
@@ -8073,7 +8071,7 @@ class Vh {
|
|
|
8073
8071
|
const { options: t, type: e } = this;
|
|
8074
8072
|
return [
|
|
8075
8073
|
t,
|
|
8076
|
-
|
|
8074
|
+
ue[e] || {},
|
|
8077
8075
|
K.datasets[e] || {},
|
|
8078
8076
|
{
|
|
8079
8077
|
type: e
|
|
@@ -8185,7 +8183,7 @@ function Xh(i, t) {
|
|
|
8185
8183
|
bottom: vi(s, t, "bottom")
|
|
8186
8184
|
} : t;
|
|
8187
8185
|
}
|
|
8188
|
-
class
|
|
8186
|
+
class Lt {
|
|
8189
8187
|
static register(...t) {
|
|
8190
8188
|
It.add(...t), $n();
|
|
8191
8189
|
}
|
|
@@ -8203,7 +8201,7 @@ class zt {
|
|
|
8203
8201
|
console.error("Failed to create chart: can't acquire context from the given item");
|
|
8204
8202
|
return;
|
|
8205
8203
|
}
|
|
8206
|
-
|
|
8204
|
+
Pt.listen(this, "complete", qn), Pt.listen(this, "progress", Zh), this._initialize(), this.attached && this.update();
|
|
8207
8205
|
}
|
|
8208
8206
|
get aspectRatio() {
|
|
8209
8207
|
const { options: { aspectRatio: t, maintainAspectRatio: e }, width: s, height: n, _aspectRatio: o } = this;
|
|
@@ -8231,10 +8229,10 @@ class zt {
|
|
|
8231
8229
|
return wn(this.canvas, this.ctx), this;
|
|
8232
8230
|
}
|
|
8233
8231
|
stop() {
|
|
8234
|
-
return
|
|
8232
|
+
return Pt.stop(this), this;
|
|
8235
8233
|
}
|
|
8236
8234
|
resize(t, e) {
|
|
8237
|
-
|
|
8235
|
+
Pt.running(this) ? this._resizeBeforeDraw = {
|
|
8238
8236
|
width: t,
|
|
8239
8237
|
height: e
|
|
8240
8238
|
} : this._resize(t, e);
|
|
@@ -8424,7 +8422,7 @@ class zt {
|
|
|
8424
8422
|
render() {
|
|
8425
8423
|
this.notifyPlugins("beforeRender", {
|
|
8426
8424
|
cancelable: !0
|
|
8427
|
-
}) !== !1 && (
|
|
8425
|
+
}) !== !1 && (Pt.has(this) ? this.attached && !Pt.running(this) && Pt.start(this) : (this.draw(), qn({
|
|
8428
8426
|
chart: this
|
|
8429
8427
|
})));
|
|
8430
8428
|
}
|
|
@@ -8481,7 +8479,7 @@ class zt {
|
|
|
8481
8479
|
}), t.controller.draw(), n && qi(e), a.cancelable = !1, this.notifyPlugins("afterDatasetDraw", a));
|
|
8482
8480
|
}
|
|
8483
8481
|
isPointInArea(t) {
|
|
8484
|
-
return
|
|
8482
|
+
return jt(t, this.chartArea, this._minPadding);
|
|
8485
8483
|
}
|
|
8486
8484
|
getElementsAtEventForMode(t, e, s, n) {
|
|
8487
8485
|
const o = Wc.modes[e];
|
|
@@ -8549,7 +8547,7 @@ class zt {
|
|
|
8549
8547
|
}
|
|
8550
8548
|
_stop() {
|
|
8551
8549
|
let t, e;
|
|
8552
|
-
for (this.stop(),
|
|
8550
|
+
for (this.stop(), Pt.remove(this), t = 0, e = this.data.datasets.length; t < e; ++t)
|
|
8553
8551
|
this._destroyDatasetMeta(t);
|
|
8554
8552
|
}
|
|
8555
8553
|
destroy() {
|
|
@@ -8665,9 +8663,9 @@ class zt {
|
|
|
8665
8663
|
return this.getElementsAtEventForMode(t, o.mode, o, n);
|
|
8666
8664
|
}
|
|
8667
8665
|
}
|
|
8668
|
-
Y(
|
|
8666
|
+
Y(Lt, "defaults", K), Y(Lt, "instances", Li), Y(Lt, "overrides", ue), Y(Lt, "registry", It), Y(Lt, "version", Nh), Y(Lt, "getChart", _n);
|
|
8669
8667
|
function $n() {
|
|
8670
|
-
return L(
|
|
8668
|
+
return L(Lt.instances, (i) => i._plugins.invalidate());
|
|
8671
8669
|
}
|
|
8672
8670
|
function Jh(i, t, e) {
|
|
8673
8671
|
const { startAngle: s, pixelMargin: n, x: o, y: a, outerRadius: r, innerRadius: l } = t;
|
|
@@ -8789,7 +8787,7 @@ class We extends Gt {
|
|
|
8789
8787
|
"innerRadius",
|
|
8790
8788
|
"outerRadius",
|
|
8791
8789
|
"circumference"
|
|
8792
|
-
], n), g = (this.options.spacing + this.options.borderWidth) / 2, f = E(d, A - l) >= V || ni(a, l, A), p =
|
|
8790
|
+
], n), g = (this.options.spacing + this.options.borderWidth) / 2, f = E(d, A - l) >= V || ni(a, l, A), p = Tt(r, c + g, h + g);
|
|
8793
8791
|
return f && p;
|
|
8794
8792
|
}
|
|
8795
8793
|
getCenterPoint(e) {
|
|
@@ -8882,7 +8880,7 @@ function Ds(i) {
|
|
|
8882
8880
|
return !i._decimated && !i._loop && !t.tension && t.cubicInterpolationMode !== "monotone" && !t.stepped && !e ? nd : sd;
|
|
8883
8881
|
}
|
|
8884
8882
|
function od(i) {
|
|
8885
|
-
return i.stepped ? nc : i.tension || i.cubicInterpolationMode === "monotone" ? oc :
|
|
8883
|
+
return i.stepped ? nc : i.tension || i.cubicInterpolationMode === "monotone" ? oc : ce;
|
|
8886
8884
|
}
|
|
8887
8885
|
function ad(i, t, e, s) {
|
|
8888
8886
|
let n = t._path;
|
|
@@ -9033,7 +9031,7 @@ class Si extends Gt {
|
|
|
9033
9031
|
}
|
|
9034
9032
|
draw(e, s) {
|
|
9035
9033
|
const n = this.options;
|
|
9036
|
-
this.skip || n.radius < 0.1 || !
|
|
9034
|
+
this.skip || n.radius < 0.1 || !jt(this, s, this.size(n) / 2) || (e.strokeStyle = n.borderColor, e.lineWidth = n.borderWidth, e.fillStyle = n.backgroundColor, ws(e, n, this.x, this.y));
|
|
9037
9035
|
}
|
|
9038
9036
|
getRange() {
|
|
9039
9037
|
const e = this.options || {};
|
|
@@ -9089,7 +9087,7 @@ function cd(i, t, e) {
|
|
|
9089
9087
|
function hd(i, t, e) {
|
|
9090
9088
|
const { enableBorderRadius: s } = i.getProps([
|
|
9091
9089
|
"enableBorderRadius"
|
|
9092
|
-
]), n = i.options.borderRadius, o =
|
|
9090
|
+
]), n = i.options.borderRadius, o = de(n), a = Math.min(t, e), r = i.borderSkipped, l = s || P(n);
|
|
9093
9091
|
return {
|
|
9094
9092
|
topLeft: Xt(!l || r.top || r.left, o.topLeft, 0, a),
|
|
9095
9093
|
topRight: Xt(!l || r.top || r.right, o.topRight, 0, a),
|
|
@@ -9123,7 +9121,7 @@ function dd(i) {
|
|
|
9123
9121
|
}
|
|
9124
9122
|
function cs(i, t, e, s) {
|
|
9125
9123
|
const n = t === null, o = e === null, r = i && !(n && o) && Ia(i, s);
|
|
9126
|
-
return r && (n ||
|
|
9124
|
+
return r && (n || Tt(t, r.left, r.right)) && (o || Tt(e, r.top, r.bottom));
|
|
9127
9125
|
}
|
|
9128
9126
|
function gd(i) {
|
|
9129
9127
|
return i.topLeft || i.topRight || i.bottomLeft || i.bottomRight;
|
|
@@ -9220,7 +9218,7 @@ function bd(i) {
|
|
|
9220
9218
|
let t = 0;
|
|
9221
9219
|
return (e, s) => {
|
|
9222
9220
|
const n = i.getDatasetMeta(s).controller;
|
|
9223
|
-
n instanceof
|
|
9221
|
+
n instanceof he ? t = wd(e, t) : n instanceof _e ? t = md(e, t) : n && (t = pd(e, t));
|
|
9224
9222
|
};
|
|
9225
9223
|
}
|
|
9226
9224
|
function io(i) {
|
|
@@ -9315,7 +9313,7 @@ function xd(i, t) {
|
|
|
9315
9313
|
const e = t.length;
|
|
9316
9314
|
let s = 0, n;
|
|
9317
9315
|
const { iScale: o } = i, { min: a, max: r, minDefined: l, maxDefined: A } = o.getUserBounds();
|
|
9318
|
-
return l && (s = tt(
|
|
9316
|
+
return l && (s = tt(Rt(t, o.axis, a).lo, 0, e - 1)), A ? n = tt(Rt(t, o.axis, r).hi + 1, s, e) - s : n = e - s, {
|
|
9319
9317
|
start: s,
|
|
9320
9318
|
count: n
|
|
9321
9319
|
};
|
|
@@ -9559,7 +9557,7 @@ function Sd(i, t, e) {
|
|
|
9559
9557
|
let r = !1, l = !1;
|
|
9560
9558
|
for (let A = 0; A < o.length; A++) {
|
|
9561
9559
|
const c = o[A], h = a[c.start][e], d = a[c.end][e];
|
|
9562
|
-
if (
|
|
9560
|
+
if (Tt(n, h, d)) {
|
|
9563
9561
|
r = n === h, l = n === d;
|
|
9564
9562
|
break;
|
|
9565
9563
|
}
|
|
@@ -9856,7 +9854,7 @@ class co extends Gt {
|
|
|
9856
9854
|
}, Q = l.xPlus(v, u / 2), O = y + d;
|
|
9857
9855
|
ia(n, k, Q, O, a.pointStyleWidth && u);
|
|
9858
9856
|
} else {
|
|
9859
|
-
const k = y + Math.max((h - f) / 2, 0), Q = l.leftForLtr(v, u), O =
|
|
9857
|
+
const k = y + Math.max((h - f) / 2, 0), Q = l.leftForLtr(v, u), O = de(C.borderRadius);
|
|
9860
9858
|
n.beginPath(), Object.values(O).some((it) => it !== 0) ? oi(n, {
|
|
9861
9859
|
x: Q,
|
|
9862
9860
|
y: k,
|
|
@@ -9867,7 +9865,7 @@ class co extends Gt {
|
|
|
9867
9865
|
}
|
|
9868
9866
|
n.restore();
|
|
9869
9867
|
}, m = function(v, y, C) {
|
|
9870
|
-
|
|
9868
|
+
fe(n, C.text, v, y + p / 2, A, {
|
|
9871
9869
|
strikethrough: C.hidden,
|
|
9872
9870
|
textAlign: l.textAlign(C.textAlign)
|
|
9873
9871
|
});
|
|
@@ -9910,7 +9908,7 @@ class co extends Gt {
|
|
|
9910
9908
|
c = A + nt(t.align, this.top, this.bottom - u - t.labels.padding - this._computeTitleHeight());
|
|
9911
9909
|
}
|
|
9912
9910
|
const g = nt(r, h, h + d);
|
|
9913
|
-
a.textAlign = o.textAlign(Ss(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string,
|
|
9911
|
+
a.textAlign = o.textAlign(Ss(r)), a.textBaseline = "middle", a.strokeStyle = e.color, a.fillStyle = e.color, a.font = s.string, fe(a, e.text, g, c, s);
|
|
9914
9912
|
}
|
|
9915
9913
|
_computeTitleHeight() {
|
|
9916
9914
|
const t = this.options.title, e = _(t.font), s = at(t.padding);
|
|
@@ -9918,9 +9916,9 @@ class co extends Gt {
|
|
|
9918
9916
|
}
|
|
9919
9917
|
_getLegendItemAt(t, e) {
|
|
9920
9918
|
let s, n, o;
|
|
9921
|
-
if (
|
|
9919
|
+
if (Tt(t, this.left, this.right) && Tt(e, this.top, this.bottom)) {
|
|
9922
9920
|
for (o = this.legendHitBoxes, s = 0; s < o.length; ++s)
|
|
9923
|
-
if (n = o[s],
|
|
9921
|
+
if (n = o[s], Tt(t, n.left, n.left + n.width) && Tt(e, n.top, n.top + n.height))
|
|
9924
9922
|
return this.legendItems[s];
|
|
9925
9923
|
}
|
|
9926
9924
|
return null;
|
|
@@ -10090,7 +10088,7 @@ class Ks extends Gt {
|
|
|
10090
10088
|
if (!e.display)
|
|
10091
10089
|
return;
|
|
10092
10090
|
const s = _(e.font), o = s.lineHeight / 2 + this._padding.top, { titleX: a, titleY: r, maxWidth: l, rotation: A } = this._drawArgs(o);
|
|
10093
|
-
|
|
10091
|
+
fe(t, e.text, 0, 0, s, {
|
|
10094
10092
|
color: e.color,
|
|
10095
10093
|
maxWidth: l,
|
|
10096
10094
|
rotation: A,
|
|
@@ -10226,7 +10224,7 @@ const Ze = {
|
|
|
10226
10224
|
function Ct(i, t) {
|
|
10227
10225
|
return t && (j(t) ? Array.prototype.push.apply(i, t) : i.push(t)), i;
|
|
10228
10226
|
}
|
|
10229
|
-
function
|
|
10227
|
+
function Ot(i) {
|
|
10230
10228
|
return (typeof i == "string" || i instanceof String) && i.indexOf(`
|
|
10231
10229
|
`) > -1 ? i.split(`
|
|
10232
10230
|
`) : i;
|
|
@@ -10294,7 +10292,7 @@ function ag(i, t, e) {
|
|
|
10294
10292
|
return t === "top" ? s += e : t === "bottom" ? s -= n + e : s -= n / 2, s;
|
|
10295
10293
|
}
|
|
10296
10294
|
function uo(i, t, e, s) {
|
|
10297
|
-
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, A = n + o, { topLeft: c, topRight: h, bottomLeft: d, bottomRight: g } =
|
|
10295
|
+
const { caretSize: n, caretPadding: o, cornerRadius: a } = i, { xAlign: r, yAlign: l } = e, A = n + o, { topLeft: c, topRight: h, bottomLeft: d, bottomRight: g } = de(a);
|
|
10298
10296
|
let u = og(t, r);
|
|
10299
10297
|
const f = ag(t, l, A);
|
|
10300
10298
|
return l === "center" ? r === "left" ? u += A : r === "right" && (u -= A) : r === "left" ? u -= Math.max(c, d) + n : r === "right" && (u += Math.max(h, g) + n), {
|
|
@@ -10307,7 +10305,7 @@ function Ci(i, t, e) {
|
|
|
10307
10305
|
return t === "center" ? i.x + i.width / 2 : t === "right" ? i.x + i.width - s.right : i.x + s.left;
|
|
10308
10306
|
}
|
|
10309
10307
|
function fo(i) {
|
|
10310
|
-
return Ct([],
|
|
10308
|
+
return Ct([], Ot(i));
|
|
10311
10309
|
}
|
|
10312
10310
|
function rg(i, t, e) {
|
|
10313
10311
|
return ee(i, {
|
|
@@ -10321,7 +10319,7 @@ function po(i, t) {
|
|
|
10321
10319
|
return e ? i.override(e) : i;
|
|
10322
10320
|
}
|
|
10323
10321
|
const La = {
|
|
10324
|
-
beforeTitle:
|
|
10322
|
+
beforeTitle: Qt,
|
|
10325
10323
|
title(i) {
|
|
10326
10324
|
if (i.length > 0) {
|
|
10327
10325
|
const t = i[0], e = t.chart.data.labels, s = e ? e.length : 0;
|
|
@@ -10334,9 +10332,9 @@ const La = {
|
|
|
10334
10332
|
}
|
|
10335
10333
|
return "";
|
|
10336
10334
|
},
|
|
10337
|
-
afterTitle:
|
|
10338
|
-
beforeBody:
|
|
10339
|
-
beforeLabel:
|
|
10335
|
+
afterTitle: Qt,
|
|
10336
|
+
beforeBody: Qt,
|
|
10337
|
+
beforeLabel: Qt,
|
|
10340
10338
|
label(i) {
|
|
10341
10339
|
if (this && this.options && this.options.mode === "dataset")
|
|
10342
10340
|
return i.label + ": " + i.formattedValue || i.formattedValue;
|
|
@@ -10366,11 +10364,11 @@ const La = {
|
|
|
10366
10364
|
rotation: e.rotation
|
|
10367
10365
|
};
|
|
10368
10366
|
},
|
|
10369
|
-
afterLabel:
|
|
10370
|
-
afterBody:
|
|
10371
|
-
beforeFooter:
|
|
10372
|
-
footer:
|
|
10373
|
-
afterFooter:
|
|
10367
|
+
afterLabel: Qt,
|
|
10368
|
+
afterBody: Qt,
|
|
10369
|
+
beforeFooter: Qt,
|
|
10370
|
+
footer: Qt,
|
|
10371
|
+
afterFooter: Qt
|
|
10374
10372
|
};
|
|
10375
10373
|
function ct(i, t, e, s) {
|
|
10376
10374
|
const n = i[t].call(e, s);
|
|
@@ -10396,7 +10394,7 @@ class xs extends Gt {
|
|
|
10396
10394
|
getTitle(t, e) {
|
|
10397
10395
|
const { callbacks: s } = e, n = ct(s, "beforeTitle", this, t), o = ct(s, "title", this, t), a = ct(s, "afterTitle", this, t);
|
|
10398
10396
|
let r = [];
|
|
10399
|
-
return r = Ct(r,
|
|
10397
|
+
return r = Ct(r, Ot(n)), r = Ct(r, Ot(o)), r = Ct(r, Ot(a)), r;
|
|
10400
10398
|
}
|
|
10401
10399
|
getBeforeBody(t, e) {
|
|
10402
10400
|
return fo(ct(e.callbacks, "beforeBody", this, t));
|
|
@@ -10409,7 +10407,7 @@ class xs extends Gt {
|
|
|
10409
10407
|
lines: [],
|
|
10410
10408
|
after: []
|
|
10411
10409
|
}, r = po(s, o);
|
|
10412
|
-
Ct(a.before,
|
|
10410
|
+
Ct(a.before, Ot(ct(r, "beforeLabel", this, o))), Ct(a.lines, ct(r, "label", this, o)), Ct(a.after, Ot(ct(r, "afterLabel", this, o))), n.push(a);
|
|
10413
10411
|
}), n;
|
|
10414
10412
|
}
|
|
10415
10413
|
getAfterBody(t, e) {
|
|
@@ -10418,7 +10416,7 @@ class xs extends Gt {
|
|
|
10418
10416
|
getFooter(t, e) {
|
|
10419
10417
|
const { callbacks: s } = e, n = ct(s, "beforeFooter", this, t), o = ct(s, "footer", this, t), a = ct(s, "afterFooter", this, t);
|
|
10420
10418
|
let r = [];
|
|
10421
|
-
return r = Ct(r,
|
|
10419
|
+
return r = Ct(r, Ot(n)), r = Ct(r, Ot(o)), r = Ct(r, Ot(a)), r;
|
|
10422
10420
|
}
|
|
10423
10421
|
_createItems(t) {
|
|
10424
10422
|
const e = this._active, s = this.chart.data, n = [], o = [], a = [];
|
|
@@ -10462,7 +10460,7 @@ class xs extends Gt {
|
|
|
10462
10460
|
e.lineTo(o.x1, o.y1), e.lineTo(o.x2, o.y2), e.lineTo(o.x3, o.y3);
|
|
10463
10461
|
}
|
|
10464
10462
|
getCaretPosition(t, e, s) {
|
|
10465
|
-
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: A, bottomLeft: c, bottomRight: h } =
|
|
10463
|
+
const { xAlign: n, yAlign: o } = this, { caretSize: a, cornerRadius: r } = s, { topLeft: l, topRight: A, bottomLeft: c, bottomRight: h } = de(r), { x: d, y: g } = t, { width: u, height: f } = e;
|
|
10466
10464
|
let p, w, m, x, G, D;
|
|
10467
10465
|
return o === "center" ? (G = g + f / 2, n === "left" ? (p = d, w = p - a, x = G + a, D = G - a) : (p = d + u, w = p + a, x = G - a, D = G + a), m = p) : (n === "left" ? w = d + Math.max(l, c) + a : n === "right" ? w = d + u - Math.max(A, h) - a : w = this.caretX, o === "top" ? (x = g, G = x - a, p = w - a, m = w + a) : (x = g + f, G = x + a, p = w + a, m = w - a), D = x), {
|
|
10468
10466
|
x1: p,
|
|
@@ -10494,7 +10492,7 @@ class xs extends Gt {
|
|
|
10494
10492
|
t.strokeStyle = o.multiKeyBackground, t.fillStyle = o.multiKeyBackground, ws(t, f, p, w), t.strokeStyle = a.borderColor, t.fillStyle = a.backgroundColor, ws(t, f, p, w);
|
|
10495
10493
|
} else {
|
|
10496
10494
|
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;
|
|
10497
|
-
const f = n.leftForLtr(d, A), p = n.leftForLtr(n.xPlus(d, 1), A - 2), w =
|
|
10495
|
+
const f = n.leftForLtr(d, A), p = n.leftForLtr(n.xPlus(d, 1), A - 2), w = de(a.borderRadius);
|
|
10498
10496
|
Object.values(w).some((m) => m !== 0) ? (t.beginPath(), t.fillStyle = o.multiKeyBackground, oi(t, {
|
|
10499
10497
|
x: f,
|
|
10500
10498
|
y: u,
|
|
@@ -10535,7 +10533,7 @@ class xs extends Gt {
|
|
|
10535
10533
|
}
|
|
10536
10534
|
}
|
|
10537
10535
|
drawBackground(t, e, s, n) {
|
|
10538
|
-
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: A, height: c } = s, { topLeft: h, topRight: d, bottomLeft: g, bottomRight: u } =
|
|
10536
|
+
const { xAlign: o, yAlign: a } = this, { x: r, y: l } = t, { width: A, height: c } = s, { topLeft: h, topRight: d, bottomLeft: g, bottomRight: u } = de(n.cornerRadius);
|
|
10539
10537
|
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 + A - d, l), e.quadraticCurveTo(r + A, l, r + A, l + d), a === "center" && o === "right" && this.drawCaret(t, e, s, n), e.lineTo(r + A, l + c - u), e.quadraticCurveTo(r + A, l + c, r + A - u, l + c), a === "bottom" && this.drawCaret(t, e, s, n), e.lineTo(r + g, l + c), e.quadraticCurveTo(r, l + c, r, l + c - 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();
|
|
10540
10538
|
}
|
|
10541
10539
|
_updateAnimationTarget(t) {
|
|
@@ -10750,7 +10748,7 @@ function wo(i) {
|
|
|
10750
10748
|
const t = this.getLabels();
|
|
10751
10749
|
return i >= 0 && i < t.length ? t[i] : i;
|
|
10752
10750
|
}
|
|
10753
|
-
class Ys extends
|
|
10751
|
+
class Ys extends De {
|
|
10754
10752
|
constructor(t) {
|
|
10755
10753
|
super(t), this._startValue = void 0, this._valueRange = 0, this._addedLabels = [];
|
|
10756
10754
|
}
|
|
@@ -10846,7 +10844,7 @@ function mo(i, t, { horizontal: e, minRotation: s }) {
|
|
|
10846
10844
|
const n = bt(s), o = (e ? Math.sin(n) : Math.cos(n)) || 1e-3, a = 0.75 * t * ("" + i).length;
|
|
10847
10845
|
return Math.min(t / o, a);
|
|
10848
10846
|
}
|
|
10849
|
-
class Ki extends
|
|
10847
|
+
class Ki extends De {
|
|
10850
10848
|
constructor(t) {
|
|
10851
10849
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._endValue = void 0, this._valueRange = 0;
|
|
10852
10850
|
}
|
|
@@ -10928,7 +10926,7 @@ Y(vs, "id", "linear"), Y(vs, "defaults", {
|
|
|
10928
10926
|
callback: Xi.formatters.numeric
|
|
10929
10927
|
}
|
|
10930
10928
|
});
|
|
10931
|
-
const ri = (i) => Math.floor(Kt(i)),
|
|
10929
|
+
const ri = (i) => Math.floor(Kt(i)), le = (i, t) => Math.pow(10, ri(i) + t);
|
|
10932
10930
|
function bo(i) {
|
|
10933
10931
|
return i / Math.pow(10, ri(i)) === 1;
|
|
10934
10932
|
}
|
|
@@ -10964,7 +10962,7 @@ function fg(i, { min: t, max: e }) {
|
|
|
10964
10962
|
significand: h
|
|
10965
10963
|
}), s;
|
|
10966
10964
|
}
|
|
10967
|
-
class ys extends
|
|
10965
|
+
class ys extends De {
|
|
10968
10966
|
constructor(t) {
|
|
10969
10967
|
super(t), this.start = void 0, this.end = void 0, this._startValue = void 0, this._valueRange = 0;
|
|
10970
10968
|
}
|
|
@@ -10981,13 +10979,13 @@ class ys extends Me {
|
|
|
10981
10979
|
}
|
|
10982
10980
|
determineDataLimits() {
|
|
10983
10981
|
const { min: t, max: e } = this.getMinMax(!0);
|
|
10984
|
-
this.min = Z(t) ? Math.max(0, t) : null, this.max = Z(e) ? Math.max(0, e) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !Z(this._userMin) && (this.min = t ===
|
|
10982
|
+
this.min = Z(t) ? Math.max(0, t) : null, this.max = Z(e) ? Math.max(0, e) : null, this.options.beginAtZero && (this._zero = !0), this._zero && this.min !== this._suggestedMin && !Z(this._userMin) && (this.min = t === le(this.min, 0) ? le(this.min, -1) : le(this.min, 0)), this.handleTickRangeOptions();
|
|
10985
10983
|
}
|
|
10986
10984
|
handleTickRangeOptions() {
|
|
10987
10985
|
const { minDefined: t, maxDefined: e } = this.getUserBounds();
|
|
10988
10986
|
let s = this.min, n = this.max;
|
|
10989
10987
|
const o = (r) => s = t ? s : r, a = (r) => n = e ? n : r;
|
|
10990
|
-
s === n && (s <= 0 ? (o(1), a(10)) : (o(
|
|
10988
|
+
s === n && (s <= 0 ? (o(1), a(10)) : (o(le(s, -1)), a(le(n, 1)))), s <= 0 && o(le(n, -1)), n <= 0 && a(le(s, 1)), this.min = s, this.max = n;
|
|
10991
10989
|
}
|
|
10992
10990
|
buildTicks() {
|
|
10993
10991
|
const t = this.options, e = {
|
|
@@ -11086,16 +11084,16 @@ function Mg(i, t) {
|
|
|
11086
11084
|
if (!t)
|
|
11087
11085
|
return !0;
|
|
11088
11086
|
const { left: e, top: s, right: n, bottom: o } = i;
|
|
11089
|
-
return !(
|
|
11087
|
+
return !(jt({
|
|
11090
11088
|
x: e,
|
|
11091
11089
|
y: s
|
|
11092
|
-
}, t) ||
|
|
11090
|
+
}, t) || jt({
|
|
11093
11091
|
x: e,
|
|
11094
11092
|
y: o
|
|
11095
|
-
}, t) ||
|
|
11093
|
+
}, t) || jt({
|
|
11096
11094
|
x: n,
|
|
11097
11095
|
y: s
|
|
11098
|
-
}, t) ||
|
|
11096
|
+
}, t) || jt({
|
|
11099
11097
|
x: n,
|
|
11100
11098
|
y: o
|
|
11101
11099
|
}, t));
|
|
@@ -11125,7 +11123,7 @@ function xg(i, t, e) {
|
|
|
11125
11123
|
function Yg(i, t, e) {
|
|
11126
11124
|
const { left: s, top: n, right: o, bottom: a } = e, { backdropColor: r } = t;
|
|
11127
11125
|
if (!z(r)) {
|
|
11128
|
-
const l =
|
|
11126
|
+
const l = de(t.borderRadius), A = at(t.backdropPadding);
|
|
11129
11127
|
i.fillStyle = r;
|
|
11130
11128
|
const c = s - A.left, h = n - A.top, d = o - s + A.width, g = a - n + A.height;
|
|
11131
11129
|
Object.values(l).some((u) => u !== 0) ? (i.beginPath(), oi(i, {
|
|
@@ -11146,7 +11144,7 @@ function vg(i, t) {
|
|
|
11146
11144
|
const a = s.setContext(i.getPointLabelContext(n));
|
|
11147
11145
|
Yg(e, a, o);
|
|
11148
11146
|
const r = _(a.font), { x: l, y: A, textAlign: c } = o;
|
|
11149
|
-
|
|
11147
|
+
fe(e, i._pointLabels[n], l, A + r.lineHeight / 2, r, {
|
|
11150
11148
|
color: a.color,
|
|
11151
11149
|
textAlign: c,
|
|
11152
11150
|
textBaseline: "middle"
|
|
@@ -11293,7 +11291,7 @@ class Ke extends Ki {
|
|
|
11293
11291
|
const h = at(A.backdropPadding);
|
|
11294
11292
|
t.fillRect(-a / 2 - h.left, -o - c.size / 2 - h.top, a + h.width, c.size + h.height);
|
|
11295
11293
|
}
|
|
11296
|
-
|
|
11294
|
+
fe(t, r.label, 0, -o, c, {
|
|
11297
11295
|
color: A.color,
|
|
11298
11296
|
strokeColor: A.textStrokeColor,
|
|
11299
11297
|
strokeWidth: A.textStrokeWidth
|
|
@@ -11446,7 +11444,7 @@ function vo(i, t, e) {
|
|
|
11446
11444
|
});
|
|
11447
11445
|
return o === 0 || !e ? s : kg(i, s, n, e);
|
|
11448
11446
|
}
|
|
11449
|
-
class li extends
|
|
11447
|
+
class li extends De {
|
|
11450
11448
|
constructor(t) {
|
|
11451
11449
|
super(t), this._cache = {
|
|
11452
11450
|
data: [],
|
|
@@ -11611,7 +11609,7 @@ Y(li, "id", "time"), Y(li, "defaults", {
|
|
|
11611
11609
|
});
|
|
11612
11610
|
function Ii(i, t, e) {
|
|
11613
11611
|
let s = 0, n = i.length - 1, o, a, r, l;
|
|
11614
|
-
e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } =
|
|
11612
|
+
e ? (t >= i[s].pos && t <= i[n].pos && ({ lo: s, hi: n } = Rt(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 } = Rt(i, "time", t)), { time: o, pos: r } = i[s], { time: a, pos: l } = i[n]);
|
|
11615
11613
|
const A = a - o;
|
|
11616
11614
|
return A ? r + (l - r) * (t - o) / A : r;
|
|
11617
11615
|
}
|
|
@@ -11682,7 +11680,7 @@ const Pg = [
|
|
|
11682
11680
|
Ag,
|
|
11683
11681
|
Qg
|
|
11684
11682
|
];
|
|
11685
|
-
|
|
11683
|
+
Lt.register(...Pg);
|
|
11686
11684
|
var Og = Object.defineProperty, zg = Object.getOwnPropertyDescriptor, Wt = (i, t, e, s) => {
|
|
11687
11685
|
for (var n = s > 1 ? void 0 : s ? zg(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
11688
11686
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
@@ -11691,7 +11689,7 @@ var Og = Object.defineProperty, zg = Object.getOwnPropertyDescriptor, Wt = (i, t
|
|
|
11691
11689
|
let xt = class extends J {
|
|
11692
11690
|
constructor() {
|
|
11693
11691
|
super(...arguments), this.chartTitle = "", this.chartType = "", this.chartLabels = [], this.chartDataSets = [], this.chartOptions = {}, this.isLoading = 0, this.createChart = () => {
|
|
11694
|
-
this._chart = new
|
|
11692
|
+
this._chart = new Lt(
|
|
11695
11693
|
this._chartCanvas,
|
|
11696
11694
|
{
|
|
11697
11695
|
type: this.chartType,
|
|
@@ -11744,7 +11742,7 @@ Wt([
|
|
|
11744
11742
|
M({ attribute: "is-loading", type: Number })
|
|
11745
11743
|
], xt.prototype, "isLoading", 2);
|
|
11746
11744
|
Wt([
|
|
11747
|
-
|
|
11745
|
+
we("#chart-canvas")
|
|
11748
11746
|
], xt.prototype, "_chartCanvas", 2);
|
|
11749
11747
|
Wt([
|
|
11750
11748
|
F()
|
|
@@ -12211,12 +12209,12 @@ let T = class extends J {
|
|
|
12211
12209
|
<tr>${this.generateTableHeadColumns()}</tr>
|
|
12212
12210
|
</thead>
|
|
12213
12211
|
<tbody>
|
|
12214
|
-
${this.dataSource.length > 0 ?
|
|
12212
|
+
${this.dataSource.length > 0 ? St(
|
|
12215
12213
|
this.withPagination,
|
|
12216
12214
|
() => this._paginatedArray.map((i) => b`
|
|
12217
12215
|
<tr>
|
|
12218
12216
|
${this.generateDataColumns(i)}
|
|
12219
|
-
${
|
|
12217
|
+
${St(
|
|
12220
12218
|
this.rowActions.length > 0,
|
|
12221
12219
|
() => b`
|
|
12222
12220
|
<td>
|
|
@@ -12246,7 +12244,7 @@ let T = class extends J {
|
|
|
12246
12244
|
() => this.dataSource.map((i) => b`
|
|
12247
12245
|
<tr>
|
|
12248
12246
|
${this.generateDataColumns(i)}
|
|
12249
|
-
${
|
|
12247
|
+
${St(
|
|
12250
12248
|
this.rowActions.length > 0,
|
|
12251
12249
|
() => b`
|
|
12252
12250
|
<td>
|
|
@@ -12285,7 +12283,7 @@ let T = class extends J {
|
|
|
12285
12283
|
</table>
|
|
12286
12284
|
</div>
|
|
12287
12285
|
<div class='card__footer'>
|
|
12288
|
-
${
|
|
12286
|
+
${St(
|
|
12289
12287
|
this.withPagination,
|
|
12290
12288
|
() => b`
|
|
12291
12289
|
<div class='pagination-control'>
|
|
@@ -12390,7 +12388,7 @@ W([
|
|
|
12390
12388
|
F()
|
|
12391
12389
|
], T.prototype, "_dataKey", 2);
|
|
12392
12390
|
W([
|
|
12393
|
-
|
|
12391
|
+
we(".current-page-input")
|
|
12394
12392
|
], T.prototype, "_targetInput", 2);
|
|
12395
12393
|
W([
|
|
12396
12394
|
F()
|
|
@@ -12558,6 +12556,55 @@ const su = B`
|
|
|
12558
12556
|
align-self: center;
|
|
12559
12557
|
grid-area: a;
|
|
12560
12558
|
}
|
|
12559
|
+
|
|
12560
|
+
.data-card-loader
|
|
12561
|
+
{
|
|
12562
|
+
border-radius: 0.625rem;
|
|
12563
|
+
padding: 1rem;
|
|
12564
|
+
background: #f5f5f5;
|
|
12565
|
+
}
|
|
12566
|
+
|
|
12567
|
+
.icon-container-loader
|
|
12568
|
+
{
|
|
12569
|
+
width: 3.125rem;
|
|
12570
|
+
height: 3.125rem;
|
|
12571
|
+
border-radius: 0.625rem;
|
|
12572
|
+
grid-area: ic;
|
|
12573
|
+
}
|
|
12574
|
+
|
|
12575
|
+
.loader-line
|
|
12576
|
+
{
|
|
12577
|
+
height: 0.625rem;
|
|
12578
|
+
border-radius: 0.1875rem;
|
|
12579
|
+
}
|
|
12580
|
+
|
|
12581
|
+
.loader-line-1
|
|
12582
|
+
{
|
|
12583
|
+
width: 80%;
|
|
12584
|
+
align-self: end;
|
|
12585
|
+
grid-area: tll;
|
|
12586
|
+
}
|
|
12587
|
+
|
|
12588
|
+
.loader-line-2
|
|
12589
|
+
{
|
|
12590
|
+
width: 100%;
|
|
12591
|
+
grid-area: bll;
|
|
12592
|
+
}
|
|
12593
|
+
|
|
12594
|
+
.loader-line, .icon-container-loader
|
|
12595
|
+
{
|
|
12596
|
+
background-color: #e4e5e9;
|
|
12597
|
+
background-image: linear-gradient(to right, #e4e5e9 0%, #f5f5f5 20%, #e4e5e9 40%, #e4e5e9 100%);
|
|
12598
|
+
background-size: 28.125rem 25rem;
|
|
12599
|
+
background-repeat: no-repeat;
|
|
12600
|
+
animation: shimer 1s linear infinite;
|
|
12601
|
+
}
|
|
12602
|
+
|
|
12603
|
+
@keyframes shimer
|
|
12604
|
+
{
|
|
12605
|
+
0% { background-position: -28.125rem 0; }
|
|
12606
|
+
100% { background-position: 28.125rem 0; }
|
|
12607
|
+
}
|
|
12561
12608
|
`, nu = B`
|
|
12562
12609
|
.data-header
|
|
12563
12610
|
{
|
|
@@ -12614,6 +12661,24 @@ const su = B`
|
|
|
12614
12661
|
"dh"
|
|
12615
12662
|
"dtxt";
|
|
12616
12663
|
}
|
|
12664
|
+
|
|
12665
|
+
.data-card-loader
|
|
12666
|
+
{
|
|
12667
|
+
display: grid;
|
|
12668
|
+
grid-template-columns: max-content 1fr;
|
|
12669
|
+
grid-template-rows: repeat(2, max-content);
|
|
12670
|
+
grid-column-gap: 1rem;
|
|
12671
|
+
grid-row-gap: 0.5rem;
|
|
12672
|
+
grid-template-areas: "ic tll" "ic bll";
|
|
12673
|
+
}
|
|
12674
|
+
|
|
12675
|
+
.data-card-loader--no-icon
|
|
12676
|
+
{
|
|
12677
|
+
grid-template-columns: 1fr;
|
|
12678
|
+
grid-column-gap: unset;
|
|
12679
|
+
align-content: center;
|
|
12680
|
+
grid-template-areas: "tll" "bll";
|
|
12681
|
+
}
|
|
12617
12682
|
`, au = B`
|
|
12618
12683
|
.icon-container
|
|
12619
12684
|
{
|
|
@@ -12639,33 +12704,55 @@ const su = B`
|
|
|
12639
12704
|
height: var(--icon-height, 1.5625rem);
|
|
12640
12705
|
}
|
|
12641
12706
|
`;
|
|
12642
|
-
var lu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor,
|
|
12707
|
+
var lu = Object.defineProperty, Au = Object.getOwnPropertyDescriptor, ie = (i, t, e, s) => {
|
|
12643
12708
|
for (var n = s > 1 ? void 0 : s ? Au(t, e) : t, o = i.length - 1, a; o >= 0; o--)
|
|
12644
12709
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
12645
12710
|
return s && n && lu(t, e, n), n;
|
|
12646
12711
|
};
|
|
12647
|
-
let
|
|
12712
|
+
let kt = class extends J {
|
|
12648
12713
|
constructor() {
|
|
12649
|
-
super(...arguments), this.dataHeader = "", this.dataText = "", this.dataItemIcon = "", this.withoutIcon = !1, this.withoutAction = !1, this.withoutIconandAction = !1, this.renderDataItem = () => {
|
|
12714
|
+
super(...arguments), this.dataHeader = "", this.dataText = "", this.dataItemIcon = "", this.withoutIcon = !1, this.withoutAction = !1, this.withoutIconandAction = !1, this.isLoading = 0, this.renderDataItem = () => {
|
|
12650
12715
|
let i;
|
|
12651
|
-
return this.withoutIcon ? i = b`
|
|
12716
|
+
return this.withoutIcon ? i = this.isLoading ? b`
|
|
12717
|
+
<div class='data-card-loader data-card-loader--no-icon'>
|
|
12718
|
+
<div class='loader-line loader-line-1'></div>
|
|
12719
|
+
<div class='loader-line loader-line-2'></div>
|
|
12720
|
+
</div>
|
|
12721
|
+
` : b`
|
|
12652
12722
|
<div class='data-list-item data-list-item--no-icon'>
|
|
12653
12723
|
<h6 class='data-header'>${this.dataHeader}</h4>
|
|
12654
12724
|
<p class='data-text'>${this.dataText}</p>
|
|
12655
12725
|
|
|
12656
12726
|
<slot></slot>
|
|
12657
|
-
</div>` : this.withoutAction ? i = b`
|
|
12727
|
+
</div>` : this.withoutAction ? i = this.isLoading ? b`
|
|
12728
|
+
<div class='data-card-loader'>
|
|
12729
|
+
<div class='icon-container-loader'></div>
|
|
12730
|
+
<div class='loader-line loader-line-1'></div>
|
|
12731
|
+
<div class='loader-line loader-line-2'></div>
|
|
12732
|
+
</div>
|
|
12733
|
+
` : b`
|
|
12658
12734
|
<div class='data-list-item data-list-item--no-action'>
|
|
12659
12735
|
<div class='icon-container'>
|
|
12660
12736
|
<img class='component-icon' src=${this.dataItemIcon} />
|
|
12661
12737
|
</div>
|
|
12662
12738
|
<h6 class='data-header'>${this.dataHeader}</h4>
|
|
12663
12739
|
<p class='data-text'>${this.dataText}</p>
|
|
12664
|
-
</div>` : this.withoutIconandAction ? i = b`
|
|
12740
|
+
</div>` : this.withoutIconandAction ? i = this.isLoading ? b`
|
|
12741
|
+
<div class='data-card-loader data-card-loader--no-icon'>
|
|
12742
|
+
<div class='loader-line loader-line-1'></div>
|
|
12743
|
+
<div class='loader-line loader-line-2'></div>
|
|
12744
|
+
</div>
|
|
12745
|
+
` : b`
|
|
12665
12746
|
<div class='data-list-item data-list-item--no-icon-action'>
|
|
12666
12747
|
<h6 class='data-header'>${this.dataHeader}</h4>
|
|
12667
12748
|
<p class='data-text'>${this.dataText}</p>
|
|
12668
|
-
</div>` : i = b`
|
|
12749
|
+
</div>` : i = this.isLoading ? b`
|
|
12750
|
+
<div class='data-card-loader'>
|
|
12751
|
+
<div class='icon-container-loader'></div>
|
|
12752
|
+
<div class='loader-line loader-line-1'></div>
|
|
12753
|
+
<div class='loader-line loader-line-2'></div>
|
|
12754
|
+
</div>
|
|
12755
|
+
` : b`
|
|
12669
12756
|
<div class='data-list-item'>
|
|
12670
12757
|
<div class='icon-container'>
|
|
12671
12758
|
<img class='component-icon' src=${this.dataItemIcon} />
|
|
@@ -12681,28 +12768,31 @@ let Ft = class extends J {
|
|
|
12681
12768
|
return this.renderDataItem();
|
|
12682
12769
|
}
|
|
12683
12770
|
};
|
|
12684
|
-
|
|
12685
|
-
|
|
12771
|
+
kt.styles = [su, nu, ou, au, ru];
|
|
12772
|
+
ie([
|
|
12686
12773
|
M({ attribute: "data-header" })
|
|
12687
|
-
],
|
|
12688
|
-
|
|
12774
|
+
], kt.prototype, "dataHeader", 2);
|
|
12775
|
+
ie([
|
|
12689
12776
|
M({ attribute: "data-text" })
|
|
12690
|
-
],
|
|
12691
|
-
|
|
12777
|
+
], kt.prototype, "dataText", 2);
|
|
12778
|
+
ie([
|
|
12692
12779
|
M({ attribute: "data-item-icon" })
|
|
12693
|
-
],
|
|
12694
|
-
|
|
12780
|
+
], kt.prototype, "dataItemIcon", 2);
|
|
12781
|
+
ie([
|
|
12695
12782
|
M({ type: Boolean, attribute: "without-icon" })
|
|
12696
|
-
],
|
|
12697
|
-
|
|
12783
|
+
], kt.prototype, "withoutIcon", 2);
|
|
12784
|
+
ie([
|
|
12698
12785
|
M({ type: Boolean, attribute: "without-action" })
|
|
12699
|
-
],
|
|
12700
|
-
|
|
12786
|
+
], kt.prototype, "withoutAction", 2);
|
|
12787
|
+
ie([
|
|
12701
12788
|
M({ type: Boolean, attribute: "without-icon-action" })
|
|
12702
|
-
],
|
|
12703
|
-
|
|
12789
|
+
], kt.prototype, "withoutIconandAction", 2);
|
|
12790
|
+
ie([
|
|
12791
|
+
M({ attribute: "is-loading", type: Number })
|
|
12792
|
+
], kt.prototype, "isLoading", 2);
|
|
12793
|
+
kt = ie([
|
|
12704
12794
|
q("genus-data-list-item")
|
|
12705
|
-
],
|
|
12795
|
+
], kt);
|
|
12706
12796
|
const cu = B`
|
|
12707
12797
|
.upload-label
|
|
12708
12798
|
{
|
|
@@ -12813,7 +12903,7 @@ Be([
|
|
|
12813
12903
|
M({ type: Boolean, attribute: "without-button-text" })
|
|
12814
12904
|
], Nt.prototype, "withoutButtonText", 2);
|
|
12815
12905
|
Be([
|
|
12816
|
-
|
|
12906
|
+
we("#file-input")
|
|
12817
12907
|
], Nt.prototype, "_fileInput", 2);
|
|
12818
12908
|
Nt = Be([
|
|
12819
12909
|
q("genus-file-upload")
|
|
@@ -12875,7 +12965,7 @@ var Du = Object.defineProperty, Bu = Object.getOwnPropertyDescriptor, di = (i, t
|
|
|
12875
12965
|
(a = i[o]) && (n = (s ? a(t, e, n) : a(n)) || n);
|
|
12876
12966
|
return s && n && Du(t, e, n), n;
|
|
12877
12967
|
};
|
|
12878
|
-
let
|
|
12968
|
+
let pe = class extends J {
|
|
12879
12969
|
constructor() {
|
|
12880
12970
|
super(...arguments), this.toggleSwitchValues = [], this.withoutToggleText = !1, this.getInputValue = (i) => {
|
|
12881
12971
|
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 }));
|
|
@@ -12900,22 +12990,22 @@ let fe = class extends J {
|
|
|
12900
12990
|
`;
|
|
12901
12991
|
}
|
|
12902
12992
|
};
|
|
12903
|
-
|
|
12993
|
+
pe.styles = [wu, mu, bu, Mu];
|
|
12904
12994
|
di([
|
|
12905
12995
|
M({ attribute: "toggle-switch-values", type: Array })
|
|
12906
|
-
],
|
|
12996
|
+
], pe.prototype, "toggleSwitchValues", 2);
|
|
12907
12997
|
di([
|
|
12908
12998
|
M({ attribute: "without-toggle-text", type: Boolean })
|
|
12909
|
-
],
|
|
12999
|
+
], pe.prototype, "withoutToggleText", 2);
|
|
12910
13000
|
di([
|
|
12911
13001
|
F()
|
|
12912
|
-
],
|
|
13002
|
+
], pe.prototype, "_toggleCheckBox", 2);
|
|
12913
13003
|
di([
|
|
12914
13004
|
F()
|
|
12915
|
-
],
|
|
12916
|
-
|
|
13005
|
+
], pe.prototype, "_switchValue", 2);
|
|
13006
|
+
pe = di([
|
|
12917
13007
|
q("genus-toggle-switch")
|
|
12918
|
-
],
|
|
13008
|
+
], pe);
|
|
12919
13009
|
const Gu = B`
|
|
12920
13010
|
.input-control
|
|
12921
13011
|
{
|
|
@@ -13079,13 +13169,13 @@ yt([
|
|
|
13079
13169
|
M({ attribute: "slider-max-value", type: Number })
|
|
13080
13170
|
], pt.prototype, "sliderMaxValue", 2);
|
|
13081
13171
|
yt([
|
|
13082
|
-
|
|
13172
|
+
we(".slider-track")
|
|
13083
13173
|
], pt.prototype, "_sliderTrack", 2);
|
|
13084
13174
|
yt([
|
|
13085
|
-
|
|
13175
|
+
we(".min-range-slider")
|
|
13086
13176
|
], pt.prototype, "_minRangeSlider", 2);
|
|
13087
13177
|
yt([
|
|
13088
|
-
|
|
13178
|
+
we(".max-range-slider")
|
|
13089
13179
|
], pt.prototype, "_maxRangeSlider", 2);
|
|
13090
13180
|
yt([
|
|
13091
13181
|
F()
|
|
@@ -13147,8 +13237,8 @@ export {
|
|
|
13147
13237
|
xt as GenusChart,
|
|
13148
13238
|
Ie as GenusCheckBox,
|
|
13149
13239
|
Ru as GenusCheckBoxGroup,
|
|
13150
|
-
|
|
13151
|
-
|
|
13240
|
+
Ft as GenusDataCard,
|
|
13241
|
+
kt as GenusDataListItem,
|
|
13152
13242
|
Vu as GenusDataTable,
|
|
13153
13243
|
et as GenusDatePicker,
|
|
13154
13244
|
ju as GenusDropDownSelect,
|
|
@@ -13156,9 +13246,9 @@ export {
|
|
|
13156
13246
|
Dt as GenusRadioBtnGroup,
|
|
13157
13247
|
pt as GenusRangeSlider,
|
|
13158
13248
|
Su as GenusTabs,
|
|
13159
|
-
|
|
13249
|
+
Vt as GenusTextArea,
|
|
13160
13250
|
$ as GenusTextBox,
|
|
13161
13251
|
Pe as GenusToastMessage,
|
|
13162
|
-
|
|
13252
|
+
pe as GenusToggleSwitch,
|
|
13163
13253
|
Tu as GenusWizard
|
|
13164
13254
|
};
|