@italia/globals 1.0.0-alpha.7 → 1.0.0-alpha.8

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,6 +391,129 @@
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
+ },
394
517
  {
395
518
  "kind": "javascript-module",
396
519
  "path": "src/controllers/aria-keyboard-accordion-controller.ts",
@@ -1127,129 +1250,6 @@
1127
1250
  }
1128
1251
  ]
1129
1252
  },
1130
- {
1131
- "kind": "javascript-module",
1132
- "path": "src/base-component/base-component.ts",
1133
- "declarations": [
1134
- {
1135
- "kind": "class",
1136
- "description": "Factory function per creare una base class estendibile\ncon stili personalizzati.",
1137
- "name": "BaseComponent",
1138
- "members": [
1139
- {
1140
- "kind": "field",
1141
- "name": "logger",
1142
- "type": {
1143
- "text": "Logger"
1144
- },
1145
- "privacy": "protected",
1146
- "default": "new Logger(this.tagName.toLowerCase())"
1147
- },
1148
- {
1149
- "kind": "field",
1150
- "name": "composeClass",
1151
- "privacy": "protected",
1152
- "default": "clsx"
1153
- },
1154
- {
1155
- "kind": "field",
1156
- "name": "_id",
1157
- "type": {
1158
- "text": "string | undefined"
1159
- },
1160
- "privacy": "protected"
1161
- },
1162
- {
1163
- "kind": "field",
1164
- "name": "_ariaAttributes",
1165
- "type": {
1166
- "text": "Record<string, string>"
1167
- },
1168
- "privacy": "protected",
1169
- "readonly": true
1170
- },
1171
- {
1172
- "kind": "method",
1173
- "name": "generateId",
1174
- "parameters": [
1175
- {
1176
- "name": "prefix",
1177
- "type": {
1178
- "text": "string"
1179
- }
1180
- }
1181
- ]
1182
- },
1183
- {
1184
- "kind": "method",
1185
- "name": "addFocus",
1186
- "parameters": [
1187
- {
1188
- "name": "element",
1189
- "type": {
1190
- "text": "HTMLElement"
1191
- }
1192
- }
1193
- ]
1194
- },
1195
- {
1196
- "kind": "method",
1197
- "name": "getActiveElement",
1198
- "privacy": "protected",
1199
- "return": {
1200
- "type": {
1201
- "text": "T | null"
1202
- }
1203
- }
1204
- },
1205
- {
1206
- "kind": "field",
1207
- "name": "focusElement",
1208
- "type": {
1209
- "text": "HTMLElement | null"
1210
- },
1211
- "readonly": true
1212
- },
1213
- {
1214
- "kind": "field",
1215
- "name": "prefersReducedMotion",
1216
- "type": {
1217
- "text": "boolean"
1218
- },
1219
- "privacy": "protected",
1220
- "readonly": true
1221
- }
1222
- ],
1223
- "superclass": {
1224
- "name": "LitElement",
1225
- "package": "lit"
1226
- },
1227
- "customElement": true
1228
- },
1229
- {
1230
- "kind": "variable",
1231
- "name": "BaseLocalizedComponent"
1232
- }
1233
- ],
1234
- "exports": [
1235
- {
1236
- "kind": "js",
1237
- "name": "BaseComponent",
1238
- "declaration": {
1239
- "name": "BaseComponent",
1240
- "module": "src/base-component/base-component.ts"
1241
- }
1242
- },
1243
- {
1244
- "kind": "js",
1245
- "name": "BaseLocalizedComponent",
1246
- "declaration": {
1247
- "name": "BaseLocalizedComponent",
1248
- "module": "src/base-component/base-component.ts"
1249
- }
1250
- }
1251
- ]
1252
- },
1253
1253
  {
1254
1254
  "kind": "javascript-module",
1255
1255
  "path": "src/directives/setAttributes.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.7',
9
+ version: '1.0.0-alpha.8',
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,eAAe;KACzB,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.7',\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,eAAe;KACzB,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.8',\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.7",
4
+ "version": "1.0.0-alpha.8",
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.7"
38
+ "@italia/i18n": "^1.0.0-alpha.8"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@custom-elements-manifest/analyzer": "^0.10.3",