@italia/rating 1.0.0-beta.4 → 1.0.0-beta.6
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/dist/src/it-rating.js +29 -23
- package/dist/src/it-rating.js.map +1 -1
- package/package.json +7 -7
package/dist/src/it-rating.js
CHANGED
|
@@ -322,7 +322,9 @@ progress {
|
|
|
322
322
|
.rating {
|
|
323
323
|
--bsi-rating-font-size: var(--bsi-label-font-size-s);
|
|
324
324
|
--bsi-rating-font-weight: var(--bsi-font-weight-solid);
|
|
325
|
-
--bsi-rating-icon-fill: var(
|
|
325
|
+
--bsi-rating-icon-fill: var(
|
|
326
|
+
--bsi-icon-secondary
|
|
327
|
+
);
|
|
326
328
|
--bsi-rating-line-height: var(--bsi-label-leading);
|
|
327
329
|
--bsi-rating-text: var(--bsi-color-text-secondary);
|
|
328
330
|
}
|
|
@@ -331,8 +333,6 @@ progress {
|
|
|
331
333
|
.rating {
|
|
332
334
|
border: none;
|
|
333
335
|
display: flex;
|
|
334
|
-
flex-direction: row-reverse;
|
|
335
|
-
justify-content: flex-end;
|
|
336
336
|
align-items: center;
|
|
337
337
|
}
|
|
338
338
|
.rating > input {
|
|
@@ -341,25 +341,35 @@ progress {
|
|
|
341
341
|
}
|
|
342
342
|
.rating > label {
|
|
343
343
|
margin: 0;
|
|
344
|
-
|
|
345
|
-
}
|
|
346
|
-
.rating > label:hover {
|
|
344
|
+
margin-right: 2px;
|
|
347
345
|
cursor: pointer;
|
|
348
346
|
}
|
|
349
|
-
.rating > label
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
347
|
+
.rating > label::before {
|
|
348
|
+
content: "";
|
|
349
|
+
display: block;
|
|
350
|
+
width: var(--bsi-icon-size-s);
|
|
351
|
+
height: var(--bsi-icon-size-s);
|
|
352
|
+
-webkit-mask-repeat: no-repeat;
|
|
353
|
+
mask-repeat: no-repeat;
|
|
354
|
+
-webkit-mask-size: contain;
|
|
355
|
+
mask-size: contain;
|
|
356
|
+
-webkit-mask-position: center;
|
|
357
|
+
mask-position: center;
|
|
358
|
+
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12,4.9l1.5,4.6l0.2,0.7h5.7l-4,2.9l-0.6,0.4l0.2,0.7l1.5,4.7L12.6,16L12,15.6L11.4,16l-3.9,2.9L9,14.2l0.2-0.7l-0.6-0.4 l-4-2.9h5.7l0.2-0.7L12,4.9 M12,1.7L9.5,9.2H1.6L8,13.9l-2.4,7.6l6.4-4.7l6.4,4.7L16,13.9l6.4-4.7h-7.9L12,1.7z'/%3e%3c/svg%3e");
|
|
359
|
+
mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12,4.9l1.5,4.6l0.2,0.7h5.7l-4,2.9l-0.6,0.4l0.2,0.7l1.5,4.7L12.6,16L12,15.6L11.4,16l-3.9,2.9L9,14.2l0.2-0.7l-0.6-0.4 l-4-2.9h5.7l0.2-0.7L12,4.9 M12,1.7L9.5,9.2H1.6L8,13.9l-2.4,7.6l6.4-4.7l6.4,4.7L16,13.9l6.4-4.7h-7.9L12,1.7z'/%3e%3c/svg%3e");
|
|
360
|
+
background-color: var(--bsi-rating-icon-fill);
|
|
356
361
|
transition: transform var(--bsi-transition-instant);
|
|
357
362
|
}
|
|
363
|
+
.rating > label:hover::before {
|
|
364
|
+
transform: scale(1.2);
|
|
365
|
+
}
|
|
358
366
|
.rating > legend {
|
|
367
|
+
order: 1;
|
|
359
368
|
color: var(--bsi-rating-text);
|
|
360
369
|
font-size: var(--bsi-rating-font-size);
|
|
361
370
|
float: right;
|
|
362
371
|
width: auto;
|
|
372
|
+
margin: 0;
|
|
363
373
|
margin-left: var(--bsi-spacing-xxs);
|
|
364
374
|
font-weight: var(--bsi-rating-font-weight);
|
|
365
375
|
line-height: var(--bsi-rating-line-height);
|
|
@@ -368,16 +378,12 @@ progress {
|
|
|
368
378
|
pointer-events: none;
|
|
369
379
|
}
|
|
370
380
|
|
|
371
|
-
.rating > input:checked
|
|
372
|
-
.rating:
|
|
373
|
-
.rating
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
.rating > input:checked + label:hover svg,
|
|
378
|
-
.rating > input:checked ~ label:hover svg,
|
|
379
|
-
.rating > label:hover ~ input:checked ~ label svg,
|
|
380
|
-
.rating > input:checked ~ label:hover ~ label svg {
|
|
381
|
+
.rating > input:checked + label::before,
|
|
382
|
+
.rating > label:has(~ input:checked)::before,
|
|
383
|
+
.rating > label:hover::before,
|
|
384
|
+
.rating > label:has(~ label:hover)::before {
|
|
385
|
+
-webkit-mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12,1.7L9.5,9.2H1.6L8,13.9l-2.4,7.6l6.4-4.7l6.4,4.7L16,13.9l6.4-4.7h-7.9L12,1.7z'/%3e%3c/svg%3e");
|
|
386
|
+
mask-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath d='M12,1.7L9.5,9.2H1.6L8,13.9l-2.4,7.6l6.4-4.7l6.4,4.7L16,13.9l6.4-4.7h-7.9L12,1.7z'/%3e%3c/svg%3e");
|
|
381
387
|
--bsi-rating-icon-fill: var(--bsi-icon-primary);
|
|
382
388
|
}
|
|
383
389
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it-rating.js","sources":["../../../src/locales/it.ts","../../../src/it-rating.ts"],"sourcesContent":["import type { DefaultTranslation } from '@italia/i18n';\n\nconst translation: DefaultTranslation = {\n $code: 'it',\n $name: 'Italiano',\n $dir: 'ltr',\n\n noRating: 'Nessuna valutazione',\n ratingLabelSingle: (rating: number, max: number) => `${rating} stella su ${max}`,\n ratingLabelPlural: (rating: number, max: number) => `${rating} stelle su ${max}`,\n};\n\nexport default translation;\n","import { type PropertyValues } from 'lit';\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js';\nimport { ItRadioGroup } from '@italia/radio'; // eslint-disable-line import/no-extraneous-dependencies\nimport { registerTranslation } from '@italia/i18n';\nimport { type ItRatingItem } from '@italia/rating';\nimport it from './locales/it.js';\n\nimport styles from './rating.scss';\n\nregisterTranslation(it);\n\n/**\n * Rating component - extends it-radio-group for star rating\n *\n * @element it-rating\n *\n * @slot - Contains the `<it-rating-item>` elements\n * @slot label - The label/legend text for the rating\n *\n * @fires {CustomEvent} change - Emitted when the rating value changes\n */\n@customElement('it-rating')\nexport class ItRating extends ItRadioGroup {\n static override styles = styles;\n\n /**\n * Get all slotted rating items\n */\n @queryAssignedElements()\n protected _radios!: ItRatingItem[];\n\n /**\n * Maximum number of stars (to calculate \"X out of Y\")\n */\n @property({ type: Number, attribute: 'max-elements', reflect: true })\n maxElements = 5;\n\n /**\n * Whether the rating is read-only (non-interactive)\n */\n @property({ type: Boolean, reflect: true, attribute: 'read-only' })\n readOnly = false;\n\n /**\n * The icon name to use for the rating item\n * @default 'it-star-outline'\n */\n @property({ type: String, reflect: true })\n icon = 'it-star-outline';\n\n /**\n * Sync read-only state to all rating items\n */\n private _syncReadOnlyToItems() {\n const items = this.querySelectorAll('it-rating-item');\n items.forEach((item) => {\n if (this.readOnly) {\n item.setAttribute('disabled', '');\n } else {\n item.removeAttribute('disabled');\n }\n });\n }\n\n /**\n * Get the localized rating announcement for screen readers\n */\n private _getRatingAnnouncement(): string {\n const currentValue = parseInt(this.value || '0', 10);\n\n if (!currentValue || currentValue === 0) {\n return this.localize.term('noRating');\n }\n // Use singular or plural form based on rating value\n const termKey = currentValue === 1 ? 'ratingLabelSingle' : 'ratingLabelPlural';\n\n // Pass parameters directly to the translation function\n return this.localize.term(termKey, currentValue, this.maxElements);\n }\n\n /**\n * Override updated to refresh the rating items and announcement when value changes\n */\n override updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n\n // Sync disabled state to all rating items when readOnly changes\n if (changedProperties.has('readOnly')) {\n this._syncReadOnlyToItems();\n }\n\n // Update aria-readonly attribute\n if (this.readOnly) {\n this.setAttribute('aria-readonly', 'true');\n } else {\n this.removeAttribute('aria-readonly');\n }\n\n // When value changes, force re-render of all rating items AND update their display\n if (changedProperties.has('value')) {\n this._updateRadiosState();\n this._updateRatingItemsDisplay();\n this._ensureAnnouncement();\n }\n if (changedProperties.has('icon')) {\n this._updateRatingItemsDisplay();\n }\n\n // When maxElements changes, update the announcement\n if (changedProperties.has('maxElements')) {\n this._ensureAnnouncement();\n }\n }\n\n /**\n * Force re-render of all rating items to update star colors\n * This ensures star colors reflect the current value\n */\n private _updateRatingItemsDisplay() {\n const items = this.querySelectorAll('it-rating-item');\n items.forEach((item) => {\n item.requestUpdate();\n });\n }\n\n /**\n * Create or update the visually-hidden announcement element\n * Following BSI pattern: announcement placed directly in the label slot\n */\n private _ensureAnnouncement() {\n // Find the label slot elements (assigned nodes)\n const labelSlot = this.shadowRoot?.querySelector('slot[name=\"label\"]') as HTMLSlotElement;\n if (!labelSlot) return;\n\n // Get the first element in the label slot (the legend/label container)\n const labelElements = labelSlot.assignedElements();\n if (labelElements.length === 0) return;\n\n const labelContainer = labelElements[0];\n\n // Look for existing announcement span\n let announcement = labelContainer.querySelector('.rating-announcement') as HTMLElement;\n\n if (!announcement) {\n // Create the announcement element if it doesn't exist\n announcement = document.createElement('span');\n announcement.className = 'visually-hidden rating-announcement';\n\n // Append to the label container\n labelContainer.appendChild(announcement);\n }\n // Update the text content\n announcement.textContent = ` ${this._getRatingAnnouncement()}`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'it-rating': ItRating;\n }\n}\n"],"names":["it"],"mappings":";;;;;;AAEA,MAAM,WAAW,GAAuB;AACtC,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,KAAK,EAAE,UAAU;AACjB,IAAA,IAAI,EAAE,KAAK;AAEX,IAAA,QAAQ,EAAE,qBAAqB;AAC/B,IAAA,iBAAiB,EAAE,CAAC,MAAc,EAAE,GAAW,KAAK,CAAA,EAAG,MAAM,CAAA,WAAA,EAAc,GAAG,CAAA,CAAE;AAChF,IAAA,iBAAiB,EAAE,CAAC,MAAc,EAAE,GAAW,KAAK,CAAA,EAAG,MAAM,CAAA,WAAA,EAAc,GAAG,CAAA,CAAE;CACjF
|
|
1
|
+
{"version":3,"file":"it-rating.js","sources":["../../../src/locales/it.ts","../../../src/it-rating.ts"],"sourcesContent":["import type { DefaultTranslation } from '@italia/i18n';\n\nconst translation: DefaultTranslation = {\n $code: 'it',\n $name: 'Italiano',\n $dir: 'ltr',\n\n noRating: 'Nessuna valutazione',\n ratingLabelSingle: (rating: number, max: number) => `${rating} stella su ${max}`,\n ratingLabelPlural: (rating: number, max: number) => `${rating} stelle su ${max}`,\n};\n\nexport default translation;\n","import { type PropertyValues } from 'lit';\nimport { customElement, property, queryAssignedElements } from 'lit/decorators.js';\nimport { ItRadioGroup } from '@italia/radio'; // eslint-disable-line import/no-extraneous-dependencies\nimport { registerTranslation } from '@italia/i18n';\nimport { type ItRatingItem } from '@italia/rating';\nimport it from './locales/it.js';\n\nimport styles from './rating.scss';\n\nregisterTranslation(it);\n\n/**\n * Rating component - extends it-radio-group for star rating\n *\n * @element it-rating\n *\n * @slot - Contains the `<it-rating-item>` elements\n * @slot label - The label/legend text for the rating\n *\n * @fires {CustomEvent} change - Emitted when the rating value changes\n */\n@customElement('it-rating')\nexport class ItRating extends ItRadioGroup {\n static override styles = styles;\n\n /**\n * Get all slotted rating items\n */\n @queryAssignedElements()\n protected _radios!: ItRatingItem[];\n\n /**\n * Maximum number of stars (to calculate \"X out of Y\")\n */\n @property({ type: Number, attribute: 'max-elements', reflect: true })\n maxElements = 5;\n\n /**\n * Whether the rating is read-only (non-interactive)\n */\n @property({ type: Boolean, reflect: true, attribute: 'read-only' })\n readOnly = false;\n\n /**\n * The icon name to use for the rating item\n * @default 'it-star-outline'\n */\n @property({ type: String, reflect: true })\n icon = 'it-star-outline';\n\n /**\n * Sync read-only state to all rating items\n */\n private _syncReadOnlyToItems() {\n const items = this.querySelectorAll('it-rating-item');\n items.forEach((item) => {\n if (this.readOnly) {\n item.setAttribute('disabled', '');\n } else {\n item.removeAttribute('disabled');\n }\n });\n }\n\n /**\n * Get the localized rating announcement for screen readers\n */\n private _getRatingAnnouncement(): string {\n const currentValue = parseInt(this.value || '0', 10);\n\n if (!currentValue || currentValue === 0) {\n return this.localize.term('noRating');\n }\n // Use singular or plural form based on rating value\n const termKey = currentValue === 1 ? 'ratingLabelSingle' : 'ratingLabelPlural';\n\n // Pass parameters directly to the translation function\n return this.localize.term(termKey, currentValue, this.maxElements);\n }\n\n /**\n * Override updated to refresh the rating items and announcement when value changes\n */\n override updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n\n // Sync disabled state to all rating items when readOnly changes\n if (changedProperties.has('readOnly')) {\n this._syncReadOnlyToItems();\n }\n\n // Update aria-readonly attribute\n if (this.readOnly) {\n this.setAttribute('aria-readonly', 'true');\n } else {\n this.removeAttribute('aria-readonly');\n }\n\n // When value changes, force re-render of all rating items AND update their display\n if (changedProperties.has('value')) {\n this._updateRadiosState();\n this._updateRatingItemsDisplay();\n this._ensureAnnouncement();\n }\n if (changedProperties.has('icon')) {\n this._updateRatingItemsDisplay();\n }\n\n // When maxElements changes, update the announcement\n if (changedProperties.has('maxElements')) {\n this._ensureAnnouncement();\n }\n }\n\n /**\n * Force re-render of all rating items to update star colors\n * This ensures star colors reflect the current value\n */\n private _updateRatingItemsDisplay() {\n const items = this.querySelectorAll('it-rating-item');\n items.forEach((item) => {\n item.requestUpdate();\n });\n }\n\n /**\n * Create or update the visually-hidden announcement element\n * Following BSI pattern: announcement placed directly in the label slot\n */\n private _ensureAnnouncement() {\n // Find the label slot elements (assigned nodes)\n const labelSlot = this.shadowRoot?.querySelector('slot[name=\"label\"]') as HTMLSlotElement;\n if (!labelSlot) return;\n\n // Get the first element in the label slot (the legend/label container)\n const labelElements = labelSlot.assignedElements();\n if (labelElements.length === 0) return;\n\n const labelContainer = labelElements[0];\n\n // Look for existing announcement span\n let announcement = labelContainer.querySelector('.rating-announcement') as HTMLElement;\n\n if (!announcement) {\n // Create the announcement element if it doesn't exist\n announcement = document.createElement('span');\n announcement.className = 'visually-hidden rating-announcement';\n\n // Append to the label container\n labelContainer.appendChild(announcement);\n }\n // Update the text content\n announcement.textContent = ` ${this._getRatingAnnouncement()}`;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'it-rating': ItRating;\n }\n}\n"],"names":["it"],"mappings":";;;;;;AAEA,MAAM,WAAW,GAAuB;AACtC,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,KAAK,EAAE,UAAU;AACjB,IAAA,IAAI,EAAE,KAAK;AAEX,IAAA,QAAQ,EAAE,qBAAqB;AAC/B,IAAA,iBAAiB,EAAE,CAAC,MAAc,EAAE,GAAW,KAAK,CAAA,EAAG,MAAM,CAAA,WAAA,EAAc,GAAG,CAAA,CAAE;AAChF,IAAA,iBAAiB,EAAE,CAAC,MAAc,EAAE,GAAW,KAAK,CAAA,EAAG,MAAM,CAAA,WAAA,EAAc,GAAG,CAAA,CAAE;CACjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.6",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
"custom-elements.json"
|
|
35
35
|
],
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"bootstrap-italia": "3.0.0-beta.
|
|
37
|
+
"bootstrap-italia": "3.0.0-beta.7",
|
|
38
38
|
"lit": "^3.3.0",
|
|
39
|
-
"@italia/globals": "^1.0.0-beta.
|
|
40
|
-
"@italia/i18n": "^1.0.0-beta.
|
|
41
|
-
"@italia/icon": "^1.0.0-beta.
|
|
42
|
-
"@italia/radio": "^1.0.0-beta.
|
|
39
|
+
"@italia/globals": "^1.0.0-beta.6",
|
|
40
|
+
"@italia/i18n": "^1.0.0-beta.6",
|
|
41
|
+
"@italia/icon": "^1.0.0-beta.6",
|
|
42
|
+
"@italia/radio": "^1.0.0-beta.6"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"tslib": "^2.6.3",
|
|
54
54
|
"typescript": "^5.5.3",
|
|
55
55
|
"@italia/test-config": "^1.0.0-beta.2",
|
|
56
|
-
"@italia/input": "^1.0.0-beta.
|
|
56
|
+
"@italia/input": "^1.0.0-beta.6",
|
|
57
57
|
"@italia/typescript-config": "^1.0.0-beta.1"
|
|
58
58
|
},
|
|
59
59
|
"customElements": "custom-elements.json",
|