@designsystem-se/af 38.0.1-beta.0 → 38.0.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/digi-bar-chart.js +170 -70
- package/components/digi-calendar-datepicker.js +6 -5
- package/components/digi-chart-line.js +12 -8
- package/components/digi-code-block.js +1 -1
- package/components/digi-code-example.js +2 -2
- package/components/digi-dialog.js +1 -0
- package/components/digi-footer.js +1 -0
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-error-list.js +3 -4
- package/components/digi-form-filter.js +1 -1
- package/components/digi-form-radiobutton.js +1 -1
- package/components/digi-form-receipt.js +1 -0
- package/components/digi-form-select-filter.js +1 -0
- package/components/digi-header-navigation.js +1 -0
- package/components/digi-header.js +1 -0
- package/components/digi-navigation-pagination.js +1 -0
- package/components/digi-notification-alert.js +1 -1
- package/components/digi-notification-error-page.js +1 -0
- package/components/digi-progress-circle.js +1 -6
- package/components/digi-tablist.js +5 -5
- package/components/digi-tag.js +1 -1
- package/components/digi-title-logo.js +1 -0
- package/components/digi-tools-feedback.js +1 -0
- package/components/index.js +1 -0
- package/components/{p-57a1c472.js → p-13c09880.js} +2 -2
- package/components/{p-4d2d082d.js → p-75c8d67e.js} +1 -0
- package/components/{p-b24c2842.js → p-77d8d575.js} +2 -2
- package/components/{p-195ca01d.js → p-bc5b7057.js} +1 -0
- package/components/p-be4fd246.js +7 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-bar-chart.cjs.entry.js +170 -70
- package/dist/cjs/digi-button_27.cjs.entry.js +1 -0
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +6 -5
- package/dist/cjs/digi-chart-line.cjs.entry.js +12 -8
- package/dist/cjs/digi-code-block_3.cjs.entry.js +3 -2
- package/dist/cjs/digi-dialog.cjs.entry.js +1 -0
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-error-list.cjs.entry.js +2 -2
- package/dist/cjs/digi-form-receipt.cjs.entry.js +1 -0
- package/dist/cjs/digi-form-select-filter.cjs.entry.js +1 -0
- package/dist/cjs/digi-navigation-pagination.cjs.entry.js +1 -0
- package/dist/cjs/digi-notification-alert.cjs.entry.js +1 -0
- package/dist/cjs/digi-notification-error-page.cjs.entry.js +1 -0
- package/dist/cjs/digi-progress-circle.cjs.entry.js +4 -9
- package/dist/cjs/digi-tablist.cjs.entry.js +5 -5
- package/dist/cjs/digi-tag.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback.cjs.entry.js +1 -0
- package/dist/cjs/index.cjs.js +7 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/progress-circle-role.enum-b7fdcf0c.js +7 -0
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.js +5 -5
- package/dist/collection/components/_chart/bar-chart/bar-chart.js +171 -70
- package/dist/collection/components/_chart/chart-line/chart-line.js +12 -8
- package/dist/collection/components/_form/form-checkbox/form-checkbox.js +2 -2
- package/dist/collection/components/_form/form-error-list/form-error-list.js +1 -7
- package/dist/collection/components/_form/form-radiobutton/form-radiobutton.js +2 -2
- package/dist/collection/components/_navigation/navigation-tablist/navigation-tablist.js +5 -5
- package/dist/collection/components/_tag/tag/tag.js +1 -1
- package/dist/collection/enums.js +7 -0
- package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +0 -2
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/{p-60738889.entry.js → p-01874a31.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-18880083.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d71c33d8.entry.js → p-37c0ea9e.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-39468f49.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-501f9b16.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-d670e0e0.entry.js → p-54d5aa93.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-59073668.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-8833044b.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-97f66789.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-9dae073c.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-a186888d.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-be4fd246.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-0a6d26f7.entry.js → p-cea5ef63.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-67ba87db.entry.js → p-d3e14568.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-ddd659bf.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-e5bd5a7e.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-ef689144.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/p-f0a405ca.entry.js +1 -0
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-bar-chart.entry.js +170 -70
- package/dist/esm/digi-button_27.entry.js +1 -0
- package/dist/esm/digi-calendar-datepicker.entry.js +6 -5
- package/dist/esm/digi-chart-line.entry.js +12 -8
- package/dist/esm/digi-code-block_3.entry.js +3 -2
- package/dist/esm/digi-dialog.entry.js +1 -0
- package/dist/esm/digi-form-checkbox.entry.js +2 -2
- package/dist/esm/digi-form-error-list.entry.js +2 -2
- package/dist/esm/digi-form-receipt.entry.js +1 -0
- package/dist/esm/digi-form-select-filter.entry.js +1 -0
- package/dist/esm/digi-navigation-pagination.entry.js +1 -0
- package/dist/esm/digi-notification-alert.entry.js +1 -0
- package/dist/esm/digi-notification-error-page.entry.js +1 -0
- package/dist/esm/digi-progress-circle.entry.js +1 -6
- package/dist/esm/digi-tablist.entry.js +5 -5
- package/dist/esm/digi-tag.entry.js +1 -1
- package/dist/esm/digi-tools-feedback.entry.js +1 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/progress-circle-role.enum-7737a2c6.js +7 -0
- package/dist/types/components/_calendar/calendar-datepicker/calendar-datepicker.d.ts +2 -2
- package/dist/types/components/_form/form-error-list/form-error-list.d.ts +0 -1
- package/dist/types/enums.d.ts +7 -0
- package/hydrate/index.js +204 -102
- package/hydrate/index.mjs +204 -102
- package/package.json +1 -1
- package/dist/digi-arbetsformedlingen/p-20693fa2.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3566b732.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-3cda17e1.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-4d84c470.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-50b32151.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-54b6eb3f.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-5ad6d46d.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-6324c9bf.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9062da9b.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-9a456d55.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-a26333e9.entry.js +0 -1
- package/dist/digi-arbetsformedlingen/p-e347aae8.entry.js +0 -1
package/hydrate/index.js
CHANGED
|
@@ -9144,6 +9144,12 @@ var ErrorPageStatusCodes;
|
|
|
9144
9144
|
ErrorPageStatusCodes["BLOCKED"] = "blocked";
|
|
9145
9145
|
})(ErrorPageStatusCodes || (ErrorPageStatusCodes = {}));
|
|
9146
9146
|
|
|
9147
|
+
var ProgressCircleRole;
|
|
9148
|
+
(function (ProgressCircleRole) {
|
|
9149
|
+
ProgressCircleRole["NONE"] = "none";
|
|
9150
|
+
ProgressCircleRole["STATUS"] = "status";
|
|
9151
|
+
})(ProgressCircleRole || (ProgressCircleRole = {}));
|
|
9152
|
+
|
|
9147
9153
|
var ProgressIndicatorRole;
|
|
9148
9154
|
(function (ProgressIndicatorRole) {
|
|
9149
9155
|
ProgressIndicatorRole["NONE"] = "";
|
|
@@ -9771,7 +9777,7 @@ class CalendarDatepicker {
|
|
|
9771
9777
|
return this.afSelectedDates;
|
|
9772
9778
|
}
|
|
9773
9779
|
render() {
|
|
9774
|
-
return (hAsync(Host, { key: '
|
|
9780
|
+
return (hAsync(Host, { key: '6b080d933e012fe050aee0181f927c3252b0bb7e', tabindex: -1 }, hAsync("div", { key: 'ec59a7f209f7a5e06c62d4443fbca980b1030d12', class: Object.assign({ 'digi-calendar-datepicker': true }, this.cssModifiers), id: `${this.afId}-datepicker` }, hAsync("div", { key: '2bf3bd4f0a82c14c4fb04610dab19767fbba595d', class: "digi-calendar-datepicker__input-field" }, hAsync("digi-form-input", { key: 'ebde8123611c021b60104f75c2e4085e35fb4697', ref: (el) => (this._input = el), class: 'digi-calendar-datepicker__input-component', afLabel: this.afLabel, afLabelDescription: this.afLabelDescription, afName: this.afName, afValue: this.inputValue, afValidation: this.hasBuiltInValidationError()
|
|
9775
9781
|
? FormInputValidation.ERROR
|
|
9776
9782
|
: this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
|
|
9777
9783
|
evt.stopImmediatePropagation();
|
|
@@ -9788,11 +9794,11 @@ class CalendarDatepicker {
|
|
|
9788
9794
|
e.preventDefault();
|
|
9789
9795
|
const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
|
|
9790
9796
|
focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
|
|
9791
|
-
} }, hAsync("button", { key: '
|
|
9797
|
+
} }, hAsync("button", { key: '04df5ccb789271d7ba2f693b740f316301f9fae0', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
|
|
9792
9798
|
? this.afCloseCalendarAriaLabel
|
|
9793
|
-
: this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, hAsync("digi-icon-calendar-alt", { key: '
|
|
9799
|
+
: this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, hAsync("digi-icon-calendar-alt", { key: '65b9a472f629bbaa46a64c8a304f358da76b0830', class: "digi-calendar-datepicker__button-icon", slot: "icon" })))), hAsync("div", { key: 'd0df89ce680bb2a0ca7f311b2c0ead0f72dc30b6', class: "digi-calendar-datepicker__calendar", id: "calendar-popup" }, hAsync("p", { key: '9796876e15e88b1599d772863c29fc472da24c69', role: "alert", class: "digi-calendar-datepicker__sr-instructions" }, this.showCalendar
|
|
9794
9800
|
? `${_t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
|
|
9795
|
-
: ''), hAsync("digi-calendar", { key: '
|
|
9801
|
+
: ''), hAsync("digi-calendar", { key: 'bd5f34bcdbcb2276b5080c43479337c514861ba9', afActive: this.showCalendar, afShowWeekNumber: this.afShowWeekNumber, afMultipleDates: this.afMultipleDates, afYearSelect: this.afYearSelect, afSelectedDates: this.getSelectedDates, afMinDate: this.afMinDate, afMaxDate: this.afMaxDate, "aria-hidden": !this.showCalendar, afOpenCalendarTo: this.afOpenCalendarTo, onAfOnDateSelectedChange: (evt) => {
|
|
9796
9802
|
evt.stopImmediatePropagation();
|
|
9797
9803
|
this.parseCalendar(evt);
|
|
9798
9804
|
}, onKeyDown: (e) => {
|
|
@@ -9803,7 +9809,7 @@ class CalendarDatepicker {
|
|
|
9803
9809
|
return;
|
|
9804
9810
|
e.preventDefault();
|
|
9805
9811
|
this.focusOnCalendarInput();
|
|
9806
|
-
} })), this.afCloseOnSelect && !this.afMultipleDates && (hAsync("div", { key: '
|
|
9812
|
+
} })), this.afCloseOnSelect && !this.afMultipleDates && (hAsync("div", { key: 'fc150d20f14731e8f67f38c6042e8af4e24eae38', class: "digi-calendar-datepicker__selected-date-alert", role: this.errorMessageIsAlert ? 'alert' : null }, this.afSelectedDates.length > 0
|
|
9807
9813
|
? `${_t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
|
|
9808
9814
|
: '')))));
|
|
9809
9815
|
}
|
|
@@ -14940,7 +14946,13 @@ class ChartLine {
|
|
|
14940
14946
|
this._lineTypes = [null, '18, 7', '8,7', '2,6'];
|
|
14941
14947
|
this._strokeWidth = 2.75;
|
|
14942
14948
|
this._lineCap = 'round';
|
|
14943
|
-
this._strokeGlyphs = [
|
|
14949
|
+
this._strokeGlyphs = [
|
|
14950
|
+
circle,
|
|
14951
|
+
triangle,
|
|
14952
|
+
square,
|
|
14953
|
+
wye,
|
|
14954
|
+
diamond2
|
|
14955
|
+
];
|
|
14944
14956
|
this._toggled = false;
|
|
14945
14957
|
this._tickSize = 0;
|
|
14946
14958
|
// Selection list from legend chips
|
|
@@ -15022,9 +15034,7 @@ class ChartLine {
|
|
|
15022
15034
|
.tickSize(-(this.dims.width - this.margin.left))
|
|
15023
15035
|
.tickFormat((d) => formatLocale(this.axisNumberFormat).format(this.formatStyle)(d)));
|
|
15024
15036
|
}
|
|
15025
|
-
this._yAxisHandle
|
|
15026
|
-
.selectAll('line')
|
|
15027
|
-
.attr('stroke', '#BDBDBD');
|
|
15037
|
+
this._yAxisHandle.selectAll('line').attr('stroke', '#BDBDBD');
|
|
15028
15038
|
this._yAxisHandle.select('.domain').attr('display', 'none');
|
|
15029
15039
|
if (init)
|
|
15030
15040
|
this.leftSetAxis(init);
|
|
@@ -15103,7 +15113,7 @@ class ChartLine {
|
|
|
15103
15113
|
container
|
|
15104
15114
|
.selectAll('.legendSvg')
|
|
15105
15115
|
.filter((...[, i]) => {
|
|
15106
|
-
return i >
|
|
15116
|
+
return i > this._lineTypes.length - 1;
|
|
15107
15117
|
})
|
|
15108
15118
|
.append('path')
|
|
15109
15119
|
.attr('d', (...[, i]) => this.symbolType(i, 70))
|
|
@@ -15260,7 +15270,7 @@ class ChartLine {
|
|
|
15260
15270
|
.selectAll('.symbolGroup')
|
|
15261
15271
|
.data(this.reshapeData(this._chartData.data.series.filter(
|
|
15262
15272
|
// Symbols are only needed, when we are out of line types
|
|
15263
|
-
(...[, index]) => index >
|
|
15273
|
+
(...[, index]) => index > this._lineTypes.length - 1)))
|
|
15264
15274
|
.join((enter) => {
|
|
15265
15275
|
if (!transition) {
|
|
15266
15276
|
enter
|
|
@@ -16254,7 +16264,7 @@ class ChartLine {
|
|
|
16254
16264
|
.attr('class', 'linePath')
|
|
16255
16265
|
.attr('stroke', (d) => this.colorFunction(d))
|
|
16256
16266
|
.attr('stroke-linecap', this._lineCap)
|
|
16257
|
-
.attr('stroke-width', (d) =>
|
|
16267
|
+
.attr('stroke-width', (d) => d.length > 1 ? this._strokeWidth : 4)
|
|
16258
16268
|
.attr('fill', 'none')
|
|
16259
16269
|
.attr('stroke-dasharray', (d, i) => d.length > 1 ? this.dashFunction(d, i) : null)
|
|
16260
16270
|
.attr('d', (d) => this._LineFunc(d.line));
|
|
@@ -16524,7 +16534,7 @@ class ChartLine {
|
|
|
16524
16534
|
heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}>`;
|
|
16525
16535
|
else
|
|
16526
16536
|
heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${this._chartData.subTitle}</p>`;
|
|
16527
|
-
return (hAsync("host", { key: '
|
|
16537
|
+
return (hAsync("host", { key: 'a21c09ee91ccabf90f91d2344d301d26710f9a60', ref: (el) => (this._host = el) }, hAsync("div", { key: 'c97af6a0bbc28675a19c843a3c355b35397e5804', class: "topWrapper", ref: (el) => (this._titleDiv = el) }, hAsync("digi-typography", { key: '76085c6924fd317d4a281e93ca4623b85f0fb867', class: "chartTitle", innerHTML: heading }), hAsync("digi-button", { key: '241e30b3094e8eea86c7c24bb2a90f67ea04ef6f', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${this._chartData.title ? this._chartData.title.toLowerCase() : ''}` }, hAsync("digi-icon-table", { key: '5cc0d03d40d076481d14d0478390b131cdaa61f7', slot: "icon" }), "Visa tabell"), hAsync("digi-button", { key: '241d3e97b9a21f556b3e46cebc63c77ce106d26c', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${this._chartData.title ? this._chartData.title.toLowerCase() : ''}` }, hAsync("digi-icon-chart", { key: 'f0a5c78bc5e04db994559f2ce1a13c0e7285c36d', slot: "icon" }), "Visa diagram"), hAsync("div", { key: 'f7ebab0f90d1a9f9a306470c93ccaaaf0461a9a7', class: "scChartStatus", role: "status", ref: (el) => (this._status = el) })), hAsync("div", { key: '75672c02d61a14741348dc183782df71f3a4db19', class: "chartTooltip", id: this.afId }, hAsync("div", { key: 'b4e03381d825d68af2bdbf859458896c639b6559', class: "tooltipHead" }, hAsync("digi-icon-x", { key: '1301ab00ff3818e0940e69f17aa09b296c04a86c', class: "close" }), ' '), hAsync("div", { key: 'eb01d362db4495c0a3d4396ad4c71c2a952114ad', class: "tooltipBody" })), hAsync("div", { key: 'accd6776d3db14c662ff84b2e826f6cf713ff38d', class: "chart", ref: (el) => (this._chartDiv = el) }), hAsync("div", { key: '507dfba00c88d5b371fd8304053b9b7762506d25', class: "legend", ref: (el) => (this._legendDiv = el) }), hAsync("div", { key: 'cb3fc091c6a557bfd62e8f7d59863e973da0ee53', class: "table", ref: (el) => (this._tableDiv = el) }, ' ')));
|
|
16528
16538
|
}
|
|
16529
16539
|
get element() { return getElement(this); }
|
|
16530
16540
|
static get watchers() { return {
|
|
@@ -20829,7 +20839,7 @@ class FormCheckbox {
|
|
|
20829
20839
|
this.afOnInput.emit(e);
|
|
20830
20840
|
}
|
|
20831
20841
|
render() {
|
|
20832
|
-
return (hAsync(Host, { key: '
|
|
20842
|
+
return (hAsync(Host, { key: '93a52532d5ee8e2b89982b3d06509c16b3656bce', tabindex: -1 }, hAsync("div", { key: '3f2fe30e35c36080d80fdec5c57abf8e310ae14b', class: Object.assign({ 'digi-form-checkbox': true }, this.cssModifiers) }, hAsync("input", { key: 'a45c26da379bff48830f0b03ceebcf24b06c3b17', class: "digi-form-checkbox__input", ref: (el) => {
|
|
20833
20843
|
var _a;
|
|
20834
20844
|
this._input = el;
|
|
20835
20845
|
(_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
|
|
@@ -20837,7 +20847,7 @@ class FormCheckbox {
|
|
|
20837
20847
|
? null
|
|
20838
20848
|
: `${this.afAriaDescribedby ? `${this.afAriaDescribedby} ` : ''}${this.afDescription ? `${this.afId}-description` : ''}`, "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormCheckboxValidation.ERROR
|
|
20839
20849
|
? 'true'
|
|
20840
|
-
: 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "checkbox", checked: this.afChecked, value: this.afValue, indeterminate: this.afIndeterminate, autofocus: this.afAutofocus ? this.afAutofocus : null }), hAsync("label", { key: '
|
|
20850
|
+
: 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "checkbox", checked: this.afChecked, value: this.afValue, indeterminate: this.afIndeterminate, autofocus: this.afAutofocus ? this.afAutofocus : null }), hAsync("label", { key: '54cd68f1c10fd023e9dd81bd0fabb2920b911c12', htmlFor: this.afId, class: "digi-form-checkbox__label" }, hAsync("span", { key: 'c7184f48868d38d04485a48f214cc3c37d862ba4', class: "digi-form-checkbox__box" }), this.afLabel), !!this.afDescription && (hAsync("p", { key: 'afc00a7de3cef740bdbf23607cd9247887752759', id: `${this.afId}-description`, class: "digi-form-checkbox__description" }, this.afDescription)))));
|
|
20841
20851
|
}
|
|
20842
20852
|
get hostElement() { return getElement(this); }
|
|
20843
20853
|
static get watchers() { return {
|
|
@@ -20892,7 +20902,6 @@ class FormErrorList {
|
|
|
20892
20902
|
registerInstance(this, hostRef);
|
|
20893
20903
|
this.afOnClickLink = createEvent(this, "afOnClickLink", 7);
|
|
20894
20904
|
this.afOnReady = createEvent(this, "afOnReady", 3);
|
|
20895
|
-
this.linkItems = [];
|
|
20896
20905
|
this.afHeading = undefined;
|
|
20897
20906
|
this.afHeadingLevel = FormErrorListHeadingLevel.H2;
|
|
20898
20907
|
this.afDescription = undefined;
|
|
@@ -20933,7 +20942,7 @@ class FormErrorList {
|
|
|
20933
20942
|
this.afOnClickLink.emit({ id });
|
|
20934
20943
|
}
|
|
20935
20944
|
render() {
|
|
20936
|
-
return (hAsync("div", { key: '
|
|
20945
|
+
return (hAsync("div", { key: '59bc43d4b3dd0149647b50203cc1ae585d829006', class: "digi-form-error-list", id: this.afId }, hAsync("digi-notification-alert", { key: 'a2b034276ff7549c9c0711202020e3753da7808d', ref: (el) => (this._notificationAlert = el), "af-heading": this.afHeading, "af-heading-level": this.afHeadingLevel, "af-variation": NotificationAlertVariation.DANGER }, this.afDescription && (hAsync("digi-typography", { key: '3a61c65373b92a73694770f851c6727e27f853e7', "af-variation": TypographyVariation.SMALL }, hAsync("p", { key: 'a088b4d084f5a6db85cedcb4f469f4dff803f8f6', class: "digi-form-error-list__description" }, this.afDescription))), hAsync("slot", { key: '794c42cdece0d06945255b70a96a6992eb4dcd4c' }))));
|
|
20937
20946
|
}
|
|
20938
20947
|
get hostElement() { return getElement(this); }
|
|
20939
20948
|
static get style() { return DigiFormErrorListStyle0; }
|
|
@@ -20947,7 +20956,6 @@ class FormErrorList {
|
|
|
20947
20956
|
"afId": [1, "af-id"],
|
|
20948
20957
|
"afOverrideLink": [4, "af-override-link"],
|
|
20949
20958
|
"afEnableHeadingFocus": [4, "af-enable-heading-focus"],
|
|
20950
|
-
"linkItems": [32],
|
|
20951
20959
|
"afMSetHeadingFocus": [64]
|
|
20952
20960
|
},
|
|
20953
20961
|
"$listeners$": [[0, "afOnClick", "clickResponse"]],
|
|
@@ -22499,9 +22507,9 @@ class FormRadiobutton {
|
|
|
22499
22507
|
this.afOnInput.emit(e);
|
|
22500
22508
|
}
|
|
22501
22509
|
render() {
|
|
22502
|
-
return (hAsync(Host, { key: '
|
|
22510
|
+
return (hAsync(Host, { key: 'fe6fc75d677f52442809001913f012b8aaa7817b', tabindex: -1 }, hAsync("div", { key: '87aa662ea170803ea002653f26e03b13c3cbaba4', class: Object.assign({ 'digi-form-radiobutton': true }, this.cssModifiers) }, hAsync("input", { key: '0e138b5b12f6ccd152980395a7ccfad705a0e497', class: "digi-form-radiobutton__input", ref: (el) => (this._input = el), onInput: (e) => this.inputHandler(e), onBlur: (e) => this.blurHandler(e), onChange: (e) => this.changeHandler(e), onFocus: (e) => this.focusHandler(e), onFocusout: (e) => this.focusoutHandler(e), "aria-describedby": this.afAriaDescribedby, "aria-labelledby": this.afAriaLabelledby, "aria-invalid": this.afValidation === FormRadiobuttonValidation.ERROR
|
|
22503
22511
|
? 'true'
|
|
22504
|
-
: 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "radio", checked: this.afChecked, value: this.afValue, autofocus: this.afAutofocus ? this.afAutofocus : null }), hAsync("label", { key: '
|
|
22512
|
+
: 'false', required: this.afRequired, id: this.afId, name: this.afName, type: "radio", checked: this.afChecked, value: this.afValue, autofocus: this.afAutofocus ? this.afAutofocus : null }), hAsync("label", { key: '14e1da2bd43b84f94497b9529f619a172ba1c0d3', htmlFor: this.afId, class: "digi-form-radiobutton__label" }, hAsync("span", { key: '22ed147d6d453f200abfc5f24752e58111b51595', class: "digi-form-radiobutton__circle" }), this.afLabel))));
|
|
22505
22513
|
}
|
|
22506
22514
|
get hostElement() { return getElement(this); }
|
|
22507
22515
|
static get watchers() { return {
|
|
@@ -32619,14 +32627,14 @@ class NavigationTablist {
|
|
|
32619
32627
|
cancelAnimationFrame(this._requestAnimationFrame);
|
|
32620
32628
|
}
|
|
32621
32629
|
render() {
|
|
32622
|
-
return (hAsync(Host, { key: '
|
|
32630
|
+
return (hAsync(Host, { key: '8bdab05cd034b9940aefcb9f38b16d09b6f0b0c7' }, hAsync("div", { key: '2d2266a9600dcc5817130ed4ece38868779e0b69', class: {
|
|
32623
32631
|
'digi-tablist': true,
|
|
32624
32632
|
'digi-tablist--overflow-scroll': this.afOverflowMode === OverflowMode.Scroll,
|
|
32625
32633
|
'digi-tablist--overflow-controls': this.afOverflowMode === OverflowMode.Controls
|
|
32626
|
-
} }, hAsync("div", { key: '
|
|
32634
|
+
} }, hAsync("div", { key: 'a96cd5d9a2eec5b2b52f0d1a00b2810c28e8d4bd', class: "control-wrapper", style: {
|
|
32627
32635
|
left: '0',
|
|
32628
32636
|
visibility: this.showPrev ? 'visible' : 'hidden'
|
|
32629
|
-
} }, hAsync("button", { key: '
|
|
32637
|
+
} }, hAsync("button", { key: '7a9810781c300bd44aa7ce3f3f76f651b1799023', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Previous) }, hAsync("digi-icon-chevron-left", { key: '8f65c019aa2a60f8d10025c147ad2448d30cdf1d' }))), hAsync("div", { key: '7be08fe744f17f71fab7358d63d010f17e5c977d', role: "tablist", ref: (ref) => (this.tablistRef = ref), "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel }, this.tabs.map((tab) => {
|
|
32630
32638
|
const focusable = tab.id === this.tabs[this.selectedTab].id;
|
|
32631
32639
|
const isActive = tab.id === this.tabs[this.activeTab].id;
|
|
32632
32640
|
const Icon = `digi-icon-${tab.icon}`;
|
|
@@ -32635,10 +32643,10 @@ class NavigationTablist {
|
|
|
32635
32643
|
'digi-tab': true,
|
|
32636
32644
|
'is-active': isActive
|
|
32637
32645
|
}, id: `tab-${tab.id}`, role: "tab", type: "button", tabindex: focusable ? '0' : '-1', "aria-label": tab.ariaLabel, "aria-selected": isActive.toString(), "aria-controls": `tabpanel-${tab.id}`, onClick: () => this.handleTabChange(tab) }, hAsync("div", { class: "content-wrapper" }, hAsync("span", { class: "tablist-content" }, tab.icon && hAsync(Icon, { "aria-hidden": "true" }), hAsync("span", { class: "title", "data-text": tab.title }, tab.title), tab.badgeValue && (hAsync("digi-badge-notification", { afValue: badgeValue, "aria-hidden": "true" }))), hAsync("div", { class: "indicator" }))));
|
|
32638
|
-
})), hAsync("div", { key: '
|
|
32646
|
+
})), hAsync("div", { key: 'b79ea56eb945fe5c4b2e34529d8b1985018ac46c', class: "control-wrapper", style: {
|
|
32639
32647
|
right: '0',
|
|
32640
32648
|
visibility: this.showNext ? 'visible' : 'hidden'
|
|
32641
|
-
} }, hAsync("button", { key: '
|
|
32649
|
+
} }, hAsync("button", { key: '3d581fe07f9591f21fef85e700259d3b44332631', tabIndex: -1, type: "button", "aria-hidden": "true", class: { 'tab-control-button': true }, onClick: () => this.handleTabControl(Direction.Next) }, hAsync("digi-icon-chevron-right", { key: '1f3a564d4eff7851ad13901c492e663c5c43d384' })))), hAsync("div", { key: '2cd9aa7d409b36395febee9dfd26eb6e82b02f35', ref: (ref) => (this.panelsRef = ref), role: "presentation" }, hAsync("slot", { key: 'b9f82031b00032dfb1df2358546a8a35934033a0' }))));
|
|
32642
32650
|
}
|
|
32643
32651
|
static get watchers() { return {
|
|
32644
32652
|
"activeTab": ["syncPanels"],
|
|
@@ -33625,12 +33633,6 @@ class Paste {
|
|
|
33625
33633
|
}; }
|
|
33626
33634
|
}
|
|
33627
33635
|
|
|
33628
|
-
var ProgressCircleRole;
|
|
33629
|
-
(function (ProgressCircleRole) {
|
|
33630
|
-
ProgressCircleRole["NONE"] = "none";
|
|
33631
|
-
ProgressCircleRole["STATUS"] = "status";
|
|
33632
|
-
})(ProgressCircleRole || (ProgressCircleRole = {}));
|
|
33633
|
-
|
|
33634
33636
|
const progressCircleCss = ".sc-digi-progress-circle-h{--digi--progress-circle--heading--font-weight:var(--digi--typography--heading-2--font-weight--desktop);--digi--progress-circle--heading--font-size:var(--digi--typography--heading-2--font-size--mobile);--digi--progress-circle--label--font-size:var(--digi--typography--label--font-size--desktop);--digi--progress-circle--label--margin:var(--digi--gutter--medium) 0;--digi--progress-circle--border-color:#d5d5d5;--digi--progress-circle--step--line--color:var(--digi--grayscale--700);--digi--progress-circle--step--background--active:var(--digi--color--marking--indication--primary);--digi--progress-circle--icon--width:1rem;--digi--progress-circle--icon--height:1rem;--digi--progress-circle--icon--color:var(--digi--color--icon--secondary);--digi--progress-circle--icon--warning--color:var(--digi--color--icon--validation--warning);--digi--progress-circle--icon--error--color:var(--digi--color--icon--validation--error);--digi--progress-circle--icon--error--background-color:var(--digi--color--background--interactive--validation--error);--digi--progress-circle--icon-status--width:1.75rem;--digi--progress-circle--icon-status--height:1.75rem}.sc-digi-progress-circle-h .digi-progress-circle.sc-digi-progress-circle{box-sizing:border-box}.sc-digi-progress-circle-h .digi-progress-circle__content.sc-digi-progress-circle{font-family:var(--digi--global--typography--font-family--default)}.sc-digi-progress-circle-h .digi-progress-circle__heading.sc-digi-progress-circle{font-weight:var(--digi--progress-circle--heading--font-weight);margin:0;margin-bottom:0.5rem}.sc-digi-progress-circle-h .digi-progress-circle__heading--circle.sc-digi-progress-circle{font-size:var(--digi--progress-circle--heading--font-size);margin-bottom:0.35rem}.sc-digi-progress-circle-h .digi-progress-circle__next.sc-digi-progress-circle{font-size:var(--digi--typography--body--font-size--desktop);font-style:italic;color:var(--digi--color--text--primary);margin:0}.sc-digi-progress-circle-h .digi-progress-circle__next--circle.sc-digi-progress-circle{font-size:var(--digi--typography--tag--font-size--desktop)}.sc-digi-progress-circle-h .digi-progress-circle__icon.sc-digi-progress-circle{--digi--icon--height:var(--digi--progress-circle--icon--width);--digi--icon--width:var(--digi--progress-circle--icon--height);--digi--icon--color:var(--digi--progress-circle--icon--color)}.sc-digi-progress-circle-h .digi-progress-circle__icon--warning.sc-digi-progress-circle{--digi--icon--height:var(--digi--progress-circle--icon-status--height);--digi--icon--width:var(--digi--progress-circle--icon-status--width)}.sc-digi-progress-circle-h .digi-progress-circle__icon--error.sc-digi-progress-circle{margin-top:4px;--digi--icon--height:var(--digi--progress-circle--icon-status--height);--digi--icon--width:var(--digi--progress-circle--icon-status--width);--digi--icon--color:var(--digi--progress-circle--icon--error--color)}.sc-digi-progress-circle-h .digi-progress-circle__label.sc-digi-progress-circle{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--progress-circle--label--font-size);line-height:var(--digi--typography--body--line-height--desktop);color:var(--digi--color--text--primary);margin:var(--digi--progress-circle--label--margin)}.sc-digi-progress-circle-h .digi-progress-circle__label--steps.sc-digi-progress-circle{font-weight:600}.sc-digi-progress-circle-h .digi-progress-circle__validation-label.sc-digi-progress-circle{font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--progress-circle--label--font-size);line-height:var(--digi--typography--body--line-height--desktop);color:var(--digi--color--text--primary);padding:var(--digi--gutter--medium) var(--digi--gutter--medium);display:flex;align-items:center}.sc-digi-progress-circle-h .digi-progress-circle__validation-label.sc-digi-progress-circle span.sc-digi-progress-circle{display:inline-block;margin-left:8px}.sc-digi-progress-circle-h .digi-progress-circle__validation-label--warning.sc-digi-progress-circle{background-color:var(--digi--color--background--interactive--validation--warning)}.sc-digi-progress-circle-h .digi-progress-circle__validation-label--error.sc-digi-progress-circle{background-color:var(--digi--color--background--interactive--validation--error)}.sc-digi-progress-circle-h .digi-progress-circle__circle-wrapper.sc-digi-progress-circle{display:flex;align-items:center}.sc-digi-progress-circle-h .digi-progress-circle__circle.sc-digi-progress-circle{position:relative;display:inline-block}.sc-digi-progress-circle-h .digi-progress-circle__circle.sc-digi-progress-circle svg.sc-digi-progress-circle{transform:rotate(-90deg)}.sc-digi-progress-circle-h .digi-progress-circle__circle-label.sc-digi-progress-circle{position:absolute;top:47%;left:50%;transform:translate(-50%, -50%);font-family:var(--digi--global--typography--font-family--default);font-size:var(--digi--typography--tag--font-size--desktop);line-height:var(--digi--typography--body--line-height--desktop);color:var(--digi--color--text--primary);font-weight:600;margin:0}.sc-digi-progress-circle-h .digi-progress-circle__circle-step-unfinished.sc-digi-progress-circle{stroke:var(--digi--progress-circle--border-color)}.sc-digi-progress-circle-h .digi-progress-circle__circle-step-completed.sc-digi-progress-circle{stroke:var(--digi--progress-circle--step--background--active)}.sc-digi-progress-circle-h .digi-progress-circle__circle-step-warning.sc-digi-progress-circle{stroke:var(--digi--progress-circle--icon--warning--color)}.sc-digi-progress-circle-h .digi-progress-circle__circle-step-error.sc-digi-progress-circle{stroke:var(--digi--progress-circle--icon--error--color)}";
|
|
33635
33637
|
var DigiProgressCircleStyle0 = progressCircleCss;
|
|
33636
33638
|
|
|
@@ -34511,7 +34513,7 @@ class Tag {
|
|
|
34511
34513
|
return this.afText;
|
|
34512
34514
|
}
|
|
34513
34515
|
render() {
|
|
34514
|
-
return (hAsync("digi-button", { key: '
|
|
34516
|
+
return (hAsync("digi-button", { key: 'd45766b0f00a85fafdddc4f4e741f614bafb8963', onAfOnClick: (e) => this.clickHandler(e), "af-variation": "secondary", "af-size": this.afSize, class: "digi-tag", "af-aria-label": this.ariaLabel }, this.afText, !this.afNoIcon && hAsync("digi-icon-x", { key: '2e97ae41c0b848f049d20bff6ece2285fff79a2e', slot: "icon-secondary" })));
|
|
34515
34517
|
}
|
|
34516
34518
|
static get style() { return DigiTagStyle0; }
|
|
34517
34519
|
static get cmpMeta() { return {
|
|
@@ -35957,7 +35959,13 @@ class barChart {
|
|
|
35957
35959
|
this.defaultDuration = 400;
|
|
35958
35960
|
// Text and formats
|
|
35959
35961
|
this.fontSize = '0.875rem';
|
|
35960
|
-
this.colorPalettes = [
|
|
35962
|
+
this.colorPalettes = [
|
|
35963
|
+
'--digi--color--background--brand-primary',
|
|
35964
|
+
'--digi--color--infographic--brand--primary',
|
|
35965
|
+
'--digi--color--background--sentiment--beta--primary',
|
|
35966
|
+
'--digi--color--text--interactive--visited',
|
|
35967
|
+
'--digi--color--icon--validation--error'
|
|
35968
|
+
];
|
|
35961
35969
|
// Observer for watching size changes when in line chart mode
|
|
35962
35970
|
this.barChartObserver = new ResizeObserver((entries) => {
|
|
35963
35971
|
entries.forEach(() => {
|
|
@@ -35967,7 +35975,8 @@ class barChart {
|
|
|
35967
35975
|
});
|
|
35968
35976
|
});
|
|
35969
35977
|
this.highlightBars = (serie) => {
|
|
35970
|
-
this.barChartContainer
|
|
35978
|
+
this.barChartContainer
|
|
35979
|
+
.selectAll('.bar')
|
|
35971
35980
|
.attr('fill', (barData) => this.colorFunction(barData.serie))
|
|
35972
35981
|
.transition('color')
|
|
35973
35982
|
.duration(150)
|
|
@@ -35976,47 +35985,78 @@ class barChart {
|
|
|
35976
35985
|
if (barData.serie === serie)
|
|
35977
35986
|
return this.colorFunction(barData.serie);
|
|
35978
35987
|
else {
|
|
35979
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
35988
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
35989
|
+
this.series.indexOf(barData.serie) > 0) {
|
|
35980
35990
|
return 'url(#prognosisInactive)';
|
|
35981
35991
|
}
|
|
35982
35992
|
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
35983
35993
|
}
|
|
35984
35994
|
});
|
|
35985
|
-
select(this.legendDiv)
|
|
35995
|
+
select(this.legendDiv)
|
|
35996
|
+
.selectAll('.legendChip')
|
|
35997
|
+
.transition('colorLegend')
|
|
35998
|
+
.duration(150)
|
|
35999
|
+
.style('opacity', (title) => (title === serie ? 1 : 0.25));
|
|
35986
36000
|
};
|
|
35987
36001
|
this.resetBarColor = () => {
|
|
35988
|
-
this.barChartContainer
|
|
35989
|
-
|
|
36002
|
+
this.barChartContainer
|
|
36003
|
+
.selectAll('.bar')
|
|
36004
|
+
.transition('color')
|
|
36005
|
+
.duration(150)
|
|
36006
|
+
.attr('fill', (barData) => this.colorFunction(barData.serie));
|
|
36007
|
+
select(this.legendDiv)
|
|
36008
|
+
.selectAll('.legendChip')
|
|
36009
|
+
.transition('colorLegend')
|
|
36010
|
+
.duration(150)
|
|
36011
|
+
.style('opacity', 1);
|
|
35990
36012
|
if (this.chartData.data.averageLine) {
|
|
35991
|
-
this.barChartContainer
|
|
36013
|
+
this.barChartContainer
|
|
36014
|
+
.selectAll('.averageLine')
|
|
36015
|
+
.transition('avgLine')
|
|
36016
|
+
.style('mix-blend-mode', 'plus-lighter')
|
|
35992
36017
|
.style('filter', 'contrast(0.5)');
|
|
35993
36018
|
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
|
|
35994
36019
|
.style('filter', 'contrast(0.5)'); */
|
|
35995
36020
|
}
|
|
35996
36021
|
};
|
|
35997
36022
|
this.highlightAverageLine = (serie) => {
|
|
35998
|
-
this.barChartContainer
|
|
36023
|
+
this.barChartContainer
|
|
36024
|
+
.selectAll('.bar')
|
|
35999
36025
|
.transition('color')
|
|
36000
36026
|
.duration(150)
|
|
36001
36027
|
.attr('fill', (barData) => {
|
|
36002
36028
|
var _a;
|
|
36003
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36029
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36030
|
+
this.series.indexOf(barData.serie) > 0) {
|
|
36004
36031
|
return 'url(#prognosisInactive)';
|
|
36005
36032
|
}
|
|
36006
36033
|
else
|
|
36007
36034
|
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
36008
36035
|
});
|
|
36009
|
-
this.barChartContainer
|
|
36010
|
-
.
|
|
36036
|
+
this.barChartContainer
|
|
36037
|
+
.selectAll('.averageLine')
|
|
36038
|
+
.transition('avgLine')
|
|
36039
|
+
.duration(150)
|
|
36040
|
+
.style('mix-blend-mode', null)
|
|
36041
|
+
.style('filter', null);
|
|
36011
36042
|
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLineText')
|
|
36012
36043
|
.duration(150).style('mix-blend-mode', null).style('filter', null) */
|
|
36013
|
-
select(this.legendDiv)
|
|
36044
|
+
select(this.legendDiv)
|
|
36045
|
+
.selectAll('.legendChip')
|
|
36046
|
+
.transition('colorLegend')
|
|
36047
|
+
.duration(150)
|
|
36048
|
+
.style('opacity', (title) => (title === serie ? 1 : 0.25));
|
|
36014
36049
|
};
|
|
36015
36050
|
// Sets and resizespositions the average line
|
|
36016
36051
|
this.averageLine = () => {
|
|
36017
36052
|
if (!this.chartData.data.averageLine)
|
|
36018
36053
|
return;
|
|
36019
|
-
const avLineGroup = this.barChartContainer
|
|
36054
|
+
const avLineGroup = this.barChartContainer
|
|
36055
|
+
.select('.interactiveElements')
|
|
36056
|
+
.selectAll('.averageLineGroup')
|
|
36057
|
+
.data([this.chartData.data.averageLine])
|
|
36058
|
+
.join('g')
|
|
36059
|
+
.attr('class', 'averageLineGroup');
|
|
36020
36060
|
/* avLineGroup.selectAll('.averageLineText')
|
|
36021
36061
|
.data(d => [d])
|
|
36022
36062
|
.join('text')
|
|
@@ -36029,8 +36069,9 @@ class barChart {
|
|
|
36029
36069
|
.attr('fill', 'var(--digi--color--infographic--lineart)')
|
|
36030
36070
|
.style('mix-blend-mode', 'plus-lighter')
|
|
36031
36071
|
.style('filter', 'contrast(0.5)'); */
|
|
36032
|
-
avLineGroup
|
|
36033
|
-
.
|
|
36072
|
+
avLineGroup
|
|
36073
|
+
.selectAll('.averageLine')
|
|
36074
|
+
.data((d) => [d.value])
|
|
36034
36075
|
.join('line')
|
|
36035
36076
|
.attr('class', 'averageLine')
|
|
36036
36077
|
.attr('x1', this.xScale.range()[0])
|
|
@@ -36078,11 +36119,15 @@ class barChart {
|
|
|
36078
36119
|
this.highlightBarGroup = (_event, datum) => {
|
|
36079
36120
|
if (typeof datum === 'string') {
|
|
36080
36121
|
const barGroupID = '#' + this.barGroupID(datum);
|
|
36081
|
-
this.barChartContainer
|
|
36122
|
+
this.barChartContainer
|
|
36123
|
+
.select(barGroupID)
|
|
36124
|
+
.selectAll('.bar')
|
|
36125
|
+
.transition('color')
|
|
36082
36126
|
.duration(20)
|
|
36083
36127
|
.attr('fill', (d) => {
|
|
36084
36128
|
var _a;
|
|
36085
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36129
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36130
|
+
this.series.indexOf(d.serie) > 0) {
|
|
36086
36131
|
return 'url(#prognosisHighlight)';
|
|
36087
36132
|
}
|
|
36088
36133
|
else
|
|
@@ -36091,7 +36136,9 @@ class barChart {
|
|
|
36091
36136
|
}
|
|
36092
36137
|
};
|
|
36093
36138
|
this.unHighlightBarGroup = () => {
|
|
36094
|
-
this.barSelection
|
|
36139
|
+
this.barSelection
|
|
36140
|
+
.selectAll('.bar')
|
|
36141
|
+
.transition('color')
|
|
36095
36142
|
.duration(100)
|
|
36096
36143
|
.attr('fill', (d) => {
|
|
36097
36144
|
return this.colorFunction(d.serie);
|
|
@@ -36184,13 +36231,15 @@ class barChart {
|
|
|
36184
36231
|
return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
|
|
36185
36232
|
};
|
|
36186
36233
|
this.updateBars = () => {
|
|
36187
|
-
this.barSelection = this.barChartContainer
|
|
36234
|
+
this.barSelection = this.barChartContainer
|
|
36235
|
+
.select('.interactiveElements')
|
|
36188
36236
|
.selectAll('.barGroup')
|
|
36189
36237
|
.data(this.mappedData)
|
|
36190
36238
|
.join('g')
|
|
36191
36239
|
.attr('class', 'barGroup')
|
|
36192
36240
|
.attr('id', (d) => this.barGroupID(d.key));
|
|
36193
|
-
this.barSelection
|
|
36241
|
+
this.barSelection
|
|
36242
|
+
.selectAll('.bar')
|
|
36194
36243
|
.data((d) => {
|
|
36195
36244
|
return d.series;
|
|
36196
36245
|
})
|
|
@@ -36269,7 +36318,9 @@ class barChart {
|
|
|
36269
36318
|
key: key,
|
|
36270
36319
|
serie: serie.title,
|
|
36271
36320
|
value: serie.yValues[index],
|
|
36272
|
-
len: serie.yValues[index]
|
|
36321
|
+
len: serie.yValues[index]
|
|
36322
|
+
? this.getTextSize(serie.yValues[index].toLocaleString())
|
|
36323
|
+
: 0
|
|
36273
36324
|
});
|
|
36274
36325
|
}
|
|
36275
36326
|
});
|
|
@@ -36285,7 +36336,9 @@ class barChart {
|
|
|
36285
36336
|
key: key.toString(),
|
|
36286
36337
|
serie: serie.title,
|
|
36287
36338
|
value: serie.yValues[index],
|
|
36288
|
-
len: serie.yValues[index]
|
|
36339
|
+
len: serie.yValues[index]
|
|
36340
|
+
? this.getTextSize(serie.yValues[index].toLocaleString())
|
|
36341
|
+
: 0
|
|
36289
36342
|
});
|
|
36290
36343
|
}
|
|
36291
36344
|
});
|
|
@@ -36296,7 +36349,8 @@ class barChart {
|
|
|
36296
36349
|
return toReturn;
|
|
36297
36350
|
};
|
|
36298
36351
|
this.adjustBarSize = () => {
|
|
36299
|
-
this.barSelection
|
|
36352
|
+
this.barSelection
|
|
36353
|
+
.selectAll('.bar')
|
|
36300
36354
|
.attr('x', this.xFunction)
|
|
36301
36355
|
.attr('y', this.yFunction)
|
|
36302
36356
|
.attr('width', this.widthFunction)
|
|
@@ -36311,30 +36365,38 @@ class barChart {
|
|
|
36311
36365
|
// Handling x positioning of bars
|
|
36312
36366
|
this.xFunction = (d, i) => {
|
|
36313
36367
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36314
|
-
?
|
|
36315
|
-
|
|
36368
|
+
? d.value > 0
|
|
36369
|
+
? this.xScale(0)
|
|
36370
|
+
: this.xScale(d.value)
|
|
36371
|
+
: this.xScale(d.key) +
|
|
36372
|
+
((this.xScale.bandwidth() / this.dataWidth) * i + this.barGap * i);
|
|
36316
36373
|
};
|
|
36317
36374
|
// Handling y positioning of bars
|
|
36318
36375
|
this.yFunction = (d, i) => {
|
|
36319
36376
|
if (!d.value)
|
|
36320
36377
|
return 0;
|
|
36321
36378
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36322
|
-
? this.yScale(d.key) +
|
|
36323
|
-
|
|
36379
|
+
? this.yScale(d.key) +
|
|
36380
|
+
((this.yScale.bandwidth() / this.dataWidth) * i + this.barGap * i)
|
|
36381
|
+
: d.value < 0
|
|
36382
|
+
? this.yScale(0)
|
|
36383
|
+
: this.yScale(d.value);
|
|
36324
36384
|
};
|
|
36325
36385
|
// Handling height for bars
|
|
36326
36386
|
this.heightFunction = (d) => {
|
|
36327
36387
|
if (!d.value)
|
|
36328
36388
|
return 0;
|
|
36329
36389
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36330
|
-
? this.yScale.bandwidth() / this.dataWidth -
|
|
36331
|
-
:
|
|
36390
|
+
? this.yScale.bandwidth() / this.dataWidth - this.barGap
|
|
36391
|
+
: d.value < 0
|
|
36392
|
+
? this.yScale(d.value) - this.yScale(0)
|
|
36393
|
+
: this.yScale(0) - this.yScale(d.value);
|
|
36332
36394
|
};
|
|
36333
36395
|
// Handling width for bars
|
|
36334
36396
|
this.widthFunction = (d) => {
|
|
36335
36397
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36336
36398
|
? Math.abs(this.xScale(0) - this.xScale(d.value))
|
|
36337
|
-
: this.xScale.bandwidth() / this.dataWidth -
|
|
36399
|
+
: this.xScale.bandwidth() / this.dataWidth - this.barGap;
|
|
36338
36400
|
};
|
|
36339
36401
|
// Setting dimension variable
|
|
36340
36402
|
this.setDims = (onlyHeight = false) => {
|
|
@@ -36577,7 +36639,8 @@ class barChart {
|
|
|
36577
36639
|
.attr('fill', (d) => {
|
|
36578
36640
|
var _a;
|
|
36579
36641
|
if (event.target.tagName === 'rect') {
|
|
36580
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36642
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36643
|
+
this.series.indexOf(d.serie) > 0) {
|
|
36581
36644
|
return 'url(#prognosisHighlight)';
|
|
36582
36645
|
}
|
|
36583
36646
|
else
|
|
@@ -36593,7 +36656,9 @@ class barChart {
|
|
|
36593
36656
|
select(event.target)
|
|
36594
36657
|
.transition('color')
|
|
36595
36658
|
.duration(this.defaultDuration)
|
|
36596
|
-
.attr('fill', (d) => event.target.tagName === 'rect'
|
|
36659
|
+
.attr('fill', (d) => event.target.tagName === 'rect'
|
|
36660
|
+
? this.colorFunction(d.serie)
|
|
36661
|
+
: '#333333');
|
|
36597
36662
|
};
|
|
36598
36663
|
this.openTooltip = (...[, d]) => {
|
|
36599
36664
|
// If type is string, the user has clicked on a y-axis tick
|
|
@@ -36605,9 +36670,7 @@ class barChart {
|
|
|
36605
36670
|
else
|
|
36606
36671
|
this.tooltipData = d;
|
|
36607
36672
|
const tooltipBody = this.tooltip.select('.tooltipBody');
|
|
36608
|
-
this.tooltip
|
|
36609
|
-
.select('.tooltipHeading')
|
|
36610
|
-
.html(this.tooltipData.key);
|
|
36673
|
+
this.tooltip.select('.tooltipHeading').html(this.tooltipData.key);
|
|
36611
36674
|
tooltipBody
|
|
36612
36675
|
.selectAll('div')
|
|
36613
36676
|
.data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
|
|
@@ -36646,15 +36709,25 @@ class barChart {
|
|
|
36646
36709
|
.style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
|
|
36647
36710
|
}
|
|
36648
36711
|
else {
|
|
36649
|
-
const index = (_a = this.mappedData
|
|
36650
|
-
|
|
36712
|
+
const index = (_a = this.mappedData
|
|
36713
|
+
.find((xPoint) => xPoint.key === data.key)) === null || _a === void 0 ? void 0 : _a.series.findIndex((serie) => serie.serie === data.serie);
|
|
36714
|
+
const barIndex = (this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1) -
|
|
36715
|
+
this.xScale.bandwidth() / this.dataWidth / 2;
|
|
36651
36716
|
// This should be where the x-axis starts
|
|
36652
36717
|
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
36653
36718
|
// Creating adjustment for tooltip to not appear outside of chart
|
|
36654
36719
|
const spaceToSVGEdge = 5;
|
|
36655
|
-
const inlineAdjustment =
|
|
36656
|
-
|
|
36657
|
-
|
|
36720
|
+
const inlineAdjustment = this.dims.width - spaceToSVGEdge <
|
|
36721
|
+
this.xScale(data.key) + xStart + barIndex + width / 2
|
|
36722
|
+
? ((this.xScale(data.key) +
|
|
36723
|
+
xStart +
|
|
36724
|
+
barIndex +
|
|
36725
|
+
width / 2 -
|
|
36726
|
+
(this.dims.width - spaceToSVGEdge)) /
|
|
36727
|
+
width) *
|
|
36728
|
+
100
|
|
36729
|
+
: 0;
|
|
36730
|
+
this.tooltip.style('transform', `translate( calc(${this.xScale(data.key) + xStart + barIndex}px - ${50 + inlineAdjustment}%), calc(-100% + ${(data.value > 0 ? this.yScale(data.value) : this.yScale(0)) - 2}px) )`);
|
|
36658
36731
|
this.tooltip
|
|
36659
36732
|
.select('digi-icon-caret-down')
|
|
36660
36733
|
.style('position', 'absolute')
|
|
@@ -36664,8 +36737,7 @@ class barChart {
|
|
|
36664
36737
|
}
|
|
36665
36738
|
else {
|
|
36666
36739
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
36667
|
-
this.tooltip
|
|
36668
|
-
.style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
|
|
36740
|
+
this.tooltip.style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
|
|
36669
36741
|
);
|
|
36670
36742
|
this.tooltip
|
|
36671
36743
|
.select('digi-icon-caret-up')
|
|
@@ -36678,12 +36750,17 @@ class barChart {
|
|
|
36678
36750
|
else {
|
|
36679
36751
|
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
36680
36752
|
const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
|
|
36681
|
-
const yMax = max(data.series.map(elem => elem.value));
|
|
36753
|
+
const yMax = max(data.series.map((elem) => elem.value));
|
|
36682
36754
|
// Creating adjustment for tooltip to not appear outside of chart
|
|
36683
36755
|
const spaceToSVGEdge = 5;
|
|
36684
|
-
const inlineAdjustment =
|
|
36685
|
-
|
|
36686
|
-
|
|
36756
|
+
const inlineAdjustment = this.dims.width - spaceToSVGEdge < translatePoint + width / 2
|
|
36757
|
+
? ((translatePoint +
|
|
36758
|
+
width / 2 -
|
|
36759
|
+
(this.dims.width - spaceToSVGEdge)) /
|
|
36760
|
+
width) *
|
|
36761
|
+
100
|
|
36762
|
+
: 0;
|
|
36763
|
+
this.tooltip.style('transform', `translate( calc(${this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2}px - ${50 + inlineAdjustment}%), calc(-100% + ${this.yScale(yMax && yMax > 0 ? yMax : 0) - 1}px) )`);
|
|
36687
36764
|
this.tooltip
|
|
36688
36765
|
.select('digi-icon-caret-down')
|
|
36689
36766
|
.style('position', 'absolute')
|
|
@@ -36719,7 +36796,10 @@ class barChart {
|
|
|
36719
36796
|
.attr('opacity', 0)
|
|
36720
36797
|
.on('end', () => {
|
|
36721
36798
|
this.svg.remove();
|
|
36722
|
-
select(this.legendDiv)
|
|
36799
|
+
select(this.legendDiv)
|
|
36800
|
+
.select('.legend')
|
|
36801
|
+
.selectAll('.legendChip')
|
|
36802
|
+
.remove();
|
|
36723
36803
|
this.legendDiv.style['display'] = 'none';
|
|
36724
36804
|
this.tableDiv.style['display'] = 'block';
|
|
36725
36805
|
this.setTableContent();
|
|
@@ -36773,12 +36853,13 @@ class barChart {
|
|
|
36773
36853
|
this.afChartData = undefined;
|
|
36774
36854
|
}
|
|
36775
36855
|
afChartDataUpdate(data) {
|
|
36776
|
-
if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 ||
|
|
36856
|
+
if ((typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0) ||
|
|
36857
|
+
(typeof data !== 'string' && Object.keys(data).length > 0)) {
|
|
36777
36858
|
if (typeof data != 'string')
|
|
36778
36859
|
this.chartData = data;
|
|
36779
36860
|
else
|
|
36780
36861
|
this.chartData = JSON.parse(data);
|
|
36781
|
-
this.series = this.chartData.data.series.map(serie => serie.title);
|
|
36862
|
+
this.series = this.chartData.data.series.map((serie) => serie.title);
|
|
36782
36863
|
}
|
|
36783
36864
|
this.mappedData = this.reshapeData();
|
|
36784
36865
|
// checking for width of each tick
|
|
@@ -36821,10 +36902,11 @@ class barChart {
|
|
|
36821
36902
|
}
|
|
36822
36903
|
initLegend() {
|
|
36823
36904
|
const rectSize = 18;
|
|
36824
|
-
const legendData = this.chartData.data.series.map(serie => serie.title);
|
|
36905
|
+
const legendData = this.chartData.data.series.map((serie) => serie.title);
|
|
36825
36906
|
if (this.chartData.data.averageLine)
|
|
36826
36907
|
legendData.push(this.chartData.data.averageLine.text);
|
|
36827
|
-
const legendChips = select(this.legendDiv)
|
|
36908
|
+
const legendChips = select(this.legendDiv)
|
|
36909
|
+
.select('.legend')
|
|
36828
36910
|
.style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
|
|
36829
36911
|
.style('margin-top', '0.5rem')
|
|
36830
36912
|
.selectAll('.legendChip')
|
|
@@ -36838,7 +36920,8 @@ class barChart {
|
|
|
36838
36920
|
.style('cursor', 'default')
|
|
36839
36921
|
.on('mouseenter', (_event, serie) => this.highlightBars(serie))
|
|
36840
36922
|
.on('mouseleave', this.resetBarColor);
|
|
36841
|
-
legendChips
|
|
36923
|
+
legendChips
|
|
36924
|
+
.append('svg')
|
|
36842
36925
|
.attr('width', rectSize + 1)
|
|
36843
36926
|
.attr('height', rectSize + 1)
|
|
36844
36927
|
.append('rect')
|
|
@@ -36849,15 +36932,19 @@ class barChart {
|
|
|
36849
36932
|
.attr('rx', 4)
|
|
36850
36933
|
.attr('ry', 4)
|
|
36851
36934
|
.attr('fill', (title) => this.colorFunction(title));
|
|
36852
|
-
legendChips
|
|
36935
|
+
legendChips
|
|
36936
|
+
.append('span')
|
|
36937
|
+
.style('text-wrap', 'nowrap')
|
|
36938
|
+
.style('font-size', '0.875rem')
|
|
36939
|
+
.text((d) => d);
|
|
36853
36940
|
if (this.chartData.data.averageLine) {
|
|
36854
|
-
const averageLine = legendChips
|
|
36941
|
+
const averageLine = legendChips
|
|
36942
|
+
.filter(':last-child')
|
|
36855
36943
|
.on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
|
|
36856
|
-
const miniSVG = averageLine
|
|
36857
|
-
.select('svg')
|
|
36858
|
-
.attr('width', rectSize * 2);
|
|
36944
|
+
const miniSVG = averageLine.select('svg').attr('width', rectSize * 2);
|
|
36859
36945
|
miniSVG.select('rect').remove();
|
|
36860
|
-
miniSVG
|
|
36946
|
+
miniSVG
|
|
36947
|
+
.append('line')
|
|
36861
36948
|
.attr('x1', 1)
|
|
36862
36949
|
.attr('x2', rectSize * 2 - 1)
|
|
36863
36950
|
.attr('y1', rectSize / 2 + 1)
|
|
@@ -36900,7 +36987,8 @@ class barChart {
|
|
|
36900
36987
|
.attr('role', 'img')
|
|
36901
36988
|
.attr('aria-label', this.chartData && this.chartData.title
|
|
36902
36989
|
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
36903
|
-
: 'Stapeldiagram')
|
|
36990
|
+
: 'Stapeldiagram')
|
|
36991
|
+
.attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
|
|
36904
36992
|
// Hide unusable components
|
|
36905
36993
|
select(this.titleDiv)
|
|
36906
36994
|
.select(this.afHeadingLevel)
|
|
@@ -36962,7 +37050,8 @@ class barChart {
|
|
|
36962
37050
|
.join('g')
|
|
36963
37051
|
.attr('class', 'barGroup')
|
|
36964
37052
|
.attr('id', (d) => this.barGroupID(d.key));
|
|
36965
|
-
this.barSelection
|
|
37053
|
+
this.barSelection
|
|
37054
|
+
.selectAll('bar')
|
|
36966
37055
|
.data((d) => {
|
|
36967
37056
|
return d.series;
|
|
36968
37057
|
})
|
|
@@ -36977,13 +37066,15 @@ class barChart {
|
|
|
36977
37066
|
.attr('width', this.widthFunction)
|
|
36978
37067
|
.attr('height', () => 0)
|
|
36979
37068
|
.attr('fill', 'gray');
|
|
36980
|
-
this.barChartContainer
|
|
37069
|
+
this.barChartContainer
|
|
37070
|
+
.selectAll('.bar')
|
|
36981
37071
|
.transition('animateBar')
|
|
36982
37072
|
.duration(400)
|
|
36983
37073
|
.delay((...[, i]) => i * 150)
|
|
36984
37074
|
.attr('y', this.yFunction)
|
|
36985
37075
|
.attr('height', this.heightFunction);
|
|
36986
|
-
this.barChartContainer
|
|
37076
|
+
this.barChartContainer
|
|
37077
|
+
.selectAll('.bar')
|
|
36987
37078
|
.transition('animateBar')
|
|
36988
37079
|
.duration(400)
|
|
36989
37080
|
.ease(linear$1)
|
|
@@ -37093,7 +37184,8 @@ class barChart {
|
|
|
37093
37184
|
.join('g')
|
|
37094
37185
|
.attr('class', 'barGroup')
|
|
37095
37186
|
.attr('id', (d) => this.barGroupID(d.key));
|
|
37096
|
-
this.barSelection
|
|
37187
|
+
this.barSelection
|
|
37188
|
+
.selectAll('.barGroup')
|
|
37097
37189
|
.data((d) => {
|
|
37098
37190
|
return d.series;
|
|
37099
37191
|
})
|
|
@@ -37120,7 +37212,9 @@ class barChart {
|
|
|
37120
37212
|
.append('text');
|
|
37121
37213
|
this.textSelection
|
|
37122
37214
|
.text((d) => {
|
|
37123
|
-
return d.value
|
|
37215
|
+
return d.value
|
|
37216
|
+
? d.value.toLocaleString(undefined, this.numberFormat)
|
|
37217
|
+
: undefined;
|
|
37124
37218
|
})
|
|
37125
37219
|
.attr('class', 'barText')
|
|
37126
37220
|
.attr('font-size', this.fontSize)
|
|
@@ -37184,8 +37278,7 @@ class barChart {
|
|
|
37184
37278
|
this.setMinMax();
|
|
37185
37279
|
const newHeight = this.setDims();
|
|
37186
37280
|
this.transitionTitle();
|
|
37187
|
-
this.svg
|
|
37188
|
-
.attr('aria-label', this.chartData && this.chartData.title
|
|
37281
|
+
this.svg.attr('aria-label', this.chartData && this.chartData.title
|
|
37189
37282
|
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
37190
37283
|
: 'Stapeldiagram');
|
|
37191
37284
|
this.setMargins();
|
|
@@ -37241,7 +37334,9 @@ class barChart {
|
|
|
37241
37334
|
select(this.titleDiv).select('.loadingHeader').remove();
|
|
37242
37335
|
this.loading = false;
|
|
37243
37336
|
this.barChartContainer.selectAll('.bar').interrupt('animateBar');
|
|
37244
|
-
this.barChartContainer
|
|
37337
|
+
this.barChartContainer
|
|
37338
|
+
.selectAll('.bar')
|
|
37339
|
+
.transition()
|
|
37245
37340
|
.duration(this.defaultDuration)
|
|
37246
37341
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
37247
37342
|
? this.yScale(d.key)
|
|
@@ -37329,7 +37424,11 @@ class barChart {
|
|
|
37329
37424
|
return width;
|
|
37330
37425
|
}
|
|
37331
37426
|
adjustColor(color, amount) {
|
|
37332
|
-
return '#' +
|
|
37427
|
+
return ('#' +
|
|
37428
|
+
color
|
|
37429
|
+
.replace(/^#/, '')
|
|
37430
|
+
.replace(/../g, (color) => ('0' +
|
|
37431
|
+
Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2)));
|
|
37333
37432
|
}
|
|
37334
37433
|
componentWillLoad() {
|
|
37335
37434
|
this.afChartDataUpdate(this.afChartData);
|
|
@@ -37392,7 +37491,10 @@ class barChart {
|
|
|
37392
37491
|
}
|
|
37393
37492
|
setTableDimensions() {
|
|
37394
37493
|
const table = select(this.tableDiv);
|
|
37395
|
-
table
|
|
37494
|
+
table
|
|
37495
|
+
.style('display', 'flex')
|
|
37496
|
+
.style('height', '100%')
|
|
37497
|
+
.style('width', '100%');
|
|
37396
37498
|
}
|
|
37397
37499
|
// Extracting all headings from data and returning a string with <th>-elements with headings
|
|
37398
37500
|
headings() {
|
|
@@ -37431,7 +37533,7 @@ class barChart {
|
|
|
37431
37533
|
if (this.chartData.infoText)
|
|
37432
37534
|
heading = `${heading}<span style="display:block;margin-top:0.25rem;font-size:0.875rem;color:var(--digi--global--color--neutral--grayscale--darkest-3)">${this.chartData.infoText}</span>`;
|
|
37433
37535
|
}
|
|
37434
|
-
return (hAsync(Host, { key: '
|
|
37536
|
+
return (hAsync(Host, { key: 'cb70095467051cf1142891bc63694623e707d92f', ref: (el) => (this.host = el) }, hAsync("svg", { key: 'c040fe2f27d9a5e3de1471fe7e4d853757f6a754', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, hAsync("defs", { key: '17fd52f2cac5a3225e097aee80e8dc1a99909840' }, hAsync("pattern", { key: '2940e729359dad1acc4635363cd5a8f3ee4d8ea1', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '4b47d41ea9f4699a4bcc7b0f04d00b8bbd124946', width: "8", height: "8", fill: "white" }), hAsync("line", { key: 'd5c3a32fb715a5271a784771d9812ea599390fc3', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), hAsync("pattern", { key: '8038bb4d62fd87a118e0bcf4e750165eed48f789', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: 'b1247b7d27e73836c7b5a05fb77a872e89853d3b', width: "8", height: "8", fill: "white" }), hAsync("line", { key: '14265bcba469f08b890654315a86d6278271d64d', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), hAsync("pattern", { key: '4069999fd742795379f093c83c00cca488b6139c', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: 'c525ae39e05acf3e7522f1b92feffdfe5221e528', width: "8", height: "8", fill: "white" }), hAsync("line", { key: 'fa183e0678f6f3794e094b97975fe96955b49e0a', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), hAsync("div", { key: 'b6e46d7f4701775a177b02a98f46ca40308e9938', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, hAsync("digi-typography", { key: '88d49833d43776a2bc23d7f73bb8cc9442350634', class: "chartTitle", innerHTML: heading }), hAsync("digi-button", { key: '75e2ef09c3f9f91a08b3596d02ad308b244586bb', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_a = this.chartData) === null || _a === void 0 ? void 0 : _a.title) ? (_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title.toLowerCase() : ''}` }, hAsync("digi-icon-table", { key: '7712b56f991bb5214aa3bebb9e380221156b6bbf', slot: "icon" }), "Visa tabell"), hAsync("digi-button", { key: 'b9d442ea0b62303c2bf1018651ce3206063f3b35', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title) ? (_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title.toLowerCase() : ''}` }, hAsync("digi-icon-chart", { key: '260c432d04f8ea00216cd485b5ec3a29df4b4db1', slot: "icon" }), "Visa diagram"), hAsync("div", { key: 'a7fd6276b5738e9cf040f0e9b99e983b27ec25cf', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), hAsync("div", { key: '705ec9e3931b91009ff565bbd8f4ba300bd8dbd7', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, hAsync("div", { key: '242fd5b7afba36df00aa7fb256bd8578712d25e7', class: "chartTooltip", id: this.afId }, hAsync("div", { key: '6417cc30962396164fe4840ecfef62c4ef7591d6', class: "tooltipHead" }, hAsync("digi-icon-x", { key: 'dc4edb442bfb342fbdb64b06e70f1e19ccc5ffb1', class: "tooltipClose" })), hAsync("div", { key: 'da625c879d4c0eebffa02193dc36d794c755b768', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (hAsync("digi-icon-caret-up", { class: "caret" })) : (hAsync("digi-icon-caret-down", { class: "caret" })))), hAsync("div", { key: 'a003a616c2ee8b848d402b38009261539ebf0c50', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, hAsync("div", { key: '44a6db8daa836ccf910aafd6fd996f153c337bf4', class: "legend" })), hAsync("div", { key: 'a872281035f2799fe8aa9128a953d0c5d9f6b2cc', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
|
|
37435
37537
|
}
|
|
37436
37538
|
get hostElement() { return getElement(this); }
|
|
37437
37539
|
static get watchers() { return {
|