@designsystem-se/af 39.1.0 → 39.2.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 (47) hide show
  1. package/components/digi-calendar-datepicker.js +1 -1
  2. package/components/digi-form-checkbox.js +1 -1
  3. package/components/digi-form-filter.js +1 -1
  4. package/components/digi-header-avatar.js +1 -1
  5. package/components/digi-info-card.js +1 -1
  6. package/components/digi-link-internal.js +1 -1
  7. package/components/digi-tools-feedback-rating.js +6 -1
  8. package/components/{p-f84f590e.js → p-965c3fa4.js} +1 -1
  9. package/components/{p-ab07faba.js → p-d851dc90.js} +1 -1
  10. package/custom-elements.json +4 -0
  11. package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
  12. package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +1 -1
  13. package/dist/cjs/digi-form-checkbox.cjs.entry.js +1 -1
  14. package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
  15. package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
  16. package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +5 -1
  17. package/dist/cjs/loader.cjs.js +1 -1
  18. package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +2 -2
  19. package/dist/collection/components/_form/form-checkbox/form-checkbox.css +2 -2
  20. package/dist/collection/components/_header/header-avatar/header-avatar.css +2 -2
  21. package/dist/collection/components/_link/link-internal/link-internal.css +2 -2
  22. package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +27 -1
  23. package/dist/collection/styles/src/themes/_brand-af25.mixin.scss +2 -2
  24. package/dist/collection/styles/src/tokens-documentation/web-AF25.json +2 -2
  25. package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +14 -18
  26. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
  27. package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
  28. package/dist/digi-arbetsformedlingen/{p-045a1bd6.entry.js → p-0c66c1d8.entry.js} +1 -1
  29. package/dist/digi-arbetsformedlingen/{p-2295239c.entry.js → p-1324a098.entry.js} +1 -1
  30. package/dist/digi-arbetsformedlingen/{p-70da2307.entry.js → p-49182a51.entry.js} +1 -1
  31. package/dist/digi-arbetsformedlingen/p-99b2094a.entry.js +1 -0
  32. package/dist/digi-arbetsformedlingen/{p-bf80a488.entry.js → p-f4ca6ba6.entry.js} +1 -1
  33. package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af25.mixin.scss +2 -2
  34. package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +2 -2
  35. package/dist/esm/digi-arbetsformedlingen.js +1 -1
  36. package/dist/esm/digi-calendar-datepicker.entry.js +1 -1
  37. package/dist/esm/digi-form-checkbox.entry.js +1 -1
  38. package/dist/esm/digi-header-avatar.entry.js +1 -1
  39. package/dist/esm/digi-link-internal.entry.js +1 -1
  40. package/dist/esm/digi-tools-feedback-rating.entry.js +5 -1
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/types/components/_tools/tools-feedback-rating/tools-feedback-rating.d.ts +8 -0
  43. package/dist/types/components.d.ts +10 -0
  44. package/hydrate/index.js +10 -5
  45. package/hydrate/index.mjs +10 -5
  46. package/package.json +1 -1
  47. package/dist/digi-arbetsformedlingen/p-b91c9055.entry.js +0 -1
@@ -26,6 +26,7 @@ const ToolsFeedbackRating = class {
26
26
  this.afLinkText = undefined;
27
27
  this.afProduct = undefined;
28
28
  this.afApplication = undefined;
29
+ this.afApplicationId = undefined;
29
30
  this.afProductArea = undefined;
30
31
  this.afName = undefined;
31
32
  this.afQuestionType = undefined;
@@ -117,12 +118,14 @@ const ToolsFeedbackRating = class {
117
118
  productarea: this.afProductArea,
118
119
  product: this.afProduct,
119
120
  application: this.afApplication,
121
+ applicationId: this.afApplicationId,
120
122
  id: this.afId,
121
123
  name: this.afName,
122
124
  questionType: this.afQuestionType,
123
125
  question: this.afQuestion,
124
126
  rating: this.selectedRating,
125
127
  ratingDescription: this.selectedText,
128
+ linkHref: this.afLink,
126
129
  variation: this.afVariation,
127
130
  version: '2'
128
131
  };
@@ -132,6 +135,7 @@ const ToolsFeedbackRating = class {
132
135
  productarea: this.afProductArea,
133
136
  product: this.afProduct,
134
137
  application: this.afApplication,
138
+ applicationId: this.afApplicationId,
135
139
  id: this.afId,
136
140
  name: this.afName,
137
141
  questionType: this.afQuestionType,
@@ -166,7 +170,7 @@ const ToolsFeedbackRating = class {
166
170
  {}).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", fill: "#333" }), 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)))))));
167
171
  }
168
172
  render() {
169
- return (h("div", { key: '92be9e5f875efdfaae5655bf648b4aef277ed240', class: Object.assign({ 'digi-tools-feedback-rating': true }, this.cssModifiers) }, h("digi-layout-block", { key: 'b4dddd1ef54e948b267ba979bc2e8f02a031caa0', afVariation: this.layoutBlockVariation, afMarginTop: true, "af-container": "none" }, this.content)));
173
+ return (h("div", { key: 'd6d5b49ef882e2dc9315e7b11fe0c5ac9b760720', class: Object.assign({ 'digi-tools-feedback-rating': true }, this.cssModifiers) }, h("digi-layout-block", { key: '6159d4abe9f6170ea247d8eb3192b33f364ab17c', afVariation: this.layoutBlockVariation, afMarginTop: true, "af-container": "none" }, this.content)));
170
174
  }
171
175
  get hostElement() { return getElement(this); }
172
176
  static get watchers() { return {