@genesislcap/foundation-alerts 15.73.0-FUI-2628.4 → 15.74.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.
@@ -46,39 +46,5 @@ export declare class FoundationAlerts extends FASTElement {
46
46
  handleAddAlertAction(): void;
47
47
  handleEditAlertAction(item: any): void;
48
48
  }
49
- /**
50
- * ZeroAlerts.
51
- *
52
- * @remarks
53
- * A zero version that pre-registers zero components and uses the zero design system. ZeroAlerts and its components won't bloat the core bundle as
54
- * these are only loaded on-demand when in use.
55
- *
56
- * @example
57
- * ```ts
58
- * import { ZeroAlerts } from '@genesislcap/foundation-alerts';
59
- * ...
60
- * ZeroAlerts
61
- * ```
62
- *
63
- * @example Load the micro frontend on-demand
64
- * ```ts
65
-
66
- * const { ZeroAlerts } = await import('@genesislcap/foundation-alerts');
67
- * return ZeroAlerts;
68
- * },
69
- * ```
70
- *
71
- * @public
72
- */
73
- export declare class ZeroAlerts extends FoundationAlerts {
74
- /**
75
- * @internal
76
- */
77
- connectedCallback(): Promise<void>;
78
- /**
79
- * @internal
80
- */
81
- protected loadRemotes(): Promise<void>;
82
- }
83
49
  export {};
84
50
  //# sourceMappingURL=main.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/main/main.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,UAAU,EACV,OAAO,EAKR,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAiB,WAAW,EAAc,MAAM,yBAAyB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAI/C,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEvD,KAAK,YAAY,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C;;;;GAIG;AACH,qBAAa,gBAAiB,SA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oB;IAIpB,qBAAqB,CAAC,IAAI,EAAE,GAAG;CAQvC"}
@@ -7,7 +7,7 @@ import { defaultTemplateOptions } from './templates';
7
7
  export const defaultAlertConfig = {
8
8
  name: 'foundation-alerts',
9
9
  templateOptions: defaultTemplateOptions,
10
- designSystemPrefix: 'zero',
10
+ designSystemPrefix: 'rapid',
11
11
  };
12
12
  /**
13
13
  * AlertConfig DI key.
@@ -5,9 +5,9 @@
5
5
  * @public
6
6
  */
7
7
  export const defaultTemplateOptions = {
8
- icon: 'zero-icon',
9
- button: 'zero-button',
10
- dropdownMenu: 'zero-dropdown-menu',
11
- divider: 'zero-divider',
12
- provider: 'zero-design-system-provider',
8
+ icon: 'rapid-icon',
9
+ button: 'rapid-button',
10
+ dropdownMenu: 'rapid-dropdown-menu',
11
+ divider: 'rapid-divider',
12
+ provider: 'rapid-design-system-provider',
13
13
  };
@@ -1,10 +1,8 @@
1
1
  import { __awaiter, __decorate } from "tslib";
2
2
  import { Connect, Datasource, normaliseCriteria, dataServerResultFilter, MessageType, } from '@genesislcap/foundation-comms';
3
- import { customElement, FASTElement, observable } from '@microsoft/fast-element';
3
+ import { FASTElement, observable } from '@microsoft/fast-element';
4
4
  import { AlertConfig } from '../config/config';
5
- import { FoundationAlertsStyles as styles } from '../styles';
6
5
  import { logger } from '../utils';
7
- import { FoundationAlertsTemplate as template } from './main.template';
8
6
  /**
9
7
  * Foundation alerts component for handle alerts rules list
10
8
  * Allow creating, disabling and deleting alerts
@@ -210,58 +208,3 @@ __decorate([
210
208
  __decorate([
211
209
  observable
212
210
  ], FoundationAlerts.prototype, "criteriaFromFilters", void 0);
213
- /**
214
- * ZeroAlerts.
215
- *
216
- * @remarks
217
- * A zero version that pre-registers zero components and uses the zero design system. ZeroAlerts and its components won't bloat the core bundle as
218
- * these are only loaded on-demand when in use.
219
- *
220
- * @example
221
- * ```ts
222
- * import { ZeroAlerts } from '@genesislcap/foundation-alerts';
223
- * ...
224
- * ZeroAlerts
225
- * ```
226
- *
227
- * @example Load the micro frontend on-demand
228
- * ```ts
229
-
230
- * const { ZeroAlerts } = await import('@genesislcap/foundation-alerts');
231
- * return ZeroAlerts;
232
- * },
233
- * ```
234
- *
235
- * @public
236
- */
237
- let ZeroAlerts = class ZeroAlerts extends FoundationAlerts {
238
- /**
239
- * @internal
240
- */
241
- connectedCallback() {
242
- const _super = Object.create(null, {
243
- connectedCallback: { get: () => super.connectedCallback }
244
- });
245
- return __awaiter(this, void 0, void 0, function* () {
246
- _super.connectedCallback.call(this);
247
- yield this.loadRemotes();
248
- });
249
- }
250
- /**
251
- * @internal
252
- */
253
- loadRemotes() {
254
- return __awaiter(this, void 0, void 0, function* () {
255
- const { registerCommonZeroComponents } = yield import('../components/zero-components');
256
- yield registerCommonZeroComponents();
257
- });
258
- }
259
- };
260
- ZeroAlerts = __decorate([
261
- customElement({
262
- name: 'zero-alerts',
263
- template,
264
- styles,
265
- })
266
- ], ZeroAlerts);
267
- export { ZeroAlerts };
@@ -1088,37 +1088,6 @@
1088
1088
  "startIndex": 1,
1089
1089
  "endIndex": 6
1090
1090
  }
1091
- },
1092
- {
1093
- "kind": "Class",
1094
- "canonicalReference": "@genesislcap/foundation-alerts!ZeroAlerts:class",
1095
- "docComment": "/**\n * ZeroAlerts.\n *\n * @remarks\n *\n * A zero version that pre-registers zero components and uses the zero design system. ZeroAlerts and its components won't bloat the core bundle as these are only loaded on-demand when in use.\n *\n * @example\n * ```ts\n * import { ZeroAlerts } from '@genesislcap/foundation-alerts';\n * ...\n * ZeroAlerts\n * ```\n *\n * @example\n *\n * Load the micro frontend on-demand\n * ```ts\n *\n * const { ZeroAlerts } = await import('@genesislcap/foundation-alerts');\n * return ZeroAlerts;\n * },\n * ```\n *\n * @public\n */\n",
1096
- "excerptTokens": [
1097
- {
1098
- "kind": "Content",
1099
- "text": "export declare class ZeroAlerts extends "
1100
- },
1101
- {
1102
- "kind": "Reference",
1103
- "text": "FoundationAlerts",
1104
- "canonicalReference": "@genesislcap/foundation-alerts!FoundationAlerts:class"
1105
- },
1106
- {
1107
- "kind": "Content",
1108
- "text": " "
1109
- }
1110
- ],
1111
- "fileUrlPath": "src/main/main.ts",
1112
- "releaseTag": "Public",
1113
- "isAbstract": false,
1114
- "name": "ZeroAlerts",
1115
- "preserveMemberOrder": false,
1116
- "members": [],
1117
- "extendsTokenRange": {
1118
- "startIndex": 1,
1119
- "endIndex": 2
1120
- },
1121
- "implementsTokenRanges": []
1122
1091
  }
1123
1092
  ]
1124
1093
  }
@@ -179,39 +179,4 @@ declare type TemplateOptions = Partial<TemplateComponents> & {
179
179
  somePartial?: string | SyntheticViewTemplate;
180
180
  };
181
181
 
182
- /**
183
- * ZeroAlerts.
184
- *
185
- * @remarks
186
- * A zero version that pre-registers zero components and uses the zero design system. ZeroAlerts and its components won't bloat the core bundle as
187
- * these are only loaded on-demand when in use.
188
- *
189
- * @example
190
- * ```ts
191
- * import { ZeroAlerts } from '@genesislcap/foundation-alerts';
192
- * ...
193
- * ZeroAlerts
194
- * ```
195
- *
196
- * @example Load the micro frontend on-demand
197
- * ```ts
198
-
199
- * const { ZeroAlerts } = await import('@genesislcap/foundation-alerts');
200
- * return ZeroAlerts;
201
- * },
202
- * ```
203
- *
204
- * @public
205
- */
206
- export declare class ZeroAlerts extends FoundationAlerts {
207
- /**
208
- * @internal
209
- */
210
- connectedCallback(): Promise<void>;
211
- /**
212
- * @internal
213
- */
214
- protected loadRemotes(): Promise<void>;
215
- }
216
-
217
182
  export { }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-alerts",
3
3
  "description": "Genesis Foundation Alerts",
4
- "version": "15.73.0-FUI-2628.4",
4
+ "version": "15.74.0",
5
5
  "license": "SEE LICENSE IN license.txt",
6
6
  "main": "dist/esm/index.js",
7
7
  "types": "dist/foundation-alerts.d.ts",
@@ -11,11 +11,6 @@
11
11
  "genx": {
12
12
  "app": {
13
13
  "rootElement": "foundation-alerts"
14
- },
15
- "federation": {
16
- "remotes": [
17
- "@genesislcap/foundation-zero"
18
- ]
19
14
  }
20
15
  },
21
16
  "exports": {
@@ -76,19 +71,18 @@
76
71
  }
77
72
  },
78
73
  "devDependencies": {
79
- "@genesislcap/foundation-testing": "15.73.0-FUI-2628.4",
80
- "@genesislcap/genx": "15.73.0-FUI-2628.4",
81
- "@genesislcap/ts-builder": "15.73.0-FUI-2628.4",
82
- "@genesislcap/uvu-playwright-builder": "15.73.0-FUI-2628.4",
83
- "@genesislcap/vite-builder": "15.73.0-FUI-2628.4",
84
- "@genesislcap/webpack-builder": "15.73.0-FUI-2628.4"
74
+ "@genesislcap/foundation-testing": "15.74.0",
75
+ "@genesislcap/genx": "15.74.0",
76
+ "@genesislcap/ts-builder": "15.74.0",
77
+ "@genesislcap/uvu-playwright-builder": "15.74.0",
78
+ "@genesislcap/vite-builder": "15.74.0",
79
+ "@genesislcap/webpack-builder": "15.74.0"
85
80
  },
86
81
  "dependencies": {
87
- "@genesislcap/foundation-comms": "15.73.0-FUI-2628.4",
88
- "@genesislcap/foundation-logger": "15.73.0-FUI-2628.4",
89
- "@genesislcap/foundation-ui": "15.73.0-FUI-2628.4",
90
- "@genesislcap/foundation-utils": "15.73.0-FUI-2628.4",
91
- "@genesislcap/foundation-zero": "15.73.0-FUI-2628.4",
82
+ "@genesislcap/foundation-comms": "15.74.0",
83
+ "@genesislcap/foundation-logger": "15.74.0",
84
+ "@genesislcap/foundation-ui": "15.74.0",
85
+ "@genesislcap/foundation-utils": "15.74.0",
92
86
  "@microsoft/fast-components": "2.30.6",
93
87
  "@microsoft/fast-element": "1.14.0",
94
88
  "@microsoft/fast-foundation": "2.50.0",
@@ -1,6 +0,0 @@
1
- /**
2
- * registerCommonZeroComponents.
3
- * @public
4
- */
5
- export declare const registerCommonZeroComponents: () => Promise<void>;
6
- //# sourceMappingURL=zero-components.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"zero-components.d.ts","sourceRoot":"","sources":["../../../src/components/zero-components.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,4BAA4B,qBAkBxC,CAAC"}
@@ -1,47 +0,0 @@
1
- /**
2
- * AUTO-GENERATED FILE - DO NOT EDIT.
3
- * Generated from custom-elements manifest.
4
- */
5
-
6
- import type React from 'react';
7
- import type { ZeroAlerts as ZeroAlertsWC } from './main/main';
8
-
9
- /** @internal Maps a web component class to its public props only.
10
- * keyof T skips private/protected members, so this avoids the TS error
11
- * "property may not be private or protected" on exported anonymous types. */
12
- type PublicOf<T> = { [K in keyof T]?: T[K] };
13
-
14
- /** @internal Safe React HTML attributes for web component wrappers.
15
- * onChange/onInput use method signatures for bivariant parameter checking so both
16
- * native Event and CustomEvent callbacks are accepted. */
17
- interface HTMLWCProps extends React.AriaAttributes {
18
- className?: string; style?: React.CSSProperties; id?: string; slot?: string;
19
- tabIndex?: number; dir?: string; lang?: string; title?: string;
20
- onClick?: React.MouseEventHandler<HTMLElement>;
21
- onDoubleClick?: React.MouseEventHandler<HTMLElement>;
22
- onContextMenu?: React.MouseEventHandler<HTMLElement>;
23
- onMouseEnter?: React.MouseEventHandler<HTMLElement>;
24
- onMouseLeave?: React.MouseEventHandler<HTMLElement>;
25
- onMouseDown?: React.MouseEventHandler<HTMLElement>;
26
- onMouseUp?: React.MouseEventHandler<HTMLElement>;
27
- onMouseMove?: React.MouseEventHandler<HTMLElement>;
28
- onKeyDown?: React.KeyboardEventHandler<HTMLElement>;
29
- onKeyUp?: React.KeyboardEventHandler<HTMLElement>;
30
- onFocus?: React.FocusEventHandler<HTMLElement>;
31
- onBlur?: React.FocusEventHandler<HTMLElement>;
32
- onScroll?: React.UIEventHandler<HTMLElement>;
33
- onWheel?: React.WheelEventHandler<HTMLElement>;
34
- onChange?(e: Event): void;
35
- onInput?(e: Event): void;
36
- }
37
-
38
- export declare const ZeroAlerts: React.ForwardRefExoticComponent<
39
- React.PropsWithChildren<
40
- Omit<PublicOf<ZeroAlertsWC>, 'children' | 'style'> &
41
- HTMLWCProps & {
42
- }
43
- > & React.RefAttributes<ZeroAlertsWC>
44
- >;
45
- export type ZeroAlertsRef = ZeroAlertsWC;
46
-
47
- export {};
@@ -1,18 +0,0 @@
1
- import { __awaiter } from "tslib";
2
- /**
3
- * registerCommonZeroComponents.
4
- * @public
5
- */
6
- export const registerCommonZeroComponents = () => __awaiter(void 0, void 0, void 0, function* () {
7
- const { provideDesignSystem, zeroIcon, zeroButton, zeroDivider, zeroDropdownMenu } = yield import(
8
- /* webpackChunkName: "foundation-zero" */
9
- '@genesislcap/foundation-zero');
10
- /**
11
- * Register the components the app is using with the system.
12
- */
13
- provideDesignSystem().register(
14
- /**
15
- * Common across most routes, so batch register these lightweight components upfront.
16
- */
17
- zeroIcon(), zeroButton(), zeroDropdownMenu(), zeroDivider());
18
- });