@italia/globals 1.0.0-alpha.14 → 1.0.0-alpha.15

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.
@@ -391,129 +391,6 @@
391
391
  }
392
392
  ]
393
393
  },
394
- {
395
- "kind": "javascript-module",
396
- "path": "src/base-component/base-component.ts",
397
- "declarations": [
398
- {
399
- "kind": "class",
400
- "description": "Factory function per creare una base class estendibile\ncon stili personalizzati.",
401
- "name": "BaseComponent",
402
- "members": [
403
- {
404
- "kind": "field",
405
- "name": "logger",
406
- "type": {
407
- "text": "Logger"
408
- },
409
- "privacy": "protected",
410
- "default": "new Logger(this.tagName.toLowerCase())"
411
- },
412
- {
413
- "kind": "field",
414
- "name": "composeClass",
415
- "privacy": "protected",
416
- "default": "clsx"
417
- },
418
- {
419
- "kind": "field",
420
- "name": "_id",
421
- "type": {
422
- "text": "string | undefined"
423
- },
424
- "privacy": "protected"
425
- },
426
- {
427
- "kind": "field",
428
- "name": "_ariaAttributes",
429
- "type": {
430
- "text": "Record<string, string>"
431
- },
432
- "privacy": "protected",
433
- "readonly": true
434
- },
435
- {
436
- "kind": "method",
437
- "name": "generateId",
438
- "parameters": [
439
- {
440
- "name": "prefix",
441
- "type": {
442
- "text": "string"
443
- }
444
- }
445
- ]
446
- },
447
- {
448
- "kind": "method",
449
- "name": "addFocus",
450
- "parameters": [
451
- {
452
- "name": "element",
453
- "type": {
454
- "text": "HTMLElement"
455
- }
456
- }
457
- ]
458
- },
459
- {
460
- "kind": "method",
461
- "name": "getActiveElement",
462
- "privacy": "protected",
463
- "return": {
464
- "type": {
465
- "text": "T | null"
466
- }
467
- }
468
- },
469
- {
470
- "kind": "field",
471
- "name": "focusElement",
472
- "type": {
473
- "text": "HTMLElement | null"
474
- },
475
- "readonly": true
476
- },
477
- {
478
- "kind": "field",
479
- "name": "prefersReducedMotion",
480
- "type": {
481
- "text": "boolean"
482
- },
483
- "privacy": "protected",
484
- "readonly": true
485
- }
486
- ],
487
- "superclass": {
488
- "name": "LitElement",
489
- "package": "lit"
490
- },
491
- "customElement": true
492
- },
493
- {
494
- "kind": "variable",
495
- "name": "BaseLocalizedComponent"
496
- }
497
- ],
498
- "exports": [
499
- {
500
- "kind": "js",
501
- "name": "BaseComponent",
502
- "declaration": {
503
- "name": "BaseComponent",
504
- "module": "src/base-component/base-component.ts"
505
- }
506
- },
507
- {
508
- "kind": "js",
509
- "name": "BaseLocalizedComponent",
510
- "declaration": {
511
- "name": "BaseLocalizedComponent",
512
- "module": "src/base-component/base-component.ts"
513
- }
514
- }
515
- ]
516
- },
517
394
  {
518
395
  "kind": "javascript-module",
519
396
  "path": "src/controllers/aria-keyboard-accordion-controller.ts",
@@ -1426,20 +1303,123 @@
1426
1303
  },
1427
1304
  {
1428
1305
  "kind": "javascript-module",
1429
- "path": "src/directives/setAttributes.ts",
1306
+ "path": "src/base-component/base-component.ts",
1430
1307
  "declarations": [
1308
+ {
1309
+ "kind": "class",
1310
+ "description": "Factory function per creare una base class estendibile\ncon stili personalizzati.",
1311
+ "name": "BaseComponent",
1312
+ "members": [
1313
+ {
1314
+ "kind": "field",
1315
+ "name": "logger",
1316
+ "type": {
1317
+ "text": "Logger"
1318
+ },
1319
+ "privacy": "protected",
1320
+ "default": "new Logger(this.tagName.toLowerCase())"
1321
+ },
1322
+ {
1323
+ "kind": "field",
1324
+ "name": "composeClass",
1325
+ "privacy": "protected",
1326
+ "default": "clsx"
1327
+ },
1328
+ {
1329
+ "kind": "field",
1330
+ "name": "_id",
1331
+ "type": {
1332
+ "text": "string | undefined"
1333
+ },
1334
+ "privacy": "protected"
1335
+ },
1336
+ {
1337
+ "kind": "field",
1338
+ "name": "_ariaAttributes",
1339
+ "type": {
1340
+ "text": "Record<string, string>"
1341
+ },
1342
+ "privacy": "protected",
1343
+ "readonly": true
1344
+ },
1345
+ {
1346
+ "kind": "method",
1347
+ "name": "generateId",
1348
+ "parameters": [
1349
+ {
1350
+ "name": "prefix",
1351
+ "type": {
1352
+ "text": "string"
1353
+ }
1354
+ }
1355
+ ]
1356
+ },
1357
+ {
1358
+ "kind": "method",
1359
+ "name": "addFocus",
1360
+ "parameters": [
1361
+ {
1362
+ "name": "element",
1363
+ "type": {
1364
+ "text": "HTMLElement"
1365
+ }
1366
+ }
1367
+ ]
1368
+ },
1369
+ {
1370
+ "kind": "method",
1371
+ "name": "getActiveElement",
1372
+ "privacy": "protected",
1373
+ "return": {
1374
+ "type": {
1375
+ "text": "T | null"
1376
+ }
1377
+ }
1378
+ },
1379
+ {
1380
+ "kind": "field",
1381
+ "name": "focusElement",
1382
+ "type": {
1383
+ "text": "HTMLElement | null"
1384
+ },
1385
+ "readonly": true
1386
+ },
1387
+ {
1388
+ "kind": "field",
1389
+ "name": "prefersReducedMotion",
1390
+ "type": {
1391
+ "text": "boolean"
1392
+ },
1393
+ "privacy": "protected",
1394
+ "readonly": true
1395
+ }
1396
+ ],
1397
+ "superclass": {
1398
+ "name": "LitElement",
1399
+ "package": "lit"
1400
+ },
1401
+ "customElement": true
1402
+ },
1431
1403
  {
1432
1404
  "kind": "variable",
1433
- "name": "setAttributes"
1405
+ "name": "BaseLocalizedComponent"
1434
1406
  }
1435
1407
  ],
1436
1408
  "exports": [
1437
1409
  {
1438
1410
  "kind": "js",
1439
- "name": "default",
1411
+ "name": "BaseComponent",
1440
1412
  "declaration": {
1441
- "name": "setAttributes",
1442
- "module": "src/directives/setAttributes.ts"
1413
+ "name": "BaseComponent",
1414
+ "module": "src/base-component/base-component.ts"
1415
+ }
1416
+ },
1417
+ {
1418
+ "kind": "js",
1419
+ "name": "BaseLocalizedComponent",
1420
+ "declaration": {
1421
+ "name": "BaseLocalizedComponent",
1422
+ "module": "src/base-component/base-component.ts"
1443
1423
  }
1444
1424
  }
1445
1425
  ]
@@ -2185,6 +2165,26 @@
2185
2165
  }
2186
2166
  ]
2187
2167
  },
2168
+ {
2169
+ "kind": "javascript-module",
2170
+ "path": "src/directives/setAttributes.ts",
2171
+ "declarations": [
2172
+ {
2173
+ "kind": "variable",
2174
+ "name": "setAttributes"
2175
+ }
2176
+ ],
2177
+ "exports": [
2178
+ {
2179
+ "kind": "js",
2180
+ "name": "default",
2181
+ "declaration": {
2182
+ "name": "setAttributes",
2183
+ "module": "src/directives/setAttributes.ts"
2184
+ }
2185
+ }
2186
+ ]
2187
+ },
2188
2188
  {
2189
2189
  "kind": "javascript-module",
2190
2190
  "path": "src/mixins/validity.ts",
package/dist/src/index.js CHANGED
@@ -6,7 +6,7 @@ if (typeof window !== 'undefined') {
6
6
  window._itAnalytics = window._itAnalytics || {};
7
7
  window._itAnalytics = {
8
8
  ...window._itAnalytics,
9
- version: '1.0.0-alpha.14',
9
+ version: '1.0.0-alpha.15',
10
10
  };
11
11
  }
12
12
  export { TrackFocus, setAttributes, AriaKeyboardListController };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,0BAA0B,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAUzF,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;IAChD,MAAM,CAAC,YAAY,GAAG;QACpB,GAAG,MAAM,CAAC,YAAY;QACtB,OAAO,EAAE,gBAAgB;KAC1B,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,0BAA0B,EAAE,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,OAAO,EACL,aAAa,EAGb,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,GAEhC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAwB,MAAM,wCAAwC,CAAC;AAEnG,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAgC,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAyC,MAAM,qBAAqB,CAAC;AAE3F,OAAO,EAAE,8BAA8B,EAAE,CAAC","sourcesContent":["import TrackFocus from './utils/track-focus.js';\n\nimport setAttributes from './directives/setAttributes.js';\nimport AriaKeyboardListController from './controllers/aria-keyboard-list-controller.js';\nimport { StoryFormControlMethodAndProps } from './stories/formControlReusableStories.js';\n\ndeclare global {\n interface Window {\n _itAnalytics: {\n version: string;\n };\n }\n}\n\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-alpha.14',\n };\n}\n\nexport { TrackFocus, setAttributes, AriaKeyboardListController };\nexport type { AriaKeyboardConfig } from './controllers/aria-keyboard-list-controller.js';\nexport { RovingTabindexController } from './controllers/roving-tabindex-controller.js';\nexport type { RovingTabindexConfig } from './controllers/roving-tabindex-controller.js';\nexport {\n BaseComponent,\n BaseComponentInterface,\n BaseComponentType,\n BaseLocalizedComponent,\n} from './base-component/base-component.js';\nexport {\n AriaKeyboardAccordionController,\n type AriaKeyboardAccordionConfig,\n} from './controllers/aria-keyboard-accordion-controller.js';\nexport { CollapseAnimationController } from './controllers/collapse-controller.js';\nexport { FocusTrapController, type FocusTrapConfig } from './controllers/focus-trap-controller.js';\n\nexport { FormControl } from './form/form-control.js';\nexport { formCollections, FormControlControllerOptions, FormControlController } from './form/form-controller.js';\nexport { cookies } from './utils/cookies.js';\nexport type Constructor<T = {}> = new (...args: any[]) => T;\nexport { WindowManager, type ScrollCallback, type ScrollState } from './window-manager.js';\n\nexport { StoryFormControlMethodAndProps };\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,aAAa,MAAM,+BAA+B,CAAC;AAC1D,OAAO,0BAA0B,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;AAUzF,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;IAClC,MAAM,CAAC,YAAY,GAAG,MAAM,CAAC,YAAY,IAAI,EAAE,CAAC;IAChD,MAAM,CAAC,YAAY,GAAG;QACpB,GAAG,MAAM,CAAC,YAAY;QACtB,OAAO,EAAE,gBAAgB;KAC1B,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,0BAA0B,EAAE,CAAC;AAEjE,OAAO,EAAE,wBAAwB,EAAE,MAAM,6CAA6C,CAAC;AAEvF,OAAO,EACL,aAAa,EAGb,sBAAsB,GACvB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,+BAA+B,GAEhC,MAAM,qDAAqD,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAwB,MAAM,wCAAwC,CAAC;AAEnG,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAgC,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AACjH,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,OAAO,EAAE,aAAa,EAAyC,MAAM,qBAAqB,CAAC;AAE3F,OAAO,EAAE,8BAA8B,EAAE,CAAC","sourcesContent":["import TrackFocus from './utils/track-focus.js';\n\nimport setAttributes from './directives/setAttributes.js';\nimport AriaKeyboardListController from './controllers/aria-keyboard-list-controller.js';\nimport { StoryFormControlMethodAndProps } from './stories/formControlReusableStories.js';\n\ndeclare global {\n interface Window {\n _itAnalytics: {\n version: string;\n };\n }\n}\n\nif (typeof window !== 'undefined') {\n window._itAnalytics = window._itAnalytics || {};\n window._itAnalytics = {\n ...window._itAnalytics,\n version: '1.0.0-alpha.15',\n };\n}\n\nexport { TrackFocus, setAttributes, AriaKeyboardListController };\nexport type { AriaKeyboardConfig } from './controllers/aria-keyboard-list-controller.js';\nexport { RovingTabindexController } from './controllers/roving-tabindex-controller.js';\nexport type { RovingTabindexConfig } from './controllers/roving-tabindex-controller.js';\nexport {\n BaseComponent,\n BaseComponentInterface,\n BaseComponentType,\n BaseLocalizedComponent,\n} from './base-component/base-component.js';\nexport {\n AriaKeyboardAccordionController,\n type AriaKeyboardAccordionConfig,\n} from './controllers/aria-keyboard-accordion-controller.js';\nexport { CollapseAnimationController } from './controllers/collapse-controller.js';\nexport { FocusTrapController, type FocusTrapConfig } from './controllers/focus-trap-controller.js';\n\nexport { FormControl } from './form/form-control.js';\nexport { formCollections, FormControlControllerOptions, FormControlController } from './form/form-controller.js';\nexport { cookies } from './utils/cookies.js';\nexport type Constructor<T = {}> = new (...args: any[]) => T;\nexport { WindowManager, type ScrollCallback, type ScrollState } from './window-manager.js';\n\nexport { StoryFormControlMethodAndProps };\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/globals",
3
3
  "description": "Utilities per i Web components del Design System .italia",
4
- "version": "1.0.0-alpha.14",
4
+ "version": "1.0.0-alpha.15",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -35,7 +35,7 @@
35
35
  "@floating-ui/dom": "^1.7.1",
36
36
  "clsx": "^2.1.1",
37
37
  "lit": "^3.3.0",
38
- "@italia/i18n": "^1.0.0-alpha.14"
38
+ "@italia/i18n": "^1.0.0-alpha.15"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@custom-elements-manifest/analyzer": "^0.10.3",