@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.mjs
CHANGED
|
@@ -9140,6 +9140,12 @@ var ErrorPageStatusCodes;
|
|
|
9140
9140
|
ErrorPageStatusCodes["BLOCKED"] = "blocked";
|
|
9141
9141
|
})(ErrorPageStatusCodes || (ErrorPageStatusCodes = {}));
|
|
9142
9142
|
|
|
9143
|
+
var ProgressCircleRole;
|
|
9144
|
+
(function (ProgressCircleRole) {
|
|
9145
|
+
ProgressCircleRole["NONE"] = "none";
|
|
9146
|
+
ProgressCircleRole["STATUS"] = "status";
|
|
9147
|
+
})(ProgressCircleRole || (ProgressCircleRole = {}));
|
|
9148
|
+
|
|
9143
9149
|
var ProgressIndicatorRole;
|
|
9144
9150
|
(function (ProgressIndicatorRole) {
|
|
9145
9151
|
ProgressIndicatorRole["NONE"] = "";
|
|
@@ -9767,7 +9773,7 @@ class CalendarDatepicker {
|
|
|
9767
9773
|
return this.afSelectedDates;
|
|
9768
9774
|
}
|
|
9769
9775
|
render() {
|
|
9770
|
-
return (hAsync(Host, { key: '
|
|
9776
|
+
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()
|
|
9771
9777
|
? FormInputValidation.ERROR
|
|
9772
9778
|
: this.afValidation, afValidationText: this.getErrorText(), afId: this.afId, afAriaDescribedby: `${this.afId}--validation-message`, afRequired: this.afRequired, afRequiredText: this.afRequiredText, onAfOnChange: (evt) => {
|
|
9773
9779
|
evt.stopImmediatePropagation();
|
|
@@ -9784,11 +9790,11 @@ class CalendarDatepicker {
|
|
|
9784
9790
|
e.preventDefault();
|
|
9785
9791
|
const focusableDateButton = this.hostElement.querySelector('.digi-calendar__date[tabindex="0"]');
|
|
9786
9792
|
focusableDateButton === null || focusableDateButton === void 0 ? void 0 : focusableDateButton.focus();
|
|
9787
|
-
} }, hAsync("button", { key: '
|
|
9793
|
+
} }, hAsync("button", { key: '04df5ccb789271d7ba2f693b740f316301f9fae0', id: this.afId + '-button', class: "digi-calendar-datepicker__input-button", slot: "button", "aria-label": this.showCalendar
|
|
9788
9794
|
? this.afCloseCalendarAriaLabel
|
|
9789
|
-
: this.afOpenCalendarAriaLabel, "aria-controls": "calendar-popup", "aria-expanded": this.showCalendar ? 'true' : 'false', onClick: () => this.toggleCalendar(), type: "button" }, hAsync("digi-icon-calendar-alt", { key: '
|
|
9795
|
+
: 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
|
|
9790
9796
|
? `${_t.calendar.screenReaderInstructions}${this.screenReaderUpdateTrigger ? '\u200B' : ''}`
|
|
9791
|
-
: ''), hAsync("digi-calendar", { key: '
|
|
9797
|
+
: ''), 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) => {
|
|
9792
9798
|
evt.stopImmediatePropagation();
|
|
9793
9799
|
this.parseCalendar(evt);
|
|
9794
9800
|
}, onKeyDown: (e) => {
|
|
@@ -9799,7 +9805,7 @@ class CalendarDatepicker {
|
|
|
9799
9805
|
return;
|
|
9800
9806
|
e.preventDefault();
|
|
9801
9807
|
this.focusOnCalendarInput();
|
|
9802
|
-
} })), this.afCloseOnSelect && !this.afMultipleDates && (hAsync("div", { key: '
|
|
9808
|
+
} })), this.afCloseOnSelect && !this.afMultipleDates && (hAsync("div", { key: 'fc150d20f14731e8f67f38c6042e8af4e24eae38', class: "digi-calendar-datepicker__selected-date-alert", role: this.errorMessageIsAlert ? 'alert' : null }, this.afSelectedDates.length > 0
|
|
9803
9809
|
? `${_t.calendar.datepicker.selectedDate}: ${this.datesToInputString(this.afSelectedDates)}`
|
|
9804
9810
|
: '')))));
|
|
9805
9811
|
}
|
|
@@ -14936,7 +14942,13 @@ class ChartLine {
|
|
|
14936
14942
|
this._lineTypes = [null, '18, 7', '8,7', '2,6'];
|
|
14937
14943
|
this._strokeWidth = 2.75;
|
|
14938
14944
|
this._lineCap = 'round';
|
|
14939
|
-
this._strokeGlyphs = [
|
|
14945
|
+
this._strokeGlyphs = [
|
|
14946
|
+
circle,
|
|
14947
|
+
triangle,
|
|
14948
|
+
square,
|
|
14949
|
+
wye,
|
|
14950
|
+
diamond2
|
|
14951
|
+
];
|
|
14940
14952
|
this._toggled = false;
|
|
14941
14953
|
this._tickSize = 0;
|
|
14942
14954
|
// Selection list from legend chips
|
|
@@ -15018,9 +15030,7 @@ class ChartLine {
|
|
|
15018
15030
|
.tickSize(-(this.dims.width - this.margin.left))
|
|
15019
15031
|
.tickFormat((d) => formatLocale(this.axisNumberFormat).format(this.formatStyle)(d)));
|
|
15020
15032
|
}
|
|
15021
|
-
this._yAxisHandle
|
|
15022
|
-
.selectAll('line')
|
|
15023
|
-
.attr('stroke', '#BDBDBD');
|
|
15033
|
+
this._yAxisHandle.selectAll('line').attr('stroke', '#BDBDBD');
|
|
15024
15034
|
this._yAxisHandle.select('.domain').attr('display', 'none');
|
|
15025
15035
|
if (init)
|
|
15026
15036
|
this.leftSetAxis(init);
|
|
@@ -15099,7 +15109,7 @@ class ChartLine {
|
|
|
15099
15109
|
container
|
|
15100
15110
|
.selectAll('.legendSvg')
|
|
15101
15111
|
.filter((...[, i]) => {
|
|
15102
|
-
return i >
|
|
15112
|
+
return i > this._lineTypes.length - 1;
|
|
15103
15113
|
})
|
|
15104
15114
|
.append('path')
|
|
15105
15115
|
.attr('d', (...[, i]) => this.symbolType(i, 70))
|
|
@@ -15256,7 +15266,7 @@ class ChartLine {
|
|
|
15256
15266
|
.selectAll('.symbolGroup')
|
|
15257
15267
|
.data(this.reshapeData(this._chartData.data.series.filter(
|
|
15258
15268
|
// Symbols are only needed, when we are out of line types
|
|
15259
|
-
(...[, index]) => index >
|
|
15269
|
+
(...[, index]) => index > this._lineTypes.length - 1)))
|
|
15260
15270
|
.join((enter) => {
|
|
15261
15271
|
if (!transition) {
|
|
15262
15272
|
enter
|
|
@@ -16250,7 +16260,7 @@ class ChartLine {
|
|
|
16250
16260
|
.attr('class', 'linePath')
|
|
16251
16261
|
.attr('stroke', (d) => this.colorFunction(d))
|
|
16252
16262
|
.attr('stroke-linecap', this._lineCap)
|
|
16253
|
-
.attr('stroke-width', (d) =>
|
|
16263
|
+
.attr('stroke-width', (d) => d.length > 1 ? this._strokeWidth : 4)
|
|
16254
16264
|
.attr('fill', 'none')
|
|
16255
16265
|
.attr('stroke-dasharray', (d, i) => d.length > 1 ? this.dashFunction(d, i) : null)
|
|
16256
16266
|
.attr('d', (d) => this._LineFunc(d.line));
|
|
@@ -16520,7 +16530,7 @@ class ChartLine {
|
|
|
16520
16530
|
heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}>`;
|
|
16521
16531
|
else
|
|
16522
16532
|
heading = `<${this.afHeadingLevel}>${this._chartData.title}</${this.afHeadingLevel}><p>${this._chartData.subTitle}</p>`;
|
|
16523
|
-
return (hAsync("host", { key: '
|
|
16533
|
+
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) }, ' ')));
|
|
16524
16534
|
}
|
|
16525
16535
|
get element() { return getElement(this); }
|
|
16526
16536
|
static get watchers() { return {
|
|
@@ -20825,7 +20835,7 @@ class FormCheckbox {
|
|
|
20825
20835
|
this.afOnInput.emit(e);
|
|
20826
20836
|
}
|
|
20827
20837
|
render() {
|
|
20828
|
-
return (hAsync(Host, { key: '
|
|
20838
|
+
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) => {
|
|
20829
20839
|
var _a;
|
|
20830
20840
|
this._input = el;
|
|
20831
20841
|
(_a = this === null || this === void 0 ? void 0 : this.afInputRef) === null || _a === void 0 ? void 0 : _a.call(this, el);
|
|
@@ -20833,7 +20843,7 @@ class FormCheckbox {
|
|
|
20833
20843
|
? null
|
|
20834
20844
|
: `${this.afAriaDescribedby ? `${this.afAriaDescribedby} ` : ''}${this.afDescription ? `${this.afId}-description` : ''}`, "aria-labelledby": this.afAriaLabelledby, "aria-label": this.afAriaLabel, "aria-invalid": this.afValidation === FormCheckboxValidation.ERROR
|
|
20835
20845
|
? 'true'
|
|
20836
|
-
: '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: '
|
|
20846
|
+
: '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)))));
|
|
20837
20847
|
}
|
|
20838
20848
|
get hostElement() { return getElement(this); }
|
|
20839
20849
|
static get watchers() { return {
|
|
@@ -20888,7 +20898,6 @@ class FormErrorList {
|
|
|
20888
20898
|
registerInstance(this, hostRef);
|
|
20889
20899
|
this.afOnClickLink = createEvent(this, "afOnClickLink", 7);
|
|
20890
20900
|
this.afOnReady = createEvent(this, "afOnReady", 3);
|
|
20891
|
-
this.linkItems = [];
|
|
20892
20901
|
this.afHeading = undefined;
|
|
20893
20902
|
this.afHeadingLevel = FormErrorListHeadingLevel.H2;
|
|
20894
20903
|
this.afDescription = undefined;
|
|
@@ -20929,7 +20938,7 @@ class FormErrorList {
|
|
|
20929
20938
|
this.afOnClickLink.emit({ id });
|
|
20930
20939
|
}
|
|
20931
20940
|
render() {
|
|
20932
|
-
return (hAsync("div", { key: '
|
|
20941
|
+
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' }))));
|
|
20933
20942
|
}
|
|
20934
20943
|
get hostElement() { return getElement(this); }
|
|
20935
20944
|
static get style() { return DigiFormErrorListStyle0; }
|
|
@@ -20943,7 +20952,6 @@ class FormErrorList {
|
|
|
20943
20952
|
"afId": [1, "af-id"],
|
|
20944
20953
|
"afOverrideLink": [4, "af-override-link"],
|
|
20945
20954
|
"afEnableHeadingFocus": [4, "af-enable-heading-focus"],
|
|
20946
|
-
"linkItems": [32],
|
|
20947
20955
|
"afMSetHeadingFocus": [64]
|
|
20948
20956
|
},
|
|
20949
20957
|
"$listeners$": [[0, "afOnClick", "clickResponse"]],
|
|
@@ -22495,9 +22503,9 @@ class FormRadiobutton {
|
|
|
22495
22503
|
this.afOnInput.emit(e);
|
|
22496
22504
|
}
|
|
22497
22505
|
render() {
|
|
22498
|
-
return (hAsync(Host, { key: '
|
|
22506
|
+
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
|
|
22499
22507
|
? 'true'
|
|
22500
|
-
: '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: '
|
|
22508
|
+
: '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))));
|
|
22501
22509
|
}
|
|
22502
22510
|
get hostElement() { return getElement(this); }
|
|
22503
22511
|
static get watchers() { return {
|
|
@@ -32615,14 +32623,14 @@ class NavigationTablist {
|
|
|
32615
32623
|
cancelAnimationFrame(this._requestAnimationFrame);
|
|
32616
32624
|
}
|
|
32617
32625
|
render() {
|
|
32618
|
-
return (hAsync(Host, { key: '
|
|
32626
|
+
return (hAsync(Host, { key: '8bdab05cd034b9940aefcb9f38b16d09b6f0b0c7' }, hAsync("div", { key: '2d2266a9600dcc5817130ed4ece38868779e0b69', class: {
|
|
32619
32627
|
'digi-tablist': true,
|
|
32620
32628
|
'digi-tablist--overflow-scroll': this.afOverflowMode === OverflowMode.Scroll,
|
|
32621
32629
|
'digi-tablist--overflow-controls': this.afOverflowMode === OverflowMode.Controls
|
|
32622
|
-
} }, hAsync("div", { key: '
|
|
32630
|
+
} }, hAsync("div", { key: 'a96cd5d9a2eec5b2b52f0d1a00b2810c28e8d4bd', class: "control-wrapper", style: {
|
|
32623
32631
|
left: '0',
|
|
32624
32632
|
visibility: this.showPrev ? 'visible' : 'hidden'
|
|
32625
|
-
} }, hAsync("button", { key: '
|
|
32633
|
+
} }, 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) => {
|
|
32626
32634
|
const focusable = tab.id === this.tabs[this.selectedTab].id;
|
|
32627
32635
|
const isActive = tab.id === this.tabs[this.activeTab].id;
|
|
32628
32636
|
const Icon = `digi-icon-${tab.icon}`;
|
|
@@ -32631,10 +32639,10 @@ class NavigationTablist {
|
|
|
32631
32639
|
'digi-tab': true,
|
|
32632
32640
|
'is-active': isActive
|
|
32633
32641
|
}, 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" }))));
|
|
32634
|
-
})), hAsync("div", { key: '
|
|
32642
|
+
})), hAsync("div", { key: 'b79ea56eb945fe5c4b2e34529d8b1985018ac46c', class: "control-wrapper", style: {
|
|
32635
32643
|
right: '0',
|
|
32636
32644
|
visibility: this.showNext ? 'visible' : 'hidden'
|
|
32637
|
-
} }, hAsync("button", { key: '
|
|
32645
|
+
} }, 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' }))));
|
|
32638
32646
|
}
|
|
32639
32647
|
static get watchers() { return {
|
|
32640
32648
|
"activeTab": ["syncPanels"],
|
|
@@ -33621,12 +33629,6 @@ class Paste {
|
|
|
33621
33629
|
}; }
|
|
33622
33630
|
}
|
|
33623
33631
|
|
|
33624
|
-
var ProgressCircleRole;
|
|
33625
|
-
(function (ProgressCircleRole) {
|
|
33626
|
-
ProgressCircleRole["NONE"] = "none";
|
|
33627
|
-
ProgressCircleRole["STATUS"] = "status";
|
|
33628
|
-
})(ProgressCircleRole || (ProgressCircleRole = {}));
|
|
33629
|
-
|
|
33630
33632
|
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)}";
|
|
33631
33633
|
var DigiProgressCircleStyle0 = progressCircleCss;
|
|
33632
33634
|
|
|
@@ -34507,7 +34509,7 @@ class Tag {
|
|
|
34507
34509
|
return this.afText;
|
|
34508
34510
|
}
|
|
34509
34511
|
render() {
|
|
34510
|
-
return (hAsync("digi-button", { key: '
|
|
34512
|
+
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" })));
|
|
34511
34513
|
}
|
|
34512
34514
|
static get style() { return DigiTagStyle0; }
|
|
34513
34515
|
static get cmpMeta() { return {
|
|
@@ -35953,7 +35955,13 @@ class barChart {
|
|
|
35953
35955
|
this.defaultDuration = 400;
|
|
35954
35956
|
// Text and formats
|
|
35955
35957
|
this.fontSize = '0.875rem';
|
|
35956
|
-
this.colorPalettes = [
|
|
35958
|
+
this.colorPalettes = [
|
|
35959
|
+
'--digi--color--background--brand-primary',
|
|
35960
|
+
'--digi--color--infographic--brand--primary',
|
|
35961
|
+
'--digi--color--background--sentiment--beta--primary',
|
|
35962
|
+
'--digi--color--text--interactive--visited',
|
|
35963
|
+
'--digi--color--icon--validation--error'
|
|
35964
|
+
];
|
|
35957
35965
|
// Observer for watching size changes when in line chart mode
|
|
35958
35966
|
this.barChartObserver = new ResizeObserver((entries) => {
|
|
35959
35967
|
entries.forEach(() => {
|
|
@@ -35963,7 +35971,8 @@ class barChart {
|
|
|
35963
35971
|
});
|
|
35964
35972
|
});
|
|
35965
35973
|
this.highlightBars = (serie) => {
|
|
35966
|
-
this.barChartContainer
|
|
35974
|
+
this.barChartContainer
|
|
35975
|
+
.selectAll('.bar')
|
|
35967
35976
|
.attr('fill', (barData) => this.colorFunction(barData.serie))
|
|
35968
35977
|
.transition('color')
|
|
35969
35978
|
.duration(150)
|
|
@@ -35972,47 +35981,78 @@ class barChart {
|
|
|
35972
35981
|
if (barData.serie === serie)
|
|
35973
35982
|
return this.colorFunction(barData.serie);
|
|
35974
35983
|
else {
|
|
35975
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
35984
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
35985
|
+
this.series.indexOf(barData.serie) > 0) {
|
|
35976
35986
|
return 'url(#prognosisInactive)';
|
|
35977
35987
|
}
|
|
35978
35988
|
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
35979
35989
|
}
|
|
35980
35990
|
});
|
|
35981
|
-
select(this.legendDiv)
|
|
35991
|
+
select(this.legendDiv)
|
|
35992
|
+
.selectAll('.legendChip')
|
|
35993
|
+
.transition('colorLegend')
|
|
35994
|
+
.duration(150)
|
|
35995
|
+
.style('opacity', (title) => (title === serie ? 1 : 0.25));
|
|
35982
35996
|
};
|
|
35983
35997
|
this.resetBarColor = () => {
|
|
35984
|
-
this.barChartContainer
|
|
35985
|
-
|
|
35998
|
+
this.barChartContainer
|
|
35999
|
+
.selectAll('.bar')
|
|
36000
|
+
.transition('color')
|
|
36001
|
+
.duration(150)
|
|
36002
|
+
.attr('fill', (barData) => this.colorFunction(barData.serie));
|
|
36003
|
+
select(this.legendDiv)
|
|
36004
|
+
.selectAll('.legendChip')
|
|
36005
|
+
.transition('colorLegend')
|
|
36006
|
+
.duration(150)
|
|
36007
|
+
.style('opacity', 1);
|
|
35986
36008
|
if (this.chartData.data.averageLine) {
|
|
35987
|
-
this.barChartContainer
|
|
36009
|
+
this.barChartContainer
|
|
36010
|
+
.selectAll('.averageLine')
|
|
36011
|
+
.transition('avgLine')
|
|
36012
|
+
.style('mix-blend-mode', 'plus-lighter')
|
|
35988
36013
|
.style('filter', 'contrast(0.5)');
|
|
35989
36014
|
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLine').style('mix-blend-mode', 'plus-lighter')
|
|
35990
36015
|
.style('filter', 'contrast(0.5)'); */
|
|
35991
36016
|
}
|
|
35992
36017
|
};
|
|
35993
36018
|
this.highlightAverageLine = (serie) => {
|
|
35994
|
-
this.barChartContainer
|
|
36019
|
+
this.barChartContainer
|
|
36020
|
+
.selectAll('.bar')
|
|
35995
36021
|
.transition('color')
|
|
35996
36022
|
.duration(150)
|
|
35997
36023
|
.attr('fill', (barData) => {
|
|
35998
36024
|
var _a;
|
|
35999
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36025
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36026
|
+
this.series.indexOf(barData.serie) > 0) {
|
|
36000
36027
|
return 'url(#prognosisInactive)';
|
|
36001
36028
|
}
|
|
36002
36029
|
else
|
|
36003
36030
|
return this.evalColorVar('--digi--color--background--secondary-accent');
|
|
36004
36031
|
});
|
|
36005
|
-
this.barChartContainer
|
|
36006
|
-
.
|
|
36032
|
+
this.barChartContainer
|
|
36033
|
+
.selectAll('.averageLine')
|
|
36034
|
+
.transition('avgLine')
|
|
36035
|
+
.duration(150)
|
|
36036
|
+
.style('mix-blend-mode', null)
|
|
36037
|
+
.style('filter', null);
|
|
36007
36038
|
/* this.barChartContainer.selectAll('.averageLineText').transition('avgLineText')
|
|
36008
36039
|
.duration(150).style('mix-blend-mode', null).style('filter', null) */
|
|
36009
|
-
select(this.legendDiv)
|
|
36040
|
+
select(this.legendDiv)
|
|
36041
|
+
.selectAll('.legendChip')
|
|
36042
|
+
.transition('colorLegend')
|
|
36043
|
+
.duration(150)
|
|
36044
|
+
.style('opacity', (title) => (title === serie ? 1 : 0.25));
|
|
36010
36045
|
};
|
|
36011
36046
|
// Sets and resizespositions the average line
|
|
36012
36047
|
this.averageLine = () => {
|
|
36013
36048
|
if (!this.chartData.data.averageLine)
|
|
36014
36049
|
return;
|
|
36015
|
-
const avLineGroup = this.barChartContainer
|
|
36050
|
+
const avLineGroup = this.barChartContainer
|
|
36051
|
+
.select('.interactiveElements')
|
|
36052
|
+
.selectAll('.averageLineGroup')
|
|
36053
|
+
.data([this.chartData.data.averageLine])
|
|
36054
|
+
.join('g')
|
|
36055
|
+
.attr('class', 'averageLineGroup');
|
|
36016
36056
|
/* avLineGroup.selectAll('.averageLineText')
|
|
36017
36057
|
.data(d => [d])
|
|
36018
36058
|
.join('text')
|
|
@@ -36025,8 +36065,9 @@ class barChart {
|
|
|
36025
36065
|
.attr('fill', 'var(--digi--color--infographic--lineart)')
|
|
36026
36066
|
.style('mix-blend-mode', 'plus-lighter')
|
|
36027
36067
|
.style('filter', 'contrast(0.5)'); */
|
|
36028
|
-
avLineGroup
|
|
36029
|
-
.
|
|
36068
|
+
avLineGroup
|
|
36069
|
+
.selectAll('.averageLine')
|
|
36070
|
+
.data((d) => [d.value])
|
|
36030
36071
|
.join('line')
|
|
36031
36072
|
.attr('class', 'averageLine')
|
|
36032
36073
|
.attr('x1', this.xScale.range()[0])
|
|
@@ -36074,11 +36115,15 @@ class barChart {
|
|
|
36074
36115
|
this.highlightBarGroup = (_event, datum) => {
|
|
36075
36116
|
if (typeof datum === 'string') {
|
|
36076
36117
|
const barGroupID = '#' + this.barGroupID(datum);
|
|
36077
|
-
this.barChartContainer
|
|
36118
|
+
this.barChartContainer
|
|
36119
|
+
.select(barGroupID)
|
|
36120
|
+
.selectAll('.bar')
|
|
36121
|
+
.transition('color')
|
|
36078
36122
|
.duration(20)
|
|
36079
36123
|
.attr('fill', (d) => {
|
|
36080
36124
|
var _a;
|
|
36081
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36125
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36126
|
+
this.series.indexOf(d.serie) > 0) {
|
|
36082
36127
|
return 'url(#prognosisHighlight)';
|
|
36083
36128
|
}
|
|
36084
36129
|
else
|
|
@@ -36087,7 +36132,9 @@ class barChart {
|
|
|
36087
36132
|
}
|
|
36088
36133
|
};
|
|
36089
36134
|
this.unHighlightBarGroup = () => {
|
|
36090
|
-
this.barSelection
|
|
36135
|
+
this.barSelection
|
|
36136
|
+
.selectAll('.bar')
|
|
36137
|
+
.transition('color')
|
|
36091
36138
|
.duration(100)
|
|
36092
36139
|
.attr('fill', (d) => {
|
|
36093
36140
|
return this.colorFunction(d.serie);
|
|
@@ -36180,13 +36227,15 @@ class barChart {
|
|
|
36180
36227
|
return 'barGroup' + key.replace(/[^A-Z0-9]+/gi, '');
|
|
36181
36228
|
};
|
|
36182
36229
|
this.updateBars = () => {
|
|
36183
|
-
this.barSelection = this.barChartContainer
|
|
36230
|
+
this.barSelection = this.barChartContainer
|
|
36231
|
+
.select('.interactiveElements')
|
|
36184
36232
|
.selectAll('.barGroup')
|
|
36185
36233
|
.data(this.mappedData)
|
|
36186
36234
|
.join('g')
|
|
36187
36235
|
.attr('class', 'barGroup')
|
|
36188
36236
|
.attr('id', (d) => this.barGroupID(d.key));
|
|
36189
|
-
this.barSelection
|
|
36237
|
+
this.barSelection
|
|
36238
|
+
.selectAll('.bar')
|
|
36190
36239
|
.data((d) => {
|
|
36191
36240
|
return d.series;
|
|
36192
36241
|
})
|
|
@@ -36265,7 +36314,9 @@ class barChart {
|
|
|
36265
36314
|
key: key,
|
|
36266
36315
|
serie: serie.title,
|
|
36267
36316
|
value: serie.yValues[index],
|
|
36268
|
-
len: serie.yValues[index]
|
|
36317
|
+
len: serie.yValues[index]
|
|
36318
|
+
? this.getTextSize(serie.yValues[index].toLocaleString())
|
|
36319
|
+
: 0
|
|
36269
36320
|
});
|
|
36270
36321
|
}
|
|
36271
36322
|
});
|
|
@@ -36281,7 +36332,9 @@ class barChart {
|
|
|
36281
36332
|
key: key.toString(),
|
|
36282
36333
|
serie: serie.title,
|
|
36283
36334
|
value: serie.yValues[index],
|
|
36284
|
-
len: serie.yValues[index]
|
|
36335
|
+
len: serie.yValues[index]
|
|
36336
|
+
? this.getTextSize(serie.yValues[index].toLocaleString())
|
|
36337
|
+
: 0
|
|
36285
36338
|
});
|
|
36286
36339
|
}
|
|
36287
36340
|
});
|
|
@@ -36292,7 +36345,8 @@ class barChart {
|
|
|
36292
36345
|
return toReturn;
|
|
36293
36346
|
};
|
|
36294
36347
|
this.adjustBarSize = () => {
|
|
36295
|
-
this.barSelection
|
|
36348
|
+
this.barSelection
|
|
36349
|
+
.selectAll('.bar')
|
|
36296
36350
|
.attr('x', this.xFunction)
|
|
36297
36351
|
.attr('y', this.yFunction)
|
|
36298
36352
|
.attr('width', this.widthFunction)
|
|
@@ -36307,30 +36361,38 @@ class barChart {
|
|
|
36307
36361
|
// Handling x positioning of bars
|
|
36308
36362
|
this.xFunction = (d, i) => {
|
|
36309
36363
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36310
|
-
?
|
|
36311
|
-
|
|
36364
|
+
? d.value > 0
|
|
36365
|
+
? this.xScale(0)
|
|
36366
|
+
: this.xScale(d.value)
|
|
36367
|
+
: this.xScale(d.key) +
|
|
36368
|
+
((this.xScale.bandwidth() / this.dataWidth) * i + this.barGap * i);
|
|
36312
36369
|
};
|
|
36313
36370
|
// Handling y positioning of bars
|
|
36314
36371
|
this.yFunction = (d, i) => {
|
|
36315
36372
|
if (!d.value)
|
|
36316
36373
|
return 0;
|
|
36317
36374
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36318
|
-
? this.yScale(d.key) +
|
|
36319
|
-
|
|
36375
|
+
? this.yScale(d.key) +
|
|
36376
|
+
((this.yScale.bandwidth() / this.dataWidth) * i + this.barGap * i)
|
|
36377
|
+
: d.value < 0
|
|
36378
|
+
? this.yScale(0)
|
|
36379
|
+
: this.yScale(d.value);
|
|
36320
36380
|
};
|
|
36321
36381
|
// Handling height for bars
|
|
36322
36382
|
this.heightFunction = (d) => {
|
|
36323
36383
|
if (!d.value)
|
|
36324
36384
|
return 0;
|
|
36325
36385
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36326
|
-
? this.yScale.bandwidth() / this.dataWidth -
|
|
36327
|
-
:
|
|
36386
|
+
? this.yScale.bandwidth() / this.dataWidth - this.barGap
|
|
36387
|
+
: d.value < 0
|
|
36388
|
+
? this.yScale(d.value) - this.yScale(0)
|
|
36389
|
+
: this.yScale(0) - this.yScale(d.value);
|
|
36328
36390
|
};
|
|
36329
36391
|
// Handling width for bars
|
|
36330
36392
|
this.widthFunction = (d) => {
|
|
36331
36393
|
return this.afVariation === BarChartVariation.Horizontal
|
|
36332
36394
|
? Math.abs(this.xScale(0) - this.xScale(d.value))
|
|
36333
|
-
: this.xScale.bandwidth() / this.dataWidth -
|
|
36395
|
+
: this.xScale.bandwidth() / this.dataWidth - this.barGap;
|
|
36334
36396
|
};
|
|
36335
36397
|
// Setting dimension variable
|
|
36336
36398
|
this.setDims = (onlyHeight = false) => {
|
|
@@ -36573,7 +36635,8 @@ class barChart {
|
|
|
36573
36635
|
.attr('fill', (d) => {
|
|
36574
36636
|
var _a;
|
|
36575
36637
|
if (event.target.tagName === 'rect') {
|
|
36576
|
-
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36638
|
+
if (((_a = this.chartData.meta) === null || _a === void 0 ? void 0 : _a.prognosisPattern) &&
|
|
36639
|
+
this.series.indexOf(d.serie) > 0) {
|
|
36577
36640
|
return 'url(#prognosisHighlight)';
|
|
36578
36641
|
}
|
|
36579
36642
|
else
|
|
@@ -36589,7 +36652,9 @@ class barChart {
|
|
|
36589
36652
|
select(event.target)
|
|
36590
36653
|
.transition('color')
|
|
36591
36654
|
.duration(this.defaultDuration)
|
|
36592
|
-
.attr('fill', (d) => event.target.tagName === 'rect'
|
|
36655
|
+
.attr('fill', (d) => event.target.tagName === 'rect'
|
|
36656
|
+
? this.colorFunction(d.serie)
|
|
36657
|
+
: '#333333');
|
|
36593
36658
|
};
|
|
36594
36659
|
this.openTooltip = (...[, d]) => {
|
|
36595
36660
|
// If type is string, the user has clicked on a y-axis tick
|
|
@@ -36601,9 +36666,7 @@ class barChart {
|
|
|
36601
36666
|
else
|
|
36602
36667
|
this.tooltipData = d;
|
|
36603
36668
|
const tooltipBody = this.tooltip.select('.tooltipBody');
|
|
36604
|
-
this.tooltip
|
|
36605
|
-
.select('.tooltipHeading')
|
|
36606
|
-
.html(this.tooltipData.key);
|
|
36669
|
+
this.tooltip.select('.tooltipHeading').html(this.tooltipData.key);
|
|
36607
36670
|
tooltipBody
|
|
36608
36671
|
.selectAll('div')
|
|
36609
36672
|
.data(this.tooltipData.series ? this.tooltipData.series : [this.tooltipData])
|
|
@@ -36642,15 +36705,25 @@ class barChart {
|
|
|
36642
36705
|
.style('transform', `translate(${diff > 0 ? width / 2 - 10 : this.xScale(data.value) / 2}px,0)`);
|
|
36643
36706
|
}
|
|
36644
36707
|
else {
|
|
36645
|
-
const index = (_a = this.mappedData
|
|
36646
|
-
|
|
36708
|
+
const index = (_a = this.mappedData
|
|
36709
|
+
.find((xPoint) => xPoint.key === data.key)) === null || _a === void 0 ? void 0 : _a.series.findIndex((serie) => serie.serie === data.serie);
|
|
36710
|
+
const barIndex = (this.xScale.bandwidth() / this.dataWidth) * (index ? index + 1 : 1) -
|
|
36711
|
+
this.xScale.bandwidth() / this.dataWidth / 2;
|
|
36647
36712
|
// This should be where the x-axis starts
|
|
36648
36713
|
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
36649
36714
|
// Creating adjustment for tooltip to not appear outside of chart
|
|
36650
36715
|
const spaceToSVGEdge = 5;
|
|
36651
|
-
const inlineAdjustment =
|
|
36652
|
-
|
|
36653
|
-
|
|
36716
|
+
const inlineAdjustment = this.dims.width - spaceToSVGEdge <
|
|
36717
|
+
this.xScale(data.key) + xStart + barIndex + width / 2
|
|
36718
|
+
? ((this.xScale(data.key) +
|
|
36719
|
+
xStart +
|
|
36720
|
+
barIndex +
|
|
36721
|
+
width / 2 -
|
|
36722
|
+
(this.dims.width - spaceToSVGEdge)) /
|
|
36723
|
+
width) *
|
|
36724
|
+
100
|
|
36725
|
+
: 0;
|
|
36726
|
+
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) )`);
|
|
36654
36727
|
this.tooltip
|
|
36655
36728
|
.select('digi-icon-caret-down')
|
|
36656
36729
|
.style('position', 'absolute')
|
|
@@ -36660,8 +36733,7 @@ class barChart {
|
|
|
36660
36733
|
}
|
|
36661
36734
|
else {
|
|
36662
36735
|
if (this.afVariation === BarChartVariation.Horizontal) {
|
|
36663
|
-
this.tooltip
|
|
36664
|
-
.style('transform', `translate(${this.tickPadding}px, ${this.yScale(data.key) + this.series.length * this.yScale.bandwidth() + 5}px )` // 5 is for half caret size
|
|
36736
|
+
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
|
|
36665
36737
|
);
|
|
36666
36738
|
this.tooltip
|
|
36667
36739
|
.select('digi-icon-caret-up')
|
|
@@ -36674,12 +36746,17 @@ class barChart {
|
|
|
36674
36746
|
else {
|
|
36675
36747
|
const xStart = this.margin.left + this.tickPadding + this.yTickSize;
|
|
36676
36748
|
const translatePoint = this.xScale(data.key) + xStart + this.xScale.bandwidth() / 2;
|
|
36677
|
-
const yMax = max(data.series.map(elem => elem.value));
|
|
36749
|
+
const yMax = max(data.series.map((elem) => elem.value));
|
|
36678
36750
|
// Creating adjustment for tooltip to not appear outside of chart
|
|
36679
36751
|
const spaceToSVGEdge = 5;
|
|
36680
|
-
const inlineAdjustment =
|
|
36681
|
-
|
|
36682
|
-
|
|
36752
|
+
const inlineAdjustment = this.dims.width - spaceToSVGEdge < translatePoint + width / 2
|
|
36753
|
+
? ((translatePoint +
|
|
36754
|
+
width / 2 -
|
|
36755
|
+
(this.dims.width - spaceToSVGEdge)) /
|
|
36756
|
+
width) *
|
|
36757
|
+
100
|
|
36758
|
+
: 0;
|
|
36759
|
+
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) )`);
|
|
36683
36760
|
this.tooltip
|
|
36684
36761
|
.select('digi-icon-caret-down')
|
|
36685
36762
|
.style('position', 'absolute')
|
|
@@ -36715,7 +36792,10 @@ class barChart {
|
|
|
36715
36792
|
.attr('opacity', 0)
|
|
36716
36793
|
.on('end', () => {
|
|
36717
36794
|
this.svg.remove();
|
|
36718
|
-
select(this.legendDiv)
|
|
36795
|
+
select(this.legendDiv)
|
|
36796
|
+
.select('.legend')
|
|
36797
|
+
.selectAll('.legendChip')
|
|
36798
|
+
.remove();
|
|
36719
36799
|
this.legendDiv.style['display'] = 'none';
|
|
36720
36800
|
this.tableDiv.style['display'] = 'block';
|
|
36721
36801
|
this.setTableContent();
|
|
@@ -36769,12 +36849,13 @@ class barChart {
|
|
|
36769
36849
|
this.afChartData = undefined;
|
|
36770
36850
|
}
|
|
36771
36851
|
afChartDataUpdate(data) {
|
|
36772
|
-
if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 ||
|
|
36852
|
+
if ((typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0) ||
|
|
36853
|
+
(typeof data !== 'string' && Object.keys(data).length > 0)) {
|
|
36773
36854
|
if (typeof data != 'string')
|
|
36774
36855
|
this.chartData = data;
|
|
36775
36856
|
else
|
|
36776
36857
|
this.chartData = JSON.parse(data);
|
|
36777
|
-
this.series = this.chartData.data.series.map(serie => serie.title);
|
|
36858
|
+
this.series = this.chartData.data.series.map((serie) => serie.title);
|
|
36778
36859
|
}
|
|
36779
36860
|
this.mappedData = this.reshapeData();
|
|
36780
36861
|
// checking for width of each tick
|
|
@@ -36817,10 +36898,11 @@ class barChart {
|
|
|
36817
36898
|
}
|
|
36818
36899
|
initLegend() {
|
|
36819
36900
|
const rectSize = 18;
|
|
36820
|
-
const legendData = this.chartData.data.series.map(serie => serie.title);
|
|
36901
|
+
const legendData = this.chartData.data.series.map((serie) => serie.title);
|
|
36821
36902
|
if (this.chartData.data.averageLine)
|
|
36822
36903
|
legendData.push(this.chartData.data.averageLine.text);
|
|
36823
|
-
const legendChips = select(this.legendDiv)
|
|
36904
|
+
const legendChips = select(this.legendDiv)
|
|
36905
|
+
.select('.legend')
|
|
36824
36906
|
.style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
|
|
36825
36907
|
.style('margin-top', '0.5rem')
|
|
36826
36908
|
.selectAll('.legendChip')
|
|
@@ -36834,7 +36916,8 @@ class barChart {
|
|
|
36834
36916
|
.style('cursor', 'default')
|
|
36835
36917
|
.on('mouseenter', (_event, serie) => this.highlightBars(serie))
|
|
36836
36918
|
.on('mouseleave', this.resetBarColor);
|
|
36837
|
-
legendChips
|
|
36919
|
+
legendChips
|
|
36920
|
+
.append('svg')
|
|
36838
36921
|
.attr('width', rectSize + 1)
|
|
36839
36922
|
.attr('height', rectSize + 1)
|
|
36840
36923
|
.append('rect')
|
|
@@ -36845,15 +36928,19 @@ class barChart {
|
|
|
36845
36928
|
.attr('rx', 4)
|
|
36846
36929
|
.attr('ry', 4)
|
|
36847
36930
|
.attr('fill', (title) => this.colorFunction(title));
|
|
36848
|
-
legendChips
|
|
36931
|
+
legendChips
|
|
36932
|
+
.append('span')
|
|
36933
|
+
.style('text-wrap', 'nowrap')
|
|
36934
|
+
.style('font-size', '0.875rem')
|
|
36935
|
+
.text((d) => d);
|
|
36849
36936
|
if (this.chartData.data.averageLine) {
|
|
36850
|
-
const averageLine = legendChips
|
|
36937
|
+
const averageLine = legendChips
|
|
36938
|
+
.filter(':last-child')
|
|
36851
36939
|
.on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
|
|
36852
|
-
const miniSVG = averageLine
|
|
36853
|
-
.select('svg')
|
|
36854
|
-
.attr('width', rectSize * 2);
|
|
36940
|
+
const miniSVG = averageLine.select('svg').attr('width', rectSize * 2);
|
|
36855
36941
|
miniSVG.select('rect').remove();
|
|
36856
|
-
miniSVG
|
|
36942
|
+
miniSVG
|
|
36943
|
+
.append('line')
|
|
36857
36944
|
.attr('x1', 1)
|
|
36858
36945
|
.attr('x2', rectSize * 2 - 1)
|
|
36859
36946
|
.attr('y1', rectSize / 2 + 1)
|
|
@@ -36896,7 +36983,8 @@ class barChart {
|
|
|
36896
36983
|
.attr('role', 'img')
|
|
36897
36984
|
.attr('aria-label', this.chartData && this.chartData.title
|
|
36898
36985
|
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
36899
|
-
: 'Stapeldiagram')
|
|
36986
|
+
: 'Stapeldiagram')
|
|
36987
|
+
.attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
|
|
36900
36988
|
// Hide unusable components
|
|
36901
36989
|
select(this.titleDiv)
|
|
36902
36990
|
.select(this.afHeadingLevel)
|
|
@@ -36958,7 +37046,8 @@ class barChart {
|
|
|
36958
37046
|
.join('g')
|
|
36959
37047
|
.attr('class', 'barGroup')
|
|
36960
37048
|
.attr('id', (d) => this.barGroupID(d.key));
|
|
36961
|
-
this.barSelection
|
|
37049
|
+
this.barSelection
|
|
37050
|
+
.selectAll('bar')
|
|
36962
37051
|
.data((d) => {
|
|
36963
37052
|
return d.series;
|
|
36964
37053
|
})
|
|
@@ -36973,13 +37062,15 @@ class barChart {
|
|
|
36973
37062
|
.attr('width', this.widthFunction)
|
|
36974
37063
|
.attr('height', () => 0)
|
|
36975
37064
|
.attr('fill', 'gray');
|
|
36976
|
-
this.barChartContainer
|
|
37065
|
+
this.barChartContainer
|
|
37066
|
+
.selectAll('.bar')
|
|
36977
37067
|
.transition('animateBar')
|
|
36978
37068
|
.duration(400)
|
|
36979
37069
|
.delay((...[, i]) => i * 150)
|
|
36980
37070
|
.attr('y', this.yFunction)
|
|
36981
37071
|
.attr('height', this.heightFunction);
|
|
36982
|
-
this.barChartContainer
|
|
37072
|
+
this.barChartContainer
|
|
37073
|
+
.selectAll('.bar')
|
|
36983
37074
|
.transition('animateBar')
|
|
36984
37075
|
.duration(400)
|
|
36985
37076
|
.ease(linear$1)
|
|
@@ -37089,7 +37180,8 @@ class barChart {
|
|
|
37089
37180
|
.join('g')
|
|
37090
37181
|
.attr('class', 'barGroup')
|
|
37091
37182
|
.attr('id', (d) => this.barGroupID(d.key));
|
|
37092
|
-
this.barSelection
|
|
37183
|
+
this.barSelection
|
|
37184
|
+
.selectAll('.barGroup')
|
|
37093
37185
|
.data((d) => {
|
|
37094
37186
|
return d.series;
|
|
37095
37187
|
})
|
|
@@ -37116,7 +37208,9 @@ class barChart {
|
|
|
37116
37208
|
.append('text');
|
|
37117
37209
|
this.textSelection
|
|
37118
37210
|
.text((d) => {
|
|
37119
|
-
return d.value
|
|
37211
|
+
return d.value
|
|
37212
|
+
? d.value.toLocaleString(undefined, this.numberFormat)
|
|
37213
|
+
: undefined;
|
|
37120
37214
|
})
|
|
37121
37215
|
.attr('class', 'barText')
|
|
37122
37216
|
.attr('font-size', this.fontSize)
|
|
@@ -37180,8 +37274,7 @@ class barChart {
|
|
|
37180
37274
|
this.setMinMax();
|
|
37181
37275
|
const newHeight = this.setDims();
|
|
37182
37276
|
this.transitionTitle();
|
|
37183
|
-
this.svg
|
|
37184
|
-
.attr('aria-label', this.chartData && this.chartData.title
|
|
37277
|
+
this.svg.attr('aria-label', this.chartData && this.chartData.title
|
|
37185
37278
|
? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
|
|
37186
37279
|
: 'Stapeldiagram');
|
|
37187
37280
|
this.setMargins();
|
|
@@ -37237,7 +37330,9 @@ class barChart {
|
|
|
37237
37330
|
select(this.titleDiv).select('.loadingHeader').remove();
|
|
37238
37331
|
this.loading = false;
|
|
37239
37332
|
this.barChartContainer.selectAll('.bar').interrupt('animateBar');
|
|
37240
|
-
this.barChartContainer
|
|
37333
|
+
this.barChartContainer
|
|
37334
|
+
.selectAll('.bar')
|
|
37335
|
+
.transition()
|
|
37241
37336
|
.duration(this.defaultDuration)
|
|
37242
37337
|
.attr('y', (d) => this.afVariation === BarChartVariation.Horizontal
|
|
37243
37338
|
? this.yScale(d.key)
|
|
@@ -37325,7 +37420,11 @@ class barChart {
|
|
|
37325
37420
|
return width;
|
|
37326
37421
|
}
|
|
37327
37422
|
adjustColor(color, amount) {
|
|
37328
|
-
return '#' +
|
|
37423
|
+
return ('#' +
|
|
37424
|
+
color
|
|
37425
|
+
.replace(/^#/, '')
|
|
37426
|
+
.replace(/../g, (color) => ('0' +
|
|
37427
|
+
Math.min(255, Math.max(0, parseInt(color, 16) + amount)).toString(16)).substr(-2)));
|
|
37329
37428
|
}
|
|
37330
37429
|
componentWillLoad() {
|
|
37331
37430
|
this.afChartDataUpdate(this.afChartData);
|
|
@@ -37388,7 +37487,10 @@ class barChart {
|
|
|
37388
37487
|
}
|
|
37389
37488
|
setTableDimensions() {
|
|
37390
37489
|
const table = select(this.tableDiv);
|
|
37391
|
-
table
|
|
37490
|
+
table
|
|
37491
|
+
.style('display', 'flex')
|
|
37492
|
+
.style('height', '100%')
|
|
37493
|
+
.style('width', '100%');
|
|
37392
37494
|
}
|
|
37393
37495
|
// Extracting all headings from data and returning a string with <th>-elements with headings
|
|
37394
37496
|
headings() {
|
|
@@ -37427,7 +37529,7 @@ class barChart {
|
|
|
37427
37529
|
if (this.chartData.infoText)
|
|
37428
37530
|
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>`;
|
|
37429
37531
|
}
|
|
37430
|
-
return (hAsync(Host, { key: '
|
|
37532
|
+
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) }, ' ')));
|
|
37431
37533
|
}
|
|
37432
37534
|
get hostElement() { return getElement(this); }
|
|
37433
37535
|
static get watchers() { return {
|