@genesislcap/foundation-ui 14.180.5 → 14.180.7
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.styles.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,
|
|
1
|
+
{"version":3,"file":"snackbar.styles.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.styles.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAE7D,eAAO,MAAM,wBAAwB,EAAE,aAwHtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.template.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,mBAAmB,WAAY,MAAM,
|
|
1
|
+
{"version":3,"file":"snackbar.template.d.ts","sourceRoot":"","sources":["../../../src/snackbar/snackbar.template.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,eAAO,MAAM,mBAAmB,WAAY,MAAM,kEAoCjD,CAAC;AAEF,eAAO,MAAM,0BAA0B,+DAEtC,CAAC"}
|
|
@@ -71,6 +71,7 @@ export const foundationSnackbarStyles = css `
|
|
|
71
71
|
animation: var(--snackbar-animation-name) 0.3s linear;
|
|
72
72
|
max-width: var(--snackbar-max-width);
|
|
73
73
|
min-width: var(--snackbar-min-width);
|
|
74
|
+
min-height: var(--snackbar-min-height);
|
|
74
75
|
max-height: var(--snackbar-max-height);
|
|
75
76
|
background-color: var(--fill-color);
|
|
76
77
|
border-radius: calc(var(--control-corner-radius) * 1px);
|
|
@@ -107,6 +108,7 @@ export const foundationSnackbarStyles = css `
|
|
|
107
108
|
flex: 2;
|
|
108
109
|
font-size: 12px;
|
|
109
110
|
overflow: hidden;
|
|
111
|
+
overflow-wrap: anywhere;
|
|
110
112
|
}
|
|
111
113
|
|
|
112
114
|
.action {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { html, ref, repeat } from '@microsoft/fast-element';
|
|
1
|
+
import { html, ref, repeat, when } from '@microsoft/fast-element';
|
|
2
2
|
import { getPrefix } from '../utils';
|
|
3
3
|
export const getPrefixedSnackbar = (prefix) => html `
|
|
4
4
|
<div part="snackbar" class="snackbar ${(x) => x.deleteAnimation}" ${ref('snackbar')}>
|
|
@@ -7,9 +7,14 @@ export const getPrefixedSnackbar = (prefix) => html `
|
|
|
7
7
|
${(x) => { var _a, _b; return ((_a = x.error) === null || _a === void 0 ? void 0 : _a.errorDetails) || ((_b = x.notification) === null || _b === void 0 ? void 0 : _b.body) || 'Place holder for error message'; }}
|
|
8
8
|
</slot>
|
|
9
9
|
</div>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
${when((x) => {
|
|
11
|
+
var _a, _b, _c, _d, _e, _f;
|
|
12
|
+
return ((_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.snackbar) === null || _c === void 0 ? void 0 : _c.confirmingActions.length) ||
|
|
13
|
+
((_f = (_e = (_d = x.notification) === null || _d === void 0 ? void 0 : _d.config) === null || _e === void 0 ? void 0 : _e.snackbar) === null || _f === void 0 ? void 0 : _f.confirmingActions.length);
|
|
14
|
+
}, html `
|
|
15
|
+
<div part="action" class="action">
|
|
16
|
+
<slot name="action">
|
|
17
|
+
${repeat((x) => {
|
|
13
18
|
var _a, _b, _c, _d, _e, _f;
|
|
14
19
|
return ((_c = (_b = (_a = x.error) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b.snackbar) === null || _c === void 0 ? void 0 : _c.confirmingActions) ||
|
|
15
20
|
((_f = (_e = (_d = x.notification) === null || _d === void 0 ? void 0 : _d.config) === null || _e === void 0 ? void 0 : _e.snackbar) === null || _f === void 0 ? void 0 : _f.confirmingActions);
|
|
@@ -26,8 +31,9 @@ export const getPrefixedSnackbar = (prefix) => html `
|
|
|
26
31
|
${(x) => x.label}
|
|
27
32
|
</${prefix}-button>
|
|
28
33
|
`)}
|
|
29
|
-
|
|
30
|
-
|
|
34
|
+
</slot>
|
|
35
|
+
</div>
|
|
36
|
+
`)}
|
|
31
37
|
</div>
|
|
32
38
|
`;
|
|
33
39
|
export const foundationSnackbarTemplate = html `
|
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.7",
|
|
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.7",
|
|
78
|
+
"@genesislcap/genx": "14.180.7",
|
|
79
|
+
"@genesislcap/rollup-builder": "14.180.7",
|
|
80
|
+
"@genesislcap/ts-builder": "14.180.7",
|
|
81
|
+
"@genesislcap/uvu-playwright-builder": "14.180.7",
|
|
82
|
+
"@genesislcap/vite-builder": "14.180.7",
|
|
83
|
+
"@genesislcap/webpack-builder": "14.180.7",
|
|
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.7",
|
|
95
|
+
"@genesislcap/foundation-criteria": "14.180.7",
|
|
96
|
+
"@genesislcap/foundation-errors": "14.180.7",
|
|
97
|
+
"@genesislcap/foundation-logger": "14.180.7",
|
|
98
|
+
"@genesislcap/foundation-notifications": "14.180.7",
|
|
99
|
+
"@genesislcap/foundation-user": "14.180.7",
|
|
100
|
+
"@genesislcap/foundation-utils": "14.180.7",
|
|
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": "f3ae410371b27f3841816a79862a2f952bf6740d"
|
|
123
123
|
}
|