@genesislcap/foundation-utils 14.225.1-alpha-2aa9bd9.0 → 14.225.2-alpha-a51f60c.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. package/dist/custom-elements.json +292 -469
  2. package/dist/dts/error/errorMap.d.ts.map +1 -1
  3. package/dist/dts/index.d.ts +0 -1
  4. package/dist/dts/index.d.ts.map +1 -1
  5. package/dist/dts/mixins/lifecycle/lifecycle.d.ts +51 -29
  6. package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
  7. package/dist/dts/mixins/pendingState/pendingState.d.ts +45 -29
  8. package/dist/dts/mixins/pendingState/pendingState.d.ts.map +1 -1
  9. package/dist/dts/observer/observer.d.ts.map +1 -1
  10. package/dist/dts/promise/resolveAfter.d.ts.map +1 -1
  11. package/dist/dts/tsdoc-metadata.json +1 -1
  12. package/dist/esm/index.js +0 -1
  13. package/dist/esm/mixins/lifecycle/lifecycle.js +5 -5
  14. package/dist/esm/mixins/pendingState/pendingState.js +2 -2
  15. package/dist/esm/uuid/uuid.js +2 -2
  16. package/dist/foundation-utils.api.json +1128 -409
  17. package/dist/foundation-utils.d.ts +93 -92
  18. package/docs/api/foundation-utils.createerrormap.md +14 -1
  19. package/docs/api/foundation-utils.createobserver.md +5 -1
  20. package/docs/api/foundation-utils.getfontmixin.md +16 -1
  21. package/docs/api/foundation-utils.iniframe.md +7 -1
  22. package/docs/api/foundation-utils.insertdocumentcssrule.md +15 -1
  23. package/docs/api/foundation-utils.insertdocumentlink.md +12 -1
  24. package/docs/api/foundation-utils.insymphonydesktop.md +7 -1
  25. package/docs/api/foundation-utils.isdev.md +5 -1
  26. package/docs/api/foundation-utils.lifecyclemixin.md +56 -30
  27. package/docs/api/foundation-utils.loadfontfaces.md +13 -1
  28. package/docs/api/foundation-utils.md +14 -18
  29. package/docs/api/foundation-utils.openpopup.md +17 -1
  30. package/docs/api/foundation-utils.pendingstate.md +57 -30
  31. package/docs/api/foundation-utils.resolveafter.md +12 -1
  32. package/docs/api/foundation-utils.respondtovisibility.md +13 -1
  33. package/docs/{api-report.md → api-report.md.api.md} +93 -70
  34. package/package.json +11 -11
  35. package/dist/dts/encoding/base64/decode.d.ts +0 -16
  36. package/dist/dts/encoding/base64/decode.d.ts.map +0 -1
  37. package/dist/dts/encoding/base64/encode.d.ts +0 -16
  38. package/dist/dts/encoding/base64/encode.d.ts.map +0 -1
  39. package/dist/dts/encoding/base64/index.d.ts +0 -3
  40. package/dist/dts/encoding/base64/index.d.ts.map +0 -1
  41. package/dist/dts/encoding/index.d.ts +0 -2
  42. package/dist/dts/encoding/index.d.ts.map +0 -1
  43. package/dist/esm/encoding/base64/decode.js +0 -45
  44. package/dist/esm/encoding/base64/encode.js +0 -34
  45. package/dist/esm/encoding/base64/index.js +0 -2
  46. package/dist/esm/encoding/index.js +0 -1
  47. package/docs/api/foundation-utils.decodefrombase64.md +0 -13
  48. package/docs/api/foundation-utils.decodefrombase64withprefix.md +0 -18
  49. package/docs/api/foundation-utils.encodetobase64.md +0 -13
  50. package/docs/api/foundation-utils.encodetobase64withprefix.md +0 -18
@@ -2,7 +2,7 @@
2
2
 
3
3
  [Home](./index.md) > [@genesislcap/foundation-utils](./foundation-utils.md) > [respondToVisibility](./foundation-utils.respondtovisibility.md)
4
4
 
5
- ## respondToVisibility variable
5
+ ## respondToVisibility() function
6
6
 
7
7
  Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen
8
8
 
@@ -11,3 +11,15 @@ Setup an `IntersectionObserver` which will activate a callback function when an
11
11
  ```typescript
12
12
  respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => void
13
13
  ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | element | HTMLElement | HTMLElement to observe |
20
+ | callback | (arg0: boolean) => any | any function called when the visibility changes |
21
+
22
+ **Returns:**
23
+
24
+ void
25
+
@@ -4,6 +4,9 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ /// <reference types="node" />
8
+ /// <reference types="webpack-env" />
9
+
7
10
  import { Binding } from '@microsoft/fast-element';
8
11
  import { CaptureType } from '@microsoft/fast-element';
9
12
  import { ComposableStyles } from '@microsoft/fast-element';
@@ -124,12 +127,6 @@ export interface DatabaseRecord {
124
127
  id: string;
125
128
  }
126
129
 
127
- // @public
128
- export const decodeFromBase64: (base64Value: string) => string | ArrayBuffer;
129
-
130
- // @public
131
- export const decodeFromBase64WithPrefix: (value: string) => string | ArrayBuffer;
132
-
133
130
  // @public
134
131
  export let DEFAULT_ORGANISATION: string;
135
132
 
@@ -197,12 +194,6 @@ export interface DTOMapper<TDTO, TEntity> {
197
194
  toDTO: (entity: Partial<TEntity>) => TDTO;
198
195
  }
199
196
 
200
- // @public
201
- export const encodeToBase64: (value: string | ArrayBuffer) => string;
202
-
203
- // @public
204
- export const encodeToBase64WithPrefix: (value: string | ArrayBuffer) => string;
205
-
206
197
  // @public (undocumented)
207
198
  export type ErrorDetailMap = Record<string, unknown>;
208
199
 
@@ -394,11 +385,15 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
394
385
  readonly offsetTop: number;
395
386
  readonly offsetWidth: number;
396
387
  outerText: string;
388
+ popover: string;
397
389
  spellcheck: boolean;
398
390
  title: string;
399
391
  translate: boolean;
400
392
  attachInternals(): ElementInternals;
401
393
  click(): void;
394
+ hidePopover(): void;
395
+ showPopover(): void;
396
+ togglePopover(force?: boolean): boolean;
402
397
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
403
398
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
404
399
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
@@ -427,9 +422,12 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
427
422
  slot: string;
428
423
  readonly tagName: string;
429
424
  attachShadow(init: ShadowRootInit): ShadowRoot;
425
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
430
426
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
431
427
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
428
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
432
429
  closest<E extends Element = Element>(selectors: string): E;
430
+ computedStyleMap(): StylePropertyMapReadOnly;
433
431
  getAttribute(qualifiedName: string): string;
434
432
  getAttributeNS(namespace: string, localName: string): string;
435
433
  getAttributeNames(): string[];
@@ -438,11 +436,14 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
438
436
  getBoundingClientRect(): DOMRect;
439
437
  getClientRects(): DOMRectList;
440
438
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
441
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
442
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
439
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
440
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
441
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
442
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
443
443
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
444
444
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
445
445
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
446
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
446
447
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
447
448
  hasAttribute(qualifiedName: string): boolean;
448
449
  hasAttributeNS(namespace: string, localName: string): boolean;
@@ -499,24 +500,24 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
499
500
  normalize(): void;
500
501
  removeChild<T_3 extends Node>(child: T_3): T_3;
501
502
  replaceChild<T_4 extends Node>(node: Node, child: T_4): T_4;
502
- readonly ATTRIBUTE_NODE: number;
503
- readonly CDATA_SECTION_NODE: number;
504
- readonly COMMENT_NODE: number;
505
- readonly DOCUMENT_FRAGMENT_NODE: number;
506
- readonly DOCUMENT_NODE: number;
507
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
508
- readonly DOCUMENT_POSITION_CONTAINS: number;
509
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
510
- readonly DOCUMENT_POSITION_FOLLOWING: number;
511
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
512
- readonly DOCUMENT_POSITION_PRECEDING: number;
513
- readonly DOCUMENT_TYPE_NODE: number;
514
- readonly ELEMENT_NODE: number;
515
- readonly ENTITY_NODE: number;
516
- readonly ENTITY_REFERENCE_NODE: number;
517
- readonly NOTATION_NODE: number;
518
- readonly PROCESSING_INSTRUCTION_NODE: number;
519
- readonly TEXT_NODE: number;
503
+ readonly ELEMENT_NODE: 1;
504
+ readonly ATTRIBUTE_NODE: 2;
505
+ readonly TEXT_NODE: 3;
506
+ readonly CDATA_SECTION_NODE: 4;
507
+ readonly ENTITY_REFERENCE_NODE: 5;
508
+ readonly ENTITY_NODE: 6;
509
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
510
+ readonly COMMENT_NODE: 8;
511
+ readonly DOCUMENT_NODE: 9;
512
+ readonly DOCUMENT_TYPE_NODE: 10;
513
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
514
+ readonly NOTATION_NODE: 12;
515
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
516
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
517
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
518
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
519
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
520
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
520
521
  dispatchEvent(event: Event): boolean;
521
522
  ariaAtomic: string;
522
523
  ariaAutoComplete: string;
@@ -524,9 +525,9 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
524
525
  ariaChecked: string;
525
526
  ariaColCount: string;
526
527
  ariaColIndex: string;
527
- ariaColIndexText: string;
528
528
  ariaColSpan: string;
529
529
  ariaCurrent: string;
530
+ ariaDescription: string;
530
531
  ariaDisabled: string;
531
532
  ariaExpanded: string;
532
533
  ariaHasPopup: string;
@@ -548,7 +549,6 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
548
549
  ariaRoleDescription: string;
549
550
  ariaRowCount: string;
550
551
  ariaRowIndex: string;
551
- ariaRowIndexText: string;
552
552
  ariaRowSpan: string;
553
553
  ariaSelected: string;
554
554
  ariaSetSize: string;
@@ -573,17 +573,19 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
573
573
  readonly lastElementChild: Element;
574
574
  append(...nodes: (string | Node)[]): void;
575
575
  prepend(...nodes: (string | Node)[]): void;
576
- querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
577
- querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
576
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
577
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
578
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
579
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
578
580
  querySelector<E_1 extends Element = Element>(selectors: string): E_1;
579
- querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
580
- querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
581
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
582
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
583
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
584
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
581
585
  querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
582
586
  replaceChildren(...nodes: (string | Node)[]): void;
583
587
  readonly assignedSlot: HTMLSlotElement;
584
- oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
585
- oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
586
- onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
588
+ readonly attributeStyleMap: StylePropertyMap;
587
589
  readonly style: CSSStyleDeclaration;
588
590
  contentEditable: string;
589
591
  enterKeyHint: string;
@@ -596,6 +598,7 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
596
598
  onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
597
599
  onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
598
600
  onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
601
+ onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
599
602
  onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
600
603
  oncancel: (this: GlobalEventHandlers, ev: Event) => any;
601
604
  oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -604,7 +607,9 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
604
607
  onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
605
608
  onclose: (this: GlobalEventHandlers, ev: Event) => any;
606
609
  oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
610
+ oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
607
611
  oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
612
+ oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
608
613
  ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
609
614
  ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
610
615
  ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
@@ -637,6 +642,7 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
637
642
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
638
643
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
639
644
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
645
+ onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
640
646
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
641
647
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
642
648
  onplaying: (this: GlobalEventHandlers, ev: Event) => any;
@@ -653,6 +659,7 @@ export const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T)
653
659
  onreset: (this: GlobalEventHandlers, ev: Event) => any;
654
660
  onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
655
661
  onscroll: (this: GlobalEventHandlers, ev: Event) => any;
662
+ onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
656
663
  onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
657
664
  onseeked: (this: GlobalEventHandlers, ev: Event) => any;
658
665
  onseeking: (this: GlobalEventHandlers, ev: Event) => any;
@@ -767,11 +774,15 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
767
774
  readonly offsetTop: number;
768
775
  readonly offsetWidth: number;
769
776
  outerText: string;
777
+ popover: string;
770
778
  spellcheck: boolean;
771
779
  title: string;
772
780
  translate: boolean;
773
781
  attachInternals(): ElementInternals;
774
782
  click(): void;
783
+ hidePopover(): void;
784
+ showPopover(): void;
785
+ togglePopover(force?: boolean): boolean;
775
786
  addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
776
787
  addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
777
788
  removeEventListener<K_1 extends keyof HTMLElementEventMap>(type: K_1, listener: (this: HTMLElement, ev: HTMLElementEventMap[K_1]) => any, options?: boolean | EventListenerOptions): void;
@@ -800,9 +811,12 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
800
811
  slot: string;
801
812
  readonly tagName: string;
802
813
  attachShadow(init: ShadowRootInit): ShadowRoot;
814
+ checkVisibility(options?: CheckVisibilityOptions): boolean;
803
815
  closest<K_2 extends keyof HTMLElementTagNameMap>(selector: K_2): HTMLElementTagNameMap[K_2];
804
816
  closest<K_3 extends keyof SVGElementTagNameMap>(selector: K_3): SVGElementTagNameMap[K_3];
817
+ closest<K_4 extends keyof MathMLElementTagNameMap>(selector: K_4): MathMLElementTagNameMap[K_4];
805
818
  closest<E extends Element = Element>(selectors: string): E;
819
+ computedStyleMap(): StylePropertyMapReadOnly;
806
820
  getAttribute(qualifiedName: string): string;
807
821
  getAttributeNS(namespace: string, localName: string): string;
808
822
  getAttributeNames(): string[];
@@ -811,11 +825,14 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
811
825
  getBoundingClientRect(): DOMRect;
812
826
  getClientRects(): DOMRectList;
813
827
  getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
814
- getElementsByTagName<K_4 extends keyof HTMLElementTagNameMap>(qualifiedName: K_4): HTMLCollectionOf<HTMLElementTagNameMap[K_4]>;
815
- getElementsByTagName<K_5 extends keyof SVGElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<SVGElementTagNameMap[K_5]>;
828
+ getElementsByTagName<K_5 extends keyof HTMLElementTagNameMap>(qualifiedName: K_5): HTMLCollectionOf<HTMLElementTagNameMap[K_5]>;
829
+ getElementsByTagName<K_6 extends keyof SVGElementTagNameMap>(qualifiedName: K_6): HTMLCollectionOf<SVGElementTagNameMap[K_6]>;
830
+ getElementsByTagName<K_7 extends keyof MathMLElementTagNameMap>(qualifiedName: K_7): HTMLCollectionOf<MathMLElementTagNameMap[K_7]>;
831
+ getElementsByTagName<K_8 extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K_8): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K_8]>;
816
832
  getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
817
833
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
818
834
  getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
835
+ getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
819
836
  getElementsByTagNameNS(namespace: string, localName: string): HTMLCollectionOf<Element>;
820
837
  hasAttribute(qualifiedName: string): boolean;
821
838
  hasAttributeNS(namespace: string, localName: string): boolean;
@@ -873,24 +890,24 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
873
890
  normalize(): void;
874
891
  removeChild<T_2 extends Node>(child: T_2): T_2;
875
892
  replaceChild<T_3 extends Node>(node: Node, child: T_3): T_3;
876
- readonly ATTRIBUTE_NODE: number;
877
- readonly CDATA_SECTION_NODE: number;
878
- readonly COMMENT_NODE: number;
879
- readonly DOCUMENT_FRAGMENT_NODE: number;
880
- readonly DOCUMENT_NODE: number;
881
- readonly DOCUMENT_POSITION_CONTAINED_BY: number;
882
- readonly DOCUMENT_POSITION_CONTAINS: number;
883
- readonly DOCUMENT_POSITION_DISCONNECTED: number;
884
- readonly DOCUMENT_POSITION_FOLLOWING: number;
885
- readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
886
- readonly DOCUMENT_POSITION_PRECEDING: number;
887
- readonly DOCUMENT_TYPE_NODE: number;
888
- readonly ELEMENT_NODE: number;
889
- readonly ENTITY_NODE: number;
890
- readonly ENTITY_REFERENCE_NODE: number;
891
- readonly NOTATION_NODE: number;
892
- readonly PROCESSING_INSTRUCTION_NODE: number;
893
- readonly TEXT_NODE: number;
893
+ readonly ELEMENT_NODE: 1;
894
+ readonly ATTRIBUTE_NODE: 2;
895
+ readonly TEXT_NODE: 3;
896
+ readonly CDATA_SECTION_NODE: 4;
897
+ readonly ENTITY_REFERENCE_NODE: 5;
898
+ readonly ENTITY_NODE: 6;
899
+ readonly PROCESSING_INSTRUCTION_NODE: 7;
900
+ readonly COMMENT_NODE: 8;
901
+ readonly DOCUMENT_NODE: 9;
902
+ readonly DOCUMENT_TYPE_NODE: 10;
903
+ readonly DOCUMENT_FRAGMENT_NODE: 11;
904
+ readonly NOTATION_NODE: 12;
905
+ readonly DOCUMENT_POSITION_DISCONNECTED: 1;
906
+ readonly DOCUMENT_POSITION_PRECEDING: 2;
907
+ readonly DOCUMENT_POSITION_FOLLOWING: 4;
908
+ readonly DOCUMENT_POSITION_CONTAINS: 8;
909
+ readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
910
+ readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
894
911
  dispatchEvent(event: Event): boolean;
895
912
  ariaAtomic: string;
896
913
  ariaAutoComplete: string;
@@ -898,9 +915,9 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
898
915
  ariaChecked: string;
899
916
  ariaColCount: string;
900
917
  ariaColIndex: string;
901
- ariaColIndexText: string;
902
918
  ariaColSpan: string;
903
919
  ariaCurrent: string;
920
+ ariaDescription: string;
904
921
  ariaDisabled: string;
905
922
  ariaExpanded: string;
906
923
  ariaHasPopup: string;
@@ -922,7 +939,6 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
922
939
  ariaRoleDescription: string;
923
940
  ariaRowCount: string;
924
941
  ariaRowIndex: string;
925
- ariaRowIndexText: string;
926
942
  ariaRowSpan: string;
927
943
  ariaSelected: string;
928
944
  ariaSetSize: string;
@@ -947,17 +963,19 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
947
963
  readonly lastElementChild: Element;
948
964
  append(...nodes: (string | Node)[]): void;
949
965
  prepend(...nodes: (string | Node)[]): void;
950
- querySelector<K_6 extends keyof HTMLElementTagNameMap>(selectors: K_6): HTMLElementTagNameMap[K_6];
951
- querySelector<K_7 extends keyof SVGElementTagNameMap>(selectors: K_7): SVGElementTagNameMap[K_7];
966
+ querySelector<K_9 extends keyof HTMLElementTagNameMap>(selectors: K_9): HTMLElementTagNameMap[K_9];
967
+ querySelector<K_10 extends keyof SVGElementTagNameMap>(selectors: K_10): SVGElementTagNameMap[K_10];
968
+ querySelector<K_11 extends keyof MathMLElementTagNameMap>(selectors: K_11): MathMLElementTagNameMap[K_11];
969
+ querySelector<K_12 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_12): HTMLElementDeprecatedTagNameMap[K_12];
952
970
  querySelector<E_1 extends Element = Element>(selectors: string): E_1;
953
- querySelectorAll<K_8 extends keyof HTMLElementTagNameMap>(selectors: K_8): NodeListOf<HTMLElementTagNameMap[K_8]>;
954
- querySelectorAll<K_9 extends keyof SVGElementTagNameMap>(selectors: K_9): NodeListOf<SVGElementTagNameMap[K_9]>;
971
+ querySelectorAll<K_13 extends keyof HTMLElementTagNameMap>(selectors: K_13): NodeListOf<HTMLElementTagNameMap[K_13]>;
972
+ querySelectorAll<K_14 extends keyof SVGElementTagNameMap>(selectors: K_14): NodeListOf<SVGElementTagNameMap[K_14]>;
973
+ querySelectorAll<K_15 extends keyof MathMLElementTagNameMap>(selectors: K_15): NodeListOf<MathMLElementTagNameMap[K_15]>;
974
+ querySelectorAll<K_16 extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K_16): NodeListOf<HTMLElementDeprecatedTagNameMap[K_16]>;
955
975
  querySelectorAll<E_2 extends Element = Element>(selectors: string): NodeListOf<E_2>;
956
976
  replaceChildren(...nodes: (string | Node)[]): void;
957
977
  readonly assignedSlot: HTMLSlotElement;
958
- oncopy: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
959
- oncut: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
960
- onpaste: (this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any;
978
+ readonly attributeStyleMap: StylePropertyMap;
961
979
  readonly style: CSSStyleDeclaration;
962
980
  contentEditable: string;
963
981
  enterKeyHint: string;
@@ -970,6 +988,7 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
970
988
  onanimationstart: (this: GlobalEventHandlers, ev: AnimationEvent) => any;
971
989
  onauxclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
972
990
  onbeforeinput: (this: GlobalEventHandlers, ev: InputEvent) => any;
991
+ onbeforetoggle: (this: GlobalEventHandlers, ev: Event) => any;
973
992
  onblur: (this: GlobalEventHandlers, ev: FocusEvent) => any;
974
993
  oncancel: (this: GlobalEventHandlers, ev: Event) => any;
975
994
  oncanplay: (this: GlobalEventHandlers, ev: Event) => any;
@@ -978,7 +997,9 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
978
997
  onclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
979
998
  onclose: (this: GlobalEventHandlers, ev: Event) => any;
980
999
  oncontextmenu: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1000
+ oncopy: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
981
1001
  oncuechange: (this: GlobalEventHandlers, ev: Event) => any;
1002
+ oncut: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
982
1003
  ondblclick: (this: GlobalEventHandlers, ev: MouseEvent) => any;
983
1004
  ondrag: (this: GlobalEventHandlers, ev: DragEvent) => any;
984
1005
  ondragend: (this: GlobalEventHandlers, ev: DragEvent) => any;
@@ -1011,6 +1032,7 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
1011
1032
  onmouseout: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1012
1033
  onmouseover: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1013
1034
  onmouseup: (this: GlobalEventHandlers, ev: MouseEvent) => any;
1035
+ onpaste: (this: GlobalEventHandlers, ev: ClipboardEvent) => any;
1014
1036
  onpause: (this: GlobalEventHandlers, ev: Event) => any;
1015
1037
  onplay: (this: GlobalEventHandlers, ev: Event) => any;
1016
1038
  onplaying: (this: GlobalEventHandlers, ev: Event) => any;
@@ -1027,6 +1049,7 @@ export const PendingState: <TBase extends ConstructablePendingState>(Base: TBase
1027
1049
  onreset: (this: GlobalEventHandlers, ev: Event) => any;
1028
1050
  onresize: (this: GlobalEventHandlers, ev: UIEvent) => any;
1029
1051
  onscroll: (this: GlobalEventHandlers, ev: Event) => any;
1052
+ onscrollend: (this: GlobalEventHandlers, ev: Event) => any;
1030
1053
  onsecuritypolicyviolation: (this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any;
1031
1054
  onseeked: (this: GlobalEventHandlers, ev: Event) => any;
1032
1055
  onseeking: (this: GlobalEventHandlers, ev: Event) => any;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.225.1-alpha-2aa9bd9.0",
4
+ "version": "14.225.2-alpha-a51f60c.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,23 +27,23 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.225.1-alpha-2aa9bd9.0",
31
- "@genesislcap/genx": "14.225.1-alpha-2aa9bd9.0",
32
- "@genesislcap/rollup-builder": "14.225.1-alpha-2aa9bd9.0",
33
- "@genesislcap/ts-builder": "14.225.1-alpha-2aa9bd9.0",
34
- "@genesislcap/uvu-playwright-builder": "14.225.1-alpha-2aa9bd9.0",
35
- "@genesislcap/vite-builder": "14.225.1-alpha-2aa9bd9.0",
36
- "@genesislcap/webpack-builder": "14.225.1-alpha-2aa9bd9.0",
30
+ "@genesislcap/foundation-testing": "14.225.2-alpha-a51f60c.0",
31
+ "@genesislcap/genx": "14.225.2-alpha-a51f60c.0",
32
+ "@genesislcap/rollup-builder": "14.225.2-alpha-a51f60c.0",
33
+ "@genesislcap/ts-builder": "14.225.2-alpha-a51f60c.0",
34
+ "@genesislcap/uvu-playwright-builder": "14.225.2-alpha-a51f60c.0",
35
+ "@genesislcap/vite-builder": "14.225.2-alpha-a51f60c.0",
36
+ "@genesislcap/webpack-builder": "14.225.2-alpha-a51f60c.0",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.225.1-alpha-2aa9bd9.0",
40
+ "@genesislcap/foundation-logger": "14.225.2-alpha-a51f60c.0",
41
41
  "@microsoft/fast-components": "2.30.6",
42
42
  "@microsoft/fast-element": "1.14.0",
43
43
  "@microsoft/fast-foundation": "2.49.6",
44
44
  "lossless-json": "^2.0.11",
45
45
  "numeral": "2.0.6",
46
- "tslib": "^2.3.1",
46
+ "tslib": "2.8.1",
47
47
  "uuid": "^8.3.2"
48
48
  },
49
49
  "repository": {
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "02426a5ad4f33229095ff8761661873cfdce2e7f"
58
+ "gitHead": "4e2f49c901b8ee0f06d4df645c355d7f6c7bde70"
59
59
  }
@@ -1,16 +0,0 @@
1
- /**
2
- * Decodes a value from base64.
3
- * @public
4
- * @param value - The value to decode from base64.
5
- * @returns The decoded value.
6
- */
7
- export declare const decodeFromBase64: (base64Value: string) => string | ArrayBuffer;
8
- /**
9
- * Decodes a value from base64 with a prefix.
10
- * @remarks Prefixes are: 'str:' for string and 'bin:' for ArrayBuffer.
11
- * @public
12
- * @param value - The value to decode from base64.
13
- * @returns The decoded value.
14
- */
15
- export declare const decodeFromBase64WithPrefix: (value: string) => string | ArrayBuffer;
16
- //# sourceMappingURL=decode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["../../../../src/encoding/base64/decode.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,KAAG,MAAM,GAAG,WAY/D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,UAAW,MAAM,KAAG,MAAM,GAAG,WAqBnE,CAAC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Encodes the given value to base64.
3
- * @public
4
- * @param value - The value to encode to base64.
5
- * @returns The base64 encoded value.
6
- */
7
- export declare const encodeToBase64: (value: string | ArrayBuffer) => string;
8
- /**
9
- * Encodes the given value with a prefix to base64.
10
- * @remarks Prefixes are: 'str:' for string and 'bin:' for ArrayBuffer.
11
- * @public
12
- * @param value - The value to encode to base64.
13
- * @returns The base64 encoded value with a prefix.
14
- */
15
- export declare const encodeToBase64WithPrefix: (value: string | ArrayBuffer) => string;
16
- //# sourceMappingURL=encode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["../../../../src/encoding/base64/encode.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,WAAW,KAAG,MAU5D,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,UAAW,MAAM,GAAG,WAAW,KAAG,MAUtE,CAAC"}
@@ -1,3 +0,0 @@
1
- export * from './decode';
2
- export * from './encode';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/encoding/base64/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
@@ -1,2 +0,0 @@
1
- export * from './base64';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/encoding/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
@@ -1,45 +0,0 @@
1
- const base64Pattern = /^(?:[A-Za-z0-9+/]{4})*?(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/;
2
- /**
3
- * Decodes a value from base64.
4
- * @public
5
- * @param value - The value to decode from base64.
6
- * @returns The decoded value.
7
- */
8
- export const decodeFromBase64 = (base64Value) => {
9
- if (base64Pattern.test(base64Value)) {
10
- const decodedString = atob(base64Value);
11
- const buffer = new Uint8Array(decodedString.length);
12
- [...decodedString].forEach((_, i) => {
13
- buffer[i] = decodedString.charCodeAt(i);
14
- });
15
- return buffer.buffer;
16
- }
17
- return base64Value;
18
- };
19
- /**
20
- * Decodes a value from base64 with a prefix.
21
- * @remarks Prefixes are: 'str:' for string and 'bin:' for ArrayBuffer.
22
- * @public
23
- * @param value - The value to decode from base64.
24
- * @returns The decoded value.
25
- */
26
- export const decodeFromBase64WithPrefix = (value) => {
27
- const parts = value.split(':');
28
- let prefix;
29
- let base64Value;
30
- if (parts.length === 2) {
31
- [prefix, base64Value] = parts;
32
- }
33
- else {
34
- base64Value = value;
35
- }
36
- const decodedValue = decodeFromBase64(base64Value);
37
- if (prefix === 'str') {
38
- const textDecoder = new TextDecoder('utf-8');
39
- return textDecoder.decode(decodedValue);
40
- }
41
- else if (prefix === 'bin') {
42
- return decodedValue;
43
- }
44
- return decodedValue;
45
- };
@@ -1,34 +0,0 @@
1
- /**
2
- * Encodes the given value to base64.
3
- * @public
4
- * @param value - The value to encode to base64.
5
- * @returns The base64 encoded value.
6
- */
7
- export const encodeToBase64 = (value) => {
8
- if (typeof value === 'string') {
9
- return btoa(value);
10
- }
11
- else if (value instanceof ArrayBuffer) {
12
- const buffer = new Uint8Array(value);
13
- const binaryString = buffer.reduce((data, byte) => data + String.fromCharCode(byte), '');
14
- return btoa(binaryString);
15
- }
16
- return '';
17
- };
18
- /**
19
- * Encodes the given value with a prefix to base64.
20
- * @remarks Prefixes are: 'str:' for string and 'bin:' for ArrayBuffer.
21
- * @public
22
- * @param value - The value to encode to base64.
23
- * @returns The base64 encoded value with a prefix.
24
- */
25
- export const encodeToBase64WithPrefix = (value) => {
26
- const base64Value = encodeToBase64(value);
27
- if (typeof value === 'string') {
28
- return `str:${base64Value}`;
29
- }
30
- else if (value instanceof ArrayBuffer) {
31
- return `bin:${base64Value}`;
32
- }
33
- return '';
34
- };
@@ -1,2 +0,0 @@
1
- export * from './decode';
2
- export * from './encode';
@@ -1 +0,0 @@
1
- export * from './base64';
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [decodeFromBase64](./foundation-utils.decodefrombase64.md)
4
-
5
- ## decodeFromBase64 variable
6
-
7
- Decodes a value from base64.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- decodeFromBase64: (base64Value: string) => string | ArrayBuffer
13
- ```
@@ -1,18 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [decodeFromBase64WithPrefix](./foundation-utils.decodefrombase64withprefix.md)
4
-
5
- ## decodeFromBase64WithPrefix variable
6
-
7
- Decodes a value from base64 with a prefix.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- decodeFromBase64WithPrefix: (value: string) => string | ArrayBuffer
13
- ```
14
-
15
- ## Remarks
16
-
17
- Prefixes are: 'str:' for string and 'bin:' for ArrayBuffer.
18
-
@@ -1,13 +0,0 @@
1
- <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
-
3
- [Home](./index.md) &gt; [@genesislcap/foundation-utils](./foundation-utils.md) &gt; [encodeToBase64](./foundation-utils.encodetobase64.md)
4
-
5
- ## encodeToBase64 variable
6
-
7
- Encodes the given value to base64.
8
-
9
- **Signature:**
10
-
11
- ```typescript
12
- encodeToBase64: (value: string | ArrayBuffer) => string
13
- ```