@italia/i18n 0.1.0-alpha.2 → 1.0.0-alpha.4

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.
@@ -56,7 +56,7 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
56
56
  * this.$localize.lang() -> ritorna la lingua corrente
57
57
  * this.$localize.dir() -> ritorna la direzione della lingua corrente
58
58
  */
59
- readonly $localize: LocalizeController<import("../index.js").DefaultTranslation>;
59
+ get $localize(): LocalizeController<import("../index.js").DefaultTranslation>;
60
60
  /**
61
61
  * Restituisce una stringa localizzata a partire da una chiave di termine.
62
62
  *
@@ -106,6 +106,7 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
106
106
  accessKey: string;
107
107
  readonly accessKeyLabel: string;
108
108
  autocapitalize: string;
109
+ autocorrect: boolean;
109
110
  dir: string;
110
111
  draggable: boolean;
111
112
  hidden: boolean;
@@ -213,6 +214,8 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
213
214
  setPointerCapture(pointerId: number): void;
214
215
  toggleAttribute(qualifiedName: string, force?: boolean): boolean;
215
216
  webkitMatchesSelector(selectors: string): boolean;
217
+ get textContent(): string;
218
+ set textContent(value: string | null);
216
219
  readonly baseURI: string;
217
220
  readonly childNodes: NodeListOf<ChildNode>;
218
221
  readonly firstChild: ChildNode | null;
@@ -225,7 +228,6 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
225
228
  readonly parentElement: HTMLElement | null;
226
229
  readonly parentNode: ParentNode | null;
227
230
  readonly previousSibling: ChildNode | null;
228
- textContent: string | null;
229
231
  appendChild<T_1 extends Node>(node: T_1): T_1;
230
232
  cloneNode(subtree?: boolean): Node;
231
233
  compareDocumentPosition(other: Node): number;
@@ -260,6 +262,7 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
260
262
  readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
261
263
  readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
262
264
  dispatchEvent(event: Event): boolean;
265
+ ariaActiveDescendantElement: Element | null;
263
266
  ariaAtomic: string | null;
264
267
  ariaAutoComplete: string | null;
265
268
  ariaBrailleLabel: string | null;
@@ -270,21 +273,28 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
270
273
  ariaColIndex: string | null;
271
274
  ariaColIndexText: string | null;
272
275
  ariaColSpan: string | null;
276
+ ariaControlsElements: ReadonlyArray<Element> | null;
273
277
  ariaCurrent: string | null;
278
+ ariaDescribedByElements: ReadonlyArray<Element> | null;
274
279
  ariaDescription: string | null;
280
+ ariaDetailsElements: ReadonlyArray<Element> | null;
275
281
  ariaDisabled: string | null;
282
+ ariaErrorMessageElements: ReadonlyArray<Element> | null;
276
283
  ariaExpanded: string | null;
284
+ ariaFlowToElements: ReadonlyArray<Element> | null;
277
285
  ariaHasPopup: string | null;
278
286
  ariaHidden: string | null;
279
287
  ariaInvalid: string | null;
280
288
  ariaKeyShortcuts: string | null;
281
289
  ariaLabel: string | null;
290
+ ariaLabelledByElements: ReadonlyArray<Element> | null;
282
291
  ariaLevel: string | null;
283
292
  ariaLive: string | null;
284
293
  ariaModal: string | null;
285
294
  ariaMultiLine: string | null;
286
295
  ariaMultiSelectable: string | null;
287
296
  ariaOrientation: string | null;
297
+ ariaOwnsElements: ReadonlyArray<Element> | null;
288
298
  ariaPlaceholder: string | null;
289
299
  ariaPosInSet: string | null;
290
300
  ariaPressed: string | null;
@@ -342,18 +352,19 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
342
352
  onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
343
353
  onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
344
354
  onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
345
- onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
355
+ onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
346
356
  onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
347
- onbeforetoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
357
+ onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
+ onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
348
359
  onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
349
360
  oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
350
361
  oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
351
362
  oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
352
363
  onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
353
- onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
364
+ onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
354
365
  onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
355
366
  oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
356
- oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
367
+ oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
357
368
  oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
358
369
  oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
359
370
  oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -401,6 +412,7 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
401
412
  onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
402
413
  onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
403
414
  onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
415
+ onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
404
416
  onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
405
417
  onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
406
418
  onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
@@ -419,7 +431,7 @@ declare const LocalizeMixin: <T extends Constructor<ReactiveControllerHost & HTM
419
431
  onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
420
432
  onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
421
433
  ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
422
- ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;
434
+ ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
423
435
  ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
424
436
  ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
425
437
  ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"localization.d.ts","sourceRoot":"","sources":["../../../src/mixins/localization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,KAAK,CAAC;AAC7C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAEH,QAAA,MAAM,aAAa,GAAI,CAAC,SAAS,WAAW,CAAC,sBAAsB,GAAG,WAAW,CAAC,EAAE,MAAM,CAAC;;kBAEtE,kBAAkB;QAOnC;;;;;;;;;;WAUG;;QAKH;;;;;;;;;;;WAWG;cACU,MAAM;QAKnB;;;;;;;;;;;;;WAaG;cACU,IAAI,GAAG,MAAM,KAAK,IAAI,CAAC,qBAAqB;QAKzD;;;;;;;;;;;;WAYG;cACU,MAAM,KAAK,IAAI,CAAC,mBAAmB;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAGjD,CAAC;AAEJ,eAAe,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/i18n",
3
3
  "description": "Translations utility del Design system .italia",
4
- "version": "0.1.0-alpha.2",
4
+ "version": "1.0.0-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },