@genesislcap/foundation-utils 14.22.1 → 14.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/custom-elements.json +286 -169
- package/dist/dts/data/inMemoryDatabase.d.ts +17 -0
- package/dist/dts/data/inMemoryDatabase.d.ts.map +1 -1
- package/dist/dts/directives/sync/sync.d.ts +16 -0
- package/dist/dts/directives/sync/sync.d.ts.map +1 -1
- package/dist/dts/directives/when-else/when-else.d.ts +1 -1
- package/dist/dts/env/is-dev.d.ts +4 -0
- package/dist/dts/env/is-dev.d.ts.map +1 -1
- package/dist/dts/env/variables.d.ts +37 -0
- package/dist/dts/env/variables.d.ts.map +1 -1
- package/dist/dts/formatters/datetime.d.ts +2 -2
- package/dist/dts/logger/logger.d.ts +29 -3
- package/dist/dts/logger/logger.d.ts.map +1 -1
- package/dist/dts/mappers/dto/serverRow.d.ts +46 -14
- package/dist/dts/mappers/dto/serverRow.d.ts.map +1 -1
- package/dist/dts/mappers/dto/types.d.ts +3 -0
- package/dist/dts/mappers/dto/types.d.ts.map +1 -1
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts +11 -5
- package/dist/dts/mixins/lifecycle/lifecycle.d.ts.map +1 -1
- package/dist/dts/mixins/pendingState/pendingState.d.ts +55 -9
- package/dist/dts/mixins/pendingState/pendingState.d.ts.map +1 -1
- package/dist/dts/observer/observer.d.ts +19 -4
- package/dist/dts/observer/observer.d.ts.map +1 -1
- package/dist/dts/resource/types.d.ts +2 -0
- package/dist/dts/resource/types.d.ts.map +1 -1
- package/dist/dts/serializers/json/json.d.ts +28 -0
- package/dist/dts/serializers/json/json.d.ts.map +1 -1
- package/dist/dts/styles/color.d.ts +4 -0
- package/dist/dts/styles/color.d.ts.map +1 -1
- package/dist/dts/styles/dom.d.ts +13 -0
- package/dist/dts/styles/dom.d.ts.map +1 -1
- package/dist/dts/styles/slotted-styles.d.ts +13 -0
- package/dist/dts/styles/slotted-styles.d.ts.map +1 -1
- package/dist/dts/styles/typography.d.ts +27 -1
- package/dist/dts/styles/typography.d.ts.map +1 -1
- package/dist/dts/tsdoc-metadata.json +11 -0
- package/dist/dts/uuid/uuid.d.ts +22 -3
- package/dist/dts/uuid/uuid.d.ts.map +1 -1
- package/dist/dts/window/window.d.ts +27 -0
- package/dist/dts/window/window.d.ts.map +1 -1
- package/dist/esm/data/inMemoryDatabase.js +1 -0
- package/dist/esm/directives/sync/sync.js +8 -0
- package/dist/esm/directives/when-else/when-else.js +1 -1
- package/dist/esm/env/is-dev.js +4 -0
- package/dist/esm/env/variables.js +37 -0
- package/dist/esm/formatters/datetime.js +2 -2
- package/dist/esm/logger/logger.js +11 -0
- package/dist/esm/mappers/dto/serverRow.js +20 -0
- package/dist/esm/mixins/pendingState/pendingState.js +37 -1
- package/dist/esm/observer/observer.js +5 -1
- package/dist/esm/resource/types.js +1 -0
- package/dist/esm/serializers/json/json.js +14 -0
- package/dist/esm/styles/color.js +11 -1
- package/dist/esm/styles/dom.js +13 -0
- package/dist/esm/styles/slotted-styles.js +13 -0
- package/dist/esm/styles/typography.js +26 -0
- package/dist/esm/uuid/uuid.js +20 -11
- package/dist/esm/window/window.js +27 -0
- package/dist/foundation-utils.api.json +10996 -0
- package/dist/foundation-utils.d.ts +1462 -0
- package/docs/api/foundation-utils.activecolorscheme.md +13 -0
- package/docs/api/foundation-utils.api_host.md +18 -0
- package/docs/api/foundation-utils.assuredesignsystem.md +23 -0
- package/docs/api/foundation-utils.constructablelifecyclehandler.md +12 -0
- package/docs/api/foundation-utils.constructablependingstate.md +13 -0
- package/docs/api/foundation-utils.conversiontype.md +13 -0
- package/docs/api/foundation-utils.createlogger.md +27 -0
- package/docs/api/foundation-utils.createobserver.md +13 -0
- package/docs/api/foundation-utils.database.create.md +22 -0
- package/docs/api/foundation-utils.database.delete.md +22 -0
- package/docs/api/foundation-utils.database.isworking.md +11 -0
- package/docs/api/foundation-utils.database.md +32 -0
- package/docs/api/foundation-utils.database.onafterupdate.md +22 -0
- package/docs/api/foundation-utils.database.onbeforeupdate.md +22 -0
- package/docs/api/foundation-utils.database.read.md +22 -0
- package/docs/api/foundation-utils.database.update.md +23 -0
- package/docs/api/foundation-utils.database.visit.md +22 -0
- package/docs/api/foundation-utils.databaseaccessresult.access.md +18 -0
- package/docs/api/foundation-utils.databaseaccessresult.access.value.md +11 -0
- package/docs/api/foundation-utils.databaseaccessresult.create.md +13 -0
- package/docs/api/foundation-utils.databaseaccessresult.delete.id.md +11 -0
- package/docs/api/foundation-utils.databaseaccessresult.delete.md +19 -0
- package/docs/api/foundation-utils.databaseaccessresult.delete.success.md +11 -0
- package/docs/api/foundation-utils.databaseaccessresult.md +24 -0
- package/docs/api/foundation-utils.databaseaccessresult.read.md +13 -0
- package/docs/api/foundation-utils.databaseaccessresult.update.md +13 -0
- package/docs/api/foundation-utils.databaseevent.afterupdate.md +13 -0
- package/docs/api/foundation-utils.databaseevent.beforeupdate.md +19 -0
- package/docs/api/foundation-utils.databaseevent.beforeupdate.newvalue.md +11 -0
- package/docs/api/foundation-utils.databaseevent.md +22 -0
- package/docs/api/foundation-utils.databaseevent.update.md +18 -0
- package/docs/api/foundation-utils.databaseevent.update.value.md +11 -0
- package/docs/api/foundation-utils.databaserecord.id.md +11 -0
- package/docs/api/foundation-utils.databaserecord.md +20 -0
- package/docs/api/foundation-utils.default_organisation.md +18 -0
- package/docs/api/foundation-utils.default_password.md +18 -0
- package/docs/api/foundation-utils.default_user.md +18 -0
- package/docs/api/foundation-utils.defaulteventmap.md +13 -0
- package/docs/api/foundation-utils.defaultloggeroptions.md +13 -0
- package/docs/api/foundation-utils.defaultserverrowdtomapper.fromdto.md +13 -0
- package/docs/api/foundation-utils.defaultserverrowdtomapper.md +22 -0
- package/docs/api/foundation-utils.defaultserverrowdtomapper.todto.md +13 -0
- package/docs/api/foundation-utils.designsystemmodule.md +19 -0
- package/docs/api/foundation-utils.designsystemmodule.providedesignsystem.md +23 -0
- package/docs/api/foundation-utils.designsystemresource.md +14 -0
- package/docs/api/foundation-utils.dtomapper.fromargs.md +11 -0
- package/docs/api/foundation-utils.dtomapper.fromdto.md +11 -0
- package/docs/api/foundation-utils.dtomapper.md +21 -0
- package/docs/api/foundation-utils.dtomapper.todto.md +11 -0
- package/docs/api/foundation-utils.eventname.md +13 -0
- package/docs/api/foundation-utils.fontstyle.md +21 -0
- package/docs/api/foundation-utils.fontweight.md +25 -0
- package/docs/api/foundation-utils.force_http.md +18 -0
- package/docs/api/foundation-utils.formatdatetimestamp.md +24 -0
- package/docs/api/foundation-utils.formatdatetimetimestamp.md +24 -0
- package/docs/api/foundation-utils.formattimestamp.md +25 -0
- package/docs/api/foundation-utils.getfontmixin.md +13 -0
- package/docs/api/foundation-utils.http_config.md +18 -0
- package/docs/api/foundation-utils.iniframe.md +13 -0
- package/docs/api/foundation-utils.inmemorydatabase._constructor_.md +20 -0
- package/docs/api/foundation-utils.inmemorydatabase.create.md +22 -0
- package/docs/api/foundation-utils.inmemorydatabase.delete.md +22 -0
- package/docs/api/foundation-utils.inmemorydatabase.isworking.md +11 -0
- package/docs/api/foundation-utils.inmemorydatabase.md +39 -0
- package/docs/api/foundation-utils.inmemorydatabase.onafterupdate.md +22 -0
- package/docs/api/foundation-utils.inmemorydatabase.onbeforeupdate.md +22 -0
- package/docs/api/foundation-utils.inmemorydatabase.read.md +22 -0
- package/docs/api/foundation-utils.inmemorydatabase.update.md +23 -0
- package/docs/api/foundation-utils.inmemorydatabase.visit.md +22 -0
- package/docs/api/foundation-utils.insertdocumentcssrule.md +13 -0
- package/docs/api/foundation-utils.insertdocumentlink.md +13 -0
- package/docs/api/foundation-utils.insymphonydesktop.md +13 -0
- package/docs/api/foundation-utils.isdev.md +13 -0
- package/docs/api/foundation-utils.jsonserializer.deserialize.md +26 -0
- package/docs/api/foundation-utils.jsonserializer.deserialize_1.md +26 -0
- package/docs/api/foundation-utils.jsonserializer.deserialize_2.md +26 -0
- package/docs/api/foundation-utils.jsonserializer.md +13 -0
- package/docs/api/foundation-utils.jsonserializer.serialize.md +26 -0
- package/docs/api/foundation-utils.layoutcachedocument.md +13 -0
- package/docs/api/foundation-utils.lifecyclemixin.md +342 -0
- package/docs/api/foundation-utils.listener.md +13 -0
- package/docs/api/foundation-utils.loadfontfaces.md +13 -0
- package/docs/api/foundation-utils.logger.deprecated.md +45 -0
- package/docs/api/foundation-utils.logger.md +25 -0
- package/docs/api/foundation-utils.loggeroptions.md +15 -0
- package/docs/api/foundation-utils.md +111 -0
- package/docs/api/foundation-utils.observer.md +21 -0
- package/docs/api/foundation-utils.observer.publish.md +11 -0
- package/docs/api/foundation-utils.observer.subscribe.md +11 -0
- package/docs/api/foundation-utils.openpopup.md +13 -0
- package/docs/api/foundation-utils.pendingstate.md +334 -0
- package/docs/api/foundation-utils.pendingstateerrorevent.md +13 -0
- package/docs/api/foundation-utils.pendingstateevent.md +13 -0
- package/docs/api/foundation-utils.pendingstateevents.md +21 -0
- package/docs/api/foundation-utils.popup_default_height.md +13 -0
- package/docs/api/foundation-utils.popup_default_width.md +13 -0
- package/docs/api/foundation-utils.publish.md +13 -0
- package/docs/api/foundation-utils.renderonchange.md +51 -0
- package/docs/api/foundation-utils.resourcetype.md +16 -0
- package/docs/api/foundation-utils.respondtovisibility.md +13 -0
- package/docs/api/foundation-utils.serverrowdto.md +18 -0
- package/docs/api/foundation-utils.serverrowdtomapper.md +13 -0
- package/docs/api/foundation-utils.serverrowentity.md +18 -0
- package/docs/api/foundation-utils.slottedstyles.md +27 -0
- package/docs/api/foundation-utils.slottedstyles.styles.md +13 -0
- package/docs/api/foundation-utils.slottedstyles.styleschanged.md +25 -0
- package/docs/api/foundation-utils.socket_ext.md +18 -0
- package/docs/api/foundation-utils.subscribe.md +15 -0
- package/docs/api/foundation-utils.sync.md +27 -0
- package/docs/api/foundation-utils.typerampvalues.md +22 -0
- package/docs/api/foundation-utils.uuid.createid.md +26 -0
- package/docs/api/foundation-utils.uuid.createremoteid.md +26 -0
- package/docs/api/foundation-utils.uuid.md +13 -0
- package/docs/api/foundation-utils.uuidconfig.md +13 -0
- package/docs/api/foundation-utils.whenelse.md +26 -0
- package/docs/api/index.md +12 -0
- package/docs/api-report.md +1075 -0
- package/package.json +6 -9
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Listener } from '../observer';
|
|
2
2
|
import { UUID } from '../uuid';
|
|
3
|
+
/**
|
|
4
|
+
* Namespace for database events.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
3
7
|
export declare namespace DatabaseEvent {
|
|
4
8
|
interface Update<T> {
|
|
5
9
|
value: T;
|
|
@@ -11,6 +15,10 @@ export declare namespace DatabaseEvent {
|
|
|
11
15
|
}
|
|
12
16
|
export {};
|
|
13
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* Namespace for database access result types.
|
|
20
|
+
* @public
|
|
21
|
+
*/
|
|
14
22
|
export declare namespace DatabaseAccessResult {
|
|
15
23
|
interface Access<T> {
|
|
16
24
|
value: T;
|
|
@@ -27,9 +35,17 @@ export declare namespace DatabaseAccessResult {
|
|
|
27
35
|
}
|
|
28
36
|
export {};
|
|
29
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Represents a database record.
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
30
42
|
export interface DatabaseRecord {
|
|
31
43
|
id: string;
|
|
32
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Represents a database with basic CRUD operations.
|
|
47
|
+
* @public
|
|
48
|
+
*/
|
|
33
49
|
export interface Database<T extends DatabaseRecord> {
|
|
34
50
|
isWorking: boolean;
|
|
35
51
|
create(newValue: Omit<T, 'id'>): Promise<DatabaseAccessResult.Create<T>>;
|
|
@@ -42,6 +58,7 @@ export interface Database<T extends DatabaseRecord> {
|
|
|
42
58
|
}
|
|
43
59
|
/**
|
|
44
60
|
* An in memory database of specific DatabaseRecord types.
|
|
61
|
+
* @public
|
|
45
62
|
*/
|
|
46
63
|
export declare class InMemoryDatabase<T extends DatabaseRecord> implements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AC,GAAG,MAAM,IAAI;CAGnF"}
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { Binding, CaptureType } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* Represents the possible types of value conversion for data synchronization.
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
2
6
|
export type ConversionType = 'string' | 'number' | 'time' | 'boolean';
|
|
7
|
+
/**
|
|
8
|
+
* Represents the possible event names for data synchronization.
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
3
11
|
export type EventName = 'input' | 'change' | 'default';
|
|
12
|
+
/**
|
|
13
|
+
* A map that associates specific HTML element tags with their corresponding default event names.
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
4
16
|
export declare const defaultEventMap: Map<string, EventName>;
|
|
17
|
+
/**
|
|
18
|
+
* Creates a synchronization directive that binds a data source to an HTML element,
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
5
21
|
export declare function sync<TSource = any, TReturn = any>(binding: Binding<TSource, TReturn>, conversionType?: ConversionType, eventName?: EventName, keyAttr?: string): CaptureType<TSource>;
|
|
6
22
|
//# sourceMappingURL=sync.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/directives/sync/sync.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAEP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvD,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAOjD,CAAC;AAiGH,wBAAgB,IAAI,CAAC,OAAO,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,EAC/C,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,EAClC,cAAc,GAAE,cAAyB,EACzC,SAAS,GAAE,SAAqB,EAChC,OAAO,CAAC,EAAE,MAAM,GACf,WAAW,CAAC,OAAO,CAAC,CAEtB"}
|
|
1
|
+
{"version":3,"file":"sync.d.ts","sourceRoot":"","sources":["../../../../src/directives/sync/sync.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EAEP,WAAW,EAGZ,MAAM,yBAAyB,CAAC;AAEjC;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAEtE;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvD;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAOjD,CAAC;AAiGH;;;GAGG;AACH,wBAAgB,IAAI,CAAC,OAAO,GAAG,GAAG,EAAE,OAAO,GAAG,GAAG,EAC/C,OAAO,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,EAClC,cAAc,GAAE,cAAyB,EACzC,SAAS,GAAE,SAAqB,EAChC,OAAO,CAAC,EAAE,MAAM,GACf,WAAW,CAAC,OAAO,CAAC,CAEtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Binding, CaptureType, SyntheticViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
type WhenTemplate<TSource> = SyntheticViewTemplate | Binding<TSource, SyntheticViewTemplate>;
|
|
3
3
|
/**
|
|
4
|
-
* Directive that allows supplying an "else" template to the traditional {@link
|
|
4
|
+
* Directive that allows supplying an "else" template to the traditional {@link https://www.fast.design/docs/api/fast-element.when/#when-function} directive
|
|
5
5
|
*
|
|
6
6
|
* @param binding - The condition to test for rendering.
|
|
7
7
|
* @param trueTemplateOrTemplateBinding - The template or a binding that gets the template to render when the condition is true.
|
package/dist/dts/env/is-dev.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-dev.d.ts","sourceRoot":"","sources":["../../../src/env/is-dev.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,eAAwE,CAAC"}
|
|
1
|
+
{"version":3,"file":"is-dev.d.ts","sourceRoot":"","sources":["../../../src/env/is-dev.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,KAAK,eAAwE,CAAC"}
|
|
@@ -1,15 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Genesis Server (host0 to establish a connection (WebSocket or HTTP)).
|
|
3
|
+
* Example: wss://localhost:9064
|
|
4
|
+
* @remarks Required.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
1
7
|
declare let _API_HOST: string;
|
|
2
8
|
export { _API_HOST as API_HOST };
|
|
9
|
+
/**
|
|
10
|
+
* The path to a JSON config file for the HTTP mode.
|
|
11
|
+
* @remarks Optional.
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
3
14
|
declare let _FORCE_HTTP: string;
|
|
4
15
|
export { _FORCE_HTTP as FORCE_HTTP };
|
|
16
|
+
/**
|
|
17
|
+
* Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).
|
|
18
|
+
* @remarks Optional.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
5
21
|
declare let _HTTP_CONFIG: string;
|
|
6
22
|
export { _HTTP_CONFIG as HTTP_CONFIG };
|
|
23
|
+
/**
|
|
24
|
+
* The default Organisation value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
|
25
|
+
* @remarks Optional.
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
7
28
|
declare let _DEFAULT_ORGANISATION: string;
|
|
8
29
|
export { _DEFAULT_ORGANISATION as DEFAULT_ORGANISATION };
|
|
30
|
+
/**
|
|
31
|
+
* The default Password value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
|
32
|
+
* @remarks Optional.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
9
35
|
declare let _DEFAULT_PASSWORD: string;
|
|
10
36
|
export { _DEFAULT_PASSWORD as DEFAULT_PASSWORD };
|
|
37
|
+
/**
|
|
38
|
+
* The default Username value, used in auth/login flow [`genesislcap-foundation-login`](https://link-to-docs).
|
|
39
|
+
* @remarks Optional.
|
|
40
|
+
* @public
|
|
41
|
+
*/
|
|
11
42
|
declare let _DEFAULT_USER: string;
|
|
12
43
|
export { _DEFAULT_USER as DEFAULT_USER };
|
|
44
|
+
/**
|
|
45
|
+
* The sub-path used for WebSocket connections.
|
|
46
|
+
* Example: API_HOST + '/' + SOCKET_EXT - wss://localhost:9064/gwf.
|
|
47
|
+
* @remarks Optional. Default is "API_HOST/gwf"
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
13
50
|
declare let _SOCKET_EXT: string;
|
|
14
51
|
export { _SOCKET_EXT as SOCKET_EXT };
|
|
15
52
|
//# sourceMappingURL=variables.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA,QAAA,IAAI,SAAS,EAAE,MAAM,CAAC;AAMtB,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC,QAAA,IAAI,YAAY,EAAE,MAAM,CAAC;AAMzB,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC;AAKvC,QAAA,IAAI,qBAAqB,EAAE,MAAM,CAAC;AAMlC,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC;AAGzD,QAAA,IAAI,iBAAiB,EAAE,MAAM,CAAC;AAM9B,OAAO,EAAE,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;AAGjD,QAAA,IAAI,aAAa,EAAE,MAAM,CAAC;AAM1B,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC;AAGzC,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"variables.d.ts","sourceRoot":"","sources":["../../../src/env/variables.ts"],"names":[],"mappings":"AAIA;;;;;GAKG;AACH,QAAA,IAAI,SAAS,EAAE,MAAM,CAAC;AAMtB,OAAO,EAAE,SAAS,IAAI,QAAQ,EAAE,CAAC;AAGjC;;;;GAIG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC;AAGrC;;;;GAIG;AACH,QAAA,IAAI,YAAY,EAAE,MAAM,CAAC;AAMzB,OAAO,EAAE,YAAY,IAAI,WAAW,EAAE,CAAC;AAKvC;;;;GAIG;AACH,QAAA,IAAI,qBAAqB,EAAE,MAAM,CAAC;AAMlC,OAAO,EAAE,qBAAqB,IAAI,oBAAoB,EAAE,CAAC;AAGzD;;;;GAIG;AACH,QAAA,IAAI,iBAAiB,EAAE,MAAM,CAAC;AAM9B,OAAO,EAAE,iBAAiB,IAAI,gBAAgB,EAAE,CAAC;AAGjD;;;;GAIG;AACH,QAAA,IAAI,aAAa,EAAE,MAAM,CAAC;AAM1B,OAAO,EAAE,aAAa,IAAI,YAAY,EAAE,CAAC;AAGzC;;;;;GAKG;AACH,QAAA,IAAI,WAAW,EAAE,MAAM,CAAC;AAMxB,OAAO,EAAE,WAAW,IAAI,UAAU,EAAE,CAAC"}
|
|
@@ -11,8 +11,8 @@ export declare function formatDateTimeTimestamp(timestamp: number): string;
|
|
|
11
11
|
/**
|
|
12
12
|
* Formats [DATE|DATETIME] Unix Timestamps to readable strings
|
|
13
13
|
* @public
|
|
14
|
-
* @param
|
|
15
|
-
* @param
|
|
14
|
+
* @param timestamp - The UNIX Timestamp.
|
|
15
|
+
* @param withTime - The flag to determine if formatted value should contain 'time' info.
|
|
16
16
|
*/
|
|
17
17
|
export declare function formatTimestamp(timestamp: number, withTime: boolean): string;
|
|
18
18
|
//# sourceMappingURL=datetime.d.ts.map
|
|
@@ -1,10 +1,19 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* WIP Logging abstraction
|
|
3
|
-
*/
|
|
4
1
|
import { Consola, ConsolaOptions } from 'consola';
|
|
5
2
|
export { LogLevel } from 'consola';
|
|
3
|
+
/**
|
|
4
|
+
* Options for creating a logger.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
6
7
|
export interface LoggerOptions extends ConsolaOptions {
|
|
7
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* A logger that extends the `Consola` logger.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* This logger is part of the package's API but may still be subject to changes and improvements.
|
|
14
|
+
*
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
8
17
|
export interface Logger extends Consola {
|
|
9
18
|
/**
|
|
10
19
|
* A logger method for deprecated symbols.
|
|
@@ -28,6 +37,23 @@ export interface Logger extends Consola {
|
|
|
28
37
|
*/
|
|
29
38
|
deprecated(symbol: string, instruction?: string, removalVersionTarget?: string): void;
|
|
30
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* A logger that extends the `Consola` logger.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export interface Logger extends Consola {
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The default logger options.
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
31
50
|
export declare const defaultLoggerOptions: LoggerOptions;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a logger with the given name and options.
|
|
53
|
+
* @param name - The name to give the logger.
|
|
54
|
+
* @param options - The options to use when creating the logger.
|
|
55
|
+
* @returns The resulting logger.
|
|
56
|
+
* @public
|
|
57
|
+
*/
|
|
32
58
|
export declare function createLogger(name: string, options?: LoggerOptions): Logger;
|
|
33
59
|
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../../src/logger/logger.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGlD,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEnC;;;GAGG;AACH,MAAM,WAAW,aAAc,SAAQ,cAAc;CAAG;AACxD;;;;;;;GAOG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;IACrC;;;;;;;;;;;;;;;;;;;OAmBG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACvF;AAGD;;;GAGG;AACH,MAAM,WAAW,MAAO,SAAQ,OAAO;CAAG;AAE1C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,aAElC,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,aAAoC,GAAG,MAAM,CAgBhG"}
|
|
@@ -1,31 +1,63 @@
|
|
|
1
1
|
import type { DTOMapper } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
type LowercaseOperation = 'insert' | 'modify' | 'delete';
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
type UppercaseOperation = Uppercase<LowercaseOperation>;
|
|
10
|
+
/**
|
|
11
|
+
* The data for a server row DTO.
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
2
14
|
export type ServerRowDTO = {
|
|
3
15
|
DETAILS: {
|
|
4
|
-
OPERATION:
|
|
16
|
+
OPERATION: UppercaseOperation;
|
|
5
17
|
ROW_REF: string;
|
|
6
18
|
};
|
|
7
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* The data for a server row entity.
|
|
22
|
+
* @public
|
|
23
|
+
*/
|
|
8
24
|
export type ServerRowEntity = {
|
|
9
25
|
serverRowMetadata: {
|
|
10
|
-
operation:
|
|
26
|
+
operation: LowercaseOperation;
|
|
11
27
|
rowRef: string;
|
|
12
28
|
};
|
|
13
29
|
};
|
|
30
|
+
/**
|
|
31
|
+
* A mapper for converting between server row DTOs and entities.
|
|
32
|
+
* Provides methods to get/set a ServerRow DTO entity mapping.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
14
35
|
export interface ServerRowDTOMapper extends DTOMapper<ServerRowDTO, ServerRowEntity> {
|
|
15
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* The default `ServerRowDTOMapper`.
|
|
39
|
+
* @public
|
|
40
|
+
*/
|
|
16
41
|
export declare class DefaultServerRowDTOMapper implements ServerRowDTOMapper {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Converts a server row DTO to an entity.
|
|
44
|
+
* @param dto - The DTO to convert.
|
|
45
|
+
* @returns The resulting entity.
|
|
46
|
+
* @public
|
|
47
|
+
*/
|
|
48
|
+
fromDTO: (dto: ServerRowDTO) => ServerRowEntity;
|
|
49
|
+
/**
|
|
50
|
+
* Converts a server row entity to a DTO.
|
|
51
|
+
* @param entity - The entity to convert.
|
|
52
|
+
* @returns The resulting DTO.
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
55
|
+
toDTO: (entity: ServerRowEntity) => ServerRowDTO;
|
|
29
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* A DI token used to obtain a `ServerRowDTOMapper` instance.
|
|
59
|
+
* @public
|
|
60
|
+
*/
|
|
30
61
|
export declare const ServerRowDTOMapper: import("@microsoft/fast-foundation").InterfaceSymbol<ServerRowDTOMapper>;
|
|
62
|
+
export {};
|
|
31
63
|
//# sourceMappingURL=serverRow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverRow.d.ts","sourceRoot":"","sources":["../../../../src/mappers/dto/serverRow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE;QACP,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"serverRow.d.ts","sourceRoot":"","sources":["../../../../src/mappers/dto/serverRow.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAEzC;;GAEG;AACH,KAAK,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzD;;GAEG;AACH,KAAK,kBAAkB,GAAG,SAAS,CAAC,kBAAkB,CAAC,CAAC;AAExD;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG;IACzB,OAAO,EAAE;QACP,SAAS,EAAE,kBAAkB,CAAC;QAC9B,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC5B,iBAAiB,EAAE;QACjB,SAAS,EAAE,kBAAkB,CAAC;QAC9B,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,SAAS,CAAC,YAAY,EAAE,eAAe,CAAC;CAAG;AAEvF;;;GAGG;AACH,qBAAa,yBAA0B,YAAW,kBAAkB;IAClE;;;;;OAKG;IACH,OAAO,QAAS,YAAY,KAAG,eAAe,CAK3C;IAEH;;;;;OAKG;IACH,KAAK,WAAY,eAAe,KAAG,YAAY,CAK5C;CACJ;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,0EAE9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/mappers/dto/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS,CAAC,IAAI,EAAE,OAAO;IACtC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IACvC,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC;IAChC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CAC3C"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/mappers/dto/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,SAAS,CAAC,IAAI,EAAE,OAAO;IACtC,QAAQ,CAAC,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IACvC,OAAO,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,OAAO,CAAC;IAChC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CAC3C"}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
import { Constructable, FASTElement } from '@microsoft/fast-element';
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
2
5
|
export type ConstructableLifecycleHandler = Constructable<FASTElement & HTMLElement>;
|
|
3
6
|
/**
|
|
4
7
|
* Minimum interface to interact with FoundationLayout
|
|
5
8
|
* without importing it as a dependency of `@genesislcap/foundation-utils`
|
|
9
|
+
* @internal
|
|
6
10
|
*/
|
|
7
|
-
type FoundationLayoutContainer = {
|
|
11
|
+
export type FoundationLayoutContainer = {
|
|
8
12
|
dragging: boolean;
|
|
9
13
|
hasFirstLoaded: boolean;
|
|
10
14
|
_key: 'foundation-layout';
|
|
@@ -12,14 +16,16 @@ type FoundationLayoutContainer = {
|
|
|
12
16
|
/**
|
|
13
17
|
* Signifies the internal document fragment that stores the master copy
|
|
14
18
|
* of the layout item, not part of the DOM.
|
|
19
|
+
* @internal
|
|
15
20
|
*/
|
|
16
|
-
type LayoutCacheContainer = {
|
|
21
|
+
export type LayoutCacheContainer = {
|
|
17
22
|
_key: 'foundation-layout-cache';
|
|
18
23
|
};
|
|
19
24
|
/**
|
|
20
25
|
* Signifies the element is placed on the DOM, not inside any dynamic layout components
|
|
26
|
+
* @internal
|
|
21
27
|
*/
|
|
22
|
-
type DOMContainer = {
|
|
28
|
+
export type DOMContainer = {
|
|
23
29
|
_key: 'dom';
|
|
24
30
|
};
|
|
25
31
|
type Container = FoundationLayoutContainer | LayoutCacheContainer | DOMContainer;
|
|
@@ -68,8 +74,8 @@ export declare const LifecycleMixin: <T extends ConstructableLifecycleHandler>(B
|
|
|
68
74
|
* @internal
|
|
69
75
|
* Recursive function to try and find containing layout object
|
|
70
76
|
*
|
|
71
|
-
* @returns the layout object casted to the {@link FoundationLayoutContainer} interface if we are in a
|
|
72
|
-
* layout object, {@link LayoutCacheContainer} if the element is in the layout cache, else {@link DOMContainer}.
|
|
77
|
+
* @returns the layout object casted to the {@link @genesislcap/foundation-utils#FoundationLayoutContainer} interface if we are in a
|
|
78
|
+
* layout object, {@link @genesislcap/foundation-utils#LayoutCacheContainer} if the element is in the layout cache, else {@link @genesislcap/foundation-utils#DOMContainer}.
|
|
73
79
|
*/
|
|
74
80
|
"__#1@#_tryFindContainingLayout"(e: Element): Container;
|
|
75
81
|
connectedCallback(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../../src/mixins/lifecycle/lifecycle.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAErE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAM1B,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,mBAAmB,eAAkC,CAAC"}
|
|
@@ -1,37 +1,83 @@
|
|
|
1
1
|
import { Constructable, FASTElement } from '@microsoft/fast-element';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* pending-state custom event which this mixin needs to pick up.
|
|
3
|
+
* The data for a `pending-state` event.
|
|
4
|
+
* @internal
|
|
6
5
|
*/
|
|
7
6
|
declare type PendingStateEventData = {
|
|
8
7
|
promise: Promise<void>;
|
|
9
8
|
};
|
|
9
|
+
/**
|
|
10
|
+
* The data for a `pending-state-error` event.
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
10
13
|
declare type PendingStateErrorEventData = {
|
|
11
14
|
message?: string;
|
|
12
15
|
error: Error;
|
|
13
16
|
};
|
|
17
|
+
/**
|
|
18
|
+
* An enum that defines the names of the events that can be raised by the `PendingState` mixin.
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
14
21
|
export declare enum PendingStateEvents {
|
|
15
22
|
state = "pending-state",
|
|
16
23
|
error = "pending-state-error"
|
|
17
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* A custom event that represents a `pending-state` event.
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
18
29
|
export declare type PendingStateEvent = CustomEvent<PendingStateEventData>;
|
|
30
|
+
/**
|
|
31
|
+
* A custom event that represents a `pending-state-error` event.
|
|
32
|
+
* @public
|
|
33
|
+
*/
|
|
19
34
|
export declare type PendingStateErrorEvent = CustomEvent<PendingStateErrorEventData>;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
}
|
|
35
|
+
/**
|
|
36
|
+
* A mixin that provides functionality for raising `pending-state` events.
|
|
37
|
+
* @public
|
|
38
|
+
*/
|
|
26
39
|
export declare type ConstructablePendingState = Constructable<FASTElement & HTMLElement>;
|
|
40
|
+
/**
|
|
41
|
+
* The `PendingState` mixin.
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
27
44
|
export declare const PendingState: <TBase extends ConstructablePendingState>(Base: TBase) => {
|
|
28
45
|
new (...args: any[]): {
|
|
46
|
+
/**
|
|
47
|
+
* The number of promises that are currently pending.
|
|
48
|
+
* @public
|
|
49
|
+
*/
|
|
29
50
|
pendingCount: number;
|
|
51
|
+
/**
|
|
52
|
+
* The number of promises that have been resolved.
|
|
53
|
+
* @public
|
|
54
|
+
*/
|
|
30
55
|
resolvedCount: number;
|
|
56
|
+
/**
|
|
57
|
+
* A boolean indicating whether there are any pending children.
|
|
58
|
+
* @public
|
|
59
|
+
*/
|
|
31
60
|
hasPendingChildren: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Gets the progress of the pending promises as a percentage between 0 and 1.
|
|
63
|
+
* @public
|
|
64
|
+
*/
|
|
32
65
|
readonly progress: number;
|
|
66
|
+
/**
|
|
67
|
+
* Called when the element is connected to the DOM.
|
|
68
|
+
* @internal
|
|
69
|
+
*/
|
|
33
70
|
connectedCallback(): void;
|
|
71
|
+
/**
|
|
72
|
+
* Called when the element is disconnected from the DOM.
|
|
73
|
+
* @internal
|
|
74
|
+
*/
|
|
34
75
|
disconnectedCallback(): void;
|
|
76
|
+
/**
|
|
77
|
+
* Handles the `pending-state` event.
|
|
78
|
+
* @param event - The `pending-state` event.
|
|
79
|
+
* @internal
|
|
80
|
+
*/
|
|
35
81
|
onPendingState({ detail }: PendingStateEvent): Promise<void>;
|
|
36
82
|
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
37
83
|
$emit(type: string, detail?: any, options?: Omit<CustomEventInit<any>, "detail">): boolean | void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pendingState.d.ts","sourceRoot":"","sources":["../../../../src/mixins/pendingState/pendingState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAGjF
|
|
1
|
+
{"version":3,"file":"pendingState.d.ts","sourceRoot":"","sources":["../../../../src/mixins/pendingState/pendingState.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAc,MAAM,yBAAyB,CAAC;AAGjF;;;GAGG;AACH,OAAO,MAAM,qBAAqB,GAAG;IACnC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,OAAO,MAAM,0BAA0B,GAAG;IACxC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,KAAK,CAAC;CACd,CAAC;AAEF;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,KAAK,kBAAkB;IACvB,KAAK,wBAAwB;CAC9B;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,iBAAiB,GAAG,WAAW,CAAC,qBAAqB,CAAC,CAAC;AAE3E;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,sBAAsB,GAAG,WAAW,CAAC,0BAA0B,CAAC,CAAC;AAErF;;;GAGG;AACH,MAAM,CAAC,OAAO,MAAM,yBAAyB,GAAG,aAAa,CAAC,WAAW,GAAG,WAAW,CAAC,CAAC;AAEzF;;;GAGG;AACH,eAAO,MAAM,YAAY;;QAErB;;;WAGG;;QAGH;;;WAGG;;QAGH;;;WAGG;;QAIH;;;WAGG;;QAKH;;;WAGG;6BACyB,IAAI;QAUhC;;;WAGG;gCAC4B,IAAI;QAMnC;;;;WAIG;mCACqC,iBAAiB,GAAG,QAAQ,IAAI,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAsB5E,CAAC"}
|
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Keeping in simple for now... revisit.
|
|
2
|
+
* Creates an observer that facilitates the subscription and publication of events.
|
|
3
|
+
* @public
|
|
5
4
|
*/
|
|
6
5
|
export type Listener<EventType> = (ev: EventType) => void;
|
|
6
|
+
/**
|
|
7
|
+
* Subscribes a listener function to receive events of a specific type.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
7
10
|
export type Subscribe<EventType> = (listener: Listener<EventType>) => () => void;
|
|
11
|
+
/**
|
|
12
|
+
* Publishes an event of a specific type to all subscribed listeners.
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
8
15
|
export type Publish<EventType> = (event: EventType) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Represents an event observer that manages the subscription and publication of events.
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
9
20
|
export interface Observer<EventType> {
|
|
10
21
|
subscribe: Subscribe<EventType>;
|
|
11
22
|
publish: Publish<EventType>;
|
|
12
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* Creates a new event observer instance.
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
13
28
|
export declare const createObserver: <EventType>() => Observer<EventType>;
|
|
14
29
|
/**
|
|
15
30
|
* Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen
|
|
16
31
|
* @param element - HTMLElement to observe
|
|
17
|
-
* @param callback -
|
|
32
|
+
* @param callback - any function called when the visibility changes
|
|
18
33
|
* @public
|
|
19
34
|
*/
|
|
20
35
|
export declare const respondToVisibility: (element: HTMLElement, callback: (arg0: boolean) => any) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/observer/observer.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"observer.d.ts","sourceRoot":"","sources":["../../../src/observer/observer.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI,CAAC,EAAE,EAAE,SAAS,KAAK,IAAI,CAAC;AAC1D;;;GAGG;AACH,MAAM,MAAM,SAAS,CAAC,SAAS,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,SAAS,CAAC,KAAK,MAAM,IAAI,CAAC;AACjF;;;GAGG;AACH,MAAM,MAAM,OAAO,CAAC,SAAS,IAAI,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;AAE5D;;;GAGG;AACH,MAAM,WAAW,QAAQ,CAAC,SAAS;IACjC,SAAS,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAChC,OAAO,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;CAC7B;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,sCAW1B,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,YAAa,WAAW,mBAAmB,OAAO,KAAK,GAAG,SAYzF,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
+
* An object that defines two resource types: "local" and "remote".
|
|
2
3
|
* @public
|
|
3
4
|
*/
|
|
4
5
|
export declare const ResourceType: {
|
|
@@ -6,6 +7,7 @@ export declare const ResourceType: {
|
|
|
6
7
|
readonly remote: "remote";
|
|
7
8
|
};
|
|
8
9
|
/**
|
|
10
|
+
* A type that represents the resource types defined by the `ResourceType` object.
|
|
9
11
|
* @public
|
|
10
12
|
*/
|
|
11
13
|
export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resource/types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resource/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,YAAY;;;CAGf,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
|
|
@@ -1,8 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An interface representing a JSON serializer.
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
1
5
|
export interface JSONSerializer {
|
|
6
|
+
/**
|
|
7
|
+
* Serializes an object to a JSON string.
|
|
8
|
+
* @param object - The object to serialize.
|
|
9
|
+
* @returns The serialized JSON string.
|
|
10
|
+
*/
|
|
2
11
|
serialize(object: any): string;
|
|
12
|
+
/**
|
|
13
|
+
* Deserializes a response object from a HTTP request to a JavaScript object.
|
|
14
|
+
* @param response - The HTTP response object.
|
|
15
|
+
* @returns A promise that resolves to the deserialized JavaScript object.
|
|
16
|
+
*/
|
|
3
17
|
deserialize<T = any>(response: Response): Promise<T>;
|
|
18
|
+
/**
|
|
19
|
+
* Deserializes a message event object to a JavaScript object.
|
|
20
|
+
* @param event - The message event object.
|
|
21
|
+
* @returns The deserialized JavaScript object.
|
|
22
|
+
*/
|
|
4
23
|
deserialize<T = any>(event: MessageEvent): T;
|
|
24
|
+
/**
|
|
25
|
+
* Deserializes a JSON string to a JavaScript object.
|
|
26
|
+
* @param text - The JSON string to deserialize.
|
|
27
|
+
* @returns The deserialized JavaScript object.
|
|
28
|
+
*/
|
|
5
29
|
deserialize<T = any>(text: string): T;
|
|
6
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* A DI token for the JSON serializer.
|
|
33
|
+
* @public
|
|
34
|
+
*/
|
|
7
35
|
export declare const JSONSerializer: import("@microsoft/fast-foundation").InterfaceSymbol<JSONSerializer>;
|
|
8
36
|
//# sourceMappingURL=json.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/serializers/json/json.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/serializers/json/json.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,CAAC;IAE/B;;;;OAIG;IACH,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAErD;;;;OAIG;IACH,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,KAAK,EAAE,YAAY,GAAG,CAAC,CAAC;IAE7C;;;;OAIG;IACH,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC,CAAC;CACvC;AA0BD;;;GAGG;AACH,eAAO,MAAM,cAAc,sEAE1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/styles/color.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../../src/styles/color.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,iBAAiB,6DAQ7B,CAAC"}
|
package/dist/dts/styles/dom.d.ts
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Inserts a CSS rule into the document by creating a new style element or using an existing one with the specified ID.
|
|
3
|
+
* Returns a function that can be called to remove the rule from the document.
|
|
4
|
+
* @public
|
|
5
|
+
* @param cssRule - The CSS rule to insert.
|
|
6
|
+
* @param styleElementId - The ID of the style element to use or create.
|
|
7
|
+
* @returns A function that removes the rule from the document.
|
|
8
|
+
*/
|
|
1
9
|
export declare const insertDocumentCSSRule: (cssRule: string, styleElementId: string) => (() => void);
|
|
10
|
+
/**
|
|
11
|
+
* Inserts a CSS link into the document if it doesn't already exist.
|
|
12
|
+
* @public
|
|
13
|
+
* @param href - The URL of the CSS file to insert.
|
|
14
|
+
*/
|
|
2
15
|
export declare const insertDocumentLink: (href: string) => void;
|
|
3
16
|
//# sourceMappingURL=dom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/styles/dom.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,YAAa,MAAM,kBAAkB,MAAM,KAAG,CAAC,MAAM,IAAI,CAyB1F,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,MAAM,SAQ9C,CAAC"}
|
|
1
|
+
{"version":3,"file":"dom.d.ts","sourceRoot":"","sources":["../../../src/styles/dom.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,YAAa,MAAM,kBAAkB,MAAM,KAAG,CAAC,MAAM,IAAI,CAyB1F,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,SAAU,MAAM,SAQ9C,CAAC"}
|