@genesislcap/foundation-ui 14.180.3 → 14.180.5
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQ/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,+BAA+B,EAAE,cAG7C,CAAC;AAEF;;GAEG;AACH,qBAAa,QAAS,SAAQ,iBAAiB;IACtC,QAAQ,EAAE,WAAW,CAAC;IACjB,KAAK,EAAG,cAAc,CAAC;IACvB,YAAY,EAAG,qBAAqB,CAAC;IACrC,eAAe,SAAM;IACE,UAAU,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAA0B;IAChC,SAAS,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"snackbar.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAQ/D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAErD,eAAO,MAAM,+BAA+B,EAAE,cAG7C,CAAC;AAEF;;GAEG;AACH,qBAAa,QAAS,SAAQ,iBAAiB;IACtC,QAAQ,EAAE,WAAW,CAAC;IACjB,KAAK,EAAG,cAAc,CAAC;IACvB,YAAY,EAAG,qBAAqB,CAAC;IACrC,eAAe,SAAM;IACE,UAAU,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAA0B;IAChC,SAAS,EAAE,OAAO,CAAQ;IAC9E,gBAAgB;IAWa,IAAI,EAAE,YAAY,CAAyB;IAExE,OAAO,CAAC,UAAU,CAAgC;IAClD,OAAO,CAAC,oBAAoB,CAAiC;IAE7D,iBAAiB;IAMjB,YAAY,CAAC,QAAQ,EAAE,cAAc,EAAE,QAAQ,EAAE,cAAc;IAI/D,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,EAAE,QAAQ,EAAE,qBAAqB;IAMpF;;OAEG;IACI,aAAa,CAAC,WAAW,GAAE,OAAe;IAgBjD;;OAEG;IACI,OAAO;IAQd,oBAAoB,IAAI,IAAI;CAS7B;AAED;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;mBAK7B,CAAC"}
|
|
@@ -16,17 +16,22 @@ export class Snackbar extends FoundationElement {
|
|
|
16
16
|
super(...arguments);
|
|
17
17
|
this.deleteAnimation = '';
|
|
18
18
|
this.closeTimeout = SNACKBAR_CLOSE_TIMEOUT;
|
|
19
|
-
this.autoClose =
|
|
19
|
+
this.autoClose = true;
|
|
20
20
|
this.type = SNACKBAR_TYPE_DEFAULT;
|
|
21
21
|
this.dismissEventListener = this.handleDissmis.bind(this);
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
super.connectedCallback();
|
|
23
|
+
autoCloseChanged() {
|
|
25
24
|
if (this.autoClose) {
|
|
26
25
|
this.timeoutRef = setTimeout(() => {
|
|
27
26
|
this.handleDissmis(true);
|
|
28
27
|
}, this.closeTimeout);
|
|
29
28
|
}
|
|
29
|
+
if (!this.autoClose && this.timeoutRef) {
|
|
30
|
+
clearTimeout(this.timeoutRef);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
connectedCallback() {
|
|
34
|
+
super.connectedCallback();
|
|
30
35
|
this.addEventListener(SNACKBAR_EVENTS_NAMES.DISMISS, this.dismissEventListener);
|
|
31
36
|
}
|
|
32
37
|
errorChanged(oldValue, newValue) {
|
|
@@ -34,8 +39,10 @@ export class Snackbar extends FoundationElement {
|
|
|
34
39
|
this.type = (_c = (_b = (_a = newValue === null || newValue === void 0 ? void 0 : newValue.config) === null || _a === void 0 ? void 0 : _a.snackbar) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : SNACKBAR_TYPE_DEFAULT;
|
|
35
40
|
}
|
|
36
41
|
notificationChanged(oldValue, newValue) {
|
|
37
|
-
var _a, _b, _c;
|
|
42
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
38
43
|
this.type = (_c = (_b = (_a = newValue === null || newValue === void 0 ? void 0 : newValue.config) === null || _a === void 0 ? void 0 : _a.snackbar) === null || _b === void 0 ? void 0 : _b.type) !== null && _c !== void 0 ? _c : SNACKBAR_TYPE_DEFAULT;
|
|
44
|
+
this.autoClose = (_f = (_e = (_d = newValue === null || newValue === void 0 ? void 0 : newValue.config) === null || _d === void 0 ? void 0 : _d.snackbar) === null || _e === void 0 ? void 0 : _e.autoClose) !== null && _f !== void 0 ? _f : true;
|
|
45
|
+
this.closeTimeout = (_j = (_h = (_g = newValue === null || newValue === void 0 ? void 0 : newValue.config) === null || _g === void 0 ? void 0 : _g.snackbar) === null || _h === void 0 ? void 0 : _h.closeTimeout) !== null && _j !== void 0 ? _j : SNACKBAR_CLOSE_TIMEOUT;
|
|
39
46
|
}
|
|
40
47
|
/**
|
|
41
48
|
* Helper for remove snackbar from display with animation
|
|
@@ -62,7 +62,7 @@ export const foundationSnackbarStyles = css `
|
|
|
62
62
|
--snackbar-min-width: 356px;
|
|
63
63
|
--snackbar-min-height: 55px;
|
|
64
64
|
--snackbar-max-width: 496px;
|
|
65
|
-
--snackbar-max-height:
|
|
65
|
+
--snackbar-max-height: auto;
|
|
66
66
|
--snackbar-animation-name: append-from-left-animate;
|
|
67
67
|
--snackbar-animation-delete-name: delete-from-left-animate;
|
|
68
68
|
}
|
|
@@ -79,7 +79,7 @@ export const foundationSnackbarStyles = css `
|
|
|
79
79
|
box-shadow: 0 2px 5px 0 rgb(0 0 0 / 35%);
|
|
80
80
|
box-sizing: border-box;
|
|
81
81
|
display: flex;
|
|
82
|
-
position:
|
|
82
|
+
position: relative;
|
|
83
83
|
bottom: 5px;
|
|
84
84
|
flex-direction: row;
|
|
85
85
|
padding: 2px 16px;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@genesislcap/foundation-ui",
|
|
3
3
|
"description": "Genesis Foundation UI",
|
|
4
|
-
"version": "14.180.
|
|
4
|
+
"version": "14.180.5",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"license": "SEE LICENSE IN license.txt",
|
|
7
7
|
"main": "dist/esm/index.js",
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
"test:debug": "genx test --debug"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@genesislcap/foundation-testing": "14.180.
|
|
78
|
-
"@genesislcap/genx": "14.180.
|
|
79
|
-
"@genesislcap/rollup-builder": "14.180.
|
|
80
|
-
"@genesislcap/ts-builder": "14.180.
|
|
81
|
-
"@genesislcap/uvu-playwright-builder": "14.180.
|
|
82
|
-
"@genesislcap/vite-builder": "14.180.
|
|
83
|
-
"@genesislcap/webpack-builder": "14.180.
|
|
77
|
+
"@genesislcap/foundation-testing": "14.180.5",
|
|
78
|
+
"@genesislcap/genx": "14.180.5",
|
|
79
|
+
"@genesislcap/rollup-builder": "14.180.5",
|
|
80
|
+
"@genesislcap/ts-builder": "14.180.5",
|
|
81
|
+
"@genesislcap/uvu-playwright-builder": "14.180.5",
|
|
82
|
+
"@genesislcap/vite-builder": "14.180.5",
|
|
83
|
+
"@genesislcap/webpack-builder": "14.180.5",
|
|
84
84
|
"copyfiles": "^2.4.1",
|
|
85
85
|
"rimraf": "^3.0.2",
|
|
86
86
|
"rxjs": "^7.5.4"
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
"@fortawesome/free-regular-svg-icons": "^6.2.1",
|
|
92
92
|
"@fortawesome/free-solid-svg-icons": "^6.2.1",
|
|
93
93
|
"@genesiscommunitysuccess/analyzer-import-alias-plugin": "^4.0.0",
|
|
94
|
-
"@genesislcap/foundation-comms": "14.180.
|
|
95
|
-
"@genesislcap/foundation-criteria": "14.180.
|
|
96
|
-
"@genesislcap/foundation-errors": "14.180.
|
|
97
|
-
"@genesislcap/foundation-logger": "14.180.
|
|
98
|
-
"@genesislcap/foundation-notifications": "14.180.
|
|
99
|
-
"@genesislcap/foundation-user": "14.180.
|
|
100
|
-
"@genesislcap/foundation-utils": "14.180.
|
|
94
|
+
"@genesislcap/foundation-comms": "14.180.5",
|
|
95
|
+
"@genesislcap/foundation-criteria": "14.180.5",
|
|
96
|
+
"@genesislcap/foundation-errors": "14.180.5",
|
|
97
|
+
"@genesislcap/foundation-logger": "14.180.5",
|
|
98
|
+
"@genesislcap/foundation-notifications": "14.180.5",
|
|
99
|
+
"@genesislcap/foundation-user": "14.180.5",
|
|
100
|
+
"@genesislcap/foundation-utils": "14.180.5",
|
|
101
101
|
"@microsoft/fast-colors": "^5.3.1",
|
|
102
102
|
"@microsoft/fast-components": "^2.30.6",
|
|
103
103
|
"@microsoft/fast-element": "^1.12.0",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"access": "public"
|
|
120
120
|
},
|
|
121
121
|
"customElements": "dist/custom-elements.json",
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "6ecb126c94200e9e7c2735359dc6efe0bc743f9d"
|
|
123
123
|
}
|