@genesislcap/foundation-utils 15.6.2 → 15.7.0-ts7.1
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/custom-elements.json +53 -53
- package/dist/dts/data/inMemoryDatabase.d.ts.map +1 -1
- package/dist/dts/encoding/base64/decode.d.ts.map +1 -1
- package/dist/dts/encoding/base64/encode.d.ts.map +1 -1
- package/dist/dts/error/errorMap.d.ts.map +1 -1
- package/dist/dts/feature-flags/featureFlags.d.ts.map +1 -1
- package/dist/dts/formatters/datetime.d.ts.map +1 -1
- package/dist/dts/formatters/localeNumberParser.d.ts.map +1 -1
- package/dist/dts/formatters/number.d.ts.map +1 -1
- package/dist/dts/inactivity/inactivity-dialog.d.ts.map +1 -1
- package/dist/dts/inactivity/inactivity-manager.d.ts.map +1 -1
- package/dist/dts/inactivity/inactivity-service.d.ts.map +1 -1
- package/dist/dts/mappers/dto/serverRow.d.ts.map +1 -1
- package/dist/dts/mappers/genesis-json-schema/types.d.ts +1 -1
- package/dist/dts/mappers/genesis-json-schema/types.d.ts.map +1 -1
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts +27 -433
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/dts/mixins/pendingState/pendingState.d.ts +164 -159
- package/dist/dts/mixins/pendingState/pendingState.d.ts.map +1 -1
- package/dist/dts/observer/observer.d.ts.map +1 -1
- package/dist/dts/promise/resolveAfter.d.ts.map +1 -1
- package/dist/dts/resource/types.d.ts +2 -2
- package/dist/dts/resource/types.d.ts.map +1 -1
- package/dist/dts/route/route.d.ts.map +1 -1
- package/dist/dts/serializers/json/json.d.ts.map +1 -1
- package/dist/dts/serializers/json/types.d.ts.map +1 -1
- package/dist/dts/shortcut-manager/shortcut-listener.d.ts.map +1 -1
- package/dist/dts/shortcut-manager/shortcut-manager.d.ts.map +1 -1
- package/dist/dts/styles/slotted-styles.d.ts.map +1 -1
- package/dist/dts/styles/typography.d.ts.map +1 -1
- package/dist/dts/utils/deepMerge.d.ts.map +1 -1
- package/dist/dts/utils/delay.d.ts.map +1 -1
- package/dist/dts/utils/dom.d.ts.map +1 -1
- package/dist/dts/utils/noop.d.ts.map +1 -1
- package/dist/dts/utils/os-platform.d.ts.map +1 -1
- package/dist/dts/window/window.d.ts.map +1 -1
- package/dist/esm/mappers/dto/serverRow.js +12 -18
- package/dist/esm/mappers/genesis-json-schema/index.js +5 -4
- package/dist/esm/mixins/lifecycle/lifecycle.js +4 -1
- package/dist/esm/shortcut-manager/shortcut-listener.js +6 -4
- package/dist/esm/shortcut-manager/shortcut-manager.js +4 -7
- package/dist/foundation-utils.api.json +920 -4086
- package/dist/foundation-utils.d.ts +404 -805
- package/package.json +11 -11
|
@@ -136,8 +136,6 @@ export declare type ConstructableLifecycleHandler = Constructable<FASTElement &
|
|
|
136
136
|
*/
|
|
137
137
|
export declare type ConstructablePendingState = Constructable<FASTElement & HTMLElement>;
|
|
138
138
|
|
|
139
|
-
declare type Container = FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
140
|
-
|
|
141
139
|
/**
|
|
142
140
|
* Represents the possible types of value conversion for data synchronization.
|
|
143
141
|
* @public
|
|
@@ -673,7 +671,7 @@ export declare class FoundationShortcutListener extends FASTElement {
|
|
|
673
671
|
|
|
674
672
|
/** @public */
|
|
675
673
|
export declare namespace Genesis {
|
|
676
|
-
const genesisFieldTypes: readonly [
|
|
674
|
+
const genesisFieldTypes: readonly ['STRING', 'ENUM', 'INT', 'SHORT', 'DOUBLE', 'LONG', 'BOOLEAN', 'BIGDECIMAL', 'DATE', 'DATETIME', 'RAW', 'NANO_TIMESTAMP'];
|
|
677
675
|
export type GenesisFieldTypes = (typeof genesisFieldTypes)[number];
|
|
678
676
|
export type JSONSchema7 = JSONSchema7 & {
|
|
679
677
|
properties?: {
|
|
@@ -1019,6 +1017,29 @@ export declare type LayoutCacheContainer = {
|
|
|
1019
1017
|
*/
|
|
1020
1018
|
export declare const layoutCacheDocument: unique symbol;
|
|
1021
1019
|
|
|
1020
|
+
/**
|
|
1021
|
+
* @beta
|
|
1022
|
+
* Instance members added by {@link LifecycleMixin}.
|
|
1023
|
+
*/
|
|
1024
|
+
export declare interface LifecycleElement {
|
|
1025
|
+
/**
|
|
1026
|
+
* @beta
|
|
1027
|
+
* boolean controlling whether to run all connectedCallback lifecycle functionality
|
|
1028
|
+
*/
|
|
1029
|
+
readonly shouldRunConnect: boolean;
|
|
1030
|
+
/**
|
|
1031
|
+
* @beta
|
|
1032
|
+
* boolean controlling whether to run all disconnectedCallback lifecycle functionality
|
|
1033
|
+
*/
|
|
1034
|
+
readonly shouldRunDisconnect: boolean;
|
|
1035
|
+
/**
|
|
1036
|
+
* @beta
|
|
1037
|
+
* Copy-constructor style clone used by `cloneNode`. Non-trivial elements may
|
|
1038
|
+
* override this, call `super.deepClone()`, and copy extra state over.
|
|
1039
|
+
*/
|
|
1040
|
+
deepClone(): Node;
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1022
1043
|
/**
|
|
1023
1044
|
* @beta
|
|
1024
1045
|
* Mixin class to expose `shouldRunConnect` and `shouldRunDisconnect`
|
|
@@ -1027,244 +1048,259 @@ export declare const layoutCacheDocument: unique symbol;
|
|
|
1027
1048
|
* are part of a custom layout. The class itself handles all events
|
|
1028
1049
|
* @privateRemarks
|
|
1029
1050
|
* #_ syntax is used for a javascript private method/variable
|
|
1030
|
-
* we can't use private/protected from typescript in an anonymous class like this
|
|
1051
|
+
* we can't use private/protected from typescript in an anonymous class like this.
|
|
1052
|
+
* The return type is annotated explicitly ({@link LifecycleElement}) because
|
|
1053
|
+
* declaration emit cannot serialize anonymous class types containing ES #private
|
|
1054
|
+
* members (TS4094 under TypeScript 7).
|
|
1055
|
+
*/
|
|
1056
|
+
export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => T & Constructable<LifecycleElement>;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* Creates an observer that facilitates the subscription and publication of events.
|
|
1060
|
+
* @public
|
|
1061
|
+
*/
|
|
1062
|
+
export declare type Listener<EventType> = (ev: EventType) => void;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* Loads font faces by inserting a style element with the specified font face rules into the document.
|
|
1066
|
+
* @param fontFaceRules - The CSS rules for the font faces.
|
|
1067
|
+
* @param styleElementId - The ID of the style element to insert into the document.
|
|
1068
|
+
* @public
|
|
1069
|
+
*/
|
|
1070
|
+
export declare const loadFontFaces: (fontFaceRules: string, styleElementId: string) => void;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* A logger that extends the `Consola` logger.
|
|
1074
|
+
*
|
|
1075
|
+
* @remarks
|
|
1076
|
+
* This logger is part of the package's API but may still be subject to changes and improvements.
|
|
1077
|
+
*
|
|
1078
|
+
* @public
|
|
1079
|
+
*/
|
|
1080
|
+
export declare interface Logger extends Logger_2 {
|
|
1081
|
+
/**
|
|
1082
|
+
* A logger method for deprecated symbols.
|
|
1083
|
+
*
|
|
1084
|
+
* @remarks
|
|
1085
|
+
* Pair with a deprecated tag. See {@link https://tsdoc.org/pages/tags/deprecated/} for more information.
|
|
1086
|
+
*
|
|
1087
|
+
* @example
|
|
1088
|
+
* ```ts
|
|
1089
|
+
* logger.deprecated('someSymbol');
|
|
1090
|
+
* ```
|
|
1091
|
+
*
|
|
1092
|
+
* @example With a custom instruction and target removal version.
|
|
1093
|
+
* ```ts
|
|
1094
|
+
* logger.deprecated('routeButtons', 'Use the default slot instead.', '20.0.0');
|
|
1095
|
+
* ```
|
|
1096
|
+
*
|
|
1097
|
+
* @param symbol - The deprecated symbol.
|
|
1098
|
+
* @param instruction - An optional alternative instruction. Defaults to `Consult docs for better alternative.`
|
|
1099
|
+
* @param removalVersionTarget - An optional target removal version number.
|
|
1100
|
+
*/
|
|
1101
|
+
deprecated(symbol: string, instruction?: string, removalVersionTarget?: string): void;
|
|
1102
|
+
}
|
|
1103
|
+
|
|
1104
|
+
/**
|
|
1105
|
+
* Logger for the foundation-utils package
|
|
1106
|
+
* @public
|
|
1107
|
+
*/
|
|
1108
|
+
export declare const logger: Logger_2;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Options for creating a logger.
|
|
1112
|
+
* @public
|
|
1113
|
+
*/
|
|
1114
|
+
export declare interface LoggerOptions extends LoggerOptions_2 {
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
/**
|
|
1118
|
+
* @public
|
|
1119
|
+
*/
|
|
1120
|
+
export declare let LOGIN_DETAILS_URL: string;
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* @public
|
|
1124
|
+
*/
|
|
1125
|
+
export declare let LOGIN_REFRESH_URL: string;
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* @public
|
|
1129
|
+
*/
|
|
1130
|
+
export declare let LOGIN_URL: string;
|
|
1131
|
+
|
|
1132
|
+
export { LogLevel }
|
|
1133
|
+
|
|
1134
|
+
/**
|
|
1135
|
+
* @public
|
|
1136
|
+
*/
|
|
1137
|
+
export declare let LOGOUT_URL: string;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* @internal
|
|
1141
|
+
*/
|
|
1142
|
+
declare type LowercaseOperation = 'insert' | 'modify' | 'delete';
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Takes in a valid response from `connect.getJsonSchema(resourceName)` and maps it to
|
|
1146
|
+
* a JsonSchema extended with the genesisType metadata for a field
|
|
1147
|
+
*
|
|
1148
|
+
* @public
|
|
1149
|
+
*/
|
|
1150
|
+
export declare function mapGenesisJsonSchema(jsonSchemResponse: {
|
|
1151
|
+
OUTBOUND: JSONSchema7;
|
|
1152
|
+
}): Genesis.JSONSchema7;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* Maps fields contained in a JSON schema block enhanced with genesisType metadata
|
|
1156
|
+
* to the field shape required by the expression builder component.
|
|
1157
|
+
*
|
|
1158
|
+
* Only sets the properties that are *required*. Optional properties, such as
|
|
1159
|
+
* `defaultValue`, must be explicitly set by the user separately.
|
|
1160
|
+
*
|
|
1161
|
+
* @example
|
|
1162
|
+
* ```ts
|
|
1163
|
+
* import { mapGenesisJsonSchema, mapJsonSchemaFieldToExprBuilderField } from '@genesislcap/foundation-utils';
|
|
1164
|
+
*
|
|
1165
|
+
* const response = await connect.getJsonSchema("RESOURCE_NAME");
|
|
1166
|
+
* // Assuming the response is valid, requires checking
|
|
1167
|
+
* const schema = mapGenesisJsonSchema(response);
|
|
1168
|
+
* const fields = Object.entries(schema.properties).map(mapJsonSchemaFieldToExprBuilderField);
|
|
1169
|
+
* ```
|
|
1170
|
+
* @public
|
|
1171
|
+
*/
|
|
1172
|
+
export declare function mapJsonSchemaFieldToExprBuilderField([name, schema]: [
|
|
1173
|
+
string,
|
|
1174
|
+
Genesis.FieldJsonSchema
|
|
1175
|
+
]): Types.Field | null;
|
|
1176
|
+
|
|
1177
|
+
/**
|
|
1178
|
+
* A no-operation function that executes an optional callback.
|
|
1179
|
+
*
|
|
1180
|
+
* This is a lower-level utility function. For preventing tree-shaking of custom elements,
|
|
1181
|
+
* prefer using {@link avoidTreeShaking} which provides a more explicit API.
|
|
1182
|
+
*
|
|
1183
|
+
* @param callback - An optional function to execute for its side effects.
|
|
1184
|
+
* @public
|
|
1185
|
+
*/
|
|
1186
|
+
export declare const noop: (fn?: () => void) => void;
|
|
1187
|
+
|
|
1188
|
+
/**
|
|
1189
|
+
* @public
|
|
1190
|
+
*/
|
|
1191
|
+
export declare class NumberParser {
|
|
1192
|
+
/**
|
|
1193
|
+
* reference: https://observablehq.com/\@mbostock/localized-number-parsing
|
|
1194
|
+
* @internal
|
|
1195
|
+
*/
|
|
1196
|
+
private _group;
|
|
1197
|
+
private _decimal;
|
|
1198
|
+
private _separator;
|
|
1199
|
+
private _numeral;
|
|
1200
|
+
private _index;
|
|
1201
|
+
constructor(locale: string);
|
|
1202
|
+
parse(localeNumber: string): number;
|
|
1203
|
+
hasSeparator(localeNumber: string): boolean;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* @privateRemarks
|
|
1208
|
+
* Code borrowed from fast-element v2. We can remove post upgrade.
|
|
1209
|
+
*
|
|
1210
|
+
* @example
|
|
1211
|
+
* Reactive visitor example.
|
|
1212
|
+
* ```ts
|
|
1213
|
+
* const makeObserverVisitor: ObjectVisitor<undefined> = {
|
|
1214
|
+
* visitObject: noop,
|
|
1215
|
+
* visitArray: noop,
|
|
1216
|
+
* visitProperty(object: any, propertyName: string, value: any): void {
|
|
1217
|
+
* Reflect.defineProperty(object, propertyName, {
|
|
1218
|
+
* enumerable: true,
|
|
1219
|
+
* get() {
|
|
1220
|
+
* Observable.track(object, propertyName);
|
|
1221
|
+
* return value;
|
|
1222
|
+
* },
|
|
1223
|
+
* set(newValue: any) {
|
|
1224
|
+
* if (value !== newValue) {
|
|
1225
|
+
* value = newValue;
|
|
1226
|
+
* Observable.notify(object, propertyName);
|
|
1227
|
+
* }
|
|
1228
|
+
* },
|
|
1229
|
+
* });
|
|
1230
|
+
* },
|
|
1231
|
+
* };
|
|
1232
|
+
* ```
|
|
1233
|
+
*
|
|
1234
|
+
* @beta
|
|
1235
|
+
*/
|
|
1236
|
+
export declare interface ObjectVisitor<TVisitorData> {
|
|
1237
|
+
visitObject(object: any, data: TVisitorData): void;
|
|
1238
|
+
visitArray(array: any[], data: TVisitorData): void;
|
|
1239
|
+
visitProperty(object: any, key: PropertyKey, value: any, data: TVisitorData): void;
|
|
1240
|
+
}
|
|
1241
|
+
|
|
1242
|
+
/**
|
|
1243
|
+
* Represents an event observer that manages the subscription and publication of events.
|
|
1244
|
+
* @public
|
|
1245
|
+
*/
|
|
1246
|
+
export declare interface Observer<EventType> {
|
|
1247
|
+
subscribe: Subscribe<EventType>;
|
|
1248
|
+
publish: Publish<EventType>;
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* Opens a new browser window with the specified URL, target, width, and height.
|
|
1253
|
+
* @param urlNavigate - The URL to navigate to.
|
|
1254
|
+
* @param target - The name of the new window.
|
|
1255
|
+
* @param popUpWidth - The width of the new window (optional).
|
|
1256
|
+
* @param popUpHeight - The height of the new window (optional).
|
|
1257
|
+
* @returns A reference to the new window.
|
|
1258
|
+
* @public
|
|
1259
|
+
*/
|
|
1260
|
+
export declare const openPopup: (urlNavigate: string, target: string, popUpWidth?: number, popUpHeight?: number) => Window;
|
|
1261
|
+
|
|
1262
|
+
/**
|
|
1263
|
+
* The `PendingState` mixin.
|
|
1264
|
+
* @public
|
|
1031
1265
|
*/
|
|
1032
|
-
export declare const
|
|
1266
|
+
export declare const PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
1033
1267
|
new (...args: any[]): {
|
|
1034
|
-
/** @internal **/
|
|
1035
|
-
#_container: Container;
|
|
1036
|
-
/**
|
|
1037
|
-
* If the token changes we suggest blocking the lifecycle methods
|
|
1038
|
-
* @internal
|
|
1039
|
-
**/
|
|
1040
|
-
#_latestTokenCode: string;
|
|
1041
1268
|
/**
|
|
1042
|
-
*
|
|
1043
|
-
* @
|
|
1044
|
-
**/
|
|
1045
|
-
#_hasFirstLoaded: boolean;
|
|
1046
|
-
/**
|
|
1047
|
-
* When you request to delete an item from the layout it will be removed from the DOM,
|
|
1048
|
-
* but the lifecycle might be blocked due to the same mechanism that we block the other
|
|
1049
|
-
* items.
|
|
1050
|
-
* This would block cleanup of the item, so we need to force a disconnection after a timeout
|
|
1051
|
-
* if this item hasn't reconnected within `CLEANUP_TIMEOUT_MS`.
|
|
1052
|
-
* @internal
|
|
1053
|
-
**/
|
|
1054
|
-
#_cleanupTimeout: NodeJS.Timeout;
|
|
1055
|
-
/**
|
|
1056
|
-
* Used to force lifecycle to run even if the token has changed, such as in instances where
|
|
1057
|
-
* we are forcing a disconnection due to this item being remove from the layout.
|
|
1058
|
-
* @internal
|
|
1059
|
-
**/
|
|
1060
|
-
#_shouldForceLifecycle: boolean;
|
|
1061
|
-
/**
|
|
1062
|
-
* Set once a short grace period (`setTimeout`) has elapsed since a blocked ('reflow')
|
|
1063
|
-
* disconnect. Some consumers run defensive cleanup after the block via schedulers that can
|
|
1064
|
-
* outlast a microtask (e.g. FAST's `DOM.queueUpdate`), so a macrotask-scale grace period is
|
|
1065
|
-
* needed - once it has passed, the paired reconnect must not stay blocked, or the consumer
|
|
1066
|
-
* never re-initializes.
|
|
1067
|
-
* @internal
|
|
1068
|
-
**/
|
|
1069
|
-
#_blockedDisconnectSurvivedGracePeriod: boolean;
|
|
1070
|
-
/**
|
|
1071
|
-
* @privateRemarks
|
|
1072
|
-
* Rather than using the basic implementation of cloning we run a copy constructor (deepClone)
|
|
1073
|
-
* and then manually clone the children too so they can intercept with an overriden cloneNode
|
|
1074
|
-
* if they want to
|
|
1269
|
+
* The number of promises that are currently pending.
|
|
1270
|
+
* @public
|
|
1075
1271
|
*/
|
|
1076
|
-
|
|
1272
|
+
pendingCount: number;
|
|
1077
1273
|
/**
|
|
1078
|
-
*
|
|
1079
|
-
*
|
|
1080
|
-
* and copies all attributes over.
|
|
1081
|
-
* None-trivial elements will likely want to override this function, call it using super.deepClone(),
|
|
1082
|
-
* and then perform extra setup such as copying properties, setting up event listeners
|
|
1274
|
+
* The number of promises that have been resolved.
|
|
1275
|
+
* @public
|
|
1083
1276
|
*/
|
|
1084
|
-
|
|
1277
|
+
resolvedCount: number;
|
|
1085
1278
|
/**
|
|
1086
|
-
*
|
|
1087
|
-
* @
|
|
1279
|
+
* A boolean indicating whether there are any pending children.
|
|
1280
|
+
* @public
|
|
1088
1281
|
*/
|
|
1089
|
-
|
|
1282
|
+
hasPendingChildren: boolean;
|
|
1090
1283
|
/**
|
|
1091
|
-
*
|
|
1092
|
-
* @
|
|
1093
|
-
* @privateRemarks
|
|
1094
|
-
* For now its just the same logic as shouldRunDisconnect
|
|
1284
|
+
* Gets the progress of the pending promises as a percentage between 0 and 1.
|
|
1285
|
+
* @public
|
|
1095
1286
|
*/
|
|
1096
|
-
get
|
|
1097
|
-
#_blockLifecycleDueToTokenChange(lifecycleType: Lifecycletype): boolean;
|
|
1287
|
+
get progress(): number;
|
|
1098
1288
|
/**
|
|
1289
|
+
* Called when the element is connected to the DOM.
|
|
1099
1290
|
* @internal
|
|
1100
|
-
* Recursive function to try and find containing layout object
|
|
1101
|
-
*
|
|
1102
|
-
* @returns the layout object casted to the {@link @genesislcap/foundation-utils#FoundationLayoutContainer} interface if we are in a
|
|
1103
|
-
* layout object, {@link @genesislcap/foundation-utils#LayoutCacheContainer} if the element is in the layout cache, else {@link @genesislcap/foundation-utils#DOMContainer}.
|
|
1104
1291
|
*/
|
|
1105
|
-
#_tryFindContainingLayout(e: Element): Container;
|
|
1106
1292
|
connectedCallback(): void;
|
|
1107
|
-
|
|
1108
|
-
|
|
1293
|
+
/**
|
|
1294
|
+
* Called when the element is disconnected from the DOM.
|
|
1295
|
+
* @internal
|
|
1296
|
+
*/
|
|
1109
1297
|
disconnectedCallback(): void;
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
draggable: boolean;
|
|
1117
|
-
hidden: boolean;
|
|
1118
|
-
inert: boolean;
|
|
1119
|
-
innerText: string;
|
|
1120
|
-
lang: string;
|
|
1121
|
-
readonly offsetHeight: number;
|
|
1122
|
-
readonly offsetLeft: number;
|
|
1123
|
-
readonly offsetParent: Element | null;
|
|
1124
|
-
readonly offsetTop: number;
|
|
1125
|
-
readonly offsetWidth: number;
|
|
1126
|
-
outerText: string;
|
|
1127
|
-
popover: string | null;
|
|
1128
|
-
spellcheck: boolean;
|
|
1129
|
-
title: string;
|
|
1130
|
-
translate: boolean;
|
|
1131
|
-
writingSuggestions: string;
|
|
1132
|
-
attachInternals(): ElementInternals;
|
|
1133
|
-
click(): void;
|
|
1134
|
-
hidePopover(): void;
|
|
1135
|
-
showPopover(): void;
|
|
1136
|
-
togglePopover(options?: boolean): boolean;
|
|
1137
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1138
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1139
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1140
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1141
|
-
readonly attributes: NamedNodeMap;
|
|
1142
|
-
get classList(): DOMTokenList;
|
|
1143
|
-
set classList(value: string);
|
|
1144
|
-
className: string;
|
|
1145
|
-
readonly clientHeight: number;
|
|
1146
|
-
readonly clientLeft: number;
|
|
1147
|
-
readonly clientTop: number;
|
|
1148
|
-
readonly clientWidth: number;
|
|
1149
|
-
readonly currentCSSZoom: number;
|
|
1150
|
-
id: string;
|
|
1151
|
-
innerHTML: string;
|
|
1152
|
-
readonly localName: string;
|
|
1153
|
-
readonly namespaceURI: string | null;
|
|
1154
|
-
onfullscreenchange: (this: Element, ev: Event) => any;
|
|
1155
|
-
onfullscreenerror: (this: Element, ev: Event) => any;
|
|
1156
|
-
outerHTML: string;
|
|
1157
|
-
readonly ownerDocument: Document;
|
|
1158
|
-
get part(): DOMTokenList;
|
|
1159
|
-
set part(value: string);
|
|
1160
|
-
readonly prefix: string | null;
|
|
1161
|
-
readonly scrollHeight: number;
|
|
1162
|
-
scrollLeft: number;
|
|
1163
|
-
scrollTop: number;
|
|
1164
|
-
readonly scrollWidth: number;
|
|
1165
|
-
readonly shadowRoot: ShadowRoot | null;
|
|
1166
|
-
slot: string;
|
|
1167
|
-
readonly tagName: string;
|
|
1168
|
-
attachShadow(init: ShadowRootInit): ShadowRoot;
|
|
1169
|
-
checkVisibility(options?: CheckVisibilityOptions): boolean;
|
|
1170
|
-
closest<K extends keyof HTMLElementTagNameMap>(selector: K): HTMLElementTagNameMap[K];
|
|
1171
|
-
closest<K extends keyof SVGElementTagNameMap>(selector: K): SVGElementTagNameMap[K];
|
|
1172
|
-
closest<K extends keyof MathMLElementTagNameMap>(selector: K): MathMLElementTagNameMap[K];
|
|
1173
|
-
closest<E extends Element = Element>(selectors: string): E;
|
|
1174
|
-
computedStyleMap(): StylePropertyMapReadOnly;
|
|
1175
|
-
getAttribute(qualifiedName: string): string | null;
|
|
1176
|
-
getAttributeNS(namespace: string | null, localName: string): string | null;
|
|
1177
|
-
getAttributeNames(): string[];
|
|
1178
|
-
getAttributeNode(qualifiedName: string): Attr | null;
|
|
1179
|
-
getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;
|
|
1180
|
-
getBoundingClientRect(): DOMRect;
|
|
1181
|
-
getClientRects(): DOMRectList;
|
|
1182
|
-
getElementsByClassName(classNames: string): HTMLCollectionOf<Element>;
|
|
1183
|
-
getElementsByTagName<K extends keyof HTMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementTagNameMap[K]>;
|
|
1184
|
-
getElementsByTagName<K extends keyof SVGElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<SVGElementTagNameMap[K]>;
|
|
1185
|
-
getElementsByTagName<K extends keyof MathMLElementTagNameMap>(qualifiedName: K): HTMLCollectionOf<MathMLElementTagNameMap[K]>;
|
|
1186
|
-
getElementsByTagName<K extends keyof HTMLElementDeprecatedTagNameMap>(qualifiedName: K): HTMLCollectionOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
1187
|
-
getElementsByTagName(qualifiedName: string): HTMLCollectionOf<Element>;
|
|
1188
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1999/xhtml", localName: string): HTMLCollectionOf<HTMLElement>;
|
|
1189
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/2000/svg", localName: string): HTMLCollectionOf<SVGElement>;
|
|
1190
|
-
getElementsByTagNameNS(namespaceURI: "http://www.w3.org/1998/Math/MathML", localName: string): HTMLCollectionOf<MathMLElement>;
|
|
1191
|
-
getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf<Element>;
|
|
1192
|
-
getHTML(options?: GetHTMLOptions): string;
|
|
1193
|
-
hasAttribute(qualifiedName: string): boolean;
|
|
1194
|
-
hasAttributeNS(namespace: string | null, localName: string): boolean;
|
|
1195
|
-
hasAttributes(): boolean;
|
|
1196
|
-
hasPointerCapture(pointerId: number): boolean;
|
|
1197
|
-
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
1198
|
-
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
1199
|
-
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
1200
|
-
matches(selectors: string): boolean;
|
|
1201
|
-
releasePointerCapture(pointerId: number): void;
|
|
1202
|
-
removeAttribute(qualifiedName: string): void;
|
|
1203
|
-
removeAttributeNS(namespace: string | null, localName: string): void;
|
|
1204
|
-
removeAttributeNode(attr: Attr): Attr;
|
|
1205
|
-
requestFullscreen(options?: FullscreenOptions): Promise<void>;
|
|
1206
|
-
requestPointerLock(options?: PointerLockOptions): Promise<void>;
|
|
1207
|
-
scroll(options?: ScrollToOptions): void;
|
|
1208
|
-
scroll(x: number, y: number): void;
|
|
1209
|
-
scrollBy(options?: ScrollToOptions): void;
|
|
1210
|
-
scrollBy(x: number, y: number): void;
|
|
1211
|
-
scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;
|
|
1212
|
-
scrollTo(options?: ScrollToOptions): void;
|
|
1213
|
-
scrollTo(x: number, y: number): void;
|
|
1214
|
-
setAttribute(qualifiedName: string, value: string): void;
|
|
1215
|
-
setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;
|
|
1216
|
-
setAttributeNode(attr: Attr): Attr | null;
|
|
1217
|
-
setAttributeNodeNS(attr: Attr): Attr | null;
|
|
1218
|
-
setHTMLUnsafe(html: string): void;
|
|
1219
|
-
setPointerCapture(pointerId: number): void;
|
|
1220
|
-
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1221
|
-
webkitMatchesSelector(selectors: string): boolean;
|
|
1222
|
-
textContent: string;
|
|
1223
|
-
readonly baseURI: string;
|
|
1224
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1225
|
-
readonly firstChild: ChildNode | null;
|
|
1226
|
-
readonly isConnected: boolean;
|
|
1227
|
-
readonly lastChild: ChildNode | null;
|
|
1228
|
-
readonly nextSibling: ChildNode | null;
|
|
1229
|
-
readonly nodeName: string;
|
|
1230
|
-
readonly nodeType: number;
|
|
1231
|
-
nodeValue: string | null;
|
|
1232
|
-
readonly parentElement: HTMLElement | null;
|
|
1233
|
-
readonly parentNode: ParentNode | null;
|
|
1234
|
-
readonly previousSibling: ChildNode | null;
|
|
1235
|
-
appendChild<T_1 extends Node>(node: T_1): T_1;
|
|
1236
|
-
compareDocumentPosition(other: Node): number;
|
|
1237
|
-
contains(other: Node | null): boolean;
|
|
1238
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
1239
|
-
hasChildNodes(): boolean;
|
|
1240
|
-
insertBefore<T_1 extends Node>(node: T_1, child: Node | null): T_1;
|
|
1241
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
1242
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
1243
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
1244
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
1245
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
1246
|
-
normalize(): void;
|
|
1247
|
-
removeChild<T_1 extends Node>(child: T_1): T_1;
|
|
1248
|
-
replaceChild<T_1 extends Node>(node: Node, child: T_1): T_1;
|
|
1249
|
-
readonly ELEMENT_NODE: 1;
|
|
1250
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
1251
|
-
readonly TEXT_NODE: 3;
|
|
1252
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
1253
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
1254
|
-
readonly ENTITY_NODE: 6;
|
|
1255
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
1256
|
-
readonly COMMENT_NODE: 8;
|
|
1257
|
-
readonly DOCUMENT_NODE: 9;
|
|
1258
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
1259
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
1260
|
-
readonly NOTATION_NODE: 12;
|
|
1261
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
1262
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
1263
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
1264
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
1265
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
1266
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
1267
|
-
dispatchEvent(event: Event): boolean;
|
|
1298
|
+
/**
|
|
1299
|
+
* Handles the `pending-state` event.
|
|
1300
|
+
* @param event - The `pending-state` event.
|
|
1301
|
+
* @internal
|
|
1302
|
+
*/
|
|
1303
|
+
onPendingState({ detail }: PendingStateEvent): Promise<void>;
|
|
1268
1304
|
ariaActiveDescendantElement: Element | null;
|
|
1269
1305
|
ariaAtomic: string | null;
|
|
1270
1306
|
ariaAutoComplete: string | null;
|
|
@@ -1289,457 +1325,40 @@ export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(B
|
|
|
1289
1325
|
ariaHidden: string | null;
|
|
1290
1326
|
ariaInvalid: string | null;
|
|
1291
1327
|
ariaKeyShortcuts: string | null;
|
|
1292
|
-
ariaLabel: string | null;
|
|
1293
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
1294
|
-
ariaLevel: string | null;
|
|
1295
|
-
ariaLive: string | null;
|
|
1296
|
-
ariaModal: string | null;
|
|
1297
|
-
ariaMultiLine: string | null;
|
|
1298
|
-
ariaMultiSelectable: string | null;
|
|
1299
|
-
ariaOrientation: string | null;
|
|
1300
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
1301
|
-
ariaPlaceholder: string | null;
|
|
1302
|
-
ariaPosInSet: string | null;
|
|
1303
|
-
ariaPressed: string | null;
|
|
1304
|
-
ariaReadOnly: string | null;
|
|
1305
|
-
ariaRelevant: string | null;
|
|
1306
|
-
ariaRequired: string | null;
|
|
1307
|
-
ariaRoleDescription: string | null;
|
|
1308
|
-
ariaRowCount: string | null;
|
|
1309
|
-
ariaRowIndex: string | null;
|
|
1310
|
-
ariaRowIndexText: string | null;
|
|
1311
|
-
ariaRowSpan: string | null;
|
|
1312
|
-
ariaSelected: string | null;
|
|
1313
|
-
ariaSetSize: string | null;
|
|
1314
|
-
ariaSort: string | null;
|
|
1315
|
-
ariaValueMax: string | null;
|
|
1316
|
-
ariaValueMin: string | null;
|
|
1317
|
-
ariaValueNow: string | null;
|
|
1318
|
-
ariaValueText: string | null;
|
|
1319
|
-
role: string | null;
|
|
1320
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
1321
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
1322
|
-
after(...nodes: (Node | string)[]): void;
|
|
1323
|
-
before(...nodes: (Node | string)[]): void;
|
|
1324
|
-
remove(): void;
|
|
1325
|
-
replaceWith(...nodes: (Node | string)[]): void;
|
|
1326
|
-
readonly nextElementSibling: Element | null;
|
|
1327
|
-
readonly previousElementSibling: Element | null;
|
|
1328
|
-
readonly childElementCount: number;
|
|
1329
|
-
readonly children: HTMLCollection;
|
|
1330
|
-
readonly firstElementChild: Element | null;
|
|
1331
|
-
readonly lastElementChild: Element | null;
|
|
1332
|
-
append(...nodes: (Node | string)[]): void;
|
|
1333
|
-
prepend(...nodes: (Node | string)[]): void;
|
|
1334
|
-
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
1335
|
-
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
1336
|
-
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
1337
|
-
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
1338
|
-
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
1339
|
-
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
1340
|
-
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
1341
|
-
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
1342
|
-
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
1343
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
1344
|
-
replaceChildren(...nodes: (Node | string)[]): void;
|
|
1345
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1346
|
-
readonly attributeStyleMap: StylePropertyMap;
|
|
1347
|
-
get style(): CSSStyleDeclaration;
|
|
1348
|
-
set style(cssText: string);
|
|
1349
|
-
contentEditable: string;
|
|
1350
|
-
enterKeyHint: string;
|
|
1351
|
-
inputMode: string;
|
|
1352
|
-
readonly isContentEditable: boolean;
|
|
1353
|
-
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
1354
|
-
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1355
|
-
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1356
|
-
onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1357
|
-
onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1358
|
-
onauxclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1359
|
-
onbeforeinput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
1360
|
-
onbeforematch: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1361
|
-
onbeforetoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
1362
|
-
onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1363
|
-
oncancel: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1364
|
-
oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1365
|
-
oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1366
|
-
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1367
|
-
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1368
|
-
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1369
|
-
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1370
|
-
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1371
|
-
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1372
|
-
oncopy: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1373
|
-
oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1374
|
-
oncut: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1375
|
-
ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1376
|
-
ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1377
|
-
ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1378
|
-
ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1379
|
-
ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1380
|
-
ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1381
|
-
ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1382
|
-
ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;
|
|
1383
|
-
ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1384
|
-
onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1385
|
-
onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1386
|
-
onerror: OnErrorEventHandler;
|
|
1387
|
-
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1388
|
-
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
1389
|
-
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1390
|
-
oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1391
|
-
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1392
|
-
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
1393
|
-
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
1394
|
-
onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
1395
|
-
onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1396
|
-
onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1397
|
-
onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1398
|
-
onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1399
|
-
onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1400
|
-
onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1401
|
-
onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1402
|
-
onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1403
|
-
onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1404
|
-
onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1405
|
-
onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1406
|
-
onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;
|
|
1407
|
-
onpaste: ((this: GlobalEventHandlers, ev: ClipboardEvent) => any) | null;
|
|
1408
|
-
onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1409
|
-
onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1410
|
-
onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1411
|
-
onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1412
|
-
onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1413
|
-
onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1414
|
-
onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1415
|
-
onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1416
|
-
onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1417
|
-
onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1418
|
-
onpointerrawupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1419
|
-
onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1420
|
-
onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;
|
|
1421
|
-
onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1422
|
-
onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1423
|
-
onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
1424
|
-
onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1425
|
-
onscrollend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1426
|
-
onsecuritypolicyviolation: ((this: GlobalEventHandlers, ev: SecurityPolicyViolationEvent) => any) | null;
|
|
1427
|
-
onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1428
|
-
onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1429
|
-
onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1430
|
-
onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1431
|
-
onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1432
|
-
onslotchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1433
|
-
onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1434
|
-
onsubmit: ((this: GlobalEventHandlers, ev: SubmitEvent) => any) | null;
|
|
1435
|
-
onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1436
|
-
ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1437
|
-
ontoggle: ((this: GlobalEventHandlers, ev: ToggleEvent) => any) | null;
|
|
1438
|
-
ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1439
|
-
ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1440
|
-
ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1441
|
-
ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;
|
|
1442
|
-
ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
1443
|
-
ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
1444
|
-
ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
1445
|
-
ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;
|
|
1446
|
-
onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1447
|
-
onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1448
|
-
onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1449
|
-
onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1450
|
-
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1451
|
-
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1452
|
-
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1453
|
-
autofocus: boolean;
|
|
1454
|
-
readonly dataset: DOMStringMap;
|
|
1455
|
-
nonce?: string;
|
|
1456
|
-
tabIndex: number;
|
|
1457
|
-
blur(): void;
|
|
1458
|
-
focus(options?: FocusOptions): void;
|
|
1459
|
-
};
|
|
1460
|
-
} & T;
|
|
1461
|
-
|
|
1462
|
-
declare type Lifecycletype = 'connect' | 'disconnect' | 'reconnect';
|
|
1463
|
-
|
|
1464
|
-
/**
|
|
1465
|
-
* Creates an observer that facilitates the subscription and publication of events.
|
|
1466
|
-
* @public
|
|
1467
|
-
*/
|
|
1468
|
-
export declare type Listener<EventType> = (ev: EventType) => void;
|
|
1469
|
-
|
|
1470
|
-
/**
|
|
1471
|
-
* Loads font faces by inserting a style element with the specified font face rules into the document.
|
|
1472
|
-
* @param fontFaceRules - The CSS rules for the font faces.
|
|
1473
|
-
* @param styleElementId - The ID of the style element to insert into the document.
|
|
1474
|
-
* @public
|
|
1475
|
-
*/
|
|
1476
|
-
export declare const loadFontFaces: (fontFaceRules: string, styleElementId: string) => void;
|
|
1477
|
-
|
|
1478
|
-
/**
|
|
1479
|
-
* A logger that extends the `Consola` logger.
|
|
1480
|
-
*
|
|
1481
|
-
* @remarks
|
|
1482
|
-
* This logger is part of the package's API but may still be subject to changes and improvements.
|
|
1483
|
-
*
|
|
1484
|
-
* @public
|
|
1485
|
-
*/
|
|
1486
|
-
export declare interface Logger extends Logger_2 {
|
|
1487
|
-
/**
|
|
1488
|
-
* A logger method for deprecated symbols.
|
|
1489
|
-
*
|
|
1490
|
-
* @remarks
|
|
1491
|
-
* Pair with a deprecated tag. See {@link https://tsdoc.org/pages/tags/deprecated/} for more information.
|
|
1492
|
-
*
|
|
1493
|
-
* @example
|
|
1494
|
-
* ```ts
|
|
1495
|
-
* logger.deprecated('someSymbol');
|
|
1496
|
-
* ```
|
|
1497
|
-
*
|
|
1498
|
-
* @example With a custom instruction and target removal version.
|
|
1499
|
-
* ```ts
|
|
1500
|
-
* logger.deprecated('routeButtons', 'Use the default slot instead.', '20.0.0');
|
|
1501
|
-
* ```
|
|
1502
|
-
*
|
|
1503
|
-
* @param symbol - The deprecated symbol.
|
|
1504
|
-
* @param instruction - An optional alternative instruction. Defaults to `Consult docs for better alternative.`
|
|
1505
|
-
* @param removalVersionTarget - An optional target removal version number.
|
|
1506
|
-
*/
|
|
1507
|
-
deprecated(symbol: string, instruction?: string, removalVersionTarget?: string): void;
|
|
1508
|
-
}
|
|
1509
|
-
|
|
1510
|
-
/**
|
|
1511
|
-
* Logger for the foundation-utils package
|
|
1512
|
-
* @public
|
|
1513
|
-
*/
|
|
1514
|
-
export declare const logger: Logger_2;
|
|
1515
|
-
|
|
1516
|
-
/**
|
|
1517
|
-
* Options for creating a logger.
|
|
1518
|
-
* @public
|
|
1519
|
-
*/
|
|
1520
|
-
export declare interface LoggerOptions extends LoggerOptions_2 {
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
/**
|
|
1524
|
-
* @public
|
|
1525
|
-
*/
|
|
1526
|
-
export declare let LOGIN_DETAILS_URL: string;
|
|
1527
|
-
|
|
1528
|
-
/**
|
|
1529
|
-
* @public
|
|
1530
|
-
*/
|
|
1531
|
-
export declare let LOGIN_REFRESH_URL: string;
|
|
1532
|
-
|
|
1533
|
-
/**
|
|
1534
|
-
* @public
|
|
1535
|
-
*/
|
|
1536
|
-
export declare let LOGIN_URL: string;
|
|
1537
|
-
|
|
1538
|
-
export { LogLevel }
|
|
1539
|
-
|
|
1540
|
-
/**
|
|
1541
|
-
* @public
|
|
1542
|
-
*/
|
|
1543
|
-
export declare let LOGOUT_URL: string;
|
|
1544
|
-
|
|
1545
|
-
/**
|
|
1546
|
-
* @internal
|
|
1547
|
-
*/
|
|
1548
|
-
declare type LowercaseOperation = 'insert' | 'modify' | 'delete';
|
|
1549
|
-
|
|
1550
|
-
/**
|
|
1551
|
-
* Takes in a valid response from `connect.getJsonSchema(resourceName)` and maps it to
|
|
1552
|
-
* a JsonSchema extended with the genesisType metadata for a field
|
|
1553
|
-
*
|
|
1554
|
-
* @public
|
|
1555
|
-
*/
|
|
1556
|
-
export declare function mapGenesisJsonSchema(jsonSchemResponse: {
|
|
1557
|
-
OUTBOUND: JSONSchema7;
|
|
1558
|
-
}): Genesis.JSONSchema7;
|
|
1559
|
-
|
|
1560
|
-
/**
|
|
1561
|
-
* Maps fields contained in a JSON schema block enhanced with genesisType metadata
|
|
1562
|
-
* to the field shape required by the expression builder component.
|
|
1563
|
-
*
|
|
1564
|
-
* Only sets the properties that are *required*. Optional properties, such as
|
|
1565
|
-
* `defaultValue`, must be explicitly set by the user separately.
|
|
1566
|
-
*
|
|
1567
|
-
* @example
|
|
1568
|
-
* ```ts
|
|
1569
|
-
* import { mapGenesisJsonSchema, mapJsonSchemaFieldToExprBuilderField } from '@genesislcap/foundation-utils';
|
|
1570
|
-
*
|
|
1571
|
-
* const response = await connect.getJsonSchema("RESOURCE_NAME");
|
|
1572
|
-
* // Assuming the response is valid, requires checking
|
|
1573
|
-
* const schema = mapGenesisJsonSchema(response);
|
|
1574
|
-
* const fields = Object.entries(schema.properties).map(mapJsonSchemaFieldToExprBuilderField);
|
|
1575
|
-
* ```
|
|
1576
|
-
* @public
|
|
1577
|
-
*/
|
|
1578
|
-
export declare function mapJsonSchemaFieldToExprBuilderField([name, schema]: [
|
|
1579
|
-
string,
|
|
1580
|
-
Genesis.FieldJsonSchema
|
|
1581
|
-
]): Types.Field | null;
|
|
1582
|
-
|
|
1583
|
-
/**
|
|
1584
|
-
* A no-operation function that executes an optional callback.
|
|
1585
|
-
*
|
|
1586
|
-
* This is a lower-level utility function. For preventing tree-shaking of custom elements,
|
|
1587
|
-
* prefer using {@link avoidTreeShaking} which provides a more explicit API.
|
|
1588
|
-
*
|
|
1589
|
-
* @param callback - An optional function to execute for its side effects.
|
|
1590
|
-
* @public
|
|
1591
|
-
*/
|
|
1592
|
-
export declare const noop: (fn?: () => void) => void;
|
|
1593
|
-
|
|
1594
|
-
/**
|
|
1595
|
-
* @public
|
|
1596
|
-
*/
|
|
1597
|
-
export declare class NumberParser {
|
|
1598
|
-
/**
|
|
1599
|
-
* reference: https://observablehq.com/\@mbostock/localized-number-parsing
|
|
1600
|
-
* @internal
|
|
1601
|
-
*/
|
|
1602
|
-
private _group;
|
|
1603
|
-
private _decimal;
|
|
1604
|
-
private _separator;
|
|
1605
|
-
private _numeral;
|
|
1606
|
-
private _index;
|
|
1607
|
-
constructor(locale: string);
|
|
1608
|
-
parse(localeNumber: string): number;
|
|
1609
|
-
hasSeparator(localeNumber: string): boolean;
|
|
1610
|
-
}
|
|
1611
|
-
|
|
1612
|
-
/**
|
|
1613
|
-
* @privateRemarks
|
|
1614
|
-
* Code borrowed from fast-element v2. We can remove post upgrade.
|
|
1615
|
-
*
|
|
1616
|
-
* @example
|
|
1617
|
-
* Reactive visitor example.
|
|
1618
|
-
* ```ts
|
|
1619
|
-
* const makeObserverVisitor: ObjectVisitor<undefined> = {
|
|
1620
|
-
* visitObject: noop,
|
|
1621
|
-
* visitArray: noop,
|
|
1622
|
-
* visitProperty(object: any, propertyName: string, value: any): void {
|
|
1623
|
-
* Reflect.defineProperty(object, propertyName, {
|
|
1624
|
-
* enumerable: true,
|
|
1625
|
-
* get() {
|
|
1626
|
-
* Observable.track(object, propertyName);
|
|
1627
|
-
* return value;
|
|
1628
|
-
* },
|
|
1629
|
-
* set(newValue: any) {
|
|
1630
|
-
* if (value !== newValue) {
|
|
1631
|
-
* value = newValue;
|
|
1632
|
-
* Observable.notify(object, propertyName);
|
|
1633
|
-
* }
|
|
1634
|
-
* },
|
|
1635
|
-
* });
|
|
1636
|
-
* },
|
|
1637
|
-
* };
|
|
1638
|
-
* ```
|
|
1639
|
-
*
|
|
1640
|
-
* @beta
|
|
1641
|
-
*/
|
|
1642
|
-
export declare interface ObjectVisitor<TVisitorData> {
|
|
1643
|
-
visitObject(object: any, data: TVisitorData): void;
|
|
1644
|
-
visitArray(array: any[], data: TVisitorData): void;
|
|
1645
|
-
visitProperty(object: any, key: PropertyKey, value: any, data: TVisitorData): void;
|
|
1646
|
-
}
|
|
1647
|
-
|
|
1648
|
-
/**
|
|
1649
|
-
* Represents an event observer that manages the subscription and publication of events.
|
|
1650
|
-
* @public
|
|
1651
|
-
*/
|
|
1652
|
-
export declare interface Observer<EventType> {
|
|
1653
|
-
subscribe: Subscribe<EventType>;
|
|
1654
|
-
publish: Publish<EventType>;
|
|
1655
|
-
}
|
|
1656
|
-
|
|
1657
|
-
/**
|
|
1658
|
-
* Opens a new browser window with the specified URL, target, width, and height.
|
|
1659
|
-
* @param urlNavigate - The URL to navigate to.
|
|
1660
|
-
* @param target - The name of the new window.
|
|
1661
|
-
* @param popUpWidth - The width of the new window (optional).
|
|
1662
|
-
* @param popUpHeight - The height of the new window (optional).
|
|
1663
|
-
* @returns A reference to the new window.
|
|
1664
|
-
* @public
|
|
1665
|
-
*/
|
|
1666
|
-
export declare const openPopup: (urlNavigate: string, target: string, popUpWidth?: number, popUpHeight?: number) => Window;
|
|
1667
|
-
|
|
1668
|
-
/**
|
|
1669
|
-
* The `PendingState` mixin.
|
|
1670
|
-
* @public
|
|
1671
|
-
*/
|
|
1672
|
-
export declare const PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
1673
|
-
new (...args: any[]): {
|
|
1674
|
-
/**
|
|
1675
|
-
* The number of promises that are currently pending.
|
|
1676
|
-
* @public
|
|
1677
|
-
*/
|
|
1678
|
-
pendingCount: number;
|
|
1679
|
-
/**
|
|
1680
|
-
* The number of promises that have been resolved.
|
|
1681
|
-
* @public
|
|
1682
|
-
*/
|
|
1683
|
-
resolvedCount: number;
|
|
1684
|
-
/**
|
|
1685
|
-
* A boolean indicating whether there are any pending children.
|
|
1686
|
-
* @public
|
|
1687
|
-
*/
|
|
1688
|
-
hasPendingChildren: boolean;
|
|
1689
|
-
/**
|
|
1690
|
-
* Gets the progress of the pending promises as a percentage between 0 and 1.
|
|
1691
|
-
* @public
|
|
1692
|
-
*/
|
|
1693
|
-
get progress(): number;
|
|
1694
|
-
/**
|
|
1695
|
-
* Called when the element is connected to the DOM.
|
|
1696
|
-
* @internal
|
|
1697
|
-
*/
|
|
1698
|
-
connectedCallback(): void;
|
|
1699
|
-
/**
|
|
1700
|
-
* Called when the element is disconnected from the DOM.
|
|
1701
|
-
* @internal
|
|
1702
|
-
*/
|
|
1703
|
-
disconnectedCallback(): void;
|
|
1704
|
-
/**
|
|
1705
|
-
* Handles the `pending-state` event.
|
|
1706
|
-
* @param event - The `pending-state` event.
|
|
1707
|
-
* @internal
|
|
1708
|
-
*/
|
|
1709
|
-
onPendingState({ detail }: PendingStateEvent): Promise<void>;
|
|
1710
|
-
readonly $fastController: Controller;
|
|
1711
|
-
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
1712
|
-
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
1713
|
-
accessKey: string;
|
|
1714
|
-
readonly accessKeyLabel: string;
|
|
1715
|
-
autocapitalize: string;
|
|
1716
|
-
autocorrect: boolean;
|
|
1717
|
-
dir: string;
|
|
1718
|
-
draggable: boolean;
|
|
1719
|
-
hidden: boolean;
|
|
1720
|
-
inert: boolean;
|
|
1721
|
-
innerText: string;
|
|
1722
|
-
lang: string;
|
|
1723
|
-
readonly offsetHeight: number;
|
|
1724
|
-
readonly offsetLeft: number;
|
|
1725
|
-
readonly offsetParent: Element | null;
|
|
1726
|
-
readonly offsetTop: number;
|
|
1727
|
-
readonly offsetWidth: number;
|
|
1728
|
-
outerText: string;
|
|
1729
|
-
popover: string | null;
|
|
1730
|
-
spellcheck: boolean;
|
|
1731
|
-
title: string;
|
|
1732
|
-
translate: boolean;
|
|
1733
|
-
writingSuggestions: string;
|
|
1734
|
-
attachInternals(): ElementInternals;
|
|
1735
|
-
click(): void;
|
|
1736
|
-
hidePopover(): void;
|
|
1737
|
-
showPopover(): void;
|
|
1738
|
-
togglePopover(options?: boolean): boolean;
|
|
1739
|
-
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1740
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1741
|
-
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1742
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
1328
|
+
ariaLabel: string | null;
|
|
1329
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
1330
|
+
ariaLevel: string | null;
|
|
1331
|
+
ariaLive: string | null;
|
|
1332
|
+
ariaModal: string | null;
|
|
1333
|
+
ariaMultiLine: string | null;
|
|
1334
|
+
ariaMultiSelectable: string | null;
|
|
1335
|
+
ariaOrientation: string | null;
|
|
1336
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
1337
|
+
ariaPlaceholder: string | null;
|
|
1338
|
+
ariaPosInSet: string | null;
|
|
1339
|
+
ariaPressed: string | null;
|
|
1340
|
+
ariaReadOnly: string | null;
|
|
1341
|
+
ariaRelevant: string | null;
|
|
1342
|
+
ariaRequired: string | null;
|
|
1343
|
+
ariaRoleDescription: string | null;
|
|
1344
|
+
ariaRowCount: string | null;
|
|
1345
|
+
ariaRowIndex: string | null;
|
|
1346
|
+
ariaRowIndexText: string | null;
|
|
1347
|
+
ariaRowSpan: string | null;
|
|
1348
|
+
ariaSelected: string | null;
|
|
1349
|
+
ariaSetSize: string | null;
|
|
1350
|
+
ariaSort: string | null;
|
|
1351
|
+
ariaValueMax: string | null;
|
|
1352
|
+
ariaValueMin: string | null;
|
|
1353
|
+
ariaValueNow: string | null;
|
|
1354
|
+
ariaValueText: string | null;
|
|
1355
|
+
role: string | null;
|
|
1356
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
1357
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
1358
|
+
after(...nodes: (Node | string)[]): void;
|
|
1359
|
+
before(...nodes: (Node | string)[]): void;
|
|
1360
|
+
remove(): void;
|
|
1361
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
1743
1362
|
readonly attributes: NamedNodeMap;
|
|
1744
1363
|
get classList(): DOMTokenList;
|
|
1745
1364
|
set classList(value: string);
|
|
@@ -1799,6 +1418,9 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1799
1418
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
1800
1419
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
1801
1420
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
1421
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
1422
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
1423
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
1802
1424
|
matches(selectors: string): boolean;
|
|
1803
1425
|
releasePointerCapture(pointerId: number): void;
|
|
1804
1426
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -1822,130 +1444,6 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1822
1444
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1823
1445
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1824
1446
|
textContent: string;
|
|
1825
|
-
readonly baseURI: string;
|
|
1826
|
-
readonly childNodes: NodeListOf<ChildNode>;
|
|
1827
|
-
readonly firstChild: ChildNode | null;
|
|
1828
|
-
readonly isConnected: boolean;
|
|
1829
|
-
readonly lastChild: ChildNode | null;
|
|
1830
|
-
readonly nextSibling: ChildNode | null;
|
|
1831
|
-
readonly nodeName: string;
|
|
1832
|
-
readonly nodeType: number;
|
|
1833
|
-
nodeValue: string | null;
|
|
1834
|
-
readonly parentElement: HTMLElement | null;
|
|
1835
|
-
readonly parentNode: ParentNode | null;
|
|
1836
|
-
readonly previousSibling: ChildNode | null;
|
|
1837
|
-
appendChild<T extends Node>(node: T): T;
|
|
1838
|
-
cloneNode(subtree?: boolean): Node;
|
|
1839
|
-
compareDocumentPosition(other: Node): number;
|
|
1840
|
-
contains(other: Node | null): boolean;
|
|
1841
|
-
getRootNode(options?: GetRootNodeOptions): Node;
|
|
1842
|
-
hasChildNodes(): boolean;
|
|
1843
|
-
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
1844
|
-
isDefaultNamespace(namespace: string | null): boolean;
|
|
1845
|
-
isEqualNode(otherNode: Node | null): boolean;
|
|
1846
|
-
isSameNode(otherNode: Node | null): boolean;
|
|
1847
|
-
lookupNamespaceURI(prefix: string | null): string | null;
|
|
1848
|
-
lookupPrefix(namespace: string | null): string | null;
|
|
1849
|
-
normalize(): void;
|
|
1850
|
-
removeChild<T extends Node>(child: T): T;
|
|
1851
|
-
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
1852
|
-
readonly ELEMENT_NODE: 1;
|
|
1853
|
-
readonly ATTRIBUTE_NODE: 2;
|
|
1854
|
-
readonly TEXT_NODE: 3;
|
|
1855
|
-
readonly CDATA_SECTION_NODE: 4;
|
|
1856
|
-
readonly ENTITY_REFERENCE_NODE: 5;
|
|
1857
|
-
readonly ENTITY_NODE: 6;
|
|
1858
|
-
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
1859
|
-
readonly COMMENT_NODE: 8;
|
|
1860
|
-
readonly DOCUMENT_NODE: 9;
|
|
1861
|
-
readonly DOCUMENT_TYPE_NODE: 10;
|
|
1862
|
-
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
1863
|
-
readonly NOTATION_NODE: 12;
|
|
1864
|
-
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
1865
|
-
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
1866
|
-
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
1867
|
-
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
1868
|
-
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
1869
|
-
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
1870
|
-
dispatchEvent(event: Event): boolean;
|
|
1871
|
-
ariaActiveDescendantElement: Element | null;
|
|
1872
|
-
ariaAtomic: string | null;
|
|
1873
|
-
ariaAutoComplete: string | null;
|
|
1874
|
-
ariaBrailleLabel: string | null;
|
|
1875
|
-
ariaBrailleRoleDescription: string | null;
|
|
1876
|
-
ariaBusy: string | null;
|
|
1877
|
-
ariaChecked: string | null;
|
|
1878
|
-
ariaColCount: string | null;
|
|
1879
|
-
ariaColIndex: string | null;
|
|
1880
|
-
ariaColIndexText: string | null;
|
|
1881
|
-
ariaColSpan: string | null;
|
|
1882
|
-
ariaControlsElements: ReadonlyArray<Element> | null;
|
|
1883
|
-
ariaCurrent: string | null;
|
|
1884
|
-
ariaDescribedByElements: ReadonlyArray<Element> | null;
|
|
1885
|
-
ariaDescription: string | null;
|
|
1886
|
-
ariaDetailsElements: ReadonlyArray<Element> | null;
|
|
1887
|
-
ariaDisabled: string | null;
|
|
1888
|
-
ariaErrorMessageElements: ReadonlyArray<Element> | null;
|
|
1889
|
-
ariaExpanded: string | null;
|
|
1890
|
-
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
1891
|
-
ariaHasPopup: string | null;
|
|
1892
|
-
ariaHidden: string | null;
|
|
1893
|
-
ariaInvalid: string | null;
|
|
1894
|
-
ariaKeyShortcuts: string | null;
|
|
1895
|
-
ariaLabel: string | null;
|
|
1896
|
-
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
1897
|
-
ariaLevel: string | null;
|
|
1898
|
-
ariaLive: string | null;
|
|
1899
|
-
ariaModal: string | null;
|
|
1900
|
-
ariaMultiLine: string | null;
|
|
1901
|
-
ariaMultiSelectable: string | null;
|
|
1902
|
-
ariaOrientation: string | null;
|
|
1903
|
-
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
1904
|
-
ariaPlaceholder: string | null;
|
|
1905
|
-
ariaPosInSet: string | null;
|
|
1906
|
-
ariaPressed: string | null;
|
|
1907
|
-
ariaReadOnly: string | null;
|
|
1908
|
-
ariaRelevant: string | null;
|
|
1909
|
-
ariaRequired: string | null;
|
|
1910
|
-
ariaRoleDescription: string | null;
|
|
1911
|
-
ariaRowCount: string | null;
|
|
1912
|
-
ariaRowIndex: string | null;
|
|
1913
|
-
ariaRowIndexText: string | null;
|
|
1914
|
-
ariaRowSpan: string | null;
|
|
1915
|
-
ariaSelected: string | null;
|
|
1916
|
-
ariaSetSize: string | null;
|
|
1917
|
-
ariaSort: string | null;
|
|
1918
|
-
ariaValueMax: string | null;
|
|
1919
|
-
ariaValueMin: string | null;
|
|
1920
|
-
ariaValueNow: string | null;
|
|
1921
|
-
ariaValueText: string | null;
|
|
1922
|
-
role: string | null;
|
|
1923
|
-
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
1924
|
-
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
1925
|
-
after(...nodes: (Node | string)[]): void;
|
|
1926
|
-
before(...nodes: (Node | string)[]): void;
|
|
1927
|
-
remove(): void;
|
|
1928
|
-
replaceWith(...nodes: (Node | string)[]): void;
|
|
1929
|
-
readonly nextElementSibling: Element | null;
|
|
1930
|
-
readonly previousElementSibling: Element | null;
|
|
1931
|
-
readonly childElementCount: number;
|
|
1932
|
-
readonly children: HTMLCollection;
|
|
1933
|
-
readonly firstElementChild: Element | null;
|
|
1934
|
-
readonly lastElementChild: Element | null;
|
|
1935
|
-
append(...nodes: (Node | string)[]): void;
|
|
1936
|
-
prepend(...nodes: (Node | string)[]): void;
|
|
1937
|
-
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
1938
|
-
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
1939
|
-
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
1940
|
-
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
1941
|
-
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
1942
|
-
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
1943
|
-
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
1944
|
-
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
1945
|
-
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
1946
|
-
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
1947
|
-
replaceChildren(...nodes: (Node | string)[]): void;
|
|
1948
|
-
readonly assignedSlot: HTMLSlotElement | null;
|
|
1949
1447
|
readonly attributeStyleMap: StylePropertyMap;
|
|
1950
1448
|
get style(): CSSStyleDeclaration;
|
|
1951
1449
|
set style(cssText: string);
|
|
@@ -1953,6 +1451,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1953
1451
|
enterKeyHint: string;
|
|
1954
1452
|
inputMode: string;
|
|
1955
1453
|
readonly isContentEditable: boolean;
|
|
1454
|
+
dispatchEvent(event: Event): boolean;
|
|
1956
1455
|
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
1957
1456
|
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1958
1457
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
@@ -1969,6 +1468,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1969
1468
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1970
1469
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1971
1470
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1471
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1972
1472
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1973
1473
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1974
1474
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1990,7 +1490,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1990
1490
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1991
1491
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
1992
1492
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1993
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
1493
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
1994
1494
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1995
1495
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
1996
1496
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -2053,12 +1553,111 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
2053
1553
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2054
1554
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2055
1555
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1556
|
+
accessKey: string;
|
|
1557
|
+
readonly accessKeyLabel: string;
|
|
1558
|
+
autocapitalize: string;
|
|
1559
|
+
autocorrect: boolean;
|
|
1560
|
+
dir: string;
|
|
1561
|
+
draggable: boolean;
|
|
1562
|
+
hidden: boolean | "until-found";
|
|
1563
|
+
inert: boolean;
|
|
1564
|
+
innerText: string;
|
|
1565
|
+
lang: string;
|
|
1566
|
+
readonly offsetHeight: number;
|
|
1567
|
+
readonly offsetLeft: number;
|
|
1568
|
+
readonly offsetParent: Element | null;
|
|
1569
|
+
readonly offsetTop: number;
|
|
1570
|
+
readonly offsetWidth: number;
|
|
1571
|
+
outerText: string;
|
|
1572
|
+
popover: string | null;
|
|
1573
|
+
spellcheck: boolean;
|
|
1574
|
+
title: string;
|
|
1575
|
+
translate: boolean;
|
|
1576
|
+
writingSuggestions: string;
|
|
1577
|
+
attachInternals(): ElementInternals;
|
|
1578
|
+
click(): void;
|
|
1579
|
+
hidePopover(): void;
|
|
1580
|
+
showPopover(): void;
|
|
1581
|
+
togglePopover(options?: boolean): boolean;
|
|
1582
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1583
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1584
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1585
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2056
1586
|
autofocus: boolean;
|
|
2057
1587
|
readonly dataset: DOMStringMap;
|
|
2058
|
-
nonce
|
|
1588
|
+
nonce: string;
|
|
2059
1589
|
tabIndex: number;
|
|
2060
1590
|
blur(): void;
|
|
2061
1591
|
focus(options?: FocusOptions): void;
|
|
1592
|
+
readonly baseURI: string;
|
|
1593
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1594
|
+
readonly firstChild: ChildNode | null;
|
|
1595
|
+
readonly isConnected: boolean;
|
|
1596
|
+
readonly lastChild: ChildNode | null;
|
|
1597
|
+
readonly nextSibling: ChildNode | null;
|
|
1598
|
+
readonly nodeName: string;
|
|
1599
|
+
readonly nodeType: number;
|
|
1600
|
+
nodeValue: string | null;
|
|
1601
|
+
readonly parentElement: HTMLElement | null;
|
|
1602
|
+
readonly parentNode: ParentNode | null;
|
|
1603
|
+
readonly previousSibling: ChildNode | null;
|
|
1604
|
+
appendChild<T extends Node>(node: T): T;
|
|
1605
|
+
cloneNode(subtree?: boolean): Node;
|
|
1606
|
+
compareDocumentPosition(other: Node): number;
|
|
1607
|
+
contains(other: Node | null): boolean;
|
|
1608
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
1609
|
+
hasChildNodes(): boolean;
|
|
1610
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
1611
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
1612
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
1613
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
1614
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
1615
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
1616
|
+
normalize(): void;
|
|
1617
|
+
removeChild<T extends Node>(child: T): T;
|
|
1618
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
1619
|
+
readonly ELEMENT_NODE: 1;
|
|
1620
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
1621
|
+
readonly TEXT_NODE: 3;
|
|
1622
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
1623
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
1624
|
+
readonly ENTITY_NODE: 6;
|
|
1625
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
1626
|
+
readonly COMMENT_NODE: 8;
|
|
1627
|
+
readonly DOCUMENT_NODE: 9;
|
|
1628
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
1629
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
1630
|
+
readonly NOTATION_NODE: 12;
|
|
1631
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
1632
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
1633
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
1634
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
1635
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
1636
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
1637
|
+
readonly nextElementSibling: Element | null;
|
|
1638
|
+
readonly previousElementSibling: Element | null;
|
|
1639
|
+
readonly childElementCount: number;
|
|
1640
|
+
readonly children: HTMLCollection;
|
|
1641
|
+
readonly firstElementChild: Element | null;
|
|
1642
|
+
readonly lastElementChild: Element | null;
|
|
1643
|
+
append(...nodes: (Node | string)[]): void;
|
|
1644
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
1645
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
1646
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
1647
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
1648
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
1649
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
1650
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
1651
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
1652
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
1653
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
1654
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
1655
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
1656
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
1657
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1658
|
+
readonly $fastController: Controller;
|
|
1659
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
1660
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2062
1661
|
};
|
|
2063
1662
|
} & TBase;
|
|
2064
1663
|
|
|
@@ -2227,8 +1826,8 @@ export declare const resolveAfter: <T = any>(ms: number, valueCreator: () => T)
|
|
|
2227
1826
|
* @public
|
|
2228
1827
|
*/
|
|
2229
1828
|
export declare const ResourceType: {
|
|
2230
|
-
readonly local:
|
|
2231
|
-
readonly remote:
|
|
1829
|
+
readonly local: 'local';
|
|
1830
|
+
readonly remote: 'remote';
|
|
2232
1831
|
};
|
|
2233
1832
|
|
|
2234
1833
|
/**
|