@designsystem-se/af 35.4.1-beta.3 → 35.4.1-beta.5

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.
Files changed (294) hide show
  1. package/components/digi-badge-notification.d.ts +1 -1
  2. package/components/digi-badge-status.d.ts +1 -1
  3. package/components/digi-bar-chart.d.ts +1 -1
  4. package/components/digi-bar-chart.js +16 -20
  5. package/components/digi-button.d.ts +1 -1
  6. package/components/digi-calendar-datepicker.d.ts +1 -1
  7. package/components/digi-calendar-week-view.d.ts +1 -1
  8. package/components/digi-calendar.d.ts +1 -1
  9. package/components/digi-chart-line.d.ts +1 -1
  10. package/components/digi-code-block.d.ts +1 -1
  11. package/components/digi-code-example.d.ts +1 -1
  12. package/components/digi-code.d.ts +1 -1
  13. package/components/digi-context-menu.d.ts +1 -1
  14. package/components/digi-dialog.d.ts +1 -1
  15. package/components/digi-expandable-accordion.d.ts +1 -1
  16. package/components/digi-expandable-faq-item.d.ts +1 -1
  17. package/components/digi-expandable-faq.d.ts +1 -1
  18. package/components/digi-footer-card.d.ts +1 -1
  19. package/components/digi-footer.d.ts +1 -1
  20. package/components/digi-form-category-filter.d.ts +1 -1
  21. package/components/digi-form-checkbox.d.ts +1 -1
  22. package/components/digi-form-error-list.d.ts +1 -1
  23. package/components/digi-form-fieldset.d.ts +1 -1
  24. package/components/digi-form-file-upload.d.ts +1 -1
  25. package/components/digi-form-filter.d.ts +1 -1
  26. package/components/digi-form-input-search.d.ts +1 -1
  27. package/components/digi-form-input.d.ts +1 -1
  28. package/components/digi-form-label.d.ts +1 -1
  29. package/components/digi-form-radiobutton.d.ts +1 -1
  30. package/components/digi-form-radiogroup.d.ts +1 -1
  31. package/components/digi-form-receipt.d.ts +1 -1
  32. package/components/digi-form-select-filter.d.ts +1 -1
  33. package/components/digi-form-select.d.ts +1 -1
  34. package/components/digi-form-textarea.d.ts +1 -1
  35. package/components/digi-form-validation-message.d.ts +1 -1
  36. package/components/digi-header-avatar.d.ts +1 -1
  37. package/components/digi-header-navigation-item.d.ts +1 -1
  38. package/components/digi-header-navigation.d.ts +1 -1
  39. package/components/digi-header-notification.d.ts +1 -1
  40. package/components/digi-header.d.ts +1 -1
  41. package/components/digi-icon-accessibility-deaf.d.ts +1 -1
  42. package/components/digi-icon-accessibility-universal.d.ts +1 -1
  43. package/components/digi-icon-apple.d.ts +1 -1
  44. package/components/digi-icon-archive-outline.d.ts +1 -1
  45. package/components/digi-icon-archive.d.ts +1 -1
  46. package/components/digi-icon-arrow-back.d.ts +1 -1
  47. package/components/digi-icon-arrow-down.d.ts +1 -1
  48. package/components/digi-icon-arrow-left.d.ts +1 -1
  49. package/components/digi-icon-arrow-right.d.ts +1 -1
  50. package/components/digi-icon-arrow-sign-in.d.ts +1 -1
  51. package/components/digi-icon-arrow-sign-out.d.ts +1 -1
  52. package/components/digi-icon-arrow-up.d.ts +1 -1
  53. package/components/digi-icon-at.d.ts +1 -1
  54. package/components/digi-icon-bars.d.ts +1 -1
  55. package/components/digi-icon-bell-filled.d.ts +1 -1
  56. package/components/digi-icon-bell.d.ts +1 -1
  57. package/components/digi-icon-book.d.ts +1 -1
  58. package/components/digi-icon-bookmark-outline.d.ts +1 -1
  59. package/components/digi-icon-bookmark-solid.d.ts +1 -1
  60. package/components/digi-icon-bubble-ellipsis.d.ts +1 -1
  61. package/components/digi-icon-bubble.d.ts +1 -1
  62. package/components/digi-icon-building-outline.d.ts +1 -1
  63. package/components/digi-icon-building-solid.d.ts +1 -1
  64. package/components/digi-icon-bullseye.d.ts +1 -1
  65. package/components/digi-icon-calculator-solid.d.ts +1 -1
  66. package/components/digi-icon-calendar-alt-alert.d.ts +1 -1
  67. package/components/digi-icon-calendar-alt.d.ts +1 -1
  68. package/components/digi-icon-calendar.d.ts +1 -1
  69. package/components/digi-icon-caret-circle-right.d.ts +1 -1
  70. package/components/digi-icon-caret-down.d.ts +1 -1
  71. package/components/digi-icon-caret-left.d.ts +1 -1
  72. package/components/digi-icon-caret-right.d.ts +1 -1
  73. package/components/digi-icon-caret-up.d.ts +1 -1
  74. package/components/digi-icon-chart.d.ts +1 -1
  75. package/components/digi-icon-chat.d.ts +1 -1
  76. package/components/digi-icon-check-circle-reg-alt.d.ts +1 -1
  77. package/components/digi-icon-check-circle-solid.d.ts +1 -1
  78. package/components/digi-icon-check.d.ts +1 -1
  79. package/components/digi-icon-checklist.d.ts +1 -1
  80. package/components/digi-icon-chevron-down.d.ts +1 -1
  81. package/components/digi-icon-chevron-left.d.ts +1 -1
  82. package/components/digi-icon-chevron-right.d.ts +1 -1
  83. package/components/digi-icon-chevron-up.d.ts +1 -1
  84. package/components/digi-icon-clock.d.ts +1 -1
  85. package/components/digi-icon-communication-play-solid.d.ts +1 -1
  86. package/components/digi-icon-compress-alt.d.ts +1 -1
  87. package/components/digi-icon-comunication-case.d.ts +1 -1
  88. package/components/digi-icon-comunication-flag.d.ts +1 -1
  89. package/components/digi-icon-comunication-graduate.d.ts +1 -1
  90. package/components/digi-icon-comunication-play.d.ts +1 -1
  91. package/components/digi-icon-cooperation.d.ts +1 -1
  92. package/components/digi-icon-copy.d.ts +1 -1
  93. package/components/digi-icon-danger-outline.d.ts +1 -1
  94. package/components/digi-icon-download.d.ts +1 -1
  95. package/components/digi-icon-dxa.d.ts +1 -1
  96. package/components/digi-icon-edit.d.ts +1 -1
  97. package/components/digi-icon-ellipsis.d.ts +1 -1
  98. package/components/digi-icon-envelope-filled.d.ts +1 -1
  99. package/components/digi-icon-envelope.d.ts +1 -1
  100. package/components/digi-icon-exclamation-circle-filled.d.ts +1 -1
  101. package/components/digi-icon-exclamation-triangle-filled.d.ts +1 -1
  102. package/components/digi-icon-exclamation-triangle-warning.d.ts +1 -1
  103. package/components/digi-icon-exclamation-triangle.d.ts +1 -1
  104. package/components/digi-icon-expand-alt.d.ts +1 -1
  105. package/components/digi-icon-external-link-alt.d.ts +1 -1
  106. package/components/digi-icon-eye-slash.d.ts +1 -1
  107. package/components/digi-icon-eye.d.ts +1 -1
  108. package/components/digi-icon-facebook-square.d.ts +1 -1
  109. package/components/digi-icon-file-add.d.ts +1 -1
  110. package/components/digi-icon-file-document.d.ts +1 -1
  111. package/components/digi-icon-file-excel.d.ts +1 -1
  112. package/components/digi-icon-file-export.d.ts +1 -1
  113. package/components/digi-icon-file-governing.d.ts +1 -1
  114. package/components/digi-icon-file-pdf.d.ts +1 -1
  115. package/components/digi-icon-file-powerpoint.d.ts +1 -1
  116. package/components/digi-icon-file-remove.d.ts +1 -1
  117. package/components/digi-icon-file-word.d.ts +1 -1
  118. package/components/digi-icon-film.d.ts +1 -1
  119. package/components/digi-icon-filter.d.ts +1 -1
  120. package/components/digi-icon-folder-add.d.ts +1 -1
  121. package/components/digi-icon-folder-directory.d.ts +1 -1
  122. package/components/digi-icon-folder-open.d.ts +1 -1
  123. package/components/digi-icon-folder.d.ts +1 -1
  124. package/components/digi-icon-globe-filled.d.ts +1 -1
  125. package/components/digi-icon-globe.d.ts +1 -1
  126. package/components/digi-icon-headphones.d.ts +1 -1
  127. package/components/digi-icon-heart-solid.d.ts +1 -1
  128. package/components/digi-icon-heart.d.ts +1 -1
  129. package/components/digi-icon-history.d.ts +1 -1
  130. package/components/digi-icon-home.d.ts +1 -1
  131. package/components/digi-icon-image.d.ts +1 -1
  132. package/components/digi-icon-info-circle-solid.d.ts +1 -1
  133. package/components/digi-icon-input-select-marker.d.ts +1 -1
  134. package/components/digi-icon-instagram.d.ts +1 -1
  135. package/components/digi-icon-job-suggestion.d.ts +1 -1
  136. package/components/digi-icon-language-outline.d.ts +1 -1
  137. package/components/digi-icon-language.d.ts +1 -1
  138. package/components/digi-icon-laptop-phone.d.ts +1 -1
  139. package/components/digi-icon-lattlast.d.ts +1 -1
  140. package/components/digi-icon-licence-bus.d.ts +1 -1
  141. package/components/digi-icon-licence-car.d.ts +1 -1
  142. package/components/digi-icon-licence-motorcycle.d.ts +1 -1
  143. package/components/digi-icon-licence-truck.d.ts +1 -1
  144. package/components/digi-icon-lightbulb.d.ts +1 -1
  145. package/components/digi-icon-linkedin-in.d.ts +1 -1
  146. package/components/digi-icon-list-ul.d.ts +1 -1
  147. package/components/digi-icon-lock.d.ts +1 -1
  148. package/components/digi-icon-marker-filled.d.ts +1 -1
  149. package/components/digi-icon-marker.d.ts +1 -1
  150. package/components/digi-icon-media-course.d.ts +1 -1
  151. package/components/digi-icon-media-podcast.d.ts +1 -1
  152. package/components/digi-icon-microphone-off.d.ts +1 -1
  153. package/components/digi-icon-microphone.d.ts +1 -1
  154. package/components/digi-icon-minus.d.ts +1 -1
  155. package/components/digi-icon-move.d.ts +1 -1
  156. package/components/digi-icon-news.d.ts +1 -1
  157. package/components/digi-icon-notification-error.d.ts +1 -1
  158. package/components/digi-icon-notification-info.d.ts +1 -1
  159. package/components/digi-icon-notification-succes.d.ts +1 -1
  160. package/components/digi-icon-notification-warning.d.ts +1 -1
  161. package/components/digi-icon-online-computervideo.d.ts +1 -1
  162. package/components/digi-icon-online-interview.d.ts +1 -1
  163. package/components/digi-icon-online-meeting.d.ts +1 -1
  164. package/components/digi-icon-online-task.d.ts +1 -1
  165. package/components/digi-icon-online-video.d.ts +1 -1
  166. package/components/digi-icon-open-source.d.ts +1 -1
  167. package/components/digi-icon-palette.d.ts +1 -1
  168. package/components/digi-icon-paperclip.d.ts +1 -1
  169. package/components/digi-icon-paste.d.ts +1 -1
  170. package/components/digi-icon-pen.d.ts +1 -1
  171. package/components/digi-icon-phone-hangup.d.ts +1 -1
  172. package/components/digi-icon-phone.d.ts +1 -1
  173. package/components/digi-icon-plus.d.ts +1 -1
  174. package/components/digi-icon-pod.d.ts +1 -1
  175. package/components/digi-icon-print.d.ts +1 -1
  176. package/components/digi-icon-read.d.ts +1 -1
  177. package/components/digi-icon-redo.d.ts +1 -1
  178. package/components/digi-icon-scale.d.ts +1 -1
  179. package/components/digi-icon-screensharing-off.d.ts +1 -1
  180. package/components/digi-icon-screensharing.d.ts +1 -1
  181. package/components/digi-icon-search.d.ts +1 -1
  182. package/components/digi-icon-send-outline.d.ts +1 -1
  183. package/components/digi-icon-send-solid.d.ts +1 -1
  184. package/components/digi-icon-settings.d.ts +1 -1
  185. package/components/digi-icon-share-alt.d.ts +1 -1
  186. package/components/digi-icon-share-chain.d.ts +1 -1
  187. package/components/digi-icon-sign.d.ts +1 -1
  188. package/components/digi-icon-sliders-h.d.ts +1 -1
  189. package/components/digi-icon-sokkandidat.d.ts +1 -1
  190. package/components/digi-icon-sort-down.d.ts +1 -1
  191. package/components/digi-icon-sort-up.d.ts +1 -1
  192. package/components/digi-icon-sort.d.ts +1 -1
  193. package/components/digi-icon-spinner.d.ts +1 -1
  194. package/components/digi-icon-star-reg.d.ts +1 -1
  195. package/components/digi-icon-star.d.ts +1 -1
  196. package/components/digi-icon-suitcase-outline.d.ts +1 -1
  197. package/components/digi-icon-suitcase-solid.d.ts +1 -1
  198. package/components/digi-icon-system-assistance.d.ts +1 -1
  199. package/components/digi-icon-table-column.d.ts +1 -1
  200. package/components/digi-icon-table-row.d.ts +1 -1
  201. package/components/digi-icon-table.d.ts +1 -1
  202. package/components/digi-icon-task-done.d.ts +1 -1
  203. package/components/digi-icon-toggle-off.d.ts +1 -1
  204. package/components/digi-icon-toggle-on.d.ts +1 -1
  205. package/components/digi-icon-trash.d.ts +1 -1
  206. package/components/digi-icon-twitter.d.ts +1 -1
  207. package/components/digi-icon-tyck-till.d.ts +1 -1
  208. package/components/digi-icon-unlock.d.ts +1 -1
  209. package/components/digi-icon-update.d.ts +1 -1
  210. package/components/digi-icon-upload.d.ts +1 -1
  211. package/components/digi-icon-user-add.d.ts +1 -1
  212. package/components/digi-icon-user-alt.d.ts +1 -1
  213. package/components/digi-icon-user-edit.d.ts +1 -1
  214. package/components/digi-icon-users-solid.d.ts +1 -1
  215. package/components/digi-icon-validation-error.d.ts +1 -1
  216. package/components/digi-icon-validation-success.d.ts +1 -1
  217. package/components/digi-icon-validation-warning.d.ts +1 -1
  218. package/components/digi-icon-videocamera-off.d.ts +1 -1
  219. package/components/digi-icon-videocamera.d.ts +1 -1
  220. package/components/digi-icon-volume.d.ts +1 -1
  221. package/components/digi-icon-web-tv.d.ts +1 -1
  222. package/components/digi-icon-webinar.d.ts +1 -1
  223. package/components/digi-icon-wifi-signal0.d.ts +1 -1
  224. package/components/digi-icon-wifi-signal1.d.ts +1 -1
  225. package/components/digi-icon-wifi-signal2.d.ts +1 -1
  226. package/components/digi-icon-wifi-signal3.d.ts +1 -1
  227. package/components/digi-icon-window.d.ts +1 -1
  228. package/components/digi-icon-x-button-outline.d.ts +1 -1
  229. package/components/digi-icon-x-button.d.ts +1 -1
  230. package/components/digi-icon-x.d.ts +1 -1
  231. package/components/digi-icon-youtube.d.ts +1 -1
  232. package/components/digi-info-card-multi-container.d.ts +1 -1
  233. package/components/digi-info-card-multi.d.ts +1 -1
  234. package/components/digi-info-card.d.ts +1 -1
  235. package/components/digi-layout-block.d.ts +1 -1
  236. package/components/digi-layout-columns.d.ts +1 -1
  237. package/components/digi-layout-container.d.ts +1 -1
  238. package/components/digi-link-button.d.ts +1 -1
  239. package/components/digi-link-external.d.ts +1 -1
  240. package/components/digi-link-internal.d.ts +1 -1
  241. package/components/digi-link.d.ts +1 -1
  242. package/components/digi-list.d.ts +1 -1
  243. package/components/digi-loader-skeleton.d.ts +1 -1
  244. package/components/digi-loader-spinner.d.ts +1 -1
  245. package/components/digi-logo.d.ts +1 -1
  246. package/components/digi-media-figure.d.ts +1 -1
  247. package/components/digi-media-image.d.ts +1 -1
  248. package/components/digi-navigation-breadcrumbs.d.ts +1 -1
  249. package/components/digi-navigation-pagination.d.ts +1 -1
  250. package/components/digi-navigation-sidebar-button.d.ts +1 -1
  251. package/components/digi-navigation-sidebar.d.ts +1 -1
  252. package/components/digi-navigation-vertical-menu-item.d.ts +1 -1
  253. package/components/digi-navigation-vertical-menu.d.ts +1 -1
  254. package/components/digi-notification-alert.d.ts +1 -1
  255. package/components/digi-notification-error-page.d.ts +1 -1
  256. package/components/digi-progress-circle.d.ts +1 -1
  257. package/components/digi-progress-indicator.d.ts +1 -1
  258. package/components/digi-progress-list-item.d.ts +1 -1
  259. package/components/digi-progress-list.d.ts +1 -1
  260. package/components/digi-progressbar.d.ts +1 -1
  261. package/components/digi-quote.d.ts +1 -1
  262. package/components/digi-table.d.ts +1 -1
  263. package/components/digi-tablist-panel.d.ts +1 -1
  264. package/components/digi-tablist.d.ts +1 -1
  265. package/components/digi-tag-media.d.ts +1 -1
  266. package/components/digi-tag.d.ts +1 -1
  267. package/components/digi-title-logo.d.ts +1 -1
  268. package/components/digi-tools-feedback-banner.d.ts +1 -1
  269. package/components/digi-tools-feedback-rating.d.ts +1 -1
  270. package/components/digi-tools-feedback.d.ts +1 -1
  271. package/components/digi-tools-theme-provider.d.ts +1 -1
  272. package/components/digi-typography-heading-jumbo.d.ts +1 -1
  273. package/components/digi-typography-meta.d.ts +1 -1
  274. package/components/digi-typography-preamble.d.ts +1 -1
  275. package/components/digi-typography-time.d.ts +1 -1
  276. package/components/digi-typography.d.ts +1 -1
  277. package/components/digi-util-breakpoint-observer.d.ts +1 -1
  278. package/components/digi-util-detect-click-outside.d.ts +1 -1
  279. package/components/digi-util-detect-focus-outside.d.ts +1 -1
  280. package/components/digi-util-intersection-observer.d.ts +1 -1
  281. package/components/digi-util-keydown-handler.d.ts +1 -1
  282. package/components/digi-util-keyup-handler.d.ts +1 -1
  283. package/components/digi-util-mutation-observer.d.ts +1 -1
  284. package/components/digi-util-resize-observer.d.ts +1 -1
  285. package/components/index.d.ts +284 -284
  286. package/dist/cjs/digi-bar-chart_27.cjs.entry.js +16 -20
  287. package/dist/collection/components/_chart/bar-chart/bar-chart.js +16 -20
  288. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  289. package/dist/digi-arbetsformedlingen/p-42db04e4.entry.js +1 -0
  290. package/dist/esm/digi-bar-chart_27.entry.js +16 -20
  291. package/hydrate/index.js +16 -20
  292. package/hydrate/index.mjs +16 -20
  293. package/package.json +1 -1
  294. package/dist/digi-arbetsformedlingen/p-0030ed70.entry.js +0 -1
@@ -255,8 +255,6 @@ const barChart = class {
255
255
  // Resizing chart while loading
256
256
  this.loadingResize = () => {
257
257
  const newHeight = this.setDims();
258
- this.setMargins(true);
259
- this.svg.attr('width', this.dims.width).attr('height', this.dims.height);
260
258
  this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
261
259
  this.margin.right =
262
260
  this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
@@ -281,10 +279,8 @@ const barChart = class {
281
279
  0,
282
280
  this.dims.width - this.margin.right - this.margin.left
283
281
  ]);
284
- this.barSelection
285
- .attr('x', this.xFunction)
286
- .attr('width', this.widthFunction);
287
282
  this.setValueTicks();
283
+ this.adjustBarSize();
288
284
  };
289
285
  this.highlightBarGroup = (_event, datum) => {
290
286
  if (typeof datum === 'string') {
@@ -991,11 +987,11 @@ const barChart = class {
991
987
  .html((d) => {
992
988
  return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
993
989
  });
994
- this.tooltip.style('visibility', 'visible');
990
+ this.tooltip.style('display', null);
995
991
  this.positionTooltip(this.tooltipData);
996
992
  };
997
993
  this.closeTooltip = () => {
998
- this.tooltip.style('visibility', 'hidden');
994
+ this.tooltip.style('display', 'none');
999
995
  };
1000
996
  // Positions tooltip in horizontal mode
1001
997
  this.positionTooltip = (data) => {
@@ -1134,12 +1130,13 @@ const barChart = class {
1134
1130
  this.afChartData = undefined;
1135
1131
  }
1136
1132
  afChartDataUpdate(data) {
1137
- if (typeof data != 'string')
1138
- this.chartData = data;
1139
- else
1140
- this.chartData = JSON.parse(data);
1141
- if (this.chartData)
1133
+ if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 || Object.keys(data).length > 0) {
1134
+ if (typeof data != 'string')
1135
+ this.chartData = data;
1136
+ else
1137
+ this.chartData = JSON.parse(data);
1142
1138
  this.series = this.chartData.data.series.map(serie => serie.title);
1139
+ }
1143
1140
  this.mappedData = this.reshapeData();
1144
1141
  // checking for width of each tick
1145
1142
  this.mappedData.forEach((elem) => {
@@ -1230,7 +1227,7 @@ const barChart = class {
1230
1227
  // Getting handle for tooltip
1231
1228
  this.tooltip = linear.select('#' + this.afId);
1232
1229
  this.tooltip.select('.tooltipClose').on('click', this.closeTooltip);
1233
- // Add heading placeholder for heading
1230
+ this.tooltip.selectAll('.tooltipHeading').remove();
1234
1231
  this.tooltip
1235
1232
  .select('.tooltipHead')
1236
1233
  .insert('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1), ':first-child') // increment heading level by one
@@ -1238,7 +1235,7 @@ const barChart = class {
1238
1235
  .style('font-size', '1rem')
1239
1236
  .style('margin', '0 0.75rem 0.25rem 0 ')
1240
1237
  .style('font-weight', '500');
1241
- this.tooltip.style('visibility', 'hidden');
1238
+ this.tooltip.style('display', 'none');
1242
1239
  }
1243
1240
  initEmpty() {
1244
1241
  linear.select(this.chartDiv).select('.chartSVG').remove();
@@ -1258,20 +1255,19 @@ const barChart = class {
1258
1255
  .attr('role', 'img')
1259
1256
  .attr('aria-label', this.chartData && this.chartData.title
1260
1257
  ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1261
- : 'Stapeldiagram');
1258
+ : 'Stapeldiagram').attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
1262
1259
  // Hide unusable components
1263
1260
  linear.select(this.titleDiv)
1264
- .select(this.afHeadingLevel)
1261
+ .append(this.afHeadingLevel)
1265
1262
  .html(`${text._t.loading}...`);
1266
1263
  this.initYAxis(true);
1267
1264
  this.initXAxis(true);
1268
1265
  this.tooltip = linear.select('#' + this.afId);
1269
- this.tooltip.style('visibility', 'hidden');
1266
+ this.tooltip.style('display', 'none');
1270
1267
  this.loadingState(true);
1271
1268
  }
1272
1269
  loadingState(empty) {
1273
1270
  this.loading = true;
1274
- console.log('loading!');
1275
1271
  // close potentially open tooltip
1276
1272
  if (this.tooltip)
1277
1273
  this.closeTooltip();
@@ -1665,7 +1661,7 @@ const barChart = class {
1665
1661
  this.averageLine();
1666
1662
  this.adjustBarSize();
1667
1663
  this.adjustBarText();
1668
- if (this.tooltip.style('visibility') !== 'hidden')
1664
+ if (this.tooltip.style('display') !== 'none')
1669
1665
  this.positionTooltip(this.tooltipData);
1670
1666
  }
1671
1667
  // Returns the longest text from an array of strings
@@ -1785,7 +1781,7 @@ const barChart = class {
1785
1781
  <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></p>`;
1786
1782
  }
1787
1783
  }
1788
- return (index.h(index.Host, { key: '3b919d1bdd201ddf5e4e5e2955190ed34c5aced3', ref: (el) => (this.host = el) }, index.h("svg", { key: '380b1d30cc3c7a71bf05fa4cdf4bb00def16b090', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, index.h("defs", { key: 'd39cde898124df9b34b994d0105fcc28e486a8f4' }, index.h("pattern", { key: '20d0ffdfa0e5310cad77ec994bf963f600de7b69', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, index.h("line", { key: '17d98e16afa2c42146a22a441d3dd0922ae767f5', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), index.h("pattern", { key: '3dfdebb12e5f2eba8b216acd4ff846e82615ed66', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, index.h("line", { key: 'df76dde74f8e49e600f97b81c0c50e97147b9626', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), index.h("pattern", { key: '1d7a87ca509e067288af063e406d98962639560c', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, index.h("line", { key: '1c9618f2b783704cc0ceab0c38d8b525b9fdc520', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), index.h("div", { key: '5217e3c1b3063bcb77fee7bebf631296ea95ab6b', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, index.h("digi-typography", { key: '904c16605d7947862bbf77b7f5dcbf581284ef97', class: "chartTitle", innerHTML: heading }), index.h("digi-button", { key: 'e285bef2d76e214a5615d4cee157bde5061e472a', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title) ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title.toLowerCase() : ''}` }, index.h("digi-icon-table", { key: '2b278678de6fc8feda2f02c494c6e0dc76d1b3bb', slot: "icon" }), "Visa tabell"), index.h("digi-button", { key: '85aa9d581cdf8332b87eebb80df10e2e654ec81e', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title) ? (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.title.toLowerCase() : ''}` }, index.h("digi-icon-chart", { key: 'e4396b006704ebd6ffad155ebb4be3ae7abaf5d0', slot: "icon" }), "Visa diagram"), index.h("div", { key: '6c8a51169075d49b9da6f0158042c06e5d38a6e2', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), index.h("div", { key: '8b0b7b63ba4f8b428f6d728d48cdc05ae791a605', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, index.h("div", { key: 'fadf084df0bfcd6f39831b92983091e6c0fefbd0', class: "chartTooltip", id: this.afId }, index.h("div", { key: '3a0258527320c1719bffec8c221bc9884d77ee1f', class: "tooltipHead" }, index.h("digi-icon-x", { key: 'b1013c82580116f7806b2bf31b08eea205a47db1', class: "tooltipClose" })), index.h("div", { key: 'e98e704c7f03fe0e0c1a90a9088f2962b9661a5c', class: "tooltipBody" }), this.afVariation === typographyVariation_enum.BarChartVariation.Horizontal ? (index.h("digi-icon-caret-up", { class: "caret" })) : (index.h("digi-icon-caret-down", { class: "caret" })))), index.h("div", { key: '56da797be96540039f52ae28a2bf250d46f47f12', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, index.h("div", { key: '3f3621240d161083d114df5d02a550d1f06613fa', class: "legend" })), index.h("div", { key: '427754c0a4b58f1cb334e89960d60c4ef22284f4', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1784
+ return (index.h(index.Host, { key: '78d96a495f4d362eb0f599ee48f79465ae6e6f0c', ref: (el) => (this.host = el) }, index.h("svg", { key: '39537403f0811e8090fc1c95a97bfa6b682df1c5', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, index.h("defs", { key: '29a015c3dd10fe55948ebc41835aa04eae31a9ff' }, index.h("pattern", { key: '0f48268bb9e065e0cf2c7d85a3602a66552b87ce', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, index.h("line", { key: 'fc24757af401e96fa228135bbbf17232bff16210', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), index.h("pattern", { key: 'e779819d8986d0d23dc799bfe208cac5d0f31211', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, index.h("line", { key: '767468e01325e2bd2d5847b9e72f70d421f9fd58', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), index.h("pattern", { key: '63772f52b5ed106d7cbece41143e932301f87bc5', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, index.h("line", { key: '4b89cfdb16e55f992cf7a9e6bcdf94528c7f4706', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), index.h("div", { key: 'd20cc02f768d7a19302b8ed5982f03fff5d82370', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, index.h("digi-typography", { key: '200a0918a84e054e3579cd7d14854c51bb1fb49c', class: "chartTitle", innerHTML: heading }), index.h("digi-button", { key: '0241efd1a7e114a74d08fb2d9dcc3243765e2c67', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title) ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title.toLowerCase() : ''}` }, index.h("digi-icon-table", { key: '8d3cecf7d3abd7f32c24634e11da3608ba6e1aa8', slot: "icon" }), "Visa tabell"), index.h("digi-button", { key: 'da15d792de3403b50828e7b951fdb73e213baa9f', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title) ? (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.title.toLowerCase() : ''}` }, index.h("digi-icon-chart", { key: '05cc0d7e638469f3cd60a4ad0fd93c16aaef1748', slot: "icon" }), "Visa diagram"), index.h("div", { key: 'e83745a86bcb781a970c0caf1177c3b3c7406a13', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), index.h("div", { key: '8b99b1365bcacccf51a7352c1385d54781ffb227', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, index.h("div", { key: '9eeb41124c07587a7e9b2cad5fe6597716ec905b', class: "chartTooltip", id: this.afId }, index.h("div", { key: '19f4428ae23fc9861b6743ef4617a2a5a48c3d02', class: "tooltipHead" }, index.h("digi-icon-x", { key: 'abb1b56f8d9449aa0fe16bacbf0b8ef8d10f94b7', class: "tooltipClose" })), index.h("div", { key: '67be9c846f0b0d5fcbae4b49e3a6266a58709c92', class: "tooltipBody" }), this.afVariation === typographyVariation_enum.BarChartVariation.Horizontal ? (index.h("digi-icon-caret-up", { class: "caret" })) : (index.h("digi-icon-caret-down", { class: "caret" })))), index.h("div", { key: 'bd56f13ab74501c24279f66a62e879ec25fc72e9', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, index.h("div", { key: '12089dd98e1e62198ed7a2e054bb454567cc220a', class: "legend" })), index.h("div", { key: '05c1f726446185113b0bf39e7c2e2cf6bbaba376', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1789
1785
  }
1790
1786
  get hostElement() { return index.getElement(this); }
1791
1787
  static get watchers() { return {
@@ -127,8 +127,6 @@ export class barChart {
127
127
  // Resizing chart while loading
128
128
  this.loadingResize = () => {
129
129
  const newHeight = this.setDims();
130
- this.setMargins(true);
131
- this.svg.attr('width', this.dims.width).attr('height', this.dims.height);
132
130
  this.barChartContainer.attr('transform', `translate(${this.margin.left + this.tickPadding + this.yTickSize},0)`);
133
131
  this.margin.right =
134
132
  this.getTextSize(this.xScale.domain()[1].toLocaleString()) / 2 +
@@ -153,10 +151,8 @@ export class barChart {
153
151
  0,
154
152
  this.dims.width - this.margin.right - this.margin.left
155
153
  ]);
156
- this.barSelection
157
- .attr('x', this.xFunction)
158
- .attr('width', this.widthFunction);
159
154
  this.setValueTicks();
155
+ this.adjustBarSize();
160
156
  };
161
157
  this.highlightBarGroup = (_event, datum) => {
162
158
  if (typeof datum === 'string') {
@@ -867,11 +863,11 @@ export class barChart {
867
863
  .html((d) => {
868
864
  return `<span>${d.serie}: <b style="font-weight:600;">${d.value.toLocaleString(undefined, this.numberFormat)}</b></span>`;
869
865
  });
870
- this.tooltip.style('visibility', 'visible');
866
+ this.tooltip.style('display', null);
871
867
  this.positionTooltip(this.tooltipData);
872
868
  };
873
869
  this.closeTooltip = () => {
874
- this.tooltip.style('visibility', 'hidden');
870
+ this.tooltip.style('display', 'none');
875
871
  };
876
872
  // Positions tooltip in horizontal mode
877
873
  this.positionTooltip = (data) => {
@@ -1010,12 +1006,13 @@ export class barChart {
1010
1006
  this.afChartData = undefined;
1011
1007
  }
1012
1008
  afChartDataUpdate(data) {
1013
- if (typeof data != 'string')
1014
- this.chartData = data;
1015
- else
1016
- this.chartData = JSON.parse(data);
1017
- if (this.chartData)
1009
+ if (typeof data === 'string' && Object.keys(JSON.parse(data)).length > 0 || Object.keys(data).length > 0) {
1010
+ if (typeof data != 'string')
1011
+ this.chartData = data;
1012
+ else
1013
+ this.chartData = JSON.parse(data);
1018
1014
  this.series = this.chartData.data.series.map(serie => serie.title);
1015
+ }
1019
1016
  this.mappedData = this.reshapeData();
1020
1017
  // checking for width of each tick
1021
1018
  this.mappedData.forEach((elem) => {
@@ -1108,7 +1105,7 @@ export class barChart {
1108
1105
  // Getting handle for tooltip
1109
1106
  this.tooltip = d3.select('#' + this.afId);
1110
1107
  this.tooltip.select('.tooltipClose').on('click', this.closeTooltip);
1111
- // Add heading placeholder for heading
1108
+ this.tooltip.selectAll('.tooltipHeading').remove();
1112
1109
  this.tooltip
1113
1110
  .select('.tooltipHead')
1114
1111
  .insert('h' + (parseInt(this.afHeadingLevel.replace(/\D/g, '')) + 1), ':first-child') // increment heading level by one
@@ -1116,7 +1113,7 @@ export class barChart {
1116
1113
  .style('font-size', '1rem')
1117
1114
  .style('margin', '0 0.75rem 0.25rem 0 ')
1118
1115
  .style('font-weight', '500');
1119
- this.tooltip.style('visibility', 'hidden');
1116
+ this.tooltip.style('display', 'none');
1120
1117
  }
1121
1118
  initEmpty() {
1122
1119
  d3.select(this.chartDiv).select('.chartSVG').remove();
@@ -1138,20 +1135,19 @@ export class barChart {
1138
1135
  .attr('role', 'img')
1139
1136
  .attr('aria-label', this.chartData && this.chartData.title
1140
1137
  ? 'Stapeldiagram om ' + this.chartData.title.toLowerCase()
1141
- : 'Stapeldiagram');
1138
+ : 'Stapeldiagram').attr('style', 'display: flex;min-width: 0;width: 100%;height: auto;');
1142
1139
  // Hide unusable components
1143
1140
  d3.select(this.titleDiv)
1144
- .select(this.afHeadingLevel)
1141
+ .append(this.afHeadingLevel)
1145
1142
  .html(`${_t.loading}...`);
1146
1143
  this.initYAxis(true);
1147
1144
  this.initXAxis(true);
1148
1145
  this.tooltip = d3.select('#' + this.afId);
1149
- this.tooltip.style('visibility', 'hidden');
1146
+ this.tooltip.style('display', 'none');
1150
1147
  this.loadingState(true);
1151
1148
  }
1152
1149
  loadingState(empty) {
1153
1150
  this.loading = true;
1154
- console.log('loading!');
1155
1151
  // close potentially open tooltip
1156
1152
  if (this.tooltip)
1157
1153
  this.closeTooltip();
@@ -1546,7 +1542,7 @@ export class barChart {
1546
1542
  this.averageLine();
1547
1543
  this.adjustBarSize();
1548
1544
  this.adjustBarText();
1549
- if (this.tooltip.style('visibility') !== 'hidden')
1545
+ if (this.tooltip.style('display') !== 'none')
1550
1546
  this.positionTooltip(this.tooltipData);
1551
1547
  }
1552
1548
  // Returns the longest text from an array of strings
@@ -1666,7 +1662,7 @@ export class barChart {
1666
1662
  <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></p>`;
1667
1663
  }
1668
1664
  }
1669
- return (h(Host, { key: '3b919d1bdd201ddf5e4e5e2955190ed34c5aced3', ref: (el) => (this.host = el) }, h("svg", { key: '380b1d30cc3c7a71bf05fa4cdf4bb00def16b090', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: 'd39cde898124df9b34b994d0105fcc28e486a8f4' }, h("pattern", { key: '20d0ffdfa0e5310cad77ec994bf963f600de7b69', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '17d98e16afa2c42146a22a441d3dd0922ae767f5', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: '3dfdebb12e5f2eba8b216acd4ff846e82615ed66', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: 'df76dde74f8e49e600f97b81c0c50e97147b9626', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: '1d7a87ca509e067288af063e406d98962639560c', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '1c9618f2b783704cc0ceab0c38d8b525b9fdc520', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: '5217e3c1b3063bcb77fee7bebf631296ea95ab6b', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '904c16605d7947862bbf77b7f5dcbf581284ef97', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: 'e285bef2d76e214a5615d4cee157bde5061e472a', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title) ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: '2b278678de6fc8feda2f02c494c6e0dc76d1b3bb', slot: "icon" }), "Visa tabell"), h("digi-button", { key: '85aa9d581cdf8332b87eebb80df10e2e654ec81e', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title) ? (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: 'e4396b006704ebd6ffad155ebb4be3ae7abaf5d0', slot: "icon" }), "Visa diagram"), h("div", { key: '6c8a51169075d49b9da6f0158042c06e5d38a6e2', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '8b0b7b63ba4f8b428f6d728d48cdc05ae791a605', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: 'fadf084df0bfcd6f39831b92983091e6c0fefbd0', class: "chartTooltip", id: this.afId }, h("div", { key: '3a0258527320c1719bffec8c221bc9884d77ee1f', class: "tooltipHead" }, h("digi-icon-x", { key: 'b1013c82580116f7806b2bf31b08eea205a47db1', class: "tooltipClose" })), h("div", { key: 'e98e704c7f03fe0e0c1a90a9088f2962b9661a5c', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: '56da797be96540039f52ae28a2bf250d46f47f12', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '3f3621240d161083d114df5d02a550d1f06613fa', class: "legend" })), h("div", { key: '427754c0a4b58f1cb334e89960d60c4ef22284f4', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1665
+ return (h(Host, { key: '78d96a495f4d362eb0f599ee48f79465ae6e6f0c', ref: (el) => (this.host = el) }, h("svg", { key: '39537403f0811e8090fc1c95a97bfa6b682df1c5', xmlns: "http://www.w3.org/2000/svg", width: "0", height: "0" }, h("defs", { key: '29a015c3dd10fe55948ebc41835aa04eae31a9ff' }, h("pattern", { key: '0f48268bb9e065e0cf2c7d85a3602a66552b87ce', id: "prognosis", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: 'fc24757af401e96fa228135bbbf17232bff16210', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar(this.colorPalettes[0]), "stroke-width": "8" })), h("pattern", { key: 'e779819d8986d0d23dc799bfe208cac5d0f31211', id: "prognosisInactive", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '767468e01325e2bd2d5847b9e72f70d421f9fd58', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.evalColorVar('--digi--color--background--secondary-accent'), "stroke-width": "8" })), h("pattern", { key: '63772f52b5ed106d7cbece41143e932301f87bc5', id: "prognosisHighlight", patternUnits: "userSpaceOnUse", width: "8", height: "8", patternTransform: "rotate(45)" }, h("line", { key: '4b89cfdb16e55f992cf7a9e6bcdf94528c7f4706', x1: "0", y: "0", x2: "0", y2: "12", stroke: this.adjustColor(this.colorFunction(0), 50), "stroke-width": "8" })))), h("div", { key: 'd20cc02f768d7a19302b8ed5982f03fff5d82370', class: "topWrapper", ref: (el) => (this.titleDiv = el) }, h("digi-typography", { key: '200a0918a84e054e3579cd7d14854c51bb1fb49c', class: "chartTitle", innerHTML: heading }), h("digi-button", { key: '0241efd1a7e114a74d08fb2d9dcc3243765e2c67', class: "buttonWrapper tableButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.activateTable, afAriaLabel: `Visa tabell ${((_b = this.chartData) === null || _b === void 0 ? void 0 : _b.title) ? (_c = this.chartData) === null || _c === void 0 ? void 0 : _c.title.toLowerCase() : ''}` }, h("digi-icon-table", { key: '8d3cecf7d3abd7f32c24634e11da3608ba6e1aa8', slot: "icon" }), "Visa tabell"), h("digi-button", { key: 'da15d792de3403b50828e7b951fdb73e213baa9f', style: { display: 'none' }, class: "buttonWrapper chartButton", "af-size": "medium", "af-variation": "function", "af-full-width": "false", onAfOnClick: this.reInitChart, afAriaLabel: `Visa diagram ${((_d = this.chartData) === null || _d === void 0 ? void 0 : _d.title) ? (_e = this.chartData) === null || _e === void 0 ? void 0 : _e.title.toLowerCase() : ''}` }, h("digi-icon-chart", { key: '05cc0d7e638469f3cd60a4ad0fd93c16aaef1748', slot: "icon" }), "Visa diagram"), h("div", { key: 'e83745a86bcb781a970c0caf1177c3b3c7406a13', class: "scChartStatus", role: "status", ref: (el) => (this.status = el) })), h("div", { key: '8b99b1365bcacccf51a7352c1385d54781ffb227', class: "svgWrap", ref: (el) => (this.chartDiv = el) }, h("div", { key: '9eeb41124c07587a7e9b2cad5fe6597716ec905b', class: "chartTooltip", id: this.afId }, h("div", { key: '19f4428ae23fc9861b6743ef4617a2a5a48c3d02', class: "tooltipHead" }, h("digi-icon-x", { key: 'abb1b56f8d9449aa0fe16bacbf0b8ef8d10f94b7', class: "tooltipClose" })), h("div", { key: '67be9c846f0b0d5fcbae4b49e3a6266a58709c92', class: "tooltipBody" }), this.afVariation === BarChartVariation.Horizontal ? (h("digi-icon-caret-up", { class: "caret" })) : (h("digi-icon-caret-down", { class: "caret" })))), h("div", { key: 'bd56f13ab74501c24279f66a62e879ec25fc72e9', class: "legendWrap", ref: (el) => (this.legendDiv = el) }, h("div", { key: '12089dd98e1e62198ed7a2e054bb454567cc220a', class: "legend" })), h("div", { key: '05c1f726446185113b0bf39e7c2e2cf6bbaba376', class: "table", ref: (el) => (this.tableDiv = el) }, ' ')));
1670
1666
  }
1671
1667
  static get is() { return "digi-bar-chart"; }
1672
1668
  static get encapsulation() { return "scoped"; }