@italia/modal 1.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTHORS +3 -0
- package/LICENSE +11 -0
- package/README.md +59 -0
- package/custom-elements.json +1028 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/it-modal.d.ts +78 -0
- package/dist/src/it-modal.d.ts.map +1 -0
- package/dist/src/it-modal.js +3160 -0
- package/dist/src/it-modal.js.map +1 -0
- package/dist/src/types.d.ts +11 -0
- package/dist/src/types.d.ts.map +1 -0
- package/package.json +74 -0
- package/styles/globals.scss +33 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"it-modal.js","sources":["../../../../node_modules/.pnpm/@rollup+plugin-typescript@12.3.0_rollup@4.59.0_tslib@2.8.1_typescript@5.9.3/node_modules/tslib/tslib.es6.js","../../../globals/dist/src/directives/setAttributes.js","../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../../../i18n/dist/src/index.js","../../../globals/dist/src/utils/logger.js","../../../globals/dist/src/base-component/base-component.js","../../../globals/dist/src/controllers/focus-trap-controller.js","../../../globals/dist/src/form/form-controller.js","../../../globals/dist/src/form/locales/it.js","../../../globals/dist/src/form/form-control.js","../../../globals/dist/src/window-manager.js","../../../globals/dist/src/index.js","../../../src/it-modal.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","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","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","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}\nif (typeof window !== 'undefined') {\n window.registerTranslation = registerTranslation;\n}\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 }\n // Provide default values to avoid definite assignment errors and avoid decorators\n // commentati perchè danno problemi su React.js. Sono attributi nativi, e assegnare un valore di default a react da fastidio\n // dir: string = '';\n // lang: string = '';\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 clsx from 'clsx';\nimport { 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.composeClass = clsx;\n this.logger = new Logger(this.tagName.toLowerCase());\n }\n get _ariaAttributes() {\n const attributes = {};\n for (const attr of this.getAttributeNames()) {\n if (attr === 'it-role') {\n attributes.role = this.getAttribute(attr);\n }\n else if (attr.startsWith('it-aria-')) {\n attributes[attr.replace(/^it-/, '')] = this.getAttribute(attr);\n }\n }\n return attributes;\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 getActiveElement() {\n let active = document.activeElement;\n while (active && active.shadowRoot && active.shadowRoot.activeElement) {\n active = active.shadowRoot.activeElement;\n }\n return active;\n }\n get focusElement() {\n return this;\n }\n // eslint-disable-next-line class-methods-use-this\n get prefersReducedMotion() {\n return window.matchMedia('(prefers-reduced-motion: reduce)').matches;\n }\n connectedCallback() {\n super.connectedCallback();\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","/**\n * Safari/VoiceOver iOS workarounds catalogue — why timers exist here:\n *\n * 1. `activate()` rAF + setTimeout(50): Safari does not reliably update the VoiceOver\n * accessibility tree synchronously. rAF ensures the element is painted before we\n * attempt to focus it. setTimeout(50) yields 50ms so VoiceOver can settle its\n * accessibility tree before announcing the newly focused element.\n * Empirically, VoiceOver iOS needs 100–300ms; the animated path in it-modal already\n * provides ~316ms naturally via animation.finished, so the 50ms here only truly\n * matters for the no-animation / prefers-reduced-motion path.\n *\n * 2. `_restoreFocus()` setTimeout(0): Same settle reason on close. The caller\n * (it-modal finishHide) adds a belt-and-suspenders 20ms setTimeout; _restoreFocus\n * is skipped via { skipFocusRestore: true } in that case to avoid double-focus.\n *\n * 3. `activate()` iOS body-focus fallback: On iOS Safari, tapping a button does not\n * reliably move document.activeElement away from body. We fall back to getTrigger()\n * so _previousActiveElement is always a real DOM element to restore focus to on close.\n *\n * There is no WebKit/Safari API to detect when VoiceOver has settled its accessibility\n * tree. setTimeout-based workarounds are the same pattern used by Bootstrap 5, the\n * focus-trap npm package, and a11y-dialog.\n */\nexport class FocusTrapController {\n static getManagedHostAncestor(element) {\n let current = element;\n while (current) {\n const parentEl = current instanceof HTMLElement ? current.parentElement : null;\n if (parentEl && parentEl.matches(FocusTrapController.MANAGED_HOST_SELECTORS))\n return parentEl;\n if (parentEl) {\n current = parentEl;\n continue;\n }\n const rootNode = current.getRootNode();\n if (rootNode instanceof ShadowRoot) {\n const hostElement = rootNode.host;\n if (hostElement instanceof HTMLElement) {\n if (hostElement.matches(FocusTrapController.MANAGED_HOST_SELECTORS))\n return hostElement;\n current = hostElement;\n continue;\n }\n }\n break;\n }\n return null;\n }\n static isInsideManagedHost(element) {\n return FocusTrapController.getManagedHostAncestor(element) !== null;\n }\n static getManagedMenuHostAncestor(element) {\n let current = element;\n while (current) {\n const parentEl = current instanceof HTMLElement ? current.parentElement : null;\n if (parentEl && parentEl.matches(FocusTrapController.MANAGED_MENU_HOST_SELECTORS))\n return parentEl;\n if (parentEl) {\n current = parentEl;\n continue;\n }\n const rootNode = current.getRootNode();\n if (rootNode instanceof ShadowRoot) {\n const hostElement = rootNode.host;\n if (hostElement instanceof HTMLElement) {\n if (hostElement.matches(FocusTrapController.MANAGED_MENU_HOST_SELECTORS))\n return hostElement;\n current = hostElement;\n continue;\n }\n }\n break;\n }\n return null;\n }\n static collectFocusableCandidates(root, candidates, trigger, visited) {\n const rootAsNode = root;\n if (visited.has(rootAsNode))\n return;\n visited.add(rootAsNode);\n const elements = Array.from(root.querySelectorAll('*'));\n elements.forEach((el) => {\n if (el === trigger)\n return;\n // Keep custom host components as single tab stops: their internal light/shadow\n // descendants must not appear as separate trap candidates.\n if (FocusTrapController.isInsideManagedHost(el))\n return;\n if (el.matches(FocusTrapController.FOCUSABLE_SELECTORS)) {\n candidates.push(el);\n // Stop here: focusCandidate() handles delegation to the inner focusable.\n // Prevent recursion into this element's shadow DOM so inner buttons/triggers\n // are not added as separate tab stops.\n if (el.shadowRoot)\n visited.add(el.shadowRoot);\n return;\n }\n if (el instanceof HTMLSlotElement) {\n el.assignedElements({ flatten: true }).forEach((assigned) => {\n if (!(assigned instanceof HTMLElement) || assigned === trigger)\n return;\n if (assigned.matches(FocusTrapController.FOCUSABLE_SELECTORS)) {\n candidates.push(assigned);\n // Same rule: don't recurse into a focusable element.\n if (assigned.shadowRoot)\n visited.add(assigned.shadowRoot);\n return;\n }\n FocusTrapController.collectFocusableCandidates(assigned, candidates, trigger, visited);\n if (assigned.shadowRoot) {\n FocusTrapController.collectFocusableCandidates(assigned.shadowRoot, candidates, trigger, visited);\n }\n });\n return;\n }\n if (el.shadowRoot) {\n FocusTrapController.collectFocusableCandidates(el.shadowRoot, candidates, trigger, visited);\n }\n });\n }\n static getFirstFocusableInShadow(host) {\n const visited = new Set();\n const walk = (root) => {\n const rootAsNode = root;\n if (visited.has(rootAsNode))\n return null;\n visited.add(rootAsNode);\n const direct = Array.from(root.querySelectorAll(FocusTrapController.NATIVE_FOCUSABLE_SELECTORS));\n const firstDirect = direct.find((el) => FocusTrapController.isFocusable(el));\n if (firstDirect)\n return firstDirect;\n const all = Array.from(root.querySelectorAll('*'));\n for (const el of all) {\n if (el instanceof HTMLSlotElement) {\n const assigned = el.assignedElements({ flatten: true });\n for (const assignedEl of assigned) {\n if (!(assignedEl instanceof HTMLElement))\n continue;\n if (assignedEl.matches(FocusTrapController.NATIVE_FOCUSABLE_SELECTORS)) {\n if (FocusTrapController.isFocusable(assignedEl))\n return assignedEl;\n }\n const nestedAssigned = walk(assignedEl);\n if (nestedAssigned)\n return nestedAssigned;\n if (assignedEl.shadowRoot) {\n const nestedAssignedShadow = walk(assignedEl.shadowRoot);\n if (nestedAssignedShadow)\n return nestedAssignedShadow;\n }\n }\n }\n if (el.shadowRoot) {\n const nested = walk(el.shadowRoot);\n if (nested)\n return nested;\n }\n }\n return null;\n };\n if (!host.shadowRoot)\n return null;\n return walk(host.shadowRoot);\n }\n static focusCandidate(target) {\n if (!target)\n return;\n if (target.tagName.toLowerCase().startsWith('it-')) {\n const innerFocusable = FocusTrapController.getFirstFocusableInShadow(target);\n if (innerFocusable) {\n innerFocusable.focus({ preventScroll: true });\n return;\n }\n }\n target.focus({ preventScroll: true });\n }\n /**\n * Verifica se un elemento è effettivamente focusabile e tabbabile.\n * Elementi con tabindex=\"-1\" sono focusabili programmaticamente ma non tabbabili.\n */\n static isFocusable(el) {\n if (typeof el.focus !== 'function')\n return false;\n if (el.hasAttribute('disabled') || el.hasAttribute('inert') || el.hasAttribute('it-inert'))\n return false;\n const tabindex = el.getAttribute('tabindex');\n if (tabindex && parseInt(tabindex, 10) < 0)\n return false;\n if (el.tagName.toLowerCase().startsWith('it-')) {\n if (tabindex && parseInt(tabindex, 10) < 0)\n return false;\n return true;\n }\n // Fix Race Condition Safari: durante l'apertura non fidarti di getClientRects o opacità\n try {\n const style = window.getComputedStyle(el);\n return style && style.display !== 'none' && style.visibility !== 'hidden';\n }\n catch {\n return false;\n }\n }\n constructor(host, config) {\n this.observer = null;\n this._isActive = false;\n this._previousActiveElement = null;\n this._focusableElements = [];\n /** Last known index resolved from real focusin events inside the trap.\n * Used as a fallback when assistive tech retargeting makes activeElement\n * temporarily unmappable during Tab navigation. */\n this._lastKnownFocusIndex = -1;\n /** Timer ID for the focus call scheduled inside activate(). Cancelled by deactivate()\n * to prevent focus firing after the trap has been torn down (fast open/close, unmount). */\n this._pendingFocusTimer = null;\n this._handleKeyDown = (event) => {\n if (!this._isActive)\n return;\n switch (event.key) {\n case 'Escape':\n if (!this.config.disableEscape && this.config.onEscape) {\n event.preventDefault();\n this.config.onEscape();\n }\n break;\n case 'Tab':\n this._handleTab(event);\n break;\n default:\n break;\n }\n };\n this._handleFocusIn = (event) => {\n if (!this._isActive)\n return;\n if (this._focusableElements.length === 0) {\n this.updateFocusableElements();\n if (this._focusableElements.length === 0)\n return;\n }\n const path = event.composedPath();\n let index = this._focusableElements.findIndex((candidate) => path.includes(candidate));\n if (index === -1) {\n const target = path[0];\n if (target instanceof HTMLElement) {\n index = this._focusableElements.indexOf(target);\n }\n }\n if (index === -1) {\n const active = FocusTrapController.getActiveElement();\n if (active) {\n index = this._focusableElements.findIndex((candidate) => candidate.contains(active));\n }\n }\n if (index !== -1) {\n this._lastKnownFocusIndex = index;\n }\n };\n this.host = host;\n this.config = config;\n this.host.addController(this);\n }\n hostConnected() {\n const observerOptions = { childList: true, attributes: true, subtree: true };\n this.observer = new MutationObserver(this.updateFocusableElements.bind(this));\n this.observer.observe(this.host, observerOptions);\n }\n hostDisconnected() {\n this.deactivate();\n if (this.observer) {\n this.observer.disconnect();\n this.observer = null;\n }\n }\n get isActive() {\n return this._isActive;\n }\n activate() {\n if (this._isActive)\n return;\n this._isActive = true;\n // FIX iOS: Safari non dà focus al tap. Se activeElement è body, salviamo il trigger della config.\n const currentActive = FocusTrapController.getActiveElement();\n this._previousActiveElement =\n !currentActive || currentActive === document.body ? this.config.getTrigger() : currentActive;\n // Usa document capture: cattura Tab/Escape prima di qualsiasi handler,\n // indipendentemente da shadow DOM, delegatesFocus e slot retargeting.\n document.addEventListener('keydown', this._handleKeyDown, true);\n document.addEventListener('focusin', this._handleFocusIn, true);\n this.updateFocusableElements();\n this._lastKnownFocusIndex = -1;\n // FIX Safari: trick engine\n // Diamo al browser un istante per processare il ricalcolo del layout\n requestAnimationFrame(() => {\n if (this.config.initialFocus) {\n const el = this.config.initialFocus();\n if (el) {\n // 50ms gives VoiceOver iOS time to settle its accessibility tree before\n // announcing the focused element. See class-level comment for details.\n this._pendingFocusTimer = setTimeout(() => {\n this._pendingFocusTimer = null;\n el.focus({ preventScroll: true });\n }, 50);\n }\n }\n else {\n console.warn(\"FocusTrap: missing 'initialFocus' callback, provide one\");\n }\n });\n }\n deactivate(options) {\n if (!this._isActive)\n return;\n // Cancel any in-flight focus timer so it cannot fire after the trap is torn down\n // (e.g. fast open/close cycle, component unmounted while opening).\n if (this._pendingFocusTimer !== null) {\n clearTimeout(this._pendingFocusTimer);\n this._pendingFocusTimer = null;\n }\n this._isActive = false;\n document.removeEventListener('keydown', this._handleKeyDown, true);\n document.removeEventListener('focusin', this._handleFocusIn, true);\n this._lastKnownFocusIndex = -1;\n if (!options?.skipFocusRestore) {\n this._restoreFocus();\n }\n else {\n this._previousActiveElement = null;\n }\n }\n /**\n * Aggiorna la lista degli elementi focusabili.\n * Chiamare dopo modifiche al DOM.\n */\n updateFocusableElements() {\n const container = this.config.getContainer();\n const trigger = this.config.getTrigger();\n if (!container) {\n this._focusableElements = [];\n this._first = undefined;\n this._last = undefined;\n return;\n }\n const candidates = [];\n FocusTrapController.collectFocusableCandidates(container, candidates, trigger, new Set());\n // Include anche i figli light DOM dell'host (es. contenuti slottati della modale)\n Array.from(this.host.children).forEach((child) => {\n if (!(child instanceof HTMLElement) || child === trigger)\n return;\n if (child.matches(FocusTrapController.FOCUSABLE_SELECTORS)) {\n candidates.push(child);\n // Don't recurse: same stop-on-focusable rule.\n return;\n }\n const childVisited = new Set();\n FocusTrapController.collectFocusableCandidates(child, candidates, trigger, childVisited);\n if (child.shadowRoot) {\n FocusTrapController.collectFocusableCandidates(child.shadowRoot, candidates, trigger, childVisited);\n }\n });\n // Filtra solo elementi veramente focusabili e rimuovi duplicati\n this._focusableElements = Array.from(new Set(candidates)).filter((el) => {\n // Escludi esplicitamente il container/dialog stesso\n if (el === this.config.getContainer())\n return false;\n return FocusTrapController.isFocusable(el);\n });\n // Aggiorna primo/ultimo\n this._first = this._focusableElements?.[0];\n this._last = this._focusableElements[this._focusableElements.length - 1];\n }\n /** Sposta il focus sul primo elemento focusabile */\n focusFirst() {\n if (this._first)\n this._first.focus();\n }\n /** Sposta il focus sull'ultimo elemento focusabile */\n focusLast() {\n if (this._last) {\n this._last.focus();\n }\n }\n /** Ritorna l'elemento attivo corrente, attraversando shadow DOM e slot */\n static getActiveElement() {\n let active = document.activeElement;\n while (active && active.shadowRoot && active.shadowRoot.activeElement) {\n active = active.shadowRoot.activeElement;\n }\n return active;\n }\n _handleTab(event) {\n const activeElement = FocusTrapController.getActiveElement();\n // Let native Tab behavior handle navigation inside open dropdown/megamenu.\n // This allows entering and traversing internal menu items correctly.\n if (activeElement) {\n const managedHost = FocusTrapController.getManagedMenuHostAncestor(activeElement);\n if (managedHost && managedHost.getAttribute('data-it-aria-expanded') === 'true') {\n return;\n }\n }\n // Ricalcola sempre al Tab: gli elementi slottati possono completare il render\n // del proprio shadow DOM dopo l'attivazione iniziale del trap.\n this.updateFocusableElements();\n if (this._focusableElements.length === 0)\n return; // Se è ancora vuoto, non bloccare il Tab\n event.preventDefault();\n let currentIndex = this._focusableElements.indexOf(activeElement);\n if (currentIndex === -1 && activeElement) {\n // 1. Walk shadow host chain (covers delegatesFocus custom elements)\n let parent = activeElement.getRootNode()?.host;\n while (parent && currentIndex === -1) {\n currentIndex = this._focusableElements.indexOf(parent);\n if (currentIndex === -1)\n parent = parent.getRootNode()?.host;\n }\n }\n if (currentIndex === -1) {\n // 2. Composed path fallback: handles focus inside nested shadow/slotted\n // content (e.g. anchors inside it-dropdown-item) by mapping the active\n // target to the first focusable host found in the event path.\n const composedPath = event.composedPath();\n currentIndex = this._focusableElements.findIndex((candidate) => composedPath.includes(candidate));\n }\n if (currentIndex === -1 && activeElement) {\n // 3. contains() fallback: handles focus inside an open dropdown/megamenu whose\n // items live in light DOM (not shadow DOM), so the parent-walk above doesn't\n // reach the host. Map to the host's index so Tab/Shift+Tab move to the\n // correct adjacent element.\n currentIndex = this._focusableElements.findIndex((candidate) => candidate.contains(activeElement));\n }\n if (currentIndex === -1) {\n // 4. AT fallback: with some screen readers, document.activeElement and/or\n // event target can be unreliable while navigating inside composite widgets.\n // If a dropdown/megamenu is currently open, use its host index as anchor\n // so forward/backward Tab continue from that position instead of wrapping.\n currentIndex = this._focusableElements.findIndex((candidate) => candidate.matches('it-dropdown, it-megamenu') && candidate.getAttribute('data-it-aria-expanded') === 'true');\n }\n if (currentIndex === -1 && this._lastKnownFocusIndex >= 0) {\n // 5. Last-known fallback: if assistive tech retargeting hides the active\n // element for this key event, continue from the most recent resolved\n // focus index captured via focusin.\n currentIndex = Math.min(this._lastKnownFocusIndex, this._focusableElements.length - 1);\n }\n if (event.shiftKey) {\n if (currentIndex <= 0)\n FocusTrapController.focusCandidate(this._last);\n else\n FocusTrapController.focusCandidate(this._focusableElements[currentIndex - 1]);\n }\n else if (currentIndex === -1 || currentIndex >= this._focusableElements.length - 1)\n FocusTrapController.focusCandidate(this._first);\n else\n FocusTrapController.focusCandidate(this._focusableElements[currentIndex + 1]);\n }\n _restoreFocus() {\n const target = this._previousActiveElement;\n this._previousActiveElement = null;\n if (target && typeof target.focus === 'function' && document.contains(target)) {\n // FIX Safari: blur the current element first so VoiceOver doesn't stay on the\n // modal element while the accessibility tree processes the focus change.\n FocusTrapController.getActiveElement()?.blur();\n // FIX Safari/VoiceOver iOS: defer to the next macrotask so the accessibility\n // tree has time to process the DOM mutation before announcing the restored element.\n setTimeout(() => {\n target.focus({ preventScroll: true });\n }, 0);\n }\n }\n}\nFocusTrapController.FOCUSABLE_SELECTORS = [\n 'a[href]',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled]):not([type=\"hidden\"])',\n 'select:not([disabled])',\n '[tabindex]',\n 'it-button:not([disabled])',\n 'it-dropdown:not([disabled])',\n 'it-megamenu:not([disabled])',\n].join(',');\nFocusTrapController.NATIVE_FOCUSABLE_SELECTORS = [\n 'a[href]',\n 'button:not([disabled])',\n 'textarea:not([disabled])',\n 'input:not([disabled]):not([type=\"hidden\"])',\n 'select:not([disabled])',\n '[tabindex]:not([tabindex=\"-1\"])',\n].join(',');\nFocusTrapController.MANAGED_HOST_SELECTORS = [\n 'it-button:not([disabled])',\n 'it-dropdown:not([disabled])',\n 'it-megamenu:not([disabled])',\n].join(',');\nFocusTrapController.MANAGED_MENU_HOST_SELECTORS = [\n 'it-dropdown:not([disabled])',\n 'it-megamenu:not([disabled])',\n].join(',');\n//# sourceMappingURL=focus-trap-controller.js.map","//\n// We store a WeakMap of forms + controls so we can keep references to all FormControl within a given form. As\n// elements connect and disconnect to/from the DOM, their containing form is used as the key and the form control is\n// added and removed from the form's set, respectively.\n//\nexport const formCollections = new WeakMap();\n//\n// We store a WeakMap of reportValidity() overloads so we can override it when form controls connect to the DOM and\n// restore the original behavior when they disconnect.\n//\nconst reportValidityOverloads = new WeakMap();\nconst checkValidityOverloads = new WeakMap();\n//\n// We store a Set of controls that users have interacted with. This allows us to determine the interaction state\n// without littering the DOM with additional data attributes.\n//\nconst userInteractedControls = new WeakSet();\n//\n// We store a WeakMap of interactions for each form control so we can track when all conditions are met for validation.\n//\nconst interactions = new WeakMap();\n/** A reactive controller to allow form controls to participate in form submission, validation, etc. */\nexport class FormControlController {\n constructor(host, options) {\n this.submittedOnce = false;\n this.handleFormData = (event) => {\n // console.log('handleFormData');\n const disabled = this.options.disabled(this.host);\n const name = this.options.name(this.host);\n const value = this.options.value(this.host);\n const tagName = this.host.tagName.toLowerCase();\n // For buttons, we only submit the value if they were the submitter. This is currently done in doAction() by\n // injecting the name/value on a temporary button, so we can just skip them here.\n const isButton = tagName === 'it-button';\n if (this.host.isConnected &&\n !disabled &&\n !isButton &&\n typeof name === 'string' &&\n name.length > 0 &&\n typeof value !== 'undefined') {\n switch (tagName) {\n case 'it-radio':\n if (this.host.checked) {\n event.formData.append(name, value);\n }\n break;\n case 'it-checkbox':\n case 'it-toggle':\n if (this.host.checked) {\n if (event.formData.getAll(name).indexOf(value) < 0) {\n // handle group checkbox\n event.formData.append(name, value);\n }\n }\n break;\n case 'it-checkbox-group':\n case 'it-toggle-group':\n // non settare valori in formData, perchè ogni singola checkbox setta il suo valore\n break;\n case 'it-upload':\n // value is File[] — append each File object directly (not as string)\n if (Array.isArray(value)) {\n value.forEach((file) => {\n event.formData.append(name, file);\n });\n }\n break;\n default:\n if (Array.isArray(value)) {\n value.forEach((val) => {\n event.formData.append(name, val.toString());\n });\n }\n else {\n event.formData.append(name, value.toString());\n }\n }\n }\n };\n this.handleFormSubmit = (event) => {\n const disabled = this.options.disabled(this.host);\n const reportValidity = this.options.reportValidity;\n // Update the interacted state for all controls when the form is submitted\n if (this.form && !this.form.noValidate) {\n formCollections.get(this.form)?.forEach((control) => {\n this.setUserInteracted(control, true);\n });\n }\n const resReportValidity = reportValidity(this.host);\n if (this.form && !this.form.noValidate && !disabled && !resReportValidity) {\n event.preventDefault();\n // event.stopImmediatePropagation(); // se lo attiviamo, valida un campo alla volta\n // Scroll al primo controllo non valido\n const formControls = formCollections.get(this.form);\n if (formControls) {\n for (const control of formControls) {\n if (!control.validity?.valid) {\n // Scroll smooth verso il controllo non valido\n control.scrollIntoView({\n behavior: 'smooth',\n block: 'center',\n });\n break;\n }\n }\n }\n }\n this.submittedOnce = true;\n };\n this.handleFormReset = () => {\n this.options.setValue(this.host, '');\n this.submittedOnce = false;\n this.setUserInteracted(this.host, false);\n interactions.set(this.host, []);\n };\n this.handleInteraction = (event) => {\n const emittedEvents = interactions.get(this.host);\n if (!emittedEvents.includes(event.type)) {\n emittedEvents.push(event.type);\n }\n // Mark it as user-interacted as soon as all associated events have been emitted\n if (emittedEvents.length === this.options.assumeInteractionOn.length) {\n this.setUserInteracted(this.host, true);\n }\n };\n this.checkFormValidity = () => {\n // console.log('checkFormValidity');\n //\n // This is very similar to the `reportFormValidity` function, but it does not trigger native constraint validation\n // Allow the user to simply check if the form is valid and handling validity in their own way.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Shoelace inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll('*');\n for (const element of elements) {\n if (typeof element.checkValidity === 'function') {\n if (!element.checkValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n this.reportFormValidity = () => {\n // console.log('reportFormValidity');\n //\n // FormControl work hard to act like regular form controls. They support the Constraint Validation API\n // and its associated methods such as setCustomValidity() and reportValidity(). However, the HTMLFormElement also\n // has a reportValidity() method that will trigger validation on all child controls. Since we're not yet using\n // ElementInternals, we need to overload this method so it looks for any element with the reportValidity() method.\n //\n // We preserve the original method in a WeakMap, but we don't call it from the overload because that would trigger\n // validations in an unexpected order. When the element disconnects, we revert to the original behavior. This won't\n // be necessary once we can use ElementInternals.\n //\n // Note that we're also honoring the form's novalidate attribute.\n //\n if (this.form && !this.form.noValidate) {\n // This seems sloppy, but checking all elements will cover native inputs, Shoelace inputs, and other custom\n // elements that support the constraint validation API.\n const elements = this.form.querySelectorAll('*');\n for (const element of elements) {\n if (typeof element.reportValidity === 'function') {\n if (!element.reportValidity()) {\n return false;\n }\n }\n }\n }\n return true;\n };\n (this.host = host).addController(this);\n this.options = {\n form: (input) => {\n // If there's a form attribute, use it to find the target form by id\n // Controls may not always reflect the 'form' property. For example, `<it-button>` doesn't reflect.\n const formId = input.form;\n if (formId) {\n const root = input.getRootNode();\n const form = root.querySelector(`#${formId}`);\n if (form) {\n return form;\n }\n }\n return input.closest('form');\n },\n name: (input) => input.name,\n value: (input) => input.value,\n disabled: (input) => input.disabled ?? false,\n reportValidity: (input) => typeof input.reportValidity === 'function' ? input.reportValidity() : true,\n checkValidity: (input) => (typeof input.checkValidity === 'function' ? input.checkValidity() : true),\n setValue: (input, value) => {\n // eslint-disable-next-line no-param-reassign\n input.value = value;\n },\n assumeInteractionOn: ['it-input'],\n ...options,\n };\n }\n hostConnected() {\n const form = this.options.form(this.host);\n if (form) {\n this.attachForm(form);\n }\n // Listen for interactions\n interactions.set(this.host, []);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.addEventListener(event, this.handleInteraction);\n });\n }\n hostDisconnected() {\n this.detachForm();\n // Clean up interactions\n interactions.delete(this.host);\n this.options.assumeInteractionOn.forEach((event) => {\n this.host.removeEventListener(event, this.handleInteraction);\n });\n }\n hostUpdated() {\n const form = this.options.form(this.host);\n // Detach if the form no longer exists\n if (!form) {\n this.detachForm();\n }\n // If the form has changed, reattach it\n if (form && this.form !== form) {\n this.detachForm();\n this.attachForm(form);\n }\n if (this.host.hasUpdated) {\n this.setValidity(this.host.validity.valid);\n }\n }\n attachForm(form) {\n if (form) {\n this.form = form;\n // Add this element to the form's collection\n if (formCollections.has(this.form)) {\n formCollections.get(this.form).add(this.host);\n }\n else {\n formCollections.set(this.form, new Set([this.host]));\n }\n this.form.addEventListener('formdata', this.handleFormData);\n this.form.addEventListener('submit', this.handleFormSubmit);\n this.form.addEventListener('reset', this.handleFormReset);\n // Overload the form's reportValidity() method so it looks at FormControl\n if (!reportValidityOverloads.has(this.form)) {\n reportValidityOverloads.set(this.form, this.form.reportValidity);\n this.form.reportValidity = () => this.reportFormValidity();\n }\n // Overload the form's checkValidity() method so it looks at FormControl\n if (!checkValidityOverloads.has(this.form)) {\n checkValidityOverloads.set(this.form, this.form.checkValidity);\n this.form.checkValidity = () => this.checkFormValidity();\n }\n }\n else {\n this.form = undefined;\n }\n }\n detachForm() {\n if (!this.form)\n return;\n const formCollection = formCollections.get(this.form);\n if (!formCollection) {\n return;\n }\n this.submittedOnce = false;\n // Remove this host from the form's collection\n formCollection.delete(this.host);\n // Check to make sure there's no other form controls in the collection. If we do this\n // without checking if any other controls are still in the collection, then we will wipe out the\n // validity checks for all other elements.\n // see: https://github.com/shoelace-style/shoelace/issues/1703\n if (formCollection.size <= 0) {\n this.form.removeEventListener('formdata', this.handleFormData);\n this.form.removeEventListener('submit', this.handleFormSubmit);\n this.form.removeEventListener('reset', this.handleFormReset);\n // Remove the overload and restore the original method\n if (reportValidityOverloads.has(this.form)) {\n this.form.reportValidity = reportValidityOverloads.get(this.form);\n reportValidityOverloads.delete(this.form);\n }\n if (checkValidityOverloads.has(this.form)) {\n this.form.checkValidity = checkValidityOverloads.get(this.form);\n checkValidityOverloads.delete(this.form);\n }\n // So it looks weird here to not always set the form to undefined. But I _think_ if we unattach this.form here,\n // we end up in this fun spot where future validity checks don't have a reference to the form validity handler.\n // First form element in sets the validity handler. So we can't clean up `this.form` until there are no other form elements in the form.\n this.form = undefined;\n }\n }\n // eslint-disable-next-line class-methods-use-this\n setUserInteracted(el, hasInteracted) {\n if (hasInteracted) {\n userInteractedControls.add(el);\n }\n else {\n userInteractedControls.delete(el);\n }\n el.requestUpdate();\n }\n doAction(type, submitter) {\n // console.log('doaction', type);\n if (this.form) {\n const button = document.createElement('button');\n button.type = type;\n button.style.position = 'absolute';\n button.style.width = '0';\n button.style.height = '0';\n button.style.clipPath = 'inset(50%)';\n button.style.overflow = 'hidden';\n button.style.whiteSpace = 'nowrap';\n // Pass name, value, and form attributes through to the temporary button\n if (submitter) {\n button.name = submitter.name;\n button.value = submitter.value;\n ['formaction', 'formenctype', 'formmethod', 'formnovalidate', 'formtarget'].forEach((attr) => {\n if (submitter.hasAttribute(attr)) {\n button.setAttribute(attr, submitter.getAttribute(attr));\n }\n });\n }\n this.form.append(button);\n button.click();\n button.remove();\n }\n }\n /** Returns the associated `<form>` element, if one exists. */\n getForm() {\n return this.form ?? null;\n }\n /** Resets the form, restoring all the control to their default value */\n reset(submitter) {\n this.doAction('reset', submitter);\n }\n /** Submits the form, triggering validation and form data injection. */\n submit(submitter) {\n // Calling form.submit() bypasses the submit event and constraint validation. To prevent this, we can inject a\n // native submit button into the form, \"click\" it, then remove it to simulate a standard form submission.\n this.doAction('submit', submitter);\n }\n /**\n * Synchronously sets the form control's validity. Call this when you know the future validity but need to update\n * the host element immediately, i.e. before Lit updates the component in the next update.\n */\n setValidity(isValid) {\n const host = this.host;\n const hasInteracted = Boolean(userInteractedControls.has(host));\n const required = Boolean(host.required);\n //\n // We're mapping the following \"states\" to data attributes. In the future, we can use ElementInternals.states to\n // create a similar mapping, but instead of [data-invalid] it will look like :--invalid.\n //\n // See this RFC for more details: https://github.com/shoelace-style/shoelace/issues/1011\n //\n host.toggleAttribute('data-required', required);\n host.toggleAttribute('data-optional', !required);\n host.toggleAttribute('data-invalid', !isValid);\n host.toggleAttribute('data-valid', isValid);\n host.toggleAttribute('data-user-invalid', !isValid && hasInteracted);\n host.toggleAttribute('data-user-valid', isValid && hasInteracted);\n }\n userInteracted() {\n const hasInteracted = Boolean(userInteractedControls.has(this.host));\n return hasInteracted;\n }\n /**\n * Updates the form control's validity based on the current value of `host.validity.valid`. Call this when anything\n * that affects constraint validation changes so the component receives the correct validity states.\n */\n updateValidity() {\n const host = this.host;\n this.setValidity(host.validity.valid);\n }\n /**\n * Dispatches a non-bubbling, cancelable custom event of type `it-invalid`.\n * If the `it-invalid` event will be cancelled then the original `invalid`\n * event (which may have been passed as argument) will also be cancelled.\n * If no original `invalid` event has been passed then the `it-invalid`\n * event will be cancelled before being dispatched.\n */\n emitInvalidEvent(originalInvalidEvent) {\n const itInvalidEvent = new CustomEvent('it-invalid', {\n bubbles: false,\n composed: false,\n cancelable: true,\n detail: {},\n });\n if (!originalInvalidEvent) {\n itInvalidEvent.preventDefault();\n }\n if (!this.host.dispatchEvent(itInvalidEvent)) {\n originalInvalidEvent?.preventDefault();\n }\n }\n}\n//# sourceMappingURL=form-controller.js.map","const translation = {\n $code: 'it',\n $name: 'Italiano',\n $dir: 'ltr',\n validityRequired: 'Questo campo è obbligatorio.',\n validityGroupRequired: \"Scegli almeno un'opzione\",\n validityPattern: 'Il valore non corrisponde al formato richiesto.',\n validityMinlength: 'Il valore deve essere lungo almeno {minlength} caratteri.',\n validityMaxlength: 'Il valore deve essere lungo al massimo {maxlength} caratteri.',\n};\nexport default translation;\n//# sourceMappingURL=it.js.map","import { __decorate, __metadata } from \"tslib\";\nimport { property, query, state } from 'lit/decorators.js';\nimport { registerTranslation } from '@italia/i18n';\nimport { BaseLocalizedComponent } from '../base-component/base-component.js';\nimport { FormControlController } from './form-controller.js';\nimport it from './locales/it.js';\nregisterTranslation(it);\nexport class FormControl extends BaseLocalizedComponent {\n constructor() {\n super(...arguments);\n this.formControlController = new FormControlController(this, {\n assumeInteractionOn: ['it-input', 'it-blur', 'it-change'],\n });\n // TODO: verificare se serve davvero con il fatto che usiamo form-controller\n // static formAssociated = true;\n // @property()\n // internals = this.attachInternals();\n this._touched = false;\n /** The name of the input, submitted as a name/value pair with form data. */\n this.name = '';\n /** The current value of the input, submitted as a name/value pair with form data. */\n this.value = '';\n /** If the input is disabled. */\n this.disabled = false;\n /**\n * By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\n * to place the form control outside of a form and associate it with the form that has this `id`. The form must be in\n * the same document or shadow root for this to work.\n */\n this.form = '';\n /** If you implement your custom validation and you won't to trigger default validation */\n this.customValidation = false;\n /** If your input is invalid from your custom validition, set this attribute with message validation */\n this.validationText = '';\n /**\n * Specifies the granularity that the value must adhere to, or the special value `any` which means no stepping is\n * implied, allowing any numeric value. Only applies to date and number input types.\n */\n this.step = 'any';\n /** The input's minimum length. */\n this.minlength = -1;\n /** The input's maximum length. */\n this.maxlength = -1;\n /** If the input is required. */\n this.required = false;\n /* For grouped input, like checkbox-group */\n this.isInGroup = false;\n this.validationMessage = '';\n }\n /** Gets the validity state object */\n get validity() {\n return this.inputElement?.validity;\n }\n /** Gets the associated form, if one exists. */\n getForm() {\n return this.formControlController.getForm();\n }\n // Form validation methods\n checkValidity() {\n const inputValid = this.inputElement?.checkValidity() ?? true; // this.inputElement.checkValidity() è la validazione del browser\n return inputValid;\n }\n /** Checks for validity and shows the browser's validation message if the control is invalid. */\n reportValidity() {\n // const ret = this.inputElement.checkValidity();\n const ret = this.checkValidity(); // chiama la checkValidity, che se è stata overridata chiama quella\n this.handleValidationMessages();\n return ret; // this.inputElement.reportValidity();\n }\n /** Sets a custom validation message. Pass an empty string to restore validity. */\n setCustomValidity(message) {\n this.inputElement.setCustomValidity(message);\n this.validationMessage = this.inputElement.validationMessage;\n this.formControlController.updateValidity();\n }\n // Handlers\n _handleReady() {\n requestAnimationFrame(() => {\n this.dispatchEvent(new CustomEvent('it-input-ready', { bubbles: true, detail: { el: this.inputElement } }));\n });\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _handleInput(e) {\n this.handleValidationMessages();\n this.dispatchEvent(new CustomEvent('it-input', {\n detail: { value: this.inputElement.value, el: this.inputElement },\n bubbles: true,\n composed: true,\n }));\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _handleBlur(e) {\n this._touched = true;\n this.handleValidationMessages();\n this.dispatchEvent(new FocusEvent('it-blur', { bubbles: true, composed: true }));\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _handleFocus(e) {\n this.dispatchEvent(new FocusEvent('it-focus', { bubbles: true, composed: true }));\n }\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n _handleClick(e) {\n this.dispatchEvent(new MouseEvent('it-click', { bubbles: true, composed: true }));\n }\n /*\n Override default browser validation messages\n */\n handleValidationMessages() {\n if (!this.customValidation) {\n const _v = this.inputElement.validity;\n const isRequiredHandledByGroup = this.isInGroup === true;\n if (_v.valueMissing && !isRequiredHandledByGroup) {\n this.setCustomValidity(this.$t('validityRequired'));\n }\n else if (_v.patternMismatch) {\n this.setCustomValidity(this.$t('validityPattern'));\n }\n else if (_v.tooShort) {\n this.setCustomValidity(this.$t('validityMinlength').replace('{minlength}', this.minlength.toString()));\n }\n else if (_v.tooLong) {\n this.setCustomValidity(this.$t('validityMaxlength').replace('{maxlength}', this.maxlength.toString()));\n }\n else {\n /* nothing. Usa il messaggio di errore della validazione\n di default del browser per altri errori di validità come:\n - typeMismatch\n - rangeUnderflow\n - rangeOverflow\n - stepMismatch\n - badInput */\n const otherConstraintErrors = _v.typeMismatch || _v.rangeUnderflow || _v.rangeOverflow || _v.stepMismatch || _v.badInput;\n if (!otherConstraintErrors) {\n this.setCustomValidity('');\n }\n }\n }\n this.validationMessage = this.inputElement.validationMessage;\n }\n _handleInvalid(event) {\n this.formControlController.setValidity(false);\n this.formControlController.emitInvalidEvent(event);\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('it-change', {\n detail: { value, el: target },\n bubbles: true,\n composed: true,\n }));\n }\n updated(changedProperties) {\n super.updated?.(changedProperties);\n if (this.customValidation) {\n this.setCustomValidity(this.validationText ?? '');\n }\n else if (this.formControlController.userInteracted()) {\n this.formControlController.updateValidity();\n }\n }\n}\n__decorate([\n state(),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"_touched\", void 0);\n__decorate([\n query('.it-form__control'),\n __metadata(\"design:type\", HTMLInputElement)\n], FormControl.prototype, \"inputElement\", void 0);\n__decorate([\n property({ type: String, reflect: true }) // from FormControl\n ,\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"name\", void 0);\n__decorate([\n property({ reflect: true }),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"value\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true }) // from FormControl\n ,\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"disabled\", void 0);\n__decorate([\n property({ reflect: true, type: String }),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"form\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true, attribute: 'custom-validation' }),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"customValidation\", void 0);\n__decorate([\n property({ attribute: 'validity-message', reflect: true }),\n __metadata(\"design:type\", String)\n], FormControl.prototype, \"validationText\", void 0);\n__decorate([\n property(),\n __metadata(\"design:type\", String)\n], FormControl.prototype, \"pattern\", void 0);\n__decorate([\n property(),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"min\", void 0);\n__decorate([\n property(),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"max\", void 0);\n__decorate([\n property(),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"step\", void 0);\n__decorate([\n property({ type: Number }),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"minlength\", void 0);\n__decorate([\n property({ type: Number }),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"maxlength\", void 0);\n__decorate([\n property({ type: Boolean, reflect: true }) // from FormControl\n ,\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"required\", void 0);\n__decorate([\n property({ type: Boolean }),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"isInGroup\", void 0);\n__decorate([\n state(),\n __metadata(\"design:type\", Object)\n], FormControl.prototype, \"validationMessage\", void 0);\n//# sourceMappingURL=form-control.js.map","export class WindowManager {\n static init() {\n if (this.initialized)\n return;\n this.lastScrollY = window.scrollY;\n this.lastWidth = window.innerWidth;\n this.lastHeight = window.innerHeight;\n window.addEventListener('scroll', () => {\n this.lastScrollY = window.scrollY;\n this.requestTick();\n });\n window.addEventListener('resize', () => {\n this.lastWidth = window.innerWidth;\n this.lastHeight = window.innerHeight;\n this.requestTick(true); // force recalculation\n });\n this.initialized = true;\n }\n static requestTick(forceRecalc = false) {\n if (!this.ticking) {\n requestAnimationFrame(() => this.tick(forceRecalc));\n this.ticking = true;\n }\n }\n static tick(forceRecalc) {\n this.ticking = false;\n const state = {\n scrollY: this.lastScrollY,\n width: this.lastWidth,\n height: this.lastHeight,\n };\n this.subscribers.forEach((cb) => cb(state, forceRecalc));\n }\n static subscribe(cb) {\n this.subscribers.add(cb);\n }\n static unsubscribe(cb) {\n this.subscribers.delete(cb);\n }\n /**\n * Blocca lo scroll del body. Usa ref counting per gestire modal nested.\n * Chiamare unlockBodyScroll() per ogni lockBodyScroll().\n */\n static lockBodyScroll() {\n this.scrollLockCount += 1;\n if (this.scrollLockCount === 1) {\n this.scrollbarWidth = window.innerWidth - document.documentElement.clientWidth;\n document.body.classList.add('modal-open');\n document.body.style.overflow = 'hidden';\n document.body.style.paddingRight = `${this.scrollbarWidth}px`;\n }\n }\n /**\n * Sblocca lo scroll del body. Rimuove il lock solo quando tutti i consumer hanno chiamato unlock.\n */\n static unlockBodyScroll() {\n this.scrollLockCount = Math.max(0, this.scrollLockCount - 1);\n if (this.scrollLockCount === 0) {\n document.body.classList.remove('modal-open');\n document.body.style.overflow = '';\n document.body.style.paddingRight = '';\n }\n }\n /** Ritorna la larghezza della scrollbar (utile per compensazioni) */\n static getScrollbarWidth() {\n return this.scrollbarWidth || window.innerWidth - document.documentElement.clientWidth;\n }\n}\nWindowManager.initialized = false;\nWindowManager.subscribers = new Set();\nWindowManager.lastScrollY = 0;\nWindowManager.lastWidth = 0;\nWindowManager.lastHeight = 0;\nWindowManager.ticking = false;\n// Body scroll lock (ref counting per modal nested)\nWindowManager.scrollLockCount = 0;\nWindowManager.scrollbarWidth = 0;\n//# sourceMappingURL=window-manager.js.map","import TrackFocus from './utils/track-focus.js';\nimport setAttributes from './directives/setAttributes.js';\nimport AriaKeyboardListController from './controllers/aria-keyboard-list-controller.js';\nimport { StoryFormControlMethodAndProps } from './stories/formControlReusableStories.js';\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-alpha.10',\n };\n}\nexport { TrackFocus, setAttributes, AriaKeyboardListController };\nexport { RovingTabindexController } from './controllers/roving-tabindex-controller.js';\nexport { BaseComponent, BaseLocalizedComponent, } from './base-component/base-component.js';\nexport { AriaKeyboardAccordionController, } from './controllers/aria-keyboard-accordion-controller.js';\nexport { CollapseAnimationController } from './controllers/collapse-controller.js';\nexport { FocusTrapController } from './controllers/focus-trap-controller.js';\nexport { FormControl } from './form/form-control.js';\nexport { formCollections, FormControlController } from './form/form-controller.js';\nexport { cookies } from './utils/cookies.js';\nexport { WindowManager } from './window-manager.js';\nexport { StoryFormControlMethodAndProps };\n//# sourceMappingURL=index.js.map","/* eslint-disable lit-a11y/click-events-have-key-events */\nimport { BaseComponent, FocusTrapController, WindowManager } from '@italia/globals';\nimport { html, PropertyValues } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { type ModalSize, type ModalPosition, type ModalVariant, type ModalEventDetail } from './types.js';\nimport styles from './modal.scss';\n\n/**\n * Componente Modal per finestre di dialogo modali.\n *\n * @element it-modal\n *\n * @slot trigger - Elemento che apre la modale (es. it-button)\n * @slot content - Contenuto principale della modale (body)\n * @slot header-icon - Icona opzionale nell'header\n * @slot footer - Azioni del footer (pulsanti)\n *\n * @fires it-modal-open - Quando la modale si apre\n * @fires it-modal-close - Quando la modale si chiude\n *\n * @prop {string} close-button-placement - Posizione del pulsante di chiusura: `header` (default) o `backdrop` (sopra lo sfondo scuro, utile per menu offcanvas)\n */\n\nconst isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);\n\n@customElement('it-modal')\nexport class ItModal extends BaseComponent {\n static styles = styles;\n\n static override shadowRootOptions = { ...BaseComponent.shadowRootOptions, delegatesFocus: true };\n\n @property({ type: Boolean, reflect: true }) open: boolean | undefined = undefined;\n\n @property({ type: String, attribute: 'modal-title', reflect: true }) modalTitle = '';\n\n @property({ type: String, attribute: 'modal-description', reflect: true }) modalDescription = '';\n\n @property({ type: Boolean, attribute: 'custom-header', reflect: true }) customHeader = false;\n\n @property({ type: String, reflect: true }) size: ModalSize = '';\n\n @property({ type: String, reflect: true }) position?: ModalPosition;\n\n @property({ type: Boolean, reflect: true }) scrollable = false;\n\n @property({ type: Boolean, attribute: 'static-backdrop', reflect: true }) staticBackdrop = false;\n\n @property({ type: Boolean, attribute: 'hide-close-button', reflect: true }) hideCloseButton = false;\n\n @property({ type: String, attribute: 'close-button-placement', reflect: true }) closeButtonPlacement:\n | 'header'\n | 'backdrop' = 'header';\n\n @property({ type: String, reflect: true }) variant?: ModalVariant;\n\n @property({ type: String, attribute: 'it-aria-label' }) itAriaLabel = '';\n\n @property({ type: String, attribute: 'close-label', reflect: true }) closeLabel = '';\n\n @property({ type: Boolean, attribute: 'disable-animation', reflect: true }) disableAnimation = false;\n\n @property({ type: Boolean, attribute: 'footer-shadow', reflect: true }) footerShadow = false;\n\n @query('[role=\"dialog\"]') private _modalElement!: HTMLElement;\n\n @query('slot[name=\"trigger\"]') private _triggerSlot!: HTMLSlotElement;\n\n @query('slot[name=\"header\"]') private _headerSlot!: HTMLSlotElement;\n\n @query('slot[name=\"description\"]') private _descriptionSlot!: HTMLSlotElement;\n\n @query('.modal-backdrop') private _backdropElement!: HTMLElement;\n\n @query('.modal-dialog') private _dialogElement!: HTMLElement;\n\n private _titleId = '';\n\n private _triggerId = '';\n\n private _descriptionId = '';\n\n private isAnimating = false;\n\n private _isSelfClosing = false;\n\n private _originalTrigger: HTMLElement | null = null;\n\n @state()\n private _safariMouseInteraction = false;\n\n private _dialogAnimation?: Animation;\n\n private _backdropAnimation?: Animation;\n\n private readonly _dialogAnimationDuration = 300;\n\n private readonly _backdropAnimationDuration = 150;\n\n private _inertElements: HTMLElement[] = [];\n\n private _triggerPointerBefore: string | null = null;\n\n /** Timer ID for the focus-restore call in finishHide. Cancelled on reconnect/unmount\n * to prevent a stale focus from a previous close cycle firing during a new open. */\n private _restoreFocusTimer: ReturnType<typeof setTimeout> | null = null;\n\n private _focusTrap: FocusTrapController;\n\n get _triggerElement(): HTMLElement | null {\n const elements = this._triggerSlot?.assignedElements({ flatten: true });\n return (elements?.[0] as HTMLElement) || null;\n }\n\n constructor() {\n super();\n this._triggerId = this.generateId('modal-trigger');\n this._titleId = this.generateId('modal-title');\n this._descriptionId = this.generateId('modal-description');\n this._focusTrap = new FocusTrapController(this, {\n getContainer: () => this._modalElement,\n initialFocus: () => this._modalElement,\n getTrigger: () => this._triggerElement,\n onEscape: () => {\n this._safariMouseInteraction = false;\n this.hide();\n },\n });\n }\n\n connectedCallback(): void {\n super.connectedCallback?.();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback?.();\n this._removeTriggerListeners();\n this._cleanupAnimations();\n this._removeInert();\n if (this._restoreFocusTimer !== null) {\n clearTimeout(this._restoreFocusTimer);\n this._restoreFocusTimer = null;\n }\n WindowManager.unlockBodyScroll();\n }\n\n public show(): void {\n if (this.open || this.isAnimating) return;\n\n this._originalTrigger = this._triggerElement;\n this.dispatchEvent(\n new CustomEvent<ModalEventDetail>('it-modal-open', { detail: { modal: this }, bubbles: true, composed: true }),\n );\n this.open = true;\n }\n\n public hide(): void {\n if (!this.open || this.isAnimating) return;\n this.dispatchEvent(\n new CustomEvent<ModalEventDetail>('it-modal-close', { detail: { modal: this }, bubbles: true, composed: true }),\n );\n this._hideModal();\n }\n\n public toggle(): void {\n this.open = !this.open;\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if (changedProperties.has('open')) {\n if (this._isSelfClosing) {\n this._isSelfClosing = false;\n return;\n }\n this._cleanupAnimations();\n if (this.open !== undefined) {\n if (this.open) this._showModal();\n else this._hideModal();\n }\n }\n if (changedProperties.has('_safariMouseInteraction')) {\n let realButton: HTMLElement | null = this._triggerElement;\n if (realButton?.tagName.toLowerCase() === 'it-button') {\n realButton = this._triggerElement?.shadowRoot?.querySelector('button')!;\n }\n if (!realButton) return;\n // Fix Safari: se l'interazione è da mouse, rimuovi outline e box-shadow forzati per evitare il doppio focus ring\n if (this._safariMouseInteraction) {\n realButton.style.setProperty('outline', '0', 'important');\n realButton.style.setProperty('box-shadow', 'none', 'important');\n } else {\n realButton.style.removeProperty('outline');\n realButton.style.removeProperty('box-shadow');\n }\n }\n }\n\n private _applyInert(): void {\n this._removeInert();\n const trigger = this._triggerElement;\n if (trigger) {\n this._triggerPointerBefore = trigger.style.pointerEvents;\n trigger.style.pointerEvents = 'none';\n trigger.setAttribute('inert', '');\n if (trigger.tagName.toLowerCase().startsWith('it-')) {\n trigger.setAttribute('it-inert', '');\n }\n }\n const ignored = new Set(['SCRIPT', 'STYLE', 'TEMPLATE', 'LINK']);\n for (let cur: HTMLElement | null = this; cur && cur !== document.body; cur = cur.parentElement) {\n const parent = cur.parentElement;\n if (!parent) break;\n Array.from(parent.children).forEach((node) => {\n if (node !== cur && !ignored.has(node.tagName) && node instanceof HTMLElement) {\n node.setAttribute('inert', '');\n\n // // FIX FOR SAFARI/VOICEOVER:\n // // If it's a web component with a shadow root, VoiceOver might still\n // // find the inner button.\n if (node.shadowRoot && isSafari) {\n node.setAttribute('inert', '');\n node.setAttribute('it-inert', '');\n }\n\n this._inertElements.push(node);\n }\n });\n }\n }\n\n private _removeInert(): void {\n this._inertElements.forEach((el) => {\n el.removeAttribute('inert');\n el.removeAttribute('it-inert');\n });\n if (this._triggerElement && this._triggerPointerBefore !== null) {\n this._triggerElement.style.pointerEvents = this._triggerPointerBefore;\n this._triggerElement.removeAttribute('inert');\n this._triggerElement.removeAttribute('it-inert');\n }\n this._inertElements = [];\n this._triggerPointerBefore = null;\n }\n\n // eslint-disable-next-line class-methods-use-this\n private _handleDialogClick = (event: Event): void => {\n const path = event.composedPath();\n // Check that is not footer or react synthetic events break on buttons\n const isInFooter = path.some((el) => el instanceof HTMLElement && el.slot === 'footer');\n\n if (!isInFooter) {\n event.stopPropagation(); // solo per backdrop\n }\n };\n\n private _handleBackdropClick = (): void => {\n if (!this.staticBackdrop) {\n this.hide();\n }\n };\n\n private async _showModal(): Promise<void> {\n if (this.isAnimating) return;\n // Cancel any stale close-focus-restore timer so it doesn't fire during the new open.\n if (this._restoreFocusTimer !== null) {\n clearTimeout(this._restoreFocusTimer);\n this._restoreFocusTimer = null;\n }\n this.isAnimating = true;\n this._applyInert();\n WindowManager.lockBodyScroll();\n\n // ASPETTA LIT o race conditions solo per Safari\n await this.updateComplete;\n\n requestAnimationFrame(() => {\n // Determine transform based on position\n let dialogStartTransform = 'translate(0, 0)'; // default: no transform\n if (this.position === 'center') {\n dialogStartTransform = 'translate(0, -5%)';\n } else if (this.position === 'left') {\n dialogStartTransform = 'translateX(-100%)';\n } else if (this.position === 'right') {\n dialogStartTransform = 'translateX(100%)';\n }\n\n const dialogDuration = !this.disableAnimation && !this.prefersReducedMotion ? this._dialogAnimationDuration : 0;\n const backdropDuration =\n !this.disableAnimation && !this.prefersReducedMotion ? this._backdropAnimationDuration : 0;\n\n // Animate backdrop fade in\n if (this._backdropElement) {\n this._backdropAnimation = this._backdropElement.animate([{ opacity: '0' }, { opacity: '0.8' }], {\n duration: backdropDuration,\n easing: 'linear',\n fill: 'forwards',\n });\n }\n\n // Animate dialog transform (slide/drop in)\n if (this._dialogElement && dialogDuration > 0) {\n this._dialogAnimation = this._dialogElement.animate(\n [{ transform: dialogStartTransform }, { transform: 'translate(0, 0)' }],\n {\n duration: dialogDuration,\n easing: 'ease-in-out',\n fill: 'forwards',\n },\n );\n\n this._dialogAnimation.finished\n .then(() => {\n if (this.open) {\n this._focusTrap.activate();\n }\n })\n .finally(() => {\n this.isAnimating = false;\n });\n } else {\n // No animation: activate immediately. The 50ms inside activate()'s setTimeout\n // gives VoiceOver iOS enough time to settle its accessibility tree.\n // See FocusTrapController class comment for full rationale.\n this._focusTrap.activate();\n this.isAnimating = false;\n }\n });\n }\n\n private _hideModal(): void {\n if (this.isAnimating) return;\n this.isAnimating = true;\n\n // Determine end transform based on position\n let dialogEndTransform = 'translate(0, 0)'; // default: no transform\n let dialogCloseDuration = this._dialogAnimationDuration / 1.33;\n\n if (this.position === 'center') {\n dialogEndTransform = 'translate(0, -5%)';\n // Dialog più veloce quando è centrato per una chiusura più reattiva\n dialogCloseDuration = this._dialogAnimationDuration / 2;\n } else if (this.position === 'left') {\n dialogEndTransform = 'translateX(-100%)';\n } else if (this.position === 'right') {\n dialogEndTransform = 'translateX(100%)';\n }\n\n const dialogDuration = !this.disableAnimation && !this.prefersReducedMotion ? dialogCloseDuration : 0;\n const backdropDuration =\n !this.disableAnimation && !this.prefersReducedMotion ? this._backdropAnimationDuration / 1.33 : 0;\n\n const finishHide = () => {\n const target = this._originalTrigger ?? this._triggerElement;\n this._removeInert();\n this._cleanupAnimations();\n // skipFocusRestore: we manage focus restore ourselves with the timer below.\n // Without this, _restoreFocus() fires at 0ms and the timer fires at 20ms,\n // causing VoiceOver to announce the restored element twice.\n this._focusTrap.deactivate({ skipFocusRestore: true });\n WindowManager.unlockBodyScroll();\n this._isSelfClosing = true;\n this.isAnimating = false;\n this.open = false;\n if (target) {\n this._restoreFocusTimer = setTimeout(() => {\n this._restoreFocusTimer = null;\n if (!this.open) target.focus({ preventScroll: true });\n }, 20);\n }\n this._originalTrigger = null;\n if (isSafari) this._safariMouseInteraction = false;\n };\n\n // Animate dialog and backdrop in parallel for smoother close\n const animations: Promise<Animation>[] = [];\n\n if (this._dialogElement && dialogDuration > 0) {\n this._dialogAnimation = this._dialogElement.animate(\n [\n { transform: 'translate(0, 0)', opacity: '1' },\n { transform: dialogEndTransform, opacity: '0' },\n ],\n {\n duration: dialogDuration,\n easing: 'ease-in',\n fill: 'forwards',\n },\n );\n animations.push(this._dialogAnimation.finished);\n }\n\n if (this._backdropElement && backdropDuration > 0) {\n this._backdropAnimation = this._backdropElement.animate([{ opacity: '0.8' }, { opacity: '0' }], {\n duration: backdropDuration,\n easing: 'linear',\n fill: 'forwards',\n });\n animations.push(this._backdropAnimation.finished);\n }\n\n if (animations.length > 0) {\n Promise.all(animations)\n .then(() => finishHide())\n .catch(() => {\n // Animation was cancelled\n finishHide();\n })\n .finally(() => {\n this.isAnimating = false;\n });\n } else {\n // No animation, finish immediately\n finishHide();\n }\n }\n\n private _cleanupAnimations(): void {\n this._dialogAnimation?.cancel();\n this._backdropAnimation?.cancel();\n this._dialogAnimation = undefined;\n this._backdropAnimation = undefined;\n }\n\n private _onTriggerSlotChange = (): void => {\n this._setupTriggerListeners();\n };\n\n private _onHeaderSlotChange = (): void => {\n this.requestUpdate();\n };\n\n private _setupTriggerListeners(): void {\n const trigger = this._triggerElement;\n if (!trigger) return;\n\n trigger.setAttribute('id', this._triggerId);\n // Rimuovi eventuali listener precedenti\n trigger.removeEventListener('click', this._onTriggerClick);\n trigger.removeEventListener('keydown', this._onTriggerKeydown);\n\n // Aggiungi nuovi listener\n trigger.addEventListener('click', this._onTriggerClick);\n trigger.addEventListener('keydown', this._onTriggerKeydown);\n }\n\n private _removeTriggerListeners(): void {\n const trigger = this._triggerElement;\n if (!trigger) return;\n\n trigger.removeEventListener('click', this._onTriggerClick);\n trigger.removeEventListener('keydown', this._onTriggerKeydown);\n }\n\n private _onTriggerClick = async (event: Event): Promise<void> => {\n event.stopPropagation();\n const trigger = this._triggerElement;\n if (!trigger) return;\n if (isSafari) {\n this._safariMouseInteraction = true;\n }\n await this.updateComplete; // Assicurati che l'update sia completo prima di applicare il focus workaround\n this.show();\n };\n\n private _onTriggerKeydown = async (event: Event): Promise<void> => {\n if ((event as KeyboardEvent).key === 'Enter' || (event as KeyboardEvent).key === ' ') {\n event.preventDefault();\n this.show();\n } else {\n const trigger = this._triggerElement;\n if (!trigger) return;\n if (isSafari) {\n this._safariMouseInteraction = false;\n }\n await this.updateComplete; // Assicurati che l'update sia completo prima di applicare il focus workaround\n }\n };\n\n private get _modalClasses() {\n return {\n modal: true,\n fade: !this.disableAnimation,\n show: Boolean(this.open) && !this.disableAnimation,\n 'alert-modal': this.variant === 'alert',\n 'popconfirm-modal': this.variant === 'popconfirm',\n 'it-dialog-link-list': this.variant === 'link-list',\n 'it-dialog-scrollable': this.scrollable || this.position === 'left' || this.position === 'right',\n };\n }\n\n private get _modalBodyClasses() {\n return {\n 'modal-dialog': true,\n 'modal-dialog-centered': this.position === 'center',\n 'modal-dialog-left': this.position === 'left',\n 'modal-dialog-right': this.position === 'right',\n 'modal-dialog-scrollable': this.scrollable,\n 'modal-sm': this.size === 'sm',\n 'modal-lg': this.size === 'lg',\n 'modal-xl': this.size === 'xl',\n };\n }\n\n private _renderCloseButton() {\n if (this.hideCloseButton || this.variant === 'popconfirm') {\n return '';\n }\n\n return html`<it-button\n class=\"btn-close\"\n variant=\"link\"\n size=\"lg\"\n part=\"close-button\"\n exportparts=\"focusable, button, button:close-button-button\"\n @click=\"${() => this.hide()}\"\n >\n <it-icon name=\"it-close\" size=\"lg\"></it-icon>\n <span class=\"visually-hidden\">${this.closeLabel}</span>\n </it-button>`;\n }\n\n render() {\n const hasHeader =\n (this.modalTitle || this._headerSlot?.assignedElements({ flatten: true }).length > 0) && !this.customHeader;\n\n const enableFocusContent = this.scrollable || this.position === 'left' || this.position === 'right';\n let ariaLabelledBy = hasHeader ? this._titleId : undefined;\n\n if (this.itAriaLabel) {\n ariaLabelledBy = undefined;\n }\n\n return html`\n <slot name=\"trigger\" @slotchange=${this._onTriggerSlotChange}></slot>\n <div\n class=\"${classMap(this._modalClasses)}\"\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"${ifDefined(ariaLabelledBy)}\"\n aria-describedby=\"${ifDefined(this._descriptionId)}\"\n aria-label=\"${ifDefined(this.itAriaLabel || undefined)}\"\n aria-hidden=\"${!this.open}\"\n tabindex=\"-1\"\n @click=\"${this._handleBackdropClick}\"\n part=\"modal\"\n >\n <!-- TRICK SAFARI ENGINE -->\n <div\n id=\"safari-focus-anchor\"\n tabindex=\"-1\"\n aria-hidden=\"true\"\n style=\"position: absolute; width: 0; height: 0; outline: none;\"\n ></div>\n <div\n class=\"${classMap(this._modalBodyClasses)}\"\n role=\"document\"\n @click=\"${this._handleDialogClick}\"\n part=\"modal-content-wrapper\"\n >\n ${this.closeButtonPlacement === 'backdrop' ? this._renderCloseButton() : ''}\n <div class=\"visually-hidden\" id=\"${this._descriptionId}\">\n <slot name=\"description\" @slotchange=\"${this._onHeaderSlotChange}\">${this.modalDescription}</slot>\n </div>\n <div class=\"modal-content\" part=\"modal-content\">\n <div\n class=\"${hasHeader || (this.variant !== 'popconfirm' && !this.hideCloseButton) ? 'modal-header' : ''}\"\n part=\"modal-header\"\n >\n <slot name=\"header-icon\"></slot>\n ${hasHeader\n ? html`<h2 id=\"${this._titleId}\" class=\"modal-title\">\n <slot name=\"header\" @slotchange=\"${this._onHeaderSlotChange}\">${this.modalTitle}</slot>\n </h2>`\n : html`<div><slot name=\"header\" @slotchange=\"${this._onHeaderSlotChange}\"></slot></div>`}\n ${this.closeButtonPlacement === 'header' ? this._renderCloseButton() : ''}\n </div>\n <div class=\"modal-body\" tabindex=\"${enableFocusContent ? '0' : '-1'}\" part=\"focusable modal-body\">\n <slot name=\"content\"></slot>\n </div>\n <div class=\"modal-footer ${this.footerShadow ? 'modal-footer-shadow' : ''}\" part=\"modal-footer\">\n <slot name=\"footer\"></slot>\n </div>\n </div>\n </div>\n </div>\n <div\n class=\"modal-backdrop ${this.disableAnimation ? 'fade' : ''} ${this.open ? 'show' : ''}\"\n aria-hidden=\"true\"\n @click=\"${() => !this.staticBackdrop && this.hide()}\"\n part=\"modal-backdrop\"\n ></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C,0BAA0B,CAAC;8BAA4B,eAAe;AAAC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAE5C,UAAA,CAAA;IAAjC,KAAK,CAAC,iBAAiB,CAAC;8BAA4B,WAAW;AAAC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,kBAAA,EAAA,MAAA,CAAA;AAEjC,UAAA,CAAA;IAA/B,KAAK,CAAC,eAAe,CAAC;8BAA0B,WAAW;AAAC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,gBAAA,EAAA,MAAA,CAAA;AAerD,UAAA,CAAA;AADP,IAAA,KAAK,EAAE;;AACgC,CAAA,EAAA,OAAA,CAAA,SAAA,EAAA,yBAAA,EAAA,MAAA,CAAA;AA9D7B,OAAO,GAAA,UAAA,CAAA;IADnB,aAAa,CAAC,UAAU,CAAC;;AACb,CAAA,EAAA,OAAO,CAsjBnB;;;;","x_google_ignoreList":[0,2]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const MODAL_SIZES: readonly ["sm", "lg", "xl"];
|
|
2
|
+
export declare const MODAL_POSITIONS: readonly ["center", "left", "right"];
|
|
3
|
+
export declare const MODAL_VARIANTS: readonly ["alert", "popconfirm", "link-list"];
|
|
4
|
+
export type ModalSize = (typeof MODAL_SIZES)[number] | '';
|
|
5
|
+
export type ModalPosition = (typeof MODAL_POSITIONS)[number];
|
|
6
|
+
export type ModalVariant = (typeof MODAL_VARIANTS)[number];
|
|
7
|
+
export interface ModalEventDetail {
|
|
8
|
+
/** Riferimento all'elemento modale */
|
|
9
|
+
modal: HTMLElement;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,6BAA8B,CAAC;AACvD,eAAO,MAAM,eAAe,sCAAuC,CAAC;AACpE,eAAO,MAAM,cAAc,+CAAgD,CAAC;AAE5E,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,sCAAsC;IACtC,KAAK,EAAE,WAAW,CAAC;CACpB"}
|
package/package.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@italia/modal",
|
|
3
|
+
"description": "Web component it-modal del Design system .italia",
|
|
4
|
+
"version": "1.0.0-alpha.10",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"license": "BSD-3-Clause",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/italia/dev-kit-italia.git",
|
|
12
|
+
"directory": "packages/modal"
|
|
13
|
+
},
|
|
14
|
+
"author": "Presidenza del Consiglio dei Ministri",
|
|
15
|
+
"homepage": "https://italia.github.io/dev-kit-italia",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/italia/dev-kit-italia/issues"
|
|
18
|
+
},
|
|
19
|
+
"type": "module",
|
|
20
|
+
"main": "./dist/src/index.js",
|
|
21
|
+
"module": "./dist/src/index.js",
|
|
22
|
+
"types": "./dist/src/index.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
".": "./dist/src/index.js",
|
|
25
|
+
"./it-modal.js": "./dist/src/it-modal.js",
|
|
26
|
+
"./styles/*": "./styles/*"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"dist/src",
|
|
30
|
+
"styles",
|
|
31
|
+
"README.md",
|
|
32
|
+
"AUTHORS",
|
|
33
|
+
"LICENSE",
|
|
34
|
+
"custom-elements.json"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"bootstrap-italia": "3.0.0-alpha.9",
|
|
38
|
+
"lit": "^3.3.0",
|
|
39
|
+
"@italia/globals": "^1.0.0-alpha.10"
|
|
40
|
+
},
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
43
|
+
"@open-wc/testing": "^4.0.0",
|
|
44
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
45
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
46
|
+
"@types/mocha": "^10.0.10",
|
|
47
|
+
"@web/test-runner": "^0.18.2",
|
|
48
|
+
"rimraf": "^6.0.1",
|
|
49
|
+
"rollup": "^4.42.0",
|
|
50
|
+
"rollup-plugin-scss-lit": "^2.1.0",
|
|
51
|
+
"sass": "^1.89.0",
|
|
52
|
+
"tslib": "^2.6.3",
|
|
53
|
+
"typescript": "^5.5.3",
|
|
54
|
+
"@italia/test-config": "^0.0.0",
|
|
55
|
+
"@italia/button": "^1.0.0-alpha.10",
|
|
56
|
+
"@italia/icon": "^1.0.0-alpha.10",
|
|
57
|
+
"@italia/typescript-config": "^0.0.0"
|
|
58
|
+
},
|
|
59
|
+
"peerDependencies": {
|
|
60
|
+
"@italia/button": "^1.0.0-alpha.10",
|
|
61
|
+
"@italia/icon": "^1.0.0-alpha.10"
|
|
62
|
+
},
|
|
63
|
+
"customElements": "custom-elements.json",
|
|
64
|
+
"scripts": {
|
|
65
|
+
"analyze": "cem analyze --litelement --exclude dist",
|
|
66
|
+
"build": "rollup --config rollup.config.js",
|
|
67
|
+
"clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
|
|
68
|
+
"prepublish": "pnpm build",
|
|
69
|
+
"lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint \"styles/**/*.scss\" \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" --check",
|
|
70
|
+
"format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint --fix \"styles/**/*.scss\" \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\"",
|
|
71
|
+
"test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
|
|
72
|
+
"test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Global styles that need to be imported at page level
|
|
2
|
+
// These styles affect elements outside the shadow DOM
|
|
3
|
+
|
|
4
|
+
@import 'bootstrap-italia/src/scss/base/functions';
|
|
5
|
+
@import 'bootstrap-italia/src/scss/base/variables';
|
|
6
|
+
|
|
7
|
+
// Body scroll lock when modal is open
|
|
8
|
+
body.modal-open {
|
|
9
|
+
overflow: hidden;
|
|
10
|
+
padding-right: var(--modal-scrollbar-width, 0);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
it-modal:not(:defined) :not([slot='trigger']) {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
it-modal {
|
|
18
|
+
--it-focus-ring-safari-fix: none;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Rimuovi il flash visivo solo durante l'apertura programmata */
|
|
22
|
+
[part='modal']:focus {
|
|
23
|
+
box-shadow: var(--it-focus-ring-safari-fix) !important;
|
|
24
|
+
outline: var(--it-focus-ring-safari-fix) !important;
|
|
25
|
+
}
|
|
26
|
+
// Impedisce a Safari di mostrare il ring di focus sul container
|
|
27
|
+
// o sui figli quando il focus è indotto da script
|
|
28
|
+
[role='dialog']:focus,
|
|
29
|
+
[role='dialog']:focus-visible,
|
|
30
|
+
*:focus:not(:focus-visible) {
|
|
31
|
+
box-shadow: none !important;
|
|
32
|
+
outline: 0 !important;
|
|
33
|
+
}
|