@genesislcap/foundation-utils 15.5.0 → 15.6.1-ts7-migration.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 +240 -240
- 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 +16 -434
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/dts/mixins/pendingState/pendingState.d.ts +165 -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/tsdoc-metadata.json +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 +52 -55
- 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 +1007 -4179
- package/dist/foundation-utils.d.ts +398 -810
- package/package.json +13 -12
|
@@ -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
|
|
@@ -209,7 +207,7 @@ export declare namespace DatabaseAccessResult {
|
|
|
209
207
|
id: string;
|
|
210
208
|
success: boolean;
|
|
211
209
|
}
|
|
212
|
-
|
|
210
|
+
export {};
|
|
213
211
|
}
|
|
214
212
|
|
|
215
213
|
/**
|
|
@@ -225,7 +223,7 @@ export declare namespace DatabaseEvent {
|
|
|
225
223
|
}
|
|
226
224
|
export interface AfterUpdate<T> extends Update<T> {
|
|
227
225
|
}
|
|
228
|
-
|
|
226
|
+
export {};
|
|
229
227
|
}
|
|
230
228
|
|
|
231
229
|
/**
|
|
@@ -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?: {
|
|
@@ -1026,245 +1024,271 @@ export declare const layoutCacheDocument: unique symbol;
|
|
|
1026
1024
|
* @remarks These can be used to control what lifecycle functionality is ran when the elements
|
|
1027
1025
|
* are part of a custom layout. The class itself handles all events
|
|
1028
1026
|
* @privateRemarks
|
|
1029
|
-
* #_ syntax is used for a javascript private method/variable
|
|
1030
|
-
*
|
|
1027
|
+
* #_ syntax is used for a javascript private method/variable.
|
|
1028
|
+
* The return type is annotated explicitly (rather than inferred) because TypeScript's
|
|
1029
|
+
* declaration emit can't represent private members of an anonymous mixin class - the
|
|
1030
|
+
* annotation limits the emitted public surface to {@link LifecycleMixinInstance}.
|
|
1031
|
+
*/
|
|
1032
|
+
export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(Base: T) => T & Constructable<LifecycleMixinInstance>;
|
|
1033
|
+
|
|
1034
|
+
/**
|
|
1035
|
+
* The public surface added by {@link LifecycleMixin}.
|
|
1036
|
+
* @public
|
|
1037
|
+
*/
|
|
1038
|
+
export declare type LifecycleMixinInstance = {
|
|
1039
|
+
cloneNode(deep?: boolean): Node;
|
|
1040
|
+
deepClone(): Node;
|
|
1041
|
+
readonly shouldRunDisconnect: boolean;
|
|
1042
|
+
readonly shouldRunConnect: boolean;
|
|
1043
|
+
connectedCallback(): void;
|
|
1044
|
+
};
|
|
1045
|
+
|
|
1046
|
+
/**
|
|
1047
|
+
* Creates an observer that facilitates the subscription and publication of events.
|
|
1048
|
+
* @public
|
|
1049
|
+
*/
|
|
1050
|
+
export declare type Listener<EventType> = (ev: EventType) => void;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Loads font faces by inserting a style element with the specified font face rules into the document.
|
|
1054
|
+
* @param fontFaceRules - The CSS rules for the font faces.
|
|
1055
|
+
* @param styleElementId - The ID of the style element to insert into the document.
|
|
1056
|
+
* @public
|
|
1057
|
+
*/
|
|
1058
|
+
export declare const loadFontFaces: (fontFaceRules: string, styleElementId: string) => void;
|
|
1059
|
+
|
|
1060
|
+
/**
|
|
1061
|
+
* A logger that extends the `Consola` logger.
|
|
1062
|
+
*
|
|
1063
|
+
* @remarks
|
|
1064
|
+
* This logger is part of the package's API but may still be subject to changes and improvements.
|
|
1065
|
+
*
|
|
1066
|
+
* @public
|
|
1067
|
+
*/
|
|
1068
|
+
export declare interface Logger extends Logger_2 {
|
|
1069
|
+
/**
|
|
1070
|
+
* A logger method for deprecated symbols.
|
|
1071
|
+
*
|
|
1072
|
+
* @remarks
|
|
1073
|
+
* Pair with a deprecated tag. See {@link https://tsdoc.org/pages/tags/deprecated/} for more information.
|
|
1074
|
+
*
|
|
1075
|
+
* @example
|
|
1076
|
+
* ```ts
|
|
1077
|
+
* logger.deprecated('someSymbol');
|
|
1078
|
+
* ```
|
|
1079
|
+
*
|
|
1080
|
+
* @example With a custom instruction and target removal version.
|
|
1081
|
+
* ```ts
|
|
1082
|
+
* logger.deprecated('routeButtons', 'Use the default slot instead.', '20.0.0');
|
|
1083
|
+
* ```
|
|
1084
|
+
*
|
|
1085
|
+
* @param symbol - The deprecated symbol.
|
|
1086
|
+
* @param instruction - An optional alternative instruction. Defaults to `Consult docs for better alternative.`
|
|
1087
|
+
* @param removalVersionTarget - An optional target removal version number.
|
|
1088
|
+
*/
|
|
1089
|
+
deprecated(symbol: string, instruction?: string, removalVersionTarget?: string): void;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
/**
|
|
1093
|
+
* Logger for the foundation-utils package
|
|
1094
|
+
* @public
|
|
1095
|
+
*/
|
|
1096
|
+
export declare const logger: Logger_2;
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Options for creating a logger.
|
|
1100
|
+
* @public
|
|
1101
|
+
*/
|
|
1102
|
+
export declare interface LoggerOptions extends LoggerOptions_2 {
|
|
1103
|
+
}
|
|
1104
|
+
|
|
1105
|
+
/**
|
|
1106
|
+
* @public
|
|
1107
|
+
*/
|
|
1108
|
+
export declare let LOGIN_DETAILS_URL: string;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* @public
|
|
1112
|
+
*/
|
|
1113
|
+
export declare let LOGIN_REFRESH_URL: string;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* @public
|
|
1117
|
+
*/
|
|
1118
|
+
export declare let LOGIN_URL: string;
|
|
1119
|
+
|
|
1120
|
+
export { LogLevel }
|
|
1121
|
+
|
|
1122
|
+
/**
|
|
1123
|
+
* @public
|
|
1124
|
+
*/
|
|
1125
|
+
export declare let LOGOUT_URL: string;
|
|
1126
|
+
|
|
1127
|
+
/**
|
|
1128
|
+
* @internal
|
|
1129
|
+
*/
|
|
1130
|
+
declare type LowercaseOperation = 'insert' | 'modify' | 'delete';
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Takes in a valid response from `connect.getJsonSchema(resourceName)` and maps it to
|
|
1134
|
+
* a JsonSchema extended with the genesisType metadata for a field
|
|
1135
|
+
*
|
|
1136
|
+
* @public
|
|
1137
|
+
*/
|
|
1138
|
+
export declare function mapGenesisJsonSchema(jsonSchemResponse: {
|
|
1139
|
+
OUTBOUND: JSONSchema7;
|
|
1140
|
+
}): Genesis.JSONSchema7;
|
|
1141
|
+
|
|
1142
|
+
/**
|
|
1143
|
+
* Maps fields contained in a JSON schema block enhanced with genesisType metadata
|
|
1144
|
+
* to the field shape required by the expression builder component.
|
|
1145
|
+
*
|
|
1146
|
+
* Only sets the properties that are *required*. Optional properties, such as
|
|
1147
|
+
* `defaultValue`, must be explicitly set by the user separately.
|
|
1148
|
+
*
|
|
1149
|
+
* @example
|
|
1150
|
+
* ```ts
|
|
1151
|
+
* import { mapGenesisJsonSchema, mapJsonSchemaFieldToExprBuilderField } from '@genesislcap/foundation-utils';
|
|
1152
|
+
*
|
|
1153
|
+
* const response = await connect.getJsonSchema("RESOURCE_NAME");
|
|
1154
|
+
* // Assuming the response is valid, requires checking
|
|
1155
|
+
* const schema = mapGenesisJsonSchema(response);
|
|
1156
|
+
* const fields = Object.entries(schema.properties).map(mapJsonSchemaFieldToExprBuilderField);
|
|
1157
|
+
* ```
|
|
1158
|
+
* @public
|
|
1159
|
+
*/
|
|
1160
|
+
export declare function mapJsonSchemaFieldToExprBuilderField([name, schema]: [
|
|
1161
|
+
string,
|
|
1162
|
+
Genesis.FieldJsonSchema
|
|
1163
|
+
]): Types.Field | null;
|
|
1164
|
+
|
|
1165
|
+
/**
|
|
1166
|
+
* A no-operation function that executes an optional callback.
|
|
1167
|
+
*
|
|
1168
|
+
* This is a lower-level utility function. For preventing tree-shaking of custom elements,
|
|
1169
|
+
* prefer using {@link avoidTreeShaking} which provides a more explicit API.
|
|
1170
|
+
*
|
|
1171
|
+
* @param callback - An optional function to execute for its side effects.
|
|
1172
|
+
* @public
|
|
1173
|
+
*/
|
|
1174
|
+
export declare const noop: (fn?: () => void) => void;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* @public
|
|
1178
|
+
*/
|
|
1179
|
+
export declare class NumberParser {
|
|
1180
|
+
/**
|
|
1181
|
+
* reference: https://observablehq.com/\@mbostock/localized-number-parsing
|
|
1182
|
+
* @internal
|
|
1183
|
+
*/
|
|
1184
|
+
private _group;
|
|
1185
|
+
private _decimal;
|
|
1186
|
+
private _separator;
|
|
1187
|
+
private _numeral;
|
|
1188
|
+
private _index;
|
|
1189
|
+
constructor(locale: string);
|
|
1190
|
+
parse(localeNumber: string): number;
|
|
1191
|
+
hasSeparator(localeNumber: string): boolean;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
/**
|
|
1195
|
+
* @privateRemarks
|
|
1196
|
+
* Code borrowed from fast-element v2. We can remove post upgrade.
|
|
1197
|
+
*
|
|
1198
|
+
* @example
|
|
1199
|
+
* Reactive visitor example.
|
|
1200
|
+
* ```ts
|
|
1201
|
+
* const makeObserverVisitor: ObjectVisitor<undefined> = {
|
|
1202
|
+
* visitObject: noop,
|
|
1203
|
+
* visitArray: noop,
|
|
1204
|
+
* visitProperty(object: any, propertyName: string, value: any): void {
|
|
1205
|
+
* Reflect.defineProperty(object, propertyName, {
|
|
1206
|
+
* enumerable: true,
|
|
1207
|
+
* get() {
|
|
1208
|
+
* Observable.track(object, propertyName);
|
|
1209
|
+
* return value;
|
|
1210
|
+
* },
|
|
1211
|
+
* set(newValue: any) {
|
|
1212
|
+
* if (value !== newValue) {
|
|
1213
|
+
* value = newValue;
|
|
1214
|
+
* Observable.notify(object, propertyName);
|
|
1215
|
+
* }
|
|
1216
|
+
* },
|
|
1217
|
+
* });
|
|
1218
|
+
* },
|
|
1219
|
+
* };
|
|
1220
|
+
* ```
|
|
1221
|
+
*
|
|
1222
|
+
* @beta
|
|
1223
|
+
*/
|
|
1224
|
+
export declare interface ObjectVisitor<TVisitorData> {
|
|
1225
|
+
visitObject(object: any, data: TVisitorData): void;
|
|
1226
|
+
visitArray(array: any[], data: TVisitorData): void;
|
|
1227
|
+
visitProperty(object: any, key: PropertyKey, value: any, data: TVisitorData): void;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* Represents an event observer that manages the subscription and publication of events.
|
|
1232
|
+
* @public
|
|
1233
|
+
*/
|
|
1234
|
+
export declare interface Observer<EventType> {
|
|
1235
|
+
subscribe: Subscribe<EventType>;
|
|
1236
|
+
publish: Publish<EventType>;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
/**
|
|
1240
|
+
* Opens a new browser window with the specified URL, target, width, and height.
|
|
1241
|
+
* @param urlNavigate - The URL to navigate to.
|
|
1242
|
+
* @param target - The name of the new window.
|
|
1243
|
+
* @param popUpWidth - The width of the new window (optional).
|
|
1244
|
+
* @param popUpHeight - The height of the new window (optional).
|
|
1245
|
+
* @returns A reference to the new window.
|
|
1246
|
+
* @public
|
|
1247
|
+
*/
|
|
1248
|
+
export declare const openPopup: (urlNavigate: string, target: string, popUpWidth?: number, popUpHeight?: number) => Window;
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* The `PendingState` mixin.
|
|
1252
|
+
* @public
|
|
1031
1253
|
*/
|
|
1032
|
-
export declare const
|
|
1254
|
+
export declare const PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
1033
1255
|
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
|
-
/**
|
|
1042
|
-
* Track first loaded to allow us to always run the connect lifecycle on the first load
|
|
1043
|
-
* @internal
|
|
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
1256
|
/**
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
* and then manually clone the children too so they can intercept with an overriden cloneNode
|
|
1074
|
-
* if they want to
|
|
1257
|
+
* The number of promises that are currently pending.
|
|
1258
|
+
* @public
|
|
1075
1259
|
*/
|
|
1076
|
-
|
|
1260
|
+
pendingCount: number;
|
|
1077
1261
|
/**
|
|
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
|
|
1262
|
+
* The number of promises that have been resolved.
|
|
1263
|
+
* @public
|
|
1083
1264
|
*/
|
|
1084
|
-
|
|
1265
|
+
resolvedCount: number;
|
|
1085
1266
|
/**
|
|
1086
|
-
*
|
|
1087
|
-
* @
|
|
1267
|
+
* A boolean indicating whether there are any pending children.
|
|
1268
|
+
* @public
|
|
1088
1269
|
*/
|
|
1089
|
-
|
|
1270
|
+
hasPendingChildren: boolean;
|
|
1090
1271
|
/**
|
|
1091
|
-
*
|
|
1092
|
-
* @
|
|
1093
|
-
* @privateRemarks
|
|
1094
|
-
* For now its just the same logic as shouldRunDisconnect
|
|
1272
|
+
* Gets the progress of the pending promises as a percentage between 0 and 1.
|
|
1273
|
+
* @public
|
|
1095
1274
|
*/
|
|
1096
|
-
get
|
|
1097
|
-
#_blockLifecycleDueToTokenChange(lifecycleType: Lifecycletype): boolean;
|
|
1275
|
+
get progress(): number;
|
|
1098
1276
|
/**
|
|
1277
|
+
* Called when the element is connected to the DOM.
|
|
1099
1278
|
* @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
1279
|
*/
|
|
1105
|
-
#_tryFindContainingLayout(e: Element): Container;
|
|
1106
1280
|
connectedCallback(): void;
|
|
1107
|
-
|
|
1108
|
-
|
|
1281
|
+
/**
|
|
1282
|
+
* Called when the element is disconnected from the DOM.
|
|
1283
|
+
* @internal
|
|
1284
|
+
*/
|
|
1109
1285
|
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;
|
|
1286
|
+
/**
|
|
1287
|
+
* Handles the `pending-state` event.
|
|
1288
|
+
* @param event - The `pending-state` event.
|
|
1289
|
+
* @internal
|
|
1290
|
+
*/
|
|
1291
|
+
onPendingState({ detail }: PendingStateEvent): Promise<void>;
|
|
1268
1292
|
ariaActiveDescendantElement: Element | null;
|
|
1269
1293
|
ariaAtomic: string | null;
|
|
1270
1294
|
ariaAutoComplete: string | null;
|
|
@@ -1287,459 +1311,42 @@ export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(B
|
|
|
1287
1311
|
ariaFlowToElements: ReadonlyArray<Element> | null;
|
|
1288
1312
|
ariaHasPopup: string | null;
|
|
1289
1313
|
ariaHidden: string | null;
|
|
1290
|
-
ariaInvalid: string | null;
|
|
1291
|
-
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;
|
|
1314
|
+
ariaInvalid: string | null;
|
|
1315
|
+
ariaKeyShortcuts: string | null;
|
|
1316
|
+
ariaLabel: string | null;
|
|
1317
|
+
ariaLabelledByElements: ReadonlyArray<Element> | null;
|
|
1318
|
+
ariaLevel: string | null;
|
|
1319
|
+
ariaLive: string | null;
|
|
1320
|
+
ariaModal: string | null;
|
|
1321
|
+
ariaMultiLine: string | null;
|
|
1322
|
+
ariaMultiSelectable: string | null;
|
|
1323
|
+
ariaOrientation: string | null;
|
|
1324
|
+
ariaOwnsElements: ReadonlyArray<Element> | null;
|
|
1325
|
+
ariaPlaceholder: string | null;
|
|
1326
|
+
ariaPosInSet: string | null;
|
|
1327
|
+
ariaPressed: string | null;
|
|
1328
|
+
ariaReadOnly: string | null;
|
|
1329
|
+
ariaRelevant: string | null;
|
|
1330
|
+
ariaRequired: string | null;
|
|
1331
|
+
ariaRoleDescription: string | null;
|
|
1332
|
+
ariaRowCount: string | null;
|
|
1333
|
+
ariaRowIndex: string | null;
|
|
1334
|
+
ariaRowIndexText: string | null;
|
|
1335
|
+
ariaRowSpan: string | null;
|
|
1336
|
+
ariaSelected: string | null;
|
|
1337
|
+
ariaSetSize: string | null;
|
|
1338
|
+
ariaSort: string | null;
|
|
1339
|
+
ariaValueMax: string | null;
|
|
1340
|
+
ariaValueMin: string | null;
|
|
1341
|
+
ariaValueNow: string | null;
|
|
1342
|
+
ariaValueText: string | null;
|
|
1343
|
+
role: string | null;
|
|
1344
|
+
animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;
|
|
1345
|
+
getAnimations(options?: GetAnimationsOptions): Animation[];
|
|
1346
|
+
after(...nodes: (Node | string)[]): void;
|
|
1347
|
+
before(...nodes: (Node | string)[]): void;
|
|
1348
|
+
remove(): void;
|
|
1349
|
+
replaceWith(...nodes: (Node | string)[]): void;
|
|
1743
1350
|
readonly attributes: NamedNodeMap;
|
|
1744
1351
|
get classList(): DOMTokenList;
|
|
1745
1352
|
set classList(value: string);
|
|
@@ -1749,6 +1356,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1749
1356
|
readonly clientTop: number;
|
|
1750
1357
|
readonly clientWidth: number;
|
|
1751
1358
|
readonly currentCSSZoom: number;
|
|
1359
|
+
readonly customElementRegistry: CustomElementRegistry | null;
|
|
1752
1360
|
id: string;
|
|
1753
1361
|
innerHTML: string;
|
|
1754
1362
|
readonly localName: string;
|
|
@@ -1799,6 +1407,9 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1799
1407
|
insertAdjacentElement(where: InsertPosition, element: Element): Element | null;
|
|
1800
1408
|
insertAdjacentHTML(position: InsertPosition, string: string): void;
|
|
1801
1409
|
insertAdjacentText(where: InsertPosition, data: string): void;
|
|
1410
|
+
matches<K extends keyof HTMLElementTagNameMap>(selectors: K): this is HTMLElementTagNameMap[K];
|
|
1411
|
+
matches<K extends keyof SVGElementTagNameMap>(selectors: K): this is SVGElementTagNameMap[K];
|
|
1412
|
+
matches<K extends keyof MathMLElementTagNameMap>(selectors: K): this is MathMLElementTagNameMap[K];
|
|
1802
1413
|
matches(selectors: string): boolean;
|
|
1803
1414
|
releasePointerCapture(pointerId: number): void;
|
|
1804
1415
|
removeAttribute(qualifiedName: string): void;
|
|
@@ -1822,130 +1433,6 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1822
1433
|
toggleAttribute(qualifiedName: string, force?: boolean): boolean;
|
|
1823
1434
|
webkitMatchesSelector(selectors: string): boolean;
|
|
1824
1435
|
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
1436
|
readonly attributeStyleMap: StylePropertyMap;
|
|
1950
1437
|
get style(): CSSStyleDeclaration;
|
|
1951
1438
|
set style(cssText: string);
|
|
@@ -1953,6 +1440,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1953
1440
|
enterKeyHint: string;
|
|
1954
1441
|
inputMode: string;
|
|
1955
1442
|
readonly isContentEditable: boolean;
|
|
1443
|
+
dispatchEvent(event: Event): boolean;
|
|
1956
1444
|
onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;
|
|
1957
1445
|
onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
1958
1446
|
onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;
|
|
@@ -1969,6 +1457,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1969
1457
|
onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1970
1458
|
onclick: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1971
1459
|
onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1460
|
+
oncommand: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1972
1461
|
oncontextlost: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1973
1462
|
oncontextmenu: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1974
1463
|
oncontextrestored: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
@@ -1990,7 +1479,7 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
1990
1479
|
onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;
|
|
1991
1480
|
onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;
|
|
1992
1481
|
ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;
|
|
1993
|
-
oninput: ((this: GlobalEventHandlers, ev:
|
|
1482
|
+
oninput: ((this: GlobalEventHandlers, ev: InputEvent) => any) | null;
|
|
1994
1483
|
oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
1995
1484
|
onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
1996
1485
|
onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;
|
|
@@ -2053,12 +1542,111 @@ export declare const PendingState: <TBase extends ConstructablePendingState>(Bas
|
|
|
2053
1542
|
onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2054
1543
|
onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
|
|
2055
1544
|
onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
|
|
1545
|
+
accessKey: string;
|
|
1546
|
+
readonly accessKeyLabel: string;
|
|
1547
|
+
autocapitalize: string;
|
|
1548
|
+
autocorrect: boolean;
|
|
1549
|
+
dir: string;
|
|
1550
|
+
draggable: boolean;
|
|
1551
|
+
hidden: boolean | "until-found";
|
|
1552
|
+
inert: boolean;
|
|
1553
|
+
innerText: string;
|
|
1554
|
+
lang: string;
|
|
1555
|
+
readonly offsetHeight: number;
|
|
1556
|
+
readonly offsetLeft: number;
|
|
1557
|
+
readonly offsetParent: Element | null;
|
|
1558
|
+
readonly offsetTop: number;
|
|
1559
|
+
readonly offsetWidth: number;
|
|
1560
|
+
outerText: string;
|
|
1561
|
+
popover: string | null;
|
|
1562
|
+
spellcheck: boolean;
|
|
1563
|
+
title: string;
|
|
1564
|
+
translate: boolean;
|
|
1565
|
+
writingSuggestions: string;
|
|
1566
|
+
attachInternals(): ElementInternals;
|
|
1567
|
+
click(): void;
|
|
1568
|
+
hidePopover(): void;
|
|
1569
|
+
showPopover(options?: ShowPopoverOptions): void;
|
|
1570
|
+
togglePopover(options?: TogglePopoverOptions | boolean): boolean;
|
|
1571
|
+
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
|
|
1572
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
1573
|
+
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
|
|
1574
|
+
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
2056
1575
|
autofocus: boolean;
|
|
2057
1576
|
readonly dataset: DOMStringMap;
|
|
2058
|
-
nonce
|
|
1577
|
+
nonce: string;
|
|
2059
1578
|
tabIndex: number;
|
|
2060
1579
|
blur(): void;
|
|
2061
1580
|
focus(options?: FocusOptions): void;
|
|
1581
|
+
readonly baseURI: string;
|
|
1582
|
+
readonly childNodes: NodeListOf<ChildNode>;
|
|
1583
|
+
readonly firstChild: ChildNode | null;
|
|
1584
|
+
readonly isConnected: boolean;
|
|
1585
|
+
readonly lastChild: ChildNode | null;
|
|
1586
|
+
readonly nextSibling: ChildNode | null;
|
|
1587
|
+
readonly nodeName: string;
|
|
1588
|
+
readonly nodeType: number;
|
|
1589
|
+
nodeValue: string | null;
|
|
1590
|
+
readonly parentElement: HTMLElement | null;
|
|
1591
|
+
readonly parentNode: ParentNode | null;
|
|
1592
|
+
readonly previousSibling: ChildNode | null;
|
|
1593
|
+
appendChild<T extends Node>(node: T): T;
|
|
1594
|
+
cloneNode(subtree?: boolean): Node;
|
|
1595
|
+
compareDocumentPosition(other: Node): number;
|
|
1596
|
+
contains(other: Node | null): boolean;
|
|
1597
|
+
getRootNode(options?: GetRootNodeOptions): Node;
|
|
1598
|
+
hasChildNodes(): boolean;
|
|
1599
|
+
insertBefore<T extends Node>(node: T, child: Node | null): T;
|
|
1600
|
+
isDefaultNamespace(namespace: string | null): boolean;
|
|
1601
|
+
isEqualNode(otherNode: Node | null): boolean;
|
|
1602
|
+
isSameNode(otherNode: Node | null): boolean;
|
|
1603
|
+
lookupNamespaceURI(prefix: string | null): string | null;
|
|
1604
|
+
lookupPrefix(namespace: string | null): string | null;
|
|
1605
|
+
normalize(): void;
|
|
1606
|
+
removeChild<T extends Node>(child: T): T;
|
|
1607
|
+
replaceChild<T extends Node>(node: Node, child: T): T;
|
|
1608
|
+
readonly ELEMENT_NODE: 1;
|
|
1609
|
+
readonly ATTRIBUTE_NODE: 2;
|
|
1610
|
+
readonly TEXT_NODE: 3;
|
|
1611
|
+
readonly CDATA_SECTION_NODE: 4;
|
|
1612
|
+
readonly ENTITY_REFERENCE_NODE: 5;
|
|
1613
|
+
readonly ENTITY_NODE: 6;
|
|
1614
|
+
readonly PROCESSING_INSTRUCTION_NODE: 7;
|
|
1615
|
+
readonly COMMENT_NODE: 8;
|
|
1616
|
+
readonly DOCUMENT_NODE: 9;
|
|
1617
|
+
readonly DOCUMENT_TYPE_NODE: 10;
|
|
1618
|
+
readonly DOCUMENT_FRAGMENT_NODE: 11;
|
|
1619
|
+
readonly NOTATION_NODE: 12;
|
|
1620
|
+
readonly DOCUMENT_POSITION_DISCONNECTED: 1;
|
|
1621
|
+
readonly DOCUMENT_POSITION_PRECEDING: 2;
|
|
1622
|
+
readonly DOCUMENT_POSITION_FOLLOWING: 4;
|
|
1623
|
+
readonly DOCUMENT_POSITION_CONTAINS: 8;
|
|
1624
|
+
readonly DOCUMENT_POSITION_CONTAINED_BY: 16;
|
|
1625
|
+
readonly DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: 32;
|
|
1626
|
+
readonly nextElementSibling: Element | null;
|
|
1627
|
+
readonly previousElementSibling: Element | null;
|
|
1628
|
+
readonly childElementCount: number;
|
|
1629
|
+
readonly children: HTMLCollection;
|
|
1630
|
+
readonly firstElementChild: Element | null;
|
|
1631
|
+
readonly lastElementChild: Element | null;
|
|
1632
|
+
append(...nodes: (Node | string)[]): void;
|
|
1633
|
+
moveBefore(node: Node, child: Node | null): void;
|
|
1634
|
+
prepend(...nodes: (Node | string)[]): void;
|
|
1635
|
+
querySelector<K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null;
|
|
1636
|
+
querySelector<K extends keyof SVGElementTagNameMap>(selectors: K): SVGElementTagNameMap[K] | null;
|
|
1637
|
+
querySelector<K extends keyof MathMLElementTagNameMap>(selectors: K): MathMLElementTagNameMap[K] | null;
|
|
1638
|
+
querySelector<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): HTMLElementDeprecatedTagNameMap[K] | null;
|
|
1639
|
+
querySelector<E extends Element = Element>(selectors: string): E | null;
|
|
1640
|
+
querySelectorAll<K extends keyof HTMLElementTagNameMap>(selectors: K): NodeListOf<HTMLElementTagNameMap[K]>;
|
|
1641
|
+
querySelectorAll<K extends keyof SVGElementTagNameMap>(selectors: K): NodeListOf<SVGElementTagNameMap[K]>;
|
|
1642
|
+
querySelectorAll<K extends keyof MathMLElementTagNameMap>(selectors: K): NodeListOf<MathMLElementTagNameMap[K]>;
|
|
1643
|
+
querySelectorAll<K extends keyof HTMLElementDeprecatedTagNameMap>(selectors: K): NodeListOf<HTMLElementDeprecatedTagNameMap[K]>;
|
|
1644
|
+
querySelectorAll<E extends Element = Element>(selectors: string): NodeListOf<E>;
|
|
1645
|
+
replaceChildren(...nodes: (Node | string)[]): void;
|
|
1646
|
+
readonly assignedSlot: HTMLSlotElement | null;
|
|
1647
|
+
readonly $fastController: Controller;
|
|
1648
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
1649
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
2062
1650
|
};
|
|
2063
1651
|
} & TBase;
|
|
2064
1652
|
|
|
@@ -2227,8 +1815,8 @@ export declare const resolveAfter: <T = any>(ms: number, valueCreator: () => T)
|
|
|
2227
1815
|
* @public
|
|
2228
1816
|
*/
|
|
2229
1817
|
export declare const ResourceType: {
|
|
2230
|
-
readonly local:
|
|
2231
|
-
readonly remote:
|
|
1818
|
+
readonly local: 'local';
|
|
1819
|
+
readonly remote: 'remote';
|
|
2232
1820
|
};
|
|
2233
1821
|
|
|
2234
1822
|
/**
|