@italia/bottom-nav 1.0.0-alpha.9 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -77
- package/custom-elements.json +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/it-bottom-nav-item.js +1 -1
- package/dist/src/it-bottom-nav.js +173 -49
- package/dist/src/it-bottom-nav.js.map +1 -1
- package/package.json +21 -21
- package/styles/globals.scss +4 -3
- package/LICENSE +0 -11
package/README.md
CHANGED
|
@@ -1,82 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <it-bottom-nav>
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This package is part of [dev-kit-italia](https://italia.github.io/dev-kit-italia), a Web Components kit for the **.italia** design-system.
|
|
4
4
|
|
|
5
|
-
## Installation
|
|
5
|
+
## Installation and usage
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
npm i @italia/bottom-nav
|
|
9
|
-
```
|
|
7
|
+
Most users want to install the full kit by installing [`@italia/dev-kit-italia`](https://npmjs.com/package/@italia/dev-kit-italia), but you have the option of installing this single Web Component separately if needed. Please find detailed installation and usage instructions in the [official documentation](https://italia.github.io/dev-kit-italia/?path=/docs/introduzione--documentazione).
|
|
10
8
|
|
|
11
|
-
##
|
|
9
|
+
## Documentation
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
<script type="module">
|
|
15
|
-
import '@italia/bottom-nav';
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<it-bottom-nav>
|
|
19
|
-
<it-bottom-nav-item>
|
|
20
|
-
<a href="/">
|
|
21
|
-
<it-icon name="it-pa"></it-icon>
|
|
22
|
-
Home
|
|
23
|
-
</a>
|
|
24
|
-
</it-bottom-nav-item>
|
|
25
|
-
</it-bottom-nav>
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Linting and formatting
|
|
29
|
-
|
|
30
|
-
To scan the project for linting and formatting errors, run
|
|
31
|
-
|
|
32
|
-
```bash
|
|
33
|
-
npm run lint
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
To automatically fix linting and formatting errors, run
|
|
37
|
-
|
|
38
|
-
```bash
|
|
39
|
-
npm run format
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
## Testing with Web Test Runner
|
|
43
|
-
|
|
44
|
-
To execute a single test run:
|
|
45
|
-
|
|
46
|
-
```bash
|
|
47
|
-
npm run test
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
To run the tests in interactive watch mode run:
|
|
51
|
-
|
|
52
|
-
```bash
|
|
53
|
-
npm run test:watch
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
## Demoing with Storybook
|
|
57
|
-
|
|
58
|
-
To run a local instance of Storybook for your component, run
|
|
59
|
-
|
|
60
|
-
```bash
|
|
61
|
-
npm run storybook
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
To build a production version of Storybook, run
|
|
65
|
-
|
|
66
|
-
```bash
|
|
67
|
-
npm run storybook:build
|
|
68
|
-
```
|
|
69
|
-
|
|
70
|
-
## Tooling configs
|
|
71
|
-
|
|
72
|
-
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
|
73
|
-
|
|
74
|
-
If you customize the configuration a lot, you can consider moving them to individual files.
|
|
75
|
-
|
|
76
|
-
## Local Demo with `web-dev-server`
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
npm start
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
To run a local development server that serves the basic demo located in `demo/index.html`
|
|
11
|
+
Find the usage instructions for this specific component in its [dedicated documentation page](https://italia.github.io/dev-kit-italia/?path=/docs/componenti-bottomnav--documentazione).
|
package/custom-elements.json
CHANGED
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
{
|
|
209
209
|
"kind": "variable",
|
|
210
210
|
"name": "meta",
|
|
211
|
-
"default": "{ title: 'Componenti/Bottomnav', tags: ['
|
|
211
|
+
"default": "{ title: 'Componenti/Bottomnav', tags: ['web-component', 'a11y-ok'], component: 'it-bottom-nav', parameters: { docs: { excludeDecorators: true }, a11y: { config: { rules: [ { id: 'list', enabled: false, }, { id: 'listitem', enabled: false, }, ], }, }, }, args: { 'it-aria-label': 'Navigazione principale', }, argTypes: { 'it-aria-label': { control: 'text', description: 'Testo usato come `aria-label` sul contenitore di navigazione.', }, }, decorators: [ (Story) => html` <div style=\"height: 400px;width:400px;background-color:#f5f5f5;border:1px solid #cecece;position:relative;margin:-0.5rem;transform:translateZ(0);overflow:hidden;\" > <div style=\"height: calc(100% - var(--it-bottom-nav-height)); overflow-y: scroll;\"> <div style=\"height: 600px;\"></div> </div> ${Story()} </div> `, ], } satisfies Meta<BottomNavProps>"
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"kind": "variable",
|
package/dist/src/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { ItBottomNav } from './it-bottom-nav.js';
|
|
2
|
-
export { I as ItBottomNavItem } from '../it-bottom-nav-item-
|
|
2
|
+
export { I as ItBottomNavItem } from '../it-bottom-nav-item-Sk-1yFKI.js';
|
|
3
3
|
import 'lit/decorators.js';
|
|
4
4
|
import 'lit/directive.js';
|
|
5
5
|
import 'lit';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate$1, a as __metadata$1, B as BaseComponent$1, I as ItBottomNavItem } from '../it-bottom-nav-item-
|
|
1
|
+
import { _ as __decorate$1, a as __metadata$1, B as BaseComponent$1, I as ItBottomNavItem } from '../it-bottom-nav-item-Sk-1yFKI.js';
|
|
2
2
|
import { state, query, property, customElement } from 'lit/decorators.js';
|
|
3
3
|
import { directive, Directive } from 'lit/directive.js';
|
|
4
4
|
import { LitElement, css, html } from 'lit';
|
|
@@ -36,14 +36,80 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
36
36
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
+
const ARIA_IDREF_ATTRIBUTES = new Map([
|
|
40
|
+
['aria-activedescendant', 'ariaActivedescendantElement'],
|
|
41
|
+
['aria-controls', 'ariaControlsElements'],
|
|
42
|
+
['aria-describedby', 'ariaDescribedByElements'],
|
|
43
|
+
['aria-details', 'ariaDetailsElements'],
|
|
44
|
+
['aria-errormessage', 'ariaErrormessageElements'],
|
|
45
|
+
['aria-flowto', 'ariaFlowtoElements'],
|
|
46
|
+
['aria-labelledby', 'ariaLabelledByElements'],
|
|
47
|
+
['aria-owns', 'ariaOwnsElements'],
|
|
48
|
+
]);
|
|
49
|
+
function resolveAriaIdRefs(element, value) {
|
|
50
|
+
const ids = value
|
|
51
|
+
.trim()
|
|
52
|
+
.split(/\s+/)
|
|
53
|
+
.filter((id) => id.length > 0);
|
|
54
|
+
if (ids.length === 0)
|
|
55
|
+
return null;
|
|
56
|
+
const root = element.getRootNode();
|
|
57
|
+
let resolvedElements = [];
|
|
58
|
+
if (root instanceof ShadowRoot) {
|
|
59
|
+
resolvedElements = ids.map((id) => root.getElementById(id));
|
|
60
|
+
}
|
|
61
|
+
else if (root instanceof Document) {
|
|
62
|
+
resolvedElements = ids.map((id) => root.getElementById(id));
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
resolvedElements = ids.map((id) => document.getElementById(id));
|
|
66
|
+
}
|
|
67
|
+
if (resolvedElements.filter((el) => el !== null).length === 0) {
|
|
68
|
+
resolvedElements = ids.map((id) => document.getElementById(id));
|
|
69
|
+
}
|
|
70
|
+
const validElements = resolvedElements.filter((el) => el !== null);
|
|
71
|
+
return validElements.length === ids.length ? validElements : null;
|
|
72
|
+
}
|
|
73
|
+
function setInternalsProperty(el, name, resolvedElements) {
|
|
74
|
+
if (name === 'aria-activedescendant') {
|
|
75
|
+
const [firstElement] = resolvedElements;
|
|
76
|
+
// eslint-disable-next-line no-param-reassign
|
|
77
|
+
el[name] = firstElement;
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
// eslint-disable-next-line no-param-reassign
|
|
81
|
+
el[name] = resolvedElements;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
39
84
|
class SetAttributesDirective extends Directive {
|
|
40
85
|
update(part, [attributes]) {
|
|
41
86
|
const el = part.element;
|
|
87
|
+
const internals = el.internals ?? null;
|
|
42
88
|
for (const [name, value] of Object.entries(attributes)) {
|
|
43
|
-
if (value
|
|
44
|
-
el.setAttribute(name, value);
|
|
45
|
-
else
|
|
89
|
+
if (value == null) {
|
|
46
90
|
el.removeAttribute(name);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
const internalsPropertyName = ARIA_IDREF_ATTRIBUTES.get(name);
|
|
94
|
+
if (internalsPropertyName) {
|
|
95
|
+
const resolvedElements = resolveAriaIdRefs(el, String(value));
|
|
96
|
+
if (resolvedElements) {
|
|
97
|
+
if (internals) {
|
|
98
|
+
// Set on ElementInternals
|
|
99
|
+
setInternalsProperty(internals, internalsPropertyName, resolvedElements);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
// Set internals property on shadowdom item
|
|
103
|
+
el.setAttribute(name, String(value));
|
|
104
|
+
setInternalsProperty(el, internalsPropertyName, resolvedElements);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
// Non-ARIA IDREF attributes: set normally
|
|
110
|
+
el.setAttribute(name, String(value));
|
|
111
|
+
}
|
|
112
|
+
}
|
|
47
113
|
}
|
|
48
114
|
return null;
|
|
49
115
|
}
|
|
@@ -114,7 +180,9 @@ function registerTranslation(...translation) {
|
|
|
114
180
|
});
|
|
115
181
|
update();
|
|
116
182
|
}
|
|
117
|
-
window
|
|
183
|
+
if (typeof window !== 'undefined') {
|
|
184
|
+
window.registerTranslation = registerTranslation;
|
|
185
|
+
}
|
|
118
186
|
/**
|
|
119
187
|
* Localize Reactive Controller for components built with Lit
|
|
120
188
|
*
|
|
@@ -409,6 +477,26 @@ class BaseComponent extends LitElement {
|
|
|
409
477
|
// generate internal _id
|
|
410
478
|
const prefix = this.id?.length > 0 ? this.id : this.tagName.toLowerCase();
|
|
411
479
|
this._id = this.generateId(prefix);
|
|
480
|
+
this.ariaAttributesObserver = new MutationObserver((mutations) => {
|
|
481
|
+
const shouldUpdate = mutations.some((mutation) => {
|
|
482
|
+
if (mutation.type !== 'attributes' || !mutation.attributeName) {
|
|
483
|
+
return false;
|
|
484
|
+
}
|
|
485
|
+
return mutation.attributeName === 'it-role' || mutation.attributeName.startsWith('it-aria-');
|
|
486
|
+
});
|
|
487
|
+
if (shouldUpdate) {
|
|
488
|
+
this.requestUpdate();
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
this.ariaAttributesObserver.observe(this, {
|
|
492
|
+
attributes: true,
|
|
493
|
+
attributeOldValue: true,
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
disconnectedCallback() {
|
|
497
|
+
this.ariaAttributesObserver?.disconnect();
|
|
498
|
+
this.ariaAttributesObserver = undefined;
|
|
499
|
+
super.disconnectedCallback();
|
|
412
500
|
}
|
|
413
501
|
}
|
|
414
502
|
const BaseLocalizedComponent = LocalizeMixin(BaseComponent);
|
|
@@ -841,7 +929,7 @@ class FormControl extends BaseLocalizedComponent {
|
|
|
841
929
|
});
|
|
842
930
|
// TODO: verificare se serve davvero con il fatto che usiamo form-controller
|
|
843
931
|
// static formAssociated = true;
|
|
844
|
-
//
|
|
932
|
+
// @property()
|
|
845
933
|
// internals = this.attachInternals();
|
|
846
934
|
this._touched = false;
|
|
847
935
|
/** The name of the input, submitted as a name/value pair with form data. */
|
|
@@ -1167,7 +1255,7 @@ if (typeof window !== 'undefined') {
|
|
|
1167
1255
|
window._itAnalytics = window._itAnalytics || {};
|
|
1168
1256
|
window._itAnalytics = {
|
|
1169
1257
|
...window._itAnalytics,
|
|
1170
|
-
version: '1.0.0-
|
|
1258
|
+
version: '1.0.0-beta.1',
|
|
1171
1259
|
};
|
|
1172
1260
|
}
|
|
1173
1261
|
|
|
@@ -1190,10 +1278,12 @@ class StickyController {
|
|
|
1190
1278
|
}
|
|
1191
1279
|
constructor(host, hostElement) {
|
|
1192
1280
|
this.visualOrder = 0;
|
|
1281
|
+
this.windowUpdateHandler = this.onWindowUpdate.bind(this);
|
|
1193
1282
|
this.limit = 0;
|
|
1194
1283
|
this.originalLimit = 0;
|
|
1195
1284
|
this.height = 0;
|
|
1196
1285
|
this.prevHeight = 0;
|
|
1286
|
+
this.reservedHeight = 0;
|
|
1197
1287
|
this._isSticky = false;
|
|
1198
1288
|
this.host = host;
|
|
1199
1289
|
this.hostElement = hostElement;
|
|
@@ -1224,9 +1314,14 @@ class StickyController {
|
|
|
1224
1314
|
}
|
|
1225
1315
|
}
|
|
1226
1316
|
else {
|
|
1227
|
-
const currentHeight = this.
|
|
1317
|
+
const currentHeight = this.measureHeight();
|
|
1318
|
+
// const currentHeight =
|
|
1319
|
+
// this.hostElement.getBoundingClientRect().height + Number(this.hostElement.paddingTop || 0);
|
|
1228
1320
|
if (currentHeight !== this.height) {
|
|
1229
1321
|
this.height = currentHeight;
|
|
1322
|
+
if (!this._isSticky) {
|
|
1323
|
+
this.reservedHeight = currentHeight;
|
|
1324
|
+
}
|
|
1230
1325
|
this.computeLimit();
|
|
1231
1326
|
if (this.hostElement.stackable && this._isSticky) {
|
|
1232
1327
|
const offset = this.computeOffset();
|
|
@@ -1262,7 +1357,12 @@ class StickyController {
|
|
|
1262
1357
|
}
|
|
1263
1358
|
// Top elements: recompute limit and enforce correct top position.
|
|
1264
1359
|
this.computeLimit();
|
|
1265
|
-
this.prevHeight = this.
|
|
1360
|
+
this.prevHeight = this.measureHeight();
|
|
1361
|
+
// this.prevHeight = this.hostElement.getBoundingClientRect().height + Number(this.hostElement.paddingTop || 0);
|
|
1362
|
+
if (!this._isSticky) {
|
|
1363
|
+
this.reservedHeight = this.prevHeight;
|
|
1364
|
+
}
|
|
1365
|
+
// If sticky, recalculate position
|
|
1266
1366
|
if (this._isSticky) {
|
|
1267
1367
|
const offset = this.hostElement.stackable ? this.computeOffset() : 0;
|
|
1268
1368
|
this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;
|
|
@@ -1280,9 +1380,13 @@ class StickyController {
|
|
|
1280
1380
|
const rect = this.hostElement.getBoundingClientRect();
|
|
1281
1381
|
const { scrollY } = window;
|
|
1282
1382
|
this.limit = rect.top + scrollY;
|
|
1283
|
-
this.
|
|
1383
|
+
this.originalLimit = this.limit;
|
|
1384
|
+
this.height = rect.height;
|
|
1284
1385
|
}
|
|
1285
1386
|
}
|
|
1387
|
+
measureHeight() {
|
|
1388
|
+
return this.hostElement.getBoundingClientRect().height;
|
|
1389
|
+
}
|
|
1286
1390
|
// eslint-disable-next-line class-methods-use-this
|
|
1287
1391
|
isBeforeInDOM(a, b) {
|
|
1288
1392
|
// https:// developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
|
|
@@ -1353,6 +1457,14 @@ class StickyController {
|
|
|
1353
1457
|
return acc + rect.height + addPad;
|
|
1354
1458
|
}, 0);
|
|
1355
1459
|
}
|
|
1460
|
+
getExtraTriggerOffset() {
|
|
1461
|
+
if (this.hostElement.triggerSelector) {
|
|
1462
|
+
const el = document.querySelector(this.hostElement.triggerSelector);
|
|
1463
|
+
if (el instanceof HTMLElement)
|
|
1464
|
+
return el.offsetHeight;
|
|
1465
|
+
}
|
|
1466
|
+
return Number(this.hostElement.triggerOffset || 0);
|
|
1467
|
+
}
|
|
1356
1468
|
/**
|
|
1357
1469
|
* Returns the nearest ancestor element that creates a CSS fixed-position
|
|
1358
1470
|
* containing block (i.e. has a non-none `transform`, `filter`, or
|
|
@@ -1403,10 +1515,14 @@ class StickyController {
|
|
|
1403
1515
|
// Bottom-fixed elements activate immediately on connect and never scroll-toggle.
|
|
1404
1516
|
if (this.isBottom)
|
|
1405
1517
|
return;
|
|
1406
|
-
const currentHeight = this.
|
|
1518
|
+
const currentHeight = this.measureHeight();
|
|
1519
|
+
// const currentHeight = this.hostElement.getBoundingClientRect().height;
|
|
1407
1520
|
if (forceRecalc && currentHeight !== this.prevHeight) {
|
|
1408
1521
|
this.computeLimit();
|
|
1409
1522
|
this.prevHeight = currentHeight;
|
|
1523
|
+
if (!this._isSticky) {
|
|
1524
|
+
this.reservedHeight = currentHeight;
|
|
1525
|
+
}
|
|
1410
1526
|
}
|
|
1411
1527
|
let offset = 0;
|
|
1412
1528
|
if (this.hostElement.stackable) {
|
|
@@ -1419,7 +1535,7 @@ class StickyController {
|
|
|
1419
1535
|
// Anticipate trigger with larger buffer to avoid overlaps
|
|
1420
1536
|
triggerPoint = this.limit - prevFixedHeight - 40;
|
|
1421
1537
|
}
|
|
1422
|
-
const shouldBeSticky = state.scrollY > triggerPoint - (offset + Number(this.hostElement.paddingTop || 0));
|
|
1538
|
+
const shouldBeSticky = state.scrollY > triggerPoint - (offset + Number(this.hostElement.paddingTop || 0)) + this.getExtraTriggerOffset();
|
|
1423
1539
|
if (shouldBeSticky && !this._isSticky) {
|
|
1424
1540
|
this.applySticky(offset);
|
|
1425
1541
|
this._isSticky = true;
|
|
@@ -1455,6 +1571,10 @@ class StickyController {
|
|
|
1455
1571
|
this.updateAllActiveFixedTopPositions();
|
|
1456
1572
|
}
|
|
1457
1573
|
else {
|
|
1574
|
+
const layoutHeight = this.reservedHeight || this.measureHeight();
|
|
1575
|
+
if (layoutHeight > 0) {
|
|
1576
|
+
this.hostElement.style.minHeight = `${layoutHeight}px`;
|
|
1577
|
+
}
|
|
1458
1578
|
this.hostElement.classList.add(...classes, 'bs-is-sticky');
|
|
1459
1579
|
this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;
|
|
1460
1580
|
}
|
|
@@ -1558,6 +1678,11 @@ class ItSticky extends BaseComponent {
|
|
|
1558
1678
|
this.paddingTop = 0;
|
|
1559
1679
|
this.positionType = 'sticky';
|
|
1560
1680
|
this.stackable = false;
|
|
1681
|
+
/**
|
|
1682
|
+
* Extra pixels to scroll past the element's natural position before sticky activates.
|
|
1683
|
+
* Useful when you want sticky to kick in only after a preceding element (e.g. a header) has scrolled away.
|
|
1684
|
+
*/
|
|
1685
|
+
this.triggerOffset = 0;
|
|
1561
1686
|
/** Which viewport edge to stick to. Use `'bottom'` together with `position-type="fixed"` for a persistent bottom bar. */
|
|
1562
1687
|
this.position = 'top';
|
|
1563
1688
|
this._stickyController = new StickyController(this, this);
|
|
@@ -1595,6 +1720,14 @@ __decorate([
|
|
|
1595
1720
|
property({ reflect: true, type: Boolean }),
|
|
1596
1721
|
__metadata("design:type", Object)
|
|
1597
1722
|
], ItSticky.prototype, "stackable", void 0);
|
|
1723
|
+
__decorate([
|
|
1724
|
+
property({ reflect: true, type: Number, attribute: 'trigger-offset' }),
|
|
1725
|
+
__metadata("design:type", Object)
|
|
1726
|
+
], ItSticky.prototype, "triggerOffset", void 0);
|
|
1727
|
+
__decorate([
|
|
1728
|
+
property({ reflect: true, attribute: 'trigger-selector' }),
|
|
1729
|
+
__metadata("design:type", Object)
|
|
1730
|
+
], ItSticky.prototype, "triggerSelector", void 0);
|
|
1598
1731
|
__decorate([
|
|
1599
1732
|
property({ reflect: true }),
|
|
1600
1733
|
__metadata("design:type", String)
|
|
@@ -1603,20 +1736,7 @@ if (!customElements.get('it-sticky')) {
|
|
|
1603
1736
|
customElements.define('it-sticky', ItSticky);
|
|
1604
1737
|
}
|
|
1605
1738
|
|
|
1606
|
-
var styles = css
|
|
1607
|
-
/***************************** 2 ****************************************/
|
|
1608
|
-
/***************************** 1 ****************************************/
|
|
1609
|
-
/***************************** 2 ****************************************/
|
|
1610
|
-
/***************************** 1 ****************************************/
|
|
1611
|
-
/***************************** 2 ****************************************/
|
|
1612
|
-
/***************************** 3 ****************************************/
|
|
1613
|
-
/***************************** 1 ****************************************/
|
|
1614
|
-
/***************************** 2 ****************************************/
|
|
1615
|
-
/***************************** 3 ****************************************/
|
|
1616
|
-
/***************************** NEUTRAL 1 ****************************************/
|
|
1617
|
-
/***************************** NEUTRAL 2 ****************************************/
|
|
1618
|
-
/***************************** NEUTRAL 2 / 3 ****************************************/
|
|
1619
|
-
.bottom-nav {
|
|
1739
|
+
var styles = css`.bottom-nav {
|
|
1620
1740
|
--bsi-bottom-nav-height: 96px;
|
|
1621
1741
|
--bsi-bottom-nav-list-height: 64px;
|
|
1622
1742
|
--bsi-bottom-nav-item-margin: var(--bsi-spacing-xxs);
|
|
@@ -1640,43 +1760,47 @@ var styles = css`/***************************** 1 ******************************
|
|
|
1640
1760
|
--bsi-bottom-nav-shadow-opacity: 0.18;
|
|
1641
1761
|
--bsi-bottom-nav-shadow-transform: translateY(-50%) scalex(1.4) scaleY(0.12);
|
|
1642
1762
|
--bsi-bottom-nav-shadow-background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0) 60%);
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
/* stylelint-disable-next-line no-duplicate-selectors */
|
|
1766
|
+
.bottom-nav {
|
|
1643
1767
|
position: fixed;
|
|
1768
|
+
right: 0;
|
|
1644
1769
|
bottom: 0;
|
|
1645
1770
|
left: 0;
|
|
1646
|
-
right: 0;
|
|
1647
|
-
overflow: hidden;
|
|
1648
1771
|
height: var(--bsi-bottom-nav-height);
|
|
1772
|
+
overflow: hidden;
|
|
1649
1773
|
}
|
|
1650
1774
|
.bottom-nav:before {
|
|
1651
|
-
content: "";
|
|
1652
1775
|
position: absolute;
|
|
1653
|
-
height: var(--bsi-bottom-nav-shadow-height);
|
|
1654
|
-
width: 100%;
|
|
1655
1776
|
top: var(--bsi-bottom-nav-shadow-top);
|
|
1656
1777
|
z-index: 10;
|
|
1657
|
-
|
|
1778
|
+
content: "";
|
|
1779
|
+
width: 100%;
|
|
1780
|
+
height: var(--bsi-bottom-nav-shadow-height);
|
|
1658
1781
|
border-radius: 50%;
|
|
1659
|
-
transform: var(--bsi-bottom-nav-shadow-transform);
|
|
1660
1782
|
opacity: var(--bsi-bottom-nav-shadow-opacity);
|
|
1783
|
+
background: var(--bsi-bottom-nav-shadow-background);
|
|
1784
|
+
transform: var(--bsi-bottom-nav-shadow-transform);
|
|
1661
1785
|
}
|
|
1662
1786
|
.bottom-nav ul {
|
|
1663
1787
|
position: absolute;
|
|
1788
|
+
right: 0;
|
|
1664
1789
|
bottom: 0;
|
|
1665
1790
|
left: 0;
|
|
1666
|
-
right: 0;
|
|
1667
|
-
width: 100%;
|
|
1668
1791
|
z-index: 20;
|
|
1669
|
-
background-color: var(--bsi-color-background-inverse);
|
|
1670
1792
|
display: flex;
|
|
1671
|
-
justify-content: space-around;
|
|
1672
1793
|
align-items: center;
|
|
1673
|
-
|
|
1674
|
-
|
|
1794
|
+
justify-content: space-around;
|
|
1795
|
+
width: 100%;
|
|
1675
1796
|
height: var(--bsi-bottom-nav-list-height);
|
|
1797
|
+
margin: 0;
|
|
1798
|
+
padding: 0;
|
|
1799
|
+
background-color: var(--bsi-color-background-inverse);
|
|
1676
1800
|
}
|
|
1677
1801
|
.bottom-nav ul li {
|
|
1678
|
-
list-style-type: none;
|
|
1679
1802
|
margin: var(--bsi-bottom-nav-item-margin);
|
|
1803
|
+
list-style-type: none;
|
|
1680
1804
|
text-align: center;
|
|
1681
1805
|
}
|
|
1682
1806
|
.bottom-nav a {
|
|
@@ -1700,9 +1824,9 @@ var styles = css`/***************************** 1 ******************************
|
|
|
1700
1824
|
}
|
|
1701
1825
|
.bottom-nav .it-ico {
|
|
1702
1826
|
position: relative;
|
|
1703
|
-
font-size: var(--bsi-bottom-nav-icon-font-size);
|
|
1704
1827
|
display: block;
|
|
1705
1828
|
height: var(--bsi-bottom-nav-icon-height);
|
|
1829
|
+
font-size: var(--bsi-bottom-nav-icon-font-size);
|
|
1706
1830
|
}
|
|
1707
1831
|
.bottom-nav .it-ico:before {
|
|
1708
1832
|
margin-right: 0;
|
|
@@ -1712,21 +1836,21 @@ var styles = css`/***************************** 1 ******************************
|
|
|
1712
1836
|
}
|
|
1713
1837
|
.bottom-nav .bottom-nav-badge,
|
|
1714
1838
|
.bottom-nav .bottom-nav-alert {
|
|
1715
|
-
display: block;
|
|
1716
1839
|
position: absolute;
|
|
1717
|
-
|
|
1840
|
+
display: block;
|
|
1718
1841
|
border: 1px solid var(--bsi-bottom-nav-badge-border-color);
|
|
1842
|
+
background-color: var(--bsi-bottom-nav-badge-bg);
|
|
1719
1843
|
}
|
|
1720
1844
|
.bottom-nav .bottom-nav-badge {
|
|
1721
1845
|
top: 0;
|
|
1722
1846
|
right: 0;
|
|
1723
1847
|
min-width: 1.15rem;
|
|
1724
|
-
|
|
1725
|
-
|
|
1848
|
+
padding: var(--bsi-spacing-3xs);
|
|
1849
|
+
border-radius: var(--bsi-bottom-nav-badge-radius);
|
|
1726
1850
|
color: var(--bsi-bottom-nav-badge-color);
|
|
1727
1851
|
font-size: var(--bsi-bottom-nav-badge-font-size);
|
|
1728
|
-
|
|
1729
|
-
|
|
1852
|
+
font-style: var(--bsi-font-weight-solid);
|
|
1853
|
+
line-height: 1;
|
|
1730
1854
|
}
|
|
1731
1855
|
.bottom-nav .bottom-nav-alert {
|
|
1732
1856
|
top: 0;
|
|
@@ -1736,11 +1860,11 @@ var styles = css`/***************************** 1 ******************************
|
|
|
1736
1860
|
border-radius: var(--bsi-radius-circle);
|
|
1737
1861
|
}
|
|
1738
1862
|
.bottom-nav .bottom-nav-label {
|
|
1863
|
+
display: block;
|
|
1739
1864
|
margin-top: var(--bsi-bottom-nav-label-margin-top);
|
|
1740
1865
|
font-size: var(--bsi-bottom-nav-label-font-size);
|
|
1741
|
-
line-height: 1;
|
|
1742
|
-
display: block;
|
|
1743
1866
|
font-weight: var(--bsi-bottom-nav-label-font-weight);
|
|
1867
|
+
line-height: 1;
|
|
1744
1868
|
}
|
|
1745
1869
|
|
|
1746
1870
|
.bottom-nav {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"it-bottom-nav.js","sources":["../../../sticky/dist/it-sticky-CUae0Q6L.js","../../../src/it-bottom-nav.ts"],"sourcesContent":["import { state, query, property } from 'lit/decorators.js';\nimport { directive, Directive } from 'lit/directive.js';\nimport { LitElement } from 'lit';\n\n/******************************************************************************\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\n\r\nfunction __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\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\ntypeof 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};\n\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*/\ndirective(SetAttributesDirective);\n\nfunction 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}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}\n\nconst connectedElements = new Set();\nif (window && !window.translations) {\n window.translations = new Map();\n}\nconst { translations } = window;\nlet fallback;\n// TODO: We need some way for users to be able to set these on the server.\nlet documentDirection = 'ltr';\n// Fallback for server.\nlet documentLanguage = 'en';\nconst isClient = typeof MutationObserver !== 'undefined' &&\n typeof document !== 'undefined' &&\n typeof document.documentElement !== 'undefined';\n/** Updates all localized elements that are currently connected */\nfunction update() {\n if (isClient) {\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n }\n [...connectedElements.keys()].forEach((el) => {\n const litEl = el;\n if (typeof litEl.requestUpdate === 'function') {\n litEl.requestUpdate();\n }\n });\n}\nif (isClient) {\n const documentElementObserver = new MutationObserver(update);\n documentDirection = document.documentElement.dir || 'ltr';\n documentLanguage = document.documentElement.lang || navigator.language;\n // Watch for changes on <html lang>\n documentElementObserver.observe(document.documentElement, {\n attributes: true,\n attributeFilter: ['dir', 'lang'],\n });\n}\n/** Registers one or more translations */\nfunction registerTranslation(...translation) {\n translation.forEach((t) => {\n const code = t.$code.toLowerCase();\n if (translations.has(code)) {\n // Merge translations that share the same language code\n translations.set(code, { ...translations.get(code), ...t });\n }\n else {\n translations.set(code, t);\n }\n // The first translation that's registered is the fallback\n if (!fallback) {\n fallback = t;\n }\n });\n update();\n}\nwindow.registerTranslation = registerTranslation;\n/**\n * Localize Reactive Controller for components built with Lit\n *\n * To use this controller, import the class and instantiate it in a custom element constructor:\n *\n * private localize = new LocalizeController(this);\n *\n * This will add the element to the set and make it respond to changes to <html dir|lang> automatically. To make it\n * respond to changes to its own dir|lang properties, make it a property:\n *\n * @property() dir: string;\n * @property() lang: string;\n *\n * To use a translation method, call it like this:\n *\n * ${this.localize.term('term_key_here')}\n * ${this.localize.date('2021-12-03')}\n * ${this.localize.number(1000000)}\n */\nclass LocalizeController {\n constructor(host) {\n this.host = host;\n this.host.addController(this);\n }\n hostConnected() {\n connectedElements.add(this.host);\n }\n hostDisconnected() {\n connectedElements.delete(this.host);\n }\n /**\n * Gets the host element's directionality as determined by the `dir` attribute. The return value is transformed to\n * lowercase.\n */\n dir() {\n return `${this.host.dir || documentDirection}`.toLowerCase();\n }\n /**\n * Gets the host element's language as determined by the `lang` attribute. The return value is transformed to\n * lowercase.\n */\n lang() {\n return `${this.host.lang || documentLanguage}`.toLowerCase();\n }\n // eslint-disable-next-line class-methods-use-this\n getTranslationData(lang) {\n // Convert \"en_US\" to \"en-US\". Note that both underscores and dashes are allowed per spec, but underscores result in\n // a RangeError by the call to `new Intl.Locale()`. See: https://unicode.org/reports/tr35/#unicode-locale-identifier\n const locale = new Intl.Locale(lang.replace(/_/g, '-'));\n const language = locale?.language.toLowerCase();\n const region = locale?.region?.toLowerCase() ?? '';\n const primary = translations.get(`${language}-${region}`);\n const secondary = translations.get(language);\n return { locale, language, region, primary, secondary };\n }\n /** Determines if the specified term exists, optionally checking the fallback translation. */\n exists(key, options) {\n const { primary, secondary } = this.getTranslationData(options.lang ?? this.lang());\n const mergedOptions = {\n includeFallback: false,\n ...options,\n };\n if ((primary && primary[key]) ||\n (secondary && secondary[key]) ||\n (mergedOptions.includeFallback && fallback && fallback[key])) {\n return true;\n }\n return false;\n }\n /** Outputs a translated term. */\n term(key, ...args) {\n const { primary, secondary } = this.getTranslationData(this.lang());\n let term;\n // Look for a matching term using regionCode, code, then the fallback\n if (primary && primary[key]) {\n term = primary[key];\n }\n else if (secondary && secondary[key]) {\n term = secondary[key];\n }\n else if (fallback && fallback[key]) {\n term = fallback[key];\n }\n else {\n // eslint-disable-next-line no-console\n console.error(`No translation found for: ${String(key)}`);\n return String(key);\n }\n if (typeof term === 'function') {\n return term(...args);\n }\n return term;\n }\n /** Outputs a localized date in the specified format. */\n date(dateToFormat, options) {\n const date = new Date(dateToFormat);\n return new Intl.DateTimeFormat(this.lang(), options).format(date);\n }\n /** Outputs a localized number in the specified format. */\n number(numberToFormat, options) {\n const num = Number(numberToFormat);\n return Number.isNaN(num) ? '' : new Intl.NumberFormat(this.lang(), options).format(num);\n }\n /** Outputs a localized time in relative format. */\n relativeTime(value, unit, options) {\n return new Intl.RelativeTimeFormat(this.lang(), options).format(value, unit);\n }\n}\n\n/**\n * @param Base The base class.\n * @returns A mix-in implementing `localizations` method.\n *\n *@example\n * <!-- Terms -->\n ${this.$localize.term('hello')}\n or\n ${this.$t('hello')}\n\n <!-- Dates -->\n ${this.$localize.date('2021-09-15 14:00:00 ET', { month: 'long', day: 'numeric', year: 'numeric' })}\n or\n ${this.$d('2021-09-15 14:00:00 ET', { month: 'long', day: 'numeric', year: 'numeric' })}\n\n <!-- Numbers/currency -->\n ${this.$localize.number(1000, { style: 'currency', currency: 'USD'})}\n or\n ${this.$n(1000,{ style: 'currency', currency: 'USD'})}\n\n <!-- Determining language -->\n ${this.$localize.lang()}\n\n <!-- Determining directionality, e.g. 'ltr' or 'rtl' -->\n ${this.$localize.dir()}\n\n\n *** HOW TO DEFINE TRANSLATIONS: ***\n // Simple terms\n upload: 'Upload',\n\n // Terms with placeholders\n greetUser: (name: string) => `Hello, ${name}!`,\n\n // Plurals\n numFilesSelected: (count: number) => {\n if (count === 0) return 'No files selected';\n if (count === 1) return '1 file selected';\n return `${count} files selected`;\n }\n */\nconst LocalizeMixin = (Base) => class extends Base {\n constructor() {\n super(...arguments);\n this.localize = new LocalizeController(this);\n }\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\n/* eslint-disable no-console */\nclass 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\n/**\n * Factory function per creare una base class estendibile\n * con stili personalizzati.\n */\nclass 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}\nconst BaseLocalizedComponent = LocalizeMixin(BaseComponent);\n\n//\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//\nconst 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. */\nclass 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\nconst 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};\n\nregisterTranslation(translation);\nclass 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\nclass 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\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-alpha.9',\n };\n}\n\nglobalThis.__itStickyState ??= {\n activeFixedTopStickies: [],\n activeFixedBottomStickies: [],\n};\nconst { activeFixedTopStickies, activeFixedBottomStickies } = globalThis.__itStickyState;\n// ─── Controller ──────────────────────────────────────────────────────────────\nclass StickyController {\n setVisualOrder(order) {\n this.visualOrder = order;\n }\n get isSticky() {\n return this._isSticky;\n }\n /** Whether this controller is managing a bottom-edge element. */\n get isBottom() {\n return this.hostElement.position === 'bottom';\n }\n constructor(host, hostElement) {\n this.visualOrder = 0;\n this.limit = 0;\n this.originalLimit = 0;\n this.height = 0;\n this.prevHeight = 0;\n this._isSticky = false;\n this.host = host;\n this.hostElement = hostElement;\n host.addController(this);\n }\n hostConnected() {\n WindowManager.init();\n if (this.isBottom && this.hostElement.positionType === 'fixed') {\n // Bottom-fixed elements are always active — no scroll trigger needed.\n this.applySticky(0);\n this._isSticky = true;\n }\n else {\n this.computeLimit();\n this.originalLimit = this.hostElement.offsetTop;\n WindowManager.subscribe(this.onWindowUpdate.bind(this));\n }\n // ResizeObserver tracks height changes so stacked peers can reposition.\n if (this.hostElement.firstElementChild) {\n const content = this.hostElement.firstElementChild;\n this.resizeObserver = new ResizeObserver(() => {\n if (this.isBottom) {\n const currentHeight = this.hostElement.getBoundingClientRect().height;\n if (currentHeight !== this.height) {\n this.height = currentHeight;\n if (this._isSticky)\n this.updateAllActiveFixedBottomPositions();\n }\n }\n else {\n const currentHeight = this.hostElement.getBoundingClientRect().height + Number(this.hostElement.paddingTop || 0);\n if (currentHeight !== this.height) {\n this.height = currentHeight;\n this.computeLimit();\n if (this.hostElement.stackable && this._isSticky) {\n const offset = this.computeOffset();\n this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n }\n }\n });\n this.resizeObserver.observe(content);\n }\n }\n hostDisconnected() {\n this.host.removeController(this);\n this.resizeObserver?.disconnect();\n if (this.isBottom) {\n // Clean up the global bottom list and reposition remaining peers.\n if (this._isSticky) {\n this.resetSticky();\n this._isSticky = false;\n }\n }\n else {\n WindowManager.unsubscribe(this.onWindowUpdate.bind(this));\n }\n }\n hostUpdate() {\n if (this.isBottom) {\n // Bottom elements: only update the bottom offset when stackable and active.\n if (this._isSticky && this.hostElement.stackable) {\n this.hostElement.style.bottom = `${this.computeBottomOffset()}px`;\n }\n return;\n }\n // Top elements: recompute limit and enforce correct top position.\n this.computeLimit();\n this.prevHeight = this.hostElement.getBoundingClientRect().height + Number(this.hostElement.paddingTop || 0);\n if (this._isSticky) {\n const offset = this.hostElement.stackable ? this.computeOffset() : 0;\n this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n else {\n this.hostElement.style.top = `${Number(this.hostElement.paddingTop || 0)}px`;\n }\n }\n computeLimit() {\n if (this._isSticky) {\n // Keep original limit — getBoundingClientRect is expensive when sticky.\n this.limit = this.originalLimit;\n }\n else {\n const rect = this.hostElement.getBoundingClientRect();\n const { scrollY } = window;\n this.limit = rect.top + scrollY;\n this.height = rect.height + Number(this.hostElement.paddingTop || 0);\n }\n }\n // eslint-disable-next-line class-methods-use-this\n isBeforeInDOM(a, b) {\n // https:// developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition\n // this is a bitmask operation\n // eslint-disable-next-line no-bitwise\n return !!(a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING);\n }\n /**\n * Walks the DOM from `document.body` using a TreeWalker and collects every\n * element for which `predicate` returns true.\n *\n * Compared to `querySelectorAll` this avoids allocating a static NodeList,\n * allows arbitrary JS predicates (not just CSS selectors), and is the\n * idiomatic API for programmatic DOM traversal.\n */\n // eslint-disable-next-line class-methods-use-this\n walkElements(predicate) {\n const results = [];\n const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => (predicate(node) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP),\n });\n for (let node = walker.nextNode(); node !== null; node = walker.nextNode()) {\n results.push(node);\n }\n return results;\n }\n getPreviousFixedStickiesHeight() {\n const myContainingBlock = this.getFixedContainingBlockFor(this.hostElement);\n return this.walkElements((el) => !!el._stickyController &&\n !!el.stackable &&\n el.positionType === 'fixed')\n .filter((sticky) => sticky !== this.hostElement &&\n this.getFixedContainingBlockFor(sticky) === myContainingBlock &&\n this.isBeforeInDOM(sticky, this.hostElement))\n .reduce((acc, sticky) => {\n const rect = sticky.getBoundingClientRect();\n return acc + rect.height + Number(sticky.paddingTop || 0);\n }, 0);\n }\n /**\n * Computes the top offset for top-edge stackable stickies.\n *\n * Visual order: active fixed-top first (activation order), then\n * non-fixed in DOM order. Returns the cumulative height of all elements\n * with a lower visual order than this one.\n */\n computeOffset() {\n if (!this.hostElement.stackable)\n return 0;\n const myContainingBlock = this.getFixedContainingBlockFor(this.hostElement);\n // Only consider fixed-top stickies within the same CSS containing block.\n const scopedFixed = activeFixedTopStickies.filter((el) => this.getFixedContainingBlockFor(el) === myContainingBlock);\n const allStickies = this.walkElements((el) => !!el._stickyController && !!el.stackable);\n const visualOrderList = [\n ...scopedFixed,\n ...allStickies.filter((el) => el.positionType !== 'fixed' && !scopedFixed.includes(el)),\n ];\n visualOrderList.forEach((el, idx) => {\n if (el._stickyController)\n el._stickyController.setVisualOrder(idx);\n });\n const myOrder = this.visualOrder;\n const relevantStickies = visualOrderList.filter((el) => el !== this.hostElement && el._stickyController && el._stickyController.visualOrder < myOrder);\n return relevantStickies.reduce((acc, sticky) => {\n const rect = sticky.getBoundingClientRect();\n // paddingTop creates visual space that must be included in the offset.\n const addPad = Number(sticky.paddingTop || 0);\n return acc + rect.height + addPad;\n }, 0);\n }\n /**\n * Returns the nearest ancestor element that creates a CSS fixed-position\n * containing block (i.e. has a non-none `transform`, `filter`, or\n * `perspective`), or `null` when the viewport is the containing block.\n *\n * Two bottom-fixed elements that share the same containing block should\n * stack against each other; elements in different containing blocks\n * (e.g. separate Storybook story previews) are fully independent.\n */\n // eslint-disable-next-line class-methods-use-this\n getFixedContainingBlockFor(el) {\n let parent = el.parentElement;\n while (parent && parent !== document.documentElement) {\n const style = getComputedStyle(parent);\n if (style.transform !== 'none' || style.filter !== 'none' || style.perspective !== 'none') {\n return parent;\n }\n parent = parent.parentElement;\n }\n return null; // viewport is the containing block\n }\n /**\n * Computes the bottom offset for bottom-edge stackable stickies.\n *\n * Only elements that share the same CSS fixed containing block are counted —\n * this prevents elements in separate story previews (or any transformed\n * containers) from stacking against each other.\n */\n computeBottomOffset() {\n if (!this.hostElement.stackable)\n return 0;\n const myContainingBlock = this.getFixedContainingBlockFor(this.hostElement);\n const myIndex = activeFixedBottomStickies.indexOf(this.hostElement);\n if (myIndex <= 0)\n return 0;\n return activeFixedBottomStickies\n .slice(0, myIndex)\n .filter((el) => this.getFixedContainingBlockFor(el) === myContainingBlock)\n .reduce((acc, el) => acc + el.getBoundingClientRect().height, 0);\n }\n getClasses() {\n if (!this.hostElement.stickyClassName)\n return [];\n const stickyClasses = this.hostElement.stickyClassName.split(' ').filter((c) => c.trim());\n return stickyClasses.length ? [...new Set(stickyClasses)] : [this.hostElement.stickyClassName];\n }\n onWindowUpdate(state, forceRecalc) {\n // Bottom-fixed elements activate immediately on connect and never scroll-toggle.\n if (this.isBottom)\n return;\n const currentHeight = this.hostElement.getBoundingClientRect().height;\n if (forceRecalc && currentHeight !== this.prevHeight) {\n this.computeLimit();\n this.prevHeight = currentHeight;\n }\n let offset = 0;\n if (this.hostElement.stackable) {\n offset = this.computeOffset();\n }\n let triggerPoint = this.limit;\n if (this.hostElement.stackable && this.hostElement.positionType !== 'fixed') {\n // Consider previous fixed stickies height and anticipate trigger\n const prevFixedHeight = this.getPreviousFixedStickiesHeight();\n // Anticipate trigger with larger buffer to avoid overlaps\n triggerPoint = this.limit - prevFixedHeight - 40;\n }\n const shouldBeSticky = state.scrollY > triggerPoint - (offset + Number(this.hostElement.paddingTop || 0));\n if (shouldBeSticky && !this._isSticky) {\n this.applySticky(offset);\n this._isSticky = true;\n }\n else if (!shouldBeSticky && this._isSticky) {\n this.resetSticky();\n this._isSticky = false;\n }\n else if (this._isSticky && this.hostElement.stackable) {\n // Still sticky and stackable: update position in case peers changed.\n const newOffset = this.computeOffset();\n this.hostElement.style.top = `${newOffset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n }\n applySticky(offset = 0) {\n const classes = this.getClasses();\n if (this.isBottom) {\n this.hostElement.classList.add(...classes, 'bs-is-fixed-bottom');\n if (!activeFixedBottomStickies.includes(this.hostElement)) {\n activeFixedBottomStickies.push(this.hostElement);\n }\n // Update all bottom positions after adding class so getBoundingClientRect\n // returns the correct rendered dimensions.\n this.updateAllActiveFixedBottomPositions();\n }\n else if (this.hostElement.positionType === 'fixed') {\n this.hostElement.classList.add(...classes, 'bs-is-fixed');\n if (!activeFixedTopStickies.includes(this.hostElement)) {\n activeFixedTopStickies.push(this.hostElement);\n }\n // Update position of all active fixed after applying classes\n // so getBoundingClientRect() returns correct dimensions.\n this.updateAllActiveFixedTopPositions();\n }\n else {\n this.hostElement.classList.add(...classes, 'bs-is-sticky');\n this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n this.hostElement.dispatchEvent(new CustomEvent('it-sticky-on', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: { id: this.hostElement.id },\n }));\n }\n resetSticky() {\n const classes = this.getClasses();\n if (this.isBottom) {\n this.hostElement.classList.remove(...classes, 'bs-is-fixed-bottom');\n const idx = activeFixedBottomStickies.indexOf(this.hostElement);\n if (idx !== -1)\n activeFixedBottomStickies.splice(idx, 1);\n this.updateAllActiveFixedBottomPositions();\n this.hostElement.style.bottom = '';\n }\n else if (this.hostElement.positionType === 'fixed') {\n this.hostElement.classList.remove(...classes, 'bs-is-fixed');\n const idx = activeFixedTopStickies.indexOf(this.hostElement);\n if (idx !== -1)\n activeFixedTopStickies.splice(idx, 1);\n this.updateAllActiveFixedTopPositions();\n this.hostElement.style.top = '';\n }\n else {\n this.hostElement.classList.remove(...classes, 'bs-is-sticky');\n this.hostElement.style.top = '';\n }\n this.hostElement.dispatchEvent(new CustomEvent('it-sticky-off', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: { id: this.hostElement.id },\n }));\n }\n /**\n * Restacks all active top-fixed stickies from the top of their respective\n * containing block downward.\n *\n * Symmetric with `updateAllActiveFixedBottomPositions`: elements grouped by\n * CSS containing block so that stickies in separate containers (e.g. different\n * Storybook previews) each start at `top: 0` independently.\n */\n updateAllActiveFixedTopPositions() {\n const groups = new Map();\n activeFixedTopStickies.forEach((el) => {\n const cb = this.getFixedContainingBlockFor(el);\n if (!groups.has(cb))\n groups.set(cb, []);\n groups.get(cb).push(el);\n });\n groups.forEach((elements) => {\n let offset = 0;\n elements.forEach((elParam) => {\n const el = elParam;\n const ctrl = el._stickyController;\n if (ctrl) {\n const paddingTop = Number(el.paddingTop || 0);\n el.style.top = `${offset + paddingTop}px`;\n const rect = el.getBoundingClientRect();\n offset += rect.height + paddingTop;\n }\n });\n });\n }\n /**\n * Restacks all active bottom-fixed stickies from the bottom of their\n * respective containing block upward.\n *\n * Elements are grouped by their CSS fixed containing block so that\n * stickies in separate containers (e.g. different Storybook previews)\n * each start at `bottom: 0` and don't affect one another.\n */\n updateAllActiveFixedBottomPositions() {\n // Group by containing block (null = viewport).\n const groups = new Map();\n activeFixedBottomStickies.forEach((el) => {\n const cb = this.getFixedContainingBlockFor(el);\n if (!groups.has(cb))\n groups.set(cb, []);\n groups.get(cb).push(el);\n });\n groups.forEach((elements) => {\n let offset = 0;\n elements.forEach((elParam) => {\n const el = elParam;\n el.style.bottom = `${offset}px`;\n offset += el.getBoundingClientRect().height;\n });\n });\n }\n}\n\nclass ItSticky extends BaseComponent {\n constructor() {\n super(...arguments);\n this.paddingTop = 0;\n this.positionType = 'sticky';\n this.stackable = false;\n /** Which viewport edge to stick to. Use `'bottom'` together with `position-type=\"fixed\"` for a persistent bottom bar. */\n this.position = 'top';\n this._stickyController = new StickyController(this, this);\n }\n updated() {\n if (this.id === '') {\n this.id = this._id;\n }\n if (this.positionType !== 'fixed' && this.positionType !== 'sticky') {\n // eslint-disable-next-line no-console\n console.warn(\"The supported values for the 'position-type' property are 'fixed' or 'sticky'.\");\n }\n if (this.position !== 'top' && this.position !== 'bottom') {\n // eslint-disable-next-line no-console\n console.warn(\"The supported values for the 'position' property are 'top' or 'bottom'.\");\n }\n }\n createRenderRoot() {\n return this;\n }\n}\n__decorate([\n property({ reflect: true, attribute: 'padding-top' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"paddingTop\", void 0);\n__decorate([\n property({ reflect: true, attribute: 'sticky-class-name' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"stickyClassName\", void 0);\n__decorate([\n property({ reflect: true, attribute: 'position-type' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"positionType\", void 0);\n__decorate([\n property({ reflect: true, type: Boolean }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"stackable\", void 0);\n__decorate([\n property({ reflect: true }),\n __metadata(\"design:type\", String)\n], ItSticky.prototype, \"position\", void 0);\nif (!customElements.get('it-sticky')) {\n customElements.define('it-sticky', ItSticky);\n}\n\nexport { ItSticky as I, StickyController as S };\n//# sourceMappingURL=it-sticky-CUae0Q6L.js.map\n","/* eslint-disable lit-a11y/list */\nimport { BaseComponent } from '@italia/globals';\nimport { StickyController, type StickyConfig } from '@italia/sticky';\nimport { html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ItBottomNavItem } from './it-bottom-nav-item.js';\nimport styles from './bottom-nav.scss';\n\n/**\n * BottomNav component for mobile navigation.\n * - Renders a fixed bottom navigation bar with slotted `it-bottom-nav-item` elements\n * - Items fill the full width automatically\n * - Supports progressive enhancement: links work even without JavaScript\n * - Uses StickyController internally for fixed-bottom positioning and stacking\n */\n@customElement('it-bottom-nav')\nexport class ItBottomNav extends BaseComponent implements StickyConfig {\n static styles = styles;\n\n @property({ type: String, reflect: true, attribute: 'it-aria-label' }) itAriaLabel = 'Navigazione principale';\n\n // ─── StickyConfig implementation ─────────────────────────────────────────\n // These are read by StickyController to determine positioning behaviour.\n // Not exposed as attributes — bottom-nav is always fixed to the bottom.\n\n readonly position = 'bottom' as const;\n\n readonly positionType = 'fixed' as const;\n\n readonly stackable = true;\n\n readonly paddingTop = 0;\n\n readonly stickyClassName = undefined;\n\n public _stickyController: StickyController = new StickyController(this, this);\n\n // ─────────────────────────────────────────────────────────────────────────\n\n private _setChildrenProperties() {\n const slot = this.shadowRoot?.querySelector('slot');\n const assignedElements = slot?.assignedElements({ flatten: true }) || [];\n assignedElements.forEach((el) => {\n if (el instanceof ItBottomNavItem) {\n // Ensure aria-current is in sync after slot changes\n el.syncAriaOnLink();\n }\n });\n }\n\n override render() {\n return html`\n <nav aria-label=\"${this.itAriaLabel}\" part=\"bottom-nav\" class=\"bottom-nav\">\n <ul>\n <slot @slotchange=${this._setChildrenProperties}></slot>\n </ul>\n </nav>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'it-bottom-nav': It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K2Dr.js","../../../src/it-bottom-nav.ts"],"sourcesContent":["import { state, query, property } from 'lit/decorators.js';\nimport { directive, Directive } from 'lit/directive.js';\nimport { LitElement } from 'lit';\n\n/******************************************************************************\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\n\r\nfunction __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\nfunction __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\ntypeof 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};\n\nconst ARIA_IDREF_ATTRIBUTES = new Map([\n ['aria-activedescendant', 'ariaActivedescendantElement'],\n ['aria-controls', 'ariaControlsElements'],\n ['aria-describedby', 'ariaDescribedByElements'],\n ['aria-details', 'ariaDetailsElements'],\n ['aria-errormessage', 'ariaErrormessageElements'],\n ['aria-flowto', 'ariaFlowtoElements'],\n ['aria-labelledby', 'ariaLabelledByElements'],\n ['aria-owns', 'ariaOwnsElements'],\n]);\nfunction resolveAriaIdRefs(element, value) {\n const ids = value\n .trim()\n .split(/\\s+/)\n .filter((id) => id.length > 0);\n if (ids.length === 0)\n return null;\n const root = element.getRootNode();\n let resolvedElements = [];\n if (root instanceof ShadowRoot) {\n resolvedElements = ids.map((id) => root.getElementById(id));\n }\n else if (root instanceof Document) {\n resolvedElements = ids.map((id) => root.getElementById(id));\n }\n else {\n resolvedElements = ids.map((id) => document.getElementById(id));\n }\n if (resolvedElements.filter((el) => el !== null).length === 0) {\n resolvedElements = ids.map((id) => document.getElementById(id));\n }\n const validElements = resolvedElements.filter((el) => el !== null);\n return validElements.length === ids.length ? validElements : null;\n}\nfunction setInternalsProperty(el, name, resolvedElements) {\n if (name === 'aria-activedescendant') {\n const [firstElement] = resolvedElements;\n // eslint-disable-next-line no-param-reassign\n el[name] = firstElement;\n }\n else {\n // eslint-disable-next-line no-param-reassign\n el[name] = resolvedElements;\n }\n}\nclass SetAttributesDirective extends Directive {\n update(part, [attributes]) {\n const el = part.element;\n const internals = el.internals ?? null;\n for (const [name, value] of Object.entries(attributes)) {\n if (value == null) {\n el.removeAttribute(name);\n }\n else {\n const internalsPropertyName = ARIA_IDREF_ATTRIBUTES.get(name);\n if (internalsPropertyName) {\n const resolvedElements = resolveAriaIdRefs(el, String(value));\n if (resolvedElements) {\n if (internals) {\n // Set on ElementInternals\n setInternalsProperty(internals, internalsPropertyName, resolvedElements);\n }\n else {\n // Set internals property on shadowdom item\n el.setAttribute(name, String(value));\n setInternalsProperty(el, internalsPropertyName, resolvedElements);\n }\n }\n }\n else {\n // Non-ARIA IDREF attributes: set normally\n el.setAttribute(name, String(value));\n }\n }\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*/\ndirective(SetAttributesDirective);\n\nfunction 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}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}\n\nconst 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\n/* eslint-disable no-console */\nclass 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\n/**\n * Factory function per creare una base class estendibile\n * con stili personalizzati.\n */\nclass 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 this.ariaAttributesObserver = new MutationObserver((mutations) => {\n const shouldUpdate = mutations.some((mutation) => {\n if (mutation.type !== 'attributes' || !mutation.attributeName) {\n return false;\n }\n return mutation.attributeName === 'it-role' || mutation.attributeName.startsWith('it-aria-');\n });\n if (shouldUpdate) {\n this.requestUpdate();\n }\n });\n this.ariaAttributesObserver.observe(this, {\n attributes: true,\n attributeOldValue: true,\n });\n }\n disconnectedCallback() {\n this.ariaAttributesObserver?.disconnect();\n this.ariaAttributesObserver = undefined;\n super.disconnectedCallback();\n }\n}\nconst BaseLocalizedComponent = LocalizeMixin(BaseComponent);\n\n//\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//\nconst 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. */\nclass 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\nconst 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};\n\nregisterTranslation(translation);\nclass 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\nclass 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\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-beta.1',\n };\n}\n\nglobalThis.__itStickyState ??= {\n activeFixedTopStickies: [],\n activeFixedBottomStickies: [],\n};\nconst { activeFixedTopStickies, activeFixedBottomStickies } = globalThis.__itStickyState;\n// ─── Controller ──────────────────────────────────────────────────────────────\nclass StickyController {\n setVisualOrder(order) {\n this.visualOrder = order;\n }\n get isSticky() {\n return this._isSticky;\n }\n /** Whether this controller is managing a bottom-edge element. */\n get isBottom() {\n return this.hostElement.position === 'bottom';\n }\n constructor(host, hostElement) {\n this.visualOrder = 0;\n this.windowUpdateHandler = this.onWindowUpdate.bind(this);\n this.limit = 0;\n this.originalLimit = 0;\n this.height = 0;\n this.prevHeight = 0;\n this.reservedHeight = 0;\n this._isSticky = false;\n this.host = host;\n this.hostElement = hostElement;\n host.addController(this);\n }\n hostConnected() {\n WindowManager.init();\n if (this.isBottom && this.hostElement.positionType === 'fixed') {\n // Bottom-fixed elements are always active — no scroll trigger needed.\n this.applySticky(0);\n this._isSticky = true;\n }\n else {\n this.computeLimit();\n this.originalLimit = this.hostElement.offsetTop;\n WindowManager.subscribe(this.onWindowUpdate.bind(this));\n }\n // ResizeObserver tracks height changes so stacked peers can reposition.\n if (this.hostElement.firstElementChild) {\n const content = this.hostElement.firstElementChild;\n this.resizeObserver = new ResizeObserver(() => {\n if (this.isBottom) {\n const currentHeight = this.hostElement.getBoundingClientRect().height;\n if (currentHeight !== this.height) {\n this.height = currentHeight;\n if (this._isSticky)\n this.updateAllActiveFixedBottomPositions();\n }\n }\n else {\n const currentHeight = this.measureHeight();\n // const currentHeight =\n // this.hostElement.getBoundingClientRect().height + Number(this.hostElement.paddingTop || 0);\n if (currentHeight !== this.height) {\n this.height = currentHeight;\n if (!this._isSticky) {\n this.reservedHeight = currentHeight;\n }\n this.computeLimit();\n if (this.hostElement.stackable && this._isSticky) {\n const offset = this.computeOffset();\n this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n }\n }\n });\n this.resizeObserver.observe(content);\n }\n }\n hostDisconnected() {\n this.host.removeController(this);\n this.resizeObserver?.disconnect();\n if (this.isBottom) {\n // Clean up the global bottom list and reposition remaining peers.\n if (this._isSticky) {\n this.resetSticky();\n this._isSticky = false;\n }\n }\n else {\n WindowManager.unsubscribe(this.onWindowUpdate.bind(this));\n }\n }\n hostUpdate() {\n if (this.isBottom) {\n // Bottom elements: only update the bottom offset when stackable and active.\n if (this._isSticky && this.hostElement.stackable) {\n this.hostElement.style.bottom = `${this.computeBottomOffset()}px`;\n }\n return;\n }\n // Top elements: recompute limit and enforce correct top position.\n this.computeLimit();\n this.prevHeight = this.measureHeight();\n // this.prevHeight = this.hostElement.getBoundingClientRect().height + Number(this.hostElement.paddingTop || 0);\n if (!this._isSticky) {\n this.reservedHeight = this.prevHeight;\n }\n // If sticky, recalculate position\n if (this._isSticky) {\n const offset = this.hostElement.stackable ? this.computeOffset() : 0;\n this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n else {\n this.hostElement.style.top = `${Number(this.hostElement.paddingTop || 0)}px`;\n }\n }\n computeLimit() {\n if (this._isSticky) {\n // Keep original limit — getBoundingClientRect is expensive when sticky.\n this.limit = this.originalLimit;\n }\n else {\n const rect = this.hostElement.getBoundingClientRect();\n const { scrollY } = window;\n this.limit = rect.top + scrollY;\n this.originalLimit = this.limit;\n this.height = rect.height;\n }\n }\n measureHeight() {\n return this.hostElement.getBoundingClientRect().height;\n }\n // eslint-disable-next-line class-methods-use-this\n isBeforeInDOM(a, b) {\n // https:// developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition\n // this is a bitmask operation\n // eslint-disable-next-line no-bitwise\n return !!(a.compareDocumentPosition(b) & Node.DOCUMENT_POSITION_FOLLOWING);\n }\n /**\n * Walks the DOM from `document.body` using a TreeWalker and collects every\n * element for which `predicate` returns true.\n *\n * Compared to `querySelectorAll` this avoids allocating a static NodeList,\n * allows arbitrary JS predicates (not just CSS selectors), and is the\n * idiomatic API for programmatic DOM traversal.\n */\n // eslint-disable-next-line class-methods-use-this\n walkElements(predicate) {\n const results = [];\n const walker = document.createTreeWalker(document.body, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => (predicate(node) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP),\n });\n for (let node = walker.nextNode(); node !== null; node = walker.nextNode()) {\n results.push(node);\n }\n return results;\n }\n getPreviousFixedStickiesHeight() {\n const myContainingBlock = this.getFixedContainingBlockFor(this.hostElement);\n return this.walkElements((el) => !!el._stickyController &&\n !!el.stackable &&\n el.positionType === 'fixed')\n .filter((sticky) => sticky !== this.hostElement &&\n this.getFixedContainingBlockFor(sticky) === myContainingBlock &&\n this.isBeforeInDOM(sticky, this.hostElement))\n .reduce((acc, sticky) => {\n const rect = sticky.getBoundingClientRect();\n return acc + rect.height + Number(sticky.paddingTop || 0);\n }, 0);\n }\n /**\n * Computes the top offset for top-edge stackable stickies.\n *\n * Visual order: active fixed-top first (activation order), then\n * non-fixed in DOM order. Returns the cumulative height of all elements\n * with a lower visual order than this one.\n */\n computeOffset() {\n if (!this.hostElement.stackable)\n return 0;\n const myContainingBlock = this.getFixedContainingBlockFor(this.hostElement);\n // Only consider fixed-top stickies within the same CSS containing block.\n const scopedFixed = activeFixedTopStickies.filter((el) => this.getFixedContainingBlockFor(el) === myContainingBlock);\n const allStickies = this.walkElements((el) => !!el._stickyController && !!el.stackable);\n const visualOrderList = [\n ...scopedFixed,\n ...allStickies.filter((el) => el.positionType !== 'fixed' && !scopedFixed.includes(el)),\n ];\n visualOrderList.forEach((el, idx) => {\n if (el._stickyController)\n el._stickyController.setVisualOrder(idx);\n });\n const myOrder = this.visualOrder;\n const relevantStickies = visualOrderList.filter((el) => el !== this.hostElement && el._stickyController && el._stickyController.visualOrder < myOrder);\n return relevantStickies.reduce((acc, sticky) => {\n const rect = sticky.getBoundingClientRect();\n // paddingTop creates visual space that must be included in the offset.\n const addPad = Number(sticky.paddingTop || 0);\n return acc + rect.height + addPad;\n }, 0);\n }\n getExtraTriggerOffset() {\n if (this.hostElement.triggerSelector) {\n const el = document.querySelector(this.hostElement.triggerSelector);\n if (el instanceof HTMLElement)\n return el.offsetHeight;\n }\n return Number(this.hostElement.triggerOffset || 0);\n }\n /**\n * Returns the nearest ancestor element that creates a CSS fixed-position\n * containing block (i.e. has a non-none `transform`, `filter`, or\n * `perspective`), or `null` when the viewport is the containing block.\n *\n * Two bottom-fixed elements that share the same containing block should\n * stack against each other; elements in different containing blocks\n * (e.g. separate Storybook story previews) are fully independent.\n */\n // eslint-disable-next-line class-methods-use-this\n getFixedContainingBlockFor(el) {\n let parent = el.parentElement;\n while (parent && parent !== document.documentElement) {\n const style = getComputedStyle(parent);\n if (style.transform !== 'none' || style.filter !== 'none' || style.perspective !== 'none') {\n return parent;\n }\n parent = parent.parentElement;\n }\n return null; // viewport is the containing block\n }\n /**\n * Computes the bottom offset for bottom-edge stackable stickies.\n *\n * Only elements that share the same CSS fixed containing block are counted —\n * this prevents elements in separate story previews (or any transformed\n * containers) from stacking against each other.\n */\n computeBottomOffset() {\n if (!this.hostElement.stackable)\n return 0;\n const myContainingBlock = this.getFixedContainingBlockFor(this.hostElement);\n const myIndex = activeFixedBottomStickies.indexOf(this.hostElement);\n if (myIndex <= 0)\n return 0;\n return activeFixedBottomStickies\n .slice(0, myIndex)\n .filter((el) => this.getFixedContainingBlockFor(el) === myContainingBlock)\n .reduce((acc, el) => acc + el.getBoundingClientRect().height, 0);\n }\n getClasses() {\n if (!this.hostElement.stickyClassName)\n return [];\n const stickyClasses = this.hostElement.stickyClassName.split(' ').filter((c) => c.trim());\n return stickyClasses.length ? [...new Set(stickyClasses)] : [this.hostElement.stickyClassName];\n }\n onWindowUpdate(state, forceRecalc) {\n // Bottom-fixed elements activate immediately on connect and never scroll-toggle.\n if (this.isBottom)\n return;\n const currentHeight = this.measureHeight();\n // const currentHeight = this.hostElement.getBoundingClientRect().height;\n if (forceRecalc && currentHeight !== this.prevHeight) {\n this.computeLimit();\n this.prevHeight = currentHeight;\n if (!this._isSticky) {\n this.reservedHeight = currentHeight;\n }\n }\n let offset = 0;\n if (this.hostElement.stackable) {\n offset = this.computeOffset();\n }\n let triggerPoint = this.limit;\n if (this.hostElement.stackable && this.hostElement.positionType !== 'fixed') {\n // Consider previous fixed stickies height and anticipate trigger\n const prevFixedHeight = this.getPreviousFixedStickiesHeight();\n // Anticipate trigger with larger buffer to avoid overlaps\n triggerPoint = this.limit - prevFixedHeight - 40;\n }\n const shouldBeSticky = state.scrollY > triggerPoint - (offset + Number(this.hostElement.paddingTop || 0)) + this.getExtraTriggerOffset();\n if (shouldBeSticky && !this._isSticky) {\n this.applySticky(offset);\n this._isSticky = true;\n }\n else if (!shouldBeSticky && this._isSticky) {\n this.resetSticky();\n this._isSticky = false;\n }\n else if (this._isSticky && this.hostElement.stackable) {\n // Still sticky and stackable: update position in case peers changed.\n const newOffset = this.computeOffset();\n this.hostElement.style.top = `${newOffset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n }\n applySticky(offset = 0) {\n const classes = this.getClasses();\n if (this.isBottom) {\n this.hostElement.classList.add(...classes, 'bs-is-fixed-bottom');\n if (!activeFixedBottomStickies.includes(this.hostElement)) {\n activeFixedBottomStickies.push(this.hostElement);\n }\n // Update all bottom positions after adding class so getBoundingClientRect\n // returns the correct rendered dimensions.\n this.updateAllActiveFixedBottomPositions();\n }\n else if (this.hostElement.positionType === 'fixed') {\n this.hostElement.classList.add(...classes, 'bs-is-fixed');\n if (!activeFixedTopStickies.includes(this.hostElement)) {\n activeFixedTopStickies.push(this.hostElement);\n }\n // Update position of all active fixed after applying classes\n // so getBoundingClientRect() returns correct dimensions.\n this.updateAllActiveFixedTopPositions();\n }\n else {\n const layoutHeight = this.reservedHeight || this.measureHeight();\n if (layoutHeight > 0) {\n this.hostElement.style.minHeight = `${layoutHeight}px`;\n }\n this.hostElement.classList.add(...classes, 'bs-is-sticky');\n this.hostElement.style.top = `${offset + Number(this.hostElement.paddingTop || 0)}px`;\n }\n this.hostElement.dispatchEvent(new CustomEvent('it-sticky-on', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: { id: this.hostElement.id },\n }));\n }\n resetSticky() {\n const classes = this.getClasses();\n if (this.isBottom) {\n this.hostElement.classList.remove(...classes, 'bs-is-fixed-bottom');\n const idx = activeFixedBottomStickies.indexOf(this.hostElement);\n if (idx !== -1)\n activeFixedBottomStickies.splice(idx, 1);\n this.updateAllActiveFixedBottomPositions();\n this.hostElement.style.bottom = '';\n }\n else if (this.hostElement.positionType === 'fixed') {\n this.hostElement.classList.remove(...classes, 'bs-is-fixed');\n const idx = activeFixedTopStickies.indexOf(this.hostElement);\n if (idx !== -1)\n activeFixedTopStickies.splice(idx, 1);\n this.updateAllActiveFixedTopPositions();\n this.hostElement.style.top = '';\n }\n else {\n this.hostElement.classList.remove(...classes, 'bs-is-sticky');\n this.hostElement.style.top = '';\n }\n this.hostElement.dispatchEvent(new CustomEvent('it-sticky-off', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail: { id: this.hostElement.id },\n }));\n }\n /**\n * Restacks all active top-fixed stickies from the top of their respective\n * containing block downward.\n *\n * Symmetric with `updateAllActiveFixedBottomPositions`: elements grouped by\n * CSS containing block so that stickies in separate containers (e.g. different\n * Storybook previews) each start at `top: 0` independently.\n */\n updateAllActiveFixedTopPositions() {\n const groups = new Map();\n activeFixedTopStickies.forEach((el) => {\n const cb = this.getFixedContainingBlockFor(el);\n if (!groups.has(cb))\n groups.set(cb, []);\n groups.get(cb).push(el);\n });\n groups.forEach((elements) => {\n let offset = 0;\n elements.forEach((elParam) => {\n const el = elParam;\n const ctrl = el._stickyController;\n if (ctrl) {\n const paddingTop = Number(el.paddingTop || 0);\n el.style.top = `${offset + paddingTop}px`;\n const rect = el.getBoundingClientRect();\n offset += rect.height + paddingTop;\n }\n });\n });\n }\n /**\n * Restacks all active bottom-fixed stickies from the bottom of their\n * respective containing block upward.\n *\n * Elements are grouped by their CSS fixed containing block so that\n * stickies in separate containers (e.g. different Storybook previews)\n * each start at `bottom: 0` and don't affect one another.\n */\n updateAllActiveFixedBottomPositions() {\n // Group by containing block (null = viewport).\n const groups = new Map();\n activeFixedBottomStickies.forEach((el) => {\n const cb = this.getFixedContainingBlockFor(el);\n if (!groups.has(cb))\n groups.set(cb, []);\n groups.get(cb).push(el);\n });\n groups.forEach((elements) => {\n let offset = 0;\n elements.forEach((elParam) => {\n const el = elParam;\n el.style.bottom = `${offset}px`;\n offset += el.getBoundingClientRect().height;\n });\n });\n }\n}\n\nclass ItSticky extends BaseComponent {\n constructor() {\n super(...arguments);\n this.paddingTop = 0;\n this.positionType = 'sticky';\n this.stackable = false;\n /**\n * Extra pixels to scroll past the element's natural position before sticky activates.\n * Useful when you want sticky to kick in only after a preceding element (e.g. a header) has scrolled away.\n */\n this.triggerOffset = 0;\n /** Which viewport edge to stick to. Use `'bottom'` together with `position-type=\"fixed\"` for a persistent bottom bar. */\n this.position = 'top';\n this._stickyController = new StickyController(this, this);\n }\n updated() {\n if (this.id === '') {\n this.id = this._id;\n }\n if (this.positionType !== 'fixed' && this.positionType !== 'sticky') {\n // eslint-disable-next-line no-console\n console.warn(\"The supported values for the 'position-type' property are 'fixed' or 'sticky'.\");\n }\n if (this.position !== 'top' && this.position !== 'bottom') {\n // eslint-disable-next-line no-console\n console.warn(\"The supported values for the 'position' property are 'top' or 'bottom'.\");\n }\n }\n createRenderRoot() {\n return this;\n }\n}\n__decorate([\n property({ reflect: true, attribute: 'padding-top' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"paddingTop\", void 0);\n__decorate([\n property({ reflect: true, attribute: 'sticky-class-name' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"stickyClassName\", void 0);\n__decorate([\n property({ reflect: true, attribute: 'position-type' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"positionType\", void 0);\n__decorate([\n property({ reflect: true, type: Boolean }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"stackable\", void 0);\n__decorate([\n property({ reflect: true, type: Number, attribute: 'trigger-offset' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"triggerOffset\", void 0);\n__decorate([\n property({ reflect: true, attribute: 'trigger-selector' }),\n __metadata(\"design:type\", Object)\n], ItSticky.prototype, \"triggerSelector\", void 0);\n__decorate([\n property({ reflect: true }),\n __metadata(\"design:type\", String)\n], ItSticky.prototype, \"position\", void 0);\nif (!customElements.get('it-sticky')) {\n customElements.define('it-sticky', ItSticky);\n}\n\nexport { ItSticky as I, StickyController as S };\n//# sourceMappingURL=it-sticky-HpS1K2Dr.js.map\n","/* eslint-disable lit-a11y/list */\nimport { BaseComponent } from '@italia/globals';\nimport { StickyController, type StickyConfig } from '@italia/sticky';\nimport { html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { ItBottomNavItem } from './it-bottom-nav-item.js';\nimport styles from './bottom-nav.scss';\n\n/**\n * BottomNav component for mobile navigation.\n * - Renders a fixed bottom navigation bar with slotted `it-bottom-nav-item` elements\n * - Items fill the full width automatically\n * - Supports progressive enhancement: links work even without JavaScript\n * - Uses StickyController internally for fixed-bottom positioning and stacking\n */\n@customElement('it-bottom-nav')\nexport class ItBottomNav extends BaseComponent implements StickyConfig {\n static styles = styles;\n\n @property({ type: String, reflect: true, attribute: 'it-aria-label' }) itAriaLabel = 'Navigazione principale';\n\n // ─── StickyConfig implementation ─────────────────────────────────────────\n // These are read by StickyController to determine positioning behaviour.\n // Not exposed as attributes — bottom-nav is always fixed to the bottom.\n\n readonly position = 'bottom' as const;\n\n readonly positionType = 'fixed' as const;\n\n readonly stackable = true;\n\n readonly paddingTop = 0;\n\n readonly stickyClassName = undefined;\n\n public _stickyController: StickyController = new StickyController(this, this);\n\n // ─────────────────────────────────────────────────────────────────────────\n\n private _setChildrenProperties() {\n const slot = this.shadowRoot?.querySelector('slot');\n const assignedElements = slot?.assignedElements({ flatten: true }) || [];\n assignedElements.forEach((el) => {\n if (el instanceof ItBottomNavItem) {\n // Ensure aria-current is in sync after slot changes\n el.syncAriaOnLink();\n }\n });\n }\n\n override render() {\n return html`\n <nav aria-label=\"${this.itAriaLabel}\" part=\"bottom-nav\" class=\"bottom-nav\">\n <ul>\n <slot @slotchange=${this._setChildrenProperties}></slot>\n </ul>\n </nav>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'it-bottom-nav': ItBottomNav;\n }\n}\n"],"names":["BaseComponent","__decorate"],"mappings":";;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AAC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A,CAAA;IADvB,aAAa,CAAC,eAAe;AACjB,CAAA,EAAA,WAAW,CA2CvB;;;;"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@italia/bottom-nav",
|
|
3
3
|
"description": "Web component it-bottom-nav del Design system .italia",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -34,33 +34,33 @@
|
|
|
34
34
|
"custom-elements.json",
|
|
35
35
|
"styles"
|
|
36
36
|
],
|
|
37
|
+
"scripts": {
|
|
38
|
+
"analyze": "cem analyze --litelement --exclude dist",
|
|
39
|
+
"build": "rollup --config rollup.config.js",
|
|
40
|
+
"test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
|
|
41
|
+
"test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
|
|
42
|
+
},
|
|
37
43
|
"dependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
44
|
+
"@italia/globals": "workspace:^",
|
|
45
|
+
"@italia/sticky": "workspace:^",
|
|
46
|
+
"bootstrap-italia": "catalog:",
|
|
47
|
+
"lit": "catalog:"
|
|
42
48
|
},
|
|
43
49
|
"devDependencies": {
|
|
44
50
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
45
|
-
"@
|
|
51
|
+
"@italia/test-config": "workspace:^",
|
|
52
|
+
"@italia/typescript-config": "workspace:^",
|
|
53
|
+
"@italia/icon": "workspace:^",
|
|
54
|
+
"@open-wc/testing": "catalog:",
|
|
46
55
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
47
56
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
48
|
-
"@types/mocha": "
|
|
49
|
-
"@web/test-runner": "
|
|
57
|
+
"@types/mocha": "catalog:",
|
|
58
|
+
"@web/test-runner": "catalog:",
|
|
50
59
|
"rollup": "^4.42.0",
|
|
51
60
|
"rollup-plugin-scss-lit": "^2.1.0",
|
|
52
|
-
"sass": "
|
|
61
|
+
"sass": "catalog:",
|
|
53
62
|
"tslib": "^2.6.3",
|
|
54
|
-
"typescript": "
|
|
55
|
-
"@italia/test-config": "^0.0.0",
|
|
56
|
-
"@italia/typescript-config": "^0.0.0",
|
|
57
|
-
"@italia/icon": "^1.0.0-alpha.9"
|
|
63
|
+
"typescript": "catalog:"
|
|
58
64
|
},
|
|
59
|
-
"customElements": "custom-elements.json"
|
|
60
|
-
|
|
61
|
-
"analyze": "cem analyze --litelement --exclude dist",
|
|
62
|
-
"build": "rollup --config rollup.config.js",
|
|
63
|
-
"test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
|
|
64
|
-
"test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
|
|
65
|
-
}
|
|
66
|
-
}
|
|
65
|
+
"customElements": "custom-elements.json"
|
|
66
|
+
}
|
package/styles/globals.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use 'bootstrap-italia/src/scss/base/functions' as *;
|
|
2
|
+
@use 'bootstrap-italia/src/scss/base/config' as *;
|
|
3
|
+
@use 'bootstrap-italia/src/scss/base/variables' as *;
|
|
3
4
|
|
|
4
5
|
// Light DOM styles for content inside the slotted <a>.
|
|
5
6
|
// ::slotted() in shadow DOM cannot reach descendants of the slotted element,
|
|
@@ -88,9 +89,9 @@ it-bottom-nav:not(:defined) {
|
|
|
88
89
|
justify-content: space-around;
|
|
89
90
|
|
|
90
91
|
it-bottom-nav-item:not(:defined) {
|
|
92
|
+
display: flex;
|
|
91
93
|
margin: 8px;
|
|
92
94
|
text-align: center;
|
|
93
|
-
display: flex;
|
|
94
95
|
|
|
95
96
|
a {
|
|
96
97
|
display: block;
|
package/LICENSE
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2025, the respective contributors, as shown by the AUTHORS file.
|
|
2
|
-
|
|
3
|
-
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
-
|
|
5
|
-
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
-
|
|
7
|
-
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
-
|
|
9
|
-
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
-
|
|
11
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|