@designsystem-se/af 35.4.1-beta.11 → 35.4.1-beta.12

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.
@@ -1029,6 +1029,7 @@ const barChart = class {
1029
1029
  legendData.push(this.chartData.data.averageLine.text);
1030
1030
  const legendChips = select(this.legendDiv).select('.legend')
1031
1031
  .style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
1032
+ .style('margin-top', '0.5rem')
1032
1033
  .selectAll('.legendChip')
1033
1034
  .data(legendData)
1034
1035
  .join('div')
@@ -1051,7 +1052,7 @@ const barChart = class {
1051
1052
  .attr('rx', 4)
1052
1053
  .attr('ry', 4)
1053
1054
  .attr('fill', (title) => this.colorFunction(title));
1054
- legendChips.append('span').style('text-wrap', 'nowrap').text((d) => d);
1055
+ legendChips.append('span').style('text-wrap', 'nowrap').style('font-size', '0.875rem').text((d) => d);
1055
1056
  if (this.chartData.data.averageLine) {
1056
1057
  const averageLine = legendChips.filter(':last-child')
1057
1058
  .on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
@@ -1633,7 +1634,7 @@ const barChart = class {
1633
1634
  if (this.chartData.infoText)
1634
1635
  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>`;
1635
1636
  }
1636
- return (h(Host, { key: 'bf35d7e9a6879cd90cd8cef33c9319cfc9e45afe', ref: (el) => (this.host = el) }, h("svg", { key: 'd77703db16cf0fbcffef18175b9d96279c8bdc32', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: 'c5cd241c72b0efb58f7746d4bc211cfba84409d0' }, h("pattern", { key: '14470e18a1a1d32c69bc2512f50c1bfb2cd49322', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '933cab31edfbe7a5c8cc3c10e75acc33e2127580', width: "8", height: "8", fill: 'white' }), h("line", { key: 'bbeaec28de36eee9c91cc8582bd730f07da34db2', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: '8110668de7c30e02750952985b6ca66a2ad4e58a', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '87584cc28027449d4d86040958afebd8cbe1ba29', width: "8", height: "8", fill: 'white' }), h("line", { key: '7c9be9252d78e672ecf88a3f0a90cde84b814351', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: 'a3c95790daba9caca5d2f42731a5ebd524ac88af', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: 'a4f07c66f79be3c72dca68f6f341b5dc2e6dcb38', width: "8", height: "8", fill: 'white' }), h("line", { key: 'e01cab4d8cad879f4505ce1529f39d1edace944f', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '0c9c9a7e008a044b587d6fb858b4de1d142a1c3d', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '7b72e2721c2adb2cd2480964823653740c0821bc', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '3594b346973aa92145de441582885ac2241c5607', 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() : ''}` }, h("digi-icon-table", { key: 'afcfe356372dc0567c03973fd2072293604f07eb', slot: "icon" }), "Visa tabell"), h("digi-button", { key: 'e9b2d97e6d0927a07b631bce6ee286474d9c31d5', 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() : ''}` }, h("digi-icon-chart", { key: '2aa17b4c3fbf09cf403d471d87f680dd59369267', slot: "icon" }), "Visa diagram"), h("div", { key: 'fb5470de9e9ed6dae7e3bfafafb0acf3862f8cad', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '238cdcdbc5764f68b7e40bd43bc7a149e771bce7', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '9b40c605117dc413d96e5b5b97e5556fd96b0476', class: "chartTooltip", id: this.afId }, h("div", { key: 'b3b5dc9736472c54b5a54c01533b330a4eaeee7b', class: "tooltipHead" }, h("digi-icon-x", { key: 'b900c8736cc643c95bef4a185cf2265486ed6ad3', class: "tooltipClose" })), h("div", { key: 'd246a0fdcd9d1f0519bdd4b63a7bbd385b8797bf', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: 'a73b39f64d4b3404196143d072492a932f721240', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '898465a71b180f1a61624307914f428e6d71ee48', class: "legend" })), h("div", { key: 'b0503a2f87992f3012e27b113ade2112e32537ec', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1637
+ return (h(Host, { key: 'd39019eecd4013769648a7cdb1e5dc48712de934', ref: (el) => (this.host = el) }, h("svg", { key: '9e4dbfcd19038c6b9c8cfe26b4e8b3c5ef624896', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '9ed2bc8b3064642d01e9028fa91c55577ed2da1c' }, h("pattern", { key: 'ca867a03dac364d29de422bc074c7ff3a8bac858', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '2f2169ba84fcbb198a8f109bc57971beb3c3ca09', width: "8", height: "8", fill: 'white' }), h("line", { key: 'ad51412cb272233eb58a82a293643c4e865e34e9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: 'ecc0ffeb0eda0d84102678c17163d0afc472cde5', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: 'ca9a51785850ea8e26f4ca3b84dc28401325af63', width: "8", height: "8", fill: 'white' }), h("line", { key: 'd7dd225c20b588f74bff91d44ff5abc8839bc445', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: '654a002d89f6ce33fc4958afe3997829511b867e', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("rect", { key: '6d0286f1d11de92c88083618d4acb3300f36857d', width: "8", height: "8", fill: 'white' }), h("line", { key: '4acd94253dbdb1fc85090d677d246028a6e595d6', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '9022c75fa8077b2c025aac91b8c1a565b50ad8f0', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '4a28b8506806ca2418fd21512460baebe84614d5', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '69f4603b0fde842906e17abee241c6e3b4de1059', 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() : ''}` }, h("digi-icon-table", { key: '803f63ac1912c5979c43e7c58d28591a1d6ce461', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '7d87badd6ae3df65127bdfe4c4308c0d38d5ccb7', 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() : ''}` }, h("digi-icon-chart", { key: 'f92c2eb9f08bf7f13a7eaea287b80a233efd95ef', slot: "icon" }), "Visa diagram"), h("div", { key: 'ee5b3ad8cdcfcf00891f56f7a7e738adf76f36c1', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: 'cbc0c8724ac73a07a4f2d01044d4928214e63f43', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '52cb24ae1a29f5381860031513b7b9e835044935', class: "chartTooltip", id: this.afId }, h("div", { key: '17c4c08dcf63cd263db4f32fecae7ec5216e3014', class: "tooltipHead" }, h("digi-icon-x", { key: 'f44a9a534ae02fe674fc0f9161e5c4b5a3eecb30', class: "tooltipClose" })), h("div", { key: 'ffbe44f6a8db4dc67d6980bd69ca2209e4a75745', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: '5d9cce591ea02a7b8ebdb42af55f378ee064a48a', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '8b8b7cd614e5d6202bfce04e57c98ee040f15dab', class: "legend" })), h("div", { key: '64a35d431e28638ffece4dd12bdf04678ed13768', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1637
1638
  }
1638
1639
  get hostElement() { return getElement(this); }
1639
1640
  static get watchers() { return {
package/hydrate/index.js CHANGED
@@ -36591,6 +36591,7 @@ class barChart {
36591
36591
  legendData.push(this.chartData.data.averageLine.text);
36592
36592
  const legendChips = select(this.legendDiv).select('.legend')
36593
36593
  .style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
36594
+ .style('margin-top', '0.5rem')
36594
36595
  .selectAll('.legendChip')
36595
36596
  .data(legendData)
36596
36597
  .join('div')
@@ -36613,7 +36614,7 @@ class barChart {
36613
36614
  .attr('rx', 4)
36614
36615
  .attr('ry', 4)
36615
36616
  .attr('fill', (title) => this.colorFunction(title));
36616
- legendChips.append('span').style('text-wrap', 'nowrap').text((d) => d);
36617
+ legendChips.append('span').style('text-wrap', 'nowrap').style('font-size', '0.875rem').text((d) => d);
36617
36618
  if (this.chartData.data.averageLine) {
36618
36619
  const averageLine = legendChips.filter(':last-child')
36619
36620
  .on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
@@ -37195,7 +37196,7 @@ class barChart {
37195
37196
  if (this.chartData.infoText)
37196
37197
  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>`;
37197
37198
  }
37198
- return (hAsync(Host, { key: 'bf35d7e9a6879cd90cd8cef33c9319cfc9e45afe', ref: (el) => (this.host = el) }, hAsync("svg", { key: 'd77703db16cf0fbcffef18175b9d96279c8bdc32', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, hAsync("defs", { key: 'c5cd241c72b0efb58f7746d4bc211cfba84409d0' }, hAsync("pattern", { key: '14470e18a1a1d32c69bc2512f50c1bfb2cd49322', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '933cab31edfbe7a5c8cc3c10e75acc33e2127580', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'bbeaec28de36eee9c91cc8582bd730f07da34db2', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), hAsync("pattern", { key: '8110668de7c30e02750952985b6ca66a2ad4e58a', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '87584cc28027449d4d86040958afebd8cbe1ba29', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: '7c9be9252d78e672ecf88a3f0a90cde84b814351', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), hAsync("pattern", { key: 'a3c95790daba9caca5d2f42731a5ebd524ac88af', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: 'a4f07c66f79be3c72dca68f6f341b5dc2e6dcb38', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'e01cab4d8cad879f4505ce1529f39d1edace944f', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), hAsync("div", { key: '0c9c9a7e008a044b587d6fb858b4de1d142a1c3d', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, hAsync("digi-typography", { key: '7b72e2721c2adb2cd2480964823653740c0821bc', class: "chartTitle", innerHTML: heading }), hAsync("digi-button", { key: '3594b346973aa92145de441582885ac2241c5607', 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: 'afcfe356372dc0567c03973fd2072293604f07eb', slot: "icon" }), "Visa tabell"), hAsync("digi-button", { key: 'e9b2d97e6d0927a07b631bce6ee286474d9c31d5', 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: '2aa17b4c3fbf09cf403d471d87f680dd59369267', slot: "icon" }), "Visa diagram"), hAsync("div", { key: 'fb5470de9e9ed6dae7e3bfafafb0acf3862f8cad', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), hAsync("div", { key: '238cdcdbc5764f68b7e40bd43bc7a149e771bce7', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, hAsync("div", { key: '9b40c605117dc413d96e5b5b97e5556fd96b0476', class: "chartTooltip", id: this.afId }, hAsync("div", { key: 'b3b5dc9736472c54b5a54c01533b330a4eaeee7b', class: "tooltipHead" }, hAsync("digi-icon-x", { key: 'b900c8736cc643c95bef4a185cf2265486ed6ad3', class: "tooltipClose" })), hAsync("div", { key: 'd246a0fdcd9d1f0519bdd4b63a7bbd385b8797bf', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (hAsync("digi-icon-caret-up", { class: "caret" })) : (hAsync("digi-icon-caret-down", { class: "caret" })))), hAsync("div", { key: 'a73b39f64d4b3404196143d072492a932f721240', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, hAsync("div", { key: '898465a71b180f1a61624307914f428e6d71ee48', class: "legend" })), hAsync("div", { key: 'b0503a2f87992f3012e27b113ade2112e32537ec', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
37199
+ return (hAsync(Host, { key: 'd39019eecd4013769648a7cdb1e5dc48712de934', ref: (el) => (this.host = el) }, hAsync("svg", { key: '9e4dbfcd19038c6b9c8cfe26b4e8b3c5ef624896', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, hAsync("defs", { key: '9ed2bc8b3064642d01e9028fa91c55577ed2da1c' }, hAsync("pattern", { key: 'ca867a03dac364d29de422bc074c7ff3a8bac858', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '2f2169ba84fcbb198a8f109bc57971beb3c3ca09', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'ad51412cb272233eb58a82a293643c4e865e34e9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), hAsync("pattern", { key: 'ecc0ffeb0eda0d84102678c17163d0afc472cde5', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: 'ca9a51785850ea8e26f4ca3b84dc28401325af63', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'd7dd225c20b588f74bff91d44ff5abc8839bc445', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), hAsync("pattern", { key: '654a002d89f6ce33fc4958afe3997829511b867e', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '6d0286f1d11de92c88083618d4acb3300f36857d', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: '4acd94253dbdb1fc85090d677d246028a6e595d6', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), hAsync("div", { key: '9022c75fa8077b2c025aac91b8c1a565b50ad8f0', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, hAsync("digi-typography", { key: '4a28b8506806ca2418fd21512460baebe84614d5', class: "chartTitle", innerHTML: heading }), hAsync("digi-button", { key: '69f4603b0fde842906e17abee241c6e3b4de1059', 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: '803f63ac1912c5979c43e7c58d28591a1d6ce461', slot: "icon" }), "Visa tabell"), hAsync("digi-button", { key: '7d87badd6ae3df65127bdfe4c4308c0d38d5ccb7', 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: 'f92c2eb9f08bf7f13a7eaea287b80a233efd95ef', slot: "icon" }), "Visa diagram"), hAsync("div", { key: 'ee5b3ad8cdcfcf00891f56f7a7e738adf76f36c1', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), hAsync("div", { key: 'cbc0c8724ac73a07a4f2d01044d4928214e63f43', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, hAsync("div", { key: '52cb24ae1a29f5381860031513b7b9e835044935', class: "chartTooltip", id: this.afId }, hAsync("div", { key: '17c4c08dcf63cd263db4f32fecae7ec5216e3014', class: "tooltipHead" }, hAsync("digi-icon-x", { key: 'f44a9a534ae02fe674fc0f9161e5c4b5a3eecb30', class: "tooltipClose" })), hAsync("div", { key: 'ffbe44f6a8db4dc67d6980bd69ca2209e4a75745', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (hAsync("digi-icon-caret-up", { class: "caret" })) : (hAsync("digi-icon-caret-down", { class: "caret" })))), hAsync("div", { key: '5d9cce591ea02a7b8ebdb42af55f378ee064a48a', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, hAsync("div", { key: '8b8b7cd614e5d6202bfce04e57c98ee040f15dab', class: "legend" })), hAsync("div", { key: '64a35d431e28638ffece4dd12bdf04678ed13768', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
37199
37200
  }
37200
37201
  get hostElement() { return getElement(this); }
37201
37202
  static get watchers() { return {
package/hydrate/index.mjs CHANGED
@@ -36587,6 +36587,7 @@ class barChart {
36587
36587
  legendData.push(this.chartData.data.averageLine.text);
36588
36588
  const legendChips = select(this.legendDiv).select('.legend')
36589
36589
  .style('margin-left', `${this.margin.left + this.tickPadding + this.yTickSize}px`)
36590
+ .style('margin-top', '0.5rem')
36590
36591
  .selectAll('.legendChip')
36591
36592
  .data(legendData)
36592
36593
  .join('div')
@@ -36609,7 +36610,7 @@ class barChart {
36609
36610
  .attr('rx', 4)
36610
36611
  .attr('ry', 4)
36611
36612
  .attr('fill', (title) => this.colorFunction(title));
36612
- legendChips.append('span').style('text-wrap', 'nowrap').text((d) => d);
36613
+ legendChips.append('span').style('text-wrap', 'nowrap').style('font-size', '0.875rem').text((d) => d);
36613
36614
  if (this.chartData.data.averageLine) {
36614
36615
  const averageLine = legendChips.filter(':last-child')
36615
36616
  .on('mouseenter', (_event, serie) => this.highlightAverageLine(serie));
@@ -37191,7 +37192,7 @@ class barChart {
37191
37192
  if (this.chartData.infoText)
37192
37193
  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>`;
37193
37194
  }
37194
- return (hAsync(Host, { key: 'bf35d7e9a6879cd90cd8cef33c9319cfc9e45afe', ref: (el) => (this.host = el) }, hAsync("svg", { key: 'd77703db16cf0fbcffef18175b9d96279c8bdc32', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, hAsync("defs", { key: 'c5cd241c72b0efb58f7746d4bc211cfba84409d0' }, hAsync("pattern", { key: '14470e18a1a1d32c69bc2512f50c1bfb2cd49322', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '933cab31edfbe7a5c8cc3c10e75acc33e2127580', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'bbeaec28de36eee9c91cc8582bd730f07da34db2', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), hAsync("pattern", { key: '8110668de7c30e02750952985b6ca66a2ad4e58a', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '87584cc28027449d4d86040958afebd8cbe1ba29', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: '7c9be9252d78e672ecf88a3f0a90cde84b814351', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), hAsync("pattern", { key: 'a3c95790daba9caca5d2f42731a5ebd524ac88af', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: 'a4f07c66f79be3c72dca68f6f341b5dc2e6dcb38', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'e01cab4d8cad879f4505ce1529f39d1edace944f', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), hAsync("div", { key: '0c9c9a7e008a044b587d6fb858b4de1d142a1c3d', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, hAsync("digi-typography", { key: '7b72e2721c2adb2cd2480964823653740c0821bc', class: "chartTitle", innerHTML: heading }), hAsync("digi-button", { key: '3594b346973aa92145de441582885ac2241c5607', 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: 'afcfe356372dc0567c03973fd2072293604f07eb', slot: "icon" }), "Visa tabell"), hAsync("digi-button", { key: 'e9b2d97e6d0927a07b631bce6ee286474d9c31d5', 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: '2aa17b4c3fbf09cf403d471d87f680dd59369267', slot: "icon" }), "Visa diagram"), hAsync("div", { key: 'fb5470de9e9ed6dae7e3bfafafb0acf3862f8cad', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), hAsync("div", { key: '238cdcdbc5764f68b7e40bd43bc7a149e771bce7', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, hAsync("div", { key: '9b40c605117dc413d96e5b5b97e5556fd96b0476', class: "chartTooltip", id: this.afId }, hAsync("div", { key: 'b3b5dc9736472c54b5a54c01533b330a4eaeee7b', class: "tooltipHead" }, hAsync("digi-icon-x", { key: 'b900c8736cc643c95bef4a185cf2265486ed6ad3', class: "tooltipClose" })), hAsync("div", { key: 'd246a0fdcd9d1f0519bdd4b63a7bbd385b8797bf', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (hAsync("digi-icon-caret-up", { class: "caret" })) : (hAsync("digi-icon-caret-down", { class: "caret" })))), hAsync("div", { key: 'a73b39f64d4b3404196143d072492a932f721240', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, hAsync("div", { key: '898465a71b180f1a61624307914f428e6d71ee48', class: "legend" })), hAsync("div", { key: 'b0503a2f87992f3012e27b113ade2112e32537ec', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
37195
+ return (hAsync(Host, { key: 'd39019eecd4013769648a7cdb1e5dc48712de934', ref: (el) => (this.host = el) }, hAsync("svg", { key: '9e4dbfcd19038c6b9c8cfe26b4e8b3c5ef624896', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, hAsync("defs", { key: '9ed2bc8b3064642d01e9028fa91c55577ed2da1c' }, hAsync("pattern", { key: 'ca867a03dac364d29de422bc074c7ff3a8bac858', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '2f2169ba84fcbb198a8f109bc57971beb3c3ca09', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'ad51412cb272233eb58a82a293643c4e865e34e9', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), hAsync("pattern", { key: 'ecc0ffeb0eda0d84102678c17163d0afc472cde5', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: 'ca9a51785850ea8e26f4ca3b84dc28401325af63', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: 'd7dd225c20b588f74bff91d44ff5abc8839bc445', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), hAsync("pattern", { key: '654a002d89f6ce33fc4958afe3997829511b867e', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, hAsync("rect", { key: '6d0286f1d11de92c88083618d4acb3300f36857d', width: "8", height: "8", fill: 'white' }), hAsync("line", { key: '4acd94253dbdb1fc85090d677d246028a6e595d6', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), hAsync("div", { key: '9022c75fa8077b2c025aac91b8c1a565b50ad8f0', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, hAsync("digi-typography", { key: '4a28b8506806ca2418fd21512460baebe84614d5', class: "chartTitle", innerHTML: heading }), hAsync("digi-button", { key: '69f4603b0fde842906e17abee241c6e3b4de1059', 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: '803f63ac1912c5979c43e7c58d28591a1d6ce461', slot: "icon" }), "Visa tabell"), hAsync("digi-button", { key: '7d87badd6ae3df65127bdfe4c4308c0d38d5ccb7', 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: 'f92c2eb9f08bf7f13a7eaea287b80a233efd95ef', slot: "icon" }), "Visa diagram"), hAsync("div", { key: 'ee5b3ad8cdcfcf00891f56f7a7e738adf76f36c1', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), hAsync("div", { key: 'cbc0c8724ac73a07a4f2d01044d4928214e63f43', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, hAsync("div", { key: '52cb24ae1a29f5381860031513b7b9e835044935', class: "chartTooltip", id: this.afId }, hAsync("div", { key: '17c4c08dcf63cd263db4f32fecae7ec5216e3014', class: "tooltipHead" }, hAsync("digi-icon-x", { key: 'f44a9a534ae02fe674fc0f9161e5c4b5a3eecb30', class: "tooltipClose" })), hAsync("div", { key: 'ffbe44f6a8db4dc67d6980bd69ca2209e4a75745', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (hAsync("digi-icon-caret-up", { class: "caret" })) : (hAsync("digi-icon-caret-down", { class: "caret" })))), hAsync("div", { key: '5d9cce591ea02a7b8ebdb42af55f378ee064a48a', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, hAsync("div", { key: '8b8b7cd614e5d6202bfce04e57c98ee040f15dab', class: "legend" })), hAsync("div", { key: '64a35d431e28638ffece4dd12bdf04678ed13768', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
37195
37196
  }
37196
37197
  get hostElement() { return getElement(this); }
37197
37198
  static get watchers() { return {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@designsystem-se/af",
3
3
  "author": "Arbetsförmedlingen",
4
- "version": "35.4.1-beta.11",
4
+ "version": "35.4.1-beta.12",
5
5
  "description": "Web Components for Digi Designsystem",
6
6
  "license": "Apache-2.0",
7
7
  "main": "./dist/index.cjs.js",