@watermarkinsights/ripple 3.0.1-0 → 3.0.2-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.
- package/dist/{ripple/functions-316c1b23.js → cjs/functions-e3f5ae65.js} +188 -2391
- package/dist/cjs/global-1e540de6.js +38 -0
- package/dist/cjs/http-service-9e8c4dd5.js +57 -0
- package/dist/cjs/index-d930307d.js +1392 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/interfaces-30a74c1f.js +35 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/priv-chart-popover.cjs.entry.js +89 -0
- package/dist/cjs/priv-datepicker.cjs.entry.js +672 -0
- package/dist/cjs/priv-navigator-button.cjs.entry.js +29 -0
- package/dist/cjs/priv-navigator-item.cjs.entry.js +34 -0
- package/dist/cjs/ripple.cjs.js +20 -0
- package/dist/cjs/wm-action-menu_2.cjs.entry.js +318 -0
- package/dist/cjs/wm-button.cjs.entry.js +152 -0
- package/dist/cjs/wm-chart-slice.cjs.entry.js +22 -0
- package/dist/cjs/wm-chart.cjs.entry.js +508 -0
- package/dist/cjs/wm-datepicker.cjs.entry.js +257 -0
- package/dist/cjs/wm-input.cjs.entry.js +110 -0
- package/dist/cjs/wm-modal-footer.cjs.entry.js +43 -0
- package/dist/cjs/wm-modal-header.cjs.entry.js +45 -0
- package/dist/cjs/wm-modal.cjs.entry.js +149 -0
- package/dist/cjs/wm-navigator.cjs.entry.js +279 -0
- package/dist/cjs/wm-network-uploader.cjs.entry.js +431 -0
- package/dist/cjs/wm-option_2.cjs.entry.js +483 -0
- package/dist/cjs/wm-pagination.cjs.entry.js +176 -0
- package/dist/cjs/wm-search.cjs.entry.js +231 -0
- package/dist/cjs/wm-snackbar.cjs.entry.js +160 -0
- package/dist/cjs/wm-tab-item_3.cjs.entry.js +316 -0
- package/dist/cjs/wm-tag-input.cjs.entry.js +538 -0
- package/dist/cjs/wm-timepicker.cjs.entry.js +386 -0
- package/dist/cjs/wm-toggletip.cjs.entry.js +128 -0
- package/dist/cjs/wm-uploader.cjs.entry.js +342 -0
- package/dist/cjs/wm-wrapper.cjs.entry.js +21 -0
- package/dist/collection/collection-manifest.json +131 -0
- package/dist/{ripple/ripple.css → collection/components/wm-action-menu/wm-action-menu.css} +80 -42
- package/dist/collection/components/wm-action-menu/wm-action-menu.js +392 -0
- package/dist/collection/components/wm-button/wm-button.css +572 -0
- package/dist/collection/components/wm-button/wm-button.js +365 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.css +132 -0
- package/dist/collection/components/wm-chart/priv-chart-popover/priv-chart-popover.js +232 -0
- package/dist/collection/components/wm-chart/wm-chart-slice.js +64 -0
- package/dist/collection/components/wm-chart/wm-chart.css +337 -0
- package/dist/collection/components/wm-chart/wm-chart.js +710 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.css +374 -0
- package/dist/collection/components/wm-datepicker/priv-datepicker/priv-datepicker.js +1003 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.css +211 -0
- package/dist/collection/components/wm-datepicker/wm-datepicker.js +439 -0
- package/dist/collection/components/wm-input/wm-input.css +220 -0
- package/dist/collection/components/wm-input/wm-input.js +302 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.css +118 -0
- package/dist/collection/components/wm-menuitem/wm-menuitem.js +411 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.css +84 -0
- package/dist/collection/components/wm-modal/wm-modal-footer.js +159 -0
- package/dist/collection/components/wm-modal/wm-modal-header.css +78 -0
- package/dist/collection/components/wm-modal/wm-modal-header.js +109 -0
- package/dist/collection/components/wm-modal/wm-modal.css +155 -0
- package/dist/collection/components/wm-modal/wm-modal.js +356 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.css +94 -0
- package/dist/collection/components/wm-navigator/priv-navigator-button/priv-navigator-button.js +97 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.css +67 -0
- package/dist/collection/components/wm-navigator/priv-navigator-item/priv-navigator-item.js +114 -0
- package/dist/collection/components/wm-navigator/wm-navigator.css +137 -0
- package/dist/collection/components/wm-navigator/wm-navigator.js +468 -0
- package/dist/collection/components/wm-option/wm-option.css +162 -0
- package/dist/collection/components/wm-option/wm-option.js +394 -0
- package/dist/collection/components/wm-pagination/wm-pagination.css +217 -0
- package/dist/collection/components/wm-pagination/wm-pagination.js +348 -0
- package/dist/collection/components/wm-search/wm-search.css +155 -0
- package/dist/collection/components/wm-search/wm-search.js +439 -0
- package/dist/collection/components/wm-select/wm-select.css +315 -0
- package/dist/collection/components/wm-select/wm-select.js +676 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.css +331 -0
- package/dist/collection/components/wm-snackbar/wm-snackbar.js +240 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.css +104 -0
- package/dist/collection/components/wm-tabs/wm-tab-item/wm-tab-item.js +202 -0
- package/dist/collection/components/wm-tabs/wm-tab-list/wm-tab-list.css +73 -0
- package/dist/{ripple/wm-tab-list.entry.js → collection/components/wm-tabs/wm-tab-list/wm-tab-list.js} +131 -17
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.css +57 -0
- package/dist/collection/components/wm-tabs/wm-tab-panel/wm-tab-panel.js +104 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.css +431 -0
- package/dist/collection/components/wm-tag-input/wm-tag-input.js +754 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.css +370 -0
- package/dist/collection/components/wm-timepicker/wm-timepicker.js +567 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.css +350 -0
- package/dist/collection/components/wm-toggletip/wm-toggletip.js +217 -0
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.css +642 -0
- package/dist/collection/components/wm-uploader/wm-network-uploader/wm-network-uploader.js +753 -0
- package/dist/collection/components/wm-uploader/wm-uploader.css +666 -0
- package/dist/collection/components/wm-uploader/wm-uploader.js +673 -0
- package/dist/collection/components/wm-wrapper/wm-wrapper.js +27 -0
- package/dist/collection/dev/scripts.js +20 -0
- package/dist/collection/global/__mocks__/functions.js +5 -0
- package/dist/collection/global/functions.js +420 -0
- package/dist/{ripple/app-globals-b5693c90.js → collection/global/global.js} +3 -8
- package/dist/{ripple/interfaces-50753346.js → collection/global/interfaces.js} +4 -6
- package/dist/collection/global/services/__mocks__/http-service.js +130 -0
- package/dist/collection/global/services/http-service.js +50 -0
- package/dist/collection/lang/lang.js +5 -0
- package/dist/collection/lang/piglatin.js +93 -0
- package/dist/esm/functions-0deb7f8e.js +6117 -0
- package/dist/esm/global-d6b49e98.js +36 -0
- package/dist/{ripple → esm}/http-service-5d037e16.js +0 -0
- package/dist/esm/index-5a842e48.js +1363 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/interfaces-61c6305b.js +32 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/{ripple → esm}/priv-chart-popover.entry.js +2 -2
- package/dist/{ripple → esm}/priv-datepicker.entry.js +3 -3
- package/dist/{ripple → esm}/priv-navigator-button.entry.js +1 -1
- package/dist/{ripple → esm}/priv-navigator-item.entry.js +1 -1
- package/dist/esm/ripple.js +18 -0
- package/dist/{ripple/wm-action-menu.entry.js → esm/wm-action-menu_2.entry.js} +114 -3
- package/dist/{ripple → esm}/wm-button.entry.js +3 -3
- package/dist/{ripple → esm}/wm-chart-slice.entry.js +1 -1
- package/dist/{ripple → esm}/wm-chart.entry.js +2 -2
- package/dist/{ripple → esm}/wm-datepicker.entry.js +27 -32
- package/dist/{ripple → esm}/wm-input.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal-footer.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal-header.entry.js +2 -2
- package/dist/{ripple → esm}/wm-modal.entry.js +2 -2
- package/dist/{ripple → esm}/wm-navigator.entry.js +3 -3
- package/dist/{ripple → esm}/wm-network-uploader.entry.js +2 -2
- package/dist/{ripple/wm-select.entry.js → esm/wm-option_2.entry.js} +119 -3
- package/dist/{ripple → esm}/wm-pagination.entry.js +2 -2
- package/dist/{ripple → esm}/wm-search.entry.js +2 -2
- package/dist/{ripple → esm}/wm-snackbar.entry.js +2 -2
- package/dist/esm/wm-tab-item_3.entry.js +310 -0
- package/dist/{ripple → esm}/wm-tag-input.entry.js +2 -2
- package/dist/{ripple → esm}/wm-timepicker.entry.js +2 -2
- package/dist/{ripple → esm}/wm-toggletip.entry.js +2 -2
- package/dist/{ripple → esm}/wm-uploader.entry.js +2 -2
- package/dist/{ripple → esm}/wm-wrapper.entry.js +1 -1
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/loader/cdn.js +3 -0
- package/dist/loader/index.cjs.js +3 -0
- package/dist/loader/index.d.ts +13 -0
- package/dist/loader/index.es2017.js +3 -0
- package/dist/loader/index.js +4 -0
- package/dist/loader/package.json +10 -0
- package/dist/ripple/index.esm.js +0 -1
- package/dist/ripple/p-103f8cae.entry.js +1 -0
- package/dist/ripple/p-129d94fa.entry.js +1 -0
- package/dist/ripple/p-139fe143.entry.js +1 -0
- package/dist/ripple/p-16367805.entry.js +1 -0
- package/dist/ripple/p-1d334060.entry.js +1 -0
- package/dist/ripple/p-2562f330.entry.js +1 -0
- package/dist/ripple/p-278b26ef.entry.js +1 -0
- package/dist/ripple/p-2c21bb72.entry.js +1 -0
- package/dist/ripple/p-2f5fda71.entry.js +1 -0
- package/dist/ripple/p-3e6f04d5.entry.js +1 -0
- package/dist/ripple/p-7185de7f.entry.js +1 -0
- package/dist/ripple/p-770d0798.entry.js +1 -0
- package/dist/ripple/p-846b4c5f.entry.js +1 -0
- package/dist/ripple/p-888bec42.js +1 -0
- package/dist/ripple/p-90779d53.entry.js +1 -0
- package/dist/ripple/p-934543f2.js +1 -0
- package/dist/ripple/p-9a087fee.entry.js +1 -0
- package/dist/ripple/p-a6d6eae7.js +1 -0
- package/dist/ripple/p-a942ad10.entry.js +1 -0
- package/dist/ripple/p-bfb4652d.entry.js +1 -0
- package/dist/ripple/p-c0fe5201.entry.js +1 -0
- package/dist/ripple/p-c2e27acc.entry.js +1 -0
- package/dist/ripple/p-c2edda64.entry.js +1 -0
- package/dist/ripple/p-d1fdcbcf.entry.js +1 -0
- package/dist/ripple/p-d40b6afb.entry.js +1 -0
- package/dist/ripple/p-da73db1c.entry.js +1 -0
- package/dist/ripple/p-e3843249.js +1 -0
- package/dist/ripple/p-ea5cd8b8.js +16 -0
- package/dist/ripple/p-ed0f43f4.entry.js +1 -0
- package/dist/ripple/p-ffafd363.entry.js +1 -0
- package/dist/ripple/ripple.esm.js +1 -125
- package/dist/types/components/wm-action-menu/wm-action-menu.d.ts +43 -0
- package/dist/types/components/wm-button/wm-button.d.ts +36 -0
- package/dist/types/components/wm-chart/priv-chart-popover/priv-chart-popover.d.ts +23 -0
- package/dist/types/components/wm-chart/wm-chart-slice.d.ts +8 -0
- package/dist/types/components/wm-chart/wm-chart.d.ts +77 -0
- package/dist/types/components/wm-datepicker/priv-datepicker/priv-datepicker.d.ts +75 -0
- package/dist/types/components/wm-datepicker/wm-datepicker.d.ts +39 -0
- package/dist/types/components/wm-input/wm-input.d.ts +30 -0
- package/dist/types/components/wm-menuitem/wm-menuitem.d.ts +30 -0
- package/dist/types/components/wm-modal/wm-modal-footer.d.ts +15 -0
- package/dist/types/components/wm-modal/wm-modal-header.d.ts +12 -0
- package/dist/types/components/wm-modal/wm-modal.d.ts +34 -0
- package/dist/types/components/wm-navigator/priv-navigator-button/priv-navigator-button.d.ts +10 -0
- package/dist/types/components/wm-navigator/priv-navigator-item/priv-navigator-item.d.ts +13 -0
- package/dist/types/components/wm-navigator/wm-navigator.d.ts +61 -0
- package/dist/types/components/wm-option/wm-option.d.ts +28 -0
- package/dist/types/components/wm-pagination/wm-pagination.d.ts +31 -0
- package/dist/types/components/wm-search/wm-search.d.ts +78 -0
- package/dist/types/components/wm-select/wm-select.d.ts +63 -0
- package/dist/types/components/wm-snackbar/wm-snackbar.d.ts +32 -0
- package/dist/types/components/wm-tabs/wm-tab-item/wm-tab-item.d.ts +35 -0
- package/dist/types/components/wm-tabs/wm-tab-list/wm-tab-list.d.ts +50 -0
- package/dist/types/components/wm-tabs/wm-tab-panel/wm-tab-panel.d.ts +20 -0
- package/dist/types/components/wm-tag-input/{wm-tag-input.d.ts~ds312_tagInputMaxTags → wm-tag-input.d.ts} +1 -1
- package/dist/types/components/wm-timepicker/wm-timepicker.d.ts +59 -0
- package/dist/types/components/wm-toggletip/wm-toggletip.d.ts +25 -0
- package/dist/types/components/wm-uploader/wm-network-uploader/wm-network-uploader.d.ts +85 -0
- package/dist/types/components/wm-uploader/wm-uploader.d.ts +75 -0
- package/dist/types/components/wm-wrapper/wm-wrapper.d.ts +7 -0
- package/dist/types/{components.d.ts~ds312_tagInputMaxTags → components.d.ts} +0 -0
- package/dist/types/global/__mocks__/functions.d.ts +5 -0
- package/dist/types/global/global.d.ts +1 -0
- package/dist/types/global/interfaces.d.ts +33 -0
- package/dist/types/global/services/__mocks__/http-service.d.ts +6 -0
- package/dist/types/global/services/http-service.d.ts +4 -0
- package/dist/types/lang/lang.d.ts +5 -0
- package/dist/types/{stencil-public-runtime.d.ts~ds312_tagInputMaxTags → stencil-public-runtime.d.ts} +190 -182
- package/package.json +1 -1
- package/dist/ripple/css-shim-bbdf0cc6.js +0 -4
- package/dist/ripple/dom-1f98a75f.js +0 -73
- package/dist/ripple/index-20b65f86.js +0 -2938
- package/dist/ripple/shadow-css-67b66845.js +0 -389
- package/dist/ripple/wm-menuitem.entry.js +0 -114
- package/dist/ripple/wm-option.entry.js +0 -119
- package/dist/ripple/wm-tab-item.entry.js +0 -78
- package/dist/ripple/wm-tab-panel.entry.js +0 -38
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export declare type Notification = {
|
|
2
|
+
message: string;
|
|
3
|
+
id: string;
|
|
4
|
+
link: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type label = string | undefined;
|
|
7
|
+
export declare type CssClassMap = {
|
|
8
|
+
[className: string]: boolean;
|
|
9
|
+
};
|
|
10
|
+
interface IconLabels {
|
|
11
|
+
[index: string]: string;
|
|
12
|
+
}
|
|
13
|
+
export declare type Product = {
|
|
14
|
+
description?: string;
|
|
15
|
+
samlLinkUrl?: string;
|
|
16
|
+
iconUrl: string;
|
|
17
|
+
id: string;
|
|
18
|
+
linkUrl: string;
|
|
19
|
+
name: string;
|
|
20
|
+
};
|
|
21
|
+
export declare type NavigatorPayload = {
|
|
22
|
+
connection_name?: string;
|
|
23
|
+
current_product_id: string;
|
|
24
|
+
email: string;
|
|
25
|
+
logout_url: string;
|
|
26
|
+
products: Product[];
|
|
27
|
+
};
|
|
28
|
+
export declare const iconLabels: IconLabels;
|
|
29
|
+
export declare function getIconCodeFromName(icon: string): string;
|
|
30
|
+
export declare const defaultMode = "planning";
|
|
31
|
+
export declare const getWmMode: (ref?: any) => any;
|
|
32
|
+
export declare type TooltipPosition = "top" | "bottom" | "left" | "right" | "bottom-left" | "bottom-right" | "top-right" | "top-left";
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const getRequest: (url: string) => Promise<any>;
|
|
2
|
+
export declare const postRequest: (url: string, payload: any) => Promise<void | {
|
|
3
|
+
url: string;
|
|
4
|
+
}>;
|
|
5
|
+
export declare const deleteRequest: (url: string) => Promise<void>;
|
|
6
|
+
export declare const putRequest: (_url: string, _file: any) => Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const getRequest: (url: string) => Promise<any>;
|
|
2
|
+
export declare const postRequest: (url: string, payload: Object) => Promise<any>;
|
|
3
|
+
export declare const deleteRequest: (url: string) => Promise<any>;
|
|
4
|
+
export declare const putRequest: (url: string, file: File, onProgress: Function) => Promise<unknown>;
|
package/dist/types/{stencil-public-runtime.d.ts~ds312_tagInputMaxTags → stencil-public-runtime.d.ts}
RENAMED
|
@@ -224,6 +224,13 @@ export declare const setMode: (handler: ResolutionHandler) => void;
|
|
|
224
224
|
* getMode
|
|
225
225
|
*/
|
|
226
226
|
export declare function getMode<T = string | undefined>(ref: any): T;
|
|
227
|
+
export declare function setPlatformHelpers(helpers: {
|
|
228
|
+
jmp?: (c: any) => any;
|
|
229
|
+
raf?: (c: any) => number;
|
|
230
|
+
ael?: (el: any, eventName: string, listener: any, options: any) => void;
|
|
231
|
+
rel?: (el: any, eventName: string, listener: any, options: any) => void;
|
|
232
|
+
ce?: (eventName: string, opts?: any) => any;
|
|
233
|
+
}): void;
|
|
227
234
|
/**
|
|
228
235
|
* Get the base path to where the assets can be found. Use `setAssetPath(path)`
|
|
229
236
|
* if the path needs to be customized.
|
|
@@ -672,6 +679,7 @@ export declare namespace JSXBase {
|
|
|
672
679
|
media?: string;
|
|
673
680
|
rel?: string;
|
|
674
681
|
target?: string;
|
|
682
|
+
referrerPolicy?: ReferrerPolicy;
|
|
675
683
|
}
|
|
676
684
|
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
677
685
|
}
|
|
@@ -1159,87 +1167,87 @@ export declare namespace JSXBase {
|
|
|
1159
1167
|
unselectable?: boolean;
|
|
1160
1168
|
}
|
|
1161
1169
|
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1162
|
-
|
|
1170
|
+
class?: string | {
|
|
1163
1171
|
[className: string]: boolean;
|
|
1164
1172
|
};
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1173
|
+
color?: string;
|
|
1174
|
+
height?: number | string;
|
|
1175
|
+
id?: string;
|
|
1176
|
+
lang?: string;
|
|
1177
|
+
max?: number | string;
|
|
1178
|
+
media?: string;
|
|
1179
|
+
method?: string;
|
|
1180
|
+
min?: number | string;
|
|
1181
|
+
name?: string;
|
|
1182
|
+
style?: {
|
|
1175
1183
|
[key: string]: string | undefined;
|
|
1176
1184
|
};
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1185
|
+
target?: string;
|
|
1186
|
+
type?: string;
|
|
1187
|
+
width?: number | string;
|
|
1188
|
+
role?: string;
|
|
1189
|
+
tabindex?: number;
|
|
1182
1190
|
'accent-height'?: number | string;
|
|
1183
|
-
|
|
1184
|
-
|
|
1191
|
+
accumulate?: 'none' | 'sum';
|
|
1192
|
+
additive?: 'replace' | 'sum';
|
|
1185
1193
|
'alignment-baseline'?: 'auto' | 'baseline' | 'before-edge' | 'text-before-edge' | 'middle' | 'central' | 'after-edge' | 'text-after-edge' | 'ideographic' | 'alphabetic' | 'hanging' | 'mathematical' | 'inherit';
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1194
|
+
allowReorder?: 'no' | 'yes';
|
|
1195
|
+
alphabetic?: number | string;
|
|
1196
|
+
amplitude?: number | string;
|
|
1189
1197
|
'arabic-form'?: 'initial' | 'medial' | 'terminal' | 'isolated';
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1198
|
+
ascent?: number | string;
|
|
1199
|
+
attributeName?: string;
|
|
1200
|
+
attributeType?: string;
|
|
1201
|
+
autoReverse?: number | string;
|
|
1202
|
+
azimuth?: number | string;
|
|
1203
|
+
baseFrequency?: number | string;
|
|
1196
1204
|
'baseline-shift'?: number | string;
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1205
|
+
baseProfile?: number | string;
|
|
1206
|
+
bbox?: number | string;
|
|
1207
|
+
begin?: number | string;
|
|
1208
|
+
bias?: number | string;
|
|
1209
|
+
by?: number | string;
|
|
1210
|
+
calcMode?: number | string;
|
|
1203
1211
|
'cap-height'?: number | string;
|
|
1204
|
-
|
|
1212
|
+
clip?: number | string;
|
|
1205
1213
|
'clip-path'?: string;
|
|
1206
|
-
|
|
1214
|
+
clipPathUnits?: number | string;
|
|
1207
1215
|
'clip-rule'?: number | string;
|
|
1208
1216
|
'color-interpolation'?: number | string;
|
|
1209
1217
|
'color-interpolation-filters'?: 'auto' | 's-rGB' | 'linear-rGB' | 'inherit';
|
|
1210
1218
|
'color-profile'?: number | string;
|
|
1211
1219
|
'color-rendering'?: number | string;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1220
|
+
contentScriptType?: number | string;
|
|
1221
|
+
contentStyleType?: number | string;
|
|
1222
|
+
cursor?: number | string;
|
|
1223
|
+
cx?: number | string;
|
|
1224
|
+
cy?: number | string;
|
|
1225
|
+
d?: string;
|
|
1226
|
+
decelerate?: number | string;
|
|
1227
|
+
descent?: number | string;
|
|
1228
|
+
diffuseConstant?: number | string;
|
|
1229
|
+
direction?: number | string;
|
|
1230
|
+
display?: number | string;
|
|
1231
|
+
divisor?: number | string;
|
|
1224
1232
|
'dominant-baseline'?: number | string;
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1233
|
+
dur?: number | string;
|
|
1234
|
+
dx?: number | string;
|
|
1235
|
+
dy?: number | string;
|
|
1228
1236
|
'edge-mode'?: number | string;
|
|
1229
|
-
|
|
1237
|
+
elevation?: number | string;
|
|
1230
1238
|
'enable-background'?: number | string;
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1239
|
+
end?: number | string;
|
|
1240
|
+
exponent?: number | string;
|
|
1241
|
+
externalResourcesRequired?: number | string;
|
|
1242
|
+
fill?: string;
|
|
1235
1243
|
'fill-opacity'?: number | string;
|
|
1236
1244
|
'fill-rule'?: 'nonzero' | 'evenodd' | 'inherit';
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1245
|
+
filter?: string;
|
|
1246
|
+
filterRes?: number | string;
|
|
1247
|
+
filterUnits?: number | string;
|
|
1240
1248
|
'flood-color'?: number | string;
|
|
1241
1249
|
'flood-opacity'?: number | string;
|
|
1242
|
-
|
|
1250
|
+
focusable?: number | string;
|
|
1243
1251
|
'font-family'?: string;
|
|
1244
1252
|
'font-size'?: number | string;
|
|
1245
1253
|
'font-size-adjust'?: number | string;
|
|
@@ -1247,113 +1255,113 @@ export declare namespace JSXBase {
|
|
|
1247
1255
|
'font-style'?: number | string;
|
|
1248
1256
|
'font-variant'?: number | string;
|
|
1249
1257
|
'font-weight'?: number | string;
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1258
|
+
format?: number | string;
|
|
1259
|
+
from?: number | string;
|
|
1260
|
+
fx?: number | string;
|
|
1261
|
+
fy?: number | string;
|
|
1262
|
+
g1?: number | string;
|
|
1263
|
+
g2?: number | string;
|
|
1256
1264
|
'glyph-name'?: number | string;
|
|
1257
1265
|
'glyph-orientation-horizontal'?: number | string;
|
|
1258
1266
|
'glyph-orientation-vertical'?: number | string;
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1267
|
+
glyphRef?: number | string;
|
|
1268
|
+
gradientTransform?: string;
|
|
1269
|
+
gradientUnits?: string;
|
|
1270
|
+
hanging?: number | string;
|
|
1263
1271
|
'horiz-adv-x'?: number | string;
|
|
1264
1272
|
'horiz-origin-x'?: number | string;
|
|
1265
|
-
|
|
1266
|
-
|
|
1273
|
+
href?: string;
|
|
1274
|
+
ideographic?: number | string;
|
|
1267
1275
|
'image-rendering'?: number | string;
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1276
|
+
in2?: number | string;
|
|
1277
|
+
in?: string;
|
|
1278
|
+
intercept?: number | string;
|
|
1279
|
+
k1?: number | string;
|
|
1280
|
+
k2?: number | string;
|
|
1281
|
+
k3?: number | string;
|
|
1282
|
+
k4?: number | string;
|
|
1283
|
+
k?: number | string;
|
|
1284
|
+
kernelMatrix?: number | string;
|
|
1285
|
+
kernelUnitLength?: number | string;
|
|
1286
|
+
kerning?: number | string;
|
|
1287
|
+
keyPoints?: number | string;
|
|
1288
|
+
keySplines?: number | string;
|
|
1289
|
+
keyTimes?: number | string;
|
|
1290
|
+
lengthAdjust?: number | string;
|
|
1283
1291
|
'letter-spacing'?: number | string;
|
|
1284
1292
|
'lighting-color'?: number | string;
|
|
1285
|
-
|
|
1286
|
-
|
|
1293
|
+
limitingConeAngle?: number | string;
|
|
1294
|
+
local?: number | string;
|
|
1287
1295
|
'marker-end'?: string;
|
|
1288
|
-
|
|
1296
|
+
markerHeight?: number | string;
|
|
1289
1297
|
'marker-mid'?: string;
|
|
1290
1298
|
'marker-start'?: string;
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1299
|
+
markerUnits?: number | string;
|
|
1300
|
+
markerWidth?: number | string;
|
|
1301
|
+
mask?: string;
|
|
1302
|
+
maskContentUnits?: number | string;
|
|
1303
|
+
maskUnits?: number | string;
|
|
1304
|
+
mathematical?: number | string;
|
|
1305
|
+
mode?: number | string;
|
|
1306
|
+
numOctaves?: number | string;
|
|
1307
|
+
offset?: number | string;
|
|
1308
|
+
opacity?: number | string;
|
|
1309
|
+
operator?: number | string;
|
|
1310
|
+
order?: number | string;
|
|
1311
|
+
orient?: number | string;
|
|
1312
|
+
orientation?: number | string;
|
|
1313
|
+
origin?: number | string;
|
|
1314
|
+
overflow?: number | string;
|
|
1307
1315
|
'overline-position'?: number | string;
|
|
1308
1316
|
'overline-thickness'?: number | string;
|
|
1309
1317
|
'paint-order'?: number | string;
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1318
|
+
panose1?: number | string;
|
|
1319
|
+
pathLength?: number | string;
|
|
1320
|
+
patternContentUnits?: string;
|
|
1321
|
+
patternTransform?: number | string;
|
|
1322
|
+
patternUnits?: string;
|
|
1315
1323
|
'pointer-events'?: number | string;
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1324
|
+
points?: string;
|
|
1325
|
+
pointsAtX?: number | string;
|
|
1326
|
+
pointsAtY?: number | string;
|
|
1327
|
+
pointsAtZ?: number | string;
|
|
1328
|
+
preserveAlpha?: number | string;
|
|
1329
|
+
preserveAspectRatio?: string;
|
|
1330
|
+
primitiveUnits?: number | string;
|
|
1331
|
+
r?: number | string;
|
|
1332
|
+
radius?: number | string;
|
|
1333
|
+
refX?: number | string;
|
|
1334
|
+
refY?: number | string;
|
|
1327
1335
|
'rendering-intent'?: number | string;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1336
|
+
repeatCount?: number | string;
|
|
1337
|
+
repeatDur?: number | string;
|
|
1338
|
+
requiredextensions?: number | string;
|
|
1339
|
+
requiredFeatures?: number | string;
|
|
1340
|
+
restart?: number | string;
|
|
1341
|
+
result?: string;
|
|
1342
|
+
rotate?: number | string;
|
|
1343
|
+
rx?: number | string;
|
|
1344
|
+
ry?: number | string;
|
|
1345
|
+
scale?: number | string;
|
|
1346
|
+
seed?: number | string;
|
|
1339
1347
|
'shape-rendering'?: number | string;
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1348
|
+
slope?: number | string;
|
|
1349
|
+
spacing?: number | string;
|
|
1350
|
+
specularConstant?: number | string;
|
|
1351
|
+
specularExponent?: number | string;
|
|
1352
|
+
speed?: number | string;
|
|
1353
|
+
spreadMethod?: string;
|
|
1354
|
+
startOffset?: number | string;
|
|
1355
|
+
stdDeviation?: number | string;
|
|
1356
|
+
stemh?: number | string;
|
|
1357
|
+
stemv?: number | string;
|
|
1358
|
+
stitchTiles?: number | string;
|
|
1351
1359
|
'stop-color'?: string;
|
|
1352
1360
|
'stop-opacity'?: number | string;
|
|
1353
1361
|
'strikethrough-position'?: number | string;
|
|
1354
1362
|
'strikethrough-thickness'?: number | string;
|
|
1355
|
-
|
|
1356
|
-
|
|
1363
|
+
string?: number | string;
|
|
1364
|
+
stroke?: string;
|
|
1357
1365
|
'stroke-dasharray'?: string | number;
|
|
1358
1366
|
'stroke-dashoffset'?: string | number;
|
|
1359
1367
|
'stroke-linecap'?: 'butt' | 'round' | 'square' | 'inherit';
|
|
@@ -1361,63 +1369,63 @@ export declare namespace JSXBase {
|
|
|
1361
1369
|
'stroke-miterlimit'?: string;
|
|
1362
1370
|
'stroke-opacity'?: number | string;
|
|
1363
1371
|
'stroke-width'?: number | string;
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1372
|
+
surfaceScale?: number | string;
|
|
1373
|
+
systemLanguage?: number | string;
|
|
1374
|
+
tableValues?: number | string;
|
|
1375
|
+
targetX?: number | string;
|
|
1376
|
+
targetY?: number | string;
|
|
1369
1377
|
'text-anchor'?: string;
|
|
1370
1378
|
'text-decoration'?: number | string;
|
|
1371
|
-
|
|
1379
|
+
textLength?: number | string;
|
|
1372
1380
|
'text-rendering'?: number | string;
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1381
|
+
to?: number | string;
|
|
1382
|
+
transform?: string;
|
|
1383
|
+
u1?: number | string;
|
|
1384
|
+
u2?: number | string;
|
|
1377
1385
|
'underline-position'?: number | string;
|
|
1378
1386
|
'underline-thickness'?: number | string;
|
|
1379
|
-
|
|
1387
|
+
unicode?: number | string;
|
|
1380
1388
|
'unicode-bidi'?: number | string;
|
|
1381
1389
|
'unicode-range'?: number | string;
|
|
1382
1390
|
'units-per-em'?: number | string;
|
|
1383
1391
|
'v-alphabetic'?: number | string;
|
|
1384
|
-
|
|
1392
|
+
values?: string;
|
|
1385
1393
|
'vector-effect'?: number | string;
|
|
1386
|
-
|
|
1394
|
+
version?: string;
|
|
1387
1395
|
'vert-adv-y'?: number | string;
|
|
1388
1396
|
'vert-origin-x'?: number | string;
|
|
1389
1397
|
'vert-origin-y'?: number | string;
|
|
1390
1398
|
'v-hanging'?: number | string;
|
|
1391
1399
|
'v-ideographic'?: number | string;
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1400
|
+
viewBox?: string;
|
|
1401
|
+
viewTarget?: number | string;
|
|
1402
|
+
visibility?: number | string;
|
|
1395
1403
|
'v-mathematical'?: number | string;
|
|
1396
|
-
|
|
1404
|
+
widths?: number | string;
|
|
1397
1405
|
'word-spacing'?: number | string;
|
|
1398
1406
|
'writing-mode'?: number | string;
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1407
|
+
x1?: number | string;
|
|
1408
|
+
x2?: number | string;
|
|
1409
|
+
x?: number | string;
|
|
1402
1410
|
'x-channel-selector'?: string;
|
|
1403
1411
|
'x-height'?: number | string;
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1412
|
+
xlinkActuate?: string;
|
|
1413
|
+
xlinkArcrole?: string;
|
|
1414
|
+
xlinkHref?: string;
|
|
1415
|
+
xlinkRole?: string;
|
|
1416
|
+
xlinkShow?: string;
|
|
1417
|
+
xlinkTitle?: string;
|
|
1418
|
+
xlinkType?: string;
|
|
1419
|
+
xmlBase?: string;
|
|
1420
|
+
xmlLang?: string;
|
|
1421
|
+
xmlns?: string;
|
|
1422
|
+
xmlSpace?: string;
|
|
1423
|
+
y1?: number | string;
|
|
1424
|
+
y2?: number | string;
|
|
1425
|
+
y?: number | string;
|
|
1426
|
+
yChannelSelector?: string;
|
|
1427
|
+
z?: number | string;
|
|
1428
|
+
zoomAndPan?: string;
|
|
1421
1429
|
}
|
|
1422
1430
|
interface DOMAttributes<T = Element> {
|
|
1423
1431
|
key?: string | number;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
Stencil Client Patch Esm v2.8.0 | MIT Licensed | https://stenciljs.com
|
|
3
|
-
*/
|
|
4
|
-
var __assign=undefined&&undefined.__assign||function(){return (__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var s in t=arguments[r])Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e}).apply(this,arguments)},StyleNode=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector="";};function parse(e){return parseCss(lex(e=clean(e)),e)}function clean(e){return e.replace(RX.comments,"").replace(RX.port,"")}function lex(e){var t=new StyleNode;t.start=0,t.end=e.length;for(var r=t,n=0,s=e.length;n<s;n++)if(e[n]===OPEN_BRACE){r.rules||(r.rules=[]);var o=r,a=o.rules[o.rules.length-1]||null;(r=new StyleNode).start=n+1,r.parent=o,r.previous=a,o.rules.push(r);}else e[n]===CLOSE_BRACE&&(r.end=n+1,r=r.parent||t);return t}function parseCss(e,t){var r=t.substring(e.start,e.end-1);if(e.parsedCssText=e.cssText=r.trim(),e.parent){var n=e.previous?e.previous.end:e.parent.start;r=(r=(r=_expandUnicodeEscapes(r=t.substring(n,e.start-1))).replace(RX.multipleSpaces," ")).substring(r.lastIndexOf(";")+1);var s=e.parsedSelector=e.selector=r.trim();e.atRule=0===s.indexOf(AT_START),e.atRule?0===s.indexOf(MEDIA_START)?e.type=types.MEDIA_RULE:s.match(RX.keyframesRule)&&(e.type=types.KEYFRAMES_RULE,e.keyframesName=e.selector.split(RX.multipleSpaces).pop()):0===s.indexOf(VAR_START)?e.type=types.MIXIN_RULE:e.type=types.STYLE_RULE;}var o=e.rules;if(o)for(var a=0,i=o.length,l=void 0;a<i&&(l=o[a]);a++)parseCss(l,t);return e}function _expandUnicodeEscapes(e){return e.replace(/\\([0-9a-f]{1,6})\s/gi,(function(){for(var e=arguments[1],t=6-e.length;t--;)e="0"+e;return "\\"+e}))}var types={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},OPEN_BRACE="{",CLOSE_BRACE="}",RX={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},VAR_START="--",MEDIA_START="@media",AT_START="@";function findRegex(e,t,r){e.lastIndex=0;var n=t.substring(r).match(e);if(n){var s=r+n.index;return {start:s,end:s+n[0].length}}return null}var VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;function resolveVar(e,t,r){return e[t]?e[t]:r?executeTemplate(r,e):""}function findVarEndIndex(e,t){for(var r=0,n=t;n<e.length;n++){var s=e[n];if("("===s)r++;else if(")"===s&&--r<=0)return n+1}return n}function parseVar(e,t){var r=findRegex(VAR_USAGE_START,e,t);if(!r)return null;var n=findVarEndIndex(e,r.start),s=e.substring(r.end,n-1).split(","),o=s[0],a=s.slice(1);return {start:r.start,end:n,propName:o.trim(),fallback:a.length>0?a.join(",").trim():void 0}}function compileVar(e,t,r){var n=parseVar(e,r);if(!n)return t.push(e.substring(r,e.length)),e.length;var s=n.propName,o=null!=n.fallback?compileTemplate(n.fallback):void 0;return t.push(e.substring(r,n.start),(function(e){return resolveVar(e,s,o)})),n.end}function executeTemplate(e,t){for(var r="",n=0;n<e.length;n++){var s=e[n];r+="string"==typeof s?s:s(t);}return r}function findEndValue(e,t){for(var r=!1,n=!1,s=t;s<e.length;s++){var o=e[s];if(r)n&&'"'===o&&(r=!1),n||"'"!==o||(r=!1);else if('"'===o)r=!0,n=!0;else if("'"===o)r=!0,n=!1;else {if(";"===o)return s+1;if("}"===o)return s}}return s}function removeCustomAssigns(e){for(var t="",r=0;;){var n=findRegex(VAR_ASSIGN_START,e,r),s=n?n.start:e.length;if(t+=e.substring(r,s),!n)break;r=findEndValue(e,s);}return t}function compileTemplate(e){var t=0;e=removeCustomAssigns(e=e.replace(COMMENTS,"")).replace(TRAILING_LINES,"");for(var r=[];t<e.length;)t=compileVar(e,r,t);return r}function resolveValues(e){var t={};e.forEach((function(e){e.declarations.forEach((function(e){t[e.prop]=e.value;}));}));for(var r={},n=Object.entries(t),s=function(e){var t=!1;if(n.forEach((function(e){var n=e[0],s=executeTemplate(e[1],r);s!==r[n]&&(r[n]=s,t=!0);})),!t)return "break"},o=0;o<10;o++){if("break"===s())break}return r}function getSelectors(e,t){if(void 0===t&&(t=0),!e.rules)return [];var r=[];return e.rules.filter((function(e){return e.type===types.STYLE_RULE})).forEach((function(e){var n=getDeclarations(e.cssText);n.length>0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),r.push({selector:e,declarations:n,specificity:computeSpecificity(),nu:t});})),t++;})),r}function computeSpecificity(e){return 1}var IMPORTANT="!important",FIND_DECLARATIONS=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function getDeclarations(e){for(var t,r=[];t=FIND_DECLARATIONS.exec(e.trim());){var n=normalizeValue(t[2]),s=n.value,o=n.important;r.push({prop:t[1].trim(),value:compileTemplate(s),important:o});}return r}function normalizeValue(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(IMPORTANT);return t&&(e=e.substr(0,e.length-IMPORTANT.length).trim()),{value:e,important:t}}function getActiveSelectors(e,t,r){var n=[],s=getScopesForElement(t,e);return r.forEach((function(e){return n.push(e)})),s.forEach((function(e){return n.push(e)})),sortSelectors(getSelectorsForScopes(n).filter((function(t){return matches(e,t.selector)})))}function getScopesForElement(e,t){for(var r=[];t;){var n=e.get(t);n&&r.push(n),t=t.parentElement;}return r}function getSelectorsForScopes(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors);})),t}function sortSelectors(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function matches(e,t){return ":root"===t||"html"===t||e.matches(t)}function parseCSS(e){var t=parse(e),r=compileTemplate(e);return {original:e,template:r,selectors:getSelectors(t),usesCssVars:r.length>1}}function addGlobalStyle(e,t){if(e.some((function(e){return e.styleEl===t})))return !1;var r=parseCSS(t.textContent);return r.styleEl=t,e.push(r),!0}function updateGlobalScopes(e){var t=resolveValues(getSelectorsForScopes(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=executeTemplate(e.template,t));}));}function reScope(e,t){var r=e.template.map((function(r){return "string"==typeof r?replaceScope(r,e.scopeId,t):r})),n=e.selectors.map((function(r){return __assign(__assign({},r),{selector:replaceScope(r.selector,e.scopeId,t)})}));return __assign(__assign({},e),{template:r,selectors:n,scopeId:t})}function replaceScope(e,t,r){return e=replaceAll(e,"\\."+t,"."+r)}function replaceAll(e,t,r){return e.replace(new RegExp(t,"g"),r)}function loadDocument(e,t){return loadDocumentStyles(e,t),loadDocumentLinks(e,t).then((function(){updateGlobalScopes(t);}))}function startWatcher(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){loadDocumentStyles(e,t)&&updateGlobalScopes(t);})).observe(document.head,{childList:!0});}function loadDocumentLinks(e,t){for(var r=[],n=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),s=0;s<n.length;s++)r.push(addGlobalLink(e,t,n[s]));return Promise.all(r)}function loadDocumentStyles(e,t){return Array.from(e.querySelectorAll("style:not([data-styles]):not([data-no-shim])")).map((function(e){return addGlobalStyle(t,e)})).some(Boolean)}function addGlobalLink(e,t,r){var n=r.href;return fetch(n).then((function(e){return e.text()})).then((function(s){if(hasCssVariables(s)&&r.parentNode){hasRelativeUrls(s)&&(s=fixRelativeUrls(s,n));var o=e.createElement("style");o.setAttribute("data-styles",""),o.textContent=s,addGlobalStyle(t,o),r.parentNode.insertBefore(o,r),r.remove();}})).catch((function(e){console.error(e);}))}var CSS_VARIABLE_REGEXP=/[\s;{]--[-a-zA-Z0-9]+\s*:/m;function hasCssVariables(e){return e.indexOf("var(")>-1||CSS_VARIABLE_REGEXP.test(e)}var CSS_URL_REGEXP=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function hasRelativeUrls(e){return CSS_URL_REGEXP.lastIndex=0,CSS_URL_REGEXP.test(e)}function fixRelativeUrls(e,t){var r=t.replace(/[^/]*$/,"");return e.replace(CSS_URL_REGEXP,(function(e,t){var n=r+t;return e.replace(t,n)}))}var CustomStyle=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1;}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){startWatcher(e.doc,e.globalScopes),loadDocument(e.doc,e.globalScopes).then((function(){return t()}));}));})))},e.prototype.addLink=function(e){var t=this;return addGlobalLink(this.doc,this.globalScopes,e).then((function(){t.updateGlobal();}))},e.prototype.addGlobalStyle=function(e){addGlobalStyle(this.globalScopes,e)&&this.updateGlobal();},e.prototype.createHostStyle=function(e,t,r,n){if(this.hostScopeMap.has(e))throw new Error("host style already created");var s=this.registerHostTemplate(r,t,n),o=this.doc.createElement("style");return o.setAttribute("data-no-shim",""),s.usesCssVars?n?(o["s-sc"]=t=s.scopeId+"-"+this.count,o.textContent="/*needs update*/",this.hostStyleMap.set(e,o),this.hostScopeMap.set(e,reScope(s,t)),this.count++):(s.styleEl=o,s.usesCssVars||(o.textContent=executeTemplate(s.template,{})),this.globalScopes.push(s),this.updateGlobal(),this.hostScopeMap.set(e,s)):o.textContent=r,o},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e);},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var r=this.hostStyleMap.get(e);if(r){var n=resolveValues(getActiveSelectors(e,this.hostScopeMap,this.globalScopes));r.textContent=executeTemplate(t.template,n);}}},e.prototype.updateGlobal=function(){updateGlobalScopes(this.globalScopes);},e.prototype.registerHostTemplate=function(e,t,r){var n=this.scopesMap.get(t);return n||((n=parseCSS(e)).scopeId=t,n.isScoped=r,this.scopesMap.set(t,n)),n},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new CustomStyle(e,e.document));}("undefined"!=typeof window&&window);
|