@arcgis/common-components 4.29.0-beta.4 → 4.29.0-beta.41
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/README.md +1 -1
- package/dist/arcgis-common-components/arcgis-common-components.esm.js +1 -1
- package/dist/arcgis-common-components/p-2a7fe37a.js +2 -0
- package/dist/arcgis-common-components/{p-84fccaad.entry.js → p-50b351b8.entry.js} +1 -1
- package/dist/arcgis-common-components/p-a39b4556.entry.js +1 -0
- package/dist/cjs/arcgis-api-key.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-common-components.cjs.js +3 -3
- package/dist/cjs/arcgis-identity.cjs.entry.js +4 -4
- package/dist/cjs/{index-e8c59179.js → index-693a0aa8.js} +207 -39
- package/dist/cjs/loader.cjs.js +3 -12
- package/dist/components/arcgis-api-key.js +5 -3
- package/dist/components/arcgis-identity.js +5 -3
- package/dist/components/index.d.ts +5 -4
- package/dist/components/index.js +1 -3
- package/dist/esm/arcgis-api-key.entry.js +4 -4
- package/dist/esm/arcgis-common-components.js +4 -4
- package/dist/esm/arcgis-identity.entry.js +4 -4
- package/dist/esm/{index-1f7e8e45.js → index-00709df9.js} +207 -39
- package/dist/esm/loader.js +4 -13
- package/dist/loader/index.d.ts +2 -2
- package/dist/types/components.d.ts +25 -0
- package/dist/types/stencil-public-runtime.d.ts +53 -17
- package/package.json +24 -26
- package/dist/arcgis-common-components/p-3768a3bb.entry.js +0 -1
- package/dist/arcgis-common-components/p-b0c98bba.js +0 -2
- package/dist/esm/polyfills/css-shim.js +0 -1
- /package/dist/arcgis-common-components/{p-9625972e.js → p-b4629d3e.js} +0 -0
- /package/dist/cjs/{index-f1a937af.js → index-f93ca465.js} +0 -0
- /package/dist/esm/{index-71b437b1.js → index-6dce2d84.js} +0 -0
- /package/dist/types/components/{arcgis-api-key/arcgis-api-key.d.ts → api-key/api-key.d.ts} +0 -0
- /package/dist/types/components/{arcgis-identity/arcgis-identity.d.ts → identity/identity.d.ts} +0 -0
|
@@ -3,6 +3,16 @@ export interface ComponentDecorator {
|
|
|
3
3
|
(opts?: ComponentOptions): ClassDecorator;
|
|
4
4
|
}
|
|
5
5
|
export interface ComponentOptions {
|
|
6
|
+
/**
|
|
7
|
+
* When set to `true` this component will be form-associated. See
|
|
8
|
+
* https://stenciljs.com/docs/next/form-associated documentation on how to
|
|
9
|
+
* build form-associated Stencil components that integrate into forms like
|
|
10
|
+
* native browser elements such as `<input>` and `<textarea>`.
|
|
11
|
+
*
|
|
12
|
+
* The {@link AttachInternals} decorator allows for access to the
|
|
13
|
+
* `ElementInternals` object to modify the associated form.
|
|
14
|
+
*/
|
|
15
|
+
formAssociated?: boolean;
|
|
6
16
|
/**
|
|
7
17
|
* Tag name of the web component. Ideally, the tag name must be globally unique,
|
|
8
18
|
* so it's recommended to choose an unique prefix for all your components within the same collection.
|
|
@@ -62,7 +72,7 @@ export interface PropOptions {
|
|
|
62
72
|
/**
|
|
63
73
|
* The name of the associated DOM attribute.
|
|
64
74
|
* Stencil uses different heuristics to determine the default name of the attribute,
|
|
65
|
-
* but using this property, you can override the default
|
|
75
|
+
* but using this property, you can override the default behavior.
|
|
66
76
|
*/
|
|
67
77
|
attribute?: string | null;
|
|
68
78
|
/**
|
|
@@ -107,6 +117,9 @@ export interface EventOptions {
|
|
|
107
117
|
*/
|
|
108
118
|
composed?: boolean;
|
|
109
119
|
}
|
|
120
|
+
export interface AttachInternalsDecorator {
|
|
121
|
+
(): PropertyDecorator;
|
|
122
|
+
}
|
|
110
123
|
export interface ListenDecorator {
|
|
111
124
|
(eventName: string, opts?: ListenOptions): CustomMethodDecorator<any>;
|
|
112
125
|
}
|
|
@@ -128,7 +141,7 @@ export interface ListenOptions {
|
|
|
128
141
|
* By default, Stencil uses several heuristics to determine if
|
|
129
142
|
* it must attach a `passive` event listener or not.
|
|
130
143
|
*
|
|
131
|
-
* Using the `passive` option can be used to change the default
|
|
144
|
+
* Using the `passive` option can be used to change the default behavior.
|
|
132
145
|
* Please see https://developers.google.com/web/updates/2016/06/passive-event-listeners for further information.
|
|
133
146
|
*/
|
|
134
147
|
passive?: boolean;
|
|
@@ -175,6 +188,12 @@ export declare const Element: ElementDecorator;
|
|
|
175
188
|
* https://stenciljs.com/docs/events
|
|
176
189
|
*/
|
|
177
190
|
export declare const Event: EventDecorator;
|
|
191
|
+
/**
|
|
192
|
+
* If the `formAssociated` option is set in options passed to the
|
|
193
|
+
* `@Component()` decorator then this decorator may be used to get access to the
|
|
194
|
+
* `ElementInternals` instance associated with the component.
|
|
195
|
+
*/
|
|
196
|
+
export declare const AttachInternals: AttachInternalsDecorator;
|
|
178
197
|
/**
|
|
179
198
|
* The `Listen()` decorator is for listening DOM events, including the ones
|
|
180
199
|
* dispatched from `@Events()`.
|
|
@@ -432,7 +451,7 @@ export interface QueueApi {
|
|
|
432
451
|
/**
|
|
433
452
|
* Host
|
|
434
453
|
*/
|
|
435
|
-
interface HostAttributes {
|
|
454
|
+
export interface HostAttributes {
|
|
436
455
|
class?: string | {
|
|
437
456
|
[className: string]: boolean;
|
|
438
457
|
};
|
|
@@ -471,7 +490,7 @@ export interface FunctionalUtilities {
|
|
|
471
490
|
/**
|
|
472
491
|
* Utility for reading the children of a functional component at runtime.
|
|
473
492
|
* Since the Stencil runtime uses a different interface for children it is
|
|
474
|
-
* not
|
|
493
|
+
* not recommended to read the children directly, and is preferable to use
|
|
475
494
|
* this utility to, for instance, perform a side effect for each child.
|
|
476
495
|
*/
|
|
477
496
|
forEach: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => void) => void;
|
|
@@ -812,6 +831,7 @@ export declare namespace JSXBase {
|
|
|
812
831
|
datetime?: string;
|
|
813
832
|
}
|
|
814
833
|
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
834
|
+
onCancel?: (event: Event) => void;
|
|
815
835
|
onClose?: (event: Event) => void;
|
|
816
836
|
open?: boolean;
|
|
817
837
|
returnValue?: string;
|
|
@@ -871,6 +891,8 @@ export declare namespace JSXBase {
|
|
|
871
891
|
}
|
|
872
892
|
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
873
893
|
alt?: string;
|
|
894
|
+
crossOrigin?: string;
|
|
895
|
+
crossorigin?: string;
|
|
874
896
|
decoding?: 'async' | 'auto' | 'sync';
|
|
875
897
|
importance?: 'low' | 'auto' | 'high';
|
|
876
898
|
height?: number | string;
|
|
@@ -892,8 +914,8 @@ export declare namespace JSXBase {
|
|
|
892
914
|
accept?: string;
|
|
893
915
|
allowdirs?: boolean;
|
|
894
916
|
alt?: string;
|
|
895
|
-
autoCapitalize?:
|
|
896
|
-
autocapitalize?:
|
|
917
|
+
autoCapitalize?: string;
|
|
918
|
+
autocapitalize?: string;
|
|
897
919
|
autoComplete?: string;
|
|
898
920
|
autocomplete?: string;
|
|
899
921
|
autoFocus?: boolean;
|
|
@@ -929,6 +951,8 @@ export declare namespace JSXBase {
|
|
|
929
951
|
minlength?: number | string;
|
|
930
952
|
multiple?: boolean;
|
|
931
953
|
name?: string;
|
|
954
|
+
onSelect?: (event: Event) => void;
|
|
955
|
+
onselect?: (event: Event) => void;
|
|
932
956
|
pattern?: string;
|
|
933
957
|
placeholder?: string;
|
|
934
958
|
readOnly?: boolean;
|
|
@@ -1110,11 +1134,13 @@ export declare namespace JSXBase {
|
|
|
1110
1134
|
autocomplete?: string;
|
|
1111
1135
|
}
|
|
1112
1136
|
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1137
|
+
height?: number;
|
|
1113
1138
|
media?: string;
|
|
1114
1139
|
sizes?: string;
|
|
1115
1140
|
src?: string;
|
|
1116
1141
|
srcSet?: string;
|
|
1117
1142
|
type?: string;
|
|
1143
|
+
width?: number;
|
|
1118
1144
|
}
|
|
1119
1145
|
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1120
1146
|
media?: string;
|
|
@@ -1130,6 +1156,8 @@ export declare namespace JSXBase {
|
|
|
1130
1156
|
summary?: string;
|
|
1131
1157
|
}
|
|
1132
1158
|
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1159
|
+
autoComplete?: string;
|
|
1160
|
+
autocomplete?: string;
|
|
1133
1161
|
autoFocus?: boolean;
|
|
1134
1162
|
autofocus?: boolean | string;
|
|
1135
1163
|
cols?: number;
|
|
@@ -1140,6 +1168,8 @@ export declare namespace JSXBase {
|
|
|
1140
1168
|
minLength?: number;
|
|
1141
1169
|
minlength?: number | string;
|
|
1142
1170
|
name?: string;
|
|
1171
|
+
onSelect?: (event: Event) => void;
|
|
1172
|
+
onselect?: (event: Event) => void;
|
|
1143
1173
|
placeholder?: string;
|
|
1144
1174
|
readOnly?: boolean;
|
|
1145
1175
|
readonly?: boolean | string;
|
|
@@ -1217,8 +1247,8 @@ export declare namespace JSXBase {
|
|
|
1217
1247
|
resource?: string;
|
|
1218
1248
|
typeof?: string;
|
|
1219
1249
|
vocab?: string;
|
|
1220
|
-
autoCapitalize?:
|
|
1221
|
-
autocapitalize?:
|
|
1250
|
+
autoCapitalize?: string;
|
|
1251
|
+
autocapitalize?: string;
|
|
1222
1252
|
autoCorrect?: string;
|
|
1223
1253
|
autocorrect?: string;
|
|
1224
1254
|
autoSave?: string;
|
|
@@ -1286,7 +1316,7 @@ export declare namespace JSXBase {
|
|
|
1286
1316
|
clipPathUnits?: number | string;
|
|
1287
1317
|
'clip-rule'?: number | string;
|
|
1288
1318
|
'color-interpolation'?: number | string;
|
|
1289
|
-
'color-interpolation-filters'?: 'auto' | '
|
|
1319
|
+
'color-interpolation-filters'?: 'auto' | 'sRGB' | 'linearRGB';
|
|
1290
1320
|
'color-profile'?: number | string;
|
|
1291
1321
|
'color-rendering'?: number | string;
|
|
1292
1322
|
contentScriptType?: number | string;
|
|
@@ -1509,12 +1539,12 @@ export declare namespace JSXBase {
|
|
|
1509
1539
|
onCutCapture?: (event: ClipboardEvent) => void;
|
|
1510
1540
|
onPaste?: (event: ClipboardEvent) => void;
|
|
1511
1541
|
onPasteCapture?: (event: ClipboardEvent) => void;
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1542
|
+
onCompositionend?: (event: CompositionEvent) => void;
|
|
1543
|
+
onCompositionendCapture?: (event: CompositionEvent) => void;
|
|
1544
|
+
onCompositionstart?: (event: CompositionEvent) => void;
|
|
1545
|
+
onCompositionstartCapture?: (event: CompositionEvent) => void;
|
|
1546
|
+
onCompositionupdate?: (event: CompositionEvent) => void;
|
|
1547
|
+
onCompositionupdateCapture?: (event: CompositionEvent) => void;
|
|
1518
1548
|
onFocus?: (event: FocusEvent) => void;
|
|
1519
1549
|
onFocusCapture?: (event: FocusEvent) => void;
|
|
1520
1550
|
onFocusin?: (event: FocusEvent) => void;
|
|
@@ -1525,8 +1555,8 @@ export declare namespace JSXBase {
|
|
|
1525
1555
|
onBlurCapture?: (event: FocusEvent) => void;
|
|
1526
1556
|
onChange?: (event: Event) => void;
|
|
1527
1557
|
onChangeCapture?: (event: Event) => void;
|
|
1528
|
-
onInput?: (event:
|
|
1529
|
-
onInputCapture?: (event:
|
|
1558
|
+
onInput?: (event: InputEvent) => void;
|
|
1559
|
+
onInputCapture?: (event: InputEvent) => void;
|
|
1530
1560
|
onReset?: (event: Event) => void;
|
|
1531
1561
|
onResetCapture?: (event: Event) => void;
|
|
1532
1562
|
onSubmit?: (event: Event) => void;
|
|
@@ -1616,8 +1646,14 @@ export declare namespace JSXBase {
|
|
|
1616
1646
|
onAnimationEndCapture?: (event: AnimationEvent) => void;
|
|
1617
1647
|
onAnimationIteration?: (event: AnimationEvent) => void;
|
|
1618
1648
|
onAnimationIterationCapture?: (event: AnimationEvent) => void;
|
|
1649
|
+
onTransitionCancel?: (event: TransitionEvent) => void;
|
|
1650
|
+
onTransitionCancelCapture?: (event: TransitionEvent) => void;
|
|
1619
1651
|
onTransitionEnd?: (event: TransitionEvent) => void;
|
|
1620
1652
|
onTransitionEndCapture?: (event: TransitionEvent) => void;
|
|
1653
|
+
onTransitionRun?: (event: TransitionEvent) => void;
|
|
1654
|
+
onTransitionRunCapture?: (event: TransitionEvent) => void;
|
|
1655
|
+
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1656
|
+
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1621
1657
|
}
|
|
1622
1658
|
}
|
|
1623
1659
|
export interface JSXAttributes<T = Element> {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
3
|
"description": "ArcGIS Common Components",
|
|
4
4
|
"homepage": "https://developers.arcgis.com/javascript/latest/",
|
|
5
|
-
"version": "4.29.0-beta.
|
|
5
|
+
"version": "4.29.0-beta.41",
|
|
6
6
|
"module": "dist/components/index.js",
|
|
7
7
|
"main": "dist/index.cjs.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"start:storybook": "storybook dev -c .storybook/internal --quiet",
|
|
35
35
|
"start:external-storybook": "kill-port 6019 && storybook dev -c .storybook/external -p 6019 --quiet",
|
|
36
36
|
"watch": "yarn build:dev --watch",
|
|
37
|
-
"build": "yarn build:components",
|
|
38
|
-
"build:dev": "yarn build:components:dev",
|
|
37
|
+
"build": "yarn pre && yarn build:components",
|
|
38
|
+
"build:dev": "yarn pre && yarn build:components:dev",
|
|
39
39
|
"build:storybook": "storybook build -c .storybook/internal --quiet",
|
|
40
40
|
"build:external-storybook": "storybook build -c .storybook/external -o storybook-static-external --quiet",
|
|
41
41
|
"build:components": "stencil build",
|
|
@@ -45,48 +45,46 @@
|
|
|
45
45
|
"test:e2e": "stencil test --e2e",
|
|
46
46
|
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
47
47
|
"clean": "rimraf ./node_modules ./storybook-static ./storybook-static-external ./turbo ./dist ./www",
|
|
48
|
-
"
|
|
49
|
-
"generate": "stencil generate"
|
|
50
|
-
"prettier": "prettier . --write"
|
|
48
|
+
"pre": "rimraf ./dist ./www && awc-build-t9n-types",
|
|
49
|
+
"generate": "stencil generate"
|
|
51
50
|
},
|
|
52
51
|
"dependencies": {
|
|
53
|
-
"@stencil/core": "
|
|
52
|
+
"@stencil/core": "4.7.1"
|
|
54
53
|
},
|
|
55
54
|
"devDependencies": {
|
|
56
|
-
"@arcgis/components-plugins": "4.29.0-beta.
|
|
55
|
+
"@arcgis/components-plugins": "4.29.0-beta.41",
|
|
56
|
+
"@arcgis/components-utils": "4.29.0-beta.41",
|
|
57
57
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
58
|
-
"@arcgis/core-adapter": "4.29.0-beta.
|
|
59
|
-
"@arcgis/
|
|
60
|
-
"@arcgis/map-components": "4.29.0-beta.4",
|
|
58
|
+
"@arcgis/core-adapter": "4.29.0-beta.41",
|
|
59
|
+
"@arcgis/map-components": "4.29.0-beta.41",
|
|
61
60
|
"@arcgis/typescript-config": "1.0.0",
|
|
62
|
-
"@esri/calcite-components": "^
|
|
61
|
+
"@esri/calcite-components": "^2.0.0",
|
|
63
62
|
"@stencil/angular-output-target": "0.8.1",
|
|
64
63
|
"@stencil/react-output-target": "0.5.3",
|
|
65
|
-
"@stencil/sass": "^
|
|
66
|
-
"@storybook/addon-a11y": "^7.
|
|
67
|
-
"@storybook/addon-essentials": "^7.
|
|
68
|
-
"@storybook/addon-links": "^7.
|
|
69
|
-
"@storybook/web-components": "^7.
|
|
70
|
-
"@storybook/web-components-vite": "^7.
|
|
64
|
+
"@stencil/sass": "^3.0.0",
|
|
65
|
+
"@storybook/addon-a11y": "^7.6.0",
|
|
66
|
+
"@storybook/addon-essentials": "^7.6.0",
|
|
67
|
+
"@storybook/addon-links": "^7.6.0",
|
|
68
|
+
"@storybook/web-components": "^7.6.0",
|
|
69
|
+
"@storybook/web-components-vite": "^7.6.0",
|
|
71
70
|
"@types/jest": "^29.5.0",
|
|
72
|
-
"eslint": "^8.
|
|
71
|
+
"eslint": "^8.55.0",
|
|
73
72
|
"jest": "^29.5.0",
|
|
74
73
|
"jest-cli": "^29.5.0",
|
|
75
74
|
"kill-port": "^2.0.1",
|
|
76
|
-
"lit": "^
|
|
77
|
-
"prettier": "^3.0.0",
|
|
75
|
+
"lit": "^3.1.0",
|
|
78
76
|
"puppeteer": "^20.5.0",
|
|
79
77
|
"react": "^18.2.0",
|
|
80
78
|
"react-dom": "^18.2.0",
|
|
81
79
|
"resolve-pkg": "^2.0.0",
|
|
82
80
|
"rimraf": "^5.0.0",
|
|
83
|
-
"storybook": "^7.
|
|
84
|
-
"typescript": "
|
|
85
|
-
"vite": "^
|
|
81
|
+
"storybook": "^7.6.0",
|
|
82
|
+
"typescript": "5.2.2",
|
|
83
|
+
"vite": "^5.0.0"
|
|
86
84
|
},
|
|
87
85
|
"peerDependencies": {
|
|
88
86
|
"@arcgis/core": ">=4.29.0-next <4.30",
|
|
89
|
-
"@esri/calcite-components": "
|
|
87
|
+
"@esri/calcite-components": "^2.0.0"
|
|
90
88
|
},
|
|
91
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "819fd350e56671fcbe459da3ffdbbd2074c98865"
|
|
92
90
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{r as s,c as a,g as t}from"./p-b0c98bba.js";import{i}from"./p-9625972e.js";const e=class{constructor(t){s(this,t),this.apiKeyReady=a(this,"apiKeyReady",7),this.apiKey=void 0}apiKeyWatcher(s){this._setApiKey(s)}async connectedCallback(){this.apiKey&&await this._setApiKey(this.apiKey)}async _setApiKey(s){(await i()).apiKey=s,this.apiKeyReady.emit(!0)}get el(){return t(this)}static get watchers(){return{apiKey:["apiKeyWatcher"]}}};e.style=":host{display:none}arcgis-api-key{display:none}";export{e as arcgis_api_key}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
let e=!1;function t(e){var t,n,s;return null!==(s=null===(n=null===(t=e.head)||void 0===t?void 0:t.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==s?s:void 0}const n=e=>S(e).t,s=(e,t,s)=>{const c=n(e);return{emit:e=>o(c,t,{bubbles:!!(4&s),composed:!!(2&s),cancelable:!!(1&s),detail:e})}},o=(e,t,n)=>{const s=N.ce(t,n);return e.dispatchEvent(s),s},c=new WeakMap,i=e=>"sc-"+e.o,r=(e,t)=>{t&&!e.i&&t["s-p"]&&t["s-p"].push(new Promise((t=>e.i=t)))},a=(e,t)=>{if(e.l|=16,!(4&e.l))return r(e,e.u),A((()=>l(e,t)));e.l|=512},l=(e,t)=>{const n=e.m;return h(void 0,(()=>u(e,n,t)))},u=async(e,n,s)=>{const o=e.t,r=o["s-rc"];s&&(e=>{const n=e.h;((e,n)=>{var s;let o=i(n);const r=O.get(o);if(e=11===e.nodeType?e:E,r)if("string"==typeof r){let n,i=c.get(e=e.head||e);if(i||c.set(e,i=new Set),!i.has(o)){{n=E.createElement("style"),n.innerHTML=r;const o=null!==(s=N.p)&&void 0!==s?s:t(E);null!=o&&n.setAttribute("nonce",o),e.insertBefore(n,e.querySelector("link"))}i&&i.add(o)}}else e.adoptedStyleSheets.includes(r)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,r])})(e.t.getRootNode(),n)})(e);f(e,n),r&&(r.map((e=>e())),o["s-rc"]=void 0);{const t=o["s-p"],n=()=>d(e);0===t.length?n():(Promise.all(t).then(n),e.l|=4,t.length=0)}},f=(e,t)=>{try{t=t.render&&t.render(),e.l&=-17,e.l|=2}catch(t){M(t,e.t)}return null},d=e=>{const t=e.t,n=e.u;64&e.l||(e.l|=64,p(t),e.$(t),n||m()),e.v(t),e.i&&(e.i(),e.i=void 0),512&e.l&&q((()=>a(e,!1))),e.l&=-517},m=()=>{p(E.documentElement),q((()=>o(P,"appload",{detail:{namespace:"arcgis-common-components"}})))},h=(e,t)=>e&&e.then?e.then(t):t(),p=e=>e.setAttribute("hydrated",""),y=(e,t,n)=>{if(t.S){e.watchers&&(t.g=e.watchers);const s=Object.entries(t.S),o=e.prototype;if(s.map((([e,[s]])=>{31&s||2&n&&32&s?Object.defineProperty(o,e,{get(){return((e,t)=>S(this).j.get(t))(0,e)},set(n){((e,t,n,s)=>{const o=S(e),c=o.t,i=o.j.get(t),r=o.l,l=o.m;if(n=((e,t)=>null==e||(e=>"object"==(e=typeof e)||"function"===e)(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e)(n,s.S[t][0]),(!(8&r)||void 0===i)&&n!==i&&(!Number.isNaN(i)||!Number.isNaN(n))&&(o.j.set(t,n),l)){if(s.g&&128&r){const e=s.g[t];e&&e.map((e=>{try{l[e](n,i,t)}catch(e){M(e,c)}}))}2==(18&r)&&a(o,!1)}})(this,e,n,t)},configurable:!0,enumerable:!0}):1&n&&64&s&&Object.defineProperty(o,e,{value(...t){const n=S(this);return n.M.then((()=>n.m[e](...t)))}})})),1&n){const t=new Map;o.attributeChangedCallback=function(e,n,s){N.jmp((()=>{const n=t.get(e);if(this.hasOwnProperty(n))s=this[n],delete this[n];else if(o.hasOwnProperty(n)&&"number"==typeof this[n]&&this[n]==s)return;this[n]=(null!==s||"boolean"!=typeof this[n])&&s}))},e.observedAttributes=s.filter((([e,t])=>15&t[0])).map((([e,n])=>{const s=n[1]||e;return t.set(s,e),s}))}}return e},b=e=>{((e,t)=>{if(e&&e[t])try{e[t](void 0)}catch(e){M(e)}})(e,"connectedCallback")},w=(e,n={})=>{var s;const o=[],c=n.exclude||[],l=P.customElements,u=E.head,f=u.querySelector("meta[charset]"),d=E.createElement("style"),h=[];let p,w=!0;Object.assign(N,n),N.k=new URL(n.resourcesUrl||"./",E.baseURI).href,e.map((e=>{e[1].map((t=>{const n={l:t[0],o:t[1],S:t[2],C:t[3]};n.S=t[2],n.g={};const s=n.o,u=class extends HTMLElement{constructor(e){super(e),j(e=this,n)}connectedCallback(){p&&(clearTimeout(p),p=null),w?h.push(this):N.jmp((()=>(e=>{if(0==(1&N.l)){const t=S(e),n=t.h,s=()=>{};if(1&t.l)b(t.m);else{t.l|=1;{let n=e;for(;n=n.parentNode||n.host;)if(n["s-p"]){r(t,t.u=n);break}}n.S&&Object.entries(n.S).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n,s,o)=>{if(0==(32&t.l)){{if(t.l|=32,(o=C(n)).then){const e=()=>{};o=await o,e()}o.isProxied||(n.g=o.watchers,y(o,n,2),o.isProxied=!0);const e=()=>{};t.l|=8;try{new o(t)}catch(e){M(e)}t.l&=-9,t.l|=128,e(),b(t.m)}if(o.style){let e=o.style;const t=i(n);if(!O.has(t)){const s=()=>{};((e,t,n)=>{let s=O.get(e);x&&n?(s=s||new CSSStyleSheet,"string"==typeof s?s=t:s.replaceSync(t)):s=t,O.set(e,s)})(t,e,!!(1&n.l)),s()}}}const c=t.u,r=()=>a(t,!0);c&&c["s-rc"]?c["s-rc"].push(r):r()})(0,t,n)}s()}})(this)))}disconnectedCallback(){N.jmp((()=>{}))}componentOnReady(){return S(this).O}};n.P=e[0],c.includes(s)||l.get(s)||(o.push(s),l.define(s,y(u,n,1)))}))}));{d.innerHTML=o+"{visibility:hidden}[hydrated]{visibility:inherit}",d.setAttribute("data-styles","");const e=null!==(s=N.p)&&void 0!==s?s:t(E);null!=e&&d.setAttribute("nonce",e),u.insertBefore(d,f?f.nextSibling:u.firstChild)}w=!1,h.length?h.map((e=>e.connectedCallback())):N.jmp((()=>p=setTimeout(m,30)))},$=e=>N.p=e,v=new WeakMap,S=e=>v.get(e),g=(e,t)=>v.set(t.m=e,t),j=(e,t)=>{const n={l:0,t:e,h:t,j:new Map};return n.M=new Promise((e=>n.v=e)),n.O=new Promise((e=>n.$=e)),e["s-p"]=[],e["s-rc"]=[],v.set(e,n)},M=(e,t)=>(0,console.error)(e,t),k=new Map,C=e=>{const t=e.o.replace(/-/g,"_"),n=e.P,s=k.get(n);return s?s[t]:import(`./${n}.entry.js`).then((e=>(k.set(n,e),e[t])),M)
|
|
2
|
-
/*!__STENCIL_STATIC_IMPORT_SWITCH__*/},O=new Map,P="undefined"!=typeof window?window:{},E=P.document||{head:{}},N={l:0,k:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,s)=>e.addEventListener(t,n,s),rel:(e,t,n,s)=>e.removeEventListener(t,n,s),ce:(e,t)=>new CustomEvent(e,t)},T=e=>Promise.resolve(e),x=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),F=[],L=[],R=(t,n)=>s=>{t.push(s),e||(e=!0,n&&4&N.l?q(W):N.raf(W))},U=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){M(e)}e.length=0},W=()=>{U(F),U(L),(e=F.length>0)&&N.raf(W)},q=e=>T().then(e),A=R(L,!0);export{w as b,s as c,n as g,T as p,g as r,$ as s}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __assign=this&&this.__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},__assign.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="@",VAR_USAGE_START=/\bvar\(/,VAR_ASSIGN_START=/\B--[\w-]+\s*:/,COMMENTS=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,TRAILING_LINES=/^[\t ]+\n/gm;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}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.slice(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,"\\.".concat(t),".".concat(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="".concat(s.scopeId,"-").concat(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);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/components/{arcgis-identity/arcgis-identity.d.ts → identity/identity.d.ts}
RENAMED
|
File without changes
|