@italia/icon 0.0.1-alpha.0 → 0.1.0-alpha.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.
@@ -88,7 +88,8 @@
88
88
  "type": {
89
89
  "text": "Sizes | undefined"
90
90
  },
91
- "attribute": "size"
91
+ "attribute": "size",
92
+ "reflects": true
92
93
  },
93
94
  {
94
95
  "kind": "field",
@@ -104,7 +105,8 @@
104
105
  "type": {
105
106
  "text": "Colors | undefined"
106
107
  },
107
- "attribute": "color"
108
+ "attribute": "color",
109
+ "reflects": true
108
110
  },
109
111
  {
110
112
  "kind": "field",
@@ -113,7 +115,8 @@
113
115
  "text": "Alignments | undefined"
114
116
  },
115
117
  "default": "'middle'",
116
- "attribute": "align"
118
+ "attribute": "align",
119
+ "reflects": true
117
120
  },
118
121
  {
119
122
  "kind": "field",
@@ -132,7 +135,8 @@
132
135
  "text": "boolean"
133
136
  },
134
137
  "default": "false",
135
- "attribute": "padded"
138
+ "attribute": "padded",
139
+ "reflects": true
136
140
  },
137
141
  {
138
142
  "kind": "field",
@@ -140,7 +144,8 @@
140
144
  "type": {
141
145
  "text": "string | undefined"
142
146
  },
143
- "attribute": "src"
147
+ "attribute": "src",
148
+ "reflects": true
144
149
  },
145
150
  {
146
151
  "kind": "field",
@@ -463,7 +468,7 @@
463
468
  "type": {
464
469
  "text": "Story"
465
470
  },
466
- "default": "{ name: 'Icone disponibili', render: () => { const inputId = `search-${Math.random().toString(36).slice(2)}`; const showCopiedFeedback = (element: HTMLElement) => { const el = element; const original = el.innerHTML; el.innerHTML = '✅ Copiato!'; el.style.color = '#007a33'; setTimeout(() => { el.innerHTML = original; el.style.color = '#444'; }, 1200); }; const handleKeyDown = (e: KeyboardEvent, name: string, label: HTMLElement) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); navigator.clipboard.writeText(name); showCopiedFeedback(label); } }; return html` <style> .icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px; font-family: 'Titillium Web', sans-serif; font-size: 16px; } .icon-item { text-align: center; cursor: pointer; padding: 0.5rem; border-radius: 0.5rem; transition: background-color 0.2s ease; } .icon-item:hover { background-color: #f2f2f2; } .icon-label { font-size: 0.75rem; margin-top: 6px; overflow-wrap: break-word; color: #444; transition: color 0.3s ease; } .search-input { margin-bottom: 2.5rem; padding: 0.5rem 1rem; font-size: 1rem; width: 100%; border: 1px solid #ccc; border-radius: 4px; } #storybook-root { width: 100%; } </style> <div> <input id=\"${inputId}\" class=\"search-input\" type=\"text\" placeholder=\"Cerca un'icona per nome…\" @input=${(e: InputEvent) => { const value = (e.target as HTMLInputElement).value.toLowerCase(); const items = document.querySelectorAll('[data-icon-name]'); items.forEach((item) => { const el = item as HTMLElement; const nameAttr = el.getAttribute('data-icon-name') || ''; el.style.display = nameAttr.includes(value) ? '' : 'none'; }); }} /> <div class=\"icon-grid\"> ${iconNames.map( (name) => html` <div class=\"icon-item\" data-icon-name=\"${name.toLowerCase()}\" role=\"button\" tabindex=\"0\" label=\"Clicca per copiare\" @click=${(e: Event) => { navigator.clipboard.writeText(name); const label = (e.currentTarget as HTMLElement).querySelector('.icon-label') as HTMLElement; showCopiedFeedback(label); }} @keydown=${(e: KeyboardEvent) => { const label = (e.currentTarget as HTMLElement).querySelector('.icon-label') as HTMLElement; handleKeyDown(e, name, label); }} > <it-icon name=\"${name}\" size=\"lg\" label=\"${name}\"></it-icon> <div class=\"icon-label\">${name}</div> </div> `, )} </div> </div> `; }, argTypes: { size: { table: { disable: true, }, }, name: { table: { disable: true, }, }, color: { table: { disable: true, }, }, align: { table: { disable: true, }, }, label: { table: { disable: true, }, }, padded: { table: { disable: true, }, }, src: { table: { disable: true, }, }, role: { table: { disable: true, }, }, background: { table: { disable: true, }, }, }, parameters: { docs: { description: { story: ` Questa sezione mostra tutte le icone SVG disponibili nel Design System. Puoi cercare un'icona per nome, e cliccarla per copiarne il nome identificativo da usare nell'attributo \\`name\\`. `, }, }, }, }"
471
+ "default": "{ name: 'Icone disponibili', render: () => { const inputId = `search-${Math.random().toString(36).slice(2)}`; const showCopiedFeedback = (element: HTMLElement) => { const el = element; const original = el.innerHTML; el.innerHTML = '✅ Copiato!'; el.style.color = '#007a33'; setTimeout(() => { el.innerHTML = original; el.style.color = '#444'; }, 1200); }; const handleKeyDown = (e: KeyboardEvent, name: string, label: HTMLElement) => { if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); navigator.clipboard.writeText(name); showCopiedFeedback(label); } }; return html` <style> .icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px; } .icon-item { text-align: center; cursor: pointer; padding: 0.5rem; border-radius: 0.5rem; transition: background-color 0.2s ease; } .icon-item:hover { background-color: #f2f2f2; } .icon-label { font-size: 0.75rem; margin-top: 6px; overflow-wrap: break-word; color: #444; transition: color 0.3s ease; } .search-input { margin-bottom: 2.5rem; padding: 0.5rem 1rem; font-size: 1rem; width: 100%; border: 1px solid #ccc; border-radius: 4px; } #storybook-root { width: 100%; } </style> <div> <input id=\"${inputId}\" class=\"search-input\" type=\"text\" placeholder=\"Cerca un'icona per nome…\" @input=${(e: InputEvent) => { const value = (e.target as HTMLInputElement).value.toLowerCase(); const items = document.querySelectorAll('[data-icon-name]'); items.forEach((item) => { const el = item as HTMLElement; const nameAttr = el.getAttribute('data-icon-name') || ''; el.style.display = nameAttr.includes(value) ? '' : 'none'; }); }} /> <div class=\"icon-grid\"> ${iconNames.map( (name) => html` <div class=\"icon-item\" data-icon-name=\"${name.toLowerCase()}\" role=\"button\" tabindex=\"0\" label=\"Clicca per copiare\" @click=${(e: Event) => { navigator.clipboard.writeText(name); const label = (e.currentTarget as HTMLElement).querySelector('.icon-label') as HTMLElement; showCopiedFeedback(label); }} @keydown=${(e: KeyboardEvent) => { const label = (e.currentTarget as HTMLElement).querySelector('.icon-label') as HTMLElement; handleKeyDown(e, name, label); }} > <it-icon name=\"${name}\" size=\"lg\" label=\"${name}\"></it-icon> <div class=\"icon-label\">${name}</div> </div> `, )} </div> </div> `; }, argTypes: { size: { table: { disable: true, }, }, name: { table: { disable: true, }, }, color: { table: { disable: true, }, }, align: { table: { disable: true, }, }, label: { table: { disable: true, }, }, padded: { table: { disable: true, }, }, src: { table: { disable: true, }, }, role: { table: { disable: true, }, }, background: { table: { disable: true, }, }, }, parameters: { docs: { description: { story: ` Questa sezione mostra tutte le icone SVG disponibili nel Design System. Puoi cercare un'icona per nome, e cliccarla per copiarne il nome identificativo da usare nell'attributo \\`name\\`. `, }, }, }, }"
467
472
  }
468
473
  ],
469
474
  "exports": [
@@ -1 +1 @@
1
- {"version":3,"file":"it-icon.d.ts","sourceRoot":"","sources":["../../src/it-icon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAQ,cAAc,EAAgB,MAAM,KAAK,CAAC;AAEzD,OAAO,EAAW,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAClE,OAAO,EAAE,KAAK,MAAM,EAAE,KAAK,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAGtE,qBACa,MAAO,SAAQ,aAAa;IACvC,MAAM,CAAC,MAAM,+BAAU;IAEK,IAAI,CAAC,EAAE,KAAK,CAAC;IAEb,IAAI,CAAC,EAAE,cAAc,CAAC;IAEtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,KAAK,CAAC,EAAE,UAAU,CAAY;IAEf,KAAK,SAAM;IAEzB,MAAM,UAAS;IAEhB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEhC,OAAO,CAAC,UAAU,CAAC,CAAc;IAG1C,OAAO,CAAC,MAAM,CAAmB;IAEjC,OAAO,CAAC,OAAO,CAAC,CAAS;IAEV,OAAO,CAAC,YAAY,EAAE,cAAc,CAAC,IAAI,CAAC;IA8BzD,OAAO,CAAC,aAAa;YAUP,cAAc;IAa5B,OAAO,CAAC,oBAAoB;IAU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AKP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -52,10 +52,26 @@ var VALIDATION_STATUS;
52
52
  * One indicating no validation error.
53
53
  */
54
54
  VALIDATION_STATUS["NO_ERROR"] = "";
55
+ /**
56
+ * One indicating that the value is invalid (generic).
57
+ */
58
+ VALIDATION_STATUS["INVALID"] = "invalid";
55
59
  /**
56
60
  * One indicating missing required value.
57
61
  */
58
62
  VALIDATION_STATUS["ERROR_REQUIRED"] = "required";
63
+ /**
64
+ * One indicating that the value does not match the pattern.
65
+ */
66
+ VALIDATION_STATUS["PATTERN"] = "pattern";
67
+ /**
68
+ * One indicating that the value is shorter than the minimum length.
69
+ */
70
+ VALIDATION_STATUS["MINLENGTH"] = "minlength";
71
+ /**
72
+ * One indicating that the value is less than the maximum length.
73
+ */
74
+ VALIDATION_STATUS["MAXLENGTH"] = "maxlength";
59
75
  })(VALIDATION_STATUS || (VALIDATION_STATUS = {}));
60
76
 
61
77
  class SetAttributesDirective extends Directive {
@@ -759,7 +775,7 @@ let ItIcon = class ItIcon extends BaseComponent {
759
775
  };
760
776
  ItIcon.styles = styles;
761
777
  __decorate([
762
- property({ type: String }),
778
+ property({ type: String, reflect: true }),
763
779
  __metadata("design:type", Object)
764
780
  ], ItIcon.prototype, "size", void 0);
765
781
  __decorate([
@@ -767,11 +783,11 @@ __decorate([
767
783
  __metadata("design:type", String)
768
784
  ], ItIcon.prototype, "name", void 0);
769
785
  __decorate([
770
- property({ type: String }),
786
+ property({ type: String, reflect: true }),
771
787
  __metadata("design:type", String)
772
788
  ], ItIcon.prototype, "color", void 0);
773
789
  __decorate([
774
- property({ type: String }),
790
+ property({ type: String, reflect: true }),
775
791
  __metadata("design:type", String)
776
792
  ], ItIcon.prototype, "align", void 0);
777
793
  __decorate([
@@ -779,11 +795,11 @@ __decorate([
779
795
  __metadata("design:type", Object)
780
796
  ], ItIcon.prototype, "label", void 0);
781
797
  __decorate([
782
- property({ type: Boolean }),
798
+ property({ type: Boolean, reflect: true }),
783
799
  __metadata("design:type", Object)
784
800
  ], ItIcon.prototype, "padded", void 0);
785
801
  __decorate([
786
- property({ type: String }),
802
+ property({ type: String, reflect: true }),
787
803
  __metadata("design:type", String)
788
804
  ], ItIcon.prototype, "src", void 0);
789
805
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"it-icon.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@12.1.2_rollup@4.42.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js","../../../globals/dist/src/mixins/validity.js","../../../globals/dist/src/directives/setAttributes.js","../../../i18n/dist/src/index.js","../../../globals/dist/src/utils/logger.js","../../../globals/dist/src/base-component/base-component.js","../../../src/icon-registry.ts","../../../src/it-icon.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * Form validation status.\n */\nexport var VALIDATION_STATUS;\n(function (VALIDATION_STATUS) {\n /**\n * One indicating no validation error.\n */\n VALIDATION_STATUS[\"NO_ERROR\"] = \"\";\n /**\n * One indicating missing required value.\n */\n VALIDATION_STATUS[\"ERROR_REQUIRED\"] = \"required\";\n})(VALIDATION_STATUS || (VALIDATION_STATUS = {}));\n/**\n * @param Base The base class.\n * @returns A mix-in implementing `.setCustomValidity()` method.\n */\nconst ValidityMixin = (Base) => {\n class ValidityMixinImpl extends Base {\n // Not using TypeScript `protected` due to: microsoft/TypeScript#17744\n // Using `string` instead of `VALIDATION_STATUS` until we can require TypeScript 3.8\n /**\n * @param state The form validation status.\n * @returns The form validation error mesasages associated with the given status.\n * @protected\n */\n _getValidityMessage(state) {\n return {\n [VALIDATION_STATUS.NO_ERROR]: '',\n [VALIDATION_STATUS.ERROR_REQUIRED]: this.requiredValidityMessage,\n }[state];\n }\n // Not using TypeScript `protected` due to: microsoft/TypeScript#17744\n // Using `string` instead of `VALIDATION_STATUS` until we can require TypeScript 3.8\n /**\n * Checks if the value meets the constraints.\n *\n * @returns `VALIDATION_STATUS.NO_ERROR` if the value meets the constraints. Some other values otherwise.\n * @protected\n */\n _testValidity() {\n const { required, value } = this;\n return required && !value ? VALIDATION_STATUS.ERROR_REQUIRED : VALIDATION_STATUS.NO_ERROR;\n }\n /**\n * Checks if the value meets the constraints.\n * Fires cancelable `invalid` event if it doesn't.\n *\n * @returns `true` if the value meets the constraints. `false` otherwise.\n */\n checkValidity() {\n const status = this._testValidity();\n if (status !== VALIDATION_STATUS.NO_ERROR) {\n if (this.dispatchEvent(new CustomEvent('invalid', {\n bubbles: false,\n cancelable: true,\n composed: false,\n }))) {\n this.invalid = true;\n this.validityMessage = this._getValidityMessage(status);\n }\n return false;\n }\n this.invalid = false;\n this.validityMessage = '';\n return true;\n }\n /**\n * Sets the given custom validity message.\n *\n * @param validityMessage The custom validity message\n */\n setCustomValidity(validityMessage) {\n this.invalid = Boolean(validityMessage);\n this.validityMessage = validityMessage;\n }\n }\n return ValidityMixinImpl;\n};\nexport default ValidityMixin;\n//# sourceMappingURL=validity.js.map","import { directive, Directive } from 'lit/directive.js';\nclass SetAttributesDirective extends Directive {\n update(part, [attributes]) {\n const el = part.element;\n for (const [name, value] of Object.entries(attributes)) {\n if (value != null)\n el.setAttribute(name, value);\n else\n el.removeAttribute(name);\n }\n return null;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n render(_attributes) {\n return null;\n }\n}\n/* How to use:\n\n<textarea ${setAttributes(this._ariaAttributes)} ... />\n*/\nconst setAttributes = directive(SetAttributesDirective);\nexport default setAttributes;\n//# sourceMappingURL=setAttributes.js.map","const connectedElements = new Set();\nif (window && !window.translations) {\n window.translations = new Map();\n}\nconst { translations } = window;\nlet fallback;\n// TODO: We need some way for users to be able to set these on the server.\nlet documentDirection = 'ltr';\n// Fallback for server.\nlet documentLanguage = 'en';\nconst isClient = typeof MutationObserver !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.documentElement !== 'undefined';\n/** Updates all localized elements that are currently connected */\nfunction update() {\n if (isClient) {\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n }\n [...connectedElements.keys()].forEach((el) => {\n const litEl = el;\n if (typeof litEl.requestUpdate === 'function') {\n litEl.requestUpdate();\n }\n });\n}\nif (isClient) {\n const documentElementObserver = new MutationObserver(update);\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n // Watch for changes on <html lang>\n documentElementObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['dir', 'lang'],\n });\n}\n/** Registers one or more translations */\nfunction registerTranslation(...translation) {\n translation.forEach((t) => {\n const code = t.$code.toLowerCase();\n if (translations.has(code)) {\n // Merge translations that share the same language code\n translations.set(code, { ...translations.get(code), ...t });\n }\n else {\n translations.set(code, t);\n }\n // The first translation that's registered is the fallback\n if (!fallback) {\n fallback = t;\n }\n });\n update();\n}\nwindow.registerTranslation = registerTranslation;\n/**\n * Localize Reactive Controller for components built with Lit\n *\n * To use this controller, import the class and instantiate it in a custom element constructor:\n *\n * private localize = new LocalizeController(this);\n *\n * This will add the element to the set and make it respond to changes to <html dir|lang> automatically. To make it\n * respond to changes to its own dir|lang properties, make it a property:\n *\n * @property() dir: string;\n * @property() lang: string;\n *\n * To use a translation method, call it like this:\n *\n * ${this.localize.term('term_key_here')}\n * ${this.localize.date('2021-12-03')}\n * ${this.localize.number(1000000)}\n */\nclass LocalizeController {\n constructor(host) {\n this.host = host;\n this.host.addController(this);\n }\n hostConnected() {\n connectedElements.add(this.host);\n }\n hostDisconnected() {\n connectedElements.delete(this.host);\n }\n /**\n * Gets the host element's directionality as determined by the `dir` attribute. The return value is transformed to\n * lowercase.\n */\n dir() {\n return `${this.host.dir || documentDirection}`.toLowerCase();\n }\n /**\n * Gets the host element's language as determined by the `lang` attribute. The return value is transformed to\n * lowercase.\n */\n lang() {\n return `${this.host.lang || documentLanguage}`.toLowerCase();\n }\n // eslint-disable-next-line class-methods-use-this\n getTranslationData(lang) {\n // Convert \"en_US\" to \"en-US\". Note that both underscores and dashes are allowed per spec, but underscores result in\n // a RangeError by the call to `new Intl.Locale()`. See: https://unicode.org/reports/tr35/#unicode-locale-identifier\n const locale = new Intl.Locale(lang.replace(/_/g, '-'));\n const language = locale?.language.toLowerCase();\n const region = locale?.region?.toLowerCase() ?? '';\n const primary = translations.get(`${language}-${region}`);\n const secondary = translations.get(language);\n return { locale, language, region, primary, secondary };\n }\n /** Determines if the specified term exists, optionally checking the fallback translation. */\n exists(key, options) {\n const { primary, secondary } = this.getTranslationData(options.lang ?? this.lang());\n const mergedOptions = {\n includeFallback: false,\n ...options,\n };\n if ((primary && primary[key]) ||\n (secondary && secondary[key]) ||\n (mergedOptions.includeFallback && fallback && fallback[key])) {\n return true;\n }\n return false;\n }\n /** Outputs a translated term. */\n term(key, ...args) {\n const { primary, secondary } = this.getTranslationData(this.lang());\n let term;\n // Look for a matching term using regionCode, code, then the fallback\n if (primary && primary[key]) {\n term = primary[key];\n }\n else if (secondary && secondary[key]) {\n term = secondary[key];\n }\n else if (fallback && fallback[key]) {\n term = fallback[key];\n }\n else {\n // eslint-disable-next-line no-console\n console.error(`No translation found for: ${String(key)}`);\n return String(key);\n }\n if (typeof term === 'function') {\n return term(...args);\n }\n return term;\n }\n /** Outputs a localized date in the specified format. */\n date(dateToFormat, options) {\n const date = new Date(dateToFormat);\n return new Intl.DateTimeFormat(this.lang(), options).format(date);\n }\n /** Outputs a localized number in the specified format. */\n number(numberToFormat, options) {\n const num = Number(numberToFormat);\n return Number.isNaN(num) ? '' : new Intl.NumberFormat(this.lang(), options).format(num);\n }\n /** Outputs a localized time in relative format. */\n relativeTime(value, unit, options) {\n return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);\n }\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing `localizations` method.\n *\n *@example\n * <!-- Terms -->\n ${this.$localize.term('hello')}\n or\n ${this.$t('hello')}\n\n <!-- Dates -->\n ${this.$localize.date('2021-09-15 14:00:00 ET', { month: 'long', day: 'numeric', year: 'numeric' })}\n or\n ${this.$d('2021-09-15 14:00:00 ET', { month: 'long', day: 'numeric', year: 'numeric' })}\n\n <!-- Numbers/currency -->\n ${this.$localize.number(1000, { style: 'currency', currency: 'USD'})}\n or\n ${this.$n(1000,{ style: 'currency', currency: 'USD'})}\n\n <!-- Determining language -->\n ${this.$localize.lang()}\n\n <!-- Determining directionality, e.g. 'ltr' or 'rtl' -->\n ${this.$localize.dir()}\n\n\n *** HOW TO DEFINE TRANSLATIONS: ***\n // Simple terms\n upload: 'Upload',\n\n // Terms with placeholders\n greetUser: (name: string) => `Hello, ${name}!`,\n\n // Plurals\n numFilesSelected: (count: number) => {\n if (count === 0) return 'No files selected';\n if (count === 1) return '1 file selected';\n return `${count} files selected`;\n }\n */\nconst LocalizeMixin = (Base) => class extends Base {\n constructor() {\n super(...arguments);\n this.localize = new LocalizeController(this);\n // Provide default values to avoid definite assignment errors and avoid decorators\n this.dir = '';\n this.lang = '';\n }\n /**\n * Restituisce tutta l'utility di traduzione\n *\n\n *\n * @returns tutta l'utility di traduzione\n *\n * @example\n * this.$localize.lang() -> ritorna la lingua corrente\n * this.$localize.dir() -> ritorna la direzione della lingua corrente\n */\n get $localize() {\n return this.localize;\n }\n /**\n * Restituisce una stringa localizzata a partire da una chiave di termine.\n *\n * Utilizza il `LocalizeController` per accedere al dizionario corrente e\n * tradurre la chiave fornita secondo la lingua attiva.\n *\n * @param t - La chiave del termine da localizzare (es. 'hello', 'submit', ecc.).\n * @returns La stringa tradotta in base alla lingua attiva. Se la chiave non è trovata, restituisce la chiave stessa.\n *\n * @example\n * this.$t('hello'); // → \"Ciao\" (in locale it-IT)\n */\n $t(t) {\n // format term\n return this.localize.term(t);\n }\n /**\n * Formatta una data in base alla localizzazione attiva.\n *\n * Utilizza il `LocalizeController` per restituire una stringa localizzata\n * secondo le opzioni fornite (es. mese esteso, anno, ecc.).\n *\n * @param n - La data da formattare come stringa compatibile (es. ISO o con timezone, es. '2021-09-15 14:00:00 ET').\n * @param p - Le opzioni di formattazione per `Intl.DateTimeFormat` (es. { year: 'numeric', month: 'long', day: 'numeric' }).\n * @returns Una stringa rappresentante la data formattata secondo la localizzazione attiva.\n *\n * @example\n * this.$d('2021-09-15 14:00:00 ET', { year: 'numeric', month: 'long', day: 'numeric' });\n * // → \"15 settembre 2021\" (in locale it-IT)\n */\n $d(d, p) {\n // format date\n return this.localize.date(d, p);\n }\n /**\n * Formatta un numero secondo le impostazioni locali dell'utente corrente.\n *\n * Utilizza il `LocalizeController` per applicare formattazione numerica,\n * incluse opzioni come separatori, decimali, valute, ecc.\n *\n * @param d - Il numero da formattare.\n * @param p - Le opzioni di formattazione (es. { style: 'currency', currency: 'EUR' }).\n * @returns Una stringa rappresentante il numero formattato secondo la localizzazione attiva.\n *\n * @example\n * this.$n(1234.56, { style: 'currency', currency: 'USD' }); // → \"$1,234.56\" (in locale en-US)\n */\n $n(d, p) {\n return this.localize.number(d, p);\n }\n};\n// export interface LocalizedComponent {\n// $t(t: string): string;\n// $d(d: Date | string, p?: Intl.DateTimeFormatOptions): string;\n// $n(n: number, p?: Intl.NumberFormatOptions): string;\n// $localize: LocalizeController;\n// }\n\nexport { LocalizeController, LocalizeMixin, registerTranslation };\n//# sourceMappingURL=index.js.map\n","/* eslint-disable no-console */\nexport class Logger {\n constructor(tag) {\n this.tag = tag;\n }\n format(level, msg) {\n return [`[${this.tag}] ${msg}`];\n }\n warn(msg) {\n console.warn(...this.format('warn', msg));\n }\n error(msg) {\n console.error(...this.format('error', msg));\n }\n info(msg) {\n console.info(...this.format('info', msg));\n }\n}\n//# sourceMappingURL=logger.js.map","import { LitElement } from 'lit';\nimport { LocalizeMixin } from '@italia/i18n';\nimport { Logger } from '../utils/logger.js';\n/**\n * Factory function per creare una base class estendibile\n * con stili personalizzati.\n */\nexport class BaseComponent extends LitElement {\n constructor() {\n super();\n this._ariaAttributes = {}; // tutti gli attributi aria-* passati al Web component\n this.logger = new Logger(this.tagName.toLowerCase());\n }\n // eslint-disable-next-line class-methods-use-this\n generateId(prefix) {\n return `${prefix}-${Math.random().toString(36).slice(2)}`;\n }\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n addFocus(element) {\n // new TrackFocus(element); // per il momento è stato disattivato perchè ci sono le pseudo classi ::focus-visible per fare quello che fa TrackFocus. Si possono aggiungere regole css in bsi-italia 3 dato che stiamo facendo una breaking release di bsi.\n }\n // eslint-disable-next-line class-methods-use-this\n composeClass(...classes) {\n let composedClass = '';\n classes\n .filter((c) => c.length > 0)\n .forEach((newClass) => {\n composedClass += ` ${newClass}`;\n });\n return composedClass.trim();\n }\n getAriaAttributes() {\n for (const attr of this.getAttributeNames()) {\n if (attr.startsWith('aria-')) {\n this._ariaAttributes[attr] = this.getAttribute(attr);\n }\n }\n }\n connectedCallback() {\n super.connectedCallback?.();\n this.getAriaAttributes();\n // generate internal _id\n const prefix = this.id?.length > 0 ? this.id : this.tagName.toLowerCase();\n this._id = this.generateId(prefix);\n }\n}\nexport const BaseLocalizedComponent = LocalizeMixin(BaseComponent);\n//# sourceMappingURL=base-component.js.map","// 🛑 AUTO-GENERATED FILE — do not edit manually!\nexport type IconLoader = () => Promise<{ default: string }>;\n\nexport const registry = {\n 'it-android-square': () => import('./icons/it-android-square.js'),\n 'it-android': () => import('./icons/it-android.js'),\n 'it-apple-square': () => import('./icons/it-apple-square.js'),\n 'it-apple': () => import('./icons/it-apple.js'),\n 'it-arrow-down-circle': () => import('./icons/it-arrow-down-circle.js'),\n 'it-arrow-down-triangle': () => import('./icons/it-arrow-down-triangle.js'),\n 'it-arrow-down': () => import('./icons/it-arrow-down.js'),\n 'it-arrow-left-circle': () => import('./icons/it-arrow-left-circle.js'),\n 'it-arrow-left-triangle': () => import('./icons/it-arrow-left-triangle.js'),\n 'it-arrow-left': () => import('./icons/it-arrow-left.js'),\n 'it-arrow-right-circle': () => import('./icons/it-arrow-right-circle.js'),\n 'it-arrow-right-triangle': () => import('./icons/it-arrow-right-triangle.js'),\n 'it-arrow-right': () => import('./icons/it-arrow-right.js'),\n 'it-arrow-up-circle': () => import('./icons/it-arrow-up-circle.js'),\n 'it-arrow-up-triangle': () => import('./icons/it-arrow-up-triangle.js'),\n 'it-arrow-up': () => import('./icons/it-arrow-up.js'),\n 'it-ban': () => import('./icons/it-ban.js'),\n 'it-behance': () => import('./icons/it-behance.js'),\n 'it-bluesky': () => import('./icons/it-bluesky.js'),\n 'it-bookmark': () => import('./icons/it-bookmark.js'),\n 'it-box': () => import('./icons/it-box.js'),\n 'it-burger': () => import('./icons/it-burger.js'),\n 'it-calendar': () => import('./icons/it-calendar.js'),\n 'it-camera': () => import('./icons/it-camera.js'),\n 'it-car': () => import('./icons/it-car.js'),\n 'it-card': () => import('./icons/it-card.js'),\n 'it-cart': () => import('./icons/it-cart.js'),\n 'it-chart-line': () => import('./icons/it-chart-line.js'),\n 'it-check-circle': () => import('./icons/it-check-circle.js'),\n 'it-check': () => import('./icons/it-check.js'),\n 'it-chevron-left': () => import('./icons/it-chevron-left.js'),\n 'it-chevron-right': () => import('./icons/it-chevron-right.js'),\n 'it-clip': () => import('./icons/it-clip.js'),\n 'it-clock': () => import('./icons/it-clock.js'),\n 'it-close-big': () => import('./icons/it-close-big.js'),\n 'it-close-circle': () => import('./icons/it-close-circle.js'),\n 'it-close': () => import('./icons/it-close.js'),\n 'it-code-circle': () => import('./icons/it-code-circle.js'),\n 'it-collapse': () => import('./icons/it-collapse.js'),\n 'it-comment': () => import('./icons/it-comment.js'),\n 'it-copy': () => import('./icons/it-copy.js'),\n 'it-delete': () => import('./icons/it-delete.js'),\n 'it-designers-italia': () => import('./icons/it-designers-italia.js'),\n 'it-download': () => import('./icons/it-download.js'),\n 'it-error': () => import('./icons/it-error.js'),\n 'it-exchange-circle': () => import('./icons/it-exchange-circle.js'),\n 'it-expand': () => import('./icons/it-expand.js'),\n 'it-external-link': () => import('./icons/it-external-link.js'),\n 'it-facebook-square': () => import('./icons/it-facebook-square.js'),\n 'it-facebook': () => import('./icons/it-facebook.js'),\n 'it-figma-square': () => import('./icons/it-figma-square.js'),\n 'it-figma': () => import('./icons/it-figma.js'),\n 'it-file-audio': () => import('./icons/it-file-audio.js'),\n 'it-file-compressed': () => import('./icons/it-file-compressed.js'),\n 'it-file-csv': () => import('./icons/it-file-csv.js'),\n 'it-file-docx': () => import('./icons/it-file-docx.js'),\n 'it-file-image': () => import('./icons/it-file-image.js'),\n 'it-file-json': () => import('./icons/it-file-json.js'),\n 'it-file-odp': () => import('./icons/it-file-odp.js'),\n 'it-file-ods': () => import('./icons/it-file-ods.js'),\n 'it-file-odt': () => import('./icons/it-file-odt.js'),\n 'it-file-pdf-ext': () => import('./icons/it-file-pdf-ext.js'),\n 'it-file-pdf': () => import('./icons/it-file-pdf.js'),\n 'it-file-ppt': () => import('./icons/it-file-ppt.js'),\n 'it-file-sheet': () => import('./icons/it-file-sheet.js'),\n 'it-file-signed': () => import('./icons/it-file-signed.js'),\n 'it-file-slides': () => import('./icons/it-file-slides.js'),\n 'it-file-txt': () => import('./icons/it-file-txt.js'),\n 'it-file-video': () => import('./icons/it-file-video.js'),\n 'it-file-xlsx': () => import('./icons/it-file-xlsx.js'),\n 'it-file-xml': () => import('./icons/it-file-xml.js'),\n 'it-file': () => import('./icons/it-file.js'),\n 'it-files': () => import('./icons/it-files.js'),\n 'it-flag': () => import('./icons/it-flag.js'),\n 'it-flickr-square': () => import('./icons/it-flickr-square.js'),\n 'it-flickr': () => import('./icons/it-flickr.js'),\n 'it-folder': () => import('./icons/it-folder.js'),\n 'it-fullscreen': () => import('./icons/it-fullscreen.js'),\n 'it-funnel': () => import('./icons/it-funnel.js'),\n 'it-github': () => import('./icons/it-github.js'),\n 'it-google': () => import('./icons/it-google.js'),\n 'it-hearing': () => import('./icons/it-hearing.js'),\n 'it-help-circle': () => import('./icons/it-help-circle.js'),\n 'it-help': () => import('./icons/it-help.js'),\n 'it-horn': () => import('./icons/it-horn.js'),\n 'it-inbox': () => import('./icons/it-inbox.js'),\n 'it-info-circle': () => import('./icons/it-info-circle.js'),\n 'it-instagram': () => import('./icons/it-instagram.js'),\n 'it-key': () => import('./icons/it-key.js'),\n 'it-less-circle': () => import('./icons/it-less-circle.js'),\n 'it-link': () => import('./icons/it-link.js'),\n 'it-linkedin-square': () => import('./icons/it-linkedin-square.js'),\n 'it-linkedin': () => import('./icons/it-linkedin.js'),\n 'it-list': () => import('./icons/it-list.js'),\n 'it-lock': () => import('./icons/it-lock.js'),\n 'it-locked': () => import('./icons/it-locked.js'),\n 'it-logout': () => import('./icons/it-logout.js'),\n 'it-mail-open': () => import('./icons/it-mail-open.js'),\n 'it-mail': () => import('./icons/it-mail.js'),\n 'it-map-marker-circle': () => import('./icons/it-map-marker-circle.js'),\n 'it-map-marker-minus': () => import('./icons/it-map-marker-minus.js'),\n 'it-map-marker-plus': () => import('./icons/it-map-marker-plus.js'),\n 'it-map-marker': () => import('./icons/it-map-marker.js'),\n 'it-mastodon-square': () => import('./icons/it-mastodon-square.js'),\n 'it-mastodon': () => import('./icons/it-mastodon.js'),\n 'it-maximize-alt': () => import('./icons/it-maximize-alt.js'),\n 'it-maximize': () => import('./icons/it-maximize.js'),\n 'it-medium-square': () => import('./icons/it-medium-square.js'),\n 'it-medium': () => import('./icons/it-medium.js'),\n 'it-minimize': () => import('./icons/it-minimize.js'),\n 'it-minus-circle': () => import('./icons/it-minus-circle.js'),\n 'it-minus': () => import('./icons/it-minus.js'),\n 'it-moodle-square': () => import('./icons/it-moodle-square.js'),\n 'it-moodle': () => import('./icons/it-moodle.js'),\n 'it-more-actions': () => import('./icons/it-more-actions.js'),\n 'it-more-items': () => import('./icons/it-more-items.js'),\n 'it-note': () => import('./icons/it-note.js'),\n 'it-open-source': () => import('./icons/it-open-source.js'),\n 'it-pa': () => import('./icons/it-pa.js'),\n 'it-password-invisible': () => import('./icons/it-password-invisible.js'),\n 'it-password-visible': () => import('./icons/it-password-visible.js'),\n 'it-pencil': () => import('./icons/it-pencil.js'),\n 'it-piattaforme': () => import('./icons/it-piattaforme.js'),\n 'it-pin': () => import('./icons/it-pin.js'),\n 'it-pinterest-square': () => import('./icons/it-pinterest-square.js'),\n 'it-pinterest': () => import('./icons/it-pinterest.js'),\n 'it-plug': () => import('./icons/it-plug.js'),\n 'it-plus-circle': () => import('./icons/it-plus-circle.js'),\n 'it-plus': () => import('./icons/it-plus.js'),\n 'it-presentation': () => import('./icons/it-presentation.js'),\n 'it-print': () => import('./icons/it-print.js'),\n 'it-quora-square': () => import('./icons/it-quora-square.js'),\n 'it-quora': () => import('./icons/it-quora.js'),\n 'it-reddit-square': () => import('./icons/it-reddit-square.js'),\n 'it-reddit': () => import('./icons/it-reddit.js'),\n 'it-refresh': () => import('./icons/it-refresh.js'),\n 'it-restore': () => import('./icons/it-restore.js'),\n 'it-rss-square': () => import('./icons/it-rss-square.js'),\n 'it-rss': () => import('./icons/it-rss.js'),\n 'it-search': () => import('./icons/it-search.js'),\n 'it-settings': () => import('./icons/it-settings.js'),\n 'it-share': () => import('./icons/it-share.js'),\n 'it-sign': () => import('./icons/it-sign.js'),\n 'it-slack-square': () => import('./icons/it-slack-square.js'),\n 'it-slack': () => import('./icons/it-slack.js'),\n 'it-snapchat-square': () => import('./icons/it-snapchat-square.js'),\n 'it-snapchat': () => import('./icons/it-snapchat.js'),\n 'it-software': () => import('./icons/it-software.js'),\n 'it-spotify': () => import('./icons/it-spotify.js'),\n 'it-stackexchange-square': () => import('./icons/it-stackexchange-square.js'),\n 'it-stackexchange': () => import('./icons/it-stackexchange.js'),\n 'it-stackoverflow-square': () => import('./icons/it-stackoverflow-square.js'),\n 'it-stackoverflow': () => import('./icons/it-stackoverflow.js'),\n 'it-star-full': () => import('./icons/it-star-full.js'),\n 'it-star-outline': () => import('./icons/it-star-outline.js'),\n 'it-team-digitale': () => import('./icons/it-team-digitale.js'),\n 'it-telegram': () => import('./icons/it-telegram.js'),\n 'it-telephone': () => import('./icons/it-telephone.js'),\n 'it-threads-square': () => import('./icons/it-threads-square.js'),\n 'it-threads': () => import('./icons/it-threads.js'),\n 'it-tiktok-square': () => import('./icons/it-tiktok-square.js'),\n 'it-tiktok': () => import('./icons/it-tiktok.js'),\n 'it-tool': () => import('./icons/it-tool.js'),\n 'it-twitter-square': () => import('./icons/it-twitter-square.js'),\n 'it-twitter': () => import('./icons/it-twitter.js'),\n 'it-unlocked': () => import('./icons/it-unlocked.js'),\n 'it-upload': () => import('./icons/it-upload.js'),\n 'it-user': () => import('./icons/it-user.js'),\n 'it-video': () => import('./icons/it-video.js'),\n 'it-vimeo-square': () => import('./icons/it-vimeo-square.js'),\n 'it-vimeo': () => import('./icons/it-vimeo.js'),\n 'it-warning-circle': () => import('./icons/it-warning-circle.js'),\n 'it-warning': () => import('./icons/it-warning.js'),\n 'it-whatsapp-square': () => import('./icons/it-whatsapp-square.js'),\n 'it-whatsapp': () => import('./icons/it-whatsapp.js'),\n 'it-wifi': () => import('./icons/it-wifi.js'),\n 'it-youtube': () => import('./icons/it-youtube.js'),\n 'it-zoom-in': () => import('./icons/it-zoom-in.js'),\n 'it-zoom-out': () => import('./icons/it-zoom-out.js')\n} as const;\n\nexport type AvailableIcons = keyof typeof registry;\n\n/**\n * Get a dynamic icon loader by name.\n */\nexport const getIcon = (name: AvailableIcons): IconLoader | undefined =>\n registry[name];","import { BaseComponent } from '@italia/globals';\nimport { html, PropertyValues, nothing, svg } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { getIcon, type AvailableIcons } from './icon-registry.js';\nimport { type Colors, type Sizes, type Alignments } from './types.js';\nimport styles from './icon.scss';\n\n@customElement('it-icon')\nexport class ItIcon extends BaseComponent {\n static styles = styles;\n\n @property({ type: String }) size?: Sizes;\n\n @property({ type: String }) name?: AvailableIcons;\n\n @property({ type: String }) color?: Colors;\n\n // @property({ type: String }) background?: Colors;\n\n @property({ type: String }) align?: Alignments = 'middle';\n\n @property({ type: String, reflect: true }) label = '';\n\n @property({ type: Boolean }) padded = false;\n\n @property({ type: String }) src?: string;\n\n @state() private svgElement?: HTMLElement;\n\n @query('slot')\n private slotEl!: HTMLSlotElement;\n\n private titleId?: string;\n\n override async updated(changedProps: PropertyValues<this>) {\n if (changedProps.has('name') && this.name) {\n const loader = getIcon(this.name);\n if (loader) {\n const raw = (await loader()).default;\n this.parseAndStoreSvg(raw);\n }\n }\n\n if (changedProps.has('src') && this.src) {\n await this.loadSvgFromUrl(this.src);\n }\n\n if (changedProps.has('label')) {\n this.handleTitleId();\n }\n\n if (\n changedProps.has('label') ||\n changedProps.has('size') ||\n changedProps.has('color') ||\n // changedProps.has('background') ||\n changedProps.has('padded') ||\n changedProps.has('role') ||\n changedProps.has('align')\n ) {\n this.updateSvgAttributes();\n }\n }\n\n private handleTitleId() {\n if (this.label) {\n if (!this.titleId) {\n this.titleId = `icon-label-${crypto.randomUUID()}`;\n }\n } else {\n this.titleId = undefined;\n }\n }\n\n private async loadSvgFromUrl(url: string) {\n try {\n const res = await fetch(url);\n if (!res.ok) throw new Error(`Failed to load SVG from ${url} (status: ${res.status})`);\n\n const raw = await res.text();\n this.parseAndStoreSvg(raw);\n } catch (e) {\n this.svgElement = undefined;\n this.announceSvgLoadError();\n }\n }\n\n private announceSvgLoadError(): void {\n this.dispatchEvent(\n new Event('error', {\n bubbles: false,\n composed: false,\n cancelable: false,\n }),\n );\n }\n\n private parseAndStoreSvg(raw: string) {\n const parser = new DOMParser();\n const doc = parser.parseFromString(raw, 'image/svg+xml');\n const _svg = doc.documentElement;\n this.svgElement = _svg;\n this.updateSvgAttributes();\n }\n\n private applySvgAttributes(svgEl: HTMLElement) {\n svgEl.removeAttribute('width');\n svgEl.removeAttribute('height');\n\n const classList = this.updateClasses();\n\n svgEl.setAttribute('class', classList);\n svgEl.setAttribute('part', 'icon');\n\n // Accessibility logic:\n // - If a `label` is provided:\n // - The icon is accessible to assistive technologies.\n // - Remove aria-hidden attribute if it exists\n // - Sets `role=\"img\"` to indicate the SVG is an image.\n // - Adds a <title> element with the label text inside the SVG.\n // - Sets `aria-labelledby` to reference the <title> for screen readers.\n // - If no `label` is provided:\n // - The icon is treated as decorative and ignored by assistive technologies.\n // - Sets `aria-hidden=\"true\".\n // - Sets `role=\"presentation\"` to indicate the SVG is purely decorative.\n // - Removes any <title> and `aria-labelledby` attributes from the SVG.\n if (this.label) {\n svgEl.removeAttribute('aria-hidden');\n svgEl.setAttribute('role', 'img');\n\n // Remove previous title/aria-labelledby\n svgEl.removeAttribute('aria-labelledby');\n svgEl.querySelectorAll('title').forEach((t) => t.remove());\n\n // Add title and aria-labelledby for screen readers\n if (this.titleId) {\n const titleEl = document.createElementNS('http://www.w3.org/2000/svg', 'title');\n titleEl.id = this.titleId;\n titleEl.textContent = this.label;\n svgEl.prepend(titleEl);\n svgEl.setAttribute('aria-labelledby', this.titleId);\n }\n } else {\n svgEl.setAttribute('aria-hidden', 'true');\n svgEl.setAttribute('role', 'presentation');\n svgEl.removeAttribute('aria-labelledby');\n svgEl.querySelectorAll('title').forEach((t) => t.remove());\n }\n }\n\n private updateSvgAttributes() {\n if (!this.svgElement) return;\n\n this.applySvgAttributes(this.svgElement);\n }\n\n private updateClasses() {\n return this.composeClass(\n 'icon',\n this.size ? `icon-${this.size}` : '',\n this.color ? `icon-${this.color}` : '',\n // this.background ? `bg-${this.background}` : '',\n this.align ? `align-${this.align}` : '',\n this.padded ? `icon-padded` : '',\n );\n }\n\n private handleSlotChange() {\n const nodes = this.slotEl.assignedNodes({ flatten: true });\n const _svg = nodes.find(\n (node): node is HTMLElement =>\n node.nodeType === Node.ELEMENT_NODE && (node as Element).tagName.toLowerCase() === 'svg',\n );\n\n if (_svg) {\n this.applySvgAttributes(_svg);\n }\n }\n\n render() {\n return html`\n <slot @slotchange=${this.handleSlotChange}>${this.svgElement ? svg`${this.svgElement}` : nothing}</slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'it-icon': ItIcon;\n }\n}\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAs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on.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@12.1.2_rollup@4.42.0_tslib@2.8.1_typescript@5.8.3/node_modules/tslib/tslib.es6.js","../../../globals/dist/src/mixins/validity.js","../../../globals/dist/src/directives/setAttributes.js","../../../i18n/dist/src/index.js","../../../globals/dist/src/utils/logger.js","../../../globals/dist/src/base-component/base-component.js","../../../src/icon-registry.ts","../../../src/it-icon.ts"],"sourcesContent":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise, SuppressedError, Symbol, Iterator */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {\r\n function accept(f) { if (f !== void 0 && typeof f !== \"function\") throw new TypeError(\"Function expected\"); return f; }\r\n var kind = contextIn.kind, key = kind === \"getter\" ? \"get\" : kind === \"setter\" ? \"set\" : \"value\";\r\n var target = !descriptorIn && ctor ? contextIn[\"static\"] ? ctor : ctor.prototype : null;\r\n var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});\r\n var _, done = false;\r\n for (var i = decorators.length - 1; i >= 0; i--) {\r\n var context = {};\r\n for (var p in contextIn) context[p] = p === \"access\" ? {} : contextIn[p];\r\n for (var p in contextIn.access) context.access[p] = contextIn.access[p];\r\n context.addInitializer = function (f) { if (done) throw new TypeError(\"Cannot add initializers after decoration has completed\"); extraInitializers.push(accept(f || null)); };\r\n var result = (0, decorators[i])(kind === \"accessor\" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);\r\n if (kind === \"accessor\") {\r\n if (result === void 0) continue;\r\n if (result === null || typeof result !== \"object\") throw new TypeError(\"Object expected\");\r\n if (_ = accept(result.get)) descriptor.get = _;\r\n if (_ = accept(result.set)) descriptor.set = _;\r\n if (_ = accept(result.init)) initializers.unshift(_);\r\n }\r\n else if (_ = accept(result)) {\r\n if (kind === \"field\") initializers.unshift(_);\r\n else descriptor[key] = _;\r\n }\r\n }\r\n if (target) Object.defineProperty(target, contextIn.name, descriptor);\r\n done = true;\r\n};\r\n\r\nexport function __runInitializers(thisArg, initializers, value) {\r\n var useValue = arguments.length > 2;\r\n for (var i = 0; i < initializers.length; i++) {\r\n value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);\r\n }\r\n return useValue ? value : void 0;\r\n};\r\n\r\nexport function __propKey(x) {\r\n return typeof x === \"symbol\" ? x : \"\".concat(x);\r\n};\r\n\r\nexport function __setFunctionName(f, name, prefix) {\r\n if (typeof name === \"symbol\") name = name.description ? \"[\".concat(name.description, \"]\") : \"\";\r\n return Object.defineProperty(f, \"name\", { configurable: true, value: prefix ? \"\".concat(prefix, \" \", name) : name });\r\n};\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === \"function\" ? Iterator : Object).prototype);\r\n return g.next = verb(0), g[\"throw\"] = verb(1), g[\"return\"] = verb(2), typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (g && (g = 0, op[0] && (_ = 0)), _) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = Object.create((typeof AsyncIterator === \"function\" ? AsyncIterator : Object).prototype), verb(\"next\"), verb(\"throw\"), verb(\"return\", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }\r\n function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nvar ownKeys = function(o) {\r\n ownKeys = Object.getOwnPropertyNames || function (o) {\r\n var ar = [];\r\n for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;\r\n return ar;\r\n };\r\n return ownKeys(o);\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== \"default\") __createBinding(result, mod, k[i]);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n\r\nexport function __addDisposableResource(env, value, async) {\r\n if (value !== null && value !== void 0) {\r\n if (typeof value !== \"object\" && typeof value !== \"function\") throw new TypeError(\"Object expected.\");\r\n var dispose, inner;\r\n if (async) {\r\n if (!Symbol.asyncDispose) throw new TypeError(\"Symbol.asyncDispose is not defined.\");\r\n dispose = value[Symbol.asyncDispose];\r\n }\r\n if (dispose === void 0) {\r\n if (!Symbol.dispose) throw new TypeError(\"Symbol.dispose is not defined.\");\r\n dispose = value[Symbol.dispose];\r\n if (async) inner = dispose;\r\n }\r\n if (typeof dispose !== \"function\") throw new TypeError(\"Object not disposable.\");\r\n if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };\r\n env.stack.push({ value: value, dispose: dispose, async: async });\r\n }\r\n else if (async) {\r\n env.stack.push({ async: true });\r\n }\r\n return value;\r\n\r\n}\r\n\r\nvar _SuppressedError = typeof SuppressedError === \"function\" ? SuppressedError : function (error, suppressed, message) {\r\n var e = new Error(message);\r\n return e.name = \"SuppressedError\", e.error = error, e.suppressed = suppressed, e;\r\n};\r\n\r\nexport function __disposeResources(env) {\r\n function fail(e) {\r\n env.error = env.hasError ? new _SuppressedError(e, env.error, \"An error was suppressed during disposal.\") : e;\r\n env.hasError = true;\r\n }\r\n var r, s = 0;\r\n function next() {\r\n while (r = env.stack.pop()) {\r\n try {\r\n if (!r.async && s === 1) return s = 0, env.stack.push(r), Promise.resolve().then(next);\r\n if (r.dispose) {\r\n var result = r.dispose.call(r.value);\r\n if (r.async) return s |= 2, Promise.resolve(result).then(next, function(e) { fail(e); return next(); });\r\n }\r\n else s |= 1;\r\n }\r\n catch (e) {\r\n fail(e);\r\n }\r\n }\r\n if (s === 1) return env.hasError ? Promise.reject(env.error) : Promise.resolve();\r\n if (env.hasError) throw env.error;\r\n }\r\n return next();\r\n}\r\n\r\nexport function __rewriteRelativeImportExtension(path, preserveJsx) {\r\n if (typeof path === \"string\" && /^\\.\\.?\\//.test(path)) {\r\n return path.replace(/\\.(tsx)$|((?:\\.d)?)((?:\\.[^./]+?)?)\\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {\r\n return tsx ? preserveJsx ? \".jsx\" : \".js\" : d && (!ext || !cm) ? m : (d + ext + \".\" + cm.toLowerCase() + \"js\");\r\n });\r\n }\r\n return path;\r\n}\r\n\r\nexport default {\r\n __extends: __extends,\r\n __assign: __assign,\r\n __rest: __rest,\r\n __decorate: __decorate,\r\n __param: __param,\r\n __esDecorate: __esDecorate,\r\n __runInitializers: __runInitializers,\r\n __propKey: __propKey,\r\n __setFunctionName: __setFunctionName,\r\n __metadata: __metadata,\r\n __awaiter: __awaiter,\r\n __generator: __generator,\r\n __createBinding: __createBinding,\r\n __exportStar: __exportStar,\r\n __values: __values,\r\n __read: __read,\r\n __spread: __spread,\r\n __spreadArrays: __spreadArrays,\r\n __spreadArray: __spreadArray,\r\n __await: __await,\r\n __asyncGenerator: __asyncGenerator,\r\n __asyncDelegator: __asyncDelegator,\r\n __asyncValues: __asyncValues,\r\n __makeTemplateObject: __makeTemplateObject,\r\n __importStar: __importStar,\r\n __importDefault: __importDefault,\r\n __classPrivateFieldGet: __classPrivateFieldGet,\r\n __classPrivateFieldSet: __classPrivateFieldSet,\r\n __classPrivateFieldIn: __classPrivateFieldIn,\r\n __addDisposableResource: __addDisposableResource,\r\n __disposeResources: __disposeResources,\r\n __rewriteRelativeImportExtension: __rewriteRelativeImportExtension,\r\n};\r\n","/**\n * @license\n *\n * Copyright IBM Corp. 2020, 2022\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n/**\n * Form validation status.\n */\nexport var VALIDATION_STATUS;\n(function (VALIDATION_STATUS) {\n /**\n * One indicating no validation error.\n */\n VALIDATION_STATUS[\"NO_ERROR\"] = \"\";\n /**\n * One indicating that the value is invalid (generic).\n */\n VALIDATION_STATUS[\"INVALID\"] = \"invalid\";\n /**\n * One indicating missing required value.\n */\n VALIDATION_STATUS[\"ERROR_REQUIRED\"] = \"required\";\n /**\n * One indicating that the value does not match the pattern.\n */\n VALIDATION_STATUS[\"PATTERN\"] = \"pattern\";\n /**\n * One indicating that the value is shorter than the minimum length.\n */\n VALIDATION_STATUS[\"MINLENGTH\"] = \"minlength\";\n /**\n * One indicating that the value is less than the maximum length.\n */\n VALIDATION_STATUS[\"MAXLENGTH\"] = \"maxlength\";\n})(VALIDATION_STATUS || (VALIDATION_STATUS = {}));\n/**\n * @param Base The base class.\n * @returns A mix-in implementing `.setCustomValidity()` method.\n */\nconst ValidityMixin = (Base) => {\n class ValidityMixinImpl extends Base {\n constructor() {\n super(...arguments);\n /**\n * Field is touched\n */\n this._touched = false;\n }\n // Not using TypeScript `protected` due to: microsoft/TypeScript#17744\n // Using `string` instead of `VALIDATION_STATUS` until we can require TypeScript 3.8\n /**\n * @param state The form validation status.\n * @returns The form validation error mesasages associated with the given status.\n * @protected\n */\n _getValidityMessage(state, translations) {\n return {\n [VALIDATION_STATUS.NO_ERROR]: '',\n [VALIDATION_STATUS.INVALID]: translations[VALIDATION_STATUS.INVALID],\n [VALIDATION_STATUS.ERROR_REQUIRED]: translations[VALIDATION_STATUS.ERROR_REQUIRED],\n [VALIDATION_STATUS.PATTERN]: translations[VALIDATION_STATUS.PATTERN],\n [VALIDATION_STATUS.MINLENGTH]: translations[VALIDATION_STATUS.MINLENGTH].replace('{minlength}', this.minlength.toString()),\n [VALIDATION_STATUS.MAXLENGTH]: translations[VALIDATION_STATUS.MAXLENGTH].replace('{maxlength}', this.maxlength.toString()),\n }[state];\n }\n /**\n * Checks if the value meets the constraints.\n *\n * @returns `true` if the value meets the constraints. `false` otherwise.\n */\n _checkValidity(translations, htmlValidity = true) {\n // htmlValidity = this.inputElement.checkValidity(); //check browser validity\n if (this.customValidation) {\n return undefined;\n }\n let validity = htmlValidity;\n let message = validity\n ? this._getValidityMessage(VALIDATION_STATUS.NO_ERROR, translations)\n : this._getValidityMessage(VALIDATION_STATUS.INVALID, translations);\n if (this.required || (this._value && (this.pattern || this.minlength > 0 || this.maxlength > 0))) {\n if (this.pattern) {\n const regex = new RegExp(`^${this.pattern}$`, 'u');\n validity = regex.test(this._value.toString());\n if (!validity) {\n message = this._getValidityMessage(VALIDATION_STATUS.PATTERN, translations);\n }\n }\n if (typeof this.minlength !== 'undefined' && this.minlength > 0) {\n validity = validity && this._value.toString().length >= this.minlength;\n if (!validity) {\n message = this._getValidityMessage(VALIDATION_STATUS.MINLENGTH, translations);\n }\n }\n if (typeof this.maxlength !== 'undefined' && this.maxlength > 0) {\n validity = validity && this._value.toString().length <= this.maxlength;\n if (!validity) {\n message = this._getValidityMessage(VALIDATION_STATUS.MAXLENGTH, translations);\n }\n }\n if (this.required && !this._value) {\n validity = false;\n message = this._getValidityMessage(VALIDATION_STATUS.ERROR_REQUIRED, translations);\n }\n }\n this.invalid = !validity;\n this.validityMessage = message;\n return validity;\n }\n /**\n * Sets the given custom validity message.\n *\n * @param validityMessage The custom validity message\n */\n setCustomValidity(validityMessage) {\n this.invalid = Boolean(validityMessage);\n this.validityMessage = validityMessage;\n }\n _handleBlur() {\n this._touched = true;\n this.dispatchEvent(new FocusEvent('blur', { bubbles: true, composed: true }));\n }\n _handleFocus() {\n this.dispatchEvent(new FocusEvent('focus', { bubbles: true, composed: true }));\n }\n _handleClick() {\n this.dispatchEvent(new MouseEvent('click', { bubbles: true, composed: true }));\n }\n _handleChange(e) {\n const target = e.target;\n let value;\n if (target instanceof HTMLInputElement) {\n switch (target.type) {\n case 'checkbox':\n case 'radio':\n value = target.checked;\n break;\n case 'file':\n value = target.files; // FileList\n break;\n default:\n value = target.value;\n }\n }\n else if (target instanceof HTMLSelectElement) {\n if (target.multiple) {\n value = Array.from(target.selectedOptions).map((o) => o.value);\n }\n else {\n value = target.value;\n }\n }\n else {\n // textarea o altri input con value\n value = target.value;\n }\n this.dispatchEvent(new CustomEvent('change', {\n detail: { value, el: target },\n bubbles: true,\n composed: true,\n }));\n }\n }\n return ValidityMixinImpl;\n};\nexport default ValidityMixin;\n//# sourceMappingURL=validity.js.map","import { directive, Directive } from 'lit/directive.js';\nclass SetAttributesDirective extends Directive {\n update(part, [attributes]) {\n const el = part.element;\n for (const [name, value] of Object.entries(attributes)) {\n if (value != null)\n el.setAttribute(name, value);\n else\n el.removeAttribute(name);\n }\n return null;\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n render(_attributes) {\n return null;\n }\n}\n/* How to use:\n\n<textarea ${setAttributes(this._ariaAttributes)} ... />\n*/\nconst setAttributes = directive(SetAttributesDirective);\nexport default setAttributes;\n//# sourceMappingURL=setAttributes.js.map","const connectedElements = new Set();\nif (window && !window.translations) {\n window.translations = new Map();\n}\nconst { translations } = window;\nlet fallback;\n// TODO: We need some way for users to be able to set these on the server.\nlet documentDirection = 'ltr';\n// Fallback for server.\nlet documentLanguage = 'en';\nconst isClient = typeof MutationObserver !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.documentElement !== 'undefined';\n/** Updates all localized elements that are currently connected */\nfunction update() {\n if (isClient) {\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n }\n [...connectedElements.keys()].forEach((el) => {\n const litEl = el;\n if (typeof litEl.requestUpdate === 'function') {\n litEl.requestUpdate();\n }\n });\n}\nif (isClient) {\n const documentElementObserver = new MutationObserver(update);\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n // Watch for changes on <html lang>\n documentElementObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['dir', 'lang'],\n });\n}\n/** Registers one or more translations */\nfunction registerTranslation(...translation) {\n translation.forEach((t) => {\n const code = t.$code.toLowerCase();\n if (translations.has(code)) {\n // Merge translations that share the same language code\n translations.set(code, { ...translations.get(code), ...t });\n }\n else {\n translations.set(code, t);\n }\n // The first translation that's registered is the fallback\n if (!fallback) {\n fallback = t;\n }\n });\n update();\n}\nwindow.registerTranslation = registerTranslation;\n/**\n * Localize Reactive Controller for components built with Lit\n *\n * To use this controller, import the class and instantiate it in a custom element constructor:\n *\n * private localize = new LocalizeController(this);\n *\n * This will add the element to the set and make it respond to changes to <html dir|lang> automatically. To make it\n * respond to changes to its own dir|lang properties, make it a property:\n *\n * @property() dir: string;\n * @property() lang: string;\n *\n * To use a translation method, call it like this:\n *\n * ${this.localize.term('term_key_here')}\n * ${this.localize.date('2021-12-03')}\n * ${this.localize.number(1000000)}\n */\nclass LocalizeController {\n constructor(host) {\n this.host = host;\n this.host.addController(this);\n }\n hostConnected() {\n connectedElements.add(this.host);\n }\n hostDisconnected() {\n connectedElements.delete(this.host);\n }\n /**\n * Gets the host element's directionality as determined by the `dir` attribute. The return value is transformed to\n * lowercase.\n */\n dir() {\n return `${this.host.dir || documentDirection}`.toLowerCase();\n }\n /**\n * Gets the host element's language as determined by the `lang` attribute. The return value is transformed to\n * lowercase.\n */\n lang() {\n return `${this.host.lang || documentLanguage}`.toLowerCase();\n }\n // eslint-disable-next-line class-methods-use-this\n getTranslationData(lang) {\n // Convert \"en_US\" to \"en-US\". Note that both underscores and dashes are allowed per spec, but underscores result in\n // a RangeError by the call to `new Intl.Locale()`. See: https://unicode.org/reports/tr35/#unicode-locale-identifier\n const locale = new Intl.Locale(lang.replace(/_/g, '-'));\n const language = locale?.language.toLowerCase();\n const region = locale?.region?.toLowerCase() ?? '';\n const primary = translations.get(`${language}-${region}`);\n const secondary = translations.get(language);\n return { locale, language, region, primary, secondary };\n }\n /** Determines if the specified term exists, optionally checking the fallback translation. */\n exists(key, options) {\n const { primary, secondary } = this.getTranslationData(options.lang ?? this.lang());\n const mergedOptions = {\n includeFallback: false,\n ...options,\n };\n if ((primary && primary[key]) ||\n (secondary && secondary[key]) ||\n (mergedOptions.includeFallback && fallback && fallback[key])) {\n return true;\n }\n return false;\n }\n /** Outputs a translated term. */\n term(key, ...args) {\n const { primary, secondary } = this.getTranslationData(this.lang());\n let term;\n // Look for a matching term using regionCode, code, then the fallback\n if (primary && primary[key]) {\n term = primary[key];\n }\n else if (secondary && secondary[key]) {\n term = secondary[key];\n }\n else if (fallback && fallback[key]) {\n term = fallback[key];\n }\n else {\n // eslint-disable-next-line no-console\n console.error(`No translation found for: ${String(key)}`);\n return String(key);\n }\n if (typeof term === 'function') {\n return term(...args);\n }\n return term;\n }\n /** Outputs a localized date in the specified format. */\n date(dateToFormat, options) {\n const date = new Date(dateToFormat);\n return new Intl.DateTimeFormat(this.lang(), options).format(date);\n }\n /** Outputs a localized number in the specified format. */\n number(numberToFormat, options) {\n const num = Number(numberToFormat);\n return Number.isNaN(num) ? '' : new Intl.NumberFormat(this.lang(), options).format(num);\n }\n /** Outputs a localized time in relative format. */\n relativeTime(value, unit, options) {\n return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);\n }\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing `localizations` method.\n *\n *@example\n * <!-- Terms -->\n ${this.$localize.term('hello')}\n or\n ${this.$t('hello')}\n\n <!-- Dates -->\n ${this.$localize.date('2021-09-15 14:00:00 ET', { month: 'long', day: 'numeric', year: 'numeric' })}\n or\n ${this.$d('2021-09-15 14:00:00 ET', { month: 'long', day: 'numeric', year: 'numeric' })}\n\n <!-- Numbers/currency -->\n ${this.$localize.number(1000, { style: 'currency', currency: 'USD'})}\n or\n ${this.$n(1000,{ style: 'currency', currency: 'USD'})}\n\n <!-- Determining language -->\n ${this.$localize.lang()}\n\n <!-- Determining directionality, e.g. 'ltr' or 'rtl' -->\n ${this.$localize.dir()}\n\n\n *** HOW TO DEFINE TRANSLATIONS: ***\n // Simple terms\n upload: 'Upload',\n\n // Terms with placeholders\n greetUser: (name: string) => `Hello, ${name}!`,\n\n // Plurals\n numFilesSelected: (count: number) => {\n if (count === 0) return 'No files selected';\n if (count === 1) return '1 file selected';\n return `${count} files selected`;\n }\n */\nconst LocalizeMixin = (Base) => class extends Base {\n constructor() {\n super(...arguments);\n this.localize = new LocalizeController(this);\n // Provide default values to avoid definite assignment errors and avoid decorators\n this.dir = '';\n this.lang = '';\n }\n /**\n * Restituisce tutta l'utility di traduzione\n *\n\n *\n * @returns tutta l'utility di traduzione\n *\n * @example\n * this.$localize.lang() -> ritorna la lingua corrente\n * this.$localize.dir() -> ritorna la direzione della lingua corrente\n */\n get $localize() {\n return this.localize;\n }\n /**\n * Restituisce una stringa localizzata a partire da una chiave di termine.\n *\n * Utilizza il `LocalizeController` per accedere al dizionario corrente e\n * tradurre la chiave fornita secondo la lingua attiva.\n *\n * @param t - La chiave del termine da localizzare (es. 'hello', 'submit', ecc.).\n * @returns La stringa tradotta in base alla lingua attiva. Se la chiave non è trovata, restituisce la chiave stessa.\n *\n * @example\n * this.$t('hello'); // → \"Ciao\" (in locale it-IT)\n */\n $t(t) {\n // format term\n return this.localize.term(t);\n }\n /**\n * Formatta una data in base alla localizzazione attiva.\n *\n * Utilizza il `LocalizeController` per restituire una stringa localizzata\n * secondo le opzioni fornite (es. mese esteso, anno, ecc.).\n *\n * @param n - La data da formattare come stringa compatibile (es. ISO o con timezone, es. '2021-09-15 14:00:00 ET').\n * @param p - Le opzioni di formattazione per `Intl.DateTimeFormat` (es. { year: 'numeric', month: 'long', day: 'numeric' }).\n * @returns Una stringa rappresentante la data formattata secondo la localizzazione attiva.\n *\n * @example\n * this.$d('2021-09-15 14:00:00 ET', { year: 'numeric', month: 'long', day: 'numeric' });\n * // → \"15 settembre 2021\" (in locale it-IT)\n */\n $d(d, p) {\n // format date\n return this.localize.date(d, p);\n }\n /**\n * Formatta un numero secondo le impostazioni locali dell'utente corrente.\n *\n * Utilizza il `LocalizeController` per applicare formattazione numerica,\n * incluse opzioni come separatori, decimali, valute, ecc.\n *\n * @param d - Il numero da formattare.\n * @param p - Le opzioni di formattazione (es. { style: 'currency', currency: 'EUR' }).\n * @returns Una stringa rappresentante il numero formattato secondo la localizzazione attiva.\n *\n * @example\n * this.$n(1234.56, { style: 'currency', currency: 'USD' }); // → \"$1,234.56\" (in locale en-US)\n */\n $n(d, p) {\n return this.localize.number(d, p);\n }\n};\n// export interface LocalizedComponent {\n// $t(t: string): string;\n// $d(d: Date | string, p?: Intl.DateTimeFormatOptions): string;\n// $n(n: number, p?: Intl.NumberFormatOptions): string;\n// $localize: LocalizeController;\n// }\n\nexport { LocalizeController, LocalizeMixin, registerTranslation };\n//# sourceMappingURL=index.js.map\n","/* eslint-disable no-console */\nexport class Logger {\n constructor(tag) {\n this.tag = tag;\n }\n format(level, msg) {\n return [`[${this.tag}] ${msg}`];\n }\n warn(msg) {\n console.warn(...this.format('warn', msg));\n }\n error(msg) {\n console.error(...this.format('error', msg));\n }\n info(msg) {\n console.info(...this.format('info', msg));\n }\n}\n//# sourceMappingURL=logger.js.map","import { LitElement } from 'lit';\nimport { LocalizeMixin } from '@italia/i18n';\nimport { Logger } from '../utils/logger.js';\n/**\n * Factory function per creare una base class estendibile\n * con stili personalizzati.\n */\nexport class BaseComponent extends LitElement {\n constructor() {\n super();\n this._ariaAttributes = {}; // tutti gli attributi aria-* passati al Web component\n this.logger = new Logger(this.tagName.toLowerCase());\n }\n // eslint-disable-next-line class-methods-use-this\n generateId(prefix) {\n return `${prefix}-${Math.random().toString(36).slice(2)}`;\n }\n // eslint-disable-next-line class-methods-use-this, @typescript-eslint/no-unused-vars\n addFocus(element) {\n // new TrackFocus(element); // per il momento è stato disattivato perchè ci sono le pseudo classi ::focus-visible per fare quello che fa TrackFocus. Si possono aggiungere regole css in bsi-italia 3 dato che stiamo facendo una breaking release di bsi.\n }\n // eslint-disable-next-line class-methods-use-this\n composeClass(...classes) {\n let composedClass = '';\n classes\n .filter((c) => c.length > 0)\n .forEach((newClass) => {\n composedClass += ` ${newClass}`;\n });\n return composedClass.trim();\n }\n getAriaAttributes() {\n for (const attr of this.getAttributeNames()) {\n if (attr.startsWith('aria-')) {\n this._ariaAttributes[attr] = this.getAttribute(attr);\n }\n }\n }\n connectedCallback() {\n super.connectedCallback?.();\n this.getAriaAttributes();\n // generate internal _id\n const prefix = this.id?.length > 0 ? this.id : this.tagName.toLowerCase();\n this._id = this.generateId(prefix);\n }\n}\nexport const BaseLocalizedComponent = LocalizeMixin(BaseComponent);\n//# sourceMappingURL=base-component.js.map","// 🛑 AUTO-GENERATED FILE — do not edit manually!\nexport type IconLoader = () => Promise<{ default: string }>;\n\nexport const registry = {\n 'it-android-square': () => import('./icons/it-android-square.js'),\n 'it-android': () => import('./icons/it-android.js'),\n 'it-apple-square': () => import('./icons/it-apple-square.js'),\n 'it-apple': () => import('./icons/it-apple.js'),\n 'it-arrow-down-circle': () => import('./icons/it-arrow-down-circle.js'),\n 'it-arrow-down-triangle': () => import('./icons/it-arrow-down-triangle.js'),\n 'it-arrow-down': () => import('./icons/it-arrow-down.js'),\n 'it-arrow-left-circle': () => import('./icons/it-arrow-left-circle.js'),\n 'it-arrow-left-triangle': () => import('./icons/it-arrow-left-triangle.js'),\n 'it-arrow-left': () => import('./icons/it-arrow-left.js'),\n 'it-arrow-right-circle': () => import('./icons/it-arrow-right-circle.js'),\n 'it-arrow-right-triangle': () => import('./icons/it-arrow-right-triangle.js'),\n 'it-arrow-right': () => import('./icons/it-arrow-right.js'),\n 'it-arrow-up-circle': () => import('./icons/it-arrow-up-circle.js'),\n 'it-arrow-up-triangle': () => import('./icons/it-arrow-up-triangle.js'),\n 'it-arrow-up': () => import('./icons/it-arrow-up.js'),\n 'it-ban': () => import('./icons/it-ban.js'),\n 'it-behance': () => import('./icons/it-behance.js'),\n 'it-bluesky': () => import('./icons/it-bluesky.js'),\n 'it-bookmark': () => import('./icons/it-bookmark.js'),\n 'it-box': () => import('./icons/it-box.js'),\n 'it-burger': () => import('./icons/it-burger.js'),\n 'it-calendar': () => import('./icons/it-calendar.js'),\n 'it-camera': () => import('./icons/it-camera.js'),\n 'it-car': () => import('./icons/it-car.js'),\n 'it-card': () => import('./icons/it-card.js'),\n 'it-cart': () => import('./icons/it-cart.js'),\n 'it-chart-line': () => import('./icons/it-chart-line.js'),\n 'it-check-circle': () => import('./icons/it-check-circle.js'),\n 'it-check': () => import('./icons/it-check.js'),\n 'it-chevron-left': () => import('./icons/it-chevron-left.js'),\n 'it-chevron-right': () => import('./icons/it-chevron-right.js'),\n 'it-clip': () => import('./icons/it-clip.js'),\n 'it-clock': () => import('./icons/it-clock.js'),\n 'it-close-big': () => import('./icons/it-close-big.js'),\n 'it-close-circle': () => import('./icons/it-close-circle.js'),\n 'it-close': () => import('./icons/it-close.js'),\n 'it-code-circle': () => import('./icons/it-code-circle.js'),\n 'it-collapse': () => import('./icons/it-collapse.js'),\n 'it-comment': () => import('./icons/it-comment.js'),\n 'it-copy': () => import('./icons/it-copy.js'),\n 'it-delete': () => import('./icons/it-delete.js'),\n 'it-designers-italia': () => import('./icons/it-designers-italia.js'),\n 'it-download': () => import('./icons/it-download.js'),\n 'it-error': () => import('./icons/it-error.js'),\n 'it-exchange-circle': () => import('./icons/it-exchange-circle.js'),\n 'it-expand': () => import('./icons/it-expand.js'),\n 'it-external-link': () => import('./icons/it-external-link.js'),\n 'it-facebook-square': () => import('./icons/it-facebook-square.js'),\n 'it-facebook': () => import('./icons/it-facebook.js'),\n 'it-figma-square': () => import('./icons/it-figma-square.js'),\n 'it-figma': () => import('./icons/it-figma.js'),\n 'it-file-audio': () => import('./icons/it-file-audio.js'),\n 'it-file-compressed': () => import('./icons/it-file-compressed.js'),\n 'it-file-csv': () => import('./icons/it-file-csv.js'),\n 'it-file-docx': () => import('./icons/it-file-docx.js'),\n 'it-file-image': () => import('./icons/it-file-image.js'),\n 'it-file-json': () => import('./icons/it-file-json.js'),\n 'it-file-odp': () => import('./icons/it-file-odp.js'),\n 'it-file-ods': () => import('./icons/it-file-ods.js'),\n 'it-file-odt': () => import('./icons/it-file-odt.js'),\n 'it-file-pdf-ext': () => import('./icons/it-file-pdf-ext.js'),\n 'it-file-pdf': () => import('./icons/it-file-pdf.js'),\n 'it-file-ppt': () => import('./icons/it-file-ppt.js'),\n 'it-file-sheet': () => import('./icons/it-file-sheet.js'),\n 'it-file-signed': () => import('./icons/it-file-signed.js'),\n 'it-file-slides': () => import('./icons/it-file-slides.js'),\n 'it-file-txt': () => import('./icons/it-file-txt.js'),\n 'it-file-video': () => import('./icons/it-file-video.js'),\n 'it-file-xlsx': () => import('./icons/it-file-xlsx.js'),\n 'it-file-xml': () => import('./icons/it-file-xml.js'),\n 'it-file': () => import('./icons/it-file.js'),\n 'it-files': () => import('./icons/it-files.js'),\n 'it-flag': () => import('./icons/it-flag.js'),\n 'it-flickr-square': () => import('./icons/it-flickr-square.js'),\n 'it-flickr': () => import('./icons/it-flickr.js'),\n 'it-folder': () => import('./icons/it-folder.js'),\n 'it-fullscreen': () => import('./icons/it-fullscreen.js'),\n 'it-funnel': () => import('./icons/it-funnel.js'),\n 'it-github': () => import('./icons/it-github.js'),\n 'it-google': () => import('./icons/it-google.js'),\n 'it-hearing': () => import('./icons/it-hearing.js'),\n 'it-help-circle': () => import('./icons/it-help-circle.js'),\n 'it-help': () => import('./icons/it-help.js'),\n 'it-horn': () => import('./icons/it-horn.js'),\n 'it-inbox': () => import('./icons/it-inbox.js'),\n 'it-info-circle': () => import('./icons/it-info-circle.js'),\n 'it-instagram': () => import('./icons/it-instagram.js'),\n 'it-key': () => import('./icons/it-key.js'),\n 'it-less-circle': () => import('./icons/it-less-circle.js'),\n 'it-link': () => import('./icons/it-link.js'),\n 'it-linkedin-square': () => import('./icons/it-linkedin-square.js'),\n 'it-linkedin': () => import('./icons/it-linkedin.js'),\n 'it-list': () => import('./icons/it-list.js'),\n 'it-lock': () => import('./icons/it-lock.js'),\n 'it-locked': () => import('./icons/it-locked.js'),\n 'it-logout': () => import('./icons/it-logout.js'),\n 'it-mail-open': () => import('./icons/it-mail-open.js'),\n 'it-mail': () => import('./icons/it-mail.js'),\n 'it-map-marker-circle': () => import('./icons/it-map-marker-circle.js'),\n 'it-map-marker-minus': () => import('./icons/it-map-marker-minus.js'),\n 'it-map-marker-plus': () => import('./icons/it-map-marker-plus.js'),\n 'it-map-marker': () => import('./icons/it-map-marker.js'),\n 'it-mastodon-square': () => import('./icons/it-mastodon-square.js'),\n 'it-mastodon': () => import('./icons/it-mastodon.js'),\n 'it-maximize-alt': () => import('./icons/it-maximize-alt.js'),\n 'it-maximize': () => import('./icons/it-maximize.js'),\n 'it-medium-square': () => import('./icons/it-medium-square.js'),\n 'it-medium': () => import('./icons/it-medium.js'),\n 'it-minimize': () => import('./icons/it-minimize.js'),\n 'it-minus-circle': () => import('./icons/it-minus-circle.js'),\n 'it-minus': () => import('./icons/it-minus.js'),\n 'it-moodle-square': () => import('./icons/it-moodle-square.js'),\n 'it-moodle': () => import('./icons/it-moodle.js'),\n 'it-more-actions': () => import('./icons/it-more-actions.js'),\n 'it-more-items': () => import('./icons/it-more-items.js'),\n 'it-note': () => import('./icons/it-note.js'),\n 'it-open-source': () => import('./icons/it-open-source.js'),\n 'it-pa': () => import('./icons/it-pa.js'),\n 'it-password-invisible': () => import('./icons/it-password-invisible.js'),\n 'it-password-visible': () => import('./icons/it-password-visible.js'),\n 'it-pencil': () => import('./icons/it-pencil.js'),\n 'it-piattaforme': () => import('./icons/it-piattaforme.js'),\n 'it-pin': () => import('./icons/it-pin.js'),\n 'it-pinterest-square': () => import('./icons/it-pinterest-square.js'),\n 'it-pinterest': () => import('./icons/it-pinterest.js'),\n 'it-plug': () => import('./icons/it-plug.js'),\n 'it-plus-circle': () => import('./icons/it-plus-circle.js'),\n 'it-plus': () => import('./icons/it-plus.js'),\n 'it-presentation': () => import('./icons/it-presentation.js'),\n 'it-print': () => import('./icons/it-print.js'),\n 'it-quora-square': () => import('./icons/it-quora-square.js'),\n 'it-quora': () => import('./icons/it-quora.js'),\n 'it-reddit-square': () => import('./icons/it-reddit-square.js'),\n 'it-reddit': () => import('./icons/it-reddit.js'),\n 'it-refresh': () => import('./icons/it-refresh.js'),\n 'it-restore': () => import('./icons/it-restore.js'),\n 'it-rss-square': () => import('./icons/it-rss-square.js'),\n 'it-rss': () => import('./icons/it-rss.js'),\n 'it-search': () => import('./icons/it-search.js'),\n 'it-settings': () => import('./icons/it-settings.js'),\n 'it-share': () => import('./icons/it-share.js'),\n 'it-sign': () => import('./icons/it-sign.js'),\n 'it-slack-square': () => import('./icons/it-slack-square.js'),\n 'it-slack': () => import('./icons/it-slack.js'),\n 'it-snapchat-square': () => import('./icons/it-snapchat-square.js'),\n 'it-snapchat': () => import('./icons/it-snapchat.js'),\n 'it-software': () => import('./icons/it-software.js'),\n 'it-spotify': () => import('./icons/it-spotify.js'),\n 'it-stackexchange-square': () => import('./icons/it-stackexchange-square.js'),\n 'it-stackexchange': () => import('./icons/it-stackexchange.js'),\n 'it-stackoverflow-square': () => import('./icons/it-stackoverflow-square.js'),\n 'it-stackoverflow': () => import('./icons/it-stackoverflow.js'),\n 'it-star-full': () => import('./icons/it-star-full.js'),\n 'it-star-outline': () => import('./icons/it-star-outline.js'),\n 'it-team-digitale': () => import('./icons/it-team-digitale.js'),\n 'it-telegram': () => import('./icons/it-telegram.js'),\n 'it-telephone': () => import('./icons/it-telephone.js'),\n 'it-threads-square': () => import('./icons/it-threads-square.js'),\n 'it-threads': () => import('./icons/it-threads.js'),\n 'it-tiktok-square': () => import('./icons/it-tiktok-square.js'),\n 'it-tiktok': () => import('./icons/it-tiktok.js'),\n 'it-tool': () => import('./icons/it-tool.js'),\n 'it-twitter-square': () => import('./icons/it-twitter-square.js'),\n 'it-twitter': () => import('./icons/it-twitter.js'),\n 'it-unlocked': () => import('./icons/it-unlocked.js'),\n 'it-upload': () => import('./icons/it-upload.js'),\n 'it-user': () => import('./icons/it-user.js'),\n 'it-video': () => import('./icons/it-video.js'),\n 'it-vimeo-square': () => import('./icons/it-vimeo-square.js'),\n 'it-vimeo': () => import('./icons/it-vimeo.js'),\n 'it-warning-circle': () => import('./icons/it-warning-circle.js'),\n 'it-warning': () => import('./icons/it-warning.js'),\n 'it-whatsapp-square': () => import('./icons/it-whatsapp-square.js'),\n 'it-whatsapp': () => import('./icons/it-whatsapp.js'),\n 'it-wifi': () => import('./icons/it-wifi.js'),\n 'it-youtube': () => import('./icons/it-youtube.js'),\n 'it-zoom-in': () => import('./icons/it-zoom-in.js'),\n 'it-zoom-out': () => import('./icons/it-zoom-out.js')\n} as const;\n\nexport type AvailableIcons = keyof typeof registry;\n\n/**\n * Get a dynamic icon loader by name.\n */\nexport const getIcon = (name: AvailableIcons): IconLoader | undefined =>\n registry[name];","import { BaseComponent } from '@italia/globals';\nimport { html, PropertyValues, nothing, svg } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { getIcon, type AvailableIcons } from './icon-registry.js';\nimport { type Colors, type Sizes, type Alignments } from './types.js';\nimport styles from './icon.scss';\n\n@customElement('it-icon')\nexport class ItIcon extends BaseComponent {\n static styles = styles;\n\n @property({ type: String, reflect: true }) size?: Sizes;\n\n @property({ type: String }) name?: AvailableIcons;\n\n @property({ type: String, reflect: true }) color?: Colors;\n\n // @property({ type: String }) background?: Colors;\n\n @property({ type: String, reflect: true }) align?: Alignments = 'middle';\n\n @property({ type: String, reflect: true }) label = '';\n\n @property({ type: Boolean, reflect: true }) padded = false;\n\n @property({ type: String, reflect: true }) src?: string;\n\n @state() private svgElement?: HTMLElement;\n\n @query('slot')\n private slotEl!: HTMLSlotElement;\n\n private titleId?: string;\n\n override async updated(changedProps: PropertyValues<this>) {\n if (changedProps.has('name') && this.name) {\n const loader = getIcon(this.name);\n if (loader) {\n const raw = (await loader()).default;\n this.parseAndStoreSvg(raw);\n }\n }\n\n if (changedProps.has('src') && this.src) {\n await this.loadSvgFromUrl(this.src);\n }\n\n if (changedProps.has('label')) {\n this.handleTitleId();\n }\n\n if (\n changedProps.has('label') ||\n changedProps.has('size') ||\n changedProps.has('color') ||\n // changedProps.has('background') ||\n changedProps.has('padded') ||\n changedProps.has('role') ||\n changedProps.has('align')\n ) {\n this.updateSvgAttributes();\n }\n }\n\n private handleTitleId() {\n if (this.label) {\n if (!this.titleId) {\n this.titleId = `icon-label-${crypto.randomUUID()}`;\n }\n } else {\n this.titleId = undefined;\n }\n }\n\n private async loadSvgFromUrl(url: string) {\n try {\n const res = await fetch(url);\n if (!res.ok) throw new Error(`Failed to load SVG from ${url} (status: ${res.status})`);\n\n const raw = await res.text();\n this.parseAndStoreSvg(raw);\n } catch (e) {\n this.svgElement = undefined;\n this.announceSvgLoadError();\n }\n }\n\n private announceSvgLoadError(): void {\n this.dispatchEvent(\n new Event('error', {\n bubbles: false,\n composed: false,\n cancelable: false,\n }),\n );\n }\n\n private parseAndStoreSvg(raw: string) {\n const parser = new DOMParser();\n const doc = parser.parseFromString(raw, 'image/svg+xml');\n const _svg = doc.documentElement;\n this.svgElement = _svg;\n this.updateSvgAttributes();\n }\n\n private applySvgAttributes(svgEl: HTMLElement) {\n svgEl.removeAttribute('width');\n svgEl.removeAttribute('height');\n\n const classList = this.updateClasses();\n\n svgEl.setAttribute('class', classList);\n svgEl.setAttribute('part', 'icon');\n\n // Accessibility logic:\n // - If a `label` is provided:\n // - The icon is accessible to assistive technologies.\n // - Remove aria-hidden attribute if it exists\n // - Sets `role=\"img\"` to indicate the SVG is an image.\n // - Adds a <title> element with the label text inside the SVG.\n // - Sets `aria-labelledby` to reference the <title> for screen readers.\n // - If no `label` is provided:\n // - The icon is treated as decorative and ignored by assistive technologies.\n // - Sets `aria-hidden=\"true\".\n // - Sets `role=\"presentation\"` to indicate the SVG is purely decorative.\n // - Removes any <title> and `aria-labelledby` attributes from the SVG.\n if (this.label) {\n svgEl.removeAttribute('aria-hidden');\n svgEl.setAttribute('role', 'img');\n\n // Remove previous title/aria-labelledby\n svgEl.removeAttribute('aria-labelledby');\n svgEl.querySelectorAll('title').forEach((t) => t.remove());\n\n // Add title and aria-labelledby for screen readers\n if (this.titleId) {\n const titleEl = document.createElementNS('http://www.w3.org/2000/svg', 'title');\n titleEl.id = this.titleId;\n titleEl.textContent = this.label;\n svgEl.prepend(titleEl);\n svgEl.setAttribute('aria-labelledby', this.titleId);\n }\n } else {\n svgEl.setAttribute('aria-hidden', 'true');\n svgEl.setAttribute('role', 'presentation');\n svgEl.removeAttribute('aria-labelledby');\n svgEl.querySelectorAll('title').forEach((t) => t.remove());\n }\n }\n\n private updateSvgAttributes() {\n if (!this.svgElement) return;\n\n this.applySvgAttributes(this.svgElement);\n }\n\n private updateClasses() {\n return this.composeClass(\n 'icon',\n this.size ? `icon-${this.size}` : '',\n this.color ? `icon-${this.color}` : '',\n // this.background ? `bg-${this.background}` : '',\n this.align ? `align-${this.align}` : '',\n this.padded ? `icon-padded` : '',\n );\n }\n\n private handleSlotChange() {\n const nodes = this.slotEl.assignedNodes({ flatten: true });\n const _svg = nodes.find(\n (node): node is HTMLElement =>\n node.nodeType === Node.ELEMENT_NODE && (node as Element).tagName.toLowerCase() === 'svg',\n );\n\n if (_svg) {\n this.applySvgAttributes(_svg);\n }\n }\n\n render() {\n return html`\n <slot @slotchange=${this.handleSlotChange}>${this.svgElement ? svg`${this.svgElement}` : nothing}</slot>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'it-icon': ItIcon;\n }\n}\n"],"names":[],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAsCA;AACO,SAAS,UAAU,CAAC,UAAU,EAAE,MAAM,EAA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,MAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAGlC,UAAA,CAAA;IADP,KAAK,CAAC,MAAM,CAAC;8BACG,eAAe;AAAC,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAtBtB,MAAM,GAAA,UAAA,CAAA;IADlB,aAAa,CAAC,SAAS;AACX,CAAA,EAAA,MAAM,CAgLlB;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/icon",
3
3
  "description": "Web component it-icon del Design system .italia",
4
- "version": "0.0.1-alpha.0",
4
+ "version": "0.1.0-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -37,7 +37,7 @@
37
37
  "dependencies": {
38
38
  "bootstrap-italia": "github:italia/bootstrap-italia#3f5dafbd16d608fe706780952aeb1f5ae20e447e",
39
39
  "lit": "^3.3.0",
40
- "@italia/globals": "^0.0.1-alpha.0"
40
+ "@italia/globals": "^0.1.0-alpha.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@custom-elements-manifest/analyzer": "^0.10.3",
@@ -1,25 +1,4 @@
1
1
  it-icon {
2
- // @extend .icon;
3
- --bs-it-icon-size: var(--bs-icon-size-m);
4
-
5
- &[size='xl'] {
6
- --bs-it-icon-size: var(--bs-icon-size-xl);
7
- }
8
-
9
- &[size='lg'] {
10
- --bs-it-icon-size: var(--bs-icon-size-l);
11
- }
12
-
13
- &[size='sm'] {
14
- --bs-it-icon-size: var(--bs-icon-size-sm);
15
- }
16
-
17
- &[size='xs'] {
18
- --bs-it-icon-size: var(--bs-icon-size-xs);
19
- }
20
-
21
- width: var(--bs-it-icon-size);
22
- height: var(--bs-it-icon-size);
23
2
  line-height: 0;
24
3
  }
25
4