@zanichelli/albe-web-components 2.42.1 → 2.44.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/CHANGELOG.md +1486 -0
- package/dist/cjs/{index-ef6dc2ee.js → index-93c4c577.js} +7 -2
- package/dist/cjs/index.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{utils-d3a23e75.js → utils-23a6dee4.js} +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-switcher_10.cjs.entry.js +1 -1
- package/dist/cjs/z-aria-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-avatar.cjs.entry.js +1 -1
- package/dist/cjs/z-button-filter_5.cjs.entry.js +2 -2
- package/dist/cjs/z-chip.cjs.entry.js +1 -1
- package/dist/cjs/z-combobox.cjs.entry.js +2 -2
- package/dist/cjs/z-contextual-menu.cjs.entry.js +1 -1
- package/dist/cjs/z-cookiebar.cjs.entry.js +1 -1
- package/dist/cjs/z-file-upload.cjs.entry.js +2 -2
- package/dist/cjs/z-file.cjs.entry.js +2 -2
- package/dist/cjs/z-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-dropdown_2.cjs.entry.js +2 -2
- package/dist/cjs/z-messages-pocket.cjs.entry.js +1 -1
- package/dist/cjs/z-modal-login.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-alert.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-dictionary.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card-info.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-card_4.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-list-item.cjs.entry.js +2 -2
- package/dist/cjs/z-myz-topbar.cjs.entry.js +1 -1
- package/dist/cjs/z-navigation-tabs.cjs.entry.js +1 -1
- package/dist/cjs/z-notification.cjs.entry.js +17 -13
- package/dist/cjs/z-otp.cjs.entry.js +1 -1
- package/dist/cjs/z-pagination-bar.cjs.entry.js +2 -2
- package/dist/cjs/z-pocket_3.cjs.entry.js +2 -2
- package/dist/cjs/z-popover.cjs.entry.js +2 -2
- package/dist/cjs/z-section-title.cjs.entry.js +42 -0
- package/dist/cjs/z-slideshow.cjs.entry.js +2 -2
- package/dist/cjs/z-status-tag.cjs.entry.js +1 -1
- package/dist/cjs/z-table-cell.cjs.entry.js +1 -1
- package/dist/cjs/z-table-header.cjs.entry.js +2 -2
- package/dist/cjs/z-table-row.cjs.entry.js +1 -1
- package/dist/cjs/z-table.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/z-toast-notification.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-switch.cjs.entry.js +3 -3
- package/dist/cjs/z-tooltip.cjs.entry.js +1 -1
- package/dist/collection/beans/index.js +5 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/buttons/z-toggle-switch/styles.css +1 -0
- package/dist/collection/components/notification/z-notification/index.js +52 -27
- package/dist/collection/components/notification/z-notification/styles.css +73 -52
- package/dist/collection/components/z-section-title/index.js +91 -0
- package/dist/collection/components/z-section-title/styles.css +44 -0
- package/dist/collection/utils/storybook-utils.js +50 -0
- package/dist/esm/{index-cda2110a.js → index-023c206a.js} +6 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{utils-436360f5.js → utils-05b6c600.js} +1 -1
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-switcher_10.entry.js +1 -1
- package/dist/esm/z-aria-alert.entry.js +1 -1
- package/dist/esm/z-avatar.entry.js +1 -1
- package/dist/esm/z-button-filter_5.entry.js +2 -2
- package/dist/esm/z-chip.entry.js +1 -1
- package/dist/esm/z-combobox.entry.js +2 -2
- package/dist/esm/z-contextual-menu.entry.js +1 -1
- package/dist/esm/z-cookiebar.entry.js +1 -1
- package/dist/esm/z-file-upload.entry.js +2 -2
- package/dist/esm/z-file.entry.js +2 -2
- package/dist/esm/z-footer.entry.js +1 -1
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-dropdown_2.entry.js +2 -2
- package/dist/esm/z-messages-pocket.entry.js +1 -1
- package/dist/esm/z-modal-login.entry.js +1 -1
- package/dist/esm/z-myz-card-alert.entry.js +1 -1
- package/dist/esm/z-myz-card-dictionary.entry.js +1 -1
- package/dist/esm/z-myz-card-footer.entry.js +1 -1
- package/dist/esm/z-myz-card-info.entry.js +2 -2
- package/dist/esm/z-myz-card_4.entry.js +1 -1
- package/dist/esm/z-myz-list-item.entry.js +2 -2
- package/dist/esm/z-myz-topbar.entry.js +1 -1
- package/dist/esm/z-navigation-tabs.entry.js +1 -1
- package/dist/esm/z-notification.entry.js +17 -13
- package/dist/esm/z-otp.entry.js +1 -1
- package/dist/esm/z-pagination-bar.entry.js +2 -2
- package/dist/esm/z-pocket_3.entry.js +2 -2
- package/dist/esm/z-popover.entry.js +2 -2
- package/dist/esm/z-section-title.entry.js +38 -0
- package/dist/esm/z-slideshow.entry.js +2 -2
- package/dist/esm/z-status-tag.entry.js +1 -1
- package/dist/esm/z-table-cell.entry.js +1 -1
- package/dist/esm/z-table-header.entry.js +2 -2
- package/dist/esm/z-table-row.entry.js +1 -1
- package/dist/esm/z-table.entry.js +1 -1
- package/dist/esm/z-toast-notification-list.entry.js +1 -1
- package/dist/esm/z-toast-notification.entry.js +1 -1
- package/dist/esm/z-toggle-switch.entry.js +3 -3
- package/dist/esm/z-tooltip.entry.js +1 -1
- package/dist/types/beans/index.d.ts +5 -0
- package/dist/types/components/notification/z-notification/index.d.ts +17 -9
- package/dist/types/components/z-section-title/index.d.ts +25 -0
- package/dist/types/components.d.ts +52 -13
- package/dist/web-components-library/index.esm.js +1 -1
- package/dist/web-components-library/{p-b48105a4.entry.js → p-00265234.entry.js} +1 -1
- package/dist/web-components-library/{p-2d74660a.entry.js → p-04f7a407.entry.js} +1 -1
- package/dist/web-components-library/{p-cf00f379.entry.js → p-091b489d.entry.js} +1 -1
- package/dist/web-components-library/{p-24d62d5d.entry.js → p-1242e682.entry.js} +1 -1
- package/dist/web-components-library/{p-c9c7071f.entry.js → p-189c9cd3.entry.js} +1 -1
- package/dist/web-components-library/{p-98e15cf2.entry.js → p-2536d492.entry.js} +1 -1
- package/dist/web-components-library/{p-fd167bfb.entry.js → p-26410b9b.entry.js} +1 -1
- package/dist/web-components-library/{p-c17b64f1.js → p-26572e05.js} +1 -1
- package/dist/web-components-library/{p-8537e37d.entry.js → p-2b551b66.entry.js} +1 -1
- package/dist/web-components-library/{p-d97dd15a.entry.js → p-329633be.entry.js} +1 -1
- package/{www/build/p-9dc8fdb1.entry.js → dist/web-components-library/p-33dc73f1.entry.js} +1 -1
- package/dist/web-components-library/p-33f74396.entry.js +1 -0
- package/{www/build/p-5590d187.entry.js → dist/web-components-library/p-3ade3fa4.entry.js} +1 -1
- package/dist/web-components-library/{p-8ddeda29.entry.js → p-3b47835a.entry.js} +1 -1
- package/dist/web-components-library/{p-febe0261.entry.js → p-3d99e2b1.entry.js} +1 -1
- package/dist/web-components-library/{p-fc2043f7.entry.js → p-4e7c54ac.entry.js} +1 -1
- package/dist/web-components-library/{p-2edeb36b.entry.js → p-5300e675.entry.js} +1 -1
- package/dist/web-components-library/p-5b5d269c.js +1 -0
- package/dist/web-components-library/{p-21a85d4f.entry.js → p-5d429427.entry.js} +1 -1
- package/dist/web-components-library/{p-654c1830.entry.js → p-6b70aaa3.entry.js} +1 -1
- package/dist/web-components-library/{p-96da0513.entry.js → p-6deeeeff.entry.js} +1 -1
- package/dist/web-components-library/{p-caa452fc.entry.js → p-7bb69f45.entry.js} +1 -1
- package/dist/web-components-library/p-800e9669.entry.js +1 -0
- package/dist/web-components-library/{p-b359a48a.entry.js → p-9207c9ca.entry.js} +1 -1
- package/dist/web-components-library/{p-26286e79.entry.js → p-92f0664e.entry.js} +1 -1
- package/dist/web-components-library/{p-a61ee49c.entry.js → p-94919e28.entry.js} +1 -1
- package/dist/web-components-library/{p-3371604c.entry.js → p-98cd95f3.entry.js} +1 -1
- package/dist/web-components-library/p-99e53bd5.entry.js +1 -0
- package/dist/web-components-library/{p-d59d1090.entry.js → p-a8ba7c76.entry.js} +1 -1
- package/dist/web-components-library/{p-5683fb4a.entry.js → p-a9a24ffd.entry.js} +1 -1
- package/{www/build/p-729a98ab.entry.js → dist/web-components-library/p-b9d7caa1.entry.js} +1 -1
- package/dist/web-components-library/p-bc168412.entry.js +1 -0
- package/{www/build/p-9409540b.entry.js → dist/web-components-library/p-c3bd10ad.entry.js} +1 -1
- package/dist/web-components-library/{p-889bcfab.entry.js → p-cd0cafe6.entry.js} +1 -1
- package/dist/web-components-library/{p-a90d876c.entry.js → p-e305e1f8.entry.js} +1 -1
- package/dist/web-components-library/{p-fc5bb8d5.entry.js → p-e6f63644.entry.js} +1 -1
- package/dist/web-components-library/{p-b68c2b06.entry.js → p-e98bb01e.entry.js} +1 -1
- package/dist/web-components-library/{p-32fbc96b.entry.js → p-ead40844.entry.js} +1 -1
- package/dist/web-components-library/{p-49fd1045.entry.js → p-ee229819.entry.js} +1 -1
- package/dist/web-components-library/{p-7a3c0d01.entry.js → p-f938f1b0.entry.js} +1 -1
- package/dist/web-components-library/{p-83dda293.entry.js → p-fae6d22e.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/package.json +3 -3
- package/react/components.d.ts +1 -0
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/src-react/index.ts +1 -0
- package/www/build/index.esm.js +1 -1
- package/www/build/{p-b48105a4.entry.js → p-00265234.entry.js} +1 -1
- package/www/build/{p-2d74660a.entry.js → p-04f7a407.entry.js} +1 -1
- package/www/build/{p-cf00f379.entry.js → p-091b489d.entry.js} +1 -1
- package/www/build/{p-24d62d5d.entry.js → p-1242e682.entry.js} +1 -1
- package/www/build/{p-c9c7071f.entry.js → p-189c9cd3.entry.js} +1 -1
- package/www/build/{p-98e15cf2.entry.js → p-2536d492.entry.js} +1 -1
- package/www/build/{p-fd167bfb.entry.js → p-26410b9b.entry.js} +1 -1
- package/www/build/{p-c17b64f1.js → p-26572e05.js} +1 -1
- package/www/build/{p-8537e37d.entry.js → p-2b551b66.entry.js} +1 -1
- package/www/build/{p-d97dd15a.entry.js → p-329633be.entry.js} +1 -1
- package/{dist/web-components-library/p-9dc8fdb1.entry.js → www/build/p-33dc73f1.entry.js} +1 -1
- package/www/build/p-33f74396.entry.js +1 -0
- package/{dist/web-components-library/p-5590d187.entry.js → www/build/p-3ade3fa4.entry.js} +1 -1
- package/www/build/{p-8ddeda29.entry.js → p-3b47835a.entry.js} +1 -1
- package/www/build/{p-febe0261.entry.js → p-3d99e2b1.entry.js} +1 -1
- package/www/build/{p-fc2043f7.entry.js → p-4e7c54ac.entry.js} +1 -1
- package/www/build/{p-2edeb36b.entry.js → p-5300e675.entry.js} +1 -1
- package/www/build/p-5b5d269c.js +1 -0
- package/www/build/{p-21a85d4f.entry.js → p-5d429427.entry.js} +1 -1
- package/www/build/{p-654c1830.entry.js → p-6b70aaa3.entry.js} +1 -1
- package/www/build/{p-96da0513.entry.js → p-6deeeeff.entry.js} +1 -1
- package/www/build/{p-caa452fc.entry.js → p-7bb69f45.entry.js} +1 -1
- package/www/build/p-800e9669.entry.js +1 -0
- package/www/build/{p-b359a48a.entry.js → p-9207c9ca.entry.js} +1 -1
- package/www/build/{p-26286e79.entry.js → p-92f0664e.entry.js} +1 -1
- package/www/build/{p-a61ee49c.entry.js → p-94919e28.entry.js} +1 -1
- package/www/build/{p-3371604c.entry.js → p-98cd95f3.entry.js} +1 -1
- package/www/build/p-99e53bd5.entry.js +1 -0
- package/www/build/{p-d59d1090.entry.js → p-a8ba7c76.entry.js} +1 -1
- package/www/build/{p-5683fb4a.entry.js → p-a9a24ffd.entry.js} +1 -1
- package/{dist/web-components-library/p-729a98ab.entry.js → www/build/p-b9d7caa1.entry.js} +1 -1
- package/www/build/p-bc168412.entry.js +1 -0
- package/{dist/web-components-library/p-9409540b.entry.js → www/build/p-c3bd10ad.entry.js} +1 -1
- package/www/build/{p-889bcfab.entry.js → p-cd0cafe6.entry.js} +1 -1
- package/www/build/p-d96e3b44.js +129 -0
- package/www/build/{p-a90d876c.entry.js → p-e305e1f8.entry.js} +1 -1
- package/www/build/{p-fc5bb8d5.entry.js → p-e6f63644.entry.js} +1 -1
- package/www/build/{p-b68c2b06.entry.js → p-e98bb01e.entry.js} +1 -1
- package/www/build/{p-32fbc96b.entry.js → p-ead40844.entry.js} +1 -1
- package/www/build/{p-49fd1045.entry.js → p-ee229819.entry.js} +1 -1
- package/www/build/{p-7a3c0d01.entry.js → p-f938f1b0.entry.js} +1 -1
- package/www/build/{p-83dda293.entry.js → p-fae6d22e.entry.js} +1 -1
- package/www/build/p-fcff1237.css +812 -0
- package/www/build/web-components-library.esm.js +1 -1
- package/www/index.html +1 -1
- package/dist/collection/themes/index.stories.js +0 -38
- package/dist/web-components-library/p-5dfad268.entry.js +0 -1
- package/dist/web-components-library/p-bc4df198.entry.js +0 -1
- package/dist/web-components-library/p-d64c6f56.entry.js +0 -1
- package/dist/web-components-library/p-e5602e1b.js +0 -1
- package/www/build/p-41b51e91.js +0 -1
- package/www/build/p-5dfad268.entry.js +0 -1
- package/www/build/p-88b56b6e.css +0 -1
- package/www/build/p-bc4df198.entry.js +0 -1
- package/www/build/p-d64c6f56.entry.js +0 -1
- package/www/build/p-e5602e1b.js +0 -1
|
@@ -3,19 +3,25 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-ef6dc2ee.js');
|
|
7
6
|
|
|
8
|
-
const stylesCss = ":host{
|
|
7
|
+
const stylesCss = ":host{--z-notification--top-offset:0;display:flex;align-items:flex-start;width:100%;padding:calc(var(--space-unit) * 2);font-family:var(--font-family-sans);border-bottom:var(--border-size-medium) solid var(--color-surface03);outline:none;box-sizing:border-box}:host[sticky]{position:sticky;top:var(--z-notification--top-offset)}:host[sticky],:host([showshadow]){box-shadow:var(--shadow-3)}:host([type=\"success\"]){background:var(--color-success-inverse)}:host([type=\"warning\"]){background:var(--color-warning-inverse)}:host([type=\"error\"]){background:var(--color-error-inverse)}.status-icon,.close-button{display:flex;align-items:center;height:20px}:host([type=\"success\"]) .status-icon{fill:var(--color-success01)}:host([type=\"warning\"]) .status-icon{fill:var(--color-warning02)}:host([type=\"error\"]) .status-icon{fill:var(--color-error01)}:host>button,.content-container>button{margin:0;padding:0;background:transparent;border:none;font-family:inherit;cursor:pointer}.status-icon+.content-container{margin-left:var(--space-unit)}.content-container{display:flex;align-items:baseline;justify-content:space-between;row-gap:calc(var(--space-unit) * 2);flex-wrap:wrap;flex:1 auto}.content-text{max-width:800px;color:var(--color-text01);font-size:var(--font-size-2);font-weight:var(--font-rg);line-height:20px;letter-spacing:0.16px}.action-button{color:var(--color-primary01);font-size:var(--font-size-1);font-weight:var(--font-sb);line-height:16px;letter-spacing:0.32px}.content-container+.close-button{margin-left:calc(var(--space-unit) * 2)}.close-button z-icon{fill:var(--color-primary01)}@media and (min-width: 768px){.content-container{flex-wrap:nowrap}.content-text+.action-button{margin-left:calc(var(--space-unit) * 5)}}";
|
|
9
8
|
|
|
10
9
|
const ZNotification = class {
|
|
11
10
|
constructor(hostRef) {
|
|
12
11
|
index.registerInstance(this, hostRef);
|
|
13
12
|
this.notificationAction = index.createEvent(this, "notificationAction", 7);
|
|
14
13
|
this.notificationClose = index.createEvent(this, "notificationClose", 7);
|
|
15
|
-
/**
|
|
14
|
+
/** Enable close icon */
|
|
16
15
|
this.showclose = false;
|
|
17
|
-
/**
|
|
16
|
+
/**
|
|
17
|
+
* Enable shadow.
|
|
18
|
+
* @deprecated shadow is available only for the `sticky` version of the notification.
|
|
19
|
+
*/
|
|
18
20
|
this.showshadow = false;
|
|
21
|
+
/** Enable sticky notification bar. */
|
|
22
|
+
this.sticky = false;
|
|
23
|
+
this.handleActionButtonClick = this.handleActionButtonClick.bind(this);
|
|
24
|
+
this.handleCloseButtonClick = this.handleCloseButtonClick.bind(this);
|
|
19
25
|
}
|
|
20
26
|
handleActionButtonClick(e) {
|
|
21
27
|
e.preventDefault();
|
|
@@ -26,15 +32,13 @@ const ZNotification = class {
|
|
|
26
32
|
this.notificationClose.emit();
|
|
27
33
|
}
|
|
28
34
|
render() {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
this.handleActionButtonClick(e);
|
|
37
|
-
}, level: 5, variant: "semibold" }, this.actiontext))), this.showclose && (index.h("z-icon", { class: "close-icon", name: "multiply-circle", width: 16, height: 16, onClick: (e) => this.handleCloseButtonClick(e) }))));
|
|
35
|
+
var _a;
|
|
36
|
+
return [
|
|
37
|
+
this.contenticonname && index.h("z-icon", { class: "status-icon", name: this.contenticonname, width: 16, height: 16 }),
|
|
38
|
+
index.h("div", { class: "content-container" }, index.h("div", { class: "content-text" }, index.h("slot", null)), !!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) &&
|
|
39
|
+
index.h("button", { class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext)),
|
|
40
|
+
this.showclose && index.h("button", { class: "close-button", type: "button", onClick: this.handleCloseButtonClick }, index.h("z-icon", { name: "multiply-circle", width: 16, height: 16 }))
|
|
41
|
+
];
|
|
38
42
|
}
|
|
39
43
|
};
|
|
40
44
|
ZNotification.style = stylesCss;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg)}.digits-container{display:flex;justify-content:flex-start}input{height:72px;width:calc(var(--space-unit) * 5);font-size:32px;font-weight:300;font-family:var(--font-family-sans);text-align:center;caret-color:transparent;box-sizing:border-box;padding:0;color:var(--color-surface05)}input.error{border:1px solid;border-radius:4px;border-color:var(--color-error01);background-color:var(--color-error-inverse)}input:not(:last-of-type){margin-right:var(--space-unit)}@media only screen and (min-width: 768px){input:not(:last-of-type){margin-right:calc(var(--space-unit) * 2)}}@media only screen and (min-width: 1025px){input{width:calc(var(--space-unit) * 6)}}";
|
|
9
9
|
|
|
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const hammer = require('./hammer-54230951.js');
|
|
7
|
-
const utils = require('./utils-
|
|
7
|
+
const utils = require('./utils-23a6dee4.js');
|
|
8
8
|
require('./_commonjsHelpers-119ffc74.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-93c4c577.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
12
12
|
const stylesCss = ":host>div{height:48px;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center;align-content:center}:host>div>z-icon{cursor:pointer;margin:calc(var(--space-unit) * 2) 0;color:var(--color-primary01);fill:var(--color-primary01)}:host>div>z-icon.disabled{cursor:default;pointer-events:none;color:var(--color-disabled01);fill:var(--color-disabled01)}";
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
|
+
const utils = require('./utils-23a6dee4.js');
|
|
8
8
|
const hammer = require('./hammer-54230951.js');
|
|
9
9
|
require('./breakpoints-88c4fd6c.js');
|
|
10
10
|
require('./_commonjsHelpers-119ffc74.js');
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$2 = require('./index-9651dba8.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const utils = require('./utils-
|
|
7
|
+
const index$1 = require('./index-93c4c577.js');
|
|
8
|
+
const utils = require('./utils-23a6dee4.js');
|
|
9
9
|
require('./_commonjsHelpers-119ffc74.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-84b7063a.js');
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
|
+
|
|
8
|
+
const stylesCss = ":host{--z-section-title--divider-color:var(--red500);display:flex;flex-direction:column;align-items:flex-start;width:fit-content;font-family:var(--font-family-sans);font-weight:var(--font-rg)}:host,:host ::slotted(*){box-sizing:border-box}::slotted(*){margin:0}::slotted([slot=\"secondary-title\"]){padding-bottom:calc(var(--space-unit) / 2);border-bottom:var(--border-size-large) solid var(--z-section-title--divider-color);text-transform:uppercase;font-size:var(--font-size-3);line-height:1.5rem}::slotted([slot=\"primary-title\"]){font-size:var(--font-size-6);line-height:2rem}:host([uppercase]) ::slotted([slot=\"primary-title\"]){text-transform:uppercase}@media (min-width: 1152px){::slotted([slot=\"primary-title\"]){font-size:var(--font-size-7);line-height:2.25rem}}";
|
|
9
|
+
|
|
10
|
+
const ZSectionTitle = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
/**
|
|
14
|
+
* Divider position for the primary title.
|
|
15
|
+
* This prop only works if the secondary title is not set.
|
|
16
|
+
*/
|
|
17
|
+
this.dividerPosition = index$1.ZSectionTitleDividerPositions.before;
|
|
18
|
+
/**
|
|
19
|
+
* Whether the primary title text is uppercase.
|
|
20
|
+
*/
|
|
21
|
+
this.uppercase = true;
|
|
22
|
+
}
|
|
23
|
+
componentWillRender() {
|
|
24
|
+
this.hasSecondaryTitle = !!this.host.querySelector("[slot=secondary-title]");
|
|
25
|
+
}
|
|
26
|
+
render() {
|
|
27
|
+
return [
|
|
28
|
+
index.h("slot", { name: "secondary-title" }),
|
|
29
|
+
!this.hasSecondaryTitle &&
|
|
30
|
+
this.dividerPosition == index$1.ZSectionTitleDividerPositions.before &&
|
|
31
|
+
index.h("z-divider", { size: index$1.DividerSize.large, color: "z-section-title--divider-color" }),
|
|
32
|
+
index.h("slot", { name: "primary-title" }),
|
|
33
|
+
!this.hasSecondaryTitle &&
|
|
34
|
+
this.dividerPosition == index$1.ZSectionTitleDividerPositions.after &&
|
|
35
|
+
index.h("z-divider", { size: index$1.DividerSize.large, color: "z-section-title--divider-color" }),
|
|
36
|
+
];
|
|
37
|
+
}
|
|
38
|
+
get host() { return index.getElement(this); }
|
|
39
|
+
};
|
|
40
|
+
ZSectionTitle.style = stylesCss;
|
|
41
|
+
|
|
42
|
+
exports.z_section_title = ZSectionTitle;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
7
|
-
const utils = require('./utils-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
|
+
const utils = require('./utils-23a6dee4.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
10
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:block;width:inherit}:host>div{display:flex;flex-direction:column;width:inherit}main{position:relative;overflow:hidden;width:100%}main z-icon.scroll{position:absolute;top:50%;width:auto;cursor:pointer;transition:0.6s ease;margin:0 var(--space-unit);fill:var(--color-primary01);z-index:10}main .scroll.disabled{opacity:50%;pointer-events:none}main .scroll.right{right:0}#slides{display:flex;flex-wrap:wrap;transition:all 300ms;line-height:0px;overflow-y:hidden}footer{height:56px;width:100%;align-items:center;display:grid;grid-template-columns:2;grid-template-rows:2;grid-template-areas:\"center center\" \"left right\";border-top:var(--border-base) solid var(--color-surface02)}footer>div{align-items:center;width:100%}footer .footerCenter{grid-area:center}footer .footerLeft{grid-area:left}footer .footerRight{grid-area:right}footer .bulletContainer{display:flex;margin:0 auto;justify-content:center;align-items:center;min-height:60px}footer .bulletContainer .bullet{width:8px;height:8px;border-radius:50%;background-color:var(--bg-neutral-150);margin:var(--space-unit) 2px;pointer-events:none}footer .bulletContainer .bullet.selected{background-color:var(--bg-neutral-400)}@media only screen and (min-width: 768px){footer{grid-template-columns:1fr 2fr 1fr;grid-template-rows:1;grid-template-areas:\"left center right\";height:76px;border-top:var(--border-base) solid var(--color-surface02)}footer .bulletContainer .bullet{width:10px;height:10px;margin:var(--space-unit) 3px}}@media only screen and (min-width: 1025px){main z-icon.scroll{margin:0 10px}footer .bulletContainer .bullet{width:16px;height:16px;margin:var(--space-unit) calc(var(--space-unit) * 0.5);pointer-events:auto;cursor:pointer}}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
const index$2 = require('./index-9651dba8.js');
|
|
8
8
|
require('./_commonjsHelpers-119ffc74.js');
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
const index$2 = require('./index-9651dba8.js');
|
|
8
8
|
require('./_commonjsHelpers-119ffc74.js');
|
|
9
9
|
|
|
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
6
|
const index$2 = require('./index-9651dba8.js');
|
|
7
|
-
const index$1 = require('./index-
|
|
8
|
-
const utils = require('./utils-
|
|
7
|
+
const index$1 = require('./index-93c4c577.js');
|
|
8
|
+
const utils = require('./utils-23a6dee4.js');
|
|
9
9
|
require('./_commonjsHelpers-119ffc74.js');
|
|
10
10
|
require('./breakpoints-88c4fd6c.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = "z-table-row{display:table-row;font-family:var(--font-family-sans)}z-table-row[expanded-type=\"expandable\"]:hover{cursor:pointer}z-table-row[expanded-type=\"expandable\"]>z-table-cell:first-child,z-table-row[expanded-type=\"padding\"]>z-table-cell:first-child{--z-icon-width:16px;--z-icon-height:16px;width:24px;padding-left:16px;padding-right:0px;box-sizing:border-box;text-align:center;fill:var(--gray800);user-select:none}.z-icon-placeholder{width:24px;padding-right:0px}z-table-row[expanded-type=\"expandable\"]>z-table-cell:nth-child(2),z-table-row[expanded-type=\"padding\"]>z-table-cell:nth-child(2){padding-left:8px}z-table-row[expanded-type]:hover>z-table-cell:first-child{fill:var(--myz-blue-dark)}z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table-row[expanded]+z-table-expanded-row{display:table-row}z-table-row[expanded]>z-table-cell{border-bottom:none}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
|
|
9
9
|
const stylesCss = "z-table{overflow-x:auto;display:block;width:100%;font-family:var(--dashboard-font);font-weight:var(--font-rg);background-color:var(--color-white)}z-table>div.table{display:table;width:100%;border-collapse:separate}z-table>div.table-bordered>z-table-body>z-table-row>z-table-cell:not(:last-child),z-table>div.table-bordered>z-table-head>z-table-header-row>z-table-header:not(:last-child){border-right:var(--border-size-small) solid var(--bg-grey-200)}z-table>div>z-table-body>z-table-row[expandable]>z-table-cell:first-child,z-table>div>z-table-head>z-table-header-row[expandable]>z-table-header:first-child{border-right:none}z-table>div>z-table-body>z-table-row[expanded]>z-table-cell{background-color:var(--gray50)}z-table>div>z-table-body>z-table-row[expanded]+z-table-expanded-row{border-bottom:1px solid var(--gray200)}z-table>div.table-column-sticky>z-table-body>z-table-row>z-table-cell:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{position:sticky;left:0;box-shadow:1px 0 4px -1px rgba(66, 69, 72, 0.4);z-index:1}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{position:sticky;top:0;box-shadow:0 2px 3px -3px rgba(66, 69, 72, 0.4)}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header{z-index:2}z-table>div.table-header-sticky>z-table-head>z-table-header-row>z-table-header:first-child,z-table>div.table-column-sticky>z-table-head>z-table-header-row>z-table-header:first-child{z-index:5}z-table-body{width:auto;background-color:var(--color-white)}z-table-empty-box{display:flex;flex-direction:column;flex-grow:1;border-bottom:var(--border-size-small) solid var(--bg-grey-200)}z-table-empty-box.bordered{border-left:var(--border-size-small) solid var(--bg-grey-200)}.error-message{margin-top:calc(var(--space-unit) * 2)}.table-content{display:flex;flex-direction:row;width:100%}.error-content{font-family:var(--dashboard-font);padding:calc(var(--space-unit) * 3);display:flex}.error-content>img{width:244px;height:188px;margin-right:calc(var(--space-unit) * 3)}@media only screen and (max-width: 768px){z-table>div.table-empty{display:none}.error-content{display:flex;flex-direction:column}.error-content>img{width:auto;height:auto}.text{padding:calc(var(--space-unit) * 3) 0}}";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{font-family:var(--font-family-sans);font-weight:var(--font-rg);position:fixed;display:flex;flex-direction:column;flex-wrap:nowrap;z-index:10000;margin-bottom:calc(var(--space-unit) * 2);margin-top:calc(var(--space-unit) * 2)}::slotted(z-toast-notification){width:100vw}::slotted(:not(:last-child)){margin-bottom:calc(var(--space-unit) * 1)}:host(.bottom-centre),:host(.bottom-right),:host(.bottom-left){justify-content:flex-end;align-items:flex-end;bottom:0}:host(.top-left),:host(.top-right),:host(.top-centre){justify-content:flex-start;align-items:flex-start;top:0}@media only screen and (min-width: 768px){:host{margin:calc(var(--space-unit) * 3)}:host(.top-centre){justify-content:flex-start;align-items:center;top:0;left:50%;transform:translateX(-50%)}:host(.top-left){justify-content:flex-start;align-items:flex-start;top:0;left:0}:host(.top-right){justify-content:flex-start;align-items:flex-end;top:0;right:0}:host(.bottom-centre){justify-content:flex-end;align-items:center;bottom:0;left:50%;transform:translateX(-50%)}:host(.bottom-right){justify-content:flex-end;align-items:flex-end;bottom:0;right:0}:host(.bottom-left){justify-content:flex-end;align-items:flex-start;bottom:0;left:0}::slotted(z-toast-notification){width:50vw}}@media only screen and (min-width: 1366px){:host{margin:calc(var(--space-unit) * 4)}::slotted(z-toast-notification){width:33vw}}";
|
|
9
9
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
const breakpoints = require('./breakpoints-88c4fd6c.js');
|
|
8
8
|
const hammer = require('./hammer-54230951.js');
|
|
9
9
|
require('./_commonjsHelpers-119ffc74.js');
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const utils = require('./utils-
|
|
7
|
-
const index$1 = require('./index-
|
|
6
|
+
const utils = require('./utils-23a6dee4.js');
|
|
7
|
+
const index$1 = require('./index-93c4c577.js');
|
|
8
8
|
require('./breakpoints-88c4fd6c.js');
|
|
9
9
|
|
|
10
|
-
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
|
|
10
|
+
const stylesCss = ".sc-z-toggle-switch-h{font-family:var(--font-family-sans);font-weight:var(--font-rg);display:inline-flex;position:relative}label.sc-z-toggle-switch{display:flex;align-items:center;flex-direction:row;cursor:pointer}label.disabled.sc-z-toggle-switch{cursor:default}label.right.sc-z-toggle-switch{flex-direction:row-reverse}label.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{letter-spacing:0;color:var(--color-text01)}label.left.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-right:var(--space-unit)}label.right.sc-z-toggle-switch>span.sc-z-toggle-switch:first-child{margin-left:var(--space-unit)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{display:flex;align-items:center}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch{top:1px;left:1px;height:18px;width:calc(var(--space-unit) * 4);border-radius:var(--space-unit);color:var(--gray500);background-color:var(--gray500);position:relative;cursor:pointer}label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch,label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch{background-color:var(--color-disabled01);cursor:default}label.sc-z-toggle-switch>span.container.checked.disabled.sc-z-toggle-switch>span.circle.sc-z-toggle-switch>z-icon.sc-z-toggle-switch{fill:var(--color-disabled01)}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch{background-color:var(--color-primary01);fill:var(--color-primary01)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled){outline:none;box-shadow:var(--shadow-focus-primary)}input.sc-z-toggle-switch:focus:focus-visible+label.sc-z-toggle-switch>span.container.disabled.sc-z-toggle-switch{outline:none}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch:not(.disabled):hover{background-color:var(--color-hover-primary);fill:var(--color-hover-primary)}label.sc-z-toggle-switch>span.container.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{top:1px;left:1px;position:absolute;display:flex;align-items:center;justify-content:center;margin:0;height:calc(var(--space-unit) * 2);width:calc(var(--space-unit) * 2);border-radius:7px;background-color:var(--color-white);box-shadow:var(--shadow-1);transition:transform 0.3s ease}label.sc-z-toggle-switch>span.container.checked.sc-z-toggle-switch>span.circle.sc-z-toggle-switch{transform:translateX(calc(100% - 2px))}input[type=\"checkbox\"].sc-z-toggle-switch{position:absolute;opacity:0;z-index:-1;pointer-events:none}";
|
|
11
11
|
|
|
12
12
|
const ZToggleSwitch = class {
|
|
13
13
|
constructor(hostRef) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-84b7063a.js');
|
|
6
|
-
const index$1 = require('./index-
|
|
6
|
+
const index$1 = require('./index-93c4c577.js');
|
|
7
7
|
|
|
8
8
|
const stylesCss = ":host{--z-tooltip-theme--surface:var(--color-surface01);--z-tooltip-theme--text:var(--color-text01);--arrow-size:6px;--edge-offset:calc(-1 * (var(--arrow-size) + calc(var(--space-unit) * 2)));position:relative;display:none;align-items:center;justify-content:center;padding:var(--space-unit);min-width:calc(var(--space-unit) * 8);min-height:calc(var(--space-unit) * 4);color:var(--z-tooltip-theme--text);fill:currentColor;font-family:var(--font-family-sans);text-align:center;border-radius:var(--border-radius-small);background:var(--z-tooltip-theme--surface);filter:drop-shadow(0 4px 8px var(--shadow-color-base));will-change:filter}:host(.legacy){display:inline-flex;padding:calc(var(--space-unit) * 2);min-width:auto;min-height:auto;max-width:200px;font-style:italic;line-height:16px;letter-spacing:0.32px;font-size:12px;border:var(--border-size-small) solid var(--gray200);border-radius:var(--border-radius);filter:drop-shadow(0px 0px 2px rgba(0, 0, 0, 0.08))}:host(.legacy)::before{--arrow-size:14px}:host([position])::before{--arrow-edge-offset:calc(100% - var(--arrow-size) - var(--space-unit));--arrow-center-x-offset:calc(50% - calc(var(--arrow-size) / 2));--arrow-center-y-offset:calc(100% - calc(var(--arrow-size) / 2));content:'';position:absolute;width:var(--arrow-size);height:var(--arrow-size);background:inherit;transform:rotate(45deg)}:host([open][style*='top:']),:host([open][style*='inset:']){display:inline-flex}:host([position^='top']){margin-bottom:var(--space-unit)}:host([position='right']){margin-left:var(--space-unit)}:host([position='top_right']),:host([position='bottom_right']){margin-left:var(--edge-offset)}:host([position^='bottom']){margin-top:var(--space-unit)}:host([position='left']){margin-right:var(--space-unit)}:host([position='top_left']),:host([position='bottom_left']){margin-right:var(--edge-offset)}:host([position^='top'])::before{top:var(--arrow-center-y-offset)}:host([position^='bottom'])::before{bottom:var(--arrow-center-y-offset)}:host([position='top'])::before,:host([position='bottom'])::before{left:var(--arrow-center-x-offset)}:host([position='right'])::before,:host([position='left'])::before{top:var(--arrow-center-x-offset)}:host([position='right'])::before{right:var(--arrow-center-y-offset)}:host([position='top_right'])::before,:host([position='bottom_right'])::before{right:var(--arrow-edge-offset)}:host([position='left'])::before{left:var(--arrow-center-y-offset)}:host([position='top_left'])::before,:host([position='bottom_left'])::before{left:var(--arrow-edge-offset)}::slotted(*){flex:1 auto;overflow:auto}";
|
|
9
9
|
|
|
@@ -278,3 +278,8 @@ export var ZChipType;
|
|
|
278
278
|
ZChipType["default"] = "default";
|
|
279
279
|
ZChipType["mini"] = "mini";
|
|
280
280
|
})(ZChipType || (ZChipType = {}));
|
|
281
|
+
export var ZSectionTitleDividerPositions;
|
|
282
|
+
(function (ZSectionTitleDividerPositions) {
|
|
283
|
+
ZSectionTitleDividerPositions["before"] = "before";
|
|
284
|
+
ZSectionTitleDividerPositions["after"] = "after";
|
|
285
|
+
})(ZSectionTitleDividerPositions || (ZSectionTitleDividerPositions = {}));
|
|
@@ -60,6 +60,7 @@
|
|
|
60
60
|
"./components/z-ghost-loading/index.js",
|
|
61
61
|
"./components/z-offcanvas/index.js",
|
|
62
62
|
"./components/z-popover/index.js",
|
|
63
|
+
"./components/z-section-title/index.js",
|
|
63
64
|
"./components/z-status-tag/index.js",
|
|
64
65
|
"./components/z-table/z-table/index.js",
|
|
65
66
|
"./components/z-table/z-table-body/index.js",
|
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
import { Component, Prop, h, Event } from '@stencil/core';
|
|
2
|
-
import { NotificationType } from '../../../beans';
|
|
3
2
|
/**
|
|
4
|
-
*
|
|
3
|
+
* Notification bar component.
|
|
4
|
+
* @slot - The text of the notification.
|
|
5
|
+
* @cssprop --z-notification--top-offset - The top offset of the notification. Use it when `sticky` prop is set to `true` and you need the notification to stay under other sticky elements. Default: 0px.
|
|
5
6
|
*/
|
|
6
7
|
export class ZNotification {
|
|
7
8
|
constructor() {
|
|
8
|
-
/**
|
|
9
|
+
/** Enable close icon */
|
|
9
10
|
this.showclose = false;
|
|
10
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Enable shadow.
|
|
13
|
+
* @deprecated shadow is available only for the `sticky` version of the notification.
|
|
14
|
+
*/
|
|
11
15
|
this.showshadow = false;
|
|
16
|
+
/** Enable sticky notification bar. */
|
|
17
|
+
this.sticky = false;
|
|
18
|
+
this.handleActionButtonClick = this.handleActionButtonClick.bind(this);
|
|
19
|
+
this.handleCloseButtonClick = this.handleCloseButtonClick.bind(this);
|
|
12
20
|
}
|
|
13
21
|
handleActionButtonClick(e) {
|
|
14
22
|
e.preventDefault();
|
|
@@ -19,21 +27,17 @@ export class ZNotification {
|
|
|
19
27
|
this.notificationClose.emit();
|
|
20
28
|
}
|
|
21
29
|
render() {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"warning-notification": this.type === NotificationType.warning,
|
|
26
|
-
"error-notification": this.type === NotificationType.error,
|
|
27
|
-
"shadow": this.showshadow
|
|
28
|
-
} },
|
|
29
|
-
this.contenticonname && (h("z-icon", { name: this.contenticonname, width: 16, height: 16 })),
|
|
30
|
+
var _a;
|
|
31
|
+
return [
|
|
32
|
+
this.contenticonname && h("z-icon", { class: "status-icon", name: this.contenticonname, width: 16, height: 16 }),
|
|
30
33
|
h("div", { class: "content-container" },
|
|
31
|
-
h("
|
|
34
|
+
h("div", { class: "content-text" },
|
|
32
35
|
h("slot", null)),
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
!!((_a = this.actiontext) === null || _a === void 0 ? void 0 : _a.trim()) &&
|
|
37
|
+
h("button", { class: "action-button", type: "button", onClick: this.handleActionButtonClick }, this.actiontext)),
|
|
38
|
+
this.showclose && h("button", { class: "close-button", type: "button", onClick: this.handleCloseButtonClick },
|
|
39
|
+
h("z-icon", { name: "multiply-circle", width: 16, height: 16 }))
|
|
40
|
+
];
|
|
37
41
|
}
|
|
38
42
|
static get is() { return "z-notification"; }
|
|
39
43
|
static get encapsulation() { return "shadow"; }
|
|
@@ -56,7 +60,7 @@ export class ZNotification {
|
|
|
56
60
|
"optional": true,
|
|
57
61
|
"docs": {
|
|
58
62
|
"tags": [],
|
|
59
|
-
"text": "icon on the left of the content"
|
|
63
|
+
"text": "Name of the icon on the left of the content"
|
|
60
64
|
},
|
|
61
65
|
"attribute": "contenticonname",
|
|
62
66
|
"reflect": false
|
|
@@ -73,7 +77,7 @@ export class ZNotification {
|
|
|
73
77
|
"optional": true,
|
|
74
78
|
"docs": {
|
|
75
79
|
"tags": [],
|
|
76
|
-
"text": "
|
|
80
|
+
"text": "Action button text"
|
|
77
81
|
},
|
|
78
82
|
"attribute": "actiontext",
|
|
79
83
|
"reflect": false
|
|
@@ -95,10 +99,10 @@ export class ZNotification {
|
|
|
95
99
|
"optional": false,
|
|
96
100
|
"docs": {
|
|
97
101
|
"tags": [],
|
|
98
|
-
"text": "
|
|
102
|
+
"text": "Alert variant type"
|
|
99
103
|
},
|
|
100
104
|
"attribute": "type",
|
|
101
|
-
"reflect":
|
|
105
|
+
"reflect": true
|
|
102
106
|
},
|
|
103
107
|
"showclose": {
|
|
104
108
|
"type": "boolean",
|
|
@@ -112,7 +116,7 @@ export class ZNotification {
|
|
|
112
116
|
"optional": true,
|
|
113
117
|
"docs": {
|
|
114
118
|
"tags": [],
|
|
115
|
-
"text": "
|
|
119
|
+
"text": "Enable close icon"
|
|
116
120
|
},
|
|
117
121
|
"attribute": "showclose",
|
|
118
122
|
"reflect": false,
|
|
@@ -129,11 +133,32 @@ export class ZNotification {
|
|
|
129
133
|
"required": false,
|
|
130
134
|
"optional": true,
|
|
131
135
|
"docs": {
|
|
132
|
-
"tags": [
|
|
133
|
-
|
|
136
|
+
"tags": [{
|
|
137
|
+
"name": "deprecated",
|
|
138
|
+
"text": "shadow is available only for the `sticky` version of the notification."
|
|
139
|
+
}],
|
|
140
|
+
"text": "Enable shadow."
|
|
134
141
|
},
|
|
135
142
|
"attribute": "showshadow",
|
|
136
|
-
"reflect":
|
|
143
|
+
"reflect": true,
|
|
144
|
+
"defaultValue": "false"
|
|
145
|
+
},
|
|
146
|
+
"sticky": {
|
|
147
|
+
"type": "boolean",
|
|
148
|
+
"mutable": false,
|
|
149
|
+
"complexType": {
|
|
150
|
+
"original": "boolean",
|
|
151
|
+
"resolved": "boolean",
|
|
152
|
+
"references": {}
|
|
153
|
+
},
|
|
154
|
+
"required": false,
|
|
155
|
+
"optional": true,
|
|
156
|
+
"docs": {
|
|
157
|
+
"tags": [],
|
|
158
|
+
"text": "Enable sticky notification bar."
|
|
159
|
+
},
|
|
160
|
+
"attribute": "sticky",
|
|
161
|
+
"reflect": true,
|
|
137
162
|
"defaultValue": "false"
|
|
138
163
|
}
|
|
139
164
|
}; }
|
|
@@ -145,7 +170,7 @@ export class ZNotification {
|
|
|
145
170
|
"composed": true,
|
|
146
171
|
"docs": {
|
|
147
172
|
"tags": [],
|
|
148
|
-
"text": "
|
|
173
|
+
"text": "Call to action clicked"
|
|
149
174
|
},
|
|
150
175
|
"complexType": {
|
|
151
176
|
"original": "any",
|
|
@@ -160,7 +185,7 @@ export class ZNotification {
|
|
|
160
185
|
"composed": true,
|
|
161
186
|
"docs": {
|
|
162
187
|
"tags": [],
|
|
163
|
-
"text": "
|
|
188
|
+
"text": "Close button clicked"
|
|
164
189
|
},
|
|
165
190
|
"complexType": {
|
|
166
191
|
"original": "any",
|
|
@@ -1,93 +1,114 @@
|
|
|
1
1
|
:host {
|
|
2
|
-
|
|
3
|
-
color: var(--color-text01);
|
|
4
|
-
}
|
|
2
|
+
--z-notification--top-offset: 0;
|
|
5
3
|
|
|
6
|
-
.notification-container {
|
|
7
4
|
display: flex;
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
align-items: flex-start;
|
|
6
|
+
width: 100%;
|
|
7
|
+
padding: calc(var(--space-unit) * 2);
|
|
8
|
+
font-family: var(--font-family-sans);
|
|
10
9
|
border-bottom: var(--border-size-medium) solid var(--color-surface03);
|
|
10
|
+
outline: none;
|
|
11
|
+
box-sizing: border-box;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
:host[sticky] {
|
|
15
|
+
position: sticky;
|
|
16
|
+
top: var(--z-notification--top-offset);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
:host[sticky],
|
|
20
|
+
:host([showshadow]) {
|
|
14
21
|
box-shadow: var(--shadow-3);
|
|
15
22
|
}
|
|
16
23
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
24
|
+
:host([type="success"]) {
|
|
25
|
+
background: var(--color-success-inverse);
|
|
26
|
+
}
|
|
20
27
|
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
:host([type="warning"]) {
|
|
29
|
+
background: var(--color-warning-inverse);
|
|
23
30
|
}
|
|
24
31
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
margin-top: calc(var(--space-unit) * 2);
|
|
28
|
-
margin-right: calc(var(--space-unit) * 2);
|
|
32
|
+
:host([type="error"]) {
|
|
33
|
+
background: var(--color-error-inverse);
|
|
29
34
|
}
|
|
30
35
|
|
|
31
|
-
.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
.status-icon,
|
|
37
|
+
.close-button {
|
|
38
|
+
/* simulate the line-height of the text
|
|
39
|
+
to make the icon look correctly aligned with it. */
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
height: 20px;
|
|
38
43
|
}
|
|
39
44
|
|
|
40
|
-
:host
|
|
41
|
-
|
|
42
|
-
margin-top: calc(var(--space-unit) * 2);
|
|
43
|
-
margin-right: calc(var(--space-unit));
|
|
45
|
+
:host([type="success"]) .status-icon {
|
|
46
|
+
fill: var(--color-success01);
|
|
44
47
|
}
|
|
45
48
|
|
|
46
|
-
:host
|
|
47
|
-
|
|
49
|
+
:host([type="warning"]) .status-icon {
|
|
50
|
+
fill: var(--color-warning02);
|
|
48
51
|
}
|
|
49
52
|
|
|
50
|
-
:host
|
|
51
|
-
|
|
53
|
+
:host([type="error"]) .status-icon {
|
|
54
|
+
fill: var(--color-error01);
|
|
52
55
|
}
|
|
53
56
|
|
|
54
|
-
:host
|
|
55
|
-
|
|
57
|
+
:host > button,
|
|
58
|
+
.content-container > button {
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
background: transparent;
|
|
62
|
+
border: none;
|
|
63
|
+
font-family: inherit;
|
|
64
|
+
cursor: pointer;
|
|
56
65
|
}
|
|
57
66
|
|
|
58
|
-
|
|
59
|
-
|
|
67
|
+
.status-icon + .content-container {
|
|
68
|
+
margin-left: var(--space-unit);
|
|
60
69
|
}
|
|
61
70
|
|
|
62
|
-
|
|
63
|
-
|
|
71
|
+
.content-container {
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: baseline;
|
|
74
|
+
justify-content: space-between;
|
|
75
|
+
row-gap: calc(var(--space-unit) * 2);
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
flex: 1 auto;
|
|
64
78
|
}
|
|
65
79
|
|
|
66
|
-
|
|
67
|
-
|
|
80
|
+
.content-text {
|
|
81
|
+
max-width: 800px;
|
|
82
|
+
color: var(--color-text01);
|
|
83
|
+
font-size: var(--font-size-2);
|
|
84
|
+
font-weight: var(--font-rg);
|
|
85
|
+
line-height: 20px;
|
|
86
|
+
letter-spacing: 0.16px;
|
|
68
87
|
}
|
|
69
88
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
89
|
+
.action-button {
|
|
90
|
+
color: var(--color-primary01);
|
|
91
|
+
font-size: var(--font-size-1);
|
|
92
|
+
font-weight: var(--font-sb);
|
|
93
|
+
line-height: 16px;
|
|
94
|
+
letter-spacing: 0.32px;
|
|
74
95
|
}
|
|
75
96
|
|
|
97
|
+
.content-container + .close-button {
|
|
98
|
+
margin-left: calc(var(--space-unit) * 2);
|
|
99
|
+
}
|
|
76
100
|
|
|
101
|
+
.close-button z-icon {
|
|
102
|
+
fill: var(--color-primary01);
|
|
103
|
+
}
|
|
77
104
|
|
|
78
105
|
/* Tablet breakpoint */
|
|
79
|
-
@media
|
|
106
|
+
@media and (min-width: 768px) {
|
|
80
107
|
.content-container {
|
|
81
108
|
flex-wrap: nowrap;
|
|
82
109
|
}
|
|
83
110
|
|
|
84
|
-
.content-text {
|
|
85
|
-
margin-
|
|
111
|
+
.content-text + .action-button {
|
|
112
|
+
margin-left: calc(var(--space-unit) * 5);
|
|
86
113
|
}
|
|
87
114
|
}
|
|
88
|
-
|
|
89
|
-
/* Desktop breakpoint */
|
|
90
|
-
@media only screen and (min-width: 1152px) {}
|
|
91
|
-
|
|
92
|
-
/* Wide breakpoint */
|
|
93
|
-
@media only screen and (min-width: 1366px) {}
|