@genesislcap/foundation-errors 15.6.2 → 15.7.0-ts7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dts/banner/error-banner-builder.d.ts.map +1 -1
- package/dist/dts/banner/error-banner-launcher.d.ts.map +1 -1
- package/dist/dts/dialog/error-dialog-builder.d.ts.map +1 -1
- package/dist/dts/dialog/error-dialog-launcher.d.ts.map +1 -1
- package/dist/dts/error-builder.d.ts.map +1 -1
- package/dist/dts/error-launcher.d.ts.map +1 -1
- package/dist/dts/error-util.d.ts.map +1 -1
- package/dist/dts/notification/notification-builder.d.ts.map +1 -1
- package/dist/dts/notification/notification-launcher.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-builder.d.ts.map +1 -1
- package/dist/dts/snackbar/snackbar-launcher.d.ts.map +1 -1
- package/dist/esm/notification/notification-launcher.js +8 -7
- package/package.json +10 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-banner-builder.d.ts","sourceRoot":"","sources":["../../../src/banner/error-banner-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;
|
|
1
|
+
{"version":3,"file":"error-banner-builder.d.ts","sourceRoot":"","sources":["../../../src/banner/error-banner-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,CAGlF;IAED;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB,CAMlF;IAED;;;;OAIG;IACI,KAAK,IAAI,WAAW,CAW1B;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-banner-launcher.d.ts","sourceRoot":"","sources":["../../../src/banner/error-banner-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAE9D;;;;;;KAMK;AACL,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"error-banner-launcher.d.ts","sourceRoot":"","sources":["../../../src/banner/error-banner-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAE9D;;;;;;KAMK;AACL,eAAO,MAAM,UAAU,UACd,cAAc,WACZ,MAAM,iBACA,WAAW,KACzB,IAaF,CAAC"}
|
|
@@ -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;
|
|
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,CAGlF;IAED;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,kBAAkB,CAMlF;IAED;;;;OAIG;IACI,KAAK,IAAI,WAAW,CAS1B;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,QAAO,kBAA8C,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-dialog-launcher.d.ts","sourceRoot":"","sources":["../../../src/dialog/error-dialog-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAE9D;;;;;;KAMK;AACL,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"error-dialog-launcher.d.ts","sourceRoot":"","sources":["../../../src/dialog/error-dialog-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAsB,MAAM,UAAU,CAAC;AAE9D;;;;;;KAMK;AACL,eAAO,MAAM,UAAU,UAAW,cAAc,WAAW,MAAM,KAAG,IAOnE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-builder.d.ts","sourceRoot":"","sources":["../../src/error-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,iBAAiB,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAEhG;;;GAGG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,QAAQ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G,YAAY,CAGpD;IAED;;;;;OAKG;IACI,UAAU,CAAC,MAAM,EAAE,WAAW,GAAG,YAAY,CAGnD;IAED;;;;OAIG;IACI,KAAK,IAAI,cAAc,CA6C7B;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,eAAe,QAAO,YAAkC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-launcher.d.ts","sourceRoot":"","sources":["../../src/error-launcher.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAczC;;;;;;;KAOK;AACL,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"error-launcher.d.ts","sourceRoot":"","sources":["../../src/error-launcher.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAczC;;;;;;;KAOK;AACL,eAAO,MAAM,SAAS,UACb,cAAc,WACZ,MAAM,kBACC,WAAW,KAC1B,IAWF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-util.d.ts","sourceRoot":"","sources":["../../src/error-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"error-util.d.ts","sourceRoot":"","sources":["../../src/error-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAa,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,YAAa,cAAc,KAAG,MAIzD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,YAAa,cAAc,KAAG,QAErD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,OAAQ,MAAM,WAAW,MAAM,KAAG,WAa/D,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,oBAAoB,YAAa,GAAG,KAAG,WAAW,GAAG,IAUjE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-builder.d.ts","sourceRoot":"","sources":["../../../src/notification/notification-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE/F;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,IAAI,CAAwB;IAEpC;;;;;OAKG;IACI,YAAY,CAAC,QAAQ,EAAE,yBAAyB,GAAG,mBAAmB;
|
|
1
|
+
{"version":3,"file":"notification-builder.d.ts","sourceRoot":"","sources":["../../../src/notification/notification-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE/F;;;GAGG;AACH,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAA4B;IAC5C,OAAO,CAAC,SAAS,CAAU;IAC3B,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,IAAI,CAAwB;IAEpC;;;;;OAKG;IACI,YAAY,CAAC,QAAQ,EAAE,yBAAyB,GAAG,mBAAmB,CAG5E;IAED;;;;;OAKG;IACI,aAAa,CAAC,SAAS,EAAE,OAAO,GAAG,mBAAmB,CAG5D;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,YAAY,EAAE,MAAM,GAAG,mBAAmB,CAGjE;IAED;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,qBAAqB,GAAG,mBAAmB,CAGhE;IAED;;;OAGG;IACI,KAAK,IAAI,iBAAiB,CAehC;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,sBAAsB,QAAO,mBAAgD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-launcher.d.ts","sourceRoot":"","sources":["../../../src/notification/notification-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;;;KAMK;AACL,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"notification-launcher.d.ts","sourceRoot":"","sources":["../../../src/notification/notification-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C;;;;;;KAMK;AACL,eAAO,MAAM,gBAAgB,UAAW,cAAc,WAAW,MAAM,KAAG,IAkDzE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar-builder.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,IAAI,CAAe;IAE3B;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,eAAe;
|
|
1
|
+
{"version":3,"file":"snackbar-builder.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE;;;GAGG;AACH,qBAAa,eAAe;IAC1B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,IAAI,CAAe;IAE3B;;;;;OAKG;IACI,QAAQ,CAAC,IAAI,EAAE,YAAY,GAAG,eAAe,CAGnD;IAED;;;;;OAKG;IACI,oBAAoB,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,eAAe,CAM/E;IAED;;;;OAIG;IACI,KAAK,IAAI,QAAQ,CASvB;CACF;AAED;;;GAGG;AACH,eAAO,MAAM,kBAAkB,QAAO,eAAwC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar-launcher.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAgB,MAAM,UAAU,CAAC;AAExD;;;;;;KAMK;AACL,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"snackbar-launcher.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar-launcher.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAgB,MAAM,UAAU,CAAC;AAExD;;;;;;KAMK;AACL,eAAO,MAAM,YAAY,UAAW,cAAc,WAAW,MAAM,KAAG,IAMrE,CAAC"}
|
|
@@ -7,7 +7,8 @@ import { getErrorContainer } from '../error-util';
|
|
|
7
7
|
* @returns
|
|
8
8
|
* */
|
|
9
9
|
export const showNotification = (error, tagName) => {
|
|
10
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m
|
|
10
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
11
|
+
var _o;
|
|
11
12
|
const tagPrefix = tagName.split('-')[0];
|
|
12
13
|
const container = getErrorContainer('notify-container', tagName);
|
|
13
14
|
if (container) {
|
|
@@ -33,19 +34,19 @@ export const showNotification = (error, tagName) => {
|
|
|
33
34
|
const toastNotify = document.createElement(`${tagPrefix}-toast`);
|
|
34
35
|
const errorTitle = document.createElement('div');
|
|
35
36
|
errorTitle.setAttribute('slot', 'top');
|
|
36
|
-
errorTitle.textContent = (
|
|
37
|
+
errorTitle.textContent = (_o = error.title) !== null && _o !== void 0 ? _o : 'Error';
|
|
37
38
|
const errorDetails = document.createElement('div');
|
|
38
39
|
errorDetails.setAttribute('slot', 'content');
|
|
39
40
|
errorDetails.textContent = (error === null || error === void 0 ? void 0 : error.errorDetails) || '';
|
|
40
41
|
const errorDate = document.createElement('div');
|
|
41
42
|
errorDate.setAttribute('slot', 'date');
|
|
42
43
|
errorDate.textContent = new Date().toLocaleTimeString();
|
|
43
|
-
toastNotify.setAttribute('notify', ((
|
|
44
|
-
((
|
|
45
|
-
? toastNotify.setAttribute('auto-close', `${(
|
|
44
|
+
toastNotify.setAttribute('notify', ((_d = (_c = error === null || error === void 0 ? void 0 : error.config) === null || _c === void 0 ? void 0 : _c.notification) === null || _d === void 0 ? void 0 : _d.type) || '');
|
|
45
|
+
((_f = (_e = error === null || error === void 0 ? void 0 : error.config) === null || _e === void 0 ? void 0 : _e.notification) === null || _f === void 0 ? void 0 : _f.autoClose)
|
|
46
|
+
? toastNotify.setAttribute('auto-close', `${(_h = (_g = error === null || error === void 0 ? void 0 : error.config) === null || _g === void 0 ? void 0 : _g.notification) === null || _h === void 0 ? void 0 : _h.autoClose}`)
|
|
46
47
|
: '';
|
|
47
|
-
((
|
|
48
|
-
? toastNotify.setAttribute('close-timeout', `${(
|
|
48
|
+
((_k = (_j = error === null || error === void 0 ? void 0 : error.config) === null || _j === void 0 ? void 0 : _j.notification) === null || _k === void 0 ? void 0 : _k.closeTimeout)
|
|
49
|
+
? toastNotify.setAttribute('close-timeout', `${(_m = (_l = error === null || error === void 0 ? void 0 : error.config) === null || _l === void 0 ? void 0 : _l.notification) === null || _m === void 0 ? void 0 : _m.closeTimeout}`)
|
|
49
50
|
: '';
|
|
50
51
|
toastNotify.appendChild(errorTitle);
|
|
51
52
|
toastNotify.appendChild(errorDetails);
|
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": "15.
|
|
4
|
+
"version": "15.7.0-ts7.1",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@genesislcap/foundation-testing": "15.
|
|
55
|
-
"@genesislcap/genx": "15.
|
|
56
|
-
"@genesislcap/rollup-builder": "15.
|
|
57
|
-
"@genesislcap/ts-builder": "15.
|
|
58
|
-
"@genesislcap/uvu-playwright-builder": "15.
|
|
59
|
-
"@genesislcap/vite-builder": "15.
|
|
60
|
-
"@genesislcap/webpack-builder": "15.
|
|
54
|
+
"@genesislcap/foundation-testing": "15.7.0-ts7.1",
|
|
55
|
+
"@genesislcap/genx": "15.7.0-ts7.1",
|
|
56
|
+
"@genesislcap/rollup-builder": "15.7.0-ts7.1",
|
|
57
|
+
"@genesislcap/ts-builder": "15.7.0-ts7.1",
|
|
58
|
+
"@genesislcap/uvu-playwright-builder": "15.7.0-ts7.1",
|
|
59
|
+
"@genesislcap/vite-builder": "15.7.0-ts7.1",
|
|
60
|
+
"@genesislcap/webpack-builder": "15.7.0-ts7.1"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@genesislcap/foundation-logger": "15.
|
|
63
|
+
"@genesislcap/foundation-logger": "15.7.0-ts7.1"
|
|
64
64
|
},
|
|
65
65
|
"repository": {
|
|
66
66
|
"type": "git",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "cbdc6ec8914b5a75c30535e4bd15b11aff6c96fd"
|
|
74
74
|
}
|