@genesislcap/pbc-notify-ui 15.8.3 → 15.9.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/README.md +39 -0
- package/custom-elements-manifest.config.js +5 -0
- package/dist/custom-elements.json +1771 -321
- package/dist/dts/components/components.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts +2 -0
- package/dist/dts/components/foundation-inbox/inbox-base/inbox-base.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts +4 -1
- package/dist/dts/components/foundation-inbox/inbox.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/alert-sound-attachment.d.ts +86 -0
- package/dist/dts/components/foundation-notification-dashboard/alert-sound-attachment.d.ts.map +1 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts +39 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts +8 -0
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/rules/rule-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts +41 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts +2 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/components/templates/template-management.d.ts.map +1 -1
- package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map +1 -1
- package/dist/dts/components/foundation-sounds/foundation-sounds-panel.d.ts +73 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds-panel.d.ts.map +1 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds-panel.styles.d.ts +2 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds-panel.styles.d.ts.map +1 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds-panel.template.d.ts +3 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds-panel.template.d.ts.map +1 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds.d.ts +34 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds.d.ts.map +1 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds.styles.d.ts +3 -0
- package/dist/dts/components/foundation-sounds/foundation-sounds.styles.d.ts.map +1 -0
- package/dist/dts/index.d.ts +4 -0
- package/dist/dts/index.d.ts.map +1 -1
- package/dist/dts/react.d.ts +31 -11
- package/dist/dts/services/inbox.service.d.ts +6 -0
- package/dist/dts/services/inbox.service.d.ts.map +1 -1
- package/dist/dts/services/rule.service.d.ts +2 -1
- package/dist/dts/services/rule.service.d.ts.map +1 -1
- package/dist/dts/utils/alert-sound.d.ts +177 -0
- package/dist/dts/utils/alert-sound.d.ts.map +1 -0
- package/dist/dts/utils/alert-sound.test.d.ts +2 -0
- package/dist/dts/utils/alert-sound.test.d.ts.map +1 -0
- package/dist/esm/components/components.js +4 -0
- package/dist/esm/components/foundation-inbox/inbox-base/inbox-base.js +6 -0
- package/dist/esm/components/foundation-inbox/inbox.styles.js +15 -0
- package/dist/esm/components/foundation-inbox/inbox.template.js +16 -0
- package/dist/esm/components/foundation-inbox/inbox.types.js +1 -0
- package/dist/esm/components/foundation-notification-dashboard/alert-sound-attachment.js +218 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.js +17 -2
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.js +3 -0
- package/dist/esm/components/foundation-notification-dashboard/components/rules/rule-management.js +5 -1
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.js +23 -2
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.js +3 -0
- package/dist/esm/components/foundation-notification-dashboard/components/templates/template-management.js +8 -1
- package/dist/esm/components/foundation-notification-dashboard/styles/dynamic-rule.styles.js +31 -1
- package/dist/esm/components/foundation-sounds/foundation-sounds-panel.js +283 -0
- package/dist/esm/components/foundation-sounds/foundation-sounds-panel.styles.js +200 -0
- package/dist/esm/components/foundation-sounds/foundation-sounds-panel.template.js +179 -0
- package/dist/esm/components/foundation-sounds/foundation-sounds.js +206 -0
- package/dist/esm/components/foundation-sounds/foundation-sounds.styles.js +7 -0
- package/dist/esm/index.js +3 -0
- package/dist/esm/services/inbox.service.js +6 -2
- package/dist/esm/services/rule.service.js +35 -0
- package/dist/esm/utils/alert-sound.js +955 -0
- package/dist/esm/utils/alert-sound.test.js +25 -0
- package/dist/esm/utils/index.js +3 -0
- package/dist/pbc-notify-ui.api.json +2859 -332
- package/dist/pbc-notify-ui.d.ts +281 -3
- package/dist/react.cjs +19 -5
- package/dist/react.mjs +16 -4
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +23 -23
- package/src/components/components.ts +4 -0
- package/src/components/foundation-inbox/inbox-base/inbox-base.ts +7 -0
- package/src/components/foundation-inbox/inbox.styles.ts +15 -0
- package/src/components/foundation-inbox/inbox.template.ts +16 -0
- package/src/components/foundation-inbox/inbox.types.ts +3 -0
- package/src/components/foundation-notification-dashboard/alert-sound-attachment.ts +283 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts +3 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts +21 -2
- package/src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts +9 -0
- package/src/components/foundation-notification-dashboard/components/rules/rule-management.ts +5 -1
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts +3 -0
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts +25 -2
- package/src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts +2 -1
- package/src/components/foundation-notification-dashboard/components/templates/template-management.ts +8 -1
- package/src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts +31 -1
- package/src/components/foundation-sounds/foundation-sounds-panel.styles.ts +201 -0
- package/src/components/foundation-sounds/foundation-sounds-panel.template.ts +188 -0
- package/src/components/foundation-sounds/foundation-sounds-panel.ts +280 -0
- package/src/components/foundation-sounds/foundation-sounds.styles.ts +8 -0
- package/src/components/foundation-sounds/foundation-sounds.ts +222 -0
- package/src/index.ts +8 -0
- package/src/services/inbox.service.ts +12 -2
- package/src/services/rule.service.ts +37 -1
- package/src/utils/alert-sound.test.ts +32 -0
- package/src/utils/alert-sound.ts +1135 -0
- package/src/utils/index.ts +3 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/components/components.ts"],"names":[],"mappings":"AA2DA,wBAAsB,WAAW,kBAIhC"}
|
|
@@ -7,6 +7,7 @@ import { FoundationInboxService } from '../../../services/inbox.service';
|
|
|
7
7
|
import { NotifyChannel, NotifyRoute, NotifyRouteService } from '../../../services/notify-route.service';
|
|
8
8
|
import { RuleService } from '../../../services/rule.service';
|
|
9
9
|
import { TemplateService } from '../../../services/template.service';
|
|
10
|
+
import type { FoundationSoundsPanel } from '../../foundation-sounds/foundation-sounds-panel';
|
|
10
11
|
import type { FoundationInbox } from '../inbox';
|
|
11
12
|
import { Alert, InboxTab, NotificationRuleTemplateReply, Rule, RuleTemplate } from '../inbox.types';
|
|
12
13
|
export declare class FoundationInboxBase extends GenesisElement {
|
|
@@ -79,6 +80,7 @@ export declare class FoundationInboxBase extends GenesisElement {
|
|
|
79
80
|
showLoadingIndicator: boolean;
|
|
80
81
|
severityType: any[];
|
|
81
82
|
tabs: Tabs;
|
|
83
|
+
sounds: FoundationSoundsPanel;
|
|
82
84
|
connectedCallback(): Promise<void>;
|
|
83
85
|
disconnectedCallback(): void;
|
|
84
86
|
alertSubscription: ({ store }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox-base.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-inbox/inbox-base/inbox-base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAEL,UAAU,EAKX,MAAM,kCAAkC,CAAC;AAE1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAQ,cAAc,EAAc,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAKvF,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,sBAAsB,EAAmB,MAAM,iCAAiC,CAAC;AAC1F,OAAO,EACL,aAAa,EACb,WAAW,EACX,kBAAkB,EACnB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAIrE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,6BAA6B,EAAE,IAAI,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAiBpG,qBAAa,mBAAoB,SAAQ,cAAc;IAC/C,I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,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO;IAI3E,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO;IAIzE,OAAO,CAAC,oBAAoB;IAQ5B,sBAAsB,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO;IAI/E,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,uBAAuB;IAOzB,aAAa,CAAC,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,aAAa;IA+C5D,oBAAoB,CAAC,QAAQ,EAAE,YAAY,EAAE,KAAK,EAAE,KAAK;IA2CzD,oBAAoB,CAAC,UAAU,CAAC,EAAE,MAAM;YAmBhC,oBAAoB;IAkClC,sBAAsB;IAMtB,6BAA6B,CAAC,IAAI,CAAC,EAAE,MAAM;CAG5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AA4JA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDA8ErC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"inbox.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.styles.ts"],"names":[],"mappings":"AA4JA,eAAO,MAAM,WAAW,iDA+BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,iDA8ErC,CAAC;AAEF,eAAO,MAAM,aAAa,iDAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,iDA2BrB,CAAC;AAEF,eAAO,MAAM,eAAe,iDAmI3B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,qBAAqB,iDAyBjC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAiO/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"inbox.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.template.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAiO/C;;GAEG;AACH,eAAO,MAAM,uBAAuB,sEAiKnC,CAAC"}
|
|
@@ -9,6 +9,8 @@ export interface Alert {
|
|
|
9
9
|
NOTIFY_SEVERITY: string;
|
|
10
10
|
TABLE_ENTITY_ID: string;
|
|
11
11
|
TOPIC: string;
|
|
12
|
+
/** Source notify template/rule that produced this alert. */
|
|
13
|
+
DYNAMIC_RULE_ID?: string;
|
|
12
14
|
}
|
|
13
15
|
export declare enum AlertStatus {
|
|
14
16
|
NEW = "NEW",
|
|
@@ -78,6 +80,7 @@ export declare enum RuleStatus {
|
|
|
78
80
|
export declare enum InboxTab {
|
|
79
81
|
ALERTS_NEW = 0,
|
|
80
82
|
ALERT_HISTORY = 1,
|
|
81
|
-
SUBSCRIBE = 2
|
|
83
|
+
SUBSCRIBE = 2,
|
|
84
|
+
SOUNDS = 3
|
|
82
85
|
}
|
|
83
86
|
//# sourceMappingURL=inbox.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"inbox.types.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-inbox/inbox.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,KAAK;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,oBAAY,WAAW;IACrB,GAAG,QAAQ;IACX,SAAS,cAAc;CACxB;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,uBAAuB,EAAE,MAAM,CAAC;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,mBAAmB;IAClC,eAAe,MAAC;IAChB,WAAW,MAAC;IACZ,UAAU,MAAC;IACX,cAAc,MAAC;IACf,YAAY,MAAC;IACb,iBAAiB,MAAC;IAClB,UAAU,MAAC;CACZ;AAED,MAAM,WAAW,0BAA0B;IACzC,SAAS,EAAE,mBAAmB,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,uBAAuB,EAAE,MAAM,CAAC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,6BAA6B;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,EAAE,MAAM,CAAC;IAChC,eAAe,EAAE;QACf,UAAU,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACxB,CAAC;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE;QACjB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,UAAU,EAAE,GAAG,CAAC;CACjB;AAED,oBAAY,UAAU;IACpB,OAAO,YAAY;IACnB,QAAQ,aAAa;CACtB;AAED,oBAAY,QAAQ;IAClB,UAAU,IAAA;IACV,aAAa,IAAA;IACb,SAAS,IAAA;IACT,MAAM,IAAA;CACP"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
2
|
+
import type { RuleService } from '../../services/rule.service';
|
|
3
|
+
type Constructor<T = object> = abstract new (...args: any[]) => T;
|
|
4
|
+
/** Sound fields included on rule/template create & update event payloads. */
|
|
5
|
+
export type AlertSoundPayloadFields = {
|
|
6
|
+
ALERT_SOUND_FILE_NAME?: string;
|
|
7
|
+
ALERT_SOUND_MIME_TYPE?: string;
|
|
8
|
+
ALERT_SOUND_DATA?: string;
|
|
9
|
+
CLEAR_ALERT_SOUND?: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Host surface required by {@link alertSoundAttachmentTemplate} and the mixin.
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface AlertSoundAttachmentHost {
|
|
16
|
+
alertSoundFileName: string;
|
|
17
|
+
hasAlertSound: boolean;
|
|
18
|
+
fileInput: HTMLInputElement;
|
|
19
|
+
openAlertSoundPicker(): void;
|
|
20
|
+
onAlertSoundSelected(event: Event): void | Promise<void>;
|
|
21
|
+
testAttachedAlertSound(): void;
|
|
22
|
+
clearAttachedAlertSound(): void;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Shared Attach/Replace/Test/Clear UI for rule and template dialogs.
|
|
26
|
+
* @public
|
|
27
|
+
*/
|
|
28
|
+
export declare const alertSoundAttachmentTemplate: import("@microsoft/fast-element").ViewTemplate<AlertSoundAttachmentHost, any>;
|
|
29
|
+
/**
|
|
30
|
+
* Mixin: pick / test / clear / load server sound + apply fields to submit payload.
|
|
31
|
+
*
|
|
32
|
+
* Subclasses must provide {@link ruleService}, {@link isAlertSoundEditMode},
|
|
33
|
+
* {@link alertSoundEntityId}, and {@link alertSoundCacheSyncMode}.
|
|
34
|
+
*
|
|
35
|
+
* @public
|
|
36
|
+
*/
|
|
37
|
+
export declare function AlertSoundAttachmentMixin<TBase extends Constructor<GenesisElement>>(Base: TBase): (abstract new (...args: any[]) => {
|
|
38
|
+
ruleService: RuleService;
|
|
39
|
+
/**
|
|
40
|
+
* True when editing an existing entity (clear should set CLEAR_ALERT_SOUND).
|
|
41
|
+
*/
|
|
42
|
+
get isAlertSoundEditMode(): boolean;
|
|
43
|
+
/**
|
|
44
|
+
* DYNAMIC_RULE_ID of the entity being edited (null on create).
|
|
45
|
+
* Used when {@link alertSoundCacheSyncMode} is `'entity'`.
|
|
46
|
+
*/
|
|
47
|
+
get alertSoundEntityId(): string | null;
|
|
48
|
+
/**
|
|
49
|
+
* `'entity'` — update/clear cache for {@link alertSoundEntityId} (rules).
|
|
50
|
+
* `'all'` — drop every cached server sound (templates; instance ids unknown).
|
|
51
|
+
*/
|
|
52
|
+
get alertSoundCacheSyncMode(): "entity" | "all";
|
|
53
|
+
/** Display name of the attached / pending alert sound file. */
|
|
54
|
+
alertSoundFileName: string;
|
|
55
|
+
alertSoundMimeType: string;
|
|
56
|
+
/** True when edit loaded an existing server sound (or user attached one). */
|
|
57
|
+
hasAlertSound: boolean;
|
|
58
|
+
fileInput: HTMLInputElement;
|
|
59
|
+
pendingAlertSoundData: string | null;
|
|
60
|
+
/** True when the user picked a new file this session (needs upload). */
|
|
61
|
+
alertSoundDirty: boolean;
|
|
62
|
+
clearAlertSound: boolean;
|
|
63
|
+
/** In-progress Test playback; not private — mixin return type is exported. */
|
|
64
|
+
testAudio: HTMLAudioElement | null;
|
|
65
|
+
loadExistingAlertSound(dynamicRuleId: string): Promise<void>;
|
|
66
|
+
openAlertSoundPicker(): void;
|
|
67
|
+
onAlertSoundSelected(event: Event): Promise<void>;
|
|
68
|
+
clearAttachedAlertSound(): void;
|
|
69
|
+
testAttachedAlertSound(): void;
|
|
70
|
+
stopTestSound(): void;
|
|
71
|
+
resetAlertSoundState(): void;
|
|
72
|
+
/** Merges pending sound / clear flag onto a create/update DETAILS object. */
|
|
73
|
+
applyAlertSoundToPayload<T extends AlertSoundPayloadFields>(target: T): T;
|
|
74
|
+
/**
|
|
75
|
+
* Keep AlertSoundPlayer's in-memory NOTIFY_ALERT_SOUND cache in sync with
|
|
76
|
+
* what we just saved — otherwise the next alert still plays the old file.
|
|
77
|
+
*/
|
|
78
|
+
syncAlertSoundCacheAfterSave(): void;
|
|
79
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
80
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
81
|
+
connectedCallback(): void;
|
|
82
|
+
disconnectedCallback(): void;
|
|
83
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
84
|
+
}) & TBase;
|
|
85
|
+
export {};
|
|
86
|
+
//# sourceMappingURL=alert-sound-attachment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-sound-attachment.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-notification-dashboard/alert-sound-attachment.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAA+B,MAAM,uBAAuB,CAAC;AACpF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAU/D,KAAK,WAAW,CAAC,CAAC,GAAG,MAAM,IAAI,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAElE,6EAA6E;AAC7E,MAAM,MAAM,uBAAuB,GAAG;IACpC,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAC;AAiBF;;;GAGG;AACH,MAAM,WAAW,wBAAwB;IACvC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,SAAS,EAAE,gBAAgB,CAAC;IAC5B,oBAAoB,IAAI,IAAI,CAAC;IAC7B,oBAAoB,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,sBAAsB,IAAI,IAAI,CAAC;IAC/B,uBAAuB,IAAI,IAAI,CAAC;CACjC;AAED;;;GAGG;AACH,eAAO,MAAM,4BAA4B,+EA8BxC,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,SAAS,WAAW,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,KAAK,2BAnF1C,GAAG,EAAE;iBAqFjC,WAAW;IAEjC;;OAEG;gCACkC,OAAO;IAE5C;;;OAGG;8BACgC,MAAM,GAAG,IAAI;IAEhD;;;OAGG;mCACqC,QAAQ,GAAG,KAAK;IAExD,+DAA+D;wBAC/B,MAAM;wBACN,MAAM;IACtC,6EAA6E;;eAElE,gBAAgB;2BACJ,MAAM,GAAG,IAAI;IACpC,wEAAwE;;;IAGxE,8EAA8E;eACnE,gBAAgB,GAAG,IAAI;0CAEU,MAAM;;gCAoBhB,KAAK;;;;;IAsFvC,6EAA6E;6BACpD,CAAC,SAAS,uBAAuB,UAAU,CAAC,GAAG,CAAC;IAWzE;;;OAGG;;;;;;;WAgCN"}
|
|
@@ -5,13 +5,47 @@ import { NotifyService } from '../../../../../services/notify.service';
|
|
|
5
5
|
import { RuleService } from '../../../../../services/rule.service';
|
|
6
6
|
import { Field, SystemService } from '../../../../../services/system.service';
|
|
7
7
|
import { RuleDialogMode, RuleDialogParams } from './rule-dialog.types';
|
|
8
|
+
declare const RuleDialog_base: (abstract new (...args: any[]) => {
|
|
9
|
+
ruleService: RuleService;
|
|
10
|
+
get isAlertSoundEditMode(): boolean;
|
|
11
|
+
get alertSoundEntityId(): string | null;
|
|
12
|
+
get alertSoundCacheSyncMode(): "entity" | "all";
|
|
13
|
+
alertSoundFileName: string;
|
|
14
|
+
alertSoundMimeType: string;
|
|
15
|
+
hasAlertSound: boolean;
|
|
16
|
+
fileInput: HTMLInputElement;
|
|
17
|
+
pendingAlertSoundData: string | null;
|
|
18
|
+
alertSoundDirty: boolean;
|
|
19
|
+
clearAlertSound: boolean;
|
|
20
|
+
testAudio: HTMLAudioElement | null;
|
|
21
|
+
loadExistingAlertSound(dynamicRuleId: string): Promise<void>;
|
|
22
|
+
openAlertSoundPicker(): void;
|
|
23
|
+
onAlertSoundSelected(event: Event): Promise<void>;
|
|
24
|
+
clearAttachedAlertSound(): void;
|
|
25
|
+
testAttachedAlertSound(): void;
|
|
26
|
+
stopTestSound(): void;
|
|
27
|
+
resetAlertSoundState(): void;
|
|
28
|
+
applyAlertSoundToPayload<T extends import("../../../alert-sound-attachment").AlertSoundPayloadFields>(target: T): T;
|
|
29
|
+
syncAlertSoundCacheAfterSave(): void;
|
|
30
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
31
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
32
|
+
connectedCallback(): void;
|
|
33
|
+
disconnectedCallback(): void;
|
|
34
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
35
|
+
}) & (new () => HTMLElement & GenesisElement) & {
|
|
36
|
+
from<TBase extends {
|
|
37
|
+
new (): HTMLElement;
|
|
38
|
+
prototype: HTMLElement;
|
|
39
|
+
}>(BaseType: TBase): new () => InstanceType<TBase> & GenesisElement;
|
|
40
|
+
define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition | undefined): TType;
|
|
41
|
+
};
|
|
8
42
|
/**
|
|
9
43
|
* Dialog for creating or editing notification rules.
|
|
10
44
|
* @public
|
|
11
45
|
*
|
|
12
46
|
* @fires close - Fired when the dialog should close
|
|
13
47
|
*/
|
|
14
|
-
export declare class RuleDialog extends
|
|
48
|
+
export declare class RuleDialog extends RuleDialog_base {
|
|
15
49
|
ruleService: RuleService;
|
|
16
50
|
systemService: SystemService;
|
|
17
51
|
notifyService: NotifyService;
|
|
@@ -32,6 +66,9 @@ export declare class RuleDialog extends GenesisElement {
|
|
|
32
66
|
resources: Array<string>;
|
|
33
67
|
fields: Array<Field>;
|
|
34
68
|
topics: string[];
|
|
69
|
+
get isAlertSoundEditMode(): boolean;
|
|
70
|
+
get alertSoundEntityId(): string | null;
|
|
71
|
+
get alertSoundCacheSyncMode(): 'entity' | 'all';
|
|
35
72
|
openDialog(params: RuleDialogParams): Promise<void>;
|
|
36
73
|
close(): void;
|
|
37
74
|
private createRule;
|
|
@@ -49,4 +86,5 @@ export declare class RuleDialog extends GenesisElement {
|
|
|
49
86
|
deleteCondition(deletedCondition: ConditionNode): void;
|
|
50
87
|
validateRequiredFields(): void;
|
|
51
88
|
}
|
|
89
|
+
export {};
|
|
52
90
|
//# sourceMappingURL=rule-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAEL,aAAa,EAGb,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAEL,aAAa,EAGb,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAW9E,OAAO,EAAQ,cAAc,EAAE,gBAA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Q,KAAA;IAUnB,eAAe;IAOrB,YAAY;IAKZ,QAAQ;IAKR,aAAa,CAAC,eAAe,EAAE,aAAa;IAI5C,eAAe,CAAC,gBAAgB,EAAE,aAAa;IAUxC,sBAAsB;CAK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"rule-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAIhD,eAAO,MAAM,kBAAkB,iEAyL9B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UpdateType } from '../../../../../notify.types';
|
|
2
|
+
import type { AlertSoundPayloadFields } from '../../../alert-sound-attachment';
|
|
2
3
|
export declare const RuleDialogMode: {
|
|
3
4
|
readonly CREATE: "create";
|
|
4
5
|
readonly EDIT: "edit";
|
|
@@ -20,5 +21,12 @@ export type Rule = {
|
|
|
20
21
|
RESULT_EXPRESSION?: {
|
|
21
22
|
ASSIGNMENTS: Array<any>;
|
|
22
23
|
};
|
|
24
|
+
} & AlertSoundPayloadFields;
|
|
25
|
+
export type NotifyAlertSound = {
|
|
26
|
+
ALERT_SOUND_ID: string;
|
|
27
|
+
DYNAMIC_RULE_ID: string;
|
|
28
|
+
ALERT_SOUND_FILE_NAME?: string;
|
|
29
|
+
ALERT_SOUND_MIME_TYPE?: string;
|
|
30
|
+
SOUND_DATA: string;
|
|
23
31
|
};
|
|
24
32
|
//# sourceMappingURL=rule-dialog.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-dialog/rule-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E,eAAO,MAAM,cAAc;;;CAGjB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GACxB;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,MAAM,CAAC;CACpC,GACD;IACE,IAAI,EAAE,OAAO,cAAc,CAAC,IAAI,CAAC;IACjC,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEN,MAAM,MAAM,IAAI,GAAG;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;CACH,GAAG,uBAAuB,CAAC;AAE5B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rule-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAqB,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"rule-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/rules/rule-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAqB,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,WAAW,EAAE,MAAM,mCAAmC,CAAC;AAIhE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAGvD,qBA6Ba,cAAe,SAAQ,cAAc;IACnC,WAAW,EAAE,WAAW,CAAC;IACtC,UAAU,EAAE,UAAU,CAAC;IAEvB,cAAc;IAIR,QAAQ,CAAC,GAAG,KAAA;IAKlB,UAAU,CAAC,IAAI,KAAA;CAwBhB"}
|
|
@@ -2,19 +2,55 @@ import type { Modal } from '@genesislcap/rapid-design-system';
|
|
|
2
2
|
import { GenesisElement } from '@genesislcap/web-core';
|
|
3
3
|
import { ConditionNode, UpdateType } from '../../../../../notify.types';
|
|
4
4
|
import { NotifyService } from '../../../../../services/notify.service';
|
|
5
|
+
import { RuleService } from '../../../../../services/rule.service';
|
|
5
6
|
import { Field, SystemService } from '../../../../../services/system.service';
|
|
6
7
|
import { TemplateService } from '../../../../../services/template.service';
|
|
7
8
|
import { ParameterBuilderEntity, TemplateDialogMode } from './template-dialog.types';
|
|
9
|
+
declare const TemplateDialog_base: (abstract new (...args: any[]) => {
|
|
10
|
+
ruleService: RuleService;
|
|
11
|
+
get isAlertSoundEditMode(): boolean;
|
|
12
|
+
get alertSoundEntityId(): string | null;
|
|
13
|
+
get alertSoundCacheSyncMode(): "entity" | "all";
|
|
14
|
+
alertSoundFileName: string;
|
|
15
|
+
alertSoundMimeType: string;
|
|
16
|
+
hasAlertSound: boolean;
|
|
17
|
+
fileInput: HTMLInputElement;
|
|
18
|
+
pendingAlertSoundData: string | null;
|
|
19
|
+
alertSoundDirty: boolean;
|
|
20
|
+
clearAlertSound: boolean;
|
|
21
|
+
testAudio: HTMLAudioElement | null;
|
|
22
|
+
loadExistingAlertSound(dynamicRuleId: string): Promise<void>;
|
|
23
|
+
openAlertSoundPicker(): void;
|
|
24
|
+
onAlertSoundSelected(event: Event): Promise<void>;
|
|
25
|
+
clearAttachedAlertSound(): void;
|
|
26
|
+
testAttachedAlertSound(): void;
|
|
27
|
+
stopTestSound(): void;
|
|
28
|
+
resetAlertSoundState(): void;
|
|
29
|
+
applyAlertSoundToPayload<T extends import("../../../alert-sound-attachment").AlertSoundPayloadFields>(target: T): T;
|
|
30
|
+
syncAlertSoundCacheAfterSave(): void;
|
|
31
|
+
readonly $fastController: import("@microsoft/fast-element").Controller;
|
|
32
|
+
$emit(type: string, detail?: any, options?: Omit<CustomEventInit, "detail">): boolean | void;
|
|
33
|
+
connectedCallback(): void;
|
|
34
|
+
disconnectedCallback(): void;
|
|
35
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
36
|
+
}) & (new () => HTMLElement & GenesisElement) & {
|
|
37
|
+
from<TBase extends {
|
|
38
|
+
new (): HTMLElement;
|
|
39
|
+
prototype: HTMLElement;
|
|
40
|
+
}>(BaseType: TBase): new () => InstanceType<TBase> & GenesisElement;
|
|
41
|
+
define<TType extends Function>(type: TType, nameOrDef?: string | import("@microsoft/fast-element").PartialFASTElementDefinition | undefined): TType;
|
|
42
|
+
};
|
|
8
43
|
/**
|
|
9
44
|
* Dialog for creating or editing notification templates.
|
|
10
45
|
* @public
|
|
11
46
|
*
|
|
12
47
|
* @fires close - Fired when the dialog should close
|
|
13
48
|
*/
|
|
14
|
-
export declare class TemplateDialog extends
|
|
49
|
+
export declare class TemplateDialog extends TemplateDialog_base {
|
|
15
50
|
templateService: TemplateService;
|
|
16
51
|
systemService: SystemService;
|
|
17
52
|
notifyService: NotifyService;
|
|
53
|
+
ruleService: RuleService;
|
|
18
54
|
dialog: Modal;
|
|
19
55
|
templateDialogMode: (typeof TemplateDialogMode)[keyof typeof TemplateDialogMode];
|
|
20
56
|
private templateId;
|
|
@@ -33,6 +69,9 @@ export declare class TemplateDialog extends GenesisElement {
|
|
|
33
69
|
fields: Array<Field>;
|
|
34
70
|
topics: Array<string>;
|
|
35
71
|
private requiredFields;
|
|
72
|
+
get isAlertSoundEditMode(): boolean;
|
|
73
|
+
get alertSoundEntityId(): string | null;
|
|
74
|
+
get alertSoundCacheSyncMode(): 'entity' | 'all';
|
|
36
75
|
openDialog(params: any): Promise<void>;
|
|
37
76
|
close(): void;
|
|
38
77
|
private createTemplate;
|
|
@@ -53,4 +92,5 @@ export declare class TemplateDialog extends GenesisElement {
|
|
|
53
92
|
deleteParameter(deletedParameter: ParameterBuilderEntity): void;
|
|
54
93
|
get validateRequiredFields(): boolean;
|
|
55
94
|
}
|
|
95
|
+
export {};
|
|
56
96
|
//# sourceMappingURL=template-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,EAAiB,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAEL,aAAa,EAGb,UAAU,EACX,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"template-dialog.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-d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AC,MAAM,CAAC,CAAM;IAC9B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,CAAM;IAC1B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAM;IAEvC,OAAO,CAAC,cAAc,CAAkE;IAExF,IAAI,oBAAoB,IAAI,OAAO,CAElC;IAED,IAAI,kBAAkB,IAAI,MAAM,GAAG,IAAI,CAEtC;IAED,IAAI,uBAAuB,IAAI,QAAQ,GAAG,KAAK,CAI9C;IAEY,UAAU,CAAC,MAAM,EAAE,GAAG;IAoBnC,KAAK;YAyBS,cAAc;YAUd,YAAY;IAyB1B,OAAO,CAAC,wBAAwB;IAQhC,OAAO,CAAC,oBAAoB;IAc5B,IAAI,mBAAmB,IAAI,MAAM,CAEhC;IAED,MAAM;IAwBN,OAAO,CAAC,oBAAoB;IAwC5B,gBAAgB,CAAC,QAAQ,KAAA;IAUnB,eAAe;IAOrB,YAAY;IAKZ,QAAQ;IAKR,aAAa,CAAC,eAAe,EAAE,aAAa;IAI5C,eAAe,CAAC,gBAAgB,EAAE,aAAa;IAW/C,YAAY;IAIZ,aAAa,CAAC,eAAe,EAAE,sBAAsB;IAIrD,eAAe,CAAC,gBAAgB,EAAE,sBAAsB;IAYxD,IACW,sBAAsB,IAAI,OAAO,CAE3C;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"template-dialog.template.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.template.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAIxD,eAAO,MAAM,sBAAsB,qEAsKlC,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { UpdateType } from '../../../../../notify.types';
|
|
2
|
+
import type { AlertSoundPayloadFields } from '../../../alert-sound-attachment';
|
|
2
3
|
export declare const TemplateDialogMode: {
|
|
3
4
|
readonly CREATE: "create";
|
|
4
5
|
readonly EDIT: "edit";
|
|
@@ -21,7 +22,7 @@ export type Template = {
|
|
|
21
22
|
ASSIGNMENTS: Array<any>;
|
|
22
23
|
};
|
|
23
24
|
PARAMETER_DETAILS: any;
|
|
24
|
-
};
|
|
25
|
+
} & AlertSoundPayloadFields;
|
|
25
26
|
export type ParameterBuilderEntity = {
|
|
26
27
|
UUID?: string;
|
|
27
28
|
PARAM_NAME: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"template-dialog.types.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/foundation-notification-dashboard/components/templates/template-dialog/template-dialog.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAE/E,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAC5B;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC;CACxC,GACD;IACE,IAAI,EAAE,OAAO,kBAAkB,CAAC,IAAI,CAAC;IACrC,IAAI,EAAE,QAAQ,CAAC;CAChB,CAAC;AAEN,MAAM,MAAM,QAAQ,GAAG;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,gBAAgB,EAAE,UAAU,EAAE,CAAC;IAC/B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;KACzB,CAAC;IACF,iBAAiB,EAAE,GAAG,CAAC;CACxB,GAAG,uBAAuB,CAAC;AAE5B,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/templates/template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAqB,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"template-management.d.ts","sourceRoot":"","sources":["../../../../../../src/components/foundation-notification-dashboard/components/templates/template-management.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,cAAc,EAAqB,MAAM,uBAAuB,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AAIxE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGxE,qBA6Ba,kBAAmB,SAAQ,cAAc;IACnC,eAAe,EAAE,eAAe,CAAC;IAClD,cAAc,EAAE,cAAc,CAAC;IAE/B,kBAAkB;IAIZ,YAAY,CAAC,GAAG,KAAA;IAKtB,cAAc,CAAC,QAAQ,KAAA;CA2BxB"}
|
package/dist/dts/components/foundation-notification-dashboard/styles/dynamic-rule.styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamic-rule.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,iDAevC,CAAC;AAkEF,eAAO,MAAM,uBAAuB,
|
|
1
|
+
{"version":3,"file":"dynamic-rule.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/foundation-notification-dashboard/styles/dynamic-rule.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,iDAevC,CAAC;AAkEF,eAAO,MAAM,uBAAuB,iDAoHnC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
2
|
+
import { RuleService } from '../../services/rule.service';
|
|
3
|
+
import { AlertSoundRuleView, AlertSoundSelectableRule } from '../../utils/alert-sound';
|
|
4
|
+
/**
|
|
5
|
+
* Configures alert sound rules in the inbox Sounds tab. Persists via the shared
|
|
6
|
+
* AlertSoundPlayer; playback is handled by layout-mounted
|
|
7
|
+
* {@link FoundationSounds}.
|
|
8
|
+
*
|
|
9
|
+
* @public
|
|
10
|
+
*/
|
|
11
|
+
export declare class FoundationSoundsPanel extends GenesisElement {
|
|
12
|
+
ruleService: RuleService;
|
|
13
|
+
/** @internal */
|
|
14
|
+
rules: AlertSoundRuleView[];
|
|
15
|
+
/** @internal */
|
|
16
|
+
canAddRule: boolean;
|
|
17
|
+
/** @internal */
|
|
18
|
+
canRemoveRule: boolean;
|
|
19
|
+
/** Global playback volume 0–100. @internal */
|
|
20
|
+
volumePercent: number;
|
|
21
|
+
/** @internal */
|
|
22
|
+
muted: boolean;
|
|
23
|
+
/** Notification rules from REQ_NOTIFICATION_RULE. @internal */
|
|
24
|
+
selectableRules: AlertSoundSelectableRule[];
|
|
25
|
+
/** @internal */
|
|
26
|
+
ruleSelectOptions: Array<{
|
|
27
|
+
id: string;
|
|
28
|
+
name: string;
|
|
29
|
+
}>;
|
|
30
|
+
/** @internal */
|
|
31
|
+
readonly maxRules = 10;
|
|
32
|
+
fileInput: HTMLInputElement;
|
|
33
|
+
private pendingRuleIndex;
|
|
34
|
+
private readonly player;
|
|
35
|
+
private unsubscribePlayer;
|
|
36
|
+
/** Suppresses select change events while options are rebuilt. */
|
|
37
|
+
private ignoreSelectChanges;
|
|
38
|
+
connectedCallback(): Promise<void>;
|
|
39
|
+
disconnectedCallback(): void;
|
|
40
|
+
onMatchModeChange(index: number, event: Event): boolean;
|
|
41
|
+
onPatternInput(index: number, event: Event): boolean;
|
|
42
|
+
onRuleChange(index: number, event: Event): boolean;
|
|
43
|
+
openFilePicker(index: number): boolean;
|
|
44
|
+
onFileSelected(event: Event): boolean;
|
|
45
|
+
clearSound(index: number): boolean;
|
|
46
|
+
testSound(index: number): boolean;
|
|
47
|
+
toggleRuleMute(index: number): boolean;
|
|
48
|
+
onVolumeChange(event: Event): boolean;
|
|
49
|
+
toggleMute(): boolean;
|
|
50
|
+
addRule(): boolean;
|
|
51
|
+
removeRule(index: number): boolean;
|
|
52
|
+
/** Reloads the notification-rule picker (e.g. when the Sounds tab is opened). */
|
|
53
|
+
reloadRules(): Promise<void>;
|
|
54
|
+
private loadRules;
|
|
55
|
+
/**
|
|
56
|
+
* Suppresses select `change` events only while options-datasource rebuilds
|
|
57
|
+
* the DOM — not for the `getRules()` round trip itself, so a user picking a
|
|
58
|
+
* rule while a request is in flight isn't silently dropped.
|
|
59
|
+
*/
|
|
60
|
+
private settleRuleOptions;
|
|
61
|
+
/**
|
|
62
|
+
* Re-applies persisted template ids onto `.rule-select` hosts after
|
|
63
|
+
* options-datasource has rebuilt its options. We deliberately do *not* bind
|
|
64
|
+
* `:initialSelectedValue` to templateId: that path compares the option label
|
|
65
|
+
* against Select.value (the option id), always mismatches, clearData()'s the
|
|
66
|
+
* select, and leaves the next pick stuck on "Select a rule...".
|
|
67
|
+
*/
|
|
68
|
+
private applyRuleSelectValues;
|
|
69
|
+
private mapRules;
|
|
70
|
+
private ruleMatchId;
|
|
71
|
+
private syncSoundState;
|
|
72
|
+
}
|
|
73
|
+
//# sourceMappingURL=foundation-sounds-panel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-sounds-panel.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-sounds/foundation-sounds-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,cAAc,EAAc,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAGL,kBAAkB,EAClB,wBAAwB,EAEzB,MAAM,yBAAyB,CAAC;AAajC;;;;;;GAMG;AACH,qBAKa,qBAAsB,SAAQ,cAAc;IAC1C,WAAW,EAAE,WAAW,CAAC;IAEtC,gBAAgB;IACJ,KAAK,EAAE,kBAAkB,EAAE,CAAM;IAC7C,gBAAgB;IACJ,UAAU,UAAQ;IAC9B,gBAAgB;IACJ,aAAa,UAAS;IAClC,8CAA8C;IAClC,aAAa,SAAO;IAChC,gBAAgB;IACJ,KAAK,UAAS;IAC1B,+DAA+D;IACnD,eAAe,EAAE,wBAAwB,EAAE,CAAM;IAC7D,gBAAgB;IACJ,iBAAiB,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAEhE;IACF,gBAAgB;IAChB,QAAQ,CAAC,QAAQ,MAAmB;IAEpC,SAAS,EAAE,gBAAgB,CAAC;IAC5B,OAAO,CAAC,gBAAgB,CAAuB;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,iBAAiB,CAA2B;IACpD,iEAAiE;IACjE,OAAO,CAAC,mBAAmB,CAAS;IAE9B,iBAAiB;IAmBvB,oBAAoB;IAMpB,iBAAiB,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO;IAYvD,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO;IAMpD,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,OAAO;IAiBlD,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAMtC,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IAarC,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAKlC,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAKjC,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAKtC,cAAc,CAAC,KAAK,EAAE,KAAK,GAAG,OAAO;IASrC,UAAU,IAAI,OAAO;IAKrB,OAAO,IAAI,OAAO;IAKlB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO;IAKlC,iFAAiF;IAC3E,WAAW,IAAI,OAAO,CAAC,IAAI,CAAC;YAIpB,SAAS;IA+BvB;;;;OAIG;YACW,iBAAiB;IAa/B;;;;;;OAMG;IACH,OAAO,CAAC,qBAAqB;IAY7B,OAAO,CAAC,QAAQ;IAehB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,cAAc;CAOvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-sounds-panel.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-sounds/foundation-sounds-panel.styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,2BAA2B,iDAqMvC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-sounds-panel.template.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-sounds/foundation-sounds-panel.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAEvE,eAAO,MAAM,6BAA6B,4EAuLzC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Connect } from '@genesislcap/foundation-comms';
|
|
2
|
+
import { GenesisElement } from '@genesislcap/web-core';
|
|
3
|
+
import { FoundationInboxService } from '../../services/inbox.service';
|
|
4
|
+
import { RuleService } from '../../services/rule.service';
|
|
5
|
+
/**
|
|
6
|
+
* Headless listener for inbox alert inserts. Plays configured sounds via the
|
|
7
|
+
* shared AlertSoundPlayer. Mount once in the app layout.
|
|
8
|
+
*
|
|
9
|
+
* Configure rules in the inbox Sounds tab with {@link FoundationSoundsPanel}.
|
|
10
|
+
*
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
export declare class FoundationSounds extends GenesisElement {
|
|
14
|
+
connect: Connect;
|
|
15
|
+
inboxService: FoundationInboxService;
|
|
16
|
+
ruleService: RuleService;
|
|
17
|
+
/**
|
|
18
|
+
* When false, new audible alerts are tracked but do not play.
|
|
19
|
+
*/
|
|
20
|
+
soundEnabled: boolean;
|
|
21
|
+
private connectionSub?;
|
|
22
|
+
private readonly player;
|
|
23
|
+
private knownAlertIds;
|
|
24
|
+
/** In-flight server sound fetches keyed by DYNAMIC_RULE_ID. */
|
|
25
|
+
private readonly serverSoundFetches;
|
|
26
|
+
connectedCallback(): Promise<void>;
|
|
27
|
+
disconnectedCallback(): void;
|
|
28
|
+
private subscribeToAlerts;
|
|
29
|
+
private subscriptionHandler;
|
|
30
|
+
private playForNewAlerts;
|
|
31
|
+
private tryPlayServerSound;
|
|
32
|
+
private fetchAndCacheServerSound;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=foundation-sounds.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-sounds.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-sounds/foundation-sounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAuB,cAAc,EAAQ,MAAM,uBAAuB,CAAC;AAElF,OAAO,EAAE,sBAAsB,EAA+B,MAAM,8BAA8B,CAAC;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAmB1D;;;;;;;GAOG;AACH,qBAOa,gBAAiB,SAAQ,cAAc;IACzC,OAAO,EAAE,OAAO,CAAC;IACF,YAAY,EAAE,sBAAsB,CAAC;IAChD,WAAW,EAAE,WAAW,CAAC;IAEtC;;OAEG;IACoD,YAAY,UAAQ;IAE3E,OAAO,CAAC,aAAa,CAAC,CAAe;IACrC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA2B;IAClD,OAAO,CAAC,aAAa,CAAqB;IAC1C,+DAA+D;IAC/D,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAuC;IAEpE,iBAAiB;IAoBvB,oBAAoB;IAOpB,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,mBAAmB,CAwDzB;YAEY,gBAAgB;YAsBhB,kBAAkB;YAsBlB,wBAAwB;CAyBvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foundation-sounds.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/foundation-sounds/foundation-sounds.styles.ts"],"names":[],"mappings":"AAEA,qEAAqE;AACrE,eAAO,MAAM,sBAAsB,iDAIlC,CAAC"}
|
package/dist/dts/index.d.ts
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
export * from './components/foundation-inbox/inbox';
|
|
2
2
|
export * from './components/foundation-inbox/components/foundation-inbox-flyout/foundation-inbox-flyout';
|
|
3
3
|
export * from './components/foundation-inbox/components/foundation-inbox-counter/foundation-inbox-counter';
|
|
4
|
+
export * from './components/foundation-sounds/foundation-sounds';
|
|
5
|
+
export * from './components/foundation-sounds/foundation-sounds-panel';
|
|
4
6
|
export * from './components/foundation-notification-dashboard';
|
|
7
|
+
export { AlertSoundPlayer, MAX_SOUND_RULES, MAX_SOUND_FILE_BYTES } from './utils/alert-sound';
|
|
8
|
+
export type { AlertSoundMatchMode, AlertSoundRuleView, AlertSoundSelectableRule, } from './utils/alert-sound';
|
|
5
9
|
export type { Alert, ParameterEditedEventDetail, RuleParameterEntity, } from './components/foundation-inbox/inbox.types';
|
|
6
10
|
export { AlertStatus } from './components/foundation-inbox/inbox.types';
|
|
7
11
|
export type { ConditionBuilderEntity } from './notify.types';
|
package/dist/dts/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,0FAA0F,CAAC;AACzG,cAAc,4FAA4F,CAAC;AAC3G,cAAc,gDAAgD,CAAC;AAC/D,YAAY,EACV,KAAK,EACL,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,2GAA2G,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC;AACpD,cAAc,0FAA0F,CAAC;AACzG,cAAc,4FAA4F,CAAC;AAC3G,cAAc,kDAAkD,CAAC;AACjE,cAAc,wDAAwD,CAAC;AACvE,cAAc,gDAAgD,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAC9F,YAAY,EACV,mBAAmB,EACnB,kBAAkB,EAClB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,YAAY,EACV,KAAK,EACL,0BAA0B,EAC1B,mBAAmB,GACpB,MAAM,2CAA2C,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,YAAY,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,2GAA2G,CAAC"}
|