@arcgis/lumina 4.31.0-next.97 → 4.31.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/LitElement.d.ts +20 -3
- package/dist/chunk-A4JIXA23.js +31 -0
- package/dist/chunk-A4JIXA23.js.map +1 -0
- package/dist/chunk-CTQVJVF7.js +39 -0
- package/dist/chunk-CTQVJVF7.js.map +1 -0
- package/dist/chunk-DEEVUK5Y.js +28 -0
- package/dist/chunk-DEEVUK5Y.js.map +1 -0
- package/dist/chunk-EVAF2JRB.js +16 -0
- package/dist/chunk-FOOMFQOW.js +31 -0
- package/dist/chunk-FOOMFQOW.js.map +1 -0
- package/dist/chunk-HHA4SRXI.js +28 -0
- package/dist/chunk-HHA4SRXI.js.map +1 -0
- package/dist/chunk-KAFHPLZ3.js +39 -0
- package/dist/chunk-KAFHPLZ3.js.map +1 -0
- package/dist/chunk-NENDOZLN.js +17 -0
- package/dist/chunk-NENDOZLN.js.map +1 -0
- package/dist/chunk-SWNWS2UY.js +28 -0
- package/dist/chunk-SWNWS2UY.js.map +1 -0
- package/dist/chunk-TITMTQYB.js +28 -0
- package/dist/chunk-TITMTQYB.js.map +1 -0
- package/dist/chunk-VDVC6NX7.js +38 -0
- package/dist/chunk-VDVC6NX7.js.map +1 -0
- package/dist/chunk-WASYSR3I.js +31 -0
- package/dist/chunk-WASYSR3I.js.map +1 -0
- package/dist/config.js.map +1 -0
- package/dist/devOnlyDetectIncorrectLazyUsages.d.ts +4 -1
- package/dist/index.js +92 -34
- package/dist/index.js.map +1 -0
- package/dist/jsx/jsx.d.ts +21 -23
- package/dist/lazyLoad.d.ts +1 -1
- package/dist/lazyLoadSpec.d.ts +0 -0
- package/dist/lifecycleSupport.d.ts +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/stencil-ssr-compatibility/index.js +1 -1
- package/dist/stencil-ssr-compatibility/index.js.map +1 -0
- package/dist/types.d.ts +1 -0
- package/dist/typings/jsxGlobals.ts +38 -0
- package/dist/wrapperUtils.d.ts +9 -0
- package/package.json +5 -24
package/dist/LitElement.d.ts
CHANGED
|
@@ -156,8 +156,17 @@ export declare class LitElement extends OriginalLitElement implements ComponentL
|
|
|
156
156
|
* }
|
|
157
157
|
* ```
|
|
158
158
|
*/
|
|
159
|
-
listen<K extends keyof HTMLElementEventMap>(
|
|
160
|
-
listen(
|
|
159
|
+
listen<K extends keyof HTMLElementEventMap>(name: K, listener: (this: this, event: HTMLElementEventMap[K]) => unknown, options?: AddEventListenerOptions | boolean): void;
|
|
160
|
+
listen(name: string, listener: (this: this, event: Event) => unknown, options?: AddEventListenerOptions | boolean): void;
|
|
161
|
+
listen<EventType extends Event = CustomEvent<"Provide type like this.listenOn<ToEvents<ArcgisCounter>['arcgisClick']>() to get type-checked payload type">>(name: string,
|
|
162
|
+
/**
|
|
163
|
+
* The "NoInfer" here forces type argument to be specified explicitly.
|
|
164
|
+
* Without it, the following would be allowed:
|
|
165
|
+
* ```tsx
|
|
166
|
+
* this.listen("focus",(event:NotFocusEvent)=>{....})
|
|
167
|
+
* ```
|
|
168
|
+
*/
|
|
169
|
+
listener: (this: this, event: NoInfer<EventType>) => unknown, options?: AddEventListenerOptions | boolean): void;
|
|
161
170
|
/**
|
|
162
171
|
* A helper for setting even listener on any element (or window / document).
|
|
163
172
|
*
|
|
@@ -195,7 +204,15 @@ export declare class LitElement extends OriginalLitElement implements ComponentL
|
|
|
195
204
|
listenOn<Name extends keyof HTMLElementEventMap>(target: HTMLElement, name: Name, listener: Listener<this, HTMLElementEventMap[Name] & {
|
|
196
205
|
currentTarget: HTMLElement;
|
|
197
206
|
}>, options?: AddEventListenerOptions | boolean): void;
|
|
198
|
-
listenOn<EventType extends Event = CustomEvent<"Provide type like this.listenOn<ToEvents<ArcgisCounter>['arcgisClick']>() to get type-checked payload type">, Target = EventTarget>(target: Target, name: string,
|
|
207
|
+
listenOn<EventType extends Event = CustomEvent<"Provide type like this.listenOn<ToEvents<ArcgisCounter>['arcgisClick']>() to get type-checked payload type">, Target = EventTarget>(target: Target, name: string,
|
|
208
|
+
/**
|
|
209
|
+
* The "NoInfer" here forces type argument to be specified explicitly.
|
|
210
|
+
* Without it, the following would be allowed:
|
|
211
|
+
* ```tsx
|
|
212
|
+
* this.listen("focus",(event:NotFocusEvent)=>{....})
|
|
213
|
+
* ```
|
|
214
|
+
*/
|
|
215
|
+
listener: Listener<this, NoInfer<EventType> & {
|
|
199
216
|
currentTarget: Target;
|
|
200
217
|
}>, options?: AddEventListenerOptions | boolean): void;
|
|
201
218
|
/**
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };
|
|
9
|
+
var propTypeFlags = {
|
|
10
|
+
state: 1 << 0,
|
|
11
|
+
reflect: 1 << 1,
|
|
12
|
+
number: 1 << 2,
|
|
13
|
+
boolean: 1 << 3
|
|
14
|
+
};
|
|
15
|
+
var flag = 43;
|
|
16
|
+
var stringFlag2 = flag.toString(2);
|
|
17
|
+
console.log(stringFlag2[propNumFlags.boolean] === "1");
|
|
18
|
+
console.log(flag & propTypeFlags.state);
|
|
19
|
+
console.log(flag & 1 /* state */);
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
lazyMetaGroupJoiner,
|
|
23
|
+
lazyMetaItemJoiner,
|
|
24
|
+
lazyMetaSubItemJoiner,
|
|
25
|
+
defaultEventBubbles,
|
|
26
|
+
defaultEventCancelable,
|
|
27
|
+
defaultEventComposed,
|
|
28
|
+
propNumFlags,
|
|
29
|
+
propTypeFlags
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-A4JIXA23.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\nexport const propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };\nexport const propTypeFlags = {\n state: 1 << 0,\n reflect: 1 << 1,\n number: 1 << 2,\n boolean: 1 << 3,\n};\n\n/*@__PURE__*/\nenum propTypeEnum {\n state = 1 << 0,\n reflect = 1 << 1,\n number = 1 << 2,\n boolean = 1 << 3,\n}\n\nconst flag = 43;\n\nconst stringFlag2 = flag.toString(2);\nconsole.log(stringFlag2[propNumFlags.boolean] === \"1\");\n\nconsole.log(flag & propTypeFlags.state);\nconsole.log(flag & propTypeEnum.state);\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAE7B,IAAM,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE;AACnE,IAAM,gBAAgB;AAAA,EAC3B,OAAO,KAAK;AAAA,EACZ,SAAS,KAAK;AAAA,EACd,QAAQ,KAAK;AAAA,EACb,SAAS,KAAK;AAChB;AAUA,IAAM,OAAO;AAEb,IAAM,cAAc,KAAK,SAAS,CAAC;AACnC,QAAQ,IAAI,YAAY,aAAa,OAAO,MAAM,GAAG;AAErD,QAAQ,IAAI,OAAO,cAAc,KAAK;AACtC,QAAQ,IAAI,OAAO,aAAkB;","names":[]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };
|
|
9
|
+
var propTypeFlags = {
|
|
10
|
+
state: 1 << 0,
|
|
11
|
+
reflect: 1 << 1,
|
|
12
|
+
number: 1 << 2,
|
|
13
|
+
boolean: 1 << 3
|
|
14
|
+
};
|
|
15
|
+
var propTypeEnum = /* @__PURE__ */ ((propTypeEnum2) => {
|
|
16
|
+
propTypeEnum2[propTypeEnum2["state"] = 1] = "state";
|
|
17
|
+
propTypeEnum2[propTypeEnum2["reflect"] = 2] = "reflect";
|
|
18
|
+
propTypeEnum2[propTypeEnum2["number"] = 4] = "number";
|
|
19
|
+
propTypeEnum2[propTypeEnum2["boolean"] = 8] = "boolean";
|
|
20
|
+
return propTypeEnum2;
|
|
21
|
+
})(propTypeEnum || {});
|
|
22
|
+
var flag = 43;
|
|
23
|
+
var stringFlag2 = flag.toString(2);
|
|
24
|
+
console.log(stringFlag2[propNumFlags.boolean] === "1");
|
|
25
|
+
console.log(flag & propTypeFlags.state);
|
|
26
|
+
console.log(flag & 1 /* state */);
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
lazyMetaGroupJoiner,
|
|
30
|
+
lazyMetaItemJoiner,
|
|
31
|
+
lazyMetaSubItemJoiner,
|
|
32
|
+
defaultEventBubbles,
|
|
33
|
+
defaultEventCancelable,
|
|
34
|
+
defaultEventComposed,
|
|
35
|
+
propNumFlags,
|
|
36
|
+
propTypeFlags,
|
|
37
|
+
propTypeEnum
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-CTQVJVF7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\nexport const propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };\nexport const propTypeFlags = {\n state: 1 << 0,\n reflect: 1 << 1,\n number: 1 << 2,\n boolean: 1 << 3,\n};\nexport enum propTypeEnum {\n state = 1 << 0,\n reflect = 1 << 1,\n number = 1 << 2,\n boolean = 1 << 3,\n}\n\nconst flag = 43;\n\nconst stringFlag2 = flag.toString(2);\nconsole.log(stringFlag2[propNumFlags.boolean] === \"1\");\n\nconsole.log(flag & propTypeFlags.state);\nconsole.log(flag & propTypeEnum.state);\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAE7B,IAAM,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE;AACnE,IAAM,gBAAgB;AAAA,EAC3B,OAAO,KAAK;AAAA,EACZ,SAAS,KAAK;AAAA,EACd,QAAQ,KAAK;AAAA,EACb,SAAS,KAAK;AAChB;AACO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,4BAAA,WAAQ,KAAR;AACA,EAAAA,4BAAA,aAAU,KAAV;AACA,EAAAA,4BAAA,YAAS,KAAT;AACA,EAAAA,4BAAA,aAAU,KAAV;AAJU,SAAAA;AAAA,GAAA;AAOZ,IAAM,OAAO;AAEb,IAAM,cAAc,KAAK,SAAS,CAAC;AACnC,QAAQ,IAAI,YAAY,aAAa,OAAO,MAAM,GAAG;AAErD,QAAQ,IAAI,OAAO,cAAc,KAAK;AACtC,QAAQ,IAAI,OAAO,aAAkB;","names":["propTypeEnum"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var PropertyFlags = /* @__PURE__ */ ((PropertyFlags2) => {
|
|
9
|
+
PropertyFlags2[PropertyFlags2["ATTRIBUTE"] = 1] = "ATTRIBUTE";
|
|
10
|
+
PropertyFlags2[PropertyFlags2["REFLECT"] = 2] = "REFLECT";
|
|
11
|
+
PropertyFlags2[PropertyFlags2["BOOLEAN"] = 4] = "BOOLEAN";
|
|
12
|
+
PropertyFlags2[PropertyFlags2["NUMBER"] = 8] = "NUMBER";
|
|
13
|
+
PropertyFlags2[PropertyFlags2["STATE"] = 16] = "STATE";
|
|
14
|
+
PropertyFlags2[PropertyFlags2["READ_ONLY"] = 32] = "READ_ONLY";
|
|
15
|
+
PropertyFlags2[PropertyFlags2["NO_ACCESSOR"] = 64] = "NO_ACCESSOR";
|
|
16
|
+
return PropertyFlags2;
|
|
17
|
+
})(PropertyFlags || {});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
lazyMetaGroupJoiner,
|
|
21
|
+
lazyMetaItemJoiner,
|
|
22
|
+
lazyMetaSubItemJoiner,
|
|
23
|
+
defaultEventBubbles,
|
|
24
|
+
defaultEventCancelable,
|
|
25
|
+
defaultEventComposed,
|
|
26
|
+
PropertyFlags
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-DEEVUK5Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\n/* eslint-disable @typescript-eslint/no-magic-numbers */\n/**\n * By default in Lit, the `@property()` decorator accepts an object. However, to\n * keep the bundle size smaller, in production builds, instead of passing it an\n * object, we pass it a compact number, that gets converted back to an object\n * in createProperty() at runtime.\n */\nexport enum PropertyFlags {\n // Ordered based on frequency of usage to keep flags as short as possible\n ATTRIBUTE = 1 << 0,\n REFLECT = 1 << 1,\n BOOLEAN = 1 << 2,\n NUMBER = 1 << 3,\n STATE = 1 << 4,\n READ_ONLY = 1 << 5,\n // Inverted so that the more common case is \"false\"\n NO_ACCESSOR = 1 << 6,\n}\n/* eslint-enable @typescript-eslint/no-magic-numbers */\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAS7B,IAAK,gBAAL,kBAAKA,mBAAL;AAEL,EAAAA,8BAAA,eAAY,KAAZ;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,YAAS,KAAT;AACA,EAAAA,8BAAA,WAAQ,MAAR;AACA,EAAAA,8BAAA,eAAY,MAAZ;AAEA,EAAAA,8BAAA,iBAAc,MAAd;AATU,SAAAA;AAAA,GAAA;","names":["PropertyFlags"]}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
lazyMetaGroupJoiner,
|
|
11
|
+
lazyMetaItemJoiner,
|
|
12
|
+
lazyMetaSubItemJoiner,
|
|
13
|
+
defaultEventBubbles,
|
|
14
|
+
defaultEventCancelable,
|
|
15
|
+
defaultEventComposed
|
|
16
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };
|
|
9
|
+
var propTypeFlags = Object.freeze({
|
|
10
|
+
state: 1 << 0,
|
|
11
|
+
reflect: 1 << 1,
|
|
12
|
+
number: 1 << 2,
|
|
13
|
+
boolean: 1 << 3
|
|
14
|
+
});
|
|
15
|
+
var flag = 43;
|
|
16
|
+
var stringFlag2 = flag.toString(2);
|
|
17
|
+
console.log(stringFlag2[propNumFlags.boolean] === "1");
|
|
18
|
+
console.log(flag & propTypeFlags.state);
|
|
19
|
+
console.log(flag & propTypeFlags.state);
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
lazyMetaGroupJoiner,
|
|
23
|
+
lazyMetaItemJoiner,
|
|
24
|
+
lazyMetaSubItemJoiner,
|
|
25
|
+
defaultEventBubbles,
|
|
26
|
+
defaultEventCancelable,
|
|
27
|
+
defaultEventComposed,
|
|
28
|
+
propNumFlags,
|
|
29
|
+
propTypeFlags
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-FOOMFQOW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\nexport const propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };\nexport const propTypeFlags = Object.freeze({\n state: 1 << 0,\n reflect: 1 << 1,\n number: 1 << 2,\n boolean: 1 << 3,\n});\n\nconst flag = 43;\n\nconst stringFlag2 = flag.toString(2);\nconsole.log(stringFlag2[propNumFlags.boolean] === \"1\");\n\nconsole.log(flag & propTypeFlags.state);\nconsole.log(flag & propTypeFlags.state);\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAE7B,IAAM,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE;AACnE,IAAM,gBAAgB,OAAO,OAAO;AAAA,EACzC,OAAO,KAAK;AAAA,EACZ,SAAS,KAAK;AAAA,EACd,QAAQ,KAAK;AAAA,EACb,SAAS,KAAK;AAChB,CAAC;AAED,IAAM,OAAO;AAEb,IAAM,cAAc,KAAK,SAAS,CAAC;AACnC,QAAQ,IAAI,YAAY,aAAa,OAAO,MAAM,GAAG;AAErD,QAAQ,IAAI,OAAO,cAAc,KAAK;AACtC,QAAQ,IAAI,OAAO,cAAc,KAAK;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var PropertyFlags = /* @__PURE__ */ ((PropertyFlags2) => {
|
|
9
|
+
PropertyFlags2[PropertyFlags2["ATTRIBUTE"] = 1] = "ATTRIBUTE";
|
|
10
|
+
PropertyFlags2[PropertyFlags2["REFLECT"] = 2] = "REFLECT";
|
|
11
|
+
PropertyFlags2[PropertyFlags2["BOOLEAN"] = 4] = "BOOLEAN";
|
|
12
|
+
PropertyFlags2[PropertyFlags2["NUMBER"] = 8] = "NUMBER";
|
|
13
|
+
PropertyFlags2[PropertyFlags2["STATE"] = 16] = "STATE";
|
|
14
|
+
PropertyFlags2[PropertyFlags2["READ_ONLY"] = 32] = "READ_ONLY";
|
|
15
|
+
PropertyFlags2[PropertyFlags2["NO_ACCESSOR"] = 64] = "NO_ACCESSOR";
|
|
16
|
+
return PropertyFlags2;
|
|
17
|
+
})(PropertyFlags || {});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
lazyMetaGroupJoiner,
|
|
21
|
+
lazyMetaItemJoiner,
|
|
22
|
+
lazyMetaSubItemJoiner,
|
|
23
|
+
defaultEventBubbles,
|
|
24
|
+
defaultEventCancelable,
|
|
25
|
+
defaultEventComposed,
|
|
26
|
+
PropertyFlags
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-HHA4SRXI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\n/* eslint-disable @typescript-eslint/no-magic-numbers */\n/* eslint-disable @typescript-eslint/prefer-literal-enum-member */\n/**\n * By default in Lit, the `@property()` decorator accepts an object. However, to\n * keep the bundle size smaller, in production builds, instead of passing it an\n * object, we pass it a compact number, that gets converted back to an object\n * in createProperty() at runtime.\n */\nexport enum PropertyFlags {\n // Ordered based on frequency of usage to keep flags as short as possible\n ATTRIBUTE = 1 << 0,\n REFLECT = 1 << 1,\n BOOLEAN = 1 << 2,\n NUMBER = 1 << 3,\n STATE = 1 << 4,\n READ_ONLY = 1 << 5,\n // Inverted so that the more common case is \"false\"\n NO_ACCESSOR = 1 << 6,\n}\n/* eslint-enable @typescript-eslint/no-magic-numbers */\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAU7B,IAAK,gBAAL,kBAAKA,mBAAL;AAEL,EAAAA,8BAAA,eAAY,KAAZ;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,YAAS,KAAT;AACA,EAAAA,8BAAA,WAAQ,MAAR;AACA,EAAAA,8BAAA,eAAY,MAAZ;AAEA,EAAAA,8BAAA,iBAAc,MAAd;AATU,SAAAA;AAAA,GAAA;","names":["PropertyFlags"]}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };
|
|
9
|
+
var propTypeFlags = {
|
|
10
|
+
state: 1 << 0,
|
|
11
|
+
reflect: 1 << 1,
|
|
12
|
+
number: 1 << 2,
|
|
13
|
+
boolean: 1 << 3
|
|
14
|
+
};
|
|
15
|
+
var propTypeEnum = /* @__PURE__ */ ((propTypeEnum2) => {
|
|
16
|
+
propTypeEnum2[propTypeEnum2["state"] = 1] = "state";
|
|
17
|
+
propTypeEnum2[propTypeEnum2["reflect"] = 2] = "reflect";
|
|
18
|
+
propTypeEnum2[propTypeEnum2["number"] = 4] = "number";
|
|
19
|
+
propTypeEnum2[propTypeEnum2["boolean"] = 8] = "boolean";
|
|
20
|
+
return propTypeEnum2;
|
|
21
|
+
})(propTypeEnum || {});
|
|
22
|
+
var flag = 43;
|
|
23
|
+
var stringFlag2 = flag.toString(2);
|
|
24
|
+
console.log(stringFlag2[propNumFlags.boolean] === "1");
|
|
25
|
+
console.log(flag & propTypeFlags.state);
|
|
26
|
+
console.log(flag & 1 /* state */);
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
lazyMetaGroupJoiner,
|
|
30
|
+
lazyMetaItemJoiner,
|
|
31
|
+
lazyMetaSubItemJoiner,
|
|
32
|
+
defaultEventBubbles,
|
|
33
|
+
defaultEventCancelable,
|
|
34
|
+
defaultEventComposed,
|
|
35
|
+
propNumFlags,
|
|
36
|
+
propTypeFlags,
|
|
37
|
+
propTypeEnum
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=chunk-KAFHPLZ3.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\nexport const propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };\nexport const propTypeFlags = {\n state: 1 << 0,\n reflect: 1 << 1,\n number: 1 << 2,\n boolean: 1 << 3,\n};\n\n/*@__PURE__*/\nexport enum propTypeEnum {\n state = 1 << 0,\n reflect = 1 << 1,\n number = 1 << 2,\n boolean = 1 << 3,\n}\n\nconst flag = 43;\n\nconst stringFlag2 = flag.toString(2);\nconsole.log(stringFlag2[propNumFlags.boolean] === \"1\");\n\nconsole.log(flag & propTypeFlags.state);\nconsole.log(flag & propTypeEnum.state);\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAE7B,IAAM,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE;AACnE,IAAM,gBAAgB;AAAA,EAC3B,OAAO,KAAK;AAAA,EACZ,SAAS,KAAK;AAAA,EACd,QAAQ,KAAK;AAAA,EACb,SAAS,KAAK;AAChB;AAGO,IAAK,eAAL,kBAAKA,kBAAL;AACL,EAAAA,4BAAA,WAAQ,KAAR;AACA,EAAAA,4BAAA,aAAU,KAAV;AACA,EAAAA,4BAAA,YAAS,KAAT;AACA,EAAAA,4BAAA,aAAU,KAAV;AAJU,SAAAA;AAAA,GAAA;AAOZ,IAAM,OAAO;AAEb,IAAM,cAAc,KAAK,SAAS,CAAC;AACnC,QAAQ,IAAI,YAAY,aAAa,OAAO,MAAM,GAAG;AAErD,QAAQ,IAAI,OAAO,cAAc,KAAK;AACtC,QAAQ,IAAI,OAAO,aAAkB;","names":["propTypeEnum"]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
lazyMetaGroupJoiner,
|
|
11
|
+
lazyMetaItemJoiner,
|
|
12
|
+
lazyMetaSubItemJoiner,
|
|
13
|
+
defaultEventBubbles,
|
|
14
|
+
defaultEventCancelable,
|
|
15
|
+
defaultEventComposed
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=chunk-NENDOZLN.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;","names":[]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var PropertyFlags = /* @__PURE__ */ ((PropertyFlags2) => {
|
|
9
|
+
PropertyFlags2[PropertyFlags2["STATE"] = 1] = "STATE";
|
|
10
|
+
PropertyFlags2[PropertyFlags2["REFLECT"] = 2] = "REFLECT";
|
|
11
|
+
PropertyFlags2[PropertyFlags2["NUMBER"] = 4] = "NUMBER";
|
|
12
|
+
PropertyFlags2[PropertyFlags2["BOOLEAN"] = 8] = "BOOLEAN";
|
|
13
|
+
PropertyFlags2[PropertyFlags2["ATTRIBUTE"] = 16] = "ATTRIBUTE";
|
|
14
|
+
PropertyFlags2[PropertyFlags2["NO_ACCESSOR"] = 32] = "NO_ACCESSOR";
|
|
15
|
+
PropertyFlags2[PropertyFlags2["READ_ONLY"] = 64] = "READ_ONLY";
|
|
16
|
+
return PropertyFlags2;
|
|
17
|
+
})(PropertyFlags || {});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
lazyMetaGroupJoiner,
|
|
21
|
+
lazyMetaItemJoiner,
|
|
22
|
+
lazyMetaSubItemJoiner,
|
|
23
|
+
defaultEventBubbles,
|
|
24
|
+
defaultEventCancelable,
|
|
25
|
+
defaultEventComposed,
|
|
26
|
+
PropertyFlags
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-SWNWS2UY.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\n/**\n * By default in Lit, the `@property()` decorator accepts an object. However, to\n * keep the bundle size smaller, in production builds, instead of passing it an\n * object, we pass it a compact number, that gets converted back to an object\n * in createProperty() at runtime.\n */\nexport enum PropertyFlags {\n STATE = 1 << 0,\n REFLECT = 1 << 1,\n NUMBER = 1 << 2,\n BOOLEAN = 1 << 3,\n ATTRIBUTE = 1 << 4,\n NO_ACCESSOR = 1 << 5,\n READ_ONLY = 1 << 6,\n}\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAQ7B,IAAK,gBAAL,kBAAKA,mBAAL;AACL,EAAAA,8BAAA,WAAQ,KAAR;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,YAAS,KAAT;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,eAAY,MAAZ;AACA,EAAAA,8BAAA,iBAAc,MAAd;AACA,EAAAA,8BAAA,eAAY,MAAZ;AAPU,SAAAA;AAAA,GAAA;","names":["PropertyFlags"]}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var PropertyFlags = /* @__PURE__ */ ((PropertyFlags2) => {
|
|
9
|
+
PropertyFlags2[PropertyFlags2["ATTRIBUTE"] = 1] = "ATTRIBUTE";
|
|
10
|
+
PropertyFlags2[PropertyFlags2["REFLECT"] = 2] = "REFLECT";
|
|
11
|
+
PropertyFlags2[PropertyFlags2["BOOLEAN"] = 4] = "BOOLEAN";
|
|
12
|
+
PropertyFlags2[PropertyFlags2["NUMBER"] = 8] = "NUMBER";
|
|
13
|
+
PropertyFlags2[PropertyFlags2["STATE"] = 16] = "STATE";
|
|
14
|
+
PropertyFlags2[PropertyFlags2["READ_ONLY"] = 32] = "READ_ONLY";
|
|
15
|
+
PropertyFlags2[PropertyFlags2["NO_ACCESSOR"] = 64] = "NO_ACCESSOR";
|
|
16
|
+
return PropertyFlags2;
|
|
17
|
+
})(PropertyFlags || {});
|
|
18
|
+
|
|
19
|
+
export {
|
|
20
|
+
lazyMetaGroupJoiner,
|
|
21
|
+
lazyMetaItemJoiner,
|
|
22
|
+
lazyMetaSubItemJoiner,
|
|
23
|
+
defaultEventBubbles,
|
|
24
|
+
defaultEventCancelable,
|
|
25
|
+
defaultEventComposed,
|
|
26
|
+
PropertyFlags
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=chunk-TITMTQYB.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lumina` and\n * `@arcgis/lumina-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\n/* eslint-disable @typescript-eslint/no-magic-numbers */\n/**\n * By default in Lit, the `@property()` decorator accepts an object. However, to\n * keep the bundle size smaller, in production builds, instead of passing it an\n * object, we pass it a compact number, that gets converted back to an object\n * in createProperty() at runtime.\n */\nexport enum PropertyFlags {\n // Ordered based on frequency of usage to keep flags as short as possible\n ATTRIBUTE = 1 << 0,\n REFLECT = 1 << 1,\n BOOLEAN = 1 << 2,\n NUMBER = 1 << 3,\n STATE = 1 << 4,\n READ_ONLY = 1 << 5,\n // Inverted so that the more common case is \"false\"\n NO_ACCESSOR = 1 << 6,\n}\n/* eslint-enable @typescript-eslint/no-magic-numbers */\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAS7B,IAAK,gBAAL,kBAAKA,mBAAL;AAEL,EAAAA,8BAAA,eAAY,KAAZ;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,aAAU,KAAV;AACA,EAAAA,8BAAA,YAAS,KAAT;AACA,EAAAA,8BAAA,WAAQ,MAAR;AACA,EAAAA,8BAAA,eAAY,MAAZ;AAEA,EAAAA,8BAAA,iBAAc,MAAd;AATU,SAAAA;AAAA,GAAA;","names":["PropertyFlags"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var propFlags = ["state", "reflect", "number", "boolean"];
|
|
9
|
+
var propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };
|
|
10
|
+
var propTypeFlags = {
|
|
11
|
+
state: 1 << 0,
|
|
12
|
+
reflect: 1 << 1,
|
|
13
|
+
number: 1 << 2,
|
|
14
|
+
boolean: 1 << 3
|
|
15
|
+
};
|
|
16
|
+
var flag = 43;
|
|
17
|
+
var stringFlag = flag.toString(2);
|
|
18
|
+
console.log(
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with
|
|
20
|
+
stringFlag[propFlags.indexOf("state")] === "1"
|
|
21
|
+
);
|
|
22
|
+
var stringFlag2 = flag.toString(2);
|
|
23
|
+
console.log(stringFlag2[propNumFlags.boolean] === "1");
|
|
24
|
+
console.log(flag & propTypeFlags.state);
|
|
25
|
+
console.log(flag & propTypeFlags.state);
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
lazyMetaGroupJoiner,
|
|
29
|
+
lazyMetaItemJoiner,
|
|
30
|
+
lazyMetaSubItemJoiner,
|
|
31
|
+
defaultEventBubbles,
|
|
32
|
+
defaultEventCancelable,
|
|
33
|
+
defaultEventComposed,
|
|
34
|
+
propFlags,
|
|
35
|
+
propNumFlags,
|
|
36
|
+
propTypeFlags
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-VDVC6NX7.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\nexport const propFlags = [\"state\", \"reflect\", \"number\", \"boolean\"];\nexport const propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };\nexport const propTypeFlags = {\n state: 1 << 0,\n reflect: 1 << 1,\n number: 1 << 2,\n boolean: 1 << 3,\n};\n\nconst flag = 43;\n\nconst stringFlag = flag.toString(2);\nconsole.log(\n // eslint-disable-next-line @typescript-eslint/prefer-string-starts-ends-with\n stringFlag[propFlags.indexOf(\"state\")] === \"1\",\n);\n\nconst stringFlag2 = flag.toString(2);\nconsole.log(stringFlag2[propNumFlags.boolean] === \"1\");\n\nconsole.log(flag & propTypeFlags.state);\nconsole.log(flag & propTypeFlags.state);\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAE7B,IAAM,YAAY,CAAC,SAAS,WAAW,UAAU,SAAS;AAC1D,IAAM,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE;AACnE,IAAM,gBAAgB;AAAA,EAC3B,OAAO,KAAK;AAAA,EACZ,SAAS,KAAK;AAAA,EACd,QAAQ,KAAK;AAAA,EACb,SAAS,KAAK;AAChB;AAEA,IAAM,OAAO;AAEb,IAAM,aAAa,KAAK,SAAS,CAAC;AAClC,QAAQ;AAAA;AAAA,EAEN,WAAW,UAAU,QAAQ,OAAO,CAAC,MAAM;AAC7C;AAEA,IAAM,cAAc,KAAK,SAAS,CAAC;AACnC,QAAQ,IAAI,YAAY,aAAa,OAAO,MAAM,GAAG;AAErD,QAAQ,IAAI,OAAO,cAAc,KAAK;AACtC,QAAQ,IAAI,OAAO,cAAc,KAAK;","names":[]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/config.ts
|
|
2
|
+
var lazyMetaGroupJoiner = ";";
|
|
3
|
+
var lazyMetaItemJoiner = ",";
|
|
4
|
+
var lazyMetaSubItemJoiner = ":";
|
|
5
|
+
var defaultEventBubbles = true;
|
|
6
|
+
var defaultEventCancelable = true;
|
|
7
|
+
var defaultEventComposed = true;
|
|
8
|
+
var propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };
|
|
9
|
+
var propTypeFlags = {
|
|
10
|
+
state: 1 << 0,
|
|
11
|
+
reflect: 1 << 1,
|
|
12
|
+
number: 1 << 2,
|
|
13
|
+
boolean: 1 << 3
|
|
14
|
+
};
|
|
15
|
+
var flag = 43;
|
|
16
|
+
var stringFlag2 = flag.toString(2);
|
|
17
|
+
console.log(stringFlag2[propNumFlags.boolean] === "1");
|
|
18
|
+
console.log(flag & propTypeFlags.state);
|
|
19
|
+
console.log(flag & 1 /* state */);
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
lazyMetaGroupJoiner,
|
|
23
|
+
lazyMetaItemJoiner,
|
|
24
|
+
lazyMetaSubItemJoiner,
|
|
25
|
+
defaultEventBubbles,
|
|
26
|
+
defaultEventCancelable,
|
|
27
|
+
defaultEventComposed,
|
|
28
|
+
propNumFlags,
|
|
29
|
+
propTypeFlags
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=chunk-WASYSR3I.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration options that are shared between `@arcgis/lit` and\n * `@arcgis/lit-compiler`. To avoid the need of loading DOM modules in Node.js,\n * this file is extracted into a separate entrypoint.\n */\n\nexport const lazyMetaGroupJoiner = \";\";\nexport const lazyMetaItemJoiner = \",\";\nexport const lazyMetaSubItemJoiner = \":\";\n\n/**\n * While these defaults don't match DOM defaults (all false), they match\n * Stencil and Shoelace defaults. Also, they make more sense for our\n * usage (i.e why would you want events to not be cancelable by default?)\n */\nexport const defaultEventBubbles = true;\nexport const defaultEventCancelable = true;\nexport const defaultEventComposed = true;\n\nexport const propNumFlags = { state: 0, reflect: 1, number: 2, boolean: 3 };\nexport const propTypeFlags = {\n state: 1 << 0,\n reflect: 1 << 1,\n number: 1 << 2,\n boolean: 1 << 3,\n};\n\nenum propTypeEnum {\n state = 1 << 0,\n reflect = 1 << 1,\n number = 1 << 2,\n boolean = 1 << 3,\n}\n\nconst flag = 43;\n\nconst stringFlag2 = flag.toString(2);\nconsole.log(stringFlag2[propNumFlags.boolean] === \"1\");\n\nconsole.log(flag & propTypeFlags.state);\nconsole.log(flag & propTypeEnum.state);\n"],"mappings":";AAMO,IAAM,sBAAsB;AAC5B,IAAM,qBAAqB;AAC3B,IAAM,wBAAwB;AAO9B,IAAM,sBAAsB;AAC5B,IAAM,yBAAyB;AAC/B,IAAM,uBAAuB;AAE7B,IAAM,eAAe,EAAE,OAAO,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,EAAE;AACnE,IAAM,gBAAgB;AAAA,EAC3B,OAAO,KAAK;AAAA,EACZ,SAAS,KAAK;AAAA,EACd,QAAQ,KAAK;AAAA,EACb,SAAS,KAAK;AAChB;AASA,IAAM,OAAO;AAEb,IAAM,cAAc,KAAK,SAAS,CAAC;AACnC,QAAQ,IAAI,YAAY,aAAa,OAAO,MAAM,GAAG;AAErD,QAAQ,IAAI,OAAO,cAAc,KAAK;AACtC,QAAQ,IAAI,OAAO,aAAkB;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -4,7 +4,10 @@ import type { LitElement } from "./LitElement";
|
|
|
4
4
|
* Instead, a proxy element is present and should be used for all DOM actions.
|
|
5
5
|
*
|
|
6
6
|
* In practice, this means using this.el.getAttribute() instead of
|
|
7
|
-
* this.getAttribute() and etc for each DOM method
|
|
7
|
+
* this.getAttribute() and etc for each DOM method.
|
|
8
|
+
*
|
|
9
|
+
* To detect incorrect usages, this function overwrites each DOM member on the
|
|
10
|
+
* LitElement prototype with an exception-throwing function.
|
|
8
11
|
*
|
|
9
12
|
* This code does not ship in production builds.
|
|
10
13
|
*/
|