vira 29.1.1 → 29.2.0
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.
|
@@ -7,8 +7,10 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export declare const ViraCollapsibleWrapper: import("element-vir").DeclarativeElementDefinition<"vira-collapsible-wrapper", {
|
|
9
9
|
expanded: boolean;
|
|
10
|
+
/** When true, forces the content to expand when printing regardless of collapsed state. */
|
|
11
|
+
expandOnPrint?: boolean;
|
|
10
12
|
}, {
|
|
11
13
|
contentHeight: number;
|
|
12
14
|
}, {
|
|
13
15
|
expandChange: import("element-vir").DefineEvent<boolean>;
|
|
14
|
-
}, "vira-collapsible-wrapper-expanded", "vira-collapsible-wrapper-", readonly ["header"], readonly []>;
|
|
16
|
+
}, "vira-collapsible-wrapper-expanded" | "vira-collapsible-wrapper-expand-on-print", "vira-collapsible-wrapper-", readonly ["header"], readonly []>;
|
|
@@ -17,6 +17,7 @@ export const ViraCollapsibleWrapper = defineViraElement()({
|
|
|
17
17
|
},
|
|
18
18
|
hostClasses: {
|
|
19
19
|
'vira-collapsible-wrapper-expanded': ({ inputs }) => inputs.expanded,
|
|
20
|
+
'vira-collapsible-wrapper-expand-on-print': ({ inputs }) => !!inputs.expandOnPrint,
|
|
20
21
|
},
|
|
21
22
|
slotNames: ['header'],
|
|
22
23
|
styles: ({ hostClasses }) => css `
|
|
@@ -44,6 +45,15 @@ export const ViraCollapsibleWrapper = defineViraElement()({
|
|
|
44
45
|
${hostClasses['vira-collapsible-wrapper-expanded'].name} .collapsing-element {
|
|
45
46
|
pointer-events: none;
|
|
46
47
|
}
|
|
48
|
+
|
|
49
|
+
@media print {
|
|
50
|
+
:host(.${hostClasses['vira-collapsible-wrapper-expand-on-print'].name})
|
|
51
|
+
.collapsing-element {
|
|
52
|
+
height: auto !important;
|
|
53
|
+
overflow: visible !important;
|
|
54
|
+
transition: none !important;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
47
57
|
`,
|
|
48
58
|
events: {
|
|
49
59
|
expandChange: defineElementEvent(),
|