@limetech/lime-elements 39.17.2 → 39.18.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.
- package/CHANGELOG.md +18 -0
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-action-bar_3.cjs.entry.js +17 -49
- package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
- package/dist/cjs/limel-banner.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_7.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-card.cjs.entry.js +1 -1
- package/dist/cjs/limel-chart.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip_2.cjs.entry.js +3 -3
- package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
- package/dist/cjs/limel-drag-handle.cjs.entry.js +1 -1
- package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-header.cjs.entry.js +1 -1
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
- package/dist/cjs/limel-list-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
- package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{translations-Bu_0fli7.js → translations-D4j_eojG.js} +8 -24
- package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -34
- package/dist/collection/components/action-bar/action-bar.css +0 -193
- package/dist/collection/components/action-bar/action-bar.js +41 -63
- package/dist/collection/components/banner/banner.js +10 -3
- package/dist/collection/components/button/button.js +9 -3
- package/dist/collection/components/card/card.js +8 -2
- package/dist/collection/components/chip/chip.js +8 -2
- package/dist/collection/components/chip-set/chip-set.js +10 -3
- package/dist/collection/components/collapsible-section/collapsible-section.js +8 -2
- package/dist/collection/components/header/header.js +8 -2
- package/dist/collection/components/icon-button/icon-button.js +8 -2
- package/dist/collection/components/input-field/input-field.js +19 -5
- package/dist/collection/components/picker/picker.js +10 -3
- package/dist/collection/components/profile-picture/profile-picture.js +7 -1
- package/dist/collection/components/shortcut/shortcut.js +10 -3
- package/dist/collection/components/split-button/split-button.js +11 -4
- package/dist/collection/translations/da.js +1 -3
- package/dist/collection/translations/de.js +1 -3
- package/dist/collection/translations/en.js +1 -3
- package/dist/collection/translations/fi.js +1 -3
- package/dist/collection/translations/fr.js +1 -3
- package/dist/collection/translations/nl.js +1 -3
- package/dist/collection/translations/no.js +1 -3
- package/dist/collection/translations/sv.js +1 -3
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-action-bar_3.entry.js +17 -49
- package/dist/esm/limel-ai-avatar.entry.js +1 -1
- package/dist/esm/limel-banner.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_7.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +2 -2
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-card.entry.js +1 -1
- package/dist/esm/limel-chart.entry.js +1 -1
- package/dist/esm/limel-chip_2.entry.js +3 -3
- package/dist/esm/limel-code-diff.entry.js +1 -1
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-collapsible-section.entry.js +2 -2
- package/dist/esm/limel-drag-handle.entry.js +1 -1
- package/dist/esm/limel-email-viewer.entry.js +1 -1
- package/dist/esm/limel-file-viewer.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
- package/dist/esm/limel-header.entry.js +1 -1
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-linear-progress.entry.js +1 -1
- package/dist/esm/limel-list-item.entry.js +1 -1
- package/dist/esm/limel-picker.entry.js +1 -1
- package/dist/esm/limel-profile-picture.entry.js +1 -1
- package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +2 -2
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/limel-text-editor-link-menu.entry.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{translations-DVRaJQvC.js → translations-Dv3YcsA7.js} +8 -24
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-41be4893.entry.js → p-05d533b5.entry.js} +1 -1
- package/dist/lime-elements/{p-01e2da83.entry.js → p-067a13bb.entry.js} +1 -1
- package/dist/lime-elements/{p-db826a0e.entry.js → p-104d0fb3.entry.js} +1 -1
- package/dist/lime-elements/{p-b91b1aed.entry.js → p-19d0861e.entry.js} +1 -1
- package/dist/lime-elements/{p-c7110762.entry.js → p-1fba4922.entry.js} +1 -1
- package/dist/lime-elements/{p-a334ac50.entry.js → p-42b9b57a.entry.js} +1 -1
- package/dist/lime-elements/p-504dcdb6.entry.js +1 -0
- package/dist/lime-elements/{p-341857fa.entry.js → p-512b2e14.entry.js} +1 -1
- package/dist/lime-elements/p-51734986.entry.js +1 -0
- package/dist/lime-elements/p-56cc6800.entry.js +1 -0
- package/dist/lime-elements/{p-61253dea.entry.js → p-59f1460d.entry.js} +1 -1
- package/dist/lime-elements/{p-4b761d70.entry.js → p-5b31c118.entry.js} +1 -1
- package/dist/lime-elements/{p-1088b462.entry.js → p-5cc370fe.entry.js} +1 -1
- package/dist/lime-elements/{p-8784a57c.entry.js → p-5eadcd4a.entry.js} +1 -1
- package/dist/lime-elements/{p-44295cc0.entry.js → p-7436490f.entry.js} +1 -1
- package/dist/lime-elements/{p-4e130ff5.entry.js → p-757896f5.entry.js} +1 -1
- package/dist/lime-elements/{p-a489f4b0.entry.js → p-9caeca33.entry.js} +1 -1
- package/dist/lime-elements/p-Dv3YcsA7.js +1 -0
- package/dist/lime-elements/{p-afcf580c.entry.js → p-a416d439.entry.js} +1 -1
- package/dist/lime-elements/{p-585b0a3a.entry.js → p-a435d1c3.entry.js} +1 -1
- package/dist/lime-elements/p-aa43c751.entry.js +1 -0
- package/dist/lime-elements/{p-b46fa7b5.entry.js → p-b306735b.entry.js} +1 -1
- package/dist/lime-elements/{p-3a662d7e.entry.js → p-cab66fcc.entry.js} +1 -1
- package/dist/lime-elements/{p-c2c6dba1.entry.js → p-cae35eb0.entry.js} +1 -1
- package/dist/lime-elements/{p-268d2a30.entry.js → p-cc17846b.entry.js} +1 -1
- package/dist/lime-elements/{p-21dc4586.entry.js → p-cebdd797.entry.js} +1 -1
- package/dist/lime-elements/{p-25ae3a55.entry.js → p-cfe85e59.entry.js} +1 -1
- package/dist/lime-elements/{p-7e584d40.entry.js → p-d227f4df.entry.js} +1 -1
- package/dist/lime-elements/{p-3a4e858e.entry.js → p-eff0a330.entry.js} +1 -1
- package/dist/lime-elements/{p-e5b03d42.entry.js → p-f2f01f2a.entry.js} +1 -1
- package/dist/types/components/action-bar/action-bar-item/action-bar-overflow-menu.d.ts +0 -7
- package/dist/types/components/action-bar/action-bar.d.ts +14 -15
- package/dist/types/components/action-bar/action-bar.types.d.ts +2 -2
- package/dist/types/components/banner/banner.d.ts +2 -1
- package/dist/types/components/button/button.d.ts +2 -2
- package/dist/types/components/card/card.d.ts +2 -2
- package/dist/types/components/chip/chip.d.ts +2 -2
- package/dist/types/components/chip-set/chip-set.d.ts +2 -1
- package/dist/types/components/chip-set/chip.types.d.ts +2 -2
- package/dist/types/components/collapsible-section/collapsible-section.d.ts +2 -2
- package/dist/types/components/dialog/dialog.types.d.ts +2 -2
- package/dist/types/components/dock/dock.types.d.ts +2 -1
- package/dist/types/components/dynamic-label/label.types.d.ts +2 -2
- package/dist/types/components/header/header.d.ts +2 -2
- package/dist/types/components/icon-button/icon-button.d.ts +2 -2
- package/dist/types/components/input-field/input-field.d.ts +3 -2
- package/dist/types/components/list-item/list-item.types.d.ts +2 -2
- package/dist/types/components/menu/menu.types.d.ts +2 -2
- package/dist/types/components/picker/picker.d.ts +2 -1
- package/dist/types/components/profile-picture/profile-picture.d.ts +2 -2
- package/dist/types/components/select/option.types.d.ts +2 -2
- package/dist/types/components/shortcut/shortcut.d.ts +2 -1
- package/dist/types/components/split-button/split-button.d.ts +2 -1
- package/dist/types/components/tab-bar/tab.types.d.ts +2 -2
- package/dist/types/components.d.ts +51 -63
- package/dist/types/global/shared-types/file.types.d.ts +2 -2
- package/dist/types/global/shared-types/icon.types.d.ts +30 -1
- package/dist/types/translations/da.d.ts +1 -3
- package/dist/types/translations/de.d.ts +1 -3
- package/dist/types/translations/en.d.ts +1 -3
- package/dist/types/translations/fi.d.ts +1 -3
- package/dist/types/translations/fr.d.ts +1 -3
- package/dist/types/translations/nl.d.ts +1 -3
- package/dist/types/translations/no.d.ts +1 -3
- package/dist/types/translations/sv.d.ts +1 -3
- package/package.json +1 -1
- package/dist/lime-elements/p-6b956d6d.entry.js +0 -1
- package/dist/lime-elements/p-8a6721f9.entry.js +0 -1
- package/dist/lime-elements/p-930fce68.entry.js +0 -1
- package/dist/lime-elements/p-DVRaJQvC.js +0 -1
- package/dist/lime-elements/p-c5d8079b.entry.js +0 -1
|
@@ -1,111 +1,10 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
1
|
/**
|
|
3
2
|
* @prop --action-bar-item-text-color: Text color of action bar items, defaults to `--contrast-1100`.
|
|
4
3
|
* @prop --action-bar-item-icon-color: Color of the icons displayed on each action bar item. Defaults to the text color. To specify a color for an individual item, use the `iconColor` prop instead.
|
|
5
4
|
* @prop --action-bar-item-max-width: Maximum width of a button in the action bar. Defaults to `10rem`. Keep in mind that the buttons should not appear too big.
|
|
6
5
|
* @prop --action-bar-border-radius: Defines the roundness of the corners of the action bar. Defaults to `0`.
|
|
7
6
|
* @prop --action-bar-background-color: Background color of the whole component. Defaults to `--contrast-100`.
|
|
8
|
-
* @prop --action-bar-shrink-icon-color: Color of the shrink icon. Defaults to `--contrast-1000`.
|
|
9
|
-
|
|
10
|
-
*/
|
|
11
|
-
/**
|
|
12
|
-
* Note! This file is forwarded via `src/style/exports.scss`
|
|
13
|
-
* and exposed to consumers through the root `index.scss`.
|
|
14
|
-
*
|
|
15
|
-
* Consumers import it using:
|
|
16
|
-
* `@use '@limetech/lime-elements' as lime-elements;`
|
|
17
|
-
*
|
|
18
|
-
* Legacy import paths (`dist/scss/mixins`) are maintained
|
|
19
|
-
* for backward compatibility via copy rules in the Stencil config.
|
|
20
|
-
*/
|
|
21
|
-
/**
|
|
22
|
-
* Neutralizes the user-agent styles that browsers apply to `<button>` elements
|
|
23
|
-
* (their default background, border, padding, font, etc.), without stripping
|
|
24
|
-
* the useful defaults that `all: unset;` would also remove
|
|
25
|
-
* (such as `display`, `cursor`, and focus behavior).
|
|
26
|
-
*
|
|
27
|
-
* Prefer this mixin over `all: unset;` on `<button>` elements, then layer
|
|
28
|
-
* the styling you want on top — often one of the `is-*-clickable` mixins.
|
|
29
|
-
*/
|
|
30
|
-
/**
|
|
31
|
-
* This can be used on a trigger element that opens a dropdown menu or a popover.
|
|
32
|
-
*/
|
|
33
|
-
/**
|
|
34
|
-
* This mixin will mask out the content that is close to
|
|
35
|
-
* the edges of a scrollable area.
|
|
36
|
-
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
37
|
-
* as an argument for `$direction`.
|
|
38
|
-
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
39
|
-
* as an argument for `$direction`.
|
|
40
|
-
*
|
|
41
|
-
* For the visual effect to work smoothly, we need to make sure that
|
|
42
|
-
* the size of the fade-out edge effect is the same as the
|
|
43
|
-
* internal paddings of the scrollable area. Otherwise, content of a
|
|
44
|
-
* scrollable area that does not have a padding will fade out before
|
|
45
|
-
* any scrolling has been done.
|
|
46
|
-
* This is why this mixin already adds paddings, which automatically
|
|
47
|
-
* default to the size of the fade-out effect.
|
|
48
|
-
* This size defaults to `1rem`, but to override the size use
|
|
49
|
-
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
50
|
-
* when `vertically` argument is set, and use
|
|
51
|
-
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
52
|
-
* when `horizontally` argument is set.
|
|
53
|
-
* Of course you can also programmatically increase and decrease the
|
|
54
|
-
* size of these variables for each edge, based on the amount of
|
|
55
|
-
* scrolling that has been done by the user. In this case, make sure
|
|
56
|
-
* to add a custom padding where the mixin is used, to override
|
|
57
|
-
* the paddings that are automatically added by the mixin in the
|
|
58
|
-
* compiled CSS code.
|
|
59
|
-
*/
|
|
60
|
-
/**
|
|
61
|
-
* This mixin will add an animated underline to the bottom of an `a` elements.
|
|
62
|
-
* Note that you may need to add `all: unset;` –depending on your use case–
|
|
63
|
-
* before using this mixin.
|
|
64
|
-
*/
|
|
65
|
-
/**
|
|
66
|
-
* This mixin creates a cross-browser font stack.
|
|
67
|
-
* - `sans-serif` can be used for the UI of the components.
|
|
68
|
-
* - `monospace` can be used for code.
|
|
69
|
-
*
|
|
70
|
-
* ⚠️ If we change the font stacks, we need to update
|
|
71
|
-
* 1. the consumer documentation in `README.md`, and
|
|
72
|
-
* 2. the CSS variables of `--kompendium-example-font-family`
|
|
73
|
-
* in the `<style>` tag of `index.html`.
|
|
74
7
|
*/
|
|
75
|
-
/**
|
|
76
|
-
* This mixin is a hack, using old CSS syntax
|
|
77
|
-
* to enable you to truncate a piece of text,
|
|
78
|
-
* after a certain number of lines.
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* This mixin will add a chessboard background pattern,
|
|
82
|
-
* typically used to visualize transparency.
|
|
83
|
-
*/
|
|
84
|
-
/**
|
|
85
|
-
* Make a container resizable by the user.
|
|
86
|
-
* This is used in the documentations and examples
|
|
87
|
-
* of some components, to demonstrate how the component
|
|
88
|
-
* behaves in a resizable container.
|
|
89
|
-
*/
|
|
90
|
-
/**
|
|
91
|
-
* Drag to reorder mixins
|
|
92
|
-
*/
|
|
93
|
-
/**
|
|
94
|
-
* The breakpoints below are used to create responsive designs
|
|
95
|
-
* in Lime's products. Therefore, they are here to get distributed
|
|
96
|
-
* to all components in other private repos, which rely on this `mixins`
|
|
97
|
-
* file, to create consistent styles.
|
|
98
|
-
*
|
|
99
|
-
* :::important
|
|
100
|
-
* In very rare cases you should used media queries!
|
|
101
|
-
* Nowadays, there are many better ways of achieving responsive design
|
|
102
|
-
* without media queries. For example, using CSS Grid, Flexbox, and their features.
|
|
103
|
-
* :::
|
|
104
|
-
*/
|
|
105
|
-
/**
|
|
106
|
-
* Media query mixins for responsive design based on screen width.
|
|
107
|
-
* Note that these mixins do not detect the device type!
|
|
108
|
-
*/
|
|
109
8
|
:host(limel-action-bar) {
|
|
110
9
|
--action-bar-item-height: 2rem;
|
|
111
10
|
--limel-action-bar-item-text-color: var(
|
|
@@ -119,7 +18,6 @@
|
|
|
119
18
|
max-width: 100%;
|
|
120
19
|
border-radius: var(--action-bar-border-radius);
|
|
121
20
|
background-color: var(--action-bar-background-color, rgb(var(--contrast-100)));
|
|
122
|
-
transition: max-width 0.3s ease;
|
|
123
21
|
}
|
|
124
22
|
|
|
125
23
|
:host(limel-action-bar),
|
|
@@ -139,14 +37,6 @@
|
|
|
139
37
|
min-width: 0;
|
|
140
38
|
}
|
|
141
39
|
|
|
142
|
-
:host(limel-action-bar.is-shrunk) .items {
|
|
143
|
-
opacity: 0;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
:host(limel-action-bar:not(.is-shrunk)) .items {
|
|
147
|
-
opacity: 1;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
40
|
:host(limel-action-bar.is-full-width) {
|
|
151
41
|
width: 100%;
|
|
152
42
|
}
|
|
@@ -158,87 +48,4 @@
|
|
|
158
48
|
padding-left: 0.125rem;
|
|
159
49
|
max-width: calc(100% - 2rem);
|
|
160
50
|
box-shadow: var(--shadow-depth-16), var(--shadow-depth-8);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:host(limel-action-bar.is-shrunk) {
|
|
164
|
-
max-width: 5rem;
|
|
165
|
-
transition: max-width 0.3s ease-in-out;
|
|
166
|
-
}
|
|
167
|
-
:host(limel-action-bar.is-shrunk) .expand-shrink {
|
|
168
|
-
transition: transform 0.3s ease;
|
|
169
|
-
transform: rotateY(180deg);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
:host(limel-action-bar:not(.is-shrunk)) {
|
|
173
|
-
max-width: 100%;
|
|
174
|
-
transition: max-width 0.3s ease-in-out;
|
|
175
|
-
}
|
|
176
|
-
:host(limel-action-bar:not(.is-shrunk)) .expand-shrink {
|
|
177
|
-
transition: transform 0.3s ease;
|
|
178
|
-
transform: rotateY(0deg);
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
:host(limel-action-bar.can-be-shrunk.is-full-width) .expand-shrink {
|
|
182
|
-
margin-left: auto;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
button.expand-shrink {
|
|
186
|
-
appearance: none;
|
|
187
|
-
background: none;
|
|
188
|
-
border: none;
|
|
189
|
-
padding: 0;
|
|
190
|
-
margin: 0;
|
|
191
|
-
font: inherit;
|
|
192
|
-
color: inherit;
|
|
193
|
-
text-align: inherit;
|
|
194
|
-
width: auto;
|
|
195
|
-
box-sizing: border-box;
|
|
196
|
-
border-radius: 50%;
|
|
197
|
-
transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
|
|
198
|
-
cursor: pointer;
|
|
199
|
-
color: var(--limel-theme-on-surface-color);
|
|
200
|
-
background-color: transparent;
|
|
201
|
-
}
|
|
202
|
-
button.expand-shrink:hover, button.expand-shrink:focus, button.expand-shrink:focus-visible {
|
|
203
|
-
will-change: color, background-color, box-shadow, transform;
|
|
204
|
-
}
|
|
205
|
-
button.expand-shrink:hover, button.expand-shrink:focus-visible {
|
|
206
|
-
transform: translate3d(0, 0.01rem, 0);
|
|
207
|
-
color: var(--limel-theme-on-surface-color);
|
|
208
|
-
background-color: var(--lime-elevated-surface-background-color);
|
|
209
|
-
}
|
|
210
|
-
button.expand-shrink:hover {
|
|
211
|
-
box-shadow: var(--button-shadow-hovered);
|
|
212
|
-
}
|
|
213
|
-
button.expand-shrink:active {
|
|
214
|
-
--limel-clickable-transform-timing-function: cubic-bezier(
|
|
215
|
-
0.83,
|
|
216
|
-
-0.15,
|
|
217
|
-
0.49,
|
|
218
|
-
1.16
|
|
219
|
-
);
|
|
220
|
-
transform: translate3d(0, 0.05rem, 0);
|
|
221
|
-
box-shadow: var(--button-shadow-pressed);
|
|
222
|
-
}
|
|
223
|
-
button.expand-shrink:hover, button.expand-shrink:active {
|
|
224
|
-
--limel-clickable-transition-speed: 0.2s;
|
|
225
|
-
--limel-clickable-transform-speed: 0.16s;
|
|
226
|
-
}
|
|
227
|
-
button.expand-shrink:focus {
|
|
228
|
-
outline: none;
|
|
229
|
-
}
|
|
230
|
-
button.expand-shrink:focus-visible {
|
|
231
|
-
outline: none;
|
|
232
|
-
box-shadow: var(--shadow-depth-8-focused);
|
|
233
|
-
}
|
|
234
|
-
button.expand-shrink {
|
|
235
|
-
display: flex;
|
|
236
|
-
justify-content: center;
|
|
237
|
-
align-items: center;
|
|
238
|
-
}
|
|
239
|
-
button.expand-shrink limel-icon {
|
|
240
|
-
width: 1.5rem;
|
|
241
|
-
height: 1.5rem;
|
|
242
|
-
padding: 0.125rem;
|
|
243
|
-
color: var(--action-bar-shrink-icon-color, rgb(var(--contrast-1000)));
|
|
244
51
|
}
|
|
@@ -24,7 +24,6 @@ import { isItem } from "./is-item";
|
|
|
24
24
|
* @exampleComponent limel-example-action-bar-selected-item
|
|
25
25
|
* @exampleComponent limel-example-action-bar-colors
|
|
26
26
|
* @exampleComponent limel-example-action-bar-floating
|
|
27
|
-
* @exampleComponent limel-example-action-bar-floating-expand
|
|
28
27
|
* @exampleComponent limel-example-action-bar-styling
|
|
29
28
|
* @exampleComponent limel-example-action-bar-as-primary-component
|
|
30
29
|
* @exampleComponent limel-example-action-bar-icon-title
|
|
@@ -39,16 +38,15 @@ export class ActionBar {
|
|
|
39
38
|
/**
|
|
40
39
|
* Defines the language for translations.
|
|
41
40
|
*/
|
|
42
|
-
this.language =
|
|
41
|
+
this.language = 'en';
|
|
43
42
|
/**
|
|
44
|
-
*
|
|
43
|
+
* @deprecated The prop has no effect any longer.
|
|
44
|
+
* It will be removed in a future major version.
|
|
45
|
+
* If you need this behavior, implement the expand/shrink (or resize) in
|
|
46
|
+
* the consuming UI instead.
|
|
45
47
|
*/
|
|
46
48
|
this.collapsible = false;
|
|
47
49
|
this.overflowCutoff = this.actions.length;
|
|
48
|
-
/**
|
|
49
|
-
* Indicates whether the action bar is currently in a collapsed state.
|
|
50
|
-
*/
|
|
51
|
-
this.actionBarIsShrunk = false;
|
|
52
50
|
this.hasRendered = false;
|
|
53
51
|
this.isFirstIntersectionCheck = true;
|
|
54
52
|
this.actionBarItems = [];
|
|
@@ -59,15 +57,7 @@ export class ActionBar {
|
|
|
59
57
|
if (!(this.actions.length - this.overflowCutoff)) {
|
|
60
58
|
return;
|
|
61
59
|
}
|
|
62
|
-
|
|
63
|
-
name: 'more',
|
|
64
|
-
color: 'rgb(var(--contrast-1000))',
|
|
65
|
-
title: this.getTranslation('action-bar.actions'),
|
|
66
|
-
};
|
|
67
|
-
return (h("limel-action-bar-overflow-menu", { openDirection: this.openDirection, items: items, onSelect: this.handleSelect, role: "gridcell", overFlowIcon: this.actionBarIsShrunk ? shrunkOverFlowIcon : undefined }));
|
|
68
|
-
};
|
|
69
|
-
this.handleCollapseExpandClick = () => {
|
|
70
|
-
this.actionBarIsShrunk = !this.actionBarIsShrunk;
|
|
60
|
+
return (h("limel-action-bar-overflow-menu", { openDirection: this.openDirection, items: items, onSelect: this.handleSelect, role: "gridcell" }));
|
|
71
61
|
};
|
|
72
62
|
this.handleSelect = (event) => {
|
|
73
63
|
event.stopPropagation();
|
|
@@ -75,9 +65,6 @@ export class ActionBar {
|
|
|
75
65
|
this.itemSelected.emit(event.detail);
|
|
76
66
|
}
|
|
77
67
|
};
|
|
78
|
-
this.getTranslation = (key) => {
|
|
79
|
-
return translate.get(key, this.language);
|
|
80
|
-
};
|
|
81
68
|
this.handleIntersection = (entries) => {
|
|
82
69
|
const intersectingItems = entries.filter((entry) => entry.isIntersecting);
|
|
83
70
|
const notIntersectingItems = entries.filter((entry) => !entry.isIntersecting);
|
|
@@ -93,6 +80,11 @@ export class ActionBar {
|
|
|
93
80
|
this.isFirstIntersectionCheck = false;
|
|
94
81
|
};
|
|
95
82
|
}
|
|
83
|
+
componentWillLoad() {
|
|
84
|
+
if (this.collapsible) {
|
|
85
|
+
console.warn('The `collapsible` prop on `limel-action-bar` is deprecated and no longer has any effect. It will be removed in a future major version. If you need expand/shrink behavior, implement it in the consuming UI instead of relying on the action bar itself.');
|
|
86
|
+
}
|
|
87
|
+
}
|
|
96
88
|
connectedCallback() {
|
|
97
89
|
if (this.hasRendered) {
|
|
98
90
|
this.createIntersectionObserver();
|
|
@@ -112,36 +104,20 @@ export class ActionBar {
|
|
|
112
104
|
this.actionBarItems = [];
|
|
113
105
|
}
|
|
114
106
|
render() {
|
|
107
|
+
var _a;
|
|
115
108
|
this.hasRendered = true;
|
|
116
109
|
let overflowActions = [];
|
|
117
110
|
if (this.actions.length > 0) {
|
|
118
111
|
overflowActions = this.actions.slice(this.overflowCutoff);
|
|
119
112
|
}
|
|
120
|
-
return (h(Host, { key: '
|
|
113
|
+
return (h(Host, { key: '770a02d08ba8a05d243c8fc56f3eb370eb01001d', "aria-label": (_a = this.accessibleLabel) !== null && _a !== void 0 ? _a : translate.get('action-bar', this.language), class: {
|
|
121
114
|
'is-full-width': this.layout === 'fullWidth',
|
|
122
115
|
'is-floating': this.layout === 'floating',
|
|
123
|
-
|
|
124
|
-
'can-be-shrunk': !!this.collapsible,
|
|
125
|
-
}, role: "grid" }, h("div", { key: 'd6d96d43a7dd278f1f65033b070213cd1c6b963e', class: "items", role: "rowgroup" }, this.actions.map(this.renderActionBarItem)), this.renderOverflowMenu(overflowActions), this.renderCollapseExpandButton()));
|
|
126
|
-
}
|
|
127
|
-
renderCollapseExpandButton() {
|
|
128
|
-
if (!this.collapsible || this.actions.length <= 1) {
|
|
129
|
-
return;
|
|
130
|
-
}
|
|
131
|
-
return (h("button", { class: {
|
|
132
|
-
'expand-shrink': true,
|
|
133
|
-
}, "aria-label": this.tooltipLabel, type: "button", onClick: this.handleCollapseExpandClick }, h("limel-icon", { name: "double_left", id: "tooltip-expand-shrink-button" }), h("limel-tooltip", { label: this.tooltipLabel, elementId: "tooltip-expand-shrink-button" })));
|
|
116
|
+
}, role: "grid" }, h("div", { key: '364647ea01493a1a3cbd9aa8eaa8c4b86db3dd20', class: "items", role: "rowgroup" }, this.actions.map(this.renderActionBarItem)), this.renderOverflowMenu(overflowActions)));
|
|
134
117
|
}
|
|
135
118
|
isVisible(index) {
|
|
136
119
|
return index < this.overflowCutoff;
|
|
137
120
|
}
|
|
138
|
-
get tooltipLabel() {
|
|
139
|
-
let key = 'action-bar.collapse';
|
|
140
|
-
if (this.actionBarIsShrunk) {
|
|
141
|
-
key = 'action-bar.expand';
|
|
142
|
-
}
|
|
143
|
-
return this.getTranslation(key);
|
|
144
|
-
}
|
|
145
121
|
createIntersectionObserver() {
|
|
146
122
|
const options = {
|
|
147
123
|
root: this.host.shadowRoot.querySelector('.items'),
|
|
@@ -216,6 +192,25 @@ export class ActionBar {
|
|
|
216
192
|
"setter": false,
|
|
217
193
|
"defaultValue": "[]"
|
|
218
194
|
},
|
|
195
|
+
"accessibleLabel": {
|
|
196
|
+
"type": "string",
|
|
197
|
+
"mutable": false,
|
|
198
|
+
"complexType": {
|
|
199
|
+
"original": "string",
|
|
200
|
+
"resolved": "string",
|
|
201
|
+
"references": {}
|
|
202
|
+
},
|
|
203
|
+
"required": false,
|
|
204
|
+
"optional": true,
|
|
205
|
+
"docs": {
|
|
206
|
+
"tags": [],
|
|
207
|
+
"text": "A label used to describe the purpose of the element to users\nof assistive technologies, like screen readers.\nIf not set, a localized default (\"Action bar\" in English, translated\nvia the `language` prop) is used, so the element is never announced\nwithout a name. Override this when a more specific label would help\nusers tell multiple action bars apart \u2014 for example \"Bulk actions\"\nor \"Contextual actions\"."
|
|
208
|
+
},
|
|
209
|
+
"getter": false,
|
|
210
|
+
"setter": false,
|
|
211
|
+
"reflect": true,
|
|
212
|
+
"attribute": "accessible-label"
|
|
213
|
+
},
|
|
219
214
|
"language": {
|
|
220
215
|
"type": "string",
|
|
221
216
|
"mutable": false,
|
|
@@ -239,28 +234,9 @@ export class ActionBar {
|
|
|
239
234
|
},
|
|
240
235
|
"getter": false,
|
|
241
236
|
"setter": false,
|
|
242
|
-
"reflect":
|
|
237
|
+
"reflect": false,
|
|
243
238
|
"attribute": "language",
|
|
244
|
-
"defaultValue": "
|
|
245
|
-
},
|
|
246
|
-
"accessibleLabel": {
|
|
247
|
-
"type": "string",
|
|
248
|
-
"mutable": false,
|
|
249
|
-
"complexType": {
|
|
250
|
-
"original": "string",
|
|
251
|
-
"resolved": "string",
|
|
252
|
-
"references": {}
|
|
253
|
-
},
|
|
254
|
-
"required": false,
|
|
255
|
-
"optional": true,
|
|
256
|
-
"docs": {
|
|
257
|
-
"tags": [],
|
|
258
|
-
"text": "A label used to describe the purpose of the element to users\nof assistive technologies, like screen readers.\nExample value: \"toolbar\""
|
|
259
|
-
},
|
|
260
|
-
"getter": false,
|
|
261
|
-
"setter": false,
|
|
262
|
-
"reflect": true,
|
|
263
|
-
"attribute": "accessible-label"
|
|
239
|
+
"defaultValue": "'en'"
|
|
264
240
|
},
|
|
265
241
|
"layout": {
|
|
266
242
|
"type": "string",
|
|
@@ -292,8 +268,11 @@ export class ActionBar {
|
|
|
292
268
|
"required": false,
|
|
293
269
|
"optional": false,
|
|
294
270
|
"docs": {
|
|
295
|
-
"tags": [
|
|
296
|
-
|
|
271
|
+
"tags": [{
|
|
272
|
+
"name": "deprecated",
|
|
273
|
+
"text": "The prop has no effect any longer.\nIt will be removed in a future major version.\nIf you need this behavior, implement the expand/shrink (or resize) in\nthe consuming UI instead."
|
|
274
|
+
}],
|
|
275
|
+
"text": ""
|
|
297
276
|
},
|
|
298
277
|
"getter": false,
|
|
299
278
|
"setter": false,
|
|
@@ -331,8 +310,7 @@ export class ActionBar {
|
|
|
331
310
|
}
|
|
332
311
|
static get states() {
|
|
333
312
|
return {
|
|
334
|
-
"overflowCutoff": {}
|
|
335
|
-
"actionBarIsShrunk": {}
|
|
313
|
+
"overflowCutoff": {}
|
|
336
314
|
};
|
|
337
315
|
}
|
|
338
316
|
static get events() {
|
|
@@ -20,7 +20,7 @@ export class Banner {
|
|
|
20
20
|
this.isOpen = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (h("div", { key: '
|
|
23
|
+
return (h("div", { key: '7aa9f02c71a64eebf5afcbff9ef819addcd44217', class: `lime-banner ${this.isOpen ? 'lime-banner--open' : ''}` }, h("div", { key: 'c381d72fd3cec7bb82a244a2a38ba410870cfd9e', class: "lime-banner__surface" }, h("div", { key: '307b2422ac6391bb1a2afc4764c65211567ad935', class: "lime-banner__content" }, h("div", { key: '5f072a6979f5065d11472ae14cf1ad3171b0375e', class: "icon-message" }, this.renderIcon(), h("div", { key: '204b58d8a3d3a201aee68e8e5395bd8fa583a42e' }, this.message)), h("div", { key: '2637122052a4b16ed79b0cd3ac53841fea95ee64', class: "lime-banner__actions" }, h("slot", { key: '5950d12303938141671578dff146caf2434b3614', name: "buttons" }))))));
|
|
24
24
|
}
|
|
25
25
|
renderIcon() {
|
|
26
26
|
if (!this.icon) {
|
|
@@ -65,9 +65,16 @@ export class Banner {
|
|
|
65
65
|
"type": "string",
|
|
66
66
|
"mutable": false,
|
|
67
67
|
"complexType": {
|
|
68
|
-
"original": "
|
|
68
|
+
"original": "IconName",
|
|
69
69
|
"resolved": "string",
|
|
70
|
-
"references": {
|
|
70
|
+
"references": {
|
|
71
|
+
"IconName": {
|
|
72
|
+
"location": "import",
|
|
73
|
+
"path": "../../global/shared-types/icon.types",
|
|
74
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
75
|
+
"referenceLocation": "IconName"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
71
78
|
},
|
|
72
79
|
"required": false,
|
|
73
80
|
"optional": false,
|
|
@@ -66,12 +66,12 @@ export class Button {
|
|
|
66
66
|
removeEnterClickable(this.host);
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
|
-
return (h(Host, { key: '
|
|
69
|
+
return (h(Host, { key: '0c409d801aa06800490755411975a2c47fe81331', onClick: this.filterClickWhenDisabled }, h("button", { key: 'd6f001cc42e8ffcf0986896e546a4f9349415160', class: {
|
|
70
70
|
loading: this.loading,
|
|
71
71
|
'just-loaded': this.justLoaded && !this.loadingFailed,
|
|
72
72
|
'just-failed': this.justLoaded && this.loadingFailed,
|
|
73
73
|
outlined: this.outlined,
|
|
74
|
-
}, disabled: this.disabled || this.loading, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite" }, this.renderIcon(this.icon), this.renderLabel(), this.renderSpinner(), h("svg", { key: '
|
|
74
|
+
}, disabled: this.disabled || this.loading, "aria-busy": this.loading ? 'true' : 'false', "aria-live": "polite" }, this.renderIcon(this.icon), this.renderLabel(), this.renderSpinner(), h("svg", { key: '1a43254ec41997b2218ae39050605402685a66ed', viewBox: "0 0 30 30" }, this.renderLoadingIcons()))));
|
|
75
75
|
}
|
|
76
76
|
loadingWatcher(newValue, oldValue) {
|
|
77
77
|
const hasFinishedLoading = this.hasFinishedLoading(newValue, oldValue);
|
|
@@ -227,9 +227,15 @@ export class Button {
|
|
|
227
227
|
"type": "string",
|
|
228
228
|
"mutable": false,
|
|
229
229
|
"complexType": {
|
|
230
|
-
"original": "
|
|
230
|
+
"original": "IconName | Icon",
|
|
231
231
|
"resolved": "Icon | string",
|
|
232
232
|
"references": {
|
|
233
|
+
"IconName": {
|
|
234
|
+
"location": "import",
|
|
235
|
+
"path": "../../global/shared-types/icon.types",
|
|
236
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
237
|
+
"referenceLocation": "IconName"
|
|
238
|
+
},
|
|
233
239
|
"Icon": {
|
|
234
240
|
"location": "import",
|
|
235
241
|
"path": "../../global/shared-types/icon.types",
|
|
@@ -115,7 +115,7 @@ export class Card {
|
|
|
115
115
|
this.setMarkdownElement(this.markdownElement);
|
|
116
116
|
}
|
|
117
117
|
render() {
|
|
118
|
-
return (h(Host, { key: '
|
|
118
|
+
return (h(Host, { key: 'a60b363b72cba953f51716c4f7d31d9e40b0e442', onMouseEnter: this.show3dEffect ? this.handleMouseEnter : undefined, onMouseLeave: this.show3dEffect ? this.handleMouseLeave : undefined }, h("section", { key: '88b34aaf325184ee1fd89e0b940652a8036f0b46', tabindex: this.clickable ? 0 : undefined, role: this.clickable ? 'button' : undefined, "aria-pressed": this.clickable ? String(this.selected) : undefined, onKeyDown: this.clickable ? this.handleKeyDown : undefined }, this.renderImage(), h("div", { key: '229fe4c0a4ed0f93ff4687c787655b4b96d3a424', class: "body" }, this.renderHeader(), this.renderSlot(), this.renderValue(), this.renderActionBar()), this.show3dEffect && h("limel-3d-hover-effect-glow", { key: 'd9ca3097a18c0c7af6cb6bee0afb1b23df23332a' }))));
|
|
119
119
|
}
|
|
120
120
|
renderImage() {
|
|
121
121
|
var _a;
|
|
@@ -252,9 +252,15 @@ export class Card {
|
|
|
252
252
|
"type": "string",
|
|
253
253
|
"mutable": false,
|
|
254
254
|
"complexType": {
|
|
255
|
-
"original": "
|
|
255
|
+
"original": "IconName | Icon",
|
|
256
256
|
"resolved": "Icon | string",
|
|
257
257
|
"references": {
|
|
258
|
+
"IconName": {
|
|
259
|
+
"location": "import",
|
|
260
|
+
"path": "../../global/shared-types/icon.types",
|
|
261
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
262
|
+
"referenceLocation": "IconName"
|
|
263
|
+
},
|
|
258
264
|
"Icon": {
|
|
259
265
|
"location": "import",
|
|
260
266
|
"path": "../../global/shared-types/icon.types",
|
|
@@ -175,7 +175,7 @@ export class Chip {
|
|
|
175
175
|
removeEnterClickable(this.host);
|
|
176
176
|
}
|
|
177
177
|
render() {
|
|
178
|
-
return (h(Host, { key: '
|
|
178
|
+
return (h(Host, { key: '32f0df7f6665bd8b7ae90c423e1052b60a6f3823', onClick: this.filterClickWhenDisabled }, this.link ? this.renderAsLink() : this.renderAsButton()));
|
|
179
179
|
}
|
|
180
180
|
renderPicture() {
|
|
181
181
|
var _a, _b;
|
|
@@ -315,9 +315,15 @@ export class Chip {
|
|
|
315
315
|
"type": "string",
|
|
316
316
|
"mutable": false,
|
|
317
317
|
"complexType": {
|
|
318
|
-
"original": "
|
|
318
|
+
"original": "IconName | Icon",
|
|
319
319
|
"resolved": "Icon | string",
|
|
320
320
|
"references": {
|
|
321
|
+
"IconName": {
|
|
322
|
+
"location": "import",
|
|
323
|
+
"path": "../../global/shared-types/icon.types",
|
|
324
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
325
|
+
"referenceLocation": "IconName"
|
|
326
|
+
},
|
|
321
327
|
"Icon": {
|
|
322
328
|
"location": "import",
|
|
323
329
|
"path": "../../global/shared-types/icon.types",
|
|
@@ -269,7 +269,7 @@ export class ChipSet {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
const value = this.getValue();
|
|
272
|
-
return (h(Host, { key: '
|
|
272
|
+
return (h(Host, { key: '61cf1dbed2cf2009e119636c738ac14e825a7a9d' }, h("limel-notched-outline", { key: '0443dd8d4a39fbc53e879027633bc06eb99dab6f', labelId: this.labelId, label: this.label, required: this.required, invalid: this.invalid || this.isInvalid(), disabled: this.disabled, readonly: this.readonly, hasValue: !!((_a = this.value) === null || _a === void 0 ? void 0 : _a.length), hasLeadingIcon: !!this.leadingIcon, hasFloatingLabel: this.floatLabelAbove() }, h("div", Object.assign({ key: '7c48b63a8b06b5a8d405fb3966deba769e100169', slot: "content" }, this.getContentProps(), { class: classes }), this.renderContent(value))), this.renderHelperLine()));
|
|
273
273
|
}
|
|
274
274
|
getContentProps() {
|
|
275
275
|
if (this.type === 'input') {
|
|
@@ -752,9 +752,16 @@ export class ChipSet {
|
|
|
752
752
|
"type": "string",
|
|
753
753
|
"mutable": false,
|
|
754
754
|
"complexType": {
|
|
755
|
-
"original": "
|
|
755
|
+
"original": "IconName",
|
|
756
756
|
"resolved": "string",
|
|
757
|
-
"references": {
|
|
757
|
+
"references": {
|
|
758
|
+
"IconName": {
|
|
759
|
+
"location": "import",
|
|
760
|
+
"path": "../../global/shared-types/icon.types",
|
|
761
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
762
|
+
"referenceLocation": "IconName"
|
|
763
|
+
}
|
|
764
|
+
}
|
|
758
765
|
},
|
|
759
766
|
"required": false,
|
|
760
767
|
"optional": false,
|
|
@@ -111,7 +111,7 @@ export class CollapsibleSection {
|
|
|
111
111
|
removeEnterClickable(button);
|
|
112
112
|
}
|
|
113
113
|
render() {
|
|
114
|
-
return (h("section", { key: '
|
|
114
|
+
return (h("section", { key: '0ecf7d54f66065288472a96f4d3da5949219188a', class: `${this.isOpen ? 'open' : ''}`, "aria-invalid": this.invalid, "aria-labelledby": this.header ? this.headingId : null }, h("header", { key: 'b9ece52c89f5969a25a858d9bdf163a9e6de75d7' }, h("button", { key: '2a295e3b926627a8657362d4a2928752e758fd96', class: "open-close-toggle", onClick: this.onClick, "aria-controls": this.bodyId, "aria-expanded": this.isOpen ? 'true' : 'false', "aria-label": this.getCollapsibleSectionAriaLabel(), type: "button" }), this.renderExpandCollapseSign(), this.renderIcon(), this.renderHeading(), h("div", { key: '3b9d78c189b062264b26d8ca11ae2f0b599cb708', class: "divider-line", role: "presentation" }), this.renderHeaderSlot(), this.renderActions()), h("div", { key: '0fff2003ad63654e117a567d350f6909062a88d4', class: "body", "aria-hidden": String(!this.isOpen), id: this.bodyId, role: "region" }, h("slot", { key: 'd00ac66e669c70f5b877fc1ed657d35f7f828107' }))));
|
|
115
115
|
}
|
|
116
116
|
renderHeaderSlot() {
|
|
117
117
|
return h("slot", { name: "header" });
|
|
@@ -173,9 +173,15 @@ export class CollapsibleSection {
|
|
|
173
173
|
"type": "string",
|
|
174
174
|
"mutable": false,
|
|
175
175
|
"complexType": {
|
|
176
|
-
"original": "
|
|
176
|
+
"original": "IconName | Icon",
|
|
177
177
|
"resolved": "Icon | string",
|
|
178
178
|
"references": {
|
|
179
|
+
"IconName": {
|
|
180
|
+
"location": "import",
|
|
181
|
+
"path": "../../global/shared-types/icon.types",
|
|
182
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
183
|
+
"referenceLocation": "IconName"
|
|
184
|
+
},
|
|
179
185
|
"Icon": {
|
|
180
186
|
"location": "import",
|
|
181
187
|
"path": "../../global/shared-types/icon.types",
|
|
@@ -61,7 +61,7 @@ export class Header {
|
|
|
61
61
|
this.subheadingDivider = '·';
|
|
62
62
|
}
|
|
63
63
|
render() {
|
|
64
|
-
return (h(Host, { key: '
|
|
64
|
+
return (h(Host, { key: '9187592e41befbd12fbef3bb4c8b5cb6bc6bed25' }, h("div", { key: '2a667a272a2e9fc4de7be1708abf34806174c33f', class: "information" }, this.renderIcon(), h("div", { key: '4dac266d2bfd7435f8b31cb1f1f85cf7ea4f66bd', class: "headings" }, h("h1", { key: 'f60ebe3ca473586291c806ce025df8e05a9468c4', class: "heading", title: this.heading }, this.heading), h("h2", { key: '37db047610cf146c8c738dc87911678144e90466', class: "subheading", title: this.subheading }, this.subheading, this.renderSupportingText()))), h("slot", { key: '3bb8cc3adb53bc3ed9216cd568af490ec93a2c96', name: "actions" }, h("slot", { key: '5f3caca6968905f52717c3ffb5c18a097ba7808e' }))));
|
|
65
65
|
}
|
|
66
66
|
renderIcon() {
|
|
67
67
|
var _a, _b, _c, _d, _e;
|
|
@@ -105,9 +105,15 @@ export class Header {
|
|
|
105
105
|
"type": "string",
|
|
106
106
|
"mutable": false,
|
|
107
107
|
"complexType": {
|
|
108
|
-
"original": "
|
|
108
|
+
"original": "IconName | Icon",
|
|
109
109
|
"resolved": "Icon | string",
|
|
110
110
|
"references": {
|
|
111
|
+
"IconName": {
|
|
112
|
+
"location": "import",
|
|
113
|
+
"path": "../../global/shared-types/icon.types",
|
|
114
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
115
|
+
"referenceLocation": "IconName"
|
|
116
|
+
},
|
|
111
117
|
"Icon": {
|
|
112
118
|
"location": "import",
|
|
113
119
|
"path": "../../global/shared-types/icon.types",
|
|
@@ -52,7 +52,7 @@ export class IconButton {
|
|
|
52
52
|
if (this.host.hasAttribute('tabindex')) {
|
|
53
53
|
buttonAttributes.tabindex = this.host.getAttribute('tabindex');
|
|
54
54
|
}
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'ffea4e0d48339c908b3ae9afc4d3b46922189ad6', onClick: this.filterClickWhenDisabled }, h("button", Object.assign({ key: 'e4689ca52a6c0c81ddb6e9637584fe140846025b', "aria-label": this.label, disabled: this.disabled, id: this.tooltipId }, buttonAttributes), this.renderIcon(), this.renderTooltip(this.tooltipId))));
|
|
56
56
|
}
|
|
57
57
|
renderIcon() {
|
|
58
58
|
var _a, _b;
|
|
@@ -87,9 +87,15 @@ export class IconButton {
|
|
|
87
87
|
"type": "string",
|
|
88
88
|
"mutable": false,
|
|
89
89
|
"complexType": {
|
|
90
|
-
"original": "
|
|
90
|
+
"original": "IconName | Icon",
|
|
91
91
|
"resolved": "Icon | string",
|
|
92
92
|
"references": {
|
|
93
|
+
"IconName": {
|
|
94
|
+
"location": "import",
|
|
95
|
+
"path": "../../global/shared-types/icon.types",
|
|
96
|
+
"id": "src/global/shared-types/icon.types.ts::IconName",
|
|
97
|
+
"referenceLocation": "IconName"
|
|
98
|
+
},
|
|
93
99
|
"Icon": {
|
|
94
100
|
"location": "import",
|
|
95
101
|
"path": "../../global/shared-types/icon.types",
|