@zanichelli/albe-web-components 7.2.0 → 7.3.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 +102 -0
- package/dist/cjs/index-e3299e0a.js +10 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/web-components-library.cjs.js +1 -1
- package/dist/cjs/z-app-header_2.cjs.entry.js +152 -0
- package/dist/cjs/z-button-sort.cjs.entry.js +1 -1
- package/dist/cjs/z-button.cjs.entry.js +43 -0
- package/dist/cjs/z-card.cjs.entry.js +1 -1
- package/dist/cjs/z-chip.cjs.entry.js +6 -3
- package/dist/cjs/z-dragdrop-area_2.cjs.entry.js +25 -4
- package/dist/cjs/z-list_3.cjs.entry.js +1 -1
- package/dist/cjs/z-menu-section.cjs.entry.js +11 -3
- package/dist/cjs/z-menu.cjs.entry.js +26 -14
- package/dist/cjs/z-myz-card-footer.cjs.entry.js +13 -1
- package/dist/cjs/z-myz-card-icon.cjs.entry.js +1 -1
- package/dist/cjs/z-myz-card_4.cjs.entry.js +2 -2
- package/dist/cjs/z-offcanvas.cjs.entry.js +57 -0
- package/dist/cjs/z-searchbar.cjs.entry.js +12 -3
- package/dist/cjs/z-stepper-item.cjs.entry.js +1 -1
- package/dist/cjs/z-toggle-button.cjs.entry.js +4 -2
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/buttons/z-button-sort/index.js +2 -2
- package/dist/collection/components/buttons/z-button-sort/styles.css +1 -1
- package/dist/collection/components/buttons/z-chip/index.js +25 -3
- package/dist/collection/components/buttons/z-chip/styles.css +28 -21
- package/dist/collection/components/buttons/z-toggle-button/index.js +21 -1
- package/dist/collection/components/buttons/z-toggle-button/styles.css +1 -3
- package/dist/collection/components/indicators/z-stepper-item/styles.css +1 -1
- package/dist/collection/components/inputs/z-searchbar/index.js +76 -3
- package/dist/collection/components/inputs/z-searchbar/styles.css +23 -0
- package/dist/collection/components/list/z-list-element/index.js +1 -1
- package/dist/collection/components/modal/z-modal/index.js +43 -4
- package/dist/collection/components/navigation/z-app-header/index.js +14 -15
- package/dist/collection/components/navigation/z-app-header/styles.css +2 -3
- package/dist/collection/components/navigation/z-menu/index.js +45 -21
- package/dist/collection/components/navigation/z-menu/styles.css +80 -13
- package/dist/collection/components/navigation/z-menu-section/index.js +13 -4
- package/dist/collection/components/navigation/z-menu-section/styles.css +37 -4
- package/dist/collection/components/notification/z-toast-notification/index.js +1 -1
- package/dist/collection/components/z-card/index.js +9 -0
- package/dist/collection/components/z-card/styles.css +1 -1
- package/dist/collection/components/z-offcanvas/index.js +39 -23
- package/dist/collection/components/z-offcanvas/styles.css +5 -5
- package/dist/collection/snowflakes/myz/card/z-myz-card-footer/index.js +13 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/index.js +1 -1
- package/dist/collection/snowflakes/myz/card/z-myz-card-header/styles.css +12 -0
- package/dist/collection/snowflakes/myz/card/z-myz-card-icon/styles.css +1 -1
- package/dist/collection/utils/storybook-utils.js +1 -1
- package/dist/esm/index-a2ca4b97.js +10 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/polyfills/css-shim.js +0 -0
- package/dist/esm/web-components-library.js +1 -1
- package/dist/esm/z-app-header_2.entry.js +147 -0
- package/dist/esm/z-button-sort.entry.js +1 -1
- package/dist/esm/z-button.entry.js +39 -0
- package/dist/esm/z-card.entry.js +1 -1
- package/dist/esm/z-chip.entry.js +7 -4
- package/dist/esm/z-dragdrop-area_2.entry.js +25 -4
- package/dist/esm/z-list_3.entry.js +1 -1
- package/dist/esm/z-menu-section.entry.js +11 -3
- package/dist/esm/z-menu.entry.js +26 -14
- package/dist/esm/z-myz-card-footer.entry.js +14 -2
- package/dist/esm/z-myz-card-icon.entry.js +1 -1
- package/dist/esm/z-myz-card_4.entry.js +2 -2
- package/dist/esm/z-offcanvas.entry.js +53 -0
- package/dist/esm/z-searchbar.entry.js +13 -4
- package/dist/esm/z-stepper-item.entry.js +1 -1
- package/dist/esm/z-toggle-button.entry.js +4 -2
- package/dist/types/beans/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button/index.d.ts +0 -0
- package/dist/types/components/buttons/z-button-sort/index.d.ts +2 -2
- package/dist/types/components/buttons/z-chip/index.d.ts +2 -0
- package/dist/types/components/buttons/z-toggle-button/index.d.ts +2 -0
- package/dist/types/components/buttons/z-toggle-switch/index.d.ts +0 -0
- package/dist/types/components/date-picker/utils.d.ts +0 -0
- package/dist/types/components/date-picker/z-date-picker/index.d.ts +0 -0
- package/dist/types/components/date-picker/z-range-picker/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-dragdrop-area/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file/index.d.ts +0 -0
- package/dist/types/components/file-upload/z-file-upload/index.d.ts +0 -0
- package/dist/types/components/icons/icons.d.ts +0 -0
- package/dist/types/components/icons/z-icon/index.d.ts +0 -0
- package/dist/types/components/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper/index.d.ts +0 -0
- package/dist/types/components/indicators/z-stepper-item/index.d.ts +0 -0
- package/dist/types/components/inputs/z-combobox/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input/index.d.ts +0 -0
- package/dist/types/components/inputs/z-input-message/index.d.ts +0 -0
- package/dist/types/components/inputs/z-searchbar/index.d.ts +7 -1
- package/dist/types/components/inputs/z-select/index.d.ts +0 -0
- package/dist/types/components/list/z-list/index.d.ts +0 -0
- package/dist/types/components/list/z-list-element/index.d.ts +0 -0
- package/dist/types/components/list/z-list-group/index.d.ts +0 -0
- package/dist/types/components/list/z-toast-notification-list/index.d.ts +0 -0
- package/dist/types/components/logo/z-logo/index.d.ts +0 -0
- package/dist/types/components/modal/z-modal/index.d.ts +4 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tab-link/index.d.ts +0 -0
- package/dist/types/components/navigation/tabs/z-navigation-tabs/index.d.ts +0 -0
- package/dist/types/components/navigation/z-app-header/index.d.ts +2 -4
- package/dist/types/components/navigation/z-link/index.d.ts +0 -0
- package/dist/types/components/navigation/z-menu/index.d.ts +13 -5
- package/dist/types/components/navigation/z-menu-section/index.d.ts +9 -3
- package/dist/types/components/notification/z-info-box/index.d.ts +0 -0
- package/dist/types/components/notification/z-notification/index.d.ts +0 -0
- package/dist/types/components/notification/z-toast-notification/index.d.ts +1 -1
- package/dist/types/components/notification/z-tooltip/index.d.ts +0 -0
- package/dist/types/components/panel/z-panel-elem/index.d.ts +0 -0
- package/dist/types/components/z-anchor-navigation/index.d.ts +0 -0
- package/dist/types/components/z-aria-alert/index.d.ts +0 -0
- package/dist/types/components/z-avatar/index.d.ts +0 -0
- package/dist/types/components/z-card/index.d.ts +9 -0
- package/dist/types/components/z-carousel/index.d.ts +0 -0
- package/dist/types/components/z-contextual-menu/index.d.ts +0 -0
- package/dist/types/components/z-cover-hero/index.d.ts +0 -0
- package/dist/types/components/z-divider/index.d.ts +0 -0
- package/dist/types/components/z-ghost-loading/index.d.ts +0 -0
- package/dist/types/components/z-info-reveal/index.d.ts +0 -0
- package/dist/types/components/z-offcanvas/index.d.ts +4 -1
- package/dist/types/components/z-pagination/index.d.ts +0 -0
- package/dist/types/components/z-popover/index.d.ts +0 -0
- package/dist/types/components/z-section-title/index.d.ts +0 -0
- package/dist/types/components/z-skip-to-content/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-body/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-cell/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-empty-box/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-expanded-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-footer/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-head/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-header/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-header-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-row/index.d.ts +0 -0
- package/dist/types/components/z-table/z-table-sticky-footer/index.d.ts +0 -0
- package/dist/types/components/z-tag/index.d.ts +0 -0
- package/dist/types/components/z-visually-hidden/index.d.ts +0 -0
- package/dist/types/components.d.ts +65 -17
- package/dist/types/constants/breakpoints.d.ts +0 -0
- package/dist/types/constants/icons.d.ts +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-cover/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-dictionary/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer/index.d.ts +2 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-footer-sections/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-icon/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-info/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/card/z-myz-card-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/list/z-myz-list-item/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-messages-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-body/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-header/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/pocket/z-pocket-message/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-alert/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-otp/index.d.ts +0 -0
- package/dist/types/snowflakes/myz/z-slideshow/index.d.ts +0 -0
- package/dist/types/stencil-public-runtime.d.ts +0 -0
- package/dist/types/utils/utils.d.ts +0 -0
- package/dist/web-components-library/index.esm.js +0 -0
- package/dist/web-components-library/p-068951a7.entry.js +1 -0
- package/dist/web-components-library/p-06b7dad4.entry.js +1 -0
- package/dist/web-components-library/{p-417b1b6c.entry.js → p-10adc1fa.entry.js} +1 -1
- package/dist/web-components-library/p-1570917d.entry.js +1 -0
- package/dist/web-components-library/p-157aea3b.entry.js +1 -0
- package/dist/web-components-library/p-1c8e7c24.entry.js +1 -0
- package/dist/web-components-library/p-20682781.entry.js +1 -0
- package/dist/web-components-library/{p-ede9fbf5.entry.js → p-6736e894.entry.js} +1 -1
- package/dist/web-components-library/{p-810bd730.entry.js → p-9db2bf11.entry.js} +1 -1
- package/dist/web-components-library/p-af283478.entry.js +1 -0
- package/dist/web-components-library/p-c722c5a4.entry.js +1 -0
- package/dist/web-components-library/p-d0760bb1.entry.js +1 -0
- package/dist/web-components-library/p-deda8776.entry.js +1 -0
- package/dist/web-components-library/p-f3a8cc14.entry.js +1 -0
- package/dist/web-components-library/{p-05ced71c.entry.js → p-f5a99b28.entry.js} +1 -1
- package/dist/web-components-library/{p-c081e1f4.entry.js → p-f9f42d17.entry.js} +1 -1
- package/dist/web-components-library/web-components-library.css +2 -1
- package/dist/web-components-library/web-components-library.esm.js +1 -1
- package/loader/cdn.js +0 -0
- package/loader/index.cjs.js +0 -0
- package/loader/index.d.ts +0 -0
- package/loader/index.es2017.js +0 -0
- package/loader/index.js +0 -0
- package/loader/package.json +0 -0
- package/package.json +2 -3
- package/readme.md +0 -1
- package/www/build/index.esm.js +0 -0
- package/www/build/p-068951a7.entry.js +1 -0
- package/www/build/p-06b7dad4.entry.js +1 -0
- package/www/build/{p-417b1b6c.entry.js → p-10adc1fa.entry.js} +1 -1
- package/www/build/p-1570917d.entry.js +1 -0
- package/www/build/p-157aea3b.entry.js +1 -0
- package/www/build/p-1c8e7c24.entry.js +1 -0
- package/www/build/p-20682781.entry.js +1 -0
- package/www/build/{p-ede9fbf5.entry.js → p-6736e894.entry.js} +1 -1
- package/www/build/p-77d28b14.js +1 -0
- package/www/build/{p-810bd730.entry.js → p-9db2bf11.entry.js} +1 -1
- package/www/build/p-af283478.entry.js +1 -0
- package/www/build/p-c722c5a4.entry.js +1 -0
- package/www/build/p-d0760bb1.entry.js +1 -0
- package/www/build/p-deda8776.entry.js +1 -0
- package/www/build/p-f39bb490.css +2 -0
- package/www/build/p-f3a8cc14.entry.js +1 -0
- package/www/build/{p-05ced71c.entry.js → p-f5a99b28.entry.js} +1 -1
- package/www/build/{p-c081e1f4.entry.js → p-f9f42d17.entry.js} +1 -1
- package/www/build/web-components-library.css +2 -1
- package/www/build/web-components-library.esm.js +1 -1
- package/www/build/web-components-library.js +0 -0
- package/www/host.config.json +0 -0
- package/www/index.html +1 -37
- package/dist/cjs/z-app-header.cjs.entry.js +0 -133
- package/dist/cjs/z-button_3.cjs.entry.js +0 -108
- package/dist/esm/z-app-header.entry.js +0 -129
- package/dist/esm/z-button_3.entry.js +0 -102
- package/dist/web-components-library/p-029e4fba.entry.js +0 -1
- package/dist/web-components-library/p-14a6abe4.entry.js +0 -1
- package/dist/web-components-library/p-19ca449e.entry.js +0 -1
- package/dist/web-components-library/p-3a9cc467.entry.js +0 -1
- package/dist/web-components-library/p-73d9489b.entry.js +0 -1
- package/dist/web-components-library/p-9d03a7d6.entry.js +0 -1
- package/dist/web-components-library/p-f158d205.entry.js +0 -1
- package/dist/web-components-library/p-f95cc914.entry.js +0 -1
- package/dist/web-components-library/p-fa4c203a.entry.js +0 -1
- package/dist/web-components-library/p-fffb14e1.entry.js +0 -1
- package/www/build/p-029e4fba.entry.js +0 -1
- package/www/build/p-14a6abe4.entry.js +0 -1
- package/www/build/p-19ca449e.entry.js +0 -1
- package/www/build/p-275801c6.css +0 -1
- package/www/build/p-3a9cc467.entry.js +0 -1
- package/www/build/p-73d9489b.entry.js +0 -1
- package/www/build/p-811ee64f.js +0 -1
- package/www/build/p-9d03a7d6.entry.js +0 -1
- package/www/build/p-f158d205.entry.js +0 -1
- package/www/build/p-f95cc914.entry.js +0 -1
- package/www/build/p-fa4c203a.entry.js +0 -1
- package/www/build/p-fffb14e1.entry.js +0 -1
|
@@ -73,8 +73,6 @@ export declare class ZAppHeader {
|
|
|
73
73
|
* - auto: the menu bar is positioned near the title
|
|
74
74
|
* - stack: the menu bar is positioned below the title
|
|
75
75
|
* - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
76
|
-
*
|
|
77
|
-
* **Optional**
|
|
78
76
|
*/
|
|
79
77
|
flow: "auto" | "stack" | "offcanvas";
|
|
80
78
|
/**
|
|
@@ -97,6 +95,8 @@ export declare class ZAppHeader {
|
|
|
97
95
|
private container?;
|
|
98
96
|
private menuElements?;
|
|
99
97
|
private observer?;
|
|
98
|
+
private openDrawer;
|
|
99
|
+
private closeDrawer;
|
|
100
100
|
constructor();
|
|
101
101
|
componentDidLoad(): void;
|
|
102
102
|
private get title();
|
|
@@ -108,6 +108,4 @@ export declare class ZAppHeader {
|
|
|
108
108
|
onStuck(): void;
|
|
109
109
|
setMenuFloatingMode(): void;
|
|
110
110
|
render(): HTMLZAppHeaderElement;
|
|
111
|
-
private openDrawer;
|
|
112
|
-
private closeDrawer;
|
|
113
111
|
}
|
|
File without changes
|
|
@@ -5,24 +5,26 @@ import { EventEmitter } from "../../../stencil-public-runtime";
|
|
|
5
5
|
* @slot item - Single entry of the section. Can be slotted multiple times to insert items onto the menu. Use `z-menu-section` for submenus.
|
|
6
6
|
*/
|
|
7
7
|
export declare class ZMenu {
|
|
8
|
+
hostElement: HTMLZMenuElement;
|
|
8
9
|
/** Flag to set the active status of the menu. */
|
|
9
10
|
active?: boolean;
|
|
10
11
|
/**
|
|
11
12
|
* Flag to set the display mode of the list.
|
|
12
13
|
* If true, the list will be absolutely positioned under the menu label,
|
|
13
14
|
* stacked beneath it otherwise.
|
|
14
|
-
* @default false
|
|
15
15
|
*/
|
|
16
16
|
floating?: boolean;
|
|
17
|
+
/** The opening state of the menu. */
|
|
18
|
+
open: boolean;
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
+
* Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas).
|
|
21
|
+
* A small border is placed under it as a separator from other elements.
|
|
20
22
|
*/
|
|
21
|
-
|
|
23
|
+
verticalContext: boolean;
|
|
22
24
|
hasHeader: boolean;
|
|
23
25
|
hasContent: boolean;
|
|
24
|
-
hostElement: HTMLZMenuElement;
|
|
25
26
|
private content;
|
|
27
|
+
/** Animation frame request id. */
|
|
26
28
|
private raf;
|
|
27
29
|
/** The menu has been opened. */
|
|
28
30
|
opened: EventEmitter;
|
|
@@ -34,6 +36,11 @@ export declare class ZMenu {
|
|
|
34
36
|
onOpenChanged(): void;
|
|
35
37
|
constructor();
|
|
36
38
|
componentWillLoad(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
|
|
41
|
+
* @param ev Slotchange event
|
|
42
|
+
*/
|
|
43
|
+
private onLabelSlotChange;
|
|
37
44
|
/**
|
|
38
45
|
* Correctly set position of the floating menu in order to prevent overflow.
|
|
39
46
|
* @param live Should run the method on every refresh frame.
|
|
@@ -45,6 +52,7 @@ export declare class ZMenu {
|
|
|
45
52
|
private checkContent;
|
|
46
53
|
/**
|
|
47
54
|
* Set `menuitem` role to all menu items.
|
|
55
|
+
* Set the item's inner text to the `data-text` attribute (this is for using bold text avoiding layout shifts).
|
|
48
56
|
*/
|
|
49
57
|
private onItemsChange;
|
|
50
58
|
private renderMenuLabel;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* @slot
|
|
3
|
+
* A component to create submenus inside the ZMenu.
|
|
4
|
+
* @slot - Label of the menu section.
|
|
5
|
+
* @slot item - Single entry of the section. Set the same slot name to different items to put many of them. Add the `active` attribute to a slotted item to highlight it.
|
|
5
6
|
*/
|
|
6
7
|
export declare class ZMenuSection {
|
|
8
|
+
hostElement: HTMLZMenuSectionElement;
|
|
7
9
|
/** Active state */
|
|
8
10
|
active?: boolean;
|
|
9
11
|
open: boolean;
|
|
10
12
|
hasContent: boolean;
|
|
11
|
-
hostElement: HTMLZMenuSectionElement;
|
|
12
13
|
/** The section has been opened. */
|
|
13
14
|
opened: EventEmitter;
|
|
14
15
|
/** The section has been closed. */
|
|
@@ -20,6 +21,11 @@ export declare class ZMenuSection {
|
|
|
20
21
|
* Check if some content slot is set.
|
|
21
22
|
*/
|
|
22
23
|
private checkContent;
|
|
24
|
+
/**
|
|
25
|
+
* Sets slotted item text as `data-text` attribute value, to let CSS use it through `attr()`.
|
|
26
|
+
* @param ev Slotchange event
|
|
27
|
+
*/
|
|
28
|
+
private onLabelSlotChange;
|
|
23
29
|
componentWillLoad(): void;
|
|
24
30
|
render(): HTMLZMenuSectionElement;
|
|
25
31
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -12,7 +12,7 @@ export declare class ZToastNotification {
|
|
|
12
12
|
autoclose?: number;
|
|
13
13
|
/** toast notification autoclose can be paused */
|
|
14
14
|
pauseonfocusloss?: boolean;
|
|
15
|
-
/** toast notification type:
|
|
15
|
+
/** toast notification type: dark, light, accent, error, success, warning */
|
|
16
16
|
type?: ToastNotification;
|
|
17
17
|
/** toast notification can be draggable*/
|
|
18
18
|
isdraggable?: boolean;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
import { CardVariant } from "../../beans";
|
|
3
|
+
/**
|
|
4
|
+
* ZCard component.
|
|
5
|
+
* @cssprop --aspect-ratio - Cover aspect ratio. Default: `1.62`
|
|
6
|
+
* @cssprop --z-card--border-color - Default: `var(--gray200)`
|
|
7
|
+
* @cssprop --z-card--color-cover-background - Cover color. Default: `var(--color-surface01)`
|
|
8
|
+
* @cssprop --z-card--text-background - Background color for the `text` variant. Default: `var(--color-surface01)`
|
|
9
|
+
* @cssprop --z-card--text-border-radius - Default: `none`
|
|
10
|
+
* @cssprop --z-card--text-border - Configure CSS `border`. Default: `none`
|
|
11
|
+
*/
|
|
3
12
|
export declare class ZCard {
|
|
4
13
|
/**
|
|
5
14
|
* Card variant.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
import { OffCanvasVariant, TransitionDirection } from "../../beans";
|
|
3
3
|
/**
|
|
4
4
|
* @slot canvasContent - set the content of the canvas
|
|
5
|
+
* @method setSkipAanimationOnLoad - set skipAnimation
|
|
5
6
|
*/
|
|
6
7
|
export declare class ZOffcanvas {
|
|
7
8
|
hostElement: HTMLZOffcanvasElement;
|
|
@@ -15,10 +16,12 @@ export declare class ZOffcanvas {
|
|
|
15
16
|
open: boolean;
|
|
16
17
|
/** open content transitioning in a specified direction left | right. Default: left */
|
|
17
18
|
transitiondirection?: TransitionDirection;
|
|
18
|
-
/**
|
|
19
|
+
/** manages the skip for the entry animation*/
|
|
19
20
|
skipanimationonload: boolean;
|
|
20
21
|
/** emitted when open prop changes */
|
|
21
22
|
canvasOpenStatusChanged: EventEmitter;
|
|
23
|
+
/** this method allows you to skip the page loading animation, to be used with the prop set to true */
|
|
24
|
+
setSkipAanimationOnLoad(value: boolean): Promise<void>;
|
|
22
25
|
onOpenChanged(): void;
|
|
23
26
|
private handleOverflowProperty;
|
|
24
27
|
private handledTransitionEnd;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -28,7 +28,7 @@ export namespace Components {
|
|
|
28
28
|
*/
|
|
29
29
|
"drawerOpen": boolean;
|
|
30
30
|
/**
|
|
31
|
-
* Control menu bar position in the header. - auto: the menu bar is positioned near the title - stack: the menu bar is positioned below the title - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
31
|
+
* Control menu bar position in the header. - auto: the menu bar is positioned near the title - stack: the menu bar is positioned below the title - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
32
32
|
*/
|
|
33
33
|
"flow": "auto" | "stack" | "offcanvas";
|
|
34
34
|
/**
|
|
@@ -134,7 +134,7 @@ export namespace Components {
|
|
|
134
134
|
*/
|
|
135
135
|
"buttonid": string;
|
|
136
136
|
/**
|
|
137
|
-
*
|
|
137
|
+
* occurrences counter (optional)
|
|
138
138
|
*/
|
|
139
139
|
"counter"?: number;
|
|
140
140
|
/**
|
|
@@ -207,6 +207,10 @@ export namespace Components {
|
|
|
207
207
|
"single": boolean;
|
|
208
208
|
}
|
|
209
209
|
interface ZChip {
|
|
210
|
+
/**
|
|
211
|
+
* z-chip aria-label string
|
|
212
|
+
*/
|
|
213
|
+
"ariaLabel": string;
|
|
210
214
|
/**
|
|
211
215
|
* set z-chip as disabled
|
|
212
216
|
*/
|
|
@@ -743,14 +747,16 @@ export namespace Components {
|
|
|
743
747
|
"active"?: boolean;
|
|
744
748
|
/**
|
|
745
749
|
* Flag to set the display mode of the list. If true, the list will be absolutely positioned under the menu label, stacked beneath it otherwise.
|
|
746
|
-
* @default false
|
|
747
750
|
*/
|
|
748
751
|
"floating"?: boolean;
|
|
749
752
|
/**
|
|
750
753
|
* The opening state of the menu.
|
|
751
|
-
* @default false
|
|
752
754
|
*/
|
|
753
755
|
"open": boolean;
|
|
756
|
+
/**
|
|
757
|
+
* Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas). A small border is placed under it as a separator from other elements.
|
|
758
|
+
*/
|
|
759
|
+
"verticalContext": boolean;
|
|
754
760
|
}
|
|
755
761
|
interface ZMenuSection {
|
|
756
762
|
/**
|
|
@@ -777,6 +783,10 @@ export namespace Components {
|
|
|
777
783
|
* add role "alertdialog" to dialog (optional, default is false)
|
|
778
784
|
*/
|
|
779
785
|
"alertdialog"?: boolean;
|
|
786
|
+
/**
|
|
787
|
+
* if true, the modal is closable (optional, default is true)
|
|
788
|
+
*/
|
|
789
|
+
"closable"?: boolean;
|
|
780
790
|
/**
|
|
781
791
|
* close modal
|
|
782
792
|
*/
|
|
@@ -1111,9 +1121,9 @@ export namespace Components {
|
|
|
1111
1121
|
*/
|
|
1112
1122
|
"open": boolean;
|
|
1113
1123
|
/**
|
|
1114
|
-
* allows you to skip the
|
|
1124
|
+
* this method allows you to skip the page loading animation, to be used with the prop set to true
|
|
1115
1125
|
*/
|
|
1116
|
-
"
|
|
1126
|
+
"setSkipAanimationOnLoad": (value: boolean) => Promise<void>;
|
|
1117
1127
|
/**
|
|
1118
1128
|
* open content transitioning in a specified direction left | right. Default: left
|
|
1119
1129
|
*/
|
|
@@ -1334,6 +1344,10 @@ export namespace Components {
|
|
|
1334
1344
|
* Autocomplete results items
|
|
1335
1345
|
*/
|
|
1336
1346
|
"resultsItems"?: SearchbarItem[] | string;
|
|
1347
|
+
/**
|
|
1348
|
+
* Set button icon without label
|
|
1349
|
+
*/
|
|
1350
|
+
"searchButtonIconOnly"?: boolean;
|
|
1337
1351
|
/**
|
|
1338
1352
|
* Search helper text
|
|
1339
1353
|
*/
|
|
@@ -1342,6 +1356,10 @@ export namespace Components {
|
|
|
1342
1356
|
* Show submit button
|
|
1343
1357
|
*/
|
|
1344
1358
|
"showSearchButton"?: boolean;
|
|
1359
|
+
/**
|
|
1360
|
+
* Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
|
|
1361
|
+
*/
|
|
1362
|
+
"size"?: ControlSize;
|
|
1345
1363
|
/**
|
|
1346
1364
|
* Sort autocomplete results items
|
|
1347
1365
|
*/
|
|
@@ -1350,6 +1368,10 @@ export namespace Components {
|
|
|
1350
1368
|
* Input search string
|
|
1351
1369
|
*/
|
|
1352
1370
|
"value"?: string;
|
|
1371
|
+
/**
|
|
1372
|
+
* Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`.
|
|
1373
|
+
*/
|
|
1374
|
+
"variant"?: ButtonVariant;
|
|
1353
1375
|
}
|
|
1354
1376
|
interface ZSectionTitle {
|
|
1355
1377
|
/**
|
|
@@ -1643,7 +1665,7 @@ export namespace Components {
|
|
|
1643
1665
|
*/
|
|
1644
1666
|
"transition"?: ToastNotificationTransition;
|
|
1645
1667
|
/**
|
|
1646
|
-
* toast notification type:
|
|
1668
|
+
* toast notification type: dark, light, accent, error, success, warning
|
|
1647
1669
|
*/
|
|
1648
1670
|
"type"?: ToastNotification;
|
|
1649
1671
|
}
|
|
@@ -1658,6 +1680,10 @@ export namespace Components {
|
|
|
1658
1680
|
"position": ToastNotificationPosition;
|
|
1659
1681
|
}
|
|
1660
1682
|
interface ZToggleButton {
|
|
1683
|
+
/**
|
|
1684
|
+
* aria-label for the button
|
|
1685
|
+
*/
|
|
1686
|
+
"ariaLabel": string;
|
|
1661
1687
|
/**
|
|
1662
1688
|
* avoidclick status flag
|
|
1663
1689
|
*/
|
|
@@ -2527,7 +2553,7 @@ declare namespace LocalJSX {
|
|
|
2527
2553
|
*/
|
|
2528
2554
|
"drawerOpen"?: boolean;
|
|
2529
2555
|
/**
|
|
2530
|
-
* Control menu bar position in the header. - auto: the menu bar is positioned near the title - stack: the menu bar is positioned below the title - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
2556
|
+
* Control menu bar position in the header. - auto: the menu bar is positioned near the title - stack: the menu bar is positioned below the title - offcanvas: the menu bar is not displayed and a burger icon appears to open the offcanvas menu
|
|
2531
2557
|
*/
|
|
2532
2558
|
"flow"?: "auto" | "stack" | "offcanvas";
|
|
2533
2559
|
/**
|
|
@@ -2637,7 +2663,7 @@ declare namespace LocalJSX {
|
|
|
2637
2663
|
*/
|
|
2638
2664
|
"buttonid"?: string;
|
|
2639
2665
|
/**
|
|
2640
|
-
*
|
|
2666
|
+
* occurrences counter (optional)
|
|
2641
2667
|
*/
|
|
2642
2668
|
"counter"?: number;
|
|
2643
2669
|
/**
|
|
@@ -2653,7 +2679,7 @@ declare namespace LocalJSX {
|
|
|
2653
2679
|
*/
|
|
2654
2680
|
"label"?: string;
|
|
2655
2681
|
/**
|
|
2656
|
-
* sorting direction click event, returns buttonid and sortAsc
|
|
2682
|
+
* sorting direction click event, returns `buttonid` and `sortAsc`
|
|
2657
2683
|
*/
|
|
2658
2684
|
"onButtonSortClick"?: (event: ZButtonSortCustomEvent<any>) => void;
|
|
2659
2685
|
/**
|
|
@@ -2722,6 +2748,10 @@ declare namespace LocalJSX {
|
|
|
2722
2748
|
"single"?: boolean;
|
|
2723
2749
|
}
|
|
2724
2750
|
interface ZChip {
|
|
2751
|
+
/**
|
|
2752
|
+
* z-chip aria-label string
|
|
2753
|
+
*/
|
|
2754
|
+
"ariaLabel"?: string;
|
|
2725
2755
|
/**
|
|
2726
2756
|
* set z-chip as disabled
|
|
2727
2757
|
*/
|
|
@@ -3310,7 +3340,6 @@ declare namespace LocalJSX {
|
|
|
3310
3340
|
"active"?: boolean;
|
|
3311
3341
|
/**
|
|
3312
3342
|
* Flag to set the display mode of the list. If true, the list will be absolutely positioned under the menu label, stacked beneath it otherwise.
|
|
3313
|
-
* @default false
|
|
3314
3343
|
*/
|
|
3315
3344
|
"floating"?: boolean;
|
|
3316
3345
|
/**
|
|
@@ -3323,9 +3352,12 @@ declare namespace LocalJSX {
|
|
|
3323
3352
|
"onOpened"?: (event: ZMenuCustomEvent<any>) => void;
|
|
3324
3353
|
/**
|
|
3325
3354
|
* The opening state of the menu.
|
|
3326
|
-
* @default false
|
|
3327
3355
|
*/
|
|
3328
3356
|
"open"?: boolean;
|
|
3357
|
+
/**
|
|
3358
|
+
* Tells the component that it's placed in a vertical context with other `ZMenu`s (e.g. in the ZAppHeader's offcanvas). A small border is placed under it as a separator from other elements.
|
|
3359
|
+
*/
|
|
3360
|
+
"verticalContext"?: boolean;
|
|
3329
3361
|
}
|
|
3330
3362
|
interface ZMenuSection {
|
|
3331
3363
|
/**
|
|
@@ -3360,6 +3392,10 @@ declare namespace LocalJSX {
|
|
|
3360
3392
|
* add role "alertdialog" to dialog (optional, default is false)
|
|
3361
3393
|
*/
|
|
3362
3394
|
"alertdialog"?: boolean;
|
|
3395
|
+
/**
|
|
3396
|
+
* if true, the modal is closable (optional, default is true)
|
|
3397
|
+
*/
|
|
3398
|
+
"closable"?: boolean;
|
|
3363
3399
|
/**
|
|
3364
3400
|
* aria-label for close button (optional)
|
|
3365
3401
|
*/
|
|
@@ -3737,10 +3773,6 @@ declare namespace LocalJSX {
|
|
|
3737
3773
|
* open component. Default: false
|
|
3738
3774
|
*/
|
|
3739
3775
|
"open"?: boolean;
|
|
3740
|
-
/**
|
|
3741
|
-
* allows you to skip the entry animation on page load, to be used with the open prop at true
|
|
3742
|
-
*/
|
|
3743
|
-
"skipanimationonload"?: boolean;
|
|
3744
3776
|
/**
|
|
3745
3777
|
* open content transitioning in a specified direction left | right. Default: left
|
|
3746
3778
|
*/
|
|
@@ -3997,6 +4029,10 @@ declare namespace LocalJSX {
|
|
|
3997
4029
|
* Autocomplete results items
|
|
3998
4030
|
*/
|
|
3999
4031
|
"resultsItems"?: SearchbarItem[] | string;
|
|
4032
|
+
/**
|
|
4033
|
+
* Set button icon without label
|
|
4034
|
+
*/
|
|
4035
|
+
"searchButtonIconOnly"?: boolean;
|
|
4000
4036
|
/**
|
|
4001
4037
|
* Search helper text
|
|
4002
4038
|
*/
|
|
@@ -4005,6 +4041,10 @@ declare namespace LocalJSX {
|
|
|
4005
4041
|
* Show submit button
|
|
4006
4042
|
*/
|
|
4007
4043
|
"showSearchButton"?: boolean;
|
|
4044
|
+
/**
|
|
4045
|
+
* Available sizes: `big`, `small` and `x-small`. Defaults to `big`.
|
|
4046
|
+
*/
|
|
4047
|
+
"size"?: ControlSize;
|
|
4008
4048
|
/**
|
|
4009
4049
|
* Sort autocomplete results items
|
|
4010
4050
|
*/
|
|
@@ -4013,6 +4053,10 @@ declare namespace LocalJSX {
|
|
|
4013
4053
|
* Input search string
|
|
4014
4054
|
*/
|
|
4015
4055
|
"value"?: string;
|
|
4056
|
+
/**
|
|
4057
|
+
* Graphical variant: `primary`, `secondary`, `tertiary`. Defaults to `primary`.
|
|
4058
|
+
*/
|
|
4059
|
+
"variant"?: ButtonVariant;
|
|
4016
4060
|
}
|
|
4017
4061
|
interface ZSectionTitle {
|
|
4018
4062
|
/**
|
|
@@ -4322,7 +4366,7 @@ declare namespace LocalJSX {
|
|
|
4322
4366
|
*/
|
|
4323
4367
|
"transition"?: ToastNotificationTransition;
|
|
4324
4368
|
/**
|
|
4325
|
-
* toast notification type:
|
|
4369
|
+
* toast notification type: dark, light, accent, error, success, warning
|
|
4326
4370
|
*/
|
|
4327
4371
|
"type"?: ToastNotification;
|
|
4328
4372
|
}
|
|
@@ -4337,6 +4381,10 @@ declare namespace LocalJSX {
|
|
|
4337
4381
|
"position"?: ToastNotificationPosition;
|
|
4338
4382
|
}
|
|
4339
4383
|
interface ZToggleButton {
|
|
4384
|
+
/**
|
|
4385
|
+
* aria-label for the button
|
|
4386
|
+
*/
|
|
4387
|
+
"ariaLabel"?: string;
|
|
4340
4388
|
/**
|
|
4341
4389
|
* avoidclick status flag
|
|
4342
4390
|
*/
|
|
File without changes
|
|
File without changes
|
package/dist/types/index.d.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,6 +4,7 @@ import { LicenseType } from "../../../../beans/index";
|
|
|
4
4
|
* @slot list - card resources list slot
|
|
5
5
|
*/
|
|
6
6
|
export declare class ZMyzCardFooter {
|
|
7
|
+
host: HTMLZMyzCardFooterElement;
|
|
7
8
|
/** volume title */
|
|
8
9
|
titolo: string;
|
|
9
10
|
/** authors name text */
|
|
@@ -28,5 +29,6 @@ export declare class ZMyzCardFooter {
|
|
|
28
29
|
private elementAuthorsHasEllipsis;
|
|
29
30
|
private retrieveClass;
|
|
30
31
|
private footerTransitionHandler;
|
|
32
|
+
private getFirstListItem;
|
|
31
33
|
render(): HTMLDivElement;
|
|
32
34
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c,h,g as s}from"./p-d17ebc2f.js";import{x as r,p as a}from"./p-e1ac5c4e.js";import{g as t}from"./p-dfc69cc3.js";import"./p-d69e14fb.js";const e=class{constructor(h){i(this,h),this.interactiveIconClick=c(this,"interactiveIconClick",7),this.type=r.DEFAULT,this.disabled=!1,this.ariaLabel=""}emitinteractiveIconClick(){this.interactiveIconClick.emit()}getIconSize(){return t()!==a.DESKTOP?22:14}render(){return this.interactiveIcon?h("div",{class:`z-chip-container ${this.type}`,"aria-disabled":this.disabled},this.icon&&h("z-icon",{class:"icon-sx",name:this.icon,width:this.getIconSize(),height:this.getIconSize()}),h("slot",null),h("button",{type:"button",onClick:()=>this.emitinteractiveIconClick(),onKeyUp:()=>{},"aria-label":this.ariaLabel,disabled:this.disabled},h("z-icon",{name:this.interactiveIcon,width:this.getIconSize(),height:this.getIconSize()}))):h("div",{class:`${this.type}`},this.icon&&h("z-icon",{name:this.icon,width:this.getIconSize(),height:this.getIconSize()}),h("slot",null))}get el(){return s(this)}};e.style=".sc-z-chip-h>.z-chip-container.sc-z-chip{display:inline-flex;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--gray400);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;font-weight:var(--font-sb)}.sc-z-chip-h>.z-chip-container.sc-z-chip:not([aria-disabled]) button.sc-z-chip>z-icon.sc-z-chip:last-child:hover{color:var(--color-hover-primary);fill:var(--color-hover-primary)}.sc-z-chip-h>.z-chip-container.sc-z-chip:hover:not([aria-disabled])>z-icon.sc-z-chip:first-child{fill:var(--color-icon02)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip{padding:0;border:none;margin-left:var(--space-unit);background-color:transparent;cursor:pointer}.sc-z-chip-h>.z-chip-container.sc-z-chip>z-icon.icon-sx.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip>z-icon.sc-z-chip:last-child{fill:var(--color-primary01)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip,.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip>z-icon.sc-z-chip,.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip>button.sc-z-chip>z-icon.sc-z-chip{color:var(--color-disabled03);fill:var(--color-disabled03)}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip>button.sc-z-chip>z-icon.sc-z-chip{cursor:auto}.sc-z-chip-h>.z-chip-container[aria-disabled].sc-z-chip{border:var(--border-size-small) solid var(--color-disabled01)}.sc-z-chip-h>.z-chip-container.sc-z-chip>button.sc-z-chip:focus:focus-visible{border-radius:100%;box-shadow:var(--shadow-focus-primary);outline:none}.sc-z-chip-h>button.sc-z-chip:hover:not(:disabled):active:hover>button.sc-z-chip>z-icon.sc-z-chip:last-child{color:var(--color-primary01);fill:var(--color-primary01)}.sc-z-chip-h>div.sc-z-chip{display:inline-flex;min-height:28px;align-items:center;padding:0 calc(var(--space-unit) * 1.5);border:var(--border-size-small) solid var(--bg-grey-200);background-color:var(--bg-white);border-radius:14px;color:var(--text-grey-800);fill:var(--text-grey-800);font-family:var(--dashboard-font);font-size:14px;line-height:28px}.sc-z-chip-h>div.sc-z-chip>z-icon.sc-z-chip{margin-right:calc(var(--space-unit) / 2)}.sc-z-chip-h>.z-chip-container.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:44px;border-radius:22px;line-height:44px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:40px;border-radius:22px;line-height:40px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:36px;border-radius:22px;line-height:36px}@media only screen and (min-width: 1152px){.sc-z-chip-h>.z-chip-container.sc-z-chip{font-size:12px}.sc-z-chip-h>div.sc-z-chip{font-size:12px}.sc-z-chip-h>.z-chip-container.default.sc-z-chip,.sc-z-chip-h>div.default.sc-z-chip{min-height:32px;border-radius:16px;line-height:32px}.sc-z-chip-h>.z-chip-container.medium.sc-z-chip,.sc-z-chip-h>div.medium.sc-z-chip{min-height:28px;border-radius:16px;line-height:28px}.sc-z-chip-h>.z-chip-container.small.sc-z-chip,.sc-z-chip-h>div.small.sc-z-chip{min-height:24px;border-radius:16px;line-height:24px}}";export{e as z_chip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,g as e}from"./p-d17ebc2f.js";import{L as i}from"./p-e1ac5c4e.js";const n=class{constructor(o){t(this,o),this.opened=!1,this.customContent=!1,this.isOpen=!1,this.allowTooltipAuthors=!1}handleToggle(){if(this.isOpen=!this.isOpen,this.isOpen){const t=this.getFirstListItem();t&&requestAnimationFrame((()=>{t.focus()}))}}getTitleAuthors(){return this.allowTooltipAuthors?this.autori:""}componentWillLoad(){this.opened&&(this.isOpen=!0)}elementsEllipsis(){this.allowTooltipAuthors=!!this.elementAuthorsHasEllipsis()}elementAuthorsHasEllipsis(){return this.ellipsisAuthors.offsetWidth<this.ellipsisAuthors.scrollWidth}retrieveClass(){return{isopen:this.isOpen,real:this.cardtype===i.REAL,trial:this.cardtype===i.TRIAL,temp:this.cardtype===i.TEMP,"custom-content":this.customContent}}footerTransitionHandler(t){["visibility","height"].includes(t.propertyName)&&this.elementsEllipsis()}getFirstListItem(){return this.host.querySelector("[slot=list] > li a")}render(){return o("div",{class:Object.assign(Object.assign({},this.retrieveClass()),{wrapper:!0})},o("footer",{class:this.retrieveClass(),onTransitionEnd:t=>this.footerTransitionHandler(t)},o("span",{class:"toggle"},o("slot",{name:"toggle"})),this.titolo&&o("p",{class:{"custom-content":this.customContent}},this.titolo),o("div",{class:{content:!0,"custom-content":this.customContent}},o("div",null,o("p",{class:"authors",ref:t=>this.ellipsisAuthors=t},o("span",{title:this.getTitleAuthors()},o("span",{"aria-description":"Autori",class:"bold"},this.autori))),o("p",{class:"year-isbn"},o("span",{class:"isbn"},o("span",null,o("span",{"aria-description":"ISBN edizione cartacea",class:"bold"},this.isbn)," ","(ed. cartacea)")))),o("div",{class:"slot-handler "+(this.isOpen?"visible":"hidden")},o("slot",{name:"list"})))),this.customContent&&o("slot",{name:"content"}))}get host(){return e(this)}};n.style='footer{position:relative;z-index:5;top:0;width:auto;height:calc(var(--space-unit) * 6);padding:0;border-top:var(--border-size-medium) solid var(--color-surface03);margin:0;background-color:var(--color-surface01);border-radius:0 0 var(--border-radius) var(--border-radius);color:var(--color-surface05);font-family:var(--font-family-sans);font-weight:var(--font-rg);transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.real,footer.trial,footer.temp{border-top:var(--border-size-medium) solid var(--accent)}footer .bold{font-family:var(--font-family-sans);font-weight:var(--font-sb)}footer>p{overflow:hidden;height:40px;padding:calc(var(--space-unit) * 2) calc(var(--space-unit) * 2) var(--space-unit) calc(var(--space-unit) * 2);margin:0;background-color:var(--color-surface01);font-family:var(--font-family-sans);font-size:16px;font-weight:var(--font-rg);line-height:22px;transition:all 200ms linear}footer.isopen>p{background-color:var(--bg-neutral-200);font-size:14px;font-weight:var(--font-sb);transition:all 200ms linear}footer.isopen.real>p,footer.isopen.trial>p,footer.isopen.temp>p{background-color:var(--accent)}footer .visible{display:block}footer .hidden{display:none}footer>div.content{overflow:hidden;height:60px}footer>div.content>div:not(.slot-handler){padding:var(--space-unit) calc(var(--space-unit) * 2)}footer>div.content>div>p{overflow:hidden;height:20px;padding:0;margin:0;font-size:14px;line-height:20px;text-overflow:ellipsis;white-space:nowrap}footer>div.content>div>p.year-isbn{display:flex;flex-direction:row;justify-content:space-between;padding-top:var(--space-unit)}footer>div.content>div>p.year-isbn>span.isbn{overflow:hidden;text-overflow:ellipsis}footer.isopen>div.content>div:not(.slot-handler){height:68px}footer.isopen>div.content>div>p.authors{height:40px;text-overflow:initial;white-space:initial}footer.isopen>div.content>div>p.year-isbn{height:50px;flex-direction:column;padding-left:0}footer.isopen>div.content>div>p.year-isbn>span.isbn{display:inline-grid;padding-left:0}footer.isopen{top:-212px;height:295px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.custom-content{top:-292px}footer.isopen>div.content{height:280px;transition:height 500ms ease-in-out, top 500ms ease-in-out}footer.isopen.custom-content>div.content{height:230px}.toggle{position:absolute;z-index:10;top:-24px;left:16px}.faded{opacity:0.3;pointer-events:none}footer>p.custom-content,footer .content.custom-content{display:none}footer.isopen>p.custom-content,footer.isopen .content.custom-content{display:block}div.wrapper{position:relative;height:100%}div.wrapper ::slotted([slot="content"]){position:absolute;z-index:10;top:calc(var(--space-unit) * 2);display:block;width:100%;height:112px;box-sizing:border-box;padding:0 calc(var(--space-unit) * 2);border-top:var(--border-size-medium) solid transparent;background:var(--color-white)}div.wrapper.isopen ::slotted([slot="content"]){top:0;bottom:0;height:128px;padding:calc(var(--space-unit) * 2);border-color:var(--accent)}';export{n as z_myz_card_footer}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r,h as e}from"./p-d17ebc2f.js";import{L as t}from"./p-e1ac5c4e.js";const a=class{constructor(e){r(this,e),this.ispressed=!1,this.ishighlighted=!1}retrieveClass(){let r="";return this.cardtype===t.REAL?r+="real":this.cardtype===t.TRIAL?r+="trial":this.cardtype===t.TEMP&&(r+="temp"),this.faded?r+=" faded":this.ispressed?r+=" pressed":this.ishighlighted&&(r+=" highlighted"),r}render(){return e("div",{class:this.retrieveClass(),tabindex:"0"},e("slot",null))}};a.style=":host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--accent)}div.faded{border:var(--border-size-medium) solid var(--color-surface02)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const i=class{constructor(e){r(this,e)}render(){return e("div",null,e("slot",{name:"alert"}),e("slot",{name:"cover"}))}};i.style=":host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}";const o=class{constructor(e){r(this,e)}hadleOnImageError(){this.img=this.defaultimg}render(){return e("img",{class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};o.style="img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}";const s=class{constructor(e){r(this,e),this.allowTooltip=!1}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){this.elementHasEllipsis()&&(this.allowTooltip=!0)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===t.REAL,trial:this.cardtype===t.TRIAL,temp:this.cardtype===t.TEMP,faded:this.faded}}render(){return e("header",{class:this.retrieveClass()},e("span",{class:"card-title",ref:r=>this.ellipsis=r,title:this.getTitle()},this.titolo),e("slot",{name:"icon"}))}};s.style=
|
|
1
|
+
import{r,h as e}from"./p-d17ebc2f.js";import{L as t}from"./p-e1ac5c4e.js";const a=class{constructor(e){r(this,e),this.ispressed=!1,this.ishighlighted=!1}retrieveClass(){let r="";return this.cardtype===t.REAL?r+="real":this.cardtype===t.TRIAL?r+="trial":this.cardtype===t.TEMP&&(r+="temp"),this.faded?r+=" faded":this.ispressed?r+=" pressed":this.ishighlighted&&(r+=" highlighted"),r}render(){return e("div",{class:this.retrieveClass(),tabindex:"0"},e("slot",null))}};a.style=":host{--card-overflow:hidden}div{display:flex;overflow:var(--card-overflow);width:auto;width:256px;height:522px;box-sizing:border-box;flex-direction:column;border:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius)}div.real,div.trial,div.temp{border-color:var(--accent)}div.faded{border:var(--border-size-medium) solid var(--color-surface02)}div.highlighted{box-shadow:var(--shadow-4);outline:none}div.pressed{box-shadow:var(--shadow-8);outline:none}div:focus{box-shadow:var(--shadow-focus-primary);outline:none}";const i=class{constructor(e){r(this,e)}render(){return e("div",null,e("slot",{name:"alert"}),e("slot",{name:"cover"}))}};i.style=":host{width:auto;height:340px}:host>div{position:relative;display:flex;width:auto;height:340px;align-items:center;justify-content:center}";const o=class{constructor(e){r(this,e)}hadleOnImageError(){this.img=this.defaultimg}render(){return e("img",{class:this.faded&&"faded",onError:this.hadleOnImageError.bind(this),alt:this.titolo,src:this.img})}};o.style="img{display:block;max-width:100%;height:340px;margin:auto;object-fit:cover}img.faded{opacity:0.3}";const s=class{constructor(e){r(this,e),this.allowTooltip=!1}getTitle(){return this.allowTooltip?this.titolo:""}componentDidLoad(){this.elementHasEllipsis()&&(this.allowTooltip=!0)}elementHasEllipsis(){return this.ellipsis.offsetWidth<this.ellipsis.scrollWidth}retrieveClass(){return{real:this.cardtype===t.REAL,trial:this.cardtype===t.TRIAL,temp:this.cardtype===t.TEMP,faded:this.faded}}render(){return e("header",{class:this.retrieveClass()},e("slot",{name:"aria-heading"}),e("span",{class:"card-title",ref:r=>this.ellipsis=r,title:this.getTitle()},this.titolo),e("slot",{name:"icon"}))}};s.style='header{position:relative;display:flex;width:auto;height:calc(var(--space-unit) * 6);flex-direction:row;align-items:flex-start;justify-content:space-between;border-bottom:var(--border-size-medium) solid var(--color-surface03);background-color:var(--color-surface01);border-radius:var(--border-radius) var(--border-radius) var(--border-no-radius) var(--border-no-radius)}slot[name="aria-heading"]::slotted(*){position:absolute;overflow:hidden !important;width:1px !important;height:1px !important;padding:0 !important;border:0 none !important;margin:-1px !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important}header.real,header.trial,header.temp{border-bottom:var(--border-size-medium) solid var(--accent);background-color:var(--accent-lighter)}.card-title{overflow:hidden;height:calc(var(--space-unit) * 2);padding:calc(var(--space-unit) * 2);margin:0;color:var(--color-surface05);font-family:var(--font-family-sans);font-size:12px;font-weight:var(--font-sb);letter-spacing:0.22px;line-height:calc(var(--space-unit) * 2);text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}.faded{border-bottom:var(--border-size-medium) solid var(--color-surface02)}.faded.real,.faded.trial,.faded.temp{border-top:var(--border-size-medium) solid var(--accent);border-right:var(--border-size-medium) solid var(--accent);border-left:var(--border-size-medium) solid var(--accent)}';export{a as z_myz_card,i as z_myz_card_body,o as z_myz_card_cover,s as z_myz_card_header}
|