@stencil-kit/core 0.0.1 → 0.0.2
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.
- package/dist/cjs/{index-BrMvRGjk.js → index-q0fPnkdL.js} +116 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/my-alert.cjs.entry.js +35 -0
- package/dist/cjs/my-badge.cjs.entry.js +1 -1
- package/dist/cjs/my-button.cjs.entry.js +1 -1
- package/dist/cjs/my-card.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/my-dropdown.cjs.entry.js +45 -0
- package/dist/cjs/my-input.cjs.entry.js +28 -0
- package/dist/cjs/my-modal.cjs.entry.js +36 -0
- package/dist/cjs/stencil-library.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/my-alert/my-alert.css +96 -0
- package/dist/collection/components/my-alert/my-alert.js +122 -0
- package/dist/collection/components/my-dropdown/my-dropdown.css +111 -0
- package/dist/collection/components/my-dropdown/my-dropdown.js +198 -0
- package/dist/collection/components/my-input/my-input.css +58 -0
- package/dist/collection/components/my-input/my-input.js +204 -0
- package/dist/collection/components/my-modal/my-modal.css +88 -0
- package/dist/collection/components/my-modal/my-modal.js +119 -0
- package/dist/components/index.js +1 -1
- package/dist/components/my-alert.d.ts +11 -0
- package/dist/components/my-alert.js +1 -0
- package/dist/components/my-badge.js +1 -1
- package/dist/components/my-button.js +1 -1
- package/dist/components/my-card.js +1 -1
- package/dist/components/my-component.js +1 -1
- package/dist/components/my-dropdown.d.ts +11 -0
- package/dist/components/my-dropdown.js +1 -0
- package/dist/components/my-input.d.ts +11 -0
- package/dist/components/my-input.js +1 -0
- package/dist/components/my-modal.d.ts +11 -0
- package/dist/components/my-modal.js +1 -0
- package/dist/components/p-qbDrUNkY.js +1 -0
- package/dist/esm/{index-Bdf40fwG.js → index-Bvqd98ac.js} +116 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/my-alert.entry.js +33 -0
- package/dist/esm/my-badge.entry.js +1 -1
- package/dist/esm/my-button.entry.js +1 -1
- package/dist/esm/my-card.entry.js +1 -1
- package/dist/esm/my-component.entry.js +1 -1
- package/dist/esm/my-dropdown.entry.js +43 -0
- package/dist/esm/my-input.entry.js +26 -0
- package/dist/esm/my-modal.entry.js +34 -0
- package/dist/esm/stencil-library.js +3 -3
- package/dist/stencil-library/p-14e60a62.entry.js +1 -0
- package/dist/stencil-library/{p-2b74a573.entry.js → p-54490973.entry.js} +1 -1
- package/dist/stencil-library/p-6f9720d5.entry.js +1 -0
- package/dist/stencil-library/{p-fd06de5e.entry.js → p-8ece36c8.entry.js} +1 -1
- package/dist/stencil-library/p-9a704cf3.entry.js +1 -0
- package/dist/stencil-library/{p-ba774cf9.entry.js → p-9cb3a621.entry.js} +1 -1
- package/dist/stencil-library/p-Bvqd98ac.js +2 -0
- package/dist/stencil-library/p-ddb7d070.entry.js +1 -0
- package/dist/stencil-library/{p-b36446f6.entry.js → p-f8560476.entry.js} +1 -1
- package/dist/stencil-library/stencil-library.esm.js +1 -1
- package/dist/types/components/my-alert/my-alert.d.ts +11 -0
- package/dist/types/components/my-dropdown/my-dropdown.d.ts +19 -0
- package/dist/types/components/my-input/my-input.d.ts +13 -0
- package/dist/types/components/my-modal/my-modal.d.ts +10 -0
- package/dist/types/components.d.ts +299 -0
- package/package.json +2 -2
- package/dist/components/p-BJi3ojZX.js +0 -1
- package/dist/stencil-library/p-Bdf40fwG.js +0 -2
|
@@ -5,7 +5,23 @@
|
|
|
5
5
|
* It contains typing information for all components that exist in this project.
|
|
6
6
|
*/
|
|
7
7
|
import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
|
|
8
|
+
import { DropdownOption } from "./components/my-dropdown/my-dropdown";
|
|
9
|
+
export { DropdownOption } from "./components/my-dropdown/my-dropdown";
|
|
8
10
|
export namespace Components {
|
|
11
|
+
interface MyAlert {
|
|
12
|
+
/**
|
|
13
|
+
* @default ''
|
|
14
|
+
*/
|
|
15
|
+
"alertTitle": string;
|
|
16
|
+
/**
|
|
17
|
+
* @default false
|
|
18
|
+
*/
|
|
19
|
+
"dismissible": boolean;
|
|
20
|
+
/**
|
|
21
|
+
* @default 'info'
|
|
22
|
+
*/
|
|
23
|
+
"type": 'success' | 'warning' | 'error' | 'info';
|
|
24
|
+
}
|
|
9
25
|
interface MyBadge {
|
|
10
26
|
/**
|
|
11
27
|
* Badge color variant
|
|
@@ -69,8 +85,111 @@ export namespace Components {
|
|
|
69
85
|
*/
|
|
70
86
|
"middle"?: string;
|
|
71
87
|
}
|
|
88
|
+
interface MyDropdown {
|
|
89
|
+
/**
|
|
90
|
+
* @default false
|
|
91
|
+
*/
|
|
92
|
+
"disabled": boolean;
|
|
93
|
+
/**
|
|
94
|
+
* @default ''
|
|
95
|
+
*/
|
|
96
|
+
"error": string;
|
|
97
|
+
/**
|
|
98
|
+
* @default ''
|
|
99
|
+
*/
|
|
100
|
+
"label": string;
|
|
101
|
+
/**
|
|
102
|
+
* @default []
|
|
103
|
+
*/
|
|
104
|
+
"options": DropdownOption[] | string;
|
|
105
|
+
/**
|
|
106
|
+
* @default 'Select an option'
|
|
107
|
+
*/
|
|
108
|
+
"placeholder": string;
|
|
109
|
+
/**
|
|
110
|
+
* @default ''
|
|
111
|
+
*/
|
|
112
|
+
"value": string;
|
|
113
|
+
}
|
|
114
|
+
interface MyInput {
|
|
115
|
+
/**
|
|
116
|
+
* @default false
|
|
117
|
+
*/
|
|
118
|
+
"disabled": boolean;
|
|
119
|
+
/**
|
|
120
|
+
* @default ''
|
|
121
|
+
*/
|
|
122
|
+
"error": string;
|
|
123
|
+
/**
|
|
124
|
+
* @default ''
|
|
125
|
+
*/
|
|
126
|
+
"label": string;
|
|
127
|
+
/**
|
|
128
|
+
* @default ''
|
|
129
|
+
*/
|
|
130
|
+
"placeholder": string;
|
|
131
|
+
/**
|
|
132
|
+
* @default false
|
|
133
|
+
*/
|
|
134
|
+
"required": boolean;
|
|
135
|
+
/**
|
|
136
|
+
* @default 'text'
|
|
137
|
+
*/
|
|
138
|
+
"type": 'text' | 'email' | 'password' | 'number' | 'tel';
|
|
139
|
+
/**
|
|
140
|
+
* @default ''
|
|
141
|
+
*/
|
|
142
|
+
"value": string;
|
|
143
|
+
}
|
|
144
|
+
interface MyModal {
|
|
145
|
+
/**
|
|
146
|
+
* @default ''
|
|
147
|
+
*/
|
|
148
|
+
"modalTitle": string;
|
|
149
|
+
/**
|
|
150
|
+
* @default false
|
|
151
|
+
*/
|
|
152
|
+
"open": boolean;
|
|
153
|
+
/**
|
|
154
|
+
* @default 'medium'
|
|
155
|
+
*/
|
|
156
|
+
"size": 'small' | 'medium' | 'large';
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
export interface MyAlertCustomEvent<T> extends CustomEvent<T> {
|
|
160
|
+
detail: T;
|
|
161
|
+
target: HTMLMyAlertElement;
|
|
162
|
+
}
|
|
163
|
+
export interface MyDropdownCustomEvent<T> extends CustomEvent<T> {
|
|
164
|
+
detail: T;
|
|
165
|
+
target: HTMLMyDropdownElement;
|
|
166
|
+
}
|
|
167
|
+
export interface MyInputCustomEvent<T> extends CustomEvent<T> {
|
|
168
|
+
detail: T;
|
|
169
|
+
target: HTMLMyInputElement;
|
|
170
|
+
}
|
|
171
|
+
export interface MyModalCustomEvent<T> extends CustomEvent<T> {
|
|
172
|
+
detail: T;
|
|
173
|
+
target: HTMLMyModalElement;
|
|
72
174
|
}
|
|
73
175
|
declare global {
|
|
176
|
+
interface HTMLMyAlertElementEventMap {
|
|
177
|
+
"myDismiss": void;
|
|
178
|
+
}
|
|
179
|
+
interface HTMLMyAlertElement extends Components.MyAlert, HTMLStencilElement {
|
|
180
|
+
addEventListener<K extends keyof HTMLMyAlertElementEventMap>(type: K, listener: (this: HTMLMyAlertElement, ev: MyAlertCustomEvent<HTMLMyAlertElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
181
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
182
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
183
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
184
|
+
removeEventListener<K extends keyof HTMLMyAlertElementEventMap>(type: K, listener: (this: HTMLMyAlertElement, ev: MyAlertCustomEvent<HTMLMyAlertElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
185
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
186
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
187
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
188
|
+
}
|
|
189
|
+
var HTMLMyAlertElement: {
|
|
190
|
+
prototype: HTMLMyAlertElement;
|
|
191
|
+
new (): HTMLMyAlertElement;
|
|
192
|
+
};
|
|
74
193
|
interface HTMLMyBadgeElement extends Components.MyBadge, HTMLStencilElement {
|
|
75
194
|
}
|
|
76
195
|
var HTMLMyBadgeElement: {
|
|
@@ -95,14 +214,85 @@ declare global {
|
|
|
95
214
|
prototype: HTMLMyComponentElement;
|
|
96
215
|
new (): HTMLMyComponentElement;
|
|
97
216
|
};
|
|
217
|
+
interface HTMLMyDropdownElementEventMap {
|
|
218
|
+
"myChange": string;
|
|
219
|
+
}
|
|
220
|
+
interface HTMLMyDropdownElement extends Components.MyDropdown, HTMLStencilElement {
|
|
221
|
+
addEventListener<K extends keyof HTMLMyDropdownElementEventMap>(type: K, listener: (this: HTMLMyDropdownElement, ev: MyDropdownCustomEvent<HTMLMyDropdownElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
222
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
223
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
224
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
225
|
+
removeEventListener<K extends keyof HTMLMyDropdownElementEventMap>(type: K, listener: (this: HTMLMyDropdownElement, ev: MyDropdownCustomEvent<HTMLMyDropdownElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
226
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
227
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
228
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
229
|
+
}
|
|
230
|
+
var HTMLMyDropdownElement: {
|
|
231
|
+
prototype: HTMLMyDropdownElement;
|
|
232
|
+
new (): HTMLMyDropdownElement;
|
|
233
|
+
};
|
|
234
|
+
interface HTMLMyInputElementEventMap {
|
|
235
|
+
"myChange": string;
|
|
236
|
+
"myBlur": void;
|
|
237
|
+
}
|
|
238
|
+
interface HTMLMyInputElement extends Components.MyInput, HTMLStencilElement {
|
|
239
|
+
addEventListener<K extends keyof HTMLMyInputElementEventMap>(type: K, listener: (this: HTMLMyInputElement, ev: MyInputCustomEvent<HTMLMyInputElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
240
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
241
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
242
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
243
|
+
removeEventListener<K extends keyof HTMLMyInputElementEventMap>(type: K, listener: (this: HTMLMyInputElement, ev: MyInputCustomEvent<HTMLMyInputElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
244
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
245
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
246
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
247
|
+
}
|
|
248
|
+
var HTMLMyInputElement: {
|
|
249
|
+
prototype: HTMLMyInputElement;
|
|
250
|
+
new (): HTMLMyInputElement;
|
|
251
|
+
};
|
|
252
|
+
interface HTMLMyModalElementEventMap {
|
|
253
|
+
"myClose": void;
|
|
254
|
+
}
|
|
255
|
+
interface HTMLMyModalElement extends Components.MyModal, HTMLStencilElement {
|
|
256
|
+
addEventListener<K extends keyof HTMLMyModalElementEventMap>(type: K, listener: (this: HTMLMyModalElement, ev: MyModalCustomEvent<HTMLMyModalElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
|
|
257
|
+
addEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
258
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
259
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
260
|
+
removeEventListener<K extends keyof HTMLMyModalElementEventMap>(type: K, listener: (this: HTMLMyModalElement, ev: MyModalCustomEvent<HTMLMyModalElementEventMap[K]>) => any, options?: boolean | EventListenerOptions): void;
|
|
261
|
+
removeEventListener<K extends keyof DocumentEventMap>(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
262
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
263
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
264
|
+
}
|
|
265
|
+
var HTMLMyModalElement: {
|
|
266
|
+
prototype: HTMLMyModalElement;
|
|
267
|
+
new (): HTMLMyModalElement;
|
|
268
|
+
};
|
|
98
269
|
interface HTMLElementTagNameMap {
|
|
270
|
+
"my-alert": HTMLMyAlertElement;
|
|
99
271
|
"my-badge": HTMLMyBadgeElement;
|
|
100
272
|
"my-button": HTMLMyButtonElement;
|
|
101
273
|
"my-card": HTMLMyCardElement;
|
|
102
274
|
"my-component": HTMLMyComponentElement;
|
|
275
|
+
"my-dropdown": HTMLMyDropdownElement;
|
|
276
|
+
"my-input": HTMLMyInputElement;
|
|
277
|
+
"my-modal": HTMLMyModalElement;
|
|
103
278
|
}
|
|
104
279
|
}
|
|
105
280
|
declare namespace LocalJSX {
|
|
281
|
+
interface MyAlert {
|
|
282
|
+
/**
|
|
283
|
+
* @default ''
|
|
284
|
+
*/
|
|
285
|
+
"alertTitle"?: string;
|
|
286
|
+
/**
|
|
287
|
+
* @default false
|
|
288
|
+
*/
|
|
289
|
+
"dismissible"?: boolean;
|
|
290
|
+
"onMyDismiss"?: (event: MyAlertCustomEvent<void>) => void;
|
|
291
|
+
/**
|
|
292
|
+
* @default 'info'
|
|
293
|
+
*/
|
|
294
|
+
"type"?: 'success' | 'warning' | 'error' | 'info';
|
|
295
|
+
}
|
|
106
296
|
interface MyBadge {
|
|
107
297
|
/**
|
|
108
298
|
* Badge color variant
|
|
@@ -166,7 +356,86 @@ declare namespace LocalJSX {
|
|
|
166
356
|
*/
|
|
167
357
|
"middle"?: string;
|
|
168
358
|
}
|
|
359
|
+
interface MyDropdown {
|
|
360
|
+
/**
|
|
361
|
+
* @default false
|
|
362
|
+
*/
|
|
363
|
+
"disabled"?: boolean;
|
|
364
|
+
/**
|
|
365
|
+
* @default ''
|
|
366
|
+
*/
|
|
367
|
+
"error"?: string;
|
|
368
|
+
/**
|
|
369
|
+
* @default ''
|
|
370
|
+
*/
|
|
371
|
+
"label"?: string;
|
|
372
|
+
"onMyChange"?: (event: MyDropdownCustomEvent<string>) => void;
|
|
373
|
+
/**
|
|
374
|
+
* @default []
|
|
375
|
+
*/
|
|
376
|
+
"options"?: DropdownOption[] | string;
|
|
377
|
+
/**
|
|
378
|
+
* @default 'Select an option'
|
|
379
|
+
*/
|
|
380
|
+
"placeholder"?: string;
|
|
381
|
+
/**
|
|
382
|
+
* @default ''
|
|
383
|
+
*/
|
|
384
|
+
"value"?: string;
|
|
385
|
+
}
|
|
386
|
+
interface MyInput {
|
|
387
|
+
/**
|
|
388
|
+
* @default false
|
|
389
|
+
*/
|
|
390
|
+
"disabled"?: boolean;
|
|
391
|
+
/**
|
|
392
|
+
* @default ''
|
|
393
|
+
*/
|
|
394
|
+
"error"?: string;
|
|
395
|
+
/**
|
|
396
|
+
* @default ''
|
|
397
|
+
*/
|
|
398
|
+
"label"?: string;
|
|
399
|
+
"onMyBlur"?: (event: MyInputCustomEvent<void>) => void;
|
|
400
|
+
"onMyChange"?: (event: MyInputCustomEvent<string>) => void;
|
|
401
|
+
/**
|
|
402
|
+
* @default ''
|
|
403
|
+
*/
|
|
404
|
+
"placeholder"?: string;
|
|
405
|
+
/**
|
|
406
|
+
* @default false
|
|
407
|
+
*/
|
|
408
|
+
"required"?: boolean;
|
|
409
|
+
/**
|
|
410
|
+
* @default 'text'
|
|
411
|
+
*/
|
|
412
|
+
"type"?: 'text' | 'email' | 'password' | 'number' | 'tel';
|
|
413
|
+
/**
|
|
414
|
+
* @default ''
|
|
415
|
+
*/
|
|
416
|
+
"value"?: string;
|
|
417
|
+
}
|
|
418
|
+
interface MyModal {
|
|
419
|
+
/**
|
|
420
|
+
* @default ''
|
|
421
|
+
*/
|
|
422
|
+
"modalTitle"?: string;
|
|
423
|
+
"onMyClose"?: (event: MyModalCustomEvent<void>) => void;
|
|
424
|
+
/**
|
|
425
|
+
* @default false
|
|
426
|
+
*/
|
|
427
|
+
"open"?: boolean;
|
|
428
|
+
/**
|
|
429
|
+
* @default 'medium'
|
|
430
|
+
*/
|
|
431
|
+
"size"?: 'small' | 'medium' | 'large';
|
|
432
|
+
}
|
|
169
433
|
|
|
434
|
+
interface MyAlertAttributes {
|
|
435
|
+
"type": 'success' | 'warning' | 'error' | 'info';
|
|
436
|
+
"alertTitle": string;
|
|
437
|
+
"dismissible": boolean;
|
|
438
|
+
}
|
|
170
439
|
interface MyBadgeAttributes {
|
|
171
440
|
"color": 'success' | 'warning' | 'error' | 'info' | 'neutral';
|
|
172
441
|
"size": 'small' | 'medium' | 'large';
|
|
@@ -187,22 +456,52 @@ declare namespace LocalJSX {
|
|
|
187
456
|
"middle": string;
|
|
188
457
|
"last": string;
|
|
189
458
|
}
|
|
459
|
+
interface MyDropdownAttributes {
|
|
460
|
+
"options": DropdownOption[] | string;
|
|
461
|
+
"value": string;
|
|
462
|
+
"placeholder": string;
|
|
463
|
+
"label": string;
|
|
464
|
+
"disabled": boolean;
|
|
465
|
+
"error": string;
|
|
466
|
+
}
|
|
467
|
+
interface MyInputAttributes {
|
|
468
|
+
"label": string;
|
|
469
|
+
"placeholder": string;
|
|
470
|
+
"value": string;
|
|
471
|
+
"type": 'text' | 'email' | 'password' | 'number' | 'tel';
|
|
472
|
+
"error": string;
|
|
473
|
+
"disabled": boolean;
|
|
474
|
+
"required": boolean;
|
|
475
|
+
}
|
|
476
|
+
interface MyModalAttributes {
|
|
477
|
+
"open": boolean;
|
|
478
|
+
"modalTitle": string;
|
|
479
|
+
"size": 'small' | 'medium' | 'large';
|
|
480
|
+
}
|
|
190
481
|
|
|
191
482
|
interface IntrinsicElements {
|
|
483
|
+
"my-alert": Omit<MyAlert, keyof MyAlertAttributes> & { [K in keyof MyAlert & keyof MyAlertAttributes]?: MyAlert[K] } & { [K in keyof MyAlert & keyof MyAlertAttributes as `attr:${K}`]?: MyAlertAttributes[K] } & { [K in keyof MyAlert & keyof MyAlertAttributes as `prop:${K}`]?: MyAlert[K] };
|
|
192
484
|
"my-badge": Omit<MyBadge, keyof MyBadgeAttributes> & { [K in keyof MyBadge & keyof MyBadgeAttributes]?: MyBadge[K] } & { [K in keyof MyBadge & keyof MyBadgeAttributes as `attr:${K}`]?: MyBadgeAttributes[K] } & { [K in keyof MyBadge & keyof MyBadgeAttributes as `prop:${K}`]?: MyBadge[K] };
|
|
193
485
|
"my-button": Omit<MyButton, keyof MyButtonAttributes> & { [K in keyof MyButton & keyof MyButtonAttributes]?: MyButton[K] } & { [K in keyof MyButton & keyof MyButtonAttributes as `attr:${K}`]?: MyButtonAttributes[K] } & { [K in keyof MyButton & keyof MyButtonAttributes as `prop:${K}`]?: MyButton[K] };
|
|
194
486
|
"my-card": Omit<MyCard, keyof MyCardAttributes> & { [K in keyof MyCard & keyof MyCardAttributes]?: MyCard[K] } & { [K in keyof MyCard & keyof MyCardAttributes as `attr:${K}`]?: MyCardAttributes[K] } & { [K in keyof MyCard & keyof MyCardAttributes as `prop:${K}`]?: MyCard[K] };
|
|
195
487
|
"my-component": Omit<MyComponent, keyof MyComponentAttributes> & { [K in keyof MyComponent & keyof MyComponentAttributes]?: MyComponent[K] } & { [K in keyof MyComponent & keyof MyComponentAttributes as `attr:${K}`]?: MyComponentAttributes[K] } & { [K in keyof MyComponent & keyof MyComponentAttributes as `prop:${K}`]?: MyComponent[K] };
|
|
488
|
+
"my-dropdown": Omit<MyDropdown, keyof MyDropdownAttributes> & { [K in keyof MyDropdown & keyof MyDropdownAttributes]?: MyDropdown[K] } & { [K in keyof MyDropdown & keyof MyDropdownAttributes as `attr:${K}`]?: MyDropdownAttributes[K] } & { [K in keyof MyDropdown & keyof MyDropdownAttributes as `prop:${K}`]?: MyDropdown[K] };
|
|
489
|
+
"my-input": Omit<MyInput, keyof MyInputAttributes> & { [K in keyof MyInput & keyof MyInputAttributes]?: MyInput[K] } & { [K in keyof MyInput & keyof MyInputAttributes as `attr:${K}`]?: MyInputAttributes[K] } & { [K in keyof MyInput & keyof MyInputAttributes as `prop:${K}`]?: MyInput[K] };
|
|
490
|
+
"my-modal": Omit<MyModal, keyof MyModalAttributes> & { [K in keyof MyModal & keyof MyModalAttributes]?: MyModal[K] } & { [K in keyof MyModal & keyof MyModalAttributes as `attr:${K}`]?: MyModalAttributes[K] } & { [K in keyof MyModal & keyof MyModalAttributes as `prop:${K}`]?: MyModal[K] };
|
|
196
491
|
}
|
|
197
492
|
}
|
|
198
493
|
export { LocalJSX as JSX };
|
|
199
494
|
declare module "@stencil/core" {
|
|
200
495
|
export namespace JSX {
|
|
201
496
|
interface IntrinsicElements {
|
|
497
|
+
"my-alert": LocalJSX.IntrinsicElements["my-alert"] & JSXBase.HTMLAttributes<HTMLMyAlertElement>;
|
|
202
498
|
"my-badge": LocalJSX.IntrinsicElements["my-badge"] & JSXBase.HTMLAttributes<HTMLMyBadgeElement>;
|
|
203
499
|
"my-button": LocalJSX.IntrinsicElements["my-button"] & JSXBase.HTMLAttributes<HTMLMyButtonElement>;
|
|
204
500
|
"my-card": LocalJSX.IntrinsicElements["my-card"] & JSXBase.HTMLAttributes<HTMLMyCardElement>;
|
|
205
501
|
"my-component": LocalJSX.IntrinsicElements["my-component"] & JSXBase.HTMLAttributes<HTMLMyComponentElement>;
|
|
502
|
+
"my-dropdown": LocalJSX.IntrinsicElements["my-dropdown"] & JSXBase.HTMLAttributes<HTMLMyDropdownElement>;
|
|
503
|
+
"my-input": LocalJSX.IntrinsicElements["my-input"] & JSXBase.HTMLAttributes<HTMLMyInputElement>;
|
|
504
|
+
"my-modal": LocalJSX.IntrinsicElements["my-modal"] & JSXBase.HTMLAttributes<HTMLMyModalElement>;
|
|
206
505
|
}
|
|
207
506
|
}
|
|
208
507
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stencil-kit/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"publishConfig": {
|
|
66
66
|
"access": "public"
|
|
67
67
|
},
|
|
68
|
-
"gitHead": "
|
|
68
|
+
"gitHead": "d58a8bd0d943f5f9705e04fd53675961cb1a98c6"
|
|
69
69
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function t(t,e,n){const l="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==l;){const l=Object.getOwnPropertyDescriptor(t,e);if(l&&(!n||l.get))return l;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var l;Object.entries(null!=(l=n.l.t)?l:{}).map((([l,[o]])=>{if(31&o||32&o){const o=e[l],s=t(Object.getPrototypeOf(e),l,!0)||Object.getOwnPropertyDescriptor(e,l);s&&Object.defineProperty(e,l,{get(){return s.get.call(this)},set(t){s.set.call(this,t)},configurable:!0,enumerable:!0}),n.o.has(l)?e[l]=n.o.get(l):void 0!==o&&(e[l]=o)}}))},l=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},o=(t,e)=>(0,console.error)(t,e),s=new Map,i="undefined"!=typeof window?window:{},r=i.HTMLElement||class{},c={i:0,u:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,l)=>t.addEventListener(e,n,l),rel:(t,e,n,l)=>t.removeEventListener(e,n,l),ce:(t,e)=>new CustomEvent(t,e)},u=(()=>{try{return!!i.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),f=!!u&&(()=>!!i.document&&Object.getOwnPropertyDescriptor(i.document.adoptedStyleSheets,"length").writable)(),a=!1,d=[],h=[],p=(t,e)=>n=>{t.push(n),a||(a=!0,e&&4&c.i?y($):c.raf($))},m=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){o(t)}t.length=0},$=()=>{m(d),m(h),(a=d.length>0)&&c.raf($)},y=t=>Promise.resolve(undefined).then(t),b=p(h,!0),v=t=>{const e=new URL(t,c.u);return e.origin!==i.location.origin?e.href:e.pathname},w=t=>c.u=t;function g(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(f?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}var j,O=new WeakMap,S=t=>"sc-"+t.h,M=t=>"object"==(t=typeof t)||"function"===t,k=(t,e,...n)=>{let l=null,o=null,s=!1,i=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)l=e[n],Array.isArray(l)?c(l):null!=l&&"boolean"!=typeof l&&((s="function"!=typeof t&&!M(l))&&(l=String(l)),s&&i?r[r.length-1].p+=l:r.push(s?E(null,l):l),i=s)};if(c(n),e){e.key&&(o=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=E(t,null);return u.m=e,r.length>0&&(u.$=r),u.v=o,u},E=(t,e)=>({i:0,j:t,p:null!=e?e:null,O:null,$:null,m:null,v:null}),A={},C=(t,e)=>null==t||M(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?String(t):t,L=(t,e,n,o,s,i)=>{if(n===o)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,l=x(n);let s=x(o);e.remove(...l.filter((t=>t&&!s.includes(t)))),e.add(...s.filter((t=>t&&!l.includes(t))))}else if("key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let s;{const e=l(t);if(e&&e.l&&e.l.t){const t=e.l.t[n];t&&t[1]&&(s=t[1])}}return s||(s=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==o||!1===o?!1===o&&""!==t.getAttribute(s)||t.removeAttribute(s):t.setAttribute(s,!0===o?"":o))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=o}catch(t){}return}{const l=M(o);if((r||l&&null!==o)&&!s)try{if(t.tagName.includes("-"))t[e]!==o&&(t[e]=o);else{const l=null==o?"":o;"list"===e?r=!1:null!=n&&t[e]===l||("function"==typeof t.__lookupSetter__(e)?t[e]=l:t.setAttribute(e,l))}}catch(t){}null==o||!1===o?!1===o&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&i||s)&&!l&&1===t.nodeType&&t.setAttribute(e,o=!0===o?"":o)}}},_=/\s/,x=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(_):[]),D=(t,e,n)=>{const l=11===e.O.nodeType&&e.O.host?e.O.host:e.O,o=t&&t.m||{},s=e.m||{};for(const t of H(Object.keys(o)))t in s||L(l,t,o[t],void 0,n,e.i);for(const t of H(Object.keys(s)))L(l,t,o[t],s[t],n,e.i)};function H(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var P=!1,U=!1,W=(t,e,n)=>{const l=e.$[n];let o,s,r=0;if(null!=l.p)o=l.O=i.document.createTextNode(l.p);else{if(!i.document)throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(o=l.O=i.document.createElement(l.j),D(null,l,U),l.$){const e="template"===l.j?o.content:o;for(r=0;r<l.$.length;++r)s=W(t,l,r),s&&e.appendChild(s)}}return o["s-hn"]=j,o},N=(t,e,n,l,o,s)=>{let i,r=t;for(r.shadowRoot&&r.tagName===j&&(r=r.shadowRoot),"template"===n.j&&(r=r.content);o<=s;++o)l[o]&&(i=W(null,n,o),i&&(l[o].O=i,z(r,i,e)))},R=(t,e,n)=>{for(let l=e;l<=n;++l){const e=t[l];if(e){const t=e.O;t&&t.remove()}}},V=(t,e,n=!1)=>t.j===e.j&&(n?(n&&!t.v&&e.v&&(t.v=e.v),!0):t.v===e.v),q=(t,e,n=!1)=>{const l=e.O=t.O,o=t.$,s=e.$,i=e.p;null==i?("slot"!==e.j||P||t.S!==e.S&&(e.O["s-sn"]=e.S||"",(t=>{c.i|=1;const e=t.closest(j.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),l=Array.from(t.__childNodes||t.childNodes);for(const t of n?l.reverse():l)null!=t["s-sh"]&&(z(e,t,null!=n?n:null),t["s-sh"]=void 0)}c.i&=-2})(e.O.parentElement)),D(t,e,U),null!==o&&null!==s?((t,e,n,l,o=!1)=>{let s,i,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=l.length-1,m=l[0],$=l[p];const y="template"===n.j?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=l[++c];else if(null==$)$=l[--p];else if(V(d,m,o))q(d,m,o),d=e[++r],m=l[++c];else if(V(h,$,o))q(h,$,o),h=e[--a],$=l[--p];else if(V(d,$,o))q(d,$,o),z(y,d.O,h.O.nextSibling),d=e[++r],$=l[--p];else if(V(h,m,o))q(h,m,o),z(y,h.O,d.O),h=e[--a],m=l[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].v&&e[f].v===m.v){u=f;break}u>=0?(i=e[u],i.j!==m.j?s=W(e&&e[c],n,u):(q(i,m,o),e[u]=void 0,s=i.O),m=l[++c]):(s=W(e&&e[c],n,c),m=l[++c]),s&&z(d.O.parentNode,s,d.O)}r>a?N(t,null==l[p+1]?null:l[p+1].O,n,l,c,p):c>p&&R(e,r,a)})(l,o,e,s,n):null!==s?(null!==t.p&&(l.textContent=""),N(l,null,e,s,0,s.length-1)):!n&&null!==o&&R(o,0,o.length-1)):t.p!==i&&(l.data=i)},z=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),F=(t,e,n=!1)=>{const l=t.$hostElement$,o=t.l,s=t.M||E(null,null);var i;const r=(i=e)&&i.j===A?e:k(null,null,e);if(j=l.tagName,n&&r.m)for(const t of Object.keys(r.m))l.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(r.m[t]=l[t]);r.j=null,r.i|=4,t.M=r,r.O=s.O=l.shadowRoot||l,P=!(!(1&o.i)||128&o.i),q(s,r,n)},T=(t,e)=>{if(e&&!t.k&&e["s-p"]){const n=e["s-p"].push(new Promise((l=>t.k=()=>{e["s-p"].splice(n-1,1),l()})))}},Y=(t,e)=>{if(t.i|=16,4&t.i)return void(t.i|=512);T(t,t.A);const n=()=>Z(t,e);if(!e)return b(n);queueMicrotask((()=>{n()}))},Z=(t,e)=>{const n=t.$hostElement$,l=n;if(!l)throw new Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let o;return o=X(l,e?"componentWillLoad":"componentWillUpdate",void 0,n),o=B(o,(()=>X(l,"componentWillRender",void 0,n))),B(o,(()=>I(t,l,e)))},B=(t,e)=>G(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),G=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,I=async(t,e,n)=>{var l;const o=t.$hostElement$,r=o["s-rc"];n&&(t=>{const e=t.l,n=t.$hostElement$,l=e.i,o=((t,e)=>{var n,l,o;const r=S(e),a=s.get(r);if(!i.document)return r;if(t=11===t.nodeType?t:i.document,a)if("string"==typeof a){let o,s=O.get(t=t.head||t);if(s||O.set(t,s=new Set),!s.has(r)){o=i.document.createElement("style"),o.textContent=a;const d=null!=(n=c.C)?n:function(){var t,e,n;return null!=(n=null==(e=null==(t=i.document.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:e.getAttribute("content"))?n:void 0}();if(null!=d&&o.setAttribute("nonce",d),!(1&e.i))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(o,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(u){const e=new(null!=(l=t.defaultView)?l:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(a),f?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=a+e.textContent:t.prepend(o)}else t.append(o);1&e.i&&t.insertBefore(o,null),4&e.i&&(o.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),s&&s.add(r)}}else{let e=O.get(t);if(e||O.set(t,e=new Set),!e.has(r)){const n=null!=(o=t.defaultView)?o:t.ownerDocument.defaultView;let l;if(a.constructor===n.CSSStyleSheet)l=a;else{l=new n.CSSStyleSheet;for(let t=0;t<a.cssRules.length;t++)l.insertRule(a.cssRules[t].cssText,t)}f?t.adoptedStyleSheets.push(l):t.adoptedStyleSheets=[...t.adoptedStyleSheets,l],e.add(r)}}return r})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&l&&(n["s-sc"]=o,n.classList.add(o+"-h"))})(t);J(t,e,o,n),r&&(r.map((t=>t())),o["s-rc"]=void 0);{const e=null!=(l=o["s-p"])?l:[],n=()=>K(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.i|=4,e.length=0)}},J=(t,e,n,l)=>{try{e=e.render(),t.i&=-17,t.i|=2,F(t,e,l)}catch(e){o(e,t.$hostElement$)}return null},K=t=>{const e=t.$hostElement$,n=e,l=t.A;X(n,"componentDidRender",void 0,e),64&t.i?X(n,"componentDidUpdate",void 0,e):(t.i|=64,tt(e),X(n,"componentDidLoad",void 0,e),t.L(e),l||Q()),t.k&&(t.k(),t.k=void 0),512&t.i&&y((()=>Y(t,!1))),t.i&=-517},Q=()=>{y((()=>(t=>{const e=c.ce("appload",{detail:{namespace:"stencil-library"}});return t.dispatchEvent(e),e})(i)))},X=(t,e,n,l)=>{if(t&&t[e])try{return t[e](n)}catch(t){o(t,l)}},tt=t=>t.classList.add("hydrated"),et=(t,e,n,o)=>{const s=l(t);if(!s)return;const i=t,r=s.o.get(e),c=s.i,u=i;n=C(n,o.t[e][0]);const f=Number.isNaN(r)&&Number.isNaN(n);if(n!==r&&!f&&(s.o.set(e,n),2&c)){if(u.componentShouldUpdate&&!1===u.componentShouldUpdate(n,r,e)&&!(16&c))return;16&c||Y(s,!1)}},nt=(e,n)=>{var o,s;const i=e.prototype;if(n.t){const r=Object.entries(null!=(o=n.t)?o:{});r.map((([e,[o]])=>{if(31&o||32&o){const{get:s,set:r}=t(i,e)||{};s&&(n.t[e][0]|=2048),r&&(n.t[e][0]|=4096),Object.defineProperty(i,e,{get(){return s?s.apply(this):(t=e,l(this).o.get(t));var t},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(t){const s=l(this);if(s){if(r)return void 0===(32&o?this[e]:s.$hostElement$[e])&&s.o.get(e)&&(t=s.o.get(e)),r.apply(this,[C(t,o)]),void et(this,e,t=32&o?this[e]:s.$hostElement$[e],n);et(this,e,t,n)}}})}}));{const t=new Map;i.attributeChangedCallback=function(e,o,s){c.jmp((()=>{var c;const u=t.get(e),f=l(this);if(this.hasOwnProperty(u),i.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==s)return;if(null==u){const t=null==f?void 0:f.i;if(f&&t&&!(8&t)&&s!==o){const l=this,i=null==(c=n._)?void 0:c[e];null==i||i.forEach((n=>{const[[i,r]]=Object.entries(n);null!=l[i]&&(128&t||1&r)&&l[i].call(l,s,o,e)}))}return}const a=r.find((([t])=>t===u)),d=a&&4&a[1][0],h=d&&null===s&&void 0===this[u];d&&(s=null!==s&&"false"!==s);const p=Object.getOwnPropertyDescriptor(i,u);h||s==this[u]||p.get&&!p.set||(this[u]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n._)?s:{}),...r.filter((([t,e])=>31&e[0])).map((([e,n])=>{const l=n[1]||e;return t.set(l,e),l}))]))}}return e},lt=(t,e)=>{const i={i:e[0],h:e[1]};try{i.t=e[2];const r=t.prototype.connectedCallback,f=t.prototype.disconnectedCallback;return Object.assign(t.prototype,{__hasHostListenerAttached:!1,__registerHost(){((t,e)=>{const l={i:0,$hostElement$:t,l:e,o:new Map,D:new Map};l.H=new Promise((t=>l.L=t)),t["s-p"]=[],t["s-rc"]=[];const o=l;t.__stencil__getHostRef=()=>o,512&e.i&&n(t,l)})(this,i)},connectedCallback(){if(!this.__hasHostListenerAttached){if(!l(this))return;this.__hasHostListenerAttached=!0}(t=>{if(!(1&c.i)){const e=l(t);if(!e)return;const n=e.l,i=()=>{};if(1&e.i)(null==e?void 0:e.P)||(null==e?void 0:e.H)&&e.H.then((()=>{}));else{e.i|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){T(e,e.A=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let l;try{if(!(32&e.i)&&(e.i|=32,l=t.constructor,customElements.whenDefined(t.localName).then((()=>e.i|=128)),l&&l.style)){let t;"string"==typeof l.style&&(t=l.style);const e=S(n);if(!s.has(e)){const l=()=>{};((t,e,n)=>{let l=s.get(t);u&&n?(l=l||new CSSStyleSheet,"string"==typeof l?l=e:l.replaceSync(e)):l=e,s.set(t,l)})(e,t,!!(1&n.i)),l()}}const o=e.A,i=()=>Y(e,!0);o&&o["s-rc"]?o["s-rc"].push(i):i()}catch(n){o(n,t),e.k&&(e.k(),e.k=void 0),e.L&&e.L(t)}})(t,e,n)}i()}})(this),r&&r.call(this)},disconnectedCallback(){(async t=>{1&c.i||l(t),O.has(t)&&O.delete(t),t.shadowRoot&&O.has(t.shadowRoot)&&O.delete(t.shadowRoot)})(this),f&&f.call(this)},__attachShadow(){if(this.shadowRoot){if("open"!==this.shadowRoot.mode)throw new Error(`Unable to re-use existing shadow root for ${i.h}! Mode is set to ${this.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else g.call(this,i)}}),Object.defineProperty(t,"is",{value:i.h,configurable:!0}),nt(t,i)}catch(e){return o(e),t}},ot=t=>c.C=t,st=t=>Object.assign(c,t),it=new WeakMap;function rt(t,e){let n=it.get(e);n||(n={i:0,l:{i:0,h:e.tagName},$hostElement$:e},it.set(e,n)),F(n,t)}function ct(t){return t}export{r as H,ot as a,st as b,v as g,k as h,lt as p,rt as r,w as s,ct as t}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
function t(t,e,n){const o="undefined"!=typeof HTMLElement?HTMLElement.prototype:null;for(;t&&t!==o;){const o=Object.getOwnPropertyDescriptor(t,e);if(o&&(!n||o.get))return o;t=Object.getPrototypeOf(t)}}var e,n=(e,n)=>{var o;Object.entries(null!=(o=n.o.t)?o:{}).map((([o,[l]])=>{if(31&l||32&l){const l=e[o],i=t(Object.getPrototypeOf(e),o,!0)||Object.getOwnPropertyDescriptor(e,o);i&&Object.defineProperty(e,o,{get(){return i.get.call(this)},set(t){i.set.call(this,t)},configurable:!0,enumerable:!0}),n.l.has(o)?e[o]=n.l.get(o):void 0!==l&&(e[o]=l)}}))},o=t=>{if(t.__stencil__getHostRef)return t.__stencil__getHostRef()},l=(t,e)=>{e&&(t.__stencil__getHostRef=()=>e,e.i=t,512&e.o.u&&n(t,e))},i=(t,e)=>(0,console.error)(t,e),s=new Map,r=new Map,c="undefined"!=typeof window?window:{},u={u:0,h:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,o)=>t.addEventListener(e,n,o),rel:(t,e,n,o)=>t.removeEventListener(e,n,o),ce:(t,e)=>new CustomEvent(t,e)},f=t=>Promise.resolve(t),a=(()=>{try{return!!c.document.adoptedStyleSheets&&(new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync)}catch(t){}return!1})(),d=!!a&&(()=>!!c.document&&Object.getOwnPropertyDescriptor(c.document.adoptedStyleSheets,"length").writable)(),h=!1,p=[],m=[],v=(t,e)=>n=>{t.push(n),h||(h=!0,e&&4&u.u?$(b):u.raf(b))},y=t=>{for(let e=0;e<t.length;e++)try{t[e](performance.now())}catch(t){i(t)}t.length=0},b=()=>{y(p),y(m),(h=p.length>0)&&u.raf(b)},$=t=>f().then(t),w=v(m,!0);function j(){const t=this.attachShadow({mode:"open"});void 0===e&&(e=null),e&&(d?t.adoptedStyleSheets.push(e):t.adoptedStyleSheets=[...t.adoptedStyleSheets,e])}function g(t){var e,n,o;return null!=(o=null==(n=null==(e=t.head)?void 0:e.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}var S,O=new WeakMap,k=t=>"sc-"+t.p,M=t=>"object"==(t=typeof t)||"function"===t,E=(t,e,...n)=>{let o=null,l=null,i=!1,s=!1;const r=[],c=e=>{for(let n=0;n<e.length;n++)o=e[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((i="function"!=typeof t&&!M(o))&&(o+=""),i&&s?r[r.length-1].m+=o:r.push(i?C(null,o):o),s=i)};if(c(n),e){e.key&&(l=e.key);{const t=e.className||e.class;t&&(e.class="object"!=typeof t?t:Object.keys(t).filter((e=>t[e])).join(" "))}}const u=C(t,null);return u.v=e,r.length>0&&(u.$=r),u.j=l,u},C=(t,e)=>({u:0,S:t,m:null!=e?e:null,O:null,$:null,v:null,j:null}),A={},L=(t,e)=>null==t||M(t)?t:4&e?"false"!==t&&(""===t||!!t):1&e?t+"":t,x=(t,e,n,l,i,s)=>{if(n===l)return;let r=((t,e)=>e in t)(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,o=P(n);let i=P(l);e.remove(...o.filter((t=>t&&!i.includes(t)))),e.add(...i.filter((t=>t&&!o.includes(t))))}else if("key"===e);else{if("a"===e[0]&&e.startsWith("attr:")){const n=e.slice(5);let i;{const e=o(t);if(e&&e.o&&e.o.t){const t=e.o.t[n];t&&t[1]&&(i=t[1])}}return i||(i=n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),void(null==l||!1===l?!1===l&&""!==t.getAttribute(i)||t.removeAttribute(i):t.setAttribute(i,!0===l?"":l))}if("p"===e[0]&&e.startsWith("prop:")){const n=e.slice(5);try{t[n]=l}catch(t){}return}{const o=M(l);if((r||o&&null!==l)&&!i)try{if(t.tagName.includes("-"))t[e]!==l&&(t[e]=l);else{const o=null==l?"":l;"list"===e?r=!1:null!=n&&t[e]===o||("function"==typeof t.__lookupSetter__(e)?t[e]=o:t.setAttribute(e,o))}}catch(t){}null==l||!1===l?!1===l&&""!==t.getAttribute(e)||t.removeAttribute(e):(!r||4&s||i)&&!o&&1===t.nodeType&&t.setAttribute(e,l=!0===l?"":l)}}},D=/\s/,P=t=>("object"==typeof t&&t&&"baseVal"in t&&(t=t.baseVal),t&&"string"==typeof t?t.split(D):[]),R=(t,e,n)=>{const o=11===e.O.nodeType&&e.O.host?e.O.host:e.O,l=t&&t.v||{},i=e.v||{};for(const t of T(Object.keys(l)))t in i||x(o,t,l[t],void 0,n,e.u);for(const t of T(Object.keys(i)))x(o,t,l[t],i[t],n,e.u)};function T(t){return t.includes("ref")?[...t.filter((t=>"ref"!==t)),"ref"]:t}var H=!1,N=!1,U=(t,e,n)=>{const o=e.$[n];let l,i,s=0;if(null!=o.m)l=o.O=c.document.createTextNode(o.m);else{if(!c.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM.");if(l=o.O=c.document.createElement(o.S),R(null,o,N),o.$){const e="template"===o.S?l.content:l;for(s=0;s<o.$.length;++s)i=U(t,o,s),i&&e.appendChild(i)}}return l["s-hn"]=S,l},W=(t,e,n,o,l,i)=>{let s,r=t;for(r.shadowRoot&&r.tagName===S&&(r=r.shadowRoot),"template"===n.S&&(r=r.content);l<=i;++l)o[l]&&(s=U(null,n,l),s&&(o[l].O=s,F(r,s,e)))},z=(t,e,n)=>{for(let o=e;o<=n;++o){const e=t[o];if(e){const t=e.O;t&&t.remove()}}},V=(t,e,n=!1)=>t.S===e.S&&(n?(n&&!t.j&&e.j&&(t.j=e.j),!0):t.j===e.j),q=(t,e,n=!1)=>{const o=e.O=t.O,l=t.$,i=e.$,s=e.m;null==s?("slot"!==e.S||H||t.k!==e.k&&(e.O["s-sn"]=e.k||"",(t=>{u.u|=1;const e=t.closest(S.toLowerCase());if(null!=e){const n=Array.from(e.__childNodes||e.childNodes).find((t=>t["s-cr"])),o=Array.from(t.__childNodes||t.childNodes);for(const t of n?o.reverse():o)null!=t["s-sh"]&&(F(e,t,null!=n?n:null),t["s-sh"]=void 0)}u.u&=-2})(e.O.parentElement)),R(t,e,N),null!==l&&null!==i?((t,e,n,o,l=!1)=>{let i,s,r=0,c=0,u=0,f=0,a=e.length-1,d=e[0],h=e[a],p=o.length-1,m=o[0],v=o[p];const y="template"===n.S?t.content:t;for(;r<=a&&c<=p;)if(null==d)d=e[++r];else if(null==h)h=e[--a];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(V(d,m,l))q(d,m,l),d=e[++r],m=o[++c];else if(V(h,v,l))q(h,v,l),h=e[--a],v=o[--p];else if(V(d,v,l))q(d,v,l),F(y,d.O,h.O.nextSibling),d=e[++r],v=o[--p];else if(V(h,m,l))q(h,m,l),F(y,h.O,d.O),h=e[--a],m=o[++c];else{for(u=-1,f=r;f<=a;++f)if(e[f]&&null!==e[f].j&&e[f].j===m.j){u=f;break}u>=0?(s=e[u],s.S!==m.S?i=U(e&&e[c],n,u):(q(s,m,l),e[u]=void 0,i=s.O),m=o[++c]):(i=U(e&&e[c],n,c),m=o[++c]),i&&F(d.O.parentNode,i,d.O)}r>a?W(t,null==o[p+1]?null:o[p+1].O,n,o,c,p):c>p&&z(e,r,a)})(o,l,e,i,n):null!==i?(null!==t.m&&(o.textContent=""),W(o,null,e,i,0,i.length-1)):!n&&null!==l&&z(l,0,l.length-1)):t.m!==s&&(o.data=s)},F=(t,e,n)=>t.__insertBefore?t.__insertBefore(e,n):null==t?void 0:t.insertBefore(e,n),G=(t,e)=>{if(e&&!t.M&&e["s-p"]){const n=e["s-p"].push(new Promise((o=>t.M=()=>{e["s-p"].splice(n-1,1),o()})))}},Y=(t,e)=>{if(t.u|=16,4&t.u)return void(t.u|=512);G(t,t.C);const n=()=>Z(t,e);if(!e)return w(n);queueMicrotask((()=>{n()}))},Z=(t,e)=>{const n=t.$hostElement$,o=t.i;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return e?(t.A.length&&t.A.forEach((t=>t(n))),l=X(o,"componentWillLoad",void 0,n)):l=X(o,"componentWillUpdate",void 0,n),l=_(l,(()=>X(o,"componentWillRender",void 0,n))),_(l,(()=>I(t,o,e)))},_=(t,e)=>B(t)?t.then(e).catch((t=>{console.error(t),e()})):e(),B=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,I=async(t,e,n)=>{var o;const l=t.$hostElement$,i=l["s-rc"];n&&(t=>{const e=t.o,n=t.$hostElement$,o=e.u,l=((t,e)=>{var n,o,l;const i=k(e),s=r.get(i);if(!c.document)return i;if(t=11===t.nodeType?t:c.document,s)if("string"==typeof s){let l,r=O.get(t=t.head||t);if(r||O.set(t,r=new Set),!r.has(i)){l=c.document.createElement("style"),l.textContent=s;const f=null!=(n=u.L)?n:g(c.document);if(null!=f&&l.setAttribute("nonce",f),!(1&e.u))if("HEAD"===t.nodeName){const e=t.querySelectorAll("link[rel=preconnect]"),n=e.length>0?e[e.length-1].nextSibling:t.querySelector("style");t.insertBefore(l,(null==n?void 0:n.parentNode)===t?n:null)}else if("host"in t)if(a){const e=new(null!=(o=t.defaultView)?o:t.ownerDocument.defaultView).CSSStyleSheet;e.replaceSync(s),d?t.adoptedStyleSheets.unshift(e):t.adoptedStyleSheets=[e,...t.adoptedStyleSheets]}else{const e=t.querySelector("style");e?e.textContent=s+e.textContent:t.prepend(l)}else t.append(l);1&e.u&&t.insertBefore(l,null),4&e.u&&(l.textContent+="slot-fb{display:contents}slot-fb[hidden]{display:none}"),r&&r.add(i)}}else{let e=O.get(t);if(e||O.set(t,e=new Set),!e.has(i)){const n=null!=(l=t.defaultView)?l:t.ownerDocument.defaultView;let o;if(s.constructor===n.CSSStyleSheet)o=s;else{o=new n.CSSStyleSheet;for(let t=0;t<s.cssRules.length;t++)o.insertRule(s.cssRules[t].cssText,t)}d?t.adoptedStyleSheets.push(o):t.adoptedStyleSheets=[...t.adoptedStyleSheets,o],e.add(i)}}return i})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&o&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(t);J(t,e,l,n),i&&(i.map((t=>t())),l["s-rc"]=void 0);{const e=null!=(o=l["s-p"])?o:[],n=()=>K(t);0===e.length?n():(Promise.all(e).then(n).catch(n),t.u|=4,e.length=0)}},J=(t,e,n,o)=>{try{e=e.render(),t.u&=-17,t.u|=2,((t,e,n=!1)=>{const o=t.$hostElement$,l=t.o,i=t.D||C(null,null),s=(t=>t&&t.S===A)(e)?e:E(null,null,e);if(S=o.tagName,n&&s.v)for(const t of Object.keys(s.v))o.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(s.v[t]=o[t]);s.S=null,s.u|=4,t.D=s,s.O=i.O=o.shadowRoot||o,H=!(!(1&l.u)||128&l.u),q(i,s,n)})(t,e,o)}catch(e){i(e,t.$hostElement$)}return null},K=t=>{const e=t.$hostElement$,n=t.i,o=t.C;X(n,"componentDidRender",void 0,e),64&t.u?X(n,"componentDidUpdate",void 0,e):(t.u|=64,tt(e),X(n,"componentDidLoad",void 0,e),t.P(e),o||Q()),t.M&&(t.M(),t.M=void 0),512&t.u&&$((()=>Y(t,!1))),t.u&=-517},Q=()=>{$((()=>(t=>{const e=u.ce("appload",{detail:{namespace:"stencil-library"}});return t.dispatchEvent(e),e})(c)))},X=(t,e,n,o)=>{if(t&&t[e])try{return t[e](n)}catch(t){i(t,o)}},tt=t=>t.classList.add("hydrated"),et=(t,e,n,l)=>{const i=o(t);if(!i)return;if(!i)throw Error(`Couldn't find host element for "${l.p}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const s=i.l.get(e),r=i.u,c=i.i;if(n=L(n,l.t[e][0]),(!(8&r)||void 0===s)&&n!==s&&(!Number.isNaN(s)||!Number.isNaN(n))&&(i.l.set(e,n),2&r)){if(c.componentShouldUpdate&&!1===c.componentShouldUpdate(n,s,e)&&!(16&r))return;16&r||Y(i,!1)}},nt=(e,n,l)=>{var i,s;const r=e.prototype;if(n.t){const c=Object.entries(null!=(i=n.t)?i:{});if(c.map((([e,[i]])=>{if(31&i||2&l&&32&i){const{get:s,set:c}=t(r,e)||{};s&&(n.t[e][0]|=2048),c&&(n.t[e][0]|=4096),(1&l||!s)&&Object.defineProperty(r,e,{get(){{if(!(2048&n.t[e][0]))return((t,e)=>o(this).l.get(e))(0,e);const t=o(this),l=t?t.i:r;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(r,e,{set(t){const s=o(this);if(s){if(c)return void 0===(32&i?this[e]:s.$hostElement$[e])&&s.l.get(e)&&(t=s.l.get(e)),c.call(this,L(t,i)),void et(this,e,t=32&i?this[e]:s.$hostElement$[e],n);{if(!(1&l&&4096&n.t[e][0]))return et(this,e,t,n),void(1&l&&!s.i&&s.A.push((()=>{4096&n.t[e][0]&&s.i[e]!==s.l.get(e)&&(s.i[e]=t)})));const o=()=>{const o=s.i[e];!s.l.get(e)&&o&&s.l.set(e,o),s.i[e]=L(t,i),et(this,e,s.i[e],n)};s.i?o():s.A.push((()=>{o()}))}}}})}})),1&l){const t=new Map;r.attributeChangedCallback=function(e,l,i){u.jmp((()=>{var s;const u=t.get(e),f=o(this);if(this.hasOwnProperty(u)&&(i=this[u],delete this[u]),r.hasOwnProperty(u)&&"number"==typeof this[u]&&this[u]==i)return;if(null==u){const t=null==f?void 0:f.u;if(f&&t&&!(8&t)&&i!==l){const o=f.i,r=null==(s=n.R)?void 0:s[e];null==r||r.forEach((n=>{const[[s,r]]=Object.entries(n);null!=o[s]&&(128&t||1&r)&&o[s].call(o,i,l,e)}))}return}const a=c.find((([t])=>t===u)),d=a&&4&a[1][0],h=d&&null===i&&void 0===this[u];d&&(i=null!==i&&"false"!==i);const p=Object.getOwnPropertyDescriptor(r,u);h||i==this[u]||p.get&&!p.set||(this[u]=i)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.R)?s:{}),...c.filter((([t,e])=>31&e[0])).map((([e,n])=>{const o=n[1]||e;return t.set(o,e),o}))]))}}return e},ot=(t,e)=>{X(t,"connectedCallback",void 0,e)},lt=(t,e)=>{X(t,"disconnectedCallback",void 0,e||t)},it=(t,e={})=>{var n;if(!c.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const l=[],f=e.exclude||[],d=c.customElements,h=c.document.head,p=h.querySelector("meta[charset]"),m=c.document.createElement("style"),v=[];let y,b=!0;if(Object.assign(u,e),u.h=new URL(e.resourcesUrl||"./",c.document.baseURI).href,t.map((t=>{t[1].map((e=>{const n={u:e[0],p:e[1],t:e[2],T:e[3]};n.t=e[2];const c=n.p,h=class extends HTMLElement{"s-p";"s-rc";hasRegisteredEventListeners=!1;constructor(t){if(super(t),((t,e)=>{const n={u:0,$hostElement$:t,o:e,l:new Map,H:new Map};n.N=new Promise((t=>n.P=t)),t["s-p"]=[],t["s-rc"]=[],n.A=[];const o=n;t.__stencil__getHostRef=()=>o})(t=this,n),1&n.u)if(t.shadowRoot){if("open"!==t.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${n.p}! Mode is set to ${t.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else j.call(t,n)}connectedCallback(){o(this)&&(this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0),y&&(clearTimeout(y),y=null),b?v.push(this):u.jmp((()=>(t=>{if(!(1&u.u)){const e=o(t);if(!e)return;const n=e.o,l=()=>{};if(1&e.u)(null==e?void 0:e.i)?ot(e.i,t):(null==e?void 0:e.N)&&e.N.then((()=>ot(e.i,t)));else{e.u|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){G(e,e.C=n);break}}n.t&&Object.entries(n.t).map((([e,[n]])=>{if(31&n&&Object.prototype.hasOwnProperty.call(t,e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n)=>{let o;try{if(!(32&e.u)){if(e.u|=32,n.U){const l=((t,e)=>{const n=t.p.replace(/-/g,"_"),o=t.U;if(!o)return;const l=s.get(o);return l?l[n]:import(`./${o}.entry.js`).then((t=>(s.set(o,t),t[n])),(t=>{i(t,e.$hostElement$)}))
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,e);if(l&&"then"in l){const t=()=>{};o=await l,t()}else o=l;if(!o)throw Error(`Constructor for "${n.p}#${e.W}" was not found`);o.isProxied||(nt(o,n,2),o.isProxied=!0);const r=()=>{};e.u|=8;try{new o(e)}catch(e){i(e,t)}e.u&=-9,r(),ot(e.i,t)}else o=t.constructor,customElements.whenDefined(t.localName).then((()=>e.u|=128));if(o&&o.style){let t;"string"==typeof o.style&&(t=o.style);const e=k(n);if(!r.has(e)){const o=()=>{};((t,e,n)=>{let o=r.get(t);a&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=e:o.replaceSync(e)):o=e,r.set(t,o)})(e,t,!!(1&n.u)),o()}}}const l=e.C,c=()=>Y(e,!0);l&&l["s-rc"]?l["s-rc"].push(c):c()}catch(n){i(n,t),e.M&&(e.M(),e.M=void 0),e.P&&e.P(t)}})(t,e,n)}l()}})(this))))}disconnectedCallback(){u.jmp((()=>(async t=>{if(!(1&u.u)){const e=o(t);(null==e?void 0:e.i)?lt(e.i,t):(null==e?void 0:e.N)&&e.N.then((()=>lt(e.i,t)))}O.has(t)&&O.delete(t),t.shadowRoot&&O.has(t.shadowRoot)&&O.delete(t.shadowRoot)})(this))),u.raf((()=>{var t;const e=o(this);if(!e)return;const n=v.findIndex((t=>t===this));n>-1&&v.splice(n,1),(null==(t=null==e?void 0:e.D)?void 0:t.O)instanceof Node&&!e.D.O.isConnected&&delete e.D.O}))}componentOnReady(){var t;return null==(t=o(this))?void 0:t.N}};n.U=t[0],f.includes(c)||d.get(c)||(l.push(c),d.define(c,nt(h,n,1)))}))})),l.length>0&&(m.textContent+=l.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",m.innerHTML.length)){m.setAttribute("data-styles","");const t=null!=(n=u.L)?n:g(c.document);null!=t&&m.setAttribute("nonce",t),h.insertBefore(m,p?p.nextSibling:h.firstChild)}b=!1,v.length?v.map((t=>t.connectedCallback())):u.jmp((()=>y=setTimeout(Q,30)))},st=t=>u.L=t;export{it as b,E as h,f as p,l as r,st as s}
|