@oiz/stzh-components 2.3.0 → 2.4.0

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 (185) hide show
  1. package/dist/cjs/{_commonjsHelpers-dcc4cf71.js → _commonjsHelpers-bcc1208a.js} +0 -16
  2. package/dist/cjs/{app-globals-905798bf.js → app-globals-8fbeeb92.js} +1 -1
  3. package/dist/cjs/{js.cookie-226c94ed.js → js.cookie-9c263d23.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-badge_3.cjs.entry.js +9 -2
  6. package/dist/cjs/stzh-card_3.cjs.entry.js +18 -19
  7. package/dist/cjs/stzh-chart.cjs.entry.js +5998 -5171
  8. package/dist/cjs/stzh-chip_2.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-components.cjs.js +2 -2
  10. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-datalist_2.cjs.entry.js +9 -2
  12. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  13. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  14. package/dist/cjs/stzh-dropdown.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +14 -3
  16. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-link.cjs.entry.js +9 -2
  18. package/dist/cjs/stzh-message.cjs.entry.js +2 -2
  19. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  20. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  23. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +16 -11
  25. package/dist/collection/assets/i18n/de.json +2 -0
  26. package/dist/collection/assets/i18n/en.json +3 -1
  27. package/dist/collection/components/stzh-button/stzh-button.css +11 -0
  28. package/dist/collection/components/stzh-button/stzh-button.js +28 -1
  29. package/dist/collection/components/stzh-card/stzh-card.css +1 -1
  30. package/dist/collection/components/stzh-card/stzh-card.js +17 -18
  31. package/dist/collection/components/stzh-chart/stzh-chart.css +101 -54
  32. package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -0
  33. package/dist/collection/components/stzh-chip/stzh-chip.css +2 -2
  34. package/dist/collection/components/stzh-cspace/stzh-cspace.css +36 -0
  35. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +11 -0
  36. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +28 -1
  37. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +10 -0
  38. package/dist/collection/components/stzh-input/stzh-input.stories.js +12 -12
  39. package/dist/collection/components/stzh-invert/stzh-invert.css +1 -1
  40. package/dist/collection/components/stzh-link/stzh-link.css +11 -0
  41. package/dist/collection/components/stzh-link/stzh-link.js +28 -1
  42. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +1 -1
  43. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +112 -6
  44. package/dist/collection/components/stzh-richtext/stzh-richtext.css +14 -3
  45. package/dist/collection/components/stzh-richtext/stzh-richtext.js +32 -0
  46. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +16 -11
  47. package/dist/collection/pages/egov.stories.js +12 -0
  48. package/dist/components/_commonjsHelpers.js +1 -16
  49. package/dist/components/index.js +1 -1
  50. package/dist/components/stzh-button2.js +10 -2
  51. package/dist/components/stzh-card2.js +18 -19
  52. package/dist/components/stzh-chart.js +5995 -5168
  53. package/dist/components/stzh-chip2.js +1 -1
  54. package/dist/components/stzh-cspace.js +1 -1
  55. package/dist/components/stzh-datalist-item2.js +10 -2
  56. package/dist/components/stzh-datamessagelist-item.js +1 -1
  57. package/dist/components/stzh-invert.js +1 -1
  58. package/dist/components/stzh-link2.js +10 -2
  59. package/dist/components/stzh-pagetitle-hero.js +1 -1
  60. package/dist/components/stzh-portal-mitwirken.js +1 -1
  61. package/dist/components/stzh-richtext2.js +14 -1
  62. package/dist/components/stzh-upload.js +1 -1
  63. package/dist/components/stzh-vbz-ticker.js +16 -11
  64. package/dist/esm/{_commonjsHelpers-f9dc4873.js → _commonjsHelpers-ba3f0406.js} +1 -16
  65. package/dist/esm/{app-globals-ed4f272d.js → app-globals-f5264f95.js} +1 -1
  66. package/dist/esm/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
  67. package/dist/esm/loader.js +2 -2
  68. package/dist/esm/stzh-badge_3.entry.js +9 -2
  69. package/dist/esm/stzh-card_3.entry.js +18 -19
  70. package/dist/esm/stzh-chart.entry.js +5995 -5168
  71. package/dist/esm/stzh-chip_2.entry.js +1 -1
  72. package/dist/esm/stzh-components.js +2 -2
  73. package/dist/esm/stzh-cspace.entry.js +1 -1
  74. package/dist/esm/stzh-datalist_2.entry.js +9 -2
  75. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  76. package/dist/esm/stzh-datatable.entry.js +1 -1
  77. package/dist/esm/stzh-dropdown.entry.js +1 -1
  78. package/dist/esm/stzh-ghettobox_2.entry.js +14 -3
  79. package/dist/esm/stzh-invert.entry.js +1 -1
  80. package/dist/esm/stzh-link.entry.js +9 -2
  81. package/dist/esm/stzh-message.entry.js +2 -2
  82. package/dist/esm/stzh-olmap.entry.js +1 -1
  83. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  84. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  85. package/dist/esm/stzh-upload.entry.js +1 -1
  86. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  87. package/dist/esm/stzh-vbz-ticker.entry.js +16 -11
  88. package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +1 -0
  89. package/dist/esm-es5/{app-globals-ed4f272d.js → app-globals-f5264f95.js} +1 -1
  90. package/dist/esm-es5/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
  91. package/dist/esm-es5/loader.js +1 -1
  92. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  93. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  94. package/dist/esm-es5/stzh-chart.entry.js +3 -3
  95. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  96. package/dist/esm-es5/stzh-components.js +1 -1
  97. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  98. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  99. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  100. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  101. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  102. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  103. package/dist/esm-es5/stzh-invert.entry.js +1 -1
  104. package/dist/esm-es5/stzh-link.entry.js +1 -1
  105. package/dist/esm-es5/stzh-message.entry.js +1 -1
  106. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  107. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  108. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  109. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  110. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  111. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  112. package/dist/stzh-components/assets/i18n/de.json +2 -0
  113. package/dist/stzh-components/assets/i18n/en.json +3 -1
  114. package/dist/stzh-components/{p-765d8272.js → p-05e742b4.js} +1 -1
  115. package/dist/stzh-components/{p-9c3f8f6b.system.js → p-09a6a4be.system.js} +1 -1
  116. package/dist/stzh-components/{p-b9372a2a.entry.js → p-0ab2f949.entry.js} +1 -1
  117. package/dist/stzh-components/{p-ed783154.system.entry.js → p-216b89d7.system.entry.js} +1 -1
  118. package/dist/stzh-components/{p-c8cc2563.system.entry.js → p-263fd0bb.system.entry.js} +1 -1
  119. package/dist/stzh-components/{p-e4a8f1bc.system.entry.js → p-2e40e63c.system.entry.js} +1 -1
  120. package/dist/stzh-components/{p-26889a91.entry.js → p-32ae64a3.entry.js} +1 -1
  121. package/dist/stzh-components/{p-4eee30ea.system.entry.js → p-340eedda.system.entry.js} +1 -1
  122. package/dist/stzh-components/p-3721f7b2.entry.js +1 -0
  123. package/dist/stzh-components/p-37de872c.system.entry.js +1 -0
  124. package/dist/stzh-components/p-3a73b8b5.system.js +1 -0
  125. package/dist/stzh-components/p-3e8ff66b.js +1 -0
  126. package/dist/stzh-components/{p-c2f909c1.system.entry.js → p-3fc51ad1.system.entry.js} +1 -1
  127. package/dist/stzh-components/p-4453449f.entry.js +1 -0
  128. package/dist/stzh-components/{p-d54ff4d4.system.entry.js → p-47175c6f.system.entry.js} +1 -1
  129. package/dist/stzh-components/p-5b85324c.entry.js +1 -0
  130. package/dist/stzh-components/{p-484a366f.system.js → p-5db542ae.system.js} +1 -1
  131. package/dist/stzh-components/p-62791751.entry.js +1 -0
  132. package/dist/stzh-components/p-660125e0.system.entry.js +1 -0
  133. package/dist/stzh-components/{p-3d2720ac.system.js → p-6932ce19.system.js} +1 -1
  134. package/dist/stzh-components/{p-f3276ca5.system.entry.js → p-6a109ce9.system.entry.js} +1 -1
  135. package/dist/stzh-components/p-6c73f6ad.entry.js +1 -0
  136. package/dist/stzh-components/{p-02d51685.entry.js → p-6ee87986.entry.js} +1 -1
  137. package/dist/stzh-components/{p-d9ae09b5.entry.js → p-7bb82e56.entry.js} +1 -1
  138. package/dist/stzh-components/p-7d42654b.system.entry.js +1 -0
  139. package/dist/stzh-components/{p-b92734db.entry.js → p-7e9fa7f5.entry.js} +1 -1
  140. package/dist/stzh-components/p-8c141cae.system.entry.js +1 -0
  141. package/dist/stzh-components/p-907f59dd.entry.js +1 -0
  142. package/dist/stzh-components/{p-6adc5f0c.system.entry.js → p-95bfbf67.system.entry.js} +1 -1
  143. package/dist/stzh-components/{p-c9c7d88a.entry.js → p-a47e205f.entry.js} +1 -1
  144. package/dist/stzh-components/p-aa2c81e6.system.entry.js +3 -0
  145. package/dist/stzh-components/{p-89bd0d46.entry.js → p-aa4f87cc.entry.js} +1 -1
  146. package/dist/stzh-components/p-af9aac53.entry.js +3 -0
  147. package/dist/stzh-components/{p-24b8df26.js → p-b10682ee.js} +1 -1
  148. package/dist/stzh-components/p-b9b1b7cf.entry.js +1 -0
  149. package/dist/stzh-components/p-c9940c35.entry.js +1 -0
  150. package/dist/stzh-components/{p-7e4261ce.system.entry.js → p-d5514e5b.system.entry.js} +1 -1
  151. package/dist/stzh-components/{p-a32ae73a.system.entry.js → p-d5948025.system.entry.js} +1 -1
  152. package/dist/stzh-components/{p-2b67b0b3.system.entry.js → p-d95b44c6.system.entry.js} +1 -1
  153. package/dist/stzh-components/p-ddcec4e1.system.entry.js +1 -0
  154. package/dist/stzh-components/{p-444b2baf.entry.js → p-e085a0a0.entry.js} +1 -1
  155. package/dist/stzh-components/{p-d943e02c.system.entry.js → p-e09ac5e3.system.entry.js} +1 -1
  156. package/dist/stzh-components/p-e4aa12ba.system.entry.js +1 -0
  157. package/dist/stzh-components/{p-af67ea5e.entry.js → p-f4c0d928.entry.js} +1 -1
  158. package/dist/stzh-components/p-f725921a.entry.js +1 -0
  159. package/dist/stzh-components/stzh-components.css +1 -1
  160. package/dist/stzh-components/stzh-components.esm.js +1 -1
  161. package/dist/stzh-components/stzh-components.js +1 -1
  162. package/dist/types/components.d.ts +33 -1
  163. package/dist/types/utils/translation-utils.d.ts +2 -0
  164. package/dist/vscode-data.json +16 -16
  165. package/package.json +4 -4
  166. package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +0 -1
  167. package/dist/stzh-components/p-16c0b9ae.entry.js +0 -3
  168. package/dist/stzh-components/p-1d435dd8.system.entry.js +0 -1
  169. package/dist/stzh-components/p-1f74846f.entry.js +0 -1
  170. package/dist/stzh-components/p-29e9ad9f.system.entry.js +0 -1
  171. package/dist/stzh-components/p-30a9de85.system.entry.js +0 -1
  172. package/dist/stzh-components/p-4c60da30.entry.js +0 -1
  173. package/dist/stzh-components/p-532b4218.entry.js +0 -1
  174. package/dist/stzh-components/p-798ac79c.entry.js +0 -1
  175. package/dist/stzh-components/p-84a6e023.system.entry.js +0 -1
  176. package/dist/stzh-components/p-8caafed2.system.entry.js +0 -1
  177. package/dist/stzh-components/p-99b82949.entry.js +0 -1
  178. package/dist/stzh-components/p-9c90535a.system.js +0 -1
  179. package/dist/stzh-components/p-9de8b25b.entry.js +0 -1
  180. package/dist/stzh-components/p-a6d4a8b1.js +0 -1
  181. package/dist/stzh-components/p-b04a9d0f.system.entry.js +0 -1
  182. package/dist/stzh-components/p-b422041d.entry.js +0 -1
  183. package/dist/stzh-components/p-cc722b35.system.entry.js +0 -3
  184. package/dist/stzh-components/p-db306e24.entry.js +0 -1
  185. package/dist/stzh-components/p-ee4b939a.entry.js +0 -1
@@ -6,7 +6,7 @@ const index = require('./index-83d427ee.js');
6
6
  const utils = require('./utils-a2ff9f84.js');
7
7
  const translationUtils = require('./translation-utils-73073e44.js');
8
8
  const stzhInputDescription = require('./stzh-input-description-2edc5cac.js');
9
- const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
9
+ const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
10
10
 
11
11
  var dropzone = _commonjsHelpers.createCommonjsModule(function (module, exports) {
12
12
  (function webpackUniversalModuleDefinition(root, factory) {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-83d427ee.js');
6
- const _commonjsHelpers = require('./_commonjsHelpers-dcc4cf71.js');
6
+ const _commonjsHelpers = require('./_commonjsHelpers-bcc1208a.js');
7
7
 
8
8
  var tinycolor = _commonjsHelpers.createCommonjsModule(function (module, exports) {
9
9
  // This file is autogenerated. It's used to publish CJS to npm.
@@ -82,6 +82,7 @@ const StzhVbzTicker = class {
82
82
  if (message.affectedProduct
83
83
  && message.category !== index$1.VBZ.DISTURBANCE_INFORMATION
84
84
  && message.baseType !== index$1.VBZ.BASE_TYPE_GLOBAL) {
85
+ const affectedLines = [];
85
86
  message.affectedProduct.forEach(product => {
86
87
  if (typeof lines[product.lineId] === "undefined") {
87
88
  lines[product.lineId] = {
@@ -95,17 +96,21 @@ const StzhVbzTicker = class {
95
96
  if (message.category === index$1.VBZ.DISTURBANCE_NORMAL) {
96
97
  lines[product.lineId].alert = true;
97
98
  }
98
- lines[product.lineId].disturbances.push({
99
- id: message.id,
100
- head: message.head,
101
- category: message.category,
102
- baseType: message.baseType,
103
- startDate: new Date(`${message.sDate}T${message.sTime}+02:00`),
104
- endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),
105
- altStart: message.altStart,
106
- altEnd: message.altEnd,
107
- infoUrl: infoUrl
108
- });
99
+ // only add disturbance message to line if it was not already added (avoiding same message twice)
100
+ if (!affectedLines.includes(product.lineId)) {
101
+ affectedLines.push(product.lineId);
102
+ lines[product.lineId].disturbances.push({
103
+ id: message.id,
104
+ head: message.head,
105
+ category: message.category,
106
+ baseType: message.baseType,
107
+ startDate: new Date(`${message.sDate}T${message.sTime}+02:00`),
108
+ endDate: new Date(`${message.eDate}T${message.eTime}+02:00`),
109
+ altStart: message.altStart,
110
+ altEnd: message.altEnd,
111
+ infoUrl: infoUrl
112
+ });
113
+ }
109
114
  });
110
115
  }
111
116
  });
@@ -16,6 +16,8 @@
16
16
  }
17
17
  },
18
18
  "$globals": {
19
+ "externalLinkLabel": "Externer Link:",
20
+ "downloadLinkLabel": "Download von:",
19
21
  "requiredFieldMarker": "",
20
22
  "requiredFieldText": " (Pflichtfeld)",
21
23
  "optionalFieldMarker": " (optional)",
@@ -16,6 +16,8 @@
16
16
  }
17
17
  },
18
18
  "$globals": {
19
+ "externalLinkLabel": "External link:",
20
+ "downloadLinkLabel": "Download of:",
19
21
  "requiredFieldMarker": "",
20
22
  "requiredFieldText": " (required)",
21
23
  "optionalFieldMarker": " (optional)",
@@ -117,7 +119,7 @@
117
119
  },
118
120
  "datamessagelist-item": {
119
121
  "actionsPopoverLabel": "Actions",
120
- "unread": "Unread"
122
+ "unread": "Unread"
121
123
  },
122
124
  "actionset": {
123
125
  "actions": "Actions",
@@ -258,6 +258,17 @@
258
258
  background-color: var(--hover-background-color);
259
259
  color: var(--hover-color);
260
260
  }
261
+ .stzh-button__vhidden {
262
+ border: 0;
263
+ clip: rect(0 0 0 0);
264
+ -webkit-clip-path: inset(100%);
265
+ clip-path: inset(100%);
266
+ width: 0.0625rem;
267
+ height: 0.0625rem;
268
+ overflow: hidden;
269
+ padding: 0;
270
+ position: absolute;
271
+ }
261
272
  .stzh-button__inner {
262
273
  display: flex;
263
274
  align-items: center;
@@ -1,5 +1,6 @@
1
1
  import { Host, Fragment, h } from "@stencil/core";
2
2
  import { hasSlot } from "../../utils/utils";
3
+ import { fetchTranslations } from "../../utils/translation-utils";
3
4
  /**
4
5
  * @slot - Slot for label/text content
5
6
  * @slot icon - Slot for icon element
@@ -45,6 +46,7 @@ export class StzhButton {
45
46
  event.preventDefault();
46
47
  }
47
48
  };
49
+ this.localization = undefined;
48
50
  this.badge = "";
49
51
  this.badgeType = "default";
50
52
  this.badgePosition = "button";
@@ -88,13 +90,18 @@ export class StzhButton {
88
90
  h("stzh-badge", { class: "stzh-button__badge", label: this.badge, type: this.badgeType })));
89
91
  }
90
92
  renderContent() {
91
- return (h("div", { class: "stzh-button__text" }, this.label ? this.label : h("slot", null)));
93
+ return (h("div", { class: "stzh-button__text" }, this.rel && this.rel.includes('external') && h("div", { class: "stzh-button__vhidden" }, this.localization.$globals.externalLinkLabel), this.download && h("div", { class: "stzh-button__vhidden" }, this.localization.$globals.downloadLinkLabel), this.label ? this.label : h("slot", null)));
92
94
  }
93
95
  renderInner(iconUsed) {
94
96
  return (h(Fragment, null, h("div", { class: "stzh-button__inner", onClick: this.onClick }, this.type === "radio" &&
95
97
  h("div", { class: "stzh-button__mark" }, h("div", { class: "stzh-button__check" })), this.iconPosition === "left" && this.renderIcon(iconUsed), this.renderContent(), this.iconPosition === "right" && this.renderIcon(iconUsed)), (this.badge || this.badgeEmpty) && (this.badgePosition === "button" || !iconUsed) &&
96
98
  h("stzh-badge", { class: "stzh-button__badge", label: this.badge, type: this.badgeType, onClick: this.onClick })));
97
99
  }
100
+ async componentWillLoad() {
101
+ if (!this.localization) {
102
+ this.localization = await fetchTranslations(this.element, "button");
103
+ }
104
+ }
98
105
  render() {
99
106
  const iconUsed = hasSlot(this.element, "icon") || !!this.icon;
100
107
  const classes = {
@@ -139,6 +146,26 @@ export class StzhButton {
139
146
  }
140
147
  static get properties() {
141
148
  return {
149
+ "localization": {
150
+ "type": "unknown",
151
+ "mutable": false,
152
+ "complexType": {
153
+ "original": "StzhLocaleComponent",
154
+ "resolved": "{ $locale: \"de\" | \"en\"; $formats: StzhLocaleFormats; $globals: StzhLocaleGlobals; }",
155
+ "references": {
156
+ "StzhLocaleComponent": {
157
+ "location": "import",
158
+ "path": "../../utils/translation-utils"
159
+ }
160
+ }
161
+ },
162
+ "required": false,
163
+ "optional": false,
164
+ "docs": {
165
+ "tags": [],
166
+ "text": "Translation strings"
167
+ }
168
+ },
142
169
  "badge": {
143
170
  "type": "string",
144
171
  "mutable": false,
@@ -126,7 +126,7 @@
126
126
  --border: 0.0625rem solid transparent;
127
127
  overflow: hidden;
128
128
  }
129
- :host.is-drag, :host.is-chosen, :host.is-ghost, :host.is-selected, .is-drag :host, .is-chosen :host, .is-ghost :host, .is-selected :host {
129
+ :host.is-drag, :host.is-chosen, :host.is-ghost, :host.is-selected, .is-drag :host, .is-chosen :host, .is-ghost :host, .is-selected :host, :host[is-sortable]:hover {
130
130
  --dnd-visibility: visible;
131
131
  --dnd-opacity: 1;
132
132
  }
@@ -226,6 +226,20 @@ export class StzhCard {
226
226
  var _a, _b, _c;
227
227
  const imageUsed = hasSlot(this.element, "image");
228
228
  const contentUsed = hasSlot(this.element, "content");
229
+ const Subtitle = `${this.subtitleInteractive ? 'button' : 'span'}`;
230
+ const sortableChildElement = this.findSortableChildElement();
231
+ const isFirstItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
232
+ && Array.from((_a = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _a === void 0 ? void 0 : _a.children)
233
+ .indexOf(sortableChildElement) === 0;
234
+ const isLastItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
235
+ && Array.from((_b = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _b === void 0 ? void 0 : _b.children)
236
+ .indexOf(sortableChildElement) === ((_c = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _c === void 0 ? void 0 : _c.children.length) - 1;
237
+ const sortableEnabled = !this.sortableDisabled && this.sortable && !this.sortable.disabled;
238
+ const sortableActionsEnabled = sortableEnabled && !this.hideMovementActions;
239
+ const nonCollapsingTextHeaderActions = this._headerActions.filter(action => !action.onlyCollapseText);
240
+ // const headerActions = [
241
+ // ...this._headerActions
242
+ // ];
229
243
  const classes = {
230
244
  "stzh-card": true,
231
245
  "stzh-card--has-link": !!this.href,
@@ -238,25 +252,10 @@ export class StzhCard {
238
252
  "stzh-card--is-collapsible": this.collapsible,
239
253
  "stzh-card--is-collapsed": this.collapsed,
240
254
  "stzh-card--is-starred": this.starred,
241
- "stzh-card--is-checked": this.checked
255
+ "stzh-card--is-checked": this.checked,
256
+ "stzh-card--is-sortable": sortableEnabled
242
257
  };
243
- const Subtitle = `${this.subtitleInteractive ? 'button' : 'span'}`;
244
- const sortableChildElement = this.findSortableChildElement();
245
- const isFirstItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
246
- && Array.from((_a = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _a === void 0 ? void 0 : _a.children)
247
- .indexOf(sortableChildElement) === 0;
248
- const isLastItemInSortable = (sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement)
249
- && Array.from((_b = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _b === void 0 ? void 0 : _b.children)
250
- .indexOf(sortableChildElement) === ((_c = sortableChildElement === null || sortableChildElement === void 0 ? void 0 : sortableChildElement.parentElement) === null || _c === void 0 ? void 0 : _c.children.length) - 1;
251
- const sortableActionsEnabled = !this.sortableDisabled
252
- && !this.hideMovementActions
253
- && this.sortable
254
- && !this.sortable.disabled;
255
- const nonCollapsingTextHeaderActions = this._headerActions.filter(action => !action.onlyCollapseText);
256
- // const headerActions = [
257
- // ...this._headerActions
258
- // ];
259
- return (h(Host, { role: "listitem", "aria-label": this.heading }, h("article", { ref: (el) => (this.mainElement = el), class: classes }, h("a", { "aria-hidden": "true", tabindex: "-1", class: "stzh-card__image-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, h("slot", { name: "image" })), h("div", { class: "stzh-card__content-wrapper" }, h("stzh-icon", { class: "stzh-card__dnd", name: "drag" }), h("header", { ref: (el) => (this.headerElement = el), class: "stzh-card__header", onClick: this.headerClick }, h("div", { class: "stzh-card__header-top" }, h("div", { ref: (el) => (this.headerLeftElement = el), class: "stzh-card__header-left" }, h("div", { class: "stzh-card__title-area" }, h("h3", { class: "stzh-card__title" }, h("a", { class: "stzh-card__title-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, this.heading ? this.heading : h("slot", { name: "heading" }))), this._subtitles.length > 0 &&
258
+ return (h(Host, { role: "listitem", "aria-label": this.heading, "is-sortable": sortableEnabled }, h("article", { ref: (el) => (this.mainElement = el), class: classes }, h("a", { "aria-hidden": "true", tabindex: "-1", class: "stzh-card__image-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, h("slot", { name: "image" })), h("div", { class: "stzh-card__content-wrapper" }, h("stzh-icon", { class: "stzh-card__dnd", name: "drag" }), h("header", { ref: (el) => (this.headerElement = el), class: "stzh-card__header", onClick: this.headerClick }, h("div", { class: "stzh-card__header-top" }, h("div", { ref: (el) => (this.headerLeftElement = el), class: "stzh-card__header-left" }, h("div", { class: "stzh-card__title-area" }, h("h3", { class: "stzh-card__title" }, h("a", { class: "stzh-card__title-link", href: this.href, target: this.target, onClick: this.href ? this.cardClick : null }, this.heading ? this.heading : h("slot", { name: "heading" }))), this._subtitles.length > 0 &&
260
259
  h(Subtitle, { class: "stzh-card__subtitle", onClick: this.subtitleClick }, this._subtitles.map(subtitle => (h("span", { class: "stzh-card__subtitle-text" }, subtitle)))))), h("div", { ref: (el) => (this.headerRightElement = el), class: "stzh-card__header-right" }, h("div", { class: "stzh-card__card-actions" }, this._headerActions.map(action => (h("stzh-button", { class: {
261
260
  "stzh-card__card-action": true,
262
261
  "is-button": true,
@@ -147,14 +147,20 @@
147
147
  cursor: -webkit-grabbing;
148
148
  }
149
149
 
150
+ :root {
151
+ --stzh-font: var(--stzh-font-family-regular, "Helvetica Neue", Helvetica, Arial, sans-serif);
152
+ }
153
+
150
154
  /**
151
155
  * Axis component based on the d3.axis interface
152
156
  * Changed color to match stzh website (original #B8B8B8)
153
157
  * @module sszvis/axis
154
158
  */
155
159
  .sszvis-axis text {
156
- fill: #767676;
157
- font-family: Arial, sans-serif;
160
+ color: #737373;
161
+ fill: #737373;
162
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
163
+ font-family: var(--stzh-font);
158
164
  font-size: 0.625rem;
159
165
  font-style: normal;
160
166
  font-weight: normal;
@@ -166,7 +172,7 @@
166
172
  .sszvis-axis path,
167
173
  .sszvis-axis line {
168
174
  fill: none;
169
- stroke: #B8B8B8;
175
+ stroke: #b8b8b8;
170
176
  shape-rendering: crispEdges;
171
177
  }
172
178
 
@@ -197,9 +203,9 @@
197
203
  }
198
204
 
199
205
  .sszvis-axis__label-contour {
200
- fill: #FFFFFF;
206
+ fill: #ffffff;
201
207
  opacity: 0.8;
202
- stroke: #FFFFFF;
208
+ stroke: #ffffff;
203
209
  stroke-width: 3;
204
210
  }
205
211
 
@@ -214,7 +220,7 @@
214
220
  * @module sszvis/component/groupedBars
215
221
  */
216
222
  .sszvis-bar--missing {
217
- stroke: #A4A4A4;
223
+ stroke: #a4a4a4;
218
224
  }
219
225
 
220
226
  /**
@@ -248,7 +254,8 @@
248
254
  alignment-baseline: central;
249
255
  /* Maybe at least one of these will work? */
250
256
  dominant-baseline: central;
251
- font-family: Arial, sans-serif;
257
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
258
+ font-family: var(--stzh-font);
252
259
  font-size: 0.625rem;
253
260
  font-style: normal;
254
261
  font-weight: normal;
@@ -267,7 +274,7 @@
267
274
  }
268
275
 
269
276
  .sszvis-sankey-column-label-tick {
270
- stroke: #B8B8B8;
277
+ stroke: #b8b8b8;
271
278
  }
272
279
 
273
280
  .sszvis-sankey-link-source-label {
@@ -374,38 +381,39 @@
374
381
  }
375
382
 
376
383
  .sszvis-control-buttonGroup__item {
377
- background-color: #FFFFFF;
378
- border: 0.0625rem solid #767676;
384
+ background-color: #ffffff;
385
+ border: 0.0625rem solid #0f05a0;
379
386
  border-left: none;
380
387
  box-sizing: border-box;
381
- color: #767676;
388
+ color: #0f05a0;
382
389
  cursor: pointer;
383
390
  display: table-cell;
384
- font-family: Arial, sans-serif;
391
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
392
+ font-family: var(--stzh-font);
385
393
  font-size: 0.75rem;
386
394
  line-height: normal;
387
395
  padding: 0.5625rem 0.75rem;
388
396
  text-align: center;
389
397
  vertical-align: middle;
398
+ transition: all 0.3s;
399
+ }
400
+
401
+ .sszvis-control-buttonGroup__item:hover,
402
+ .sszvis-control-buttonGroup__item.selected:hover {
403
+ background-color: #070250;
404
+ color: #fff;
390
405
  }
391
406
 
392
407
  /**
393
408
  * uses same background color as "Zurücksetzen" form button on stzh Website
394
409
  */
395
410
  .sszvis-control-buttonGroup__item.selected {
396
- background-color: #767676;
397
- color: #FFFFFF;
411
+ background-color: #0f05a0;
412
+ color: #ffffff;
398
413
  }
399
414
 
400
415
  .sszvis-control-buttonGroup__item:first-child {
401
- border-left: 0.0625rem solid #767676;
402
- border-top-left-radius: 0.1875rem;
403
- border-bottom-left-radius: 0.1875rem;
404
- }
405
-
406
- .sszvis-control-buttonGroup__item:last-child {
407
- border-top-right-radius: 0.1875rem;
408
- border-bottom-right-radius: 0.1875rem;
416
+ border-left: 0.0625rem solid #0f05a0;
409
417
  }
410
418
 
411
419
  /**
@@ -414,10 +422,10 @@
414
422
  * @module sszvis/control/select
415
423
  */
416
424
  .sszvis-control-select {
417
- border: 0.0625rem solid #767676;
418
- border-radius: 0.1875rem;
419
- background-color: #FFFFFF;
420
- background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAABQElEQVR4nO3TzW2DUBDEcZdACSnBpe1lVhzdCSXZnaQE55JJSOJgMO9rH/OTOK70/iNxOomIiIiIiMi3cRzfar8hlc0tAM4A3gFMeZ5UDoDps+W86sDMBgBXd7+7+z3yCACmWcfVzIbFg9/xkUeYx68a4b/4iCM8in86wlJ8pBGW4ucj/Dhy98uzowgjrImffZevQzMb3P0WeYSN8bc/v0HkEXbHU8QRksVTpBGSx1OEEbLFU8sjZI+nFkcoFk8tjVA8nloYoVo81RyhejzVGKGZeCo5QnPxVGKEZuMp5wjNx1OOEcLEU8oRwsVTihHCxtOeEcLH0ysjdBNPW0foKp4yjBAnnhKOEC+eEowQN552jBA/nl4YoZ942jBCf/G0YoR+42lhhP7j6cEIx4mn2QjHiyczGw4bLyIiIiIiUtMHjJmBk7uXEiAAAAAASUVORK5CYII=");
425
+ border: 0.0625rem solid #0f05a0;
426
+ border-radius: 0.125rem;
427
+ background-color: #ffffff;
428
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAABGdBTUEAALGPC/xhBQAAADhlWElmTU0AKgAAAAgAAYdpAA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ZSZgx2yKn+j39i/MK/P/2o+1i/0/n3EGADKYAPczLfnYd8a9B8DGqRIBIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAEiAARIAJEgAgQASJABIgAESACRIAIEAEiQASIABEgAkSACBABIkAE1Evgf5wNNavES9lPAAAAAElFTkSuQmCC");
421
429
  background-position: 96% 51%;
422
430
  background-repeat: no-repeat;
423
431
  background-size: 0.75rem 0.75rem;
@@ -425,17 +433,31 @@
425
433
  cursor: pointer;
426
434
  height: 2.125rem;
427
435
  overflow: hidden;
436
+ color: #0f05a0;
437
+ transition: all 0.3s;
438
+ }
439
+
440
+ .sszvis-control-select:hover {
441
+ border-color: #070250;
442
+ }
443
+
444
+ .sszvis-control-select__element:hover {
445
+ color: #070250;
446
+ cursor: pointer;
428
447
  }
429
448
 
430
449
  .sszvis-control-select__element {
431
450
  background: transparent;
432
- border: 0.0625rem solid #FFFFFF;
433
- color: #767676;
434
- font-family: Arial, sans-serif;
451
+ border: 0.0625rem solid #ffffff;
452
+ color: #0f05a0;
453
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
454
+ font-family: var(--stzh-font);
435
455
  font-size: 1rem;
436
456
  /* Minimum of 16px to prevent iOS to zoom page */
437
457
  height: 2.125rem;
438
458
  outline: 0;
459
+ transition: all 0.3s;
460
+ padding-left: 0.3125rem;
439
461
  }
440
462
 
441
463
  /* Hide focus ring on Firefox */
@@ -445,7 +467,8 @@
445
467
  }
446
468
 
447
469
  .sszvis-control-select__metrics {
448
- font-family: Arial, sans-serif;
470
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
471
+ font-family: var(--stzh-font);
449
472
  font-size: 0.75rem;
450
473
  height: auto;
451
474
  position: absolute;
@@ -465,7 +488,8 @@
465
488
 
466
489
  .sszvis-control-slider--label {
467
490
  fill: #545454;
468
- font-family: Arial, sans-serif;
491
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
492
+ font-family: var(--stzh-font);
469
493
  font-size: 0.625rem;
470
494
  text-anchor: middle;
471
495
  }
@@ -485,12 +509,12 @@
485
509
  * @module sszvis/control/handleRuler
486
510
  */
487
511
  .sszvis-handleRuler__handle {
488
- fill: #FFFFFF;
512
+ fill: #ffffff;
489
513
  stroke: #808184;
490
514
  }
491
515
 
492
516
  .sszvis-handleRuler__handle-mark {
493
- stroke: #A6A8AB;
517
+ stroke: #a6a8ab;
494
518
  }
495
519
 
496
520
  /**
@@ -500,17 +524,18 @@
500
524
  */
501
525
  .sszvis-ruler__rule {
502
526
  shape-rendering: crispEdges;
503
- stroke: #CCCCCC;
527
+ stroke: #cccccc;
504
528
  }
505
529
 
506
530
  .sszvis-ruler__dot {
507
- stroke: #FFFFFF;
531
+ stroke: #ffffff;
508
532
  stroke-width: 1.5;
509
533
  }
510
534
 
511
535
  .sszvis-ruler__label,
512
536
  .sszvis-ruler__label-outline {
513
- font-family: Arial, sans-serif;
537
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
538
+ font-family: var(--stzh-font);
514
539
  font-size: 0.75rem;
515
540
  font-style: normal;
516
541
  font-weight: normal;
@@ -521,7 +546,7 @@
521
546
  }
522
547
 
523
548
  .sszvis-ruler__label-outline {
524
- stroke: #FFFFFF;
549
+ stroke: #ffffff;
525
550
  stroke-width: 3;
526
551
  }
527
552
 
@@ -531,8 +556,8 @@
531
556
  * @module sszvis/annotation/rangeFlag
532
557
  */
533
558
  .sszvis-rangeFlag__mark {
534
- fill: #EFEFEF;
535
- stroke: #7C7C7C;
559
+ fill: #efefef;
560
+ stroke: #7c7c7c;
536
561
  stroke-width: 1.5;
537
562
  }
538
563
 
@@ -553,13 +578,30 @@
553
578
  opacity: 0.25;
554
579
  }
555
580
 
556
- .sszvis-rangeRuler__label, .sszvis-rangeRuler__total {
581
+ .sszvis-rangeRuler__label,
582
+ .sszvis-rangeRuler__total {
583
+ stroke: none;
557
584
  font-size: 0.625rem;
558
- fill: #545454;
559
- font-family: Arial, sans-serif;
585
+ fill: #737373;
586
+ color: #737373;
587
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
588
+ font-family: var(--stzh-font);
560
589
  font-style: normal;
561
590
  }
562
591
 
592
+ .sszvis-rangeRuler__label-contour,
593
+ .sszvis-rangeRuler__total-contour {
594
+ font-size: 0.625rem;
595
+ fill: #737373;
596
+ color: #737373;
597
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
598
+ font-family: var(--stzh-font);
599
+ font-style: normal;
600
+ stroke: #ffffff;
601
+ stroke-width: 3;
602
+ stroke-opacity: 0.8;
603
+ }
604
+
563
605
  /**
564
606
  * Tooltip annotation
565
607
  *
@@ -607,7 +649,7 @@
607
649
  }
608
650
 
609
651
  .sszvis-tooltip__body {
610
- color: #7C7C7C;
652
+ color: #7c7c7c;
611
653
  font-size: 0.6875rem;
612
654
  line-height: 1.4545;
613
655
  vertical-align: middle;
@@ -639,7 +681,7 @@
639
681
  }
640
682
 
641
683
  .sszvis-tooltip__body__table tr {
642
- border-top: 0.0625rem solid #E5E6E7;
684
+ border-top: 0.0625rem solid #e5e6e7;
643
685
  }
644
686
 
645
687
  .sszvis-tooltip__body__table td {
@@ -687,8 +729,9 @@
687
729
  }
688
730
 
689
731
  .sszvis-referenceline__caption {
690
- fill: #7C7C7C;
691
- font-family: Arial, sans-serif;
732
+ fill: #7c7c7c;
733
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
734
+ font-family: var(--stzh-font);
692
735
  font-size: 0.6875rem;
693
736
  text-anchor: middle;
694
737
  /*
@@ -703,8 +746,9 @@
703
746
  * @module sszvis/annotation/circle
704
747
  */
705
748
  .sszvis-dataareacircle__caption {
706
- fill: #7C7C7C;
707
- font-family: Arial, sans-serif;
749
+ fill: #7c7c7c;
750
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
751
+ font-family: var(--stzh-font);
708
752
  font-size: 0.6875rem;
709
753
  text-anchor: middle;
710
754
  }
@@ -715,8 +759,9 @@
715
759
  * @module sszvis/annotation/rectangle
716
760
  */
717
761
  .sszvis-dataarearectangle__caption {
718
- fill: #7C7C7C;
719
- font-family: Arial, sans-serif;
762
+ fill: #7c7c7c;
763
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
764
+ font-family: var(--stzh-font);
720
765
  font-size: 0.6875rem;
721
766
  text-anchor: middle;
722
767
  }
@@ -731,7 +776,8 @@
731
776
  */
732
777
  .sszvis-legend__label {
733
778
  fill: #767676;
734
- font-family: Arial, sans-serif;
779
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
780
+ font-family: var(--stzh-font);
735
781
  font-size: 0.75rem;
736
782
  font-style: normal;
737
783
  font-weight: normal;
@@ -745,7 +791,8 @@
745
791
 
746
792
  .sszvis-legend__axislabel {
747
793
  fill: #767676;
748
- font-family: Arial, sans-serif;
794
+ font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
795
+ font-family: var(--stzh-font);
749
796
  font-size: 0.625rem;
750
797
  font-style: normal;
751
798
  font-weight: normal;
@@ -757,12 +804,12 @@
757
804
 
758
805
  .sszvis-legend__greyline {
759
806
  fill: none;
760
- stroke: #B8B8B8;
807
+ stroke: #b8b8b8;
761
808
  stroke-width: 1.1;
762
809
  }
763
810
 
764
811
  .sszvis-legend__dashedline {
765
- stroke: #CCCCCC;
812
+ stroke: #cccccc;
766
813
  stroke-dasharray: 2 3;
767
814
  stroke-width: 1;
768
815
  }
@@ -30,6 +30,7 @@ const Template = (args) => (
30
30
  </stzh-figure>
31
31
  );
32
32
 
33
+ // https://statistikstadtzuerich.github.io/sszvis/#/pie-charts
33
34
  export const Default = Template.bind({});
34
35
  Default.args = {
35
36
  'chart-id': 'PieChartFourCat',
@@ -181,14 +181,14 @@
181
181
  --remove-color: var(--stzh-color-white);
182
182
  --background-color: var(--stzh-color-primary, var(--stzh-color-zueriblue));
183
183
  --icon-color: var(--stzh-color-white);
184
- --counter-color: var(--stzh-color-white48);
184
+ --counter-color: var(--stzh-color-white56);
185
185
  --hover-color: var(--stzh-color-white);
186
186
  --hover-border: 0.0625rem solid transparent;
187
187
  --hover-background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
188
188
  --hover-remove-color: var(--stzh-color-white);
189
189
  --hover-remove-background-color: var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));
190
190
  --hover-icon-color: var(--stzh-color-white);
191
- --hover-counter-color: var(--stzh-color-white48);
191
+ --hover-counter-color: var(--stzh-color-white56);
192
192
  }
193
193
  @media (forced-colors: active), (-ms-high-contrast: active) {
194
194
  :host[active]:not([active=false]) {