@genesislcap/foundation-errors 14.155.0 → 14.155.2-alpha-d9bfff1.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.
@@ -1,4 +1,4 @@
1
- import { ErrorDialog, DismissingAction, ConfirmingAction } from '../types';
1
+ import { ErrorDialog, DismissingAction, ConfirmingAction, DialogType } from '../types';
2
2
  /**
3
3
  * ErrorDialogBuilder class
4
4
  * @public
@@ -6,6 +6,7 @@ import { ErrorDialog, DismissingAction, ConfirmingAction } from '../types';
6
6
  export declare class ErrorDialogBuilder {
7
7
  private dismissingAction;
8
8
  private confirmingActions;
9
+ private dialogType;
9
10
  /**
10
11
  * Add dismissing action to ErrorDialog
11
12
  * @public
@@ -20,6 +21,13 @@ export declare class ErrorDialogBuilder {
20
21
  * @returns
21
22
  */
22
23
  withConfirmingAction(confirmingAction: ConfirmingAction): ErrorDialogBuilder;
24
+ /**
25
+ * Add type to ErrorDialog
26
+ * @public
27
+ * @param dialogType - {@link DialogType}
28
+ * @returns
29
+ */
30
+ withDialogType(dialogType: DialogType): ErrorDialogBuilder;
23
31
  /**
24
32
  * Build ErrorDialog
25
33
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"error-dialog-builder.d.ts","sourceRoot":"","sources":["../../../src/dialog/error-dialog-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE3E;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAA0B;IAEnD;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB;IAKnF;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB;IAQnF;;;;OAIG;IACI,KAAK,IAAI,WAAW;CAU5B;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAA8C,CAAC"}
1
+ {"version":3,"file":"error-dialog-builder.d.ts","sourceRoot":"","sources":["../../../src/dialog/error-dialog-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEvF;;;GAGG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,gBAAgB,CAAmB;IAC3C,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,UAAU,CAAa;IAE/B;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB;IAKnF;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB;IAQnF;;;;;OAKG;IACI,cAAc,CAAC,UAAU,EAAE,UAAU,GAAG,kBAAkB;IAKjE;;;;OAIG;IACI,KAAK,IAAI,WAAW;CAU5B;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAA8C,CAAC"}
@@ -42,6 +42,11 @@ export interface ConfirmingAction {
42
42
  readonly label: String;
43
43
  readonly action: Function;
44
44
  }
45
+ /**
46
+ * @public
47
+ * Type for dialog
48
+ */
49
+ export type DialogType = 'default' | 'error' | 'success';
45
50
  /**
46
51
  * Interface for Error Dialog configuration
47
52
  * @public
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D;;;GAGG;AACH,oBAAY,kBAAkB;IAC5B,oBAAoB,yBAAyB;CAC9C;AAED;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG,SAAS,GAAG,SAAS,CAAC;AAE1D;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAA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,CAAC;QACzB,QAAQ,CAAC,YAAY,CAAC,EAAE,iBAAiB,CAAC;QAC1C,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;QAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;QAC7B,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;KAC/B,CAAC;CACH;AAED;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG;IAAE,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC"}
@@ -26,6 +26,16 @@ export class ErrorDialogBuilder {
26
26
  this.confirmingActions.push(confirmingAction);
27
27
  return this;
28
28
  }
29
+ /**
30
+ * Add type to ErrorDialog
31
+ * @public
32
+ * @param dialogType - {@link DialogType}
33
+ * @returns
34
+ */
35
+ withDialogType(dialogType) {
36
+ this.dialogType = dialogType;
37
+ return this;
38
+ }
29
39
  /**
30
40
  * Build ErrorDialog
31
41
  * @public
@@ -246,6 +246,32 @@
246
246
  ],
247
247
  "extendsTokenRanges": []
248
248
  },
249
+ {
250
+ "kind": "TypeAlias",
251
+ "canonicalReference": "@genesislcap/foundation-errors!DialogType:type",
252
+ "docComment": "/**\n * Type for dialog\n *\n * @public\n */\n",
253
+ "excerptTokens": [
254
+ {
255
+ "kind": "Content",
256
+ "text": "export type DialogType = "
257
+ },
258
+ {
259
+ "kind": "Content",
260
+ "text": "'default' | 'error' | 'success'"
261
+ },
262
+ {
263
+ "kind": "Content",
264
+ "text": ";"
265
+ }
266
+ ],
267
+ "fileUrlPath": "src/types.ts",
268
+ "releaseTag": "Public",
269
+ "name": "DialogType",
270
+ "typeTokenRange": {
271
+ "startIndex": 1,
272
+ "endIndex": 2
273
+ }
274
+ },
249
275
  {
250
276
  "kind": "Interface",
251
277
  "canonicalReference": "@genesislcap/foundation-errors!DismissingAction:interface",
@@ -1229,6 +1255,56 @@
1229
1255
  "isAbstract": false,
1230
1256
  "name": "withConfirmingAction"
1231
1257
  },
1258
+ {
1259
+ "kind": "Method",
1260
+ "canonicalReference": "@genesislcap/foundation-errors!ErrorDialogBuilder#withDialogType:member(1)",
1261
+ "docComment": "/**\n * Add type to ErrorDialog\n *\n * @param dialogType - {@link DialogType}\n *\n * @returns \n *\n * @public\n */\n",
1262
+ "excerptTokens": [
1263
+ {
1264
+ "kind": "Content",
1265
+ "text": "withDialogType(dialogType: "
1266
+ },
1267
+ {
1268
+ "kind": "Reference",
1269
+ "text": "DialogType",
1270
+ "canonicalReference": "@genesislcap/foundation-errors!DialogType:type"
1271
+ },
1272
+ {
1273
+ "kind": "Content",
1274
+ "text": "): "
1275
+ },
1276
+ {
1277
+ "kind": "Reference",
1278
+ "text": "ErrorDialogBuilder",
1279
+ "canonicalReference": "@genesislcap/foundation-errors!ErrorDialogBuilder:class"
1280
+ },
1281
+ {
1282
+ "kind": "Content",
1283
+ "text": ";"
1284
+ }
1285
+ ],
1286
+ "isStatic": false,
1287
+ "returnTypeTokenRange": {
1288
+ "startIndex": 3,
1289
+ "endIndex": 4
1290
+ },
1291
+ "releaseTag": "Public",
1292
+ "isProtected": false,
1293
+ "overloadIndex": 1,
1294
+ "parameters": [
1295
+ {
1296
+ "parameterName": "dialogType",
1297
+ "parameterTypeTokenRange": {
1298
+ "startIndex": 1,
1299
+ "endIndex": 2
1300
+ },
1301
+ "isOptional": false
1302
+ }
1303
+ ],
1304
+ "isOptional": false,
1305
+ "isAbstract": false,
1306
+ "name": "withDialogType"
1307
+ },
1232
1308
  {
1233
1309
  "kind": "Method",
1234
1310
  "canonicalReference": "@genesislcap/foundation-errors!ErrorDialogBuilder#withDismissingAction:member(1)",
@@ -9,6 +9,12 @@ export declare interface ConfirmingAction {
9
9
  readonly action: Function;
10
10
  }
11
11
 
12
+ /**
13
+ * @public
14
+ * Type for dialog
15
+ */
16
+ export declare type DialogType = 'default' | 'error' | 'success';
17
+
12
18
  /**
13
19
  * Interface for Dismissing Action configuration
14
20
  * @public
@@ -156,6 +162,7 @@ export declare interface ErrorDialog {
156
162
  export declare class ErrorDialogBuilder {
157
163
  private dismissingAction;
158
164
  private confirmingActions;
165
+ private dialogType;
159
166
  /**
160
167
  * Add dismissing action to ErrorDialog
161
168
  * @public
@@ -170,6 +177,13 @@ export declare class ErrorDialogBuilder {
170
177
  * @returns
171
178
  */
172
179
  withConfirmingAction(confirmingAction: ConfirmingAction): ErrorDialogBuilder;
180
+ /**
181
+ * Add type to ErrorDialog
182
+ * @public
183
+ * @param dialogType - {@link DialogType}
184
+ * @returns
185
+ */
186
+ withDialogType(dialogType: DialogType): ErrorDialogBuilder;
173
187
  /**
174
188
  * Build ErrorDialog
175
189
  * @public
@@ -0,0 +1,13 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-errors](./foundation-errors.md) &gt; [DialogType](./foundation-errors.dialogtype.md)
4
+
5
+ ## DialogType type
6
+
7
+ Type for dialog
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ export type DialogType = 'default' | 'error' | 'success';
13
+ ```
@@ -18,5 +18,6 @@ export declare class ErrorDialogBuilder
18
18
  | --- | --- | --- |
19
19
  | [build()](./foundation-errors.errordialogbuilder.build.md) | | Build ErrorDialog |
20
20
  | [withConfirmingAction(confirmingAction)](./foundation-errors.errordialogbuilder.withconfirmingaction.md) | | Add confirming action to ErrorDialog |
21
+ | [withDialogType(dialogType)](./foundation-errors.errordialogbuilder.withdialogtype.md) | | Add type to ErrorDialog |
21
22
  | [withDismissingAction(dismissingAction)](./foundation-errors.errordialogbuilder.withdismissingaction.md) | | Add dismissing action to ErrorDialog |
22
23
 
@@ -0,0 +1,25 @@
1
+ <!-- Do not edit this file. It is automatically generated by API Documenter. -->
2
+
3
+ [Home](./index.md) &gt; [@genesislcap/foundation-errors](./foundation-errors.md) &gt; [ErrorDialogBuilder](./foundation-errors.errordialogbuilder.md) &gt; [withDialogType](./foundation-errors.errordialogbuilder.withdialogtype.md)
4
+
5
+ ## ErrorDialogBuilder.withDialogType() method
6
+
7
+ Add type to ErrorDialog
8
+
9
+ **Signature:**
10
+
11
+ ```typescript
12
+ withDialogType(dialogType: DialogType): ErrorDialogBuilder;
13
+ ```
14
+
15
+ ## Parameters
16
+
17
+ | Parameter | Type | Description |
18
+ | --- | --- | --- |
19
+ | dialogType | [DialogType](./foundation-errors.dialogtype.md) | [DialogType](./foundation-errors.dialogtype.md) |
20
+
21
+ **Returns:**
22
+
23
+ [ErrorDialogBuilder](./foundation-errors.errordialogbuilder.md)
24
+
25
+
@@ -52,6 +52,7 @@
52
52
 
53
53
  | Type Alias | Description |
54
54
  | --- | --- |
55
+ | [DialogType](./foundation-errors.dialogtype.md) | Type for dialog |
55
56
  | [ErrorNotificationPosition](./foundation-errors.errornotificationposition.md) | type for error notification position |
56
57
  | [ErrorNotificationType](./foundation-errors.errornotificationtype.md) | type for error notification type |
57
58
  | [SnackbarType](./foundation-errors.snackbartype.md) | type for snackbar type |
@@ -14,6 +14,9 @@ export interface ConfirmingAction {
14
14
  readonly label: String;
15
15
  }
16
16
 
17
+ // @public
18
+ export type DialogType = 'default' | 'error' | 'success';
19
+
17
20
  // @public
18
21
  export interface DismissingAction {
19
22
  // (undocumented)
@@ -68,6 +71,7 @@ export interface ErrorDialog {
68
71
  export class ErrorDialogBuilder {
69
72
  build(): ErrorDialog;
70
73
  withConfirmingAction(confirmingAction: ConfirmingAction): ErrorDialogBuilder;
74
+ withDialogType(dialogType: DialogType): ErrorDialogBuilder;
71
75
  withDismissingAction(dismissingAction: DismissingAction): ErrorDialogBuilder;
72
76
  }
73
77
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-errors",
3
3
  "description": "Genesis Foundation UI Error Utils",
4
- "version": "14.155.0",
4
+ "version": "14.155.2-alpha-d9bfff1.0",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -40,17 +40,17 @@
40
40
  "test:debug": "genx test --debug"
41
41
  },
42
42
  "devDependencies": {
43
- "@genesislcap/foundation-testing": "14.155.0",
44
- "@genesislcap/genx": "14.155.0",
45
- "@genesislcap/rollup-builder": "14.155.0",
46
- "@genesislcap/ts-builder": "14.155.0",
47
- "@genesislcap/uvu-playwright-builder": "14.155.0",
48
- "@genesislcap/vite-builder": "14.155.0",
49
- "@genesislcap/webpack-builder": "14.155.0",
43
+ "@genesislcap/foundation-testing": "14.155.2-alpha-d9bfff1.0",
44
+ "@genesislcap/genx": "14.155.2-alpha-d9bfff1.0",
45
+ "@genesislcap/rollup-builder": "14.155.2-alpha-d9bfff1.0",
46
+ "@genesislcap/ts-builder": "14.155.2-alpha-d9bfff1.0",
47
+ "@genesislcap/uvu-playwright-builder": "14.155.2-alpha-d9bfff1.0",
48
+ "@genesislcap/vite-builder": "14.155.2-alpha-d9bfff1.0",
49
+ "@genesislcap/webpack-builder": "14.155.2-alpha-d9bfff1.0",
50
50
  "rimraf": "^3.0.2"
51
51
  },
52
52
  "dependencies": {
53
- "@genesislcap/foundation-logger": "14.155.0",
53
+ "@genesislcap/foundation-logger": "14.155.2-alpha-d9bfff1.0",
54
54
  "tslib": "^2.3.1"
55
55
  },
56
56
  "repository": {
@@ -61,5 +61,5 @@
61
61
  "publishConfig": {
62
62
  "access": "public"
63
63
  },
64
- "gitHead": "051ab554a15f58f0ccfd99f8dceb7d49f8491cd0"
64
+ "gitHead": "e438f9d706092a1c8b11c3a78f084b1f3c3ac091"
65
65
  }