@haiilo/catalyst 0.14.1 → 0.15.0

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.
Files changed (81) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/index.cdn.js +37 -15
  4. package/dist/catalyst/p-01da674e.entry.js +12 -0
  5. package/dist/catalyst/p-01da674e.entry.js.map +1 -0
  6. package/dist/catalyst/p-a255bd64.js +3 -0
  7. package/dist/catalyst/p-a255bd64.js.map +1 -0
  8. package/dist/cjs/{cat-alert_22.cjs.entry.js → cat-alert_24.cjs.entry.js} +2264 -50
  9. package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -0
  10. package/dist/cjs/catalyst.cjs.js +2 -2
  11. package/dist/cjs/{index-158dcabf.js → index-c7955116.js} +1 -4
  12. package/dist/cjs/index-c7955116.js.map +1 -0
  13. package/dist/cjs/loader.cjs.js +2 -2
  14. package/dist/collection/collection-manifest.json +2 -0
  15. package/dist/collection/components/cat-badge/cat-badge.css +5 -5
  16. package/dist/collection/components/cat-button/cat-button.css +4 -0
  17. package/dist/collection/components/cat-checkbox/cat-checkbox.css +1 -0
  18. package/dist/collection/components/cat-checkbox/cat-checkbox.js +9 -6
  19. package/dist/collection/components/cat-checkbox/cat-checkbox.js.map +1 -1
  20. package/dist/collection/components/cat-input/cat-input.css +1 -0
  21. package/dist/collection/components/cat-scrollable/cat-scrollable.css +0 -1
  22. package/dist/collection/components/cat-select-remote/cat-select-remote.css +209 -0
  23. package/dist/collection/components/cat-select-remote/cat-select-remote.js +778 -0
  24. package/dist/collection/components/cat-select-remote/cat-select-remote.js.map +1 -0
  25. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js +1288 -0
  26. package/dist/collection/components/cat-select-remote-test/cat-select-remote-test.js.map +1 -0
  27. package/dist/collection/components/cat-toggle/cat-toggle.js +9 -6
  28. package/dist/collection/components/cat-toggle/cat-toggle.js.map +1 -1
  29. package/dist/collection/index.cdn.js +37 -15
  30. package/dist/components/cat-badge.js +1 -1
  31. package/dist/components/cat-badge.js.map +1 -1
  32. package/dist/components/cat-button2.js +1 -1
  33. package/dist/components/cat-button2.js.map +1 -1
  34. package/dist/components/cat-checkbox.js +1 -112
  35. package/dist/components/cat-checkbox.js.map +1 -1
  36. package/dist/components/cat-checkbox2.js +119 -0
  37. package/dist/components/cat-checkbox2.js.map +1 -0
  38. package/dist/components/cat-input.js +1 -1
  39. package/dist/components/cat-input.js.map +1 -1
  40. package/dist/components/cat-scrollable.js +1 -1355
  41. package/dist/components/cat-scrollable.js.map +1 -1
  42. package/dist/components/cat-scrollable2.js +1359 -0
  43. package/dist/components/cat-scrollable2.js.map +1 -0
  44. package/dist/components/cat-select-remote-test.d.ts +11 -0
  45. package/dist/components/cat-select-remote-test.js +1368 -0
  46. package/dist/components/cat-select-remote-test.js.map +1 -0
  47. package/dist/components/cat-select-remote.d.ts +11 -0
  48. package/dist/components/cat-select-remote.js +8 -0
  49. package/dist/components/cat-select-remote.js.map +1 -0
  50. package/dist/components/cat-select-remote2.js +980 -0
  51. package/dist/components/cat-select-remote2.js.map +1 -0
  52. package/dist/components/cat-skeleton.js +1 -71
  53. package/dist/components/cat-skeleton.js.map +1 -1
  54. package/dist/components/cat-skeleton2.js +75 -0
  55. package/dist/components/cat-skeleton2.js.map +1 -0
  56. package/dist/components/cat-toggle.js +7 -4
  57. package/dist/components/cat-toggle.js.map +1 -1
  58. package/dist/components/index.d.ts +2 -0
  59. package/dist/components/index.js +2 -0
  60. package/dist/components/index.js.map +1 -1
  61. package/dist/esm/{cat-alert_22.entry.js → cat-alert_24.entry.js} +2263 -51
  62. package/dist/esm/cat-alert_24.entry.js.map +1 -0
  63. package/dist/esm/catalyst.js +2 -2
  64. package/dist/esm/{index-62388101.js → index-17d2bcf3.js} +2 -4
  65. package/dist/esm/index-17d2bcf3.js.map +1 -0
  66. package/dist/esm/loader.js +2 -2
  67. package/dist/types/components/cat-checkbox/cat-checkbox.d.ts +1 -1
  68. package/dist/types/components/cat-select-remote/autosize.d.ts +1 -0
  69. package/dist/types/components/cat-select-remote/cat-select-remote.d.ts +141 -0
  70. package/dist/types/components/cat-select-remote-test/cat-select-remote-test.d.ts +6 -0
  71. package/dist/types/components/cat-toggle/cat-toggle.d.ts +1 -1
  72. package/dist/types/components.d.ts +145 -4
  73. package/package.json +5 -4
  74. package/dist/catalyst/p-153d4fb8.js +0 -3
  75. package/dist/catalyst/p-153d4fb8.js.map +0 -1
  76. package/dist/catalyst/p-57d68cab.entry.js +0 -12
  77. package/dist/catalyst/p-57d68cab.entry.js.map +0 -1
  78. package/dist/cjs/cat-alert_22.cjs.entry.js.map +0 -1
  79. package/dist/cjs/index-158dcabf.js.map +0 -1
  80. package/dist/esm/cat-alert_22.entry.js.map +0 -1
  81. package/dist/esm/index-62388101.js.map +0 -1
@@ -0,0 +1,141 @@
1
+ import { Placement } from '@floating-ui/dom';
2
+ import { EventEmitter } from '../../stencil-public-runtime';
3
+ import { Observable } from 'rxjs';
4
+ export interface Item {
5
+ id: string;
6
+ }
7
+ export interface Page<T> {
8
+ content: T[];
9
+ last: boolean;
10
+ totalElements?: number;
11
+ }
12
+ export interface RenderInfo {
13
+ label: string;
14
+ description?: string;
15
+ }
16
+ export interface CatSelectRemoteConnector<T extends Item = any> {
17
+ resolve: (id: string[]) => Observable<T[]>;
18
+ retrieve: (term: string, page: number) => Observable<Page<T>>;
19
+ render: (item: T) => RenderInfo;
20
+ }
21
+ export interface CatSelectRemoteState {
22
+ term: string;
23
+ isOpen: boolean;
24
+ isLoading: boolean;
25
+ isResolving: boolean;
26
+ options: {
27
+ item: Item;
28
+ render: RenderInfo;
29
+ }[];
30
+ selection: {
31
+ item: Item;
32
+ render: RenderInfo;
33
+ }[];
34
+ activeOptionIndex: number;
35
+ activeSelectionIndex: number;
36
+ totalElements?: number;
37
+ }
38
+ export declare class CatSelectRemote {
39
+ private static readonly SKELETON_COUNT;
40
+ private static readonly DROPDOWN_OFFSET;
41
+ private readonly i18n;
42
+ private readonly id;
43
+ private dropdown?;
44
+ private trigger?;
45
+ private input?;
46
+ private subscription?;
47
+ private term$;
48
+ private more$;
49
+ hostElement: HTMLElement;
50
+ connector?: CatSelectRemoteConnector;
51
+ state: CatSelectRemoteState;
52
+ hasSlottedLabel: boolean;
53
+ /**
54
+ * Enable multiple selection.
55
+ */
56
+ multiple: boolean;
57
+ /**
58
+ * The debounce time for the search.
59
+ */
60
+ debounce: number;
61
+ /**
62
+ * The placement of the select.
63
+ */
64
+ placement: Placement;
65
+ /**
66
+ * The value of the select.
67
+ */
68
+ value?: string | string[];
69
+ /**
70
+ * Whether the select is disabled.
71
+ */
72
+ disabled: boolean;
73
+ /**
74
+ * The placeholder text to display within the select.
75
+ */
76
+ placeholder?: string;
77
+ /**
78
+ * Optional hint text(s) to be displayed with the select.
79
+ */
80
+ hint?: string | string[];
81
+ /**
82
+ * The label for the select.
83
+ */
84
+ label: string;
85
+ /**
86
+ * The name of the form control. Submitted with the form as part of a name/value pair.
87
+ */
88
+ name: string;
89
+ /**
90
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
91
+ */
92
+ labelHidden: boolean;
93
+ /**
94
+ * A value is required or must be check for the form to be submittable.
95
+ */
96
+ required: boolean;
97
+ /**
98
+ * Whether the select should show a clear button.
99
+ */
100
+ clearable: boolean;
101
+ onConnectorChange(connector: CatSelectRemoteConnector): void;
102
+ onStateChange(newState: CatSelectRemoteState, oldState: CatSelectRemoteState): void;
103
+ /**
104
+ * Emitted when the select dropdown is opened.
105
+ */
106
+ catOpen: EventEmitter<FocusEvent>;
107
+ /**
108
+ * Emitted when the select dropdown is closed.
109
+ */
110
+ catClose: EventEmitter<FocusEvent>;
111
+ /**
112
+ * Emitted when the value is changed.
113
+ */
114
+ catChange: EventEmitter;
115
+ componentDidLoad(): void;
116
+ componentWillRender(): void;
117
+ onBlur(): void;
118
+ onKeyDown(event: KeyboardEvent): void;
119
+ onKeyUp(event: KeyboardEvent): void;
120
+ connect(connector: CatSelectRemoteConnector): Promise<void>;
121
+ render(): any;
122
+ private get hintSection();
123
+ private get connectorSafe();
124
+ private resolve;
125
+ private show;
126
+ private hide;
127
+ private search;
128
+ private isSelected;
129
+ private select;
130
+ private deselect;
131
+ private toggle;
132
+ private clear;
133
+ private reset;
134
+ private onClick;
135
+ private onInput;
136
+ private update;
137
+ private patchState;
138
+ private isPillboxActive;
139
+ private get activeDescendant();
140
+ private onArrowKeyDown;
141
+ }
@@ -0,0 +1,6 @@
1
+ export declare class CatSelectRemoteTest {
2
+ private multipleSelect?;
3
+ private singleSelect?;
4
+ componentDidLoad(): void;
5
+ render(): any;
6
+ }
@@ -40,7 +40,7 @@ export declare class CatToggle {
40
40
  /**
41
41
  * The value of the toggle
42
42
  */
43
- value?: string;
43
+ value?: string | boolean;
44
44
  /**
45
45
  * Optional hint text(s) to be displayed with the toggle.
46
46
  */
@@ -9,6 +9,8 @@ import { Breakpoint } from "./utils/breakpoints";
9
9
  import { InputType } from "./components/cat-input/input-type";
10
10
  import { Placement } from "@floating-ui/dom";
11
11
  import { CatSelectItem } from "./components/cat-select/cat-select";
12
+ import { CatSelectRemoteConnector, Item } from "./components/cat-select-remote/cat-select-remote";
13
+ import { Observable } from "rxjs";
12
14
  export namespace Components {
13
15
  interface CatAlert {
14
16
  /**
@@ -206,7 +208,7 @@ export namespace Components {
206
208
  /**
207
209
  * The value of the checkbox
208
210
  */
209
- "value"?: string;
211
+ "value"?: string | boolean;
210
212
  }
211
213
  interface CatIcon {
212
214
  /**
@@ -474,6 +476,59 @@ export namespace Components {
474
476
  */
475
477
  "value"?: any;
476
478
  }
479
+ interface CatSelectRemote {
480
+ /**
481
+ * Whether the select should show a clear button.
482
+ */
483
+ "clearable": boolean;
484
+ "connect": (connector: CatSelectRemoteConnector) => Promise<void>;
485
+ /**
486
+ * The debounce time for the search.
487
+ */
488
+ "debounce": number;
489
+ /**
490
+ * Whether the select is disabled.
491
+ */
492
+ "disabled": boolean;
493
+ /**
494
+ * Optional hint text(s) to be displayed with the select.
495
+ */
496
+ "hint"?: string | string[];
497
+ /**
498
+ * The label for the select.
499
+ */
500
+ "label": string;
501
+ /**
502
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
503
+ */
504
+ "labelHidden": boolean;
505
+ /**
506
+ * Enable multiple selection.
507
+ */
508
+ "multiple": boolean;
509
+ /**
510
+ * The name of the form control. Submitted with the form as part of a name/value pair.
511
+ */
512
+ "name": string;
513
+ /**
514
+ * The placeholder text to display within the select.
515
+ */
516
+ "placeholder"?: string;
517
+ /**
518
+ * The placement of the select.
519
+ */
520
+ "placement": Placement;
521
+ /**
522
+ * A value is required or must be check for the form to be submittable.
523
+ */
524
+ "required": boolean;
525
+ /**
526
+ * The value of the select.
527
+ */
528
+ "value"?: string | string[];
529
+ }
530
+ interface CatSelectRemoteTest {
531
+ }
477
532
  interface CatSkeleton {
478
533
  /**
479
534
  * The animation style of the skeleton.
@@ -640,7 +695,7 @@ export namespace Components {
640
695
  /**
641
696
  * The value of the toggle
642
697
  */
643
- "value"?: string;
698
+ "value"?: string | boolean;
644
699
  }
645
700
  interface CatTooltip {
646
701
  /**
@@ -701,6 +756,10 @@ export interface CatSelectCustomEvent<T> extends CustomEvent<T> {
701
756
  detail: T;
702
757
  target: HTMLCatSelectElement;
703
758
  }
759
+ export interface CatSelectRemoteCustomEvent<T> extends CustomEvent<T> {
760
+ detail: T;
761
+ target: HTMLCatSelectRemoteElement;
762
+ }
704
763
  export interface CatTabCustomEvent<T> extends CustomEvent<T> {
705
764
  detail: T;
706
765
  target: HTMLCatTabElement;
@@ -798,6 +857,18 @@ declare global {
798
857
  prototype: HTMLCatSelectElement;
799
858
  new (): HTMLCatSelectElement;
800
859
  };
860
+ interface HTMLCatSelectRemoteElement extends Components.CatSelectRemote, HTMLStencilElement {
861
+ }
862
+ var HTMLCatSelectRemoteElement: {
863
+ prototype: HTMLCatSelectRemoteElement;
864
+ new (): HTMLCatSelectRemoteElement;
865
+ };
866
+ interface HTMLCatSelectRemoteTestElement extends Components.CatSelectRemoteTest, HTMLStencilElement {
867
+ }
868
+ var HTMLCatSelectRemoteTestElement: {
869
+ prototype: HTMLCatSelectRemoteTestElement;
870
+ new (): HTMLCatSelectRemoteTestElement;
871
+ };
801
872
  interface HTMLCatSkeletonElement extends Components.CatSkeleton, HTMLStencilElement {
802
873
  }
803
874
  var HTMLCatSkeletonElement: {
@@ -861,6 +932,8 @@ declare global {
861
932
  "cat-radio-group": HTMLCatRadioGroupElement;
862
933
  "cat-scrollable": HTMLCatScrollableElement;
863
934
  "cat-select": HTMLCatSelectElement;
935
+ "cat-select-remote": HTMLCatSelectRemoteElement;
936
+ "cat-select-remote-test": HTMLCatSelectRemoteTestElement;
864
937
  "cat-skeleton": HTMLCatSkeletonElement;
865
938
  "cat-spinner": HTMLCatSpinnerElement;
866
939
  "cat-tab": HTMLCatTabElement;
@@ -1082,7 +1155,7 @@ declare namespace LocalJSX {
1082
1155
  /**
1083
1156
  * The value of the checkbox
1084
1157
  */
1085
- "value"?: string;
1158
+ "value"?: string | boolean;
1086
1159
  }
1087
1160
  interface CatIcon {
1088
1161
  /**
@@ -1404,6 +1477,70 @@ declare namespace LocalJSX {
1404
1477
  */
1405
1478
  "value"?: any;
1406
1479
  }
1480
+ interface CatSelectRemote {
1481
+ /**
1482
+ * Whether the select should show a clear button.
1483
+ */
1484
+ "clearable"?: boolean;
1485
+ /**
1486
+ * The debounce time for the search.
1487
+ */
1488
+ "debounce"?: number;
1489
+ /**
1490
+ * Whether the select is disabled.
1491
+ */
1492
+ "disabled"?: boolean;
1493
+ /**
1494
+ * Optional hint text(s) to be displayed with the select.
1495
+ */
1496
+ "hint"?: string | string[];
1497
+ /**
1498
+ * The label for the select.
1499
+ */
1500
+ "label"?: string;
1501
+ /**
1502
+ * Visually hide the label, but still show it to assistive technologies like screen readers.
1503
+ */
1504
+ "labelHidden"?: boolean;
1505
+ /**
1506
+ * Enable multiple selection.
1507
+ */
1508
+ "multiple"?: boolean;
1509
+ /**
1510
+ * The name of the form control. Submitted with the form as part of a name/value pair.
1511
+ */
1512
+ "name"?: string;
1513
+ /**
1514
+ * Emitted when the value is changed.
1515
+ */
1516
+ "onCatChange"?: (event: CatSelectRemoteCustomEvent<any>) => void;
1517
+ /**
1518
+ * Emitted when the select dropdown is closed.
1519
+ */
1520
+ "onCatClose"?: (event: CatSelectRemoteCustomEvent<FocusEvent>) => void;
1521
+ /**
1522
+ * Emitted when the select dropdown is opened.
1523
+ */
1524
+ "onCatOpen"?: (event: CatSelectRemoteCustomEvent<FocusEvent>) => void;
1525
+ /**
1526
+ * The placeholder text to display within the select.
1527
+ */
1528
+ "placeholder"?: string;
1529
+ /**
1530
+ * The placement of the select.
1531
+ */
1532
+ "placement"?: Placement;
1533
+ /**
1534
+ * A value is required or must be check for the form to be submittable.
1535
+ */
1536
+ "required"?: boolean;
1537
+ /**
1538
+ * The value of the select.
1539
+ */
1540
+ "value"?: string | string[];
1541
+ }
1542
+ interface CatSelectRemoteTest {
1543
+ }
1407
1544
  interface CatSkeleton {
1408
1545
  /**
1409
1546
  * The animation style of the skeleton.
@@ -1588,7 +1725,7 @@ declare namespace LocalJSX {
1588
1725
  /**
1589
1726
  * The value of the toggle
1590
1727
  */
1591
- "value"?: string;
1728
+ "value"?: string | boolean;
1592
1729
  }
1593
1730
  interface CatTooltip {
1594
1731
  /**
@@ -1631,6 +1768,8 @@ declare namespace LocalJSX {
1631
1768
  "cat-radio-group": CatRadioGroup;
1632
1769
  "cat-scrollable": CatScrollable;
1633
1770
  "cat-select": CatSelect;
1771
+ "cat-select-remote": CatSelectRemote;
1772
+ "cat-select-remote-test": CatSelectRemoteTest;
1634
1773
  "cat-skeleton": CatSkeleton;
1635
1774
  "cat-spinner": CatSpinner;
1636
1775
  "cat-tab": CatTab;
@@ -1659,6 +1798,8 @@ declare module "@stencil/core" {
1659
1798
  "cat-radio-group": LocalJSX.CatRadioGroup & JSXBase.HTMLAttributes<HTMLCatRadioGroupElement>;
1660
1799
  "cat-scrollable": LocalJSX.CatScrollable & JSXBase.HTMLAttributes<HTMLCatScrollableElement>;
1661
1800
  "cat-select": LocalJSX.CatSelect & JSXBase.HTMLAttributes<HTMLCatSelectElement>;
1801
+ "cat-select-remote": LocalJSX.CatSelectRemote & JSXBase.HTMLAttributes<HTMLCatSelectRemoteElement>;
1802
+ "cat-select-remote-test": LocalJSX.CatSelectRemoteTest & JSXBase.HTMLAttributes<HTMLCatSelectRemoteTestElement>;
1662
1803
  "cat-skeleton": LocalJSX.CatSkeleton & JSXBase.HTMLAttributes<HTMLCatSkeletonElement>;
1663
1804
  "cat-spinner": LocalJSX.CatSpinner & JSXBase.HTMLAttributes<HTMLCatSpinnerElement>;
1664
1805
  "cat-tab": LocalJSX.CatTab & JSXBase.HTMLAttributes<HTMLCatTabElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@haiilo/catalyst",
3
- "version": "0.14.1",
3
+ "version": "0.15.0",
4
4
  "description": "Catalyst Design System",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -38,14 +38,15 @@
38
38
  "reset": "rm -rf ./dist ./loader ./www ./node_modules"
39
39
  },
40
40
  "peerDependencies": {
41
- "@haiilo/catalyst-icons": ">=0.3.9",
41
+ "@haiilo/catalyst-icons": ">=0.3.10",
42
42
  "rxjs": "^7.5.5"
43
43
  },
44
44
  "dependencies": {
45
45
  "@floating-ui/dom": "0.4.1",
46
- "@haiilo/catalyst-tokens": "0.14.1",
46
+ "@haiilo/catalyst-tokens": "0.15.0",
47
47
  "@stencil/core": "2.17.0",
48
48
  "autosize": "5.0.1",
49
+ "autosize-input": "^1.0.2",
49
50
  "choices.js": "10.1.0",
50
51
  "focus-trap": "6.8.1",
51
52
  "loglevel": "1.8.0",
@@ -55,7 +56,7 @@
55
56
  },
56
57
  "devDependencies": {
57
58
  "@babel/core": "^7.16.5",
58
- "@haiilo/catalyst-icons": "^0.3.9",
59
+ "@haiilo/catalyst-icons": "^0.3.10",
59
60
  "@stencil/angular-output-target": "^0.4.0",
60
61
  "@stencil/react-output-target": "^0.3.1",
61
62
  "@stencil/sass": "^1.5.2",
@@ -1,3 +0,0 @@
1
- const t="catalyst";let e;let n;let s=false;let o=false;const c=typeof window!=="undefined"?window:{};const l=c.document||{head:{}};const i=c.HTMLElement||class{};const f={t:0,o:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,s)=>t.addEventListener(e,n,s),rel:(t,e,n,s)=>t.removeEventListener(e,n,s),ce:(t,e)=>new CustomEvent(t,e)};const r=t=>Promise.resolve(t);const a=(()=>{try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replace==="function"}catch(t){}return false})();const u=(t,e,n,s)=>{if(n){n.map((([n,s,o])=>{const c=t;const l=d(e,o);const i=h(n);f.ael(c,s,l,i);(e.l=e.l||[]).push((()=>f.rel(c,s,l,i)))}))}};const d=(t,e)=>n=>{try{{if(t.t&256){t.i[e](n)}else{(t.u=t.u||[]).push([e,n])}}}catch(t){wt(t)}};const h=t=>(t&2)!==0;const p="{visibility:hidden}.hydrated{visibility:inherit}";const y=(t,e="")=>{{return()=>{}}};const m=(t,e)=>{{return()=>{}}};const b=new WeakMap;const $=(t,e,n)=>{let s=vt.get(t);if(a&&n){s=s||new CSSStyleSheet;s.replace(e)}else{s=e}vt.set(t,s)};const w=(t,e,n,s)=>{let o=S(e);const c=vt.get(o);t=t.nodeType===11?t:l;if(c){if(typeof c==="string"){t=t.head||t;let e=b.get(t);let n;if(!e){b.set(t,e=new Set)}if(!e.has(o)){{{n=l.createElement("style");n.innerHTML=c}t.insertBefore(n,t.querySelector("link"))}if(e){e.add(o)}}}else if(!t.adoptedStyleSheets.includes(c)){t.adoptedStyleSheets=[...t.adoptedStyleSheets,c]}}return o};const g=t=>{const e=t.h;const n=t.p;const s=e.t;const o=y("attachStyles",e.m);const c=w(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(s&10){n["s-sc"]=c;n.classList.add(c+"-h")}o()};const S=(t,e)=>"sc-"+t.m;const v={};const j="http://www.w3.org/2000/svg";const O="http://www.w3.org/1999/xhtml";const k=t=>t!=null;const C=t=>{t=typeof t;return t==="object"||t==="function"};const M=(t,e,...n)=>{let s=null;let o=false;let c=false;const l=[];const i=e=>{for(let n=0;n<e.length;n++){s=e[n];if(Array.isArray(s)){i(s)}else if(s!=null&&typeof s!=="boolean"){if(o=typeof t!=="function"&&!C(s)){s=String(s)}if(o&&c){l[l.length-1].$+=s}else{l.push(o?x(null,s):s)}c=o}}};i(n);if(e){{const t=e.className||e.class;if(t){e.class=typeof t!=="object"?t:Object.keys(t).filter((e=>t[e])).join(" ")}}}if(typeof t==="function"){return t(e===null?{}:e,l,E)}const f=x(t,null);f.g=e;if(l.length>0){f.S=l}return f};const x=(t,e)=>{const n={t:0,v:t,$:e,j:null,S:null};{n.g=null}return n};const P={};const U=t=>t&&t.v===P;const E={forEach:(t,e)=>t.map(L).forEach(e),map:(t,e)=>t.map(L).map(e).map(R)};const L=t=>({vattrs:t.g,vchildren:t.S,vkey:t.O,vname:t.k,vtag:t.v,vtext:t.$});const R=t=>{if(typeof t.vtag==="function"){const e=Object.assign({},t.vattrs);if(t.vkey){e.key=t.vkey}if(t.vname){e.name=t.vname}return M(t.vtag,e,...t.vchildren||[])}const e=x(t.vtag,t.vtext);e.g=t.vattrs;e.S=t.vchildren;e.O=t.vkey;e.k=t.vname;return e};const W=(t,e,n,s,o,l)=>{if(n!==s){let i=$t(t,e);let r=e.toLowerCase();if(e==="class"){const e=t.classList;const o=N(n);const c=N(s);e.remove(...o.filter((t=>t&&!c.includes(t))));e.add(...c.filter((t=>t&&!o.includes(t))))}else if(e==="style"){{for(const e in n){if(!s||s[e]==null){if(e.includes("-")){t.style.removeProperty(e)}else{t.style[e]=""}}}}for(const e in s){if(!n||s[e]!==n[e]){if(e.includes("-")){t.style.setProperty(e,s[e])}else{t.style[e]=s[e]}}}}else if(e==="ref"){if(s){s(t)}}else if(!i&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if($t(c,r)){e=r.slice(2)}else{e=r[2]+e.slice(3)}if(n){f.rel(t,e,n,false)}if(s){f.ael(t,e,s,false)}}else{const c=C(s);if((i||c&&s!==null)&&!o){try{if(!t.tagName.includes("-")){const o=s==null?"":s;if(e==="list"){i=false}else if(n==null||t[e]!=o){t[e]=o}}else{t[e]=s}}catch(t){}}if(s==null||s===false){if(s!==false||t.getAttribute(e)===""){{t.removeAttribute(e)}}}else if((!i||l&4||o)&&!c){s=s===true?"":s;{t.setAttribute(e,s)}}}}};const D=/\s/;const N=t=>!t?[]:t.split(D);const T=(t,e,n,s)=>{const o=e.j.nodeType===11&&e.j.host?e.j.host:e.j;const c=t&&t.g||v;const l=e.g||v;{for(s in c){if(!(s in l)){W(o,s,c[s],undefined,n,e.t)}}}for(s in l){W(o,s,c[s],l[s],n,e.t)}};const A=(t,n,o,c)=>{const i=n.S[o];let f=0;let r;let a;if(i.$!==null){r=i.j=l.createTextNode(i.$)}else{if(!s){s=i.v==="svg"}r=i.j=l.createElementNS(s?j:O,i.v);if(s&&i.v==="foreignObject"){s=false}{T(null,i,s)}if(k(e)&&r["s-si"]!==e){r.classList.add(r["s-si"]=e)}if(i.S){for(f=0;f<i.S.length;++f){a=A(t,i,f);if(a){r.appendChild(a)}}}{if(i.v==="svg"){s=false}else if(r.tagName==="foreignObject"){s=true}}}return r};const F=(t,e,s,o,c,l)=>{let i=t;let f;if(i.shadowRoot&&i.tagName===n){i=i.shadowRoot}for(;c<=l;++c){if(o[c]){f=A(null,s,c);if(f){o[c].j=f;i.insertBefore(f,e)}}}};const H=(t,e,n,s,o)=>{for(;e<=n;++e){if(s=t[e]){o=s.j;_(s);o.remove()}}};const q=(t,e,n,s)=>{let o=0;let c=0;let l=e.length-1;let i=e[0];let f=e[l];let r=s.length-1;let a=s[0];let u=s[r];let d;while(o<=l&&c<=r){if(i==null){i=e[++o]}else if(f==null){f=e[--l]}else if(a==null){a=s[++c]}else if(u==null){u=s[--r]}else if(I(i,a)){V(i,a);i=e[++o];a=s[++c]}else if(I(f,u)){V(f,u);f=e[--l];u=s[--r]}else if(I(i,u)){V(i,u);t.insertBefore(i.j,f.j.nextSibling);i=e[++o];u=s[--r]}else if(I(f,a)){V(f,a);t.insertBefore(f.j,i.j);f=e[--l];a=s[++c]}else{{d=A(e&&e[c],n,c);a=s[++c]}if(d){{i.j.parentNode.insertBefore(d,i.j)}}}}if(o>l){F(t,s[r+1]==null?null:s[r+1].j,n,s,c,r)}else if(c>r){H(e,o,l)}};const I=(t,e)=>{if(t.v===e.v){return true}return false};const V=(t,e)=>{const n=e.j=t.j;const o=t.S;const c=e.S;const l=e.v;const i=e.$;if(i===null){{s=l==="svg"?true:l==="foreignObject"?false:s}{if(l==="slot");else{T(t,e,s)}}if(o!==null&&c!==null){q(n,o,e,c)}else if(c!==null){if(t.$!==null){n.textContent=""}F(n,null,e,c,0,c.length-1)}else if(o!==null){H(o,0,o.length-1)}if(s&&l==="svg"){s=false}}else if(t.$!==i){n.data=i}};const _=t=>{{t.g&&t.g.ref&&t.g.ref(null);t.S&&t.S.map(_)}};const z=(t,s)=>{const o=t.p;const c=t.h;const l=t.C||x(null,null);const i=U(s)?s:M(null,null,s);n=o.tagName;if(c.M){i.g=i.g||{};c.M.map((([t,e])=>i.g[e]=o[t]))}i.v=null;i.t|=4;t.C=i;i.j=l.j=o.shadowRoot||o;{e=o["s-sc"]}V(l,i)};const B=t=>yt(t).p;const G=(t,e,n)=>{const s=B(t);return{emit:t=>J(s,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:t})}};const J=(t,e,n)=>{const s=f.ce(e,n);t.dispatchEvent(s);return s};const K=(t,e)=>{if(e&&!t.P&&e["s-p"]){e["s-p"].push(new Promise((e=>t.P=e)))}};const Q=(t,e)=>{{t.t|=16}if(t.t&4){t.t|=512;return}K(t,t.U);const n=()=>X(t,e);return Pt(n)};const X=(t,e)=>{const n=y("scheduleUpdate",t.h.m);const s=t.i;let o;if(e){{t.t|=256;if(t.u){t.u.map((([t,e])=>nt(s,t,e)));t.u=null}}{o=nt(s,"componentWillLoad")}}{o=st(o,(()=>nt(s,"componentWillRender")))}n();return st(o,(()=>Y(t,s,e)))};const Y=async(t,e,n)=>{const s=t.p;const o=y("update",t.h.m);const c=s["s-rc"];if(n){g(t)}const l=y("render",t.h.m);{Z(t,e)}if(c){c.map((t=>t()));s["s-rc"]=undefined}l();o();{const e=s["s-p"];const n=()=>tt(t);if(e.length===0){n()}else{Promise.all(e).then(n);t.t|=4;e.length=0}}};const Z=(t,e,n)=>{try{e=e.render();{t.t&=~16}{t.t|=2}{{{z(t,e)}}}}catch(e){wt(e,t.p)}return null};const tt=t=>{const e=t.h.m;const n=t.p;const s=y("postUpdate",e);const o=t.i;const c=t.U;{nt(o,"componentDidRender")}if(!(t.t&64)){t.t|=64;{ot(n)}{nt(o,"componentDidLoad")}s();{t.L(n);if(!c){et()}}}else{{nt(o,"componentDidUpdate")}s()}{t.R(n)}{if(t.P){t.P();t.P=undefined}if(t.t&512){xt((()=>Q(t,false)))}t.t&=~(4|512)}};const et=e=>{{ot(l.documentElement)}xt((()=>J(c,"appload",{detail:{namespace:t}})))};const nt=(t,e,n)=>{if(t&&t[e]){try{return t[e](n)}catch(t){wt(t)}}return undefined};const st=(t,e)=>t&&t.then?t.then(e):e();const ot=t=>t.classList.add("hydrated");const ct=(t,e)=>{if(t!=null&&!C(t)){if(e&4){return t==="false"?false:t===""||!!t}if(e&2){return parseFloat(t)}if(e&1){return String(t)}return t}return t};const lt=(t,e)=>yt(t).W.get(e);const it=(t,e,n,s)=>{const o=yt(t);const c=o.p;const l=o.W.get(e);const i=o.t;const f=o.i;n=ct(n,s.D[e][0]);const r=Number.isNaN(l)&&Number.isNaN(n);const a=n!==l&&!r;if((!(i&8)||l===undefined)&&a){o.W.set(e,n);if(f){if(s.N&&i&128){const t=s.N[e];if(t){t.map((t=>{try{f[t](n,l,e)}catch(t){wt(t,c)}}))}}if((i&(2|16))===2){Q(o,false)}}}};const ft=(t,e,n)=>{if(e.D){if(t.watchers){e.N=t.watchers}const s=Object.entries(e.D);const o=t.prototype;s.map((([t,[s]])=>{if(s&31||n&2&&s&32){Object.defineProperty(o,t,{get(){return lt(this,t)},set(n){it(this,t,n,e)},configurable:true,enumerable:true})}else if(n&1&&s&64){Object.defineProperty(o,t,{value(...e){const n=yt(this);return n.T.then((()=>n.i[t](...e)))}})}}));if(n&1){const n=new Map;o.attributeChangedCallback=function(t,e,s){f.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e)){s=this[e];delete this[e]}else if(o.hasOwnProperty(e)&&typeof this[e]==="number"&&this[e]==s){return}this[e]=s===null&&typeof this[e]==="boolean"?false:s}))};t.observedAttributes=s.filter((([t,e])=>e[0]&15)).map((([t,s])=>{const o=s[1]||t;n.set(o,t);if(s[0]&512){e.M.push([t,o])}return o}))}}return t};const rt=async(t,e,n,s,o)=>{if((e.t&32)===0){{e.t|=32;o=St(n);if(o.then){const t=m();o=await o;t()}if(!o.isProxied){{n.N=o.watchers}ft(o,n,2);o.isProxied=true}const t=y("createInstance",n.m);{e.t|=8}try{new o(e)}catch(t){wt(t)}{e.t&=~8}{e.t|=128}t();at(e.i)}if(o.style){let t=o.style;const e=S(n);if(!vt.has(e)){const s=y("registerStyles",n.m);$(e,t,!!(n.t&1));s()}}}const c=e.U;const l=()=>Q(e,true);if(c&&c["s-rc"]){c["s-rc"].push(l)}else{l()}};const at=t=>{{nt(t,"connectedCallback")}};const ut=t=>{if((f.t&1)===0){const e=yt(t);const n=e.h;const s=y("connectedCallback",n.m);if(!(e.t&1)){e.t|=1;{let n=t;while(n=n.parentNode||n.host){if(n["s-p"]){K(e,e.U=n);break}}}if(n.D){Object.entries(n.D).map((([e,[n]])=>{if(n&31&&t.hasOwnProperty(e)){const n=t[e];delete t[e];t[e]=n}}))}{rt(t,e,n)}}else{u(t,e,n.A);at(e.i)}s()}};const dt=t=>{if((f.t&1)===0){const e=yt(t);const n=e.i;{if(e.l){e.l.map((t=>t()));e.l=undefined}}{nt(n,"disconnectedCallback")}}};const ht=(t,e={})=>{const n=y();const s=[];const o=e.exclude||[];const i=c.customElements;const r=l.head;const a=r.querySelector("meta[charset]");const u=l.createElement("style");const d=[];let h;let m=true;Object.assign(f,e);f.o=new URL(e.resourcesUrl||"./",l.baseURI).href;t.map((t=>{t[1].map((e=>{const n={t:e[0],m:e[1],D:e[2],A:e[3]};{n.D=e[2]}{n.A=e[3]}{n.M=[]}{n.N={}}const c=n.m;const l=class extends HTMLElement{constructor(t){super(t);t=this;bt(t,n);if(n.t&1){{{t.attachShadow({mode:"open"})}}}}connectedCallback(){if(h){clearTimeout(h);h=null}if(m){d.push(this)}else{f.jmp((()=>ut(this)))}}disconnectedCallback(){f.jmp((()=>dt(this)))}componentOnReady(){return yt(this).F}};n.H=t[0];if(!o.includes(c)&&!i.get(c)){s.push(c);i.define(c,ft(l,n,1))}}))}));{u.innerHTML=s+p;u.setAttribute("data-styles","");r.insertBefore(u,a?a.nextSibling:r.firstChild)}m=false;if(d.length){d.map((t=>t.connectedCallback()))}else{{f.jmp((()=>h=setTimeout(et,30)))}}n()};const pt=new WeakMap;const yt=t=>pt.get(t);const mt=(t,e)=>pt.set(e.i=t,e);const bt=(t,e)=>{const n={t:0,p:t,h:e,W:new Map};{n.T=new Promise((t=>n.R=t))}{n.F=new Promise((t=>n.L=t));t["s-p"]=[];t["s-rc"]=[]}u(t,n,e.A);return pt.set(t,n)};const $t=(t,e)=>e in t;const wt=(t,e)=>(0,console.error)(t,e);const gt=new Map;const St=(t,e,n)=>{const s=t.m.replace(/-/g,"_");const o=t.H;const c=gt.get(o);if(c){return c[s]}
2
- /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return import(`./${o}.entry.js${""}`).then((t=>{{gt.set(o,t)}return t[s]}),wt)};const vt=new Map;const jt=[];const Ot=[];const kt=(t,e)=>n=>{t.push(n);if(!o){o=true;if(e&&f.t&4){xt(Mt)}else{f.raf(Mt)}}};const Ct=t=>{for(let e=0;e<t.length;e++){try{t[e](performance.now())}catch(t){wt(t)}}t.length=0};const Mt=()=>{Ct(jt);{Ct(Ot);if(o=jt.length>0){f.raf(Mt)}}};const xt=t=>r().then(t);const Pt=kt(Ot,true);export{P as H,i as a,ht as b,G as c,B as g,M as h,r as p,mt as r};
3
- //# sourceMappingURL=p-153d4fb8.js.map