@designsystem-se/af 40.0.1-beta.0 → 41.0.1-beta.1

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 (90) hide show
  1. package/components/digi-calendar-datepicker.js +5 -5
  2. package/components/digi-calendar.js +1 -1
  3. package/components/digi-code-block.js +1 -1
  4. package/components/digi-code-example.js +2 -2
  5. package/components/digi-dialog.js +8 -8
  6. package/components/digi-footer.js +1 -1
  7. package/components/digi-form-error-list.js +2 -2
  8. package/components/digi-form-file-upload.js +1 -1
  9. package/components/digi-form-input-search.js +2 -2
  10. package/components/digi-form-input.js +1 -1
  11. package/components/digi-form-label.js +1 -1
  12. package/components/digi-form-receipt.js +1 -1
  13. package/components/digi-form-select-filter.js +3 -3
  14. package/components/digi-form-select.js +1 -1
  15. package/components/digi-form-textarea.js +1 -1
  16. package/components/digi-header-navigation.js +1 -1
  17. package/components/digi-header.js +1 -1
  18. package/components/digi-navigation-pagination.js +1 -1
  19. package/components/digi-notification-alert.js +1 -1
  20. package/components/digi-notification-error-page.js +1 -1
  21. package/components/digi-title-logo.js +1 -1
  22. package/components/digi-tools-feedback-rating.js +2 -2
  23. package/components/digi-tools-feedback.js +1 -1
  24. package/components/index.js +1 -1
  25. package/components/{p-B7_lQTCU.js → p-2QoafdpB.js} +5 -19
  26. package/components/{p-CEMmPEb7.js → p-BEq012mG.js} +1 -1
  27. package/components/{p-CEr0zDQh.js → p-BYmysv-i.js} +0 -1
  28. package/components/{p-stxQJv63.js → p-CZNczF84.js} +1 -1
  29. package/components/{p-C9upnau2.js → p-CsnkG9DM.js} +1 -1
  30. package/components/{p-DdGvmUiV.js → p-DL56hj-Q.js} +2 -2
  31. package/components/{p-Ch1QoMTV.js → p-Hoik5UXD.js} +1 -1
  32. package/custom-elements.json +1 -1
  33. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  34. package/dist/cjs/digi-button_83.cjs.entry.js +5 -12
  35. package/dist/cjs/digi-code-block_2.cjs.entry.js +1 -1
  36. package/dist/cjs/digi-dialog.cjs.entry.js +8 -8
  37. package/dist/cjs/digi-form-error-list.cjs.entry.js +1 -1
  38. package/dist/cjs/digi-form-receipt.cjs.entry.js +1 -1
  39. package/dist/cjs/digi-navigation-pagination.cjs.entry.js +1 -1
  40. package/dist/cjs/digi-notification-error-page.cjs.entry.js +1 -1
  41. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +2 -2
  42. package/dist/cjs/digi-tools-feedback.cjs.entry.js +1 -1
  43. package/dist/cjs/index.cjs.js +1 -1
  44. package/dist/cjs/loader.cjs.js +1 -1
  45. package/dist/cjs/{typography-variation.enum-B05du-qd.js → typography-variation.enum-DoCpztFv.js} +0 -1
  46. package/dist/collection/components/_dialog/dialog/dialog-variation.enum.js +0 -1
  47. package/dist/collection/components/_dialog/dialog/dialog.css +0 -14
  48. package/dist/collection/components/_dialog/dialog/dialog.js +12 -9
  49. package/dist/collection/components/_form/form-label/form-label.js +4 -12
  50. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.css +2 -2
  51. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +1 -1
  52. package/dist/collection/styles/project.json +2 -1
  53. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +17 -15
  54. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  55. package/dist/digi-arbetsformedlingen/index.esm.js +1 -1
  56. package/dist/digi-arbetsformedlingen/p-24bfa89f.entry.js +1 -0
  57. package/dist/digi-arbetsformedlingen/p-4d5a69f1.entry.js +1 -0
  58. package/dist/digi-arbetsformedlingen/{p-3ac39b8a.entry.js → p-558ee80c.entry.js} +1 -1
  59. package/dist/digi-arbetsformedlingen/{p-1169c664.entry.js → p-582602c8.entry.js} +1 -1
  60. package/dist/digi-arbetsformedlingen/{p-b24aa6ea.entry.js → p-5a006aa4.entry.js} +1 -1
  61. package/dist/digi-arbetsformedlingen/p-5c8111ef.entry.js +1 -0
  62. package/dist/digi-arbetsformedlingen/p-O8viRERh.js +1 -0
  63. package/dist/digi-arbetsformedlingen/{p-1f14f444.entry.js → p-b4a2f40c.entry.js} +1 -1
  64. package/dist/digi-arbetsformedlingen/{p-ff5e7262.entry.js → p-d22afa5b.entry.js} +1 -1
  65. package/dist/digi-arbetsformedlingen/{p-5f347e34.entry.js → p-f847defd.entry.js} +1 -1
  66. package/dist/digi-arbetsformedlingen/styles/project.json +2 -1
  67. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  68. package/dist/esm/digi-button_83.entry.js +5 -12
  69. package/dist/esm/digi-code-block_2.entry.js +1 -1
  70. package/dist/esm/digi-dialog.entry.js +8 -8
  71. package/dist/esm/digi-form-error-list.entry.js +1 -1
  72. package/dist/esm/digi-form-receipt.entry.js +1 -1
  73. package/dist/esm/digi-navigation-pagination.entry.js +1 -1
  74. package/dist/esm/digi-notification-error-page.entry.js +1 -1
  75. package/dist/esm/digi-tools-feedback-rating.entry.js +2 -2
  76. package/dist/esm/digi-tools-feedback.entry.js +1 -1
  77. package/dist/esm/index.js +1 -1
  78. package/dist/esm/loader.js +1 -1
  79. package/dist/esm/{typography-variation.enum-CC1-vxoR.js → typography-variation.enum-O8viRERh.js} +0 -1
  80. package/dist/types/components/_dialog/dialog/dialog-variation.enum.d.ts +1 -2
  81. package/dist/types/components/_dialog/dialog/dialog.d.ts +3 -3
  82. package/dist/types/components/_form/form-label/form-label.d.ts +1 -2
  83. package/dist/types/components.d.ts +6 -4
  84. package/hydrate/index.js +13 -22
  85. package/hydrate/index.mjs +13 -22
  86. package/package.json +2 -4
  87. package/dist/digi-arbetsformedlingen/p-01d6cf14.entry.js +0 -1
  88. package/dist/digi-arbetsformedlingen/p-191895bf.entry.js +0 -1
  89. package/dist/digi-arbetsformedlingen/p-CC1-vxoR.js +0 -1
  90. package/dist/digi-arbetsformedlingen/p-e18ce6d7.entry.js +0 -1
@@ -39,20 +39,6 @@ License: none (public domain)
39
39
  --DIGI--DIALOG--COLOR: var(--digi--dialog--content--color--primary);
40
40
  --DIGI--DIALOG--CONTENT--BUTTON--COLOR--BORDER--PRIMARY: initial;
41
41
  }
42
- :host .digi-dialog--secondary {
43
- --digi--dialog--content--color--secondary: var(
44
- --digi--global--color--profile--white--base
45
- );
46
- --digi--dialog--content--color--background--secondary: var(
47
- --digi--global--color--profile--blue--base
48
- );
49
- --DIGI--DIALOG--COLOR--BACKGROUND: var(
50
- --digi--dialog--content--color--background--secondary
51
- );
52
- --DIGI--DIALOG--COLOR: var(--digi--dialog--content--color--secondary);
53
- --DIGI--DIALOG--CONTENT--BUTTON--COLOR--BORDER--PRIMARY: #b7b7ff;
54
- --digi--color--text--primary: var(--digi--dialog--content--color--secondary);
55
- }
56
42
  :host .digi-dialog--small {
57
43
  --DIGI--DIALOG--CONTENT--WIDTH: var(--digi--dialog--content--width--small);
58
44
  }
@@ -22,8 +22,9 @@ export class Dialog {
22
22
  */
23
23
  this.afId = randomIdGenerator('digi-dialog');
24
24
  /**
25
- * Sätt variation på modalen. OBS! Sekundär variant är endast en beta.
26
- * @en Set variation to modal. Secondary is only in beta.
25
+ * Sätt variation på modalen.
26
+ * @deprecated Property afVariation tas bort från Modal i februari 2027.
27
+ * @en Set variation to modal.
27
28
  */
28
29
  this.afVariation = DialogVariation.PRIMARY;
29
30
  /**
@@ -245,18 +246,17 @@ export class Dialog {
245
246
  get cssModifiers() {
246
247
  return {
247
248
  'digi-dialog--primary': this.afVariation == DialogVariation.PRIMARY,
248
- 'digi-dialog--secondary': this.afVariation == DialogVariation.SECONDARY,
249
249
  'digi-dialog--small': this.afSize == DialogSize.SMALL,
250
250
  'digi-dialog--medium': this.afSize == DialogSize.MEDIUM,
251
251
  'digi-dialog--large': this.afSize == DialogSize.LARGE
252
252
  };
253
253
  }
254
254
  render() {
255
- return (h(Host, { key: 'c62fbfafb22566398916f4c4c7e5cb4e09995c89', ref: (el) => {
255
+ return (h(Host, { key: '0ef63dc57323a8b390f1ba674c8afa7e5d0019e9', ref: (el) => {
256
256
  this._host = el;
257
- } }, this.afShowDialog && (h("div", { key: '1f94935881bd7cd447c2624c8640bf425f4b3423', class: Object.assign({ 'digi-dialog': true }, this.cssModifiers) }, h("digi-util-keydown-handler", { key: '62f290fb537b5fe265148ae35df7e6bf4f2ef6b8', onAfOnEsc: (e) => this.escHandler(e), onAfOnTab: (e) => this.tabHandler(e), onAfOnShiftTab: (e) => this.shiftHandler(e), class: "digi-dialog__keydown-handler" }, h("div", { key: '052f14865f6f4d470fc2209f5ab374d19d6864bb', ref: (el) => {
257
+ } }, this.afShowDialog && (h("div", { key: '2ef7f8304ece184cba241e70a99743c66ef46f67', class: Object.assign({ 'digi-dialog': true }, this.cssModifiers) }, h("digi-util-keydown-handler", { key: 'e29ae9162f0e83535f7b2050cc4ea461de147368', onAfOnEsc: (e) => this.escHandler(e), onAfOnTab: (e) => this.tabHandler(e), onAfOnShiftTab: (e) => this.shiftHandler(e), class: "digi-dialog__keydown-handler" }, h("div", { key: '20fe2679cad42ff1228fa8907065bb3f14366f54', ref: (el) => {
258
258
  this._wrapper = el;
259
- }, role: "dialog", "aria-modal": "true", class: "digi-dialog__content" }, h("digi-typography", { key: 'd6b0b1c0584ab17b6b8fbeca371e421346601994' }, this.afCloseButtonText && (h("digi-button", { key: '5561c0254fc146b93000b7a980ed3785a8388430', ref: (el) => (this._closeButton = el), class: "digi-dialog__close-button", afAriaLabel: this.afCloseButtonText, afSize: ButtonSize.MEDIUM, "af-variation": "function", onAfOnClick: (e) => this.closeDialog(e) }, this.afCloseButtonText, h("digi-icon-x", { key: '02924bb563c07318cbe7534eeb794c5ce71f76ff', class: "digi-dialog__close-icon", slot: "icon-secondary" }))), h("slot", { key: 'ca8c4c797e18c84e924ef1640b116dd1ad5e0423', name: "over-heading" }), this.afHeadingLevel && this.afHeading && (h(this.afHeadingLevel, { key: '603356cd36bf5a30a0a0ff8de04e9eabadb565fe', tabindex: "-1", ref: (el) => (this._dialogHeading = el) }, this.afHeading)), h("slot", { key: '85856c8f7336178ce41e6faab9497d9cbc768b4b' }), h("div", { key: '1a8244e6d893c0d073836ef7056009fc492a29b7', ref: (el) => (this._buttonContainer = el), class: "digi-dialog__button-container" }, this.afSecondaryButtonText && (h("digi-button", { key: '0fba80df4c29a5780623d85f6cb5435610718ccb', ref: (el) => (this._secondaryButton = el), afVariation: ButtonVariation.SECONDARY, onAfOnClick: (e) => this.secondaryClickHandler(e) }, this.afSecondaryButtonText)), this.afPrimaryButtonText && (h("digi-button", { key: '2ac848c3ea59231e6173178c749047629efe62c8', ref: (el) => (this._primaryButton = el), afVariation: ButtonVariation.PRIMARY, onAfOnClick: (e) => this.primaryClickHandler(e) }, this.afPrimaryButtonText))))))))));
259
+ }, role: "dialog", "aria-modal": "true", class: "digi-dialog__content" }, h("digi-typography", { key: 'db631021322da7635879be18377dc9eb7769e968' }, this.afCloseButtonText && (h("digi-button", { key: '1b3acbaa7a3d0e1f1c2b3d843e8bad9c21492af4', ref: (el) => (this._closeButton = el), class: "digi-dialog__close-button", afAriaLabel: this.afCloseButtonText, afSize: ButtonSize.MEDIUM, "af-variation": "function", onAfOnClick: (e) => this.closeDialog(e) }, this.afCloseButtonText, h("digi-icon-x", { key: '0f457eed12e7af726347dff2cf9c946f9623dda7', class: "digi-dialog__close-icon", slot: "icon-secondary" }))), h("slot", { key: 'cd7f27957e9b5d3046f1c4fc824b16ddb1dcd3c3', name: "over-heading" }), this.afHeadingLevel && this.afHeading && (h(this.afHeadingLevel, { key: '57d281d8b17d8465cf6f1e9889f7e1784cb7680a', tabindex: "-1", ref: (el) => (this._dialogHeading = el) }, this.afHeading)), h("slot", { key: 'ff7b9426e6beea3b5411e3a9b84874e9c6164812' }), h("div", { key: '71eab5e7fe1b81f7918b7d064608b4e76b41892a', ref: (el) => (this._buttonContainer = el), class: "digi-dialog__button-container" }, this.afSecondaryButtonText && (h("digi-button", { key: '8848f684203a42dabf14b2ff0b14fada505a994a', ref: (el) => (this._secondaryButton = el), afVariation: ButtonVariation.SECONDARY, onAfOnClick: (e) => this.secondaryClickHandler(e) }, this.afSecondaryButtonText)), this.afPrimaryButtonText && (h("digi-button", { key: 'ee7410fd13a76c121bd511339ed04d0523d89163', ref: (el) => (this._primaryButton = el), afVariation: ButtonVariation.PRIMARY, onAfOnClick: (e) => this.primaryClickHandler(e) }, this.afPrimaryButtonText))))))))));
260
260
  }
261
261
  static get is() { return "digi-dialog"; }
262
262
  static get encapsulation() { return "shadow"; }
@@ -300,7 +300,7 @@ export class Dialog {
300
300
  "mutable": false,
301
301
  "complexType": {
302
302
  "original": "DialogVariation",
303
- "resolved": "DialogVariation.PRIMARY | DialogVariation.SECONDARY",
303
+ "resolved": "DialogVariation",
304
304
  "references": {
305
305
  "DialogVariation": {
306
306
  "location": "import",
@@ -314,10 +314,13 @@ export class Dialog {
314
314
  "optional": false,
315
315
  "docs": {
316
316
  "tags": [{
317
+ "name": "deprecated",
318
+ "text": "Property afVariation tas bort fr\u00E5n Modal i februari 2027."
319
+ }, {
317
320
  "name": "en",
318
- "text": "Set variation to modal. Secondary is only in beta."
321
+ "text": "Set variation to modal."
319
322
  }],
320
- "text": "S\u00E4tt variation p\u00E5 modalen. OBS! Sekund\u00E4r variant \u00E4r endast en beta."
323
+ "text": "S\u00E4tt variation p\u00E5 modalen."
321
324
  },
322
325
  "getter": false,
323
326
  "setter": false,
@@ -30,7 +30,7 @@ export class FormLabel {
30
30
  this.afAnnounceIfOptionalText = _t.optional.toLowerCase();
31
31
  }
32
32
  componentWillLoad() {
33
- this.setLabelText();
33
+ this.warnIfMissingLabel();
34
34
  this.validateFor();
35
35
  this.handleSlotVisibility();
36
36
  }
@@ -39,8 +39,7 @@ export class FormLabel {
39
39
  logger.warn(`digi-form-label must have a for attribute. Please add a for attribute using af-for`, this.hostElement);
40
40
  }
41
41
  }
42
- setLabelText() {
43
- this.labelText = `${this.afLabel} ${this.requiredText}`;
42
+ warnIfMissingLabel() {
44
43
  if (!this.afLabel) {
45
44
  logger.warn(`digi-form-label must have a label. Please add a label using af-label`, this.hostElement);
46
45
  }
@@ -62,7 +61,7 @@ export class FormLabel {
62
61
  }
63
62
  }
64
63
  render() {
65
- return (h("div", { key: '78c3c9cc7609ede22abcd68c16514c85b52c945e', class: "digi-form-label" }, h("div", { key: '5bd7a74e6508c261f489716673f011391bf7c0d8', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: '6952422ebe4e447857befae6116fd7336046dc1f', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: '2da61e9396c9c20b40ee4d80c21ae96e2a491e8f', tabindex: "-1", class: "digi-form-label__label--label" }, this.labelText), this.afDescription && (h("span", { key: '858d2ae39681662c278352e42b7bccb511279bd0', tabindex: "-1", class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: '7719bef7cfe38637a5ef4b71d5e9a6237ed48ff2', class: "digi-form-label__actions" }, h("slot", { key: '37bd2332a7d4e7fa15c4ff61a0cc26c92bed08d8', name: "actions" }))))));
64
+ return (h("div", { key: 'd505cd974e5fad197c27502bbd5a69e03b6da4c9', class: "digi-form-label" }, h("div", { key: '438d01b31f6b2814ae6a1ca04c824ea08ea2be23', class: "digi-form-label__label-group" }, this.afFor && this.afLabel && (h("label", { key: 'f339da21e44bd1d80bc2bcd71f2a7b85ded421a3', class: "digi-form-label__label", htmlFor: this.afFor, id: this.afId }, h("span", { key: '49c6e41049caafd257d39c8e4bbd61054e618ac9', tabindex: "-1", class: "digi-form-label__label--label" }, `${this.afLabel} ${this.requiredText}`), this.afDescription && (h("span", { key: '857cf559d405dc425fb16289d216cc5ed500775f', tabindex: "-1", class: "digi-form-label__label--description" }, this.afDescription)))), this.hasActionSlot && (h("div", { key: '11a7132c78dc5467b25c8a09724a1d13f3a324c3', class: "digi-form-label__actions" }, h("slot", { key: 'f499d1b9d31ccc825723a880bea8f110658b462d', name: "actions" }))))));
66
65
  }
67
66
  static get is() { return "digi-form-label"; }
68
67
  static get encapsulation() { return "scoped"; }
@@ -262,7 +261,6 @@ export class FormLabel {
262
261
  }
263
262
  static get states() {
264
263
  return {
265
- "labelText": {},
266
264
  "hasActionSlot": {}
267
265
  };
268
266
  }
@@ -273,13 +271,7 @@ export class FormLabel {
273
271
  "methodName": "validateFor"
274
272
  }, {
275
273
  "propName": "afLabel",
276
- "methodName": "setLabelText"
277
- }, {
278
- "propName": "afRequired",
279
- "methodName": "setLabelText"
280
- }, {
281
- "propName": "afAnnounceIfOptional",
282
- "methodName": "setLabelText"
274
+ "methodName": "warnIfMissingLabel"
283
275
  }];
284
276
  }
285
277
  }
@@ -130,8 +130,8 @@ License: none (public domain)
130
130
  display: flex;
131
131
  }
132
132
  :host .digi-tools-feedback-rating__thankyou-check-icon {
133
- padding-right: 24px;
134
- padding-top: 3px;
133
+ padding-right: 7px;
134
+ padding-top: 5px;
135
135
  box-sizing: content-box;
136
136
  }
137
137
  :host .digi-tools-feedback-rating .step2 .digi-tools-feedback-rating__heading {
@@ -192,7 +192,7 @@ export class ToolsFeedbackRating {
192
192
  get content() {
193
193
  return (h("digi-typography", null, this.validContent && (h("div", { dir: this.afDir, lang: this.afLang, class: `digi-tools-feedback-rating__wrapper ${this.currentStep === 2 ? 'step2' : ''}` }, this.currentStep === 1 && (h("div", { class: "digi-tools-feedback-rating__star-rating" }, h(this.afHeadingLevel, { id: `${this.afId}-rating-question`, class: `digi-tools-feedback-rating__heading ${this.afType === FeedbackRatingType.MINIMAL ? 'hidden' : ''}` }, this.afQuestion), h("div", { class: "digi-tools-feedback-rating__step1-wrapper" }, this.afRatings && (h("span", { class: "digi-tools-feedback-rating__step1-description" }, "V\u00E4lj fr\u00E5n", ' ', `${(this.ratingsData().find((item) => item.value === 1) ||
194
194
  {}).text.toLowerCase() || null} till ${(this.ratingsData().find((item) => item.value === 5) ||
195
- {}).text.toLowerCase() || null}`)), h("div", { "aria-labelledby": `${this.afId}-rating-question`, class: "digi-tools-feedback-rating__star-rating-stars", role: "group" }, this.ratingsData().map(({ text, value }) => (h("div", { class: "digi-tools-feedback-rating__star-rating-star" }, h("button", { class: "digi-tools-feedback-rating__star-rating-star-button", onClick: () => this.handleRatingChange(value), "aria-label": `${value} ${value === 1 ? 'stjärna' : 'stjärnor'}${text !== '' ? ', ' + text : ''}`, onMouseEnter: () => this.handleHover(value), onMouseLeave: () => this.handleHover(0), onFocus: () => this.handleHover(value), onFocusout: () => this.handleHover(0) }, h("svg", { "aria-hidden": "true", width: "29px", height: "29px", viewBox: "0 0 32 32", version: "1.1", xmlns: "http://www.w3.org/2000/svg", class: `digi-tools-feedback-rating-star-icon ${this.hoveredRating >= value ? 'filled' : ''}` }, h("g", { stroke: "none", "stroke-width": "1", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("g", { transform: "translate(-1852, -2564)", "stroke-width": "2", class: "digi-tools-feedback-rating-star-icon-border" }, h("g", { transform: "translate(1663, 2565)" }, h("g", { transform: "translate(190, 0)" }, h("path", { d: "M13.0369701,1.00988613 L9.47212213,8.51643297 L1.4958694,9.72422429 C0.0655277509,9.93973122 -0.507709524,11.7709448 0.529620648,12.8199039 L6.30005635,18.6595463 L4.93529305,26.9090563 C4.6897182,28.3999832 6.20191813,29.5170473 7.46854321,28.8195669 L14.6037422,24.9244875 L21.7391705,28.8195669 C23.0057956,29.5113322 24.5179955,28.3999832 24.2721914,26.9090563 L22.9074281,18.6595463 L28.6780931,12.8199039 C29.715194,11.7709448 29.1419567,9.93973122 27.711615,9.72422429 L19.7355916,8.51643297 L16.1707436,1.00988613 C15.531928,-0.328161856 13.6810595,-0.345069029 13.0369701,1.00988613 L13.0369701,1.00988613 Z" })))))))))))))), this.currentStep === 2 && (h("div", { class: "digi-tools-feedback-rating__thankyou" }, h("div", { class: "digi-tools-feedback-rating__thankyou-text" }, h("svg", { width: "32", height: "26", xmlns: "http://www.w3.org/2000/svg", class: "digi-tools-feedback-rating__thankyou-check-icon" }, h("g", { fill: "none", "fill-rule": "evenodd" }, h("path", { d: "M12.431 25.438C5.577 25.438 0 19.848 0 12.978 0 6.107 5.577.518 12.43.518c2.874 0 5.677 1.006 7.893 2.833l-1.441 1.755a10.163 10.163 0 0 0-6.452-2.315c-5.604 0-10.163 4.57-10.163 10.187 0 5.616 4.56 10.186 10.163 10.186 4.346 0 8.21-2.766 9.617-6.883l2.146.737a12.435 12.435 0 0 1-11.763 8.42", class: "digi-tools-feedback-rating__infographic-lineart" }), h("path", { d: "M13.073 20.935a.725.725 0 0 1-1.022 0l-8.042-8.013a.72.72 0 0 1 0-1.019l1.704-1.699a.725.725 0 0 1 1.023 0l5.826 5.805L28.417.211a.724.724 0 0 1 1.023 0l1.704 1.699a.72.72 0 0 1 0 1.02l-18.07 18.005Z", fill: "none", class: "digi-tools-feedback-rating__infographic-primary" }))), h("h2", { class: "digi-tools-feedback-rating__thankyou-text", tabindex: "-1", ref: (el) => (this._thankYouHeading = el) }, this.afThankYouHeading)), this.afRatings && (h("p", { class: "digi-tools-feedback-rating__thankyou-text-with-rating" }, "Du har gett betyget \"", this.selectedText.toLowerCase(), "\" med", ' ', this.selectedRating, `${this.selectedRating === 1 ? ' stjärna' : ' stjärnor'}`, ".")))), this.currentStep === 2 && this.afLinkText && (h("div", { class: "digi-tools-feedback-rating__link" }, h("digi-link-external", { afHref: this.renderLink(), "af-target": "_blank", onAfOnClick: () => this.submitFeedbackLink(), "af-variation": "small" }, this.afLinkText)))))));
195
+ {}).text.toLowerCase() || null}`)), h("div", { "aria-labelledby": `${this.afId}-rating-question`, class: "digi-tools-feedback-rating__star-rating-stars", role: "group" }, this.ratingsData().map(({ text, value }) => (h("div", { class: "digi-tools-feedback-rating__star-rating-star" }, h("button", { class: "digi-tools-feedback-rating__star-rating-star-button", onClick: () => this.handleRatingChange(value), "aria-label": `${value} ${value === 1 ? 'stjärna' : 'stjärnor'}${text !== '' ? ', ' + text : ''}`, onMouseEnter: () => this.handleHover(value), onMouseLeave: () => this.handleHover(0), onFocus: () => this.handleHover(value), onFocusout: () => this.handleHover(0) }, h("svg", { "aria-hidden": "true", width: "29px", height: "29px", viewBox: "0 0 32 32", version: "1.1", xmlns: "http://www.w3.org/2000/svg", class: `digi-tools-feedback-rating-star-icon ${this.hoveredRating >= value ? 'filled' : ''}` }, h("g", { stroke: "none", "stroke-width": "1", "stroke-linecap": "round", "stroke-linejoin": "round" }, h("g", { transform: "translate(-1852, -2564)", "stroke-width": "2", class: "digi-tools-feedback-rating-star-icon-border" }, h("g", { transform: "translate(1663, 2565)" }, h("g", { transform: "translate(190, 0)" }, h("path", { d: "M13.0369701,1.00988613 L9.47212213,8.51643297 L1.4958694,9.72422429 C0.0655277509,9.93973122 -0.507709524,11.7709448 0.529620648,12.8199039 L6.30005635,18.6595463 L4.93529305,26.9090563 C4.6897182,28.3999832 6.20191813,29.5170473 7.46854321,28.8195669 L14.6037422,24.9244875 L21.7391705,28.8195669 C23.0057956,29.5113322 24.5179955,28.3999832 24.2721914,26.9090563 L22.9074281,18.6595463 L28.6780931,12.8199039 C29.715194,11.7709448 29.1419567,9.93973122 27.711615,9.72422429 L19.7355916,8.51643297 L16.1707436,1.00988613 C15.531928,-0.328161856 13.6810595,-0.345069029 13.0369701,1.00988613 L13.0369701,1.00988613 Z" })))))))))))))), this.currentStep === 2 && (h("div", { class: "digi-tools-feedback-rating__thankyou" }, h("div", { class: "digi-tools-feedback-rating__thankyou-text" }, h("svg", { width: "32", height: "26", xmlns: "http://www.w3.org/2000/svg", class: "digi-tools-feedback-rating__thankyou-check-icon" }, h("g", { fill: "none", "fill-rule": "evenodd" }, h("path", { d: "M12.431 25.438C5.577 25.438 0 19.848 0 12.978 0 6.107 5.577.518 12.43.518c2.874 0 5.677 1.006 7.893 2.833l-1.441 1.755a10.163 10.163 0 0 0-6.452-2.315c-5.604 0-10.163 4.57-10.163 10.187 0 5.616 4.56 10.186 10.163 10.186 4.346 0 8.21-2.766 9.617-6.883l2.146.737a12.435 12.435 0 0 1-11.763 8.42", class: "digi-tools-feedback-rating__infographic-lineart" }), h("path", { d: "M13.073 20.935a.725.725 0 0 1-1.022 0l-8.042-8.013a.72.72 0 0 1 0-1.019l1.704-1.699a.725.725 0 0 1 1.023 0l5.826 5.805L28.417.211a.724.724 0 0 1 1.023 0l1.704 1.699a.72.72 0 0 1 0 1.02l-18.07 18.005Z", fill: "none", class: "digi-tools-feedback-rating__infographic-primary" }))), h("h2", { class: "digi-tools-feedback-rating__thankyou-text", tabindex: "-1", ref: (el) => (this._thankYouHeading = el) }, this.afThankYouHeading)), this.afRatings && (h("p", { class: "digi-tools-feedback-rating__thankyou-text-with-rating" }, "Du har gett betyget \u201D", this.selectedText.toLowerCase(), "\u201D med", ' ', this.selectedRating, `${this.selectedRating === 1 ? ' stjärna' : ' stjärnor'}`, ".")))), this.currentStep === 2 && this.afLinkText && (h("div", { class: "digi-tools-feedback-rating__link" }, h("digi-link-external", { afHref: this.renderLink(), "af-target": "_blank", onAfOnClick: () => this.submitFeedbackLink(), "af-variation": "small" }, this.afLinkText)))))));
196
196
  }
197
197
  render() {
198
198
  return (h("div", { key: '4814d1921a5dadd578294b3b4ecd487897596443', class: Object.assign({ 'digi-tools-feedback-rating': true }, this.cssModifiers) }, h("digi-layout-block", { key: '726f7912894adcd8d7ae0a53903daea65dc8918e', afVariation: this.layoutBlockVariation, afMarginTop: true, "af-container": "none" }, this.content)));
@@ -5,7 +5,8 @@
5
5
  "projectType": "library",
6
6
  "targets": {
7
7
  "lint": {
8
- "executor": "nx:noop"
8
+ "executor": "@nx/eslint:lint",
9
+ "ignores": ["**/*"]
9
10
  }
10
11
  }
11
12
  }
@@ -1,16 +1,18 @@
1
- @mixin digi-title-logo--variables() {
2
- --digi--title-logo-text-color: var(--digi--color--text--primary);
3
- --digi--title-logo-font-weight: var(--digi--global--typography--font-weight--bold);
4
- --digi--title-logo-font-size: var(--digi--typography--title-logo--font-size--mobile);
5
- --digi--title-logo-font-size-small: var(--digi--global--typography--font-size--large);
6
- --digi--title-logo-line-height-small: 1.25rem;
7
- --digi--title-logo-symbol-color: var(--digi--color--logotype--primary--symbol);
8
- --digi--title-logo-symbol-width: 36px;
9
- --digi--title-logo-symbol-height: 36px;
10
- --digi--title-logo-symbol-width-mobile: 44px;
11
- --digi--title-logo-symbol-height-mobile: 44px;
12
- --digi--title-logo-text-height: 40px;
13
- --digi--title-logo-border-width: var(--digi--global--border-width--base);
14
- --digi--title-logo-vertical-padding: 1.375rem;
15
- --digi--title-logo-gap: 9px;
1
+ @use '../../../../../../styles/src/digi-styles.utils' as *;
2
+
3
+ @mixin digi-logo--variables() {
4
+ --digi--logo--img--min-width: #{rem(256)};
5
+ --digi--logo--img--max-width:#{rem(292)};
6
+ --digi--logo--img--max-width--large: #{rem(368)};
7
+ --digi--logo--img--max-width--system: #{rem(44)};
8
+
9
+ --digi--logo--padding: 1.375rem;
10
+ --digi--logo--padding--wide: var(--digi--gutter--larger);
11
+ --digi--logo--padding--large: var(--digi--gutter--medium);
12
+ --digi--logo--padding--large--wide: var(--digi--gutter--larger);
13
+
14
+ --digi--logo--primary--symbol: var(--digi--color--logotype--primary--symbol);
15
+ --digi--logo--secondary--symbol: var(--digi--color--logotype--secondary--symbol);
16
+ --digi--logo--primary--text: var(--digi--color--logotype--primary--text);
17
+ --digi--logo--secondary--text: var(--digi--color--logotype--secondary--text);
16
18
  }