@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.
- package/components/digi-calendar-datepicker.js +1 -1
- package/components/digi-form-checkbox.js +1 -1
- package/components/digi-form-filter.js +1 -1
- package/components/digi-header-avatar.js +1 -1
- package/components/digi-info-card.js +1 -1
- package/components/digi-link-internal.js +1 -1
- package/components/digi-tools-feedback-rating.js +6 -1
- package/components/{p-f84f590e.js → p-965c3fa4.js} +1 -1
- package/components/{p-ab07faba.js → p-d851dc90.js} +1 -1
- package/custom-elements.json +4 -0
- package/dist/cjs/digi-arbetsformedlingen.cjs.js +1 -1
- package/dist/cjs/digi-calendar-datepicker.cjs.entry.js +1 -1
- package/dist/cjs/digi-form-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/digi-header-avatar.cjs.entry.js +1 -1
- package/dist/cjs/digi-link-internal.cjs.entry.js +1 -1
- package/dist/cjs/digi-tools-feedback-rating.cjs.entry.js +5 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/_calendar/calendar-datepicker/calendar-datepicker.css +2 -2
- package/dist/collection/components/_form/form-checkbox/form-checkbox.css +2 -2
- package/dist/collection/components/_header/header-avatar/header-avatar.css +2 -2
- package/dist/collection/components/_link/link-internal/link-internal.css +2 -2
- package/dist/collection/components/_tools/tools-feedback-rating/tools-feedback-rating.js +27 -1
- package/dist/collection/styles/src/themes/_brand-af25.mixin.scss +2 -2
- package/dist/collection/styles/src/tokens-documentation/web-AF25.json +2 -2
- package/dist/digi-arbetsformedlingen/design-tokens/components/_logo.variables.scss +14 -18
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.css +1 -1
- package/dist/digi-arbetsformedlingen/digi-arbetsformedlingen.esm.js +1 -1
- package/dist/digi-arbetsformedlingen/{p-045a1bd6.entry.js → p-0c66c1d8.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-2295239c.entry.js → p-1324a098.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/{p-70da2307.entry.js → p-49182a51.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/p-99b2094a.entry.js +1 -0
- package/dist/digi-arbetsformedlingen/{p-bf80a488.entry.js → p-f4ca6ba6.entry.js} +1 -1
- package/dist/digi-arbetsformedlingen/styles/src/themes/_brand-af25.mixin.scss +2 -2
- package/dist/digi-arbetsformedlingen/styles/src/tokens-documentation/web-AF25.json +2 -2
- package/dist/esm/digi-arbetsformedlingen.js +1 -1
- package/dist/esm/digi-calendar-datepicker.entry.js +1 -1
- package/dist/esm/digi-form-checkbox.entry.js +1 -1
- package/dist/esm/digi-header-avatar.entry.js +1 -1
- package/dist/esm/digi-link-internal.entry.js +1 -1
- package/dist/esm/digi-tools-feedback-rating.entry.js +5 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/_tools/tools-feedback-rating/tools-feedback-rating.d.ts +8 -0
- package/dist/types/components.d.ts +10 -0
- package/hydrate/index.js +10 -5
- package/hydrate/index.mjs +10 -5
- package/package.json +1 -1
- package/dist/digi-arbetsformedlingen/p-b91c9055.entry.js +0 -1
|
@@ -30,6 +30,7 @@ const ToolsFeedbackRating = class {
|
|
|
30
30
|
this.afLinkText = undefined;
|
|
31
31
|
this.afProduct = undefined;
|
|
32
32
|
this.afApplication = undefined;
|
|
33
|
+
this.afApplicationId = undefined;
|
|
33
34
|
this.afProductArea = undefined;
|
|
34
35
|
this.afName = undefined;
|
|
35
36
|
this.afQuestionType = undefined;
|
|
@@ -121,12 +122,14 @@ const ToolsFeedbackRating = class {
|
|
|
121
122
|
productarea: this.afProductArea,
|
|
122
123
|
product: this.afProduct,
|
|
123
124
|
application: this.afApplication,
|
|
125
|
+
applicationId: this.afApplicationId,
|
|
124
126
|
id: this.afId,
|
|
125
127
|
name: this.afName,
|
|
126
128
|
questionType: this.afQuestionType,
|
|
127
129
|
question: this.afQuestion,
|
|
128
130
|
rating: this.selectedRating,
|
|
129
131
|
ratingDescription: this.selectedText,
|
|
132
|
+
linkHref: this.afLink,
|
|
130
133
|
variation: this.afVariation,
|
|
131
134
|
version: '2'
|
|
132
135
|
};
|
|
@@ -136,6 +139,7 @@ const ToolsFeedbackRating = class {
|
|
|
136
139
|
productarea: this.afProductArea,
|
|
137
140
|
product: this.afProduct,
|
|
138
141
|
application: this.afApplication,
|
|
142
|
+
applicationId: this.afApplicationId,
|
|
139
143
|
id: this.afId,
|
|
140
144
|
name: this.afName,
|
|
141
145
|
questionType: this.afQuestionType,
|
|
@@ -170,7 +174,7 @@ const ToolsFeedbackRating = class {
|
|
|
170
174
|
{}).text.toLowerCase() || null}`)), index.h("div", { "aria-labelledby": `${this.afId}-rating-question`, class: "digi-tools-feedback-rating__star-rating-stars", role: "group" }, this.ratingsData().map(({ text, value }) => (index.h("div", { class: "digi-tools-feedback-rating__star-rating-star" }, index.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) }, index.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' : ''}` }, index.h("g", { stroke: "none", "stroke-width": "1", "stroke-linecap": "round", "stroke-linejoin": "round" }, index.h("g", { transform: "translate(-1852, -2564)", "stroke-width": "2", class: "digi-tools-feedback-rating-star-icon-border" }, index.h("g", { transform: "translate(1663, 2565)" }, index.h("g", { transform: "translate(190, 0)" }, index.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 && (index.h("div", { class: "digi-tools-feedback-rating__thankyou" }, index.h("div", { class: "digi-tools-feedback-rating__thankyou-text" }, index.h("svg", { width: "32", height: "26", xmlns: "http://www.w3.org/2000/svg", class: "digi-tools-feedback-rating__thankyou-check-icon" }, index.h("g", { fill: "none", "fill-rule": "evenodd" }, index.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" }), index.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" }))), index.h("h2", { class: "digi-tools-feedback-rating__thankyou-text", tabindex: "-1", ref: (el) => (this._thankYouHeading = el) }, this.afThankYouHeading)), this.afRatings && (index.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 && (index.h("div", { class: "digi-tools-feedback-rating__link" }, index.h("digi-link-external", { afHref: this.renderLink(), "af-target": "_blank", onAfOnClick: () => this.submitFeedbackLink(), "af-variation": "small" }, this.afLinkText)))))));
|
|
171
175
|
}
|
|
172
176
|
render() {
|
|
173
|
-
return (index.h("div", { key: '
|
|
177
|
+
return (index.h("div", { key: 'd6d5b49ef882e2dc9315e7b11fe0c5ac9b760720', class: Object.assign({ 'digi-tools-feedback-rating': true }, this.cssModifiers) }, index.h("digi-layout-block", { key: '6159d4abe9f6170ea247d8eb3192b33f364ab17c', afVariation: this.layoutBlockVariation, afMarginTop: true, "af-container": "none" }, this.content)));
|
|
174
178
|
}
|
|
175
179
|
get hostElement() { return index.getElement(this); }
|
|
176
180
|
static get watchers() { return {
|