@kubex/zinc 1.0.115 → 1.0.117
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/dist/custom-elements.json +476 -287
- package/dist/vscode.html-custom-data.json +52 -52
- package/dist/web-types.json +116 -86
- package/dist/zn.d.ts +63 -11
- package/dist/zn.min.css +1 -1
- package/dist/zn.min.js +1096 -1087
- package/docs/_includes/default.njk +3 -4
- package/docs/assets/styles/docs.css +13 -13
- package/docs/pages/components/absolute-container.md +2 -2
- package/docs/pages/components/alert.md +5 -5
- package/docs/pages/components/audio-select.md +4 -4
- package/docs/pages/components/button-group.md +1 -31
- package/docs/pages/components/button.md +13 -12
- package/docs/pages/components/checkbox.md +4 -4
- package/docs/pages/components/chip.md +14 -14
- package/docs/pages/components/data-table.md +4 -4
- package/docs/pages/components/datepicker.md +5 -5
- package/docs/pages/components/dialog.md +2 -2
- package/docs/pages/components/file.md +81 -9
- package/docs/pages/components/header.md +4 -6
- package/docs/pages/components/hover-container.md +1 -1
- package/docs/pages/components/icon.md +14 -0
- package/docs/pages/components/inline-edit.md +4 -4
- package/docs/pages/components/item.md +2 -2
- package/docs/pages/components/menu.md +2 -2
- package/docs/pages/components/note.md +12 -12
- package/docs/pages/components/page.md +3 -3
- package/docs/pages/components/pagination.md +6 -6
- package/docs/pages/components/pane.md +3 -6
- package/docs/pages/components/panel.md +10 -12
- package/docs/pages/components/priority-list.md +3 -3
- package/docs/pages/components/radio-group.md +4 -4
- package/docs/pages/components/radio.md +4 -4
- package/docs/pages/components/scroll-container.md +10 -10
- package/docs/pages/components/select.md +5 -5
- package/docs/pages/components/split-button.md +4 -4
- package/docs/pages/components/tabs.md +3 -3
- package/docs/pages/components/tile.md +13 -13
- package/docs/pages/components/toggle.md +4 -4
- package/docs/pages/components/translations.md +5 -5
- package/docs/pages/components/vertical-stepper.md +3 -3
- package/docs/pages/components/well.md +19 -19
- package/docs/pages/getting-started/example-layout.md +16 -16
- package/docs/pages/getting-started/example-page.md +1 -3
- package/package.json +2 -1
- package/scss/_root.scss +87 -60
- package/scss/shared/_button.scss +6 -1
- package/scss/shared/_form-elements.scss +1 -0
- package/scss/shared/_table.scss +1 -1
- package/scss/shared/layout.scss +5 -4
- package/scss/themes/_dark.scss +4 -4
- package/scss/themes/_light.scss +70 -287
- package/src/components/bulk-actions/bulk-actions.component.ts +0 -1
- package/src/components/button/button.component.ts +40 -10
- package/src/components/button/button.scss +67 -103
- package/src/components/button-menu/button-menu.component.ts +2 -6
- package/src/components/collapsible/collapsible.scss +1 -1
- package/src/components/cols/cols.scss +1 -1
- package/src/components/content-block/content-block.component.ts +1 -2
- package/src/components/data-table/data-table.component.ts +4 -8
- package/src/components/data-table/data-table.test.ts +7 -0
- package/src/components/data-table-filter/data-table-filter.component.ts +1 -1
- package/src/components/data-table-sort/data-table-sort.component.ts +2 -2
- package/src/components/dialog/dialog.component.ts +0 -1
- package/src/components/editor/modules/dialog/dialog.component.ts +0 -1
- package/src/components/editor/modules/dialog/dialog.scss +1 -1
- package/src/components/editor/modules/toolbar/toolbar.component.ts +0 -1
- package/src/components/expanding-action/expanding-action.component.ts +0 -3
- package/src/components/expanding-action/expanding-action.scss +0 -5
- package/src/components/file/file.component.ts +158 -17
- package/src/components/file/file.scss +122 -29
- package/src/components/header/header.component.ts +2 -8
- package/src/components/header/header.scss +4 -25
- package/src/components/icon/icon.component.ts +80 -1
- package/src/components/icon/icon.scss +8 -0
- package/src/components/icon/icon.test.ts +24 -0
- package/src/components/icon-picker/icon-picker.component.ts +0 -1
- package/src/components/inline-edit/inline-edit.component.ts +3 -4
- package/src/components/input/input.scss +21 -6
- package/src/components/input-group/input-group.scss +2 -1
- package/src/components/markdown-editor/markdown-editor.component.ts +1 -5
- package/src/components/menu/menu.scss +1 -1
- package/src/components/menu-item/menu-item.scss +4 -4
- package/src/components/navbar/navbar.component.ts +20 -0
- package/src/components/navbar/navbar.scss +31 -17
- package/src/components/navbar/navbar.test.ts +72 -0
- package/src/components/note/note.component.ts +0 -1
- package/src/components/page/page.component.ts +43 -12
- package/src/components/page/page.scss +21 -17
- package/src/components/page/page.test.ts +18 -1
- package/src/components/page-nav/page-nav.scss +6 -6
- package/src/components/panel/panel.component.ts +3 -5
- package/src/components/panel/panel.scss +3 -3
- package/src/components/panel/panel.test.ts +14 -0
- package/src/components/query-builder/query-builder.component.ts +0 -1
- package/src/components/slideout/slideout.component.ts +0 -1
- package/src/components/sp/sp.scss +2 -2
- package/src/components/tab/tab.component.ts +2 -0
- package/src/components/tabs/tabs.component.ts +1 -1
- package/src/components/tile/tile.scss +1 -1
- package/src/components/translation-group/translation-group.component.ts +0 -3
- package/src/components/translations/translations.component.ts +0 -3
|
@@ -20,9 +20,12 @@
|
|
|
20
20
|
--btn-color: var(--zn-primary);
|
|
21
21
|
--notification-color: rgb(var(--zn-color-error));
|
|
22
22
|
|
|
23
|
-
border-width: 1px;
|
|
24
|
-
border-
|
|
25
|
-
|
|
23
|
+
border-width: var(--zn-button-border-width, 1px);
|
|
24
|
+
border-top-width: var(--zn-button-border-top-width, var(--zn-button-border-width, 1px));
|
|
25
|
+
border-right-width: var(--zn-button-border-right-width, var(--zn-button-border-width, 1px));
|
|
26
|
+
border-bottom-width: var(--zn-button-border-bottom-width, var(--zn-button-border-width, 1px));
|
|
27
|
+
border-left-width: var(--zn-button-border-left-width, var(--zn-button-border-width, 1px));
|
|
28
|
+
border-color: var(--zn-button-border-color, transparent);
|
|
26
29
|
display: inline-flex;
|
|
27
30
|
position: relative;
|
|
28
31
|
|
|
@@ -47,6 +50,12 @@
|
|
|
47
50
|
}
|
|
48
51
|
}
|
|
49
52
|
|
|
53
|
+
.button.button--icon-button {
|
|
54
|
+
max-height: 20px;
|
|
55
|
+
height: 20px;
|
|
56
|
+
min-height: 20px;
|
|
57
|
+
}
|
|
58
|
+
|
|
50
59
|
.button.button--muted-notification {
|
|
51
60
|
--notification-color: rgb(var(--zn-color-info));
|
|
52
61
|
}
|
|
@@ -60,8 +69,9 @@
|
|
|
60
69
|
display: flex;
|
|
61
70
|
justify-content: center;
|
|
62
71
|
align-items: center;
|
|
63
|
-
top:
|
|
64
|
-
|
|
72
|
+
top: 1px;
|
|
73
|
+
left: auto;
|
|
74
|
+
inset-inline-end: 1px;
|
|
65
75
|
width: 15px;
|
|
66
76
|
height: 15px;
|
|
67
77
|
border-radius: 50%;
|
|
@@ -106,7 +116,7 @@
|
|
|
106
116
|
.button--standard {
|
|
107
117
|
&.button--secondary {
|
|
108
118
|
background-color: var(--zn-color-neutral-50);
|
|
109
|
-
border-color: var(--zn-color-neutral-50);
|
|
119
|
+
border-color: var(--zn-button-border-color, var(--zn-color-neutral-50));
|
|
110
120
|
color: rgb(var(--zn-primary));
|
|
111
121
|
|
|
112
122
|
&:hover:not([disabled]) {
|
|
@@ -120,7 +130,7 @@
|
|
|
120
130
|
|
|
121
131
|
|
|
122
132
|
background-color: rgba(var(--btn-color), .85);
|
|
123
|
-
border-color: rgb(var(--btn-color));
|
|
133
|
+
border-color: var(--zn-button-border-color, rgb(var(--btn-color)));
|
|
124
134
|
color: rgba(255, 255, 255, 0.9);
|
|
125
135
|
|
|
126
136
|
&:hover:not([disabled]) {
|
|
@@ -134,8 +144,12 @@
|
|
|
134
144
|
|
|
135
145
|
.button--outline {
|
|
136
146
|
background: none;
|
|
137
|
-
border-width: 1px;
|
|
138
|
-
border-
|
|
147
|
+
border-width: var(--zn-button-border-width, 1px);
|
|
148
|
+
border-top-width: var(--zn-button-border-top-width, var(--zn-button-border-width, 1px));
|
|
149
|
+
border-right-width: var(--zn-button-border-right-width, var(--zn-button-border-width, 1px));
|
|
150
|
+
border-bottom-width: var(--zn-button-border-bottom-width, var(--zn-button-border-width, 1px));
|
|
151
|
+
border-left-width: var(--zn-button-border-left-width, var(--zn-button-border-width, 1px));
|
|
152
|
+
border-color: var(--zn-button-border-color, rgb(var(--btn-color)));
|
|
139
153
|
color: rgb(var(--btn-color));
|
|
140
154
|
|
|
141
155
|
&:hover:not([disabled]), &:active:not([disabled]) {
|
|
@@ -144,7 +158,7 @@
|
|
|
144
158
|
}
|
|
145
159
|
|
|
146
160
|
&.button--secondary {
|
|
147
|
-
border-color: var(--zn-color-neutral-100);
|
|
161
|
+
border-color: var(--zn-button-border-color, var(--zn-color-neutral-100));
|
|
148
162
|
|
|
149
163
|
&:hover:not([disabled]), &:active:not([disabled]) {
|
|
150
164
|
background-color: var(--zn-color-neutral-100);
|
|
@@ -167,103 +181,20 @@
|
|
|
167
181
|
}
|
|
168
182
|
}
|
|
169
183
|
|
|
170
|
-
.button--x-small {
|
|
171
|
-
padding: 2px 10px;
|
|
172
|
-
font-size: 12px;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.button--content {
|
|
176
|
-
padding: 0 0;
|
|
177
|
-
font-size: 12px;
|
|
178
|
-
|
|
179
|
-
zn-icon {
|
|
180
|
-
line-height: 0;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
184
|
.button--grow {
|
|
185
185
|
width: 100%;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
.button--
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
.button--large {
|
|
193
|
-
padding: 10px 20px;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
.button--with-icon:not(.button--with-content) {
|
|
197
|
-
&.button--x-small,
|
|
198
|
-
&.button--small {
|
|
199
|
-
padding: 4px;
|
|
200
|
-
}
|
|
201
|
-
|
|
202
|
-
&.button--medium {
|
|
203
|
-
padding: 7px;
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
&.button--large {
|
|
207
|
-
padding: 10px;
|
|
208
|
-
font-size: 16px;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
.button--with-icon.button--with-content {
|
|
213
|
-
&.button--x-small,
|
|
214
|
-
&.button--small {
|
|
215
|
-
padding-left: 10px;
|
|
216
|
-
|
|
217
|
-
&.button--icon-left {
|
|
218
|
-
padding-left: 10px;
|
|
219
|
-
|
|
220
|
-
zn-icon {
|
|
221
|
-
margin-right: 4px;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
&.button--icon-right {
|
|
226
|
-
padding-right: 10px;
|
|
227
|
-
|
|
228
|
-
zn-icon {
|
|
229
|
-
margin-left: 4px;
|
|
230
|
-
}
|
|
188
|
+
.button--with-icon.button--with-content:not(.button--icon-button) {
|
|
189
|
+
&.button--icon-left {
|
|
190
|
+
zn-icon {
|
|
191
|
+
margin-right: var(--zn-base-px);
|
|
231
192
|
}
|
|
232
193
|
}
|
|
233
194
|
|
|
234
|
-
&.button--
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
zn-icon {
|
|
239
|
-
margin-right: 6px;
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
&.button--icon-right {
|
|
244
|
-
padding-right: 10px;
|
|
245
|
-
|
|
246
|
-
zn-icon {
|
|
247
|
-
margin-left: 6px;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
&.button--large {
|
|
253
|
-
&.button--icon-left {
|
|
254
|
-
padding-left: 14px;
|
|
255
|
-
|
|
256
|
-
zn-icon {
|
|
257
|
-
margin-right: 8px;
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
&.button--icon-right {
|
|
262
|
-
padding-right: 14px;
|
|
263
|
-
|
|
264
|
-
zn-icon {
|
|
265
|
-
margin-left: 8px;
|
|
266
|
-
}
|
|
195
|
+
&.button--icon-right {
|
|
196
|
+
zn-icon {
|
|
197
|
+
margin-left: var(--zn-base-px);
|
|
267
198
|
}
|
|
268
199
|
}
|
|
269
200
|
}
|
|
@@ -274,7 +205,7 @@
|
|
|
274
205
|
|
|
275
206
|
.button--transparent {
|
|
276
207
|
background-color: transparent;
|
|
277
|
-
border-color: transparent !important;
|
|
208
|
+
border-color: var(--zn-button-border-color, transparent) !important;
|
|
278
209
|
color: inherit;
|
|
279
210
|
|
|
280
211
|
&:hover:not([disabled]) {
|
|
@@ -289,7 +220,7 @@
|
|
|
289
220
|
.button--star {
|
|
290
221
|
--btn-color: var(--zn-orange);
|
|
291
222
|
background-color: rgb(var(--btn-color));
|
|
292
|
-
border-color: rgb(var(--btn-color));
|
|
223
|
+
border-color: var(--zn-button-border-color, rgb(var(--btn-color)));
|
|
293
224
|
color: white;
|
|
294
225
|
opacity: 1 !important;
|
|
295
226
|
|
|
@@ -303,7 +234,7 @@
|
|
|
303
234
|
|
|
304
235
|
&.button--outline {
|
|
305
236
|
background-color: transparent;
|
|
306
|
-
border-color: rgb(var(--btn-color));
|
|
237
|
+
border-color: var(--zn-button-border-color, rgb(var(--btn-color)));
|
|
307
238
|
color: rgb(var(--btn-color));
|
|
308
239
|
|
|
309
240
|
&:hover:not([disabled]), &:active:not([disabled]) {
|
|
@@ -313,6 +244,39 @@
|
|
|
313
244
|
}
|
|
314
245
|
}
|
|
315
246
|
|
|
247
|
+
.button--icon-button {
|
|
248
|
+
--icon-button-color: rgb(var(--zn-text));
|
|
249
|
+
--icon-button-hover-color: rgb(var(--zn-primary));
|
|
250
|
+
|
|
251
|
+
background: transparent;
|
|
252
|
+
border-color: var(--zn-button-border-color, transparent) !important;
|
|
253
|
+
color: var(--icon-button-color);
|
|
254
|
+
font-weight: inherit;
|
|
255
|
+
line-height: 0;
|
|
256
|
+
margin: 0;
|
|
257
|
+
min-width: 0;
|
|
258
|
+
padding: 0;
|
|
259
|
+
width: auto;
|
|
260
|
+
|
|
261
|
+
zn-icon,
|
|
262
|
+
::slotted(zn-icon) {
|
|
263
|
+
--icon-color: currentColor;
|
|
264
|
+
|
|
265
|
+
color: inherit;
|
|
266
|
+
line-height: 0;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
&:hover:not([disabled]), &:active:not([disabled]) {
|
|
270
|
+
background: transparent;
|
|
271
|
+
color: var(--icon-button-hover-color);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.button--with-icon.button--icon-button {
|
|
276
|
+
border: 0;
|
|
277
|
+
margin: 0;
|
|
278
|
+
}
|
|
279
|
+
|
|
316
280
|
.button--loading-bg {
|
|
317
281
|
&-transparent {
|
|
318
282
|
background-color: transparent;
|
|
@@ -40,8 +40,6 @@ export default class ZnButtonMenu extends ZincElement {
|
|
|
40
40
|
@property({type: Number, attribute: 'max-level'})
|
|
41
41
|
public maxLevel: number = 2; // primary = 1, secondary = 2, transparent = 3
|
|
42
42
|
|
|
43
|
-
@property({}) size: 'content' | 'x-small' | 'small' | 'medium' | 'large' = 'medium';
|
|
44
|
-
|
|
45
43
|
@property({type: Number, attribute: 'icon-size', reflect: true}) iconSize: number = 24;
|
|
46
44
|
|
|
47
45
|
@property({type: Boolean, attribute: 'no-gap'}) public noGap: boolean;
|
|
@@ -169,7 +167,7 @@ export default class ZnButtonMenu extends ZincElement {
|
|
|
169
167
|
menu.innerHTML = '';
|
|
170
168
|
}
|
|
171
169
|
|
|
172
|
-
// Add colors to the buttons depending on type
|
|
170
|
+
// Add colors to the buttons depending on type
|
|
173
171
|
this._buttons.forEach((button: CustomButtonWidths, index: number) => {
|
|
174
172
|
if (index < visibleButtons) {
|
|
175
173
|
this.shadowRoot?.querySelector('.button-menu__container')?.appendChild(button.button);
|
|
@@ -180,7 +178,6 @@ export default class ZnButtonMenu extends ZincElement {
|
|
|
180
178
|
if (button.button.hasAttribute('primary') || button.button.hasAttribute('secondary')) {
|
|
181
179
|
button.button.setAttribute('text', "");
|
|
182
180
|
}
|
|
183
|
-
button.button.setAttribute('size', this.size);
|
|
184
181
|
}
|
|
185
182
|
});
|
|
186
183
|
|
|
@@ -293,8 +290,7 @@ export default class ZnButtonMenu extends ZincElement {
|
|
|
293
290
|
})}">
|
|
294
291
|
<div class="button-menu__container"></div>
|
|
295
292
|
<zn-dropdown placement="bottom-end">
|
|
296
|
-
<zn-button slot="trigger" icon="more_vert" icon-size="${this.iconSize}" color="transparent"
|
|
297
|
-
size="${this.size}"></zn-button>
|
|
293
|
+
<zn-button slot="trigger" icon="more_vert" icon-size="${this.iconSize}" color="transparent"></zn-button>
|
|
298
294
|
<zn-menu></zn-menu>
|
|
299
295
|
</zn-dropdown>
|
|
300
296
|
<slot></slot>
|
|
@@ -209,8 +209,7 @@ export default class ContentBlock extends ZincElement {
|
|
|
209
209
|
<slot name="actions"><small>${this.time}</small></slot>
|
|
210
210
|
${showActions ? html`
|
|
211
211
|
<zn-dropdown>
|
|
212
|
-
<zn-button slot="trigger" icon="more_vert" icon-size="24" color="transparent"
|
|
213
|
-
size="content"></zn-button>
|
|
212
|
+
<zn-button slot="trigger" icon="more_vert" icon-size="24" color="transparent"></zn-button>
|
|
214
213
|
<zn-menu>
|
|
215
214
|
<zn-menu-item @click="${this._toggleHtml}">
|
|
216
215
|
Show HTML
|
|
@@ -705,28 +705,24 @@ export default class ZnDataTable extends ZincElement {
|
|
|
705
705
|
<zn-button @click="${this.page !== 1 ? this.goToFirstPage : undefined}"
|
|
706
706
|
?disabled="${this.page === 1}"
|
|
707
707
|
icon-size="16"
|
|
708
|
-
size="small"
|
|
709
708
|
icon="keyboard_double_arrow_left"
|
|
710
709
|
outline>
|
|
711
710
|
</zn-button>
|
|
712
711
|
<zn-button @click="${this.page !== 1 ? this.goToPreviousPage : undefined}"
|
|
713
712
|
?disabled="${this.page === 1}"
|
|
714
713
|
icon-size="16"
|
|
715
|
-
size="small"
|
|
716
714
|
icon="chevron_left"
|
|
717
715
|
outline>
|
|
718
716
|
</zn-button>
|
|
719
717
|
<zn-button @click="${this.page !== this.totalPages ? this.goToNextPage : undefined}"
|
|
720
718
|
?disabled="${this.page === this.totalPages}"
|
|
721
719
|
icon-size="16"
|
|
722
|
-
size="small"
|
|
723
720
|
icon="chevron_right"
|
|
724
721
|
outline>
|
|
725
722
|
</zn-button>
|
|
726
723
|
<zn-button @click="${this.page !== this.totalPages ? this.goToLastPage : undefined}"
|
|
727
724
|
?disabled="${this.page === this.totalPages}"
|
|
728
725
|
icon-size="16"
|
|
729
|
-
size="small"
|
|
730
726
|
icon="keyboard_double_arrow_right"
|
|
731
727
|
outline>
|
|
732
728
|
</zn-button>
|
|
@@ -749,7 +745,6 @@ export default class ZnDataTable extends ZincElement {
|
|
|
749
745
|
<zn-button @click="${this.selectAll}"
|
|
750
746
|
id="select-all-rows"
|
|
751
747
|
color="transparent"
|
|
752
|
-
size="x-small"
|
|
753
748
|
icon="indeterminate_check_box"
|
|
754
749
|
icon-size="22"
|
|
755
750
|
icon-color="primary"
|
|
@@ -762,7 +757,6 @@ export default class ZnDataTable extends ZincElement {
|
|
|
762
757
|
actions.push(html`
|
|
763
758
|
<zn-button @click="${this.clearSelectedRows}"
|
|
764
759
|
color="transparent"
|
|
765
|
-
size="x-small"
|
|
766
760
|
icon="disabled_by_default"
|
|
767
761
|
icon-size="22"
|
|
768
762
|
tooltip="Clear Selection"
|
|
@@ -1097,7 +1091,6 @@ export default class ZnDataTable extends ZincElement {
|
|
|
1097
1091
|
<td class="table__cell table__cell--expander">
|
|
1098
1092
|
<zn-button
|
|
1099
1093
|
color="transparent"
|
|
1100
|
-
size="x-small"
|
|
1101
1094
|
icon="${icon}"
|
|
1102
1095
|
icon-size="18"
|
|
1103
1096
|
aria-label="${expanded ? 'Collapse row' : 'Expand row'}"
|
|
@@ -1180,6 +1173,10 @@ export default class ZnDataTable extends ZincElement {
|
|
|
1180
1173
|
}
|
|
1181
1174
|
|
|
1182
1175
|
private updateSelectAll() {
|
|
1176
|
+
if (!this.selectAllButton) {
|
|
1177
|
+
return;
|
|
1178
|
+
}
|
|
1179
|
+
|
|
1183
1180
|
if (this.numberOfRowsSelected === this._rows.length) {
|
|
1184
1181
|
this.selectAllButton.icon = 'check_box';
|
|
1185
1182
|
} else {
|
|
@@ -1324,7 +1321,6 @@ export default class ZnDataTable extends ZincElement {
|
|
|
1324
1321
|
<zn-dropdown placement="bottom-end">
|
|
1325
1322
|
<zn-button slot="trigger"
|
|
1326
1323
|
icon="more_vert"
|
|
1327
|
-
size="small"
|
|
1328
1324
|
color="transparent"
|
|
1329
1325
|
icon-size="24"
|
|
1330
1326
|
aria-label="Row actions">
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import '../../../dist/zn.min.js';
|
|
2
2
|
import { expect, fixture, html } from '@open-wc/testing';
|
|
3
|
+
import type ZnDataTable from './data-table.component';
|
|
3
4
|
|
|
4
5
|
describe('<zn-data-table>', () => {
|
|
5
6
|
it('should render a component', async () => {
|
|
@@ -7,4 +8,10 @@ describe('<zn-data-table>', () => {
|
|
|
7
8
|
|
|
8
9
|
expect(el).to.exist;
|
|
9
10
|
});
|
|
11
|
+
|
|
12
|
+
it('does not throw when updating selection without a select-all button', async () => {
|
|
13
|
+
const el = await fixture<ZnDataTable>(html` <zn-data-table></zn-data-table> `);
|
|
14
|
+
|
|
15
|
+
expect(() => (el as unknown as { updateKeys: () => void }).updateKeys()).not.to.throw();
|
|
16
|
+
});
|
|
10
17
|
});
|
|
@@ -104,7 +104,7 @@ export default class ZnDataTableFilter extends ZincElement implements ZincFormCo
|
|
|
104
104
|
|
|
105
105
|
render() {
|
|
106
106
|
return html`
|
|
107
|
-
<zn-button id="slideout-trigger" color="transparent"
|
|
107
|
+
<zn-button id="slideout-trigger" color="transparent" icon="filter_alt" icon-size="22"
|
|
108
108
|
slot="trigger"
|
|
109
109
|
tooltip="Filter">
|
|
110
110
|
</zn-button>
|
|
@@ -26,7 +26,7 @@ export default class ZnDataTableSort extends ZincElement {
|
|
|
26
26
|
render() {
|
|
27
27
|
return html`
|
|
28
28
|
<zn-dropdown distance="50" placement="bottom-start" class="data-table-sort">
|
|
29
|
-
<zn-button color="transparent"
|
|
29
|
+
<zn-button color="transparent" icon="sort" icon-size="22" slot="trigger" tooltip="Open Sort">
|
|
30
30
|
Sort
|
|
31
31
|
</zn-button>
|
|
32
32
|
|
|
@@ -47,7 +47,7 @@ export default class ZnDataTableSort extends ZincElement {
|
|
|
47
47
|
<div class="data-table-sort__btn-group">
|
|
48
48
|
<zn-button color="secondary" slot="footer">Cancel</zn-button>
|
|
49
49
|
<div>
|
|
50
|
-
<zn-button color="transparent"
|
|
50
|
+
<zn-button color="transparent" slot="footer">Clear</zn-button>
|
|
51
51
|
<zn-button color="default" slot="footer">Update</zn-button>
|
|
52
52
|
</div>
|
|
53
53
|
</div>
|
|
@@ -245,7 +245,6 @@ export default class ZnExpandingAction extends ZincElement {
|
|
|
245
245
|
return html`
|
|
246
246
|
${this.method === 'fill' ? html`
|
|
247
247
|
<zn-button color="transparent"
|
|
248
|
-
size="x-small"
|
|
249
248
|
class="expanding-action__button"
|
|
250
249
|
@click="${this.handleIconClicked}"
|
|
251
250
|
icon="${this.icon}"
|
|
@@ -275,7 +274,6 @@ export default class ZnExpandingAction extends ZincElement {
|
|
|
275
274
|
<zn-button slot="trigger"
|
|
276
275
|
class="expanding-action__button"
|
|
277
276
|
color="transparent"
|
|
278
|
-
size="medium"
|
|
279
277
|
icon="${this.icon}"
|
|
280
278
|
icon-color="${this.color}"
|
|
281
279
|
icon-size="20"
|
|
@@ -297,7 +295,6 @@ export default class ZnExpandingAction extends ZincElement {
|
|
|
297
295
|
<zn-button slot="trigger"
|
|
298
296
|
class="expanding-action__button expanding-action__close-icon"
|
|
299
297
|
color="transparent"
|
|
300
|
-
size="medium"
|
|
301
298
|
@click="${this.handleIconCloseClicked}"
|
|
302
299
|
icon="close"
|
|
303
300
|
icon-size="20">
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
:host {
|
|
4
4
|
display: block;
|
|
5
|
-
padding-bottom: var(--zn-spacing-2x-small);
|
|
6
5
|
}
|
|
7
6
|
|
|
8
7
|
.expanding-action--fill {
|
|
@@ -67,10 +66,6 @@
|
|
|
67
66
|
}
|
|
68
67
|
}
|
|
69
68
|
|
|
70
|
-
zn-button.expanding-action__button {
|
|
71
|
-
aspect-ratio: 1/1;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
69
|
.expanding-action--drop .expanding-action__content {
|
|
75
70
|
min-width: 300px;
|
|
76
71
|
width: var(--expanding-action-basis, var(--zn-container-smp, 320px));
|