@itfin/components 2.0.7 → 2.0.9
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/package.json +1 -1
- package/src/assets/scss/_css_variables.scss +0 -5
- package/src/assets/scss/_variables.scss +7 -5
- package/src/components/button/Button.vue +1 -1
- package/src/components/filter/FilterPanel.vue +15 -3
- package/src/components/icon/components/nomi-ai.vue +6 -0
- package/src/components/icon/components/nomi-expand.vue +7 -0
- package/src/components/icon/components/nomi-eye.vue +4 -0
- package/src/components/icon/components/nomi-help.vue +5 -0
- package/src/components/icon/components/nomi-logout.vue +5 -0
- package/src/components/icon/components/nomi-settings.vue +4 -0
- package/src/components/icon/icons.js +302 -296
- package/src/components/icon/new-icons/ai.svg +5 -0
- package/src/components/icon/new-icons/expand.svg +6 -0
- package/src/components/icon/new-icons/eye.svg +3 -0
- package/src/components/icon/new-icons/help.svg +4 -0
- package/src/components/icon/new-icons/logout.svg +4 -0
- package/src/components/icon/new-icons/settings.svg +3 -0
- package/src/components/pagination/Pagination2.vue +5 -1
- package/src/components/panels/Panel.vue +6 -5
- package/src/components/panels/PanelLink.vue +26 -6
- package/src/components/panels/PanelList.vue +15 -25
- package/src/components/panels/helpers.spec.ts +27 -0
- package/src/components/panels/helpers.ts +37 -0
- package/src/components/table/Table2.vue +5 -1
- package/src/components/table/TableBody.vue +3 -16
- package/src/components/table/TableGroup.vue +5 -2
- package/src/components/table/TableHeader.vue +20 -8
- package/src/components/table/TableRowToggle.vue +50 -0
- package/src/components/table/TableRows.vue +13 -24
- package/src/components/table/table2.scss +13 -4
- package/src/components/tree/TreeEditor.vue +2 -3
- package/src/components/view/View.vue +42 -4
- package/src/helpers/tree.js +3 -3
- package/src/locales/en.js +1 -0
- package/src/locales/uk.js +3 -0
package/package.json
CHANGED
|
@@ -11,7 +11,8 @@ $h4-font-size: $headings-font-size-base * 1.25;
|
|
|
11
11
|
$h5-font-size: $headings-font-size-base * 1.125;
|
|
12
12
|
$h6-font-size: $headings-font-size-base;
|
|
13
13
|
|
|
14
|
-
$
|
|
14
|
+
$border-width: 1px;
|
|
15
|
+
$zindex-toaster: 1071 !default;
|
|
15
16
|
|
|
16
17
|
$border-radius: .5rem;
|
|
17
18
|
$border-radius-sm: .375rem;
|
|
@@ -46,12 +47,13 @@ $input-focus-border: #F2F4F7;//rgb(11 49 79 / 25%);
|
|
|
46
47
|
$form-check-input-border: 1px solid rgba(#000, .08);
|
|
47
48
|
$form-switch-focus-color: tint-color($primary, 50%);
|
|
48
49
|
|
|
49
|
-
$modal-backdrop-bg: #
|
|
50
|
-
$modal-backdrop-opacity: .
|
|
51
|
-
$modal-content-border-
|
|
50
|
+
$modal-backdrop-bg: #222;
|
|
51
|
+
$modal-backdrop-opacity: .5;
|
|
52
|
+
$modal-content-border-width: 0;
|
|
53
|
+
$modal-footer-border-color: 0;
|
|
52
54
|
|
|
53
55
|
// popover
|
|
54
|
-
$popover-border-width:
|
|
56
|
+
$popover-border-width: 1px;
|
|
55
57
|
|
|
56
58
|
// dropdown
|
|
57
59
|
|
|
@@ -48,7 +48,7 @@ class itfButton extends Vue {
|
|
|
48
48
|
'btn-default': defaultStyle,
|
|
49
49
|
'btn-basic': !primary && !secondary && !color && !defaultStyle,
|
|
50
50
|
'btn-secondary': secondary,
|
|
51
|
-
'btn-squircle': squircle,
|
|
51
|
+
// 'btn-squircle': squircle,
|
|
52
52
|
'btn-sm': small,
|
|
53
53
|
'btn-lg': large,
|
|
54
54
|
// 'px-3': small && !icon,
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
<itf-icon new name="filter" />
|
|
17
17
|
<span v-if="activeFiltersCount" class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-primary">
|
|
18
18
|
{{activeFiltersCount}}
|
|
19
|
-
<span class="visually-hidden">
|
|
19
|
+
<span class="visually-hidden">active filters</span>
|
|
20
20
|
</span>
|
|
21
21
|
</itf-button>
|
|
22
22
|
<slot name="after-filter-btn"></slot>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
<div v-if="showFilters" class="d-flex gap-2 flex-
|
|
25
|
+
<div v-if="showFilters" class="d-flex gap-2 flex-nowrap">
|
|
26
26
|
<filter-badge
|
|
27
|
-
v-for="(facet, n) in
|
|
27
|
+
v-for="(facet, n) in visibleFilters"
|
|
28
28
|
:key="n"
|
|
29
29
|
v-model="filter[facet.name]"
|
|
30
30
|
:is-default="filter[facet.name].isDefault"
|
|
@@ -90,6 +90,7 @@ class FilterPanel extends Vue {
|
|
|
90
90
|
@Prop({ type: String }) endpoint;
|
|
91
91
|
@Prop() panel;
|
|
92
92
|
@Prop(Boolean) search;
|
|
93
|
+
@Prop(Boolean) mini;
|
|
93
94
|
@Prop({ type: String, default: function() { return this.$t('components.filter.search'); } }) searchPlaceholder;
|
|
94
95
|
|
|
95
96
|
filter = {};
|
|
@@ -98,6 +99,17 @@ class FilterPanel extends Vue {
|
|
|
98
99
|
loading = false;
|
|
99
100
|
showFilters = true;
|
|
100
101
|
|
|
102
|
+
get visibleFilters() {
|
|
103
|
+
if (this.mini) {
|
|
104
|
+
return this.filters.slice(0, 2);
|
|
105
|
+
}
|
|
106
|
+
return this.filters;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
get resetFilters() {
|
|
110
|
+
return this.filters.filter(f => !this.visibleFilters.find(vf => vf.name === f.name));
|
|
111
|
+
}
|
|
112
|
+
|
|
101
113
|
async mounted() {
|
|
102
114
|
this.filters = this.staticFilters ?? [];
|
|
103
115
|
if (this.endpoint) {
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<template><svg width="16" height="16" viewBox="4 4 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8461 13.8066C9.51242 12.9683 7.88973 13.5198 6.33372 14.1816L5 11.0711C5.02223 11.0711 5.06669 11.0491 5.08892 11.027C6.55601 10.4093 10.3571 8.79892 13.5136 11.5785C13.6247 11.6668 13.7136 11.755 13.8248 11.8653C14.9585 11.4461 16.2255 11.3138 17.6037 11.6006C20.1155 12.108 21.8938 14.0272 22.6273 16.6083C23.3387 19.1452 23.0497 22.366 21.6048 25.9397L18.4484 24.6823C19.6932 21.5718 19.8043 19.1452 19.3375 17.5127C18.8929 15.9244 17.9593 15.1302 16.9146 14.9096C16.5367 14.8434 16.181 14.8214 15.8031 14.8655C16.5589 16.6965 16.7812 18.704 16.5811 20.4247C16.4255 21.8807 15.9365 23.3808 15.0251 24.4617C14.0248 25.6309 12.5133 26.2927 10.7572 25.8736C8.68996 25.3882 7.75636 23.7337 7.53407 22.0792C7.33401 20.4909 7.75636 18.704 8.4899 17.1156C9.02339 15.9685 9.82362 14.7772 10.8461 13.7845V13.8066ZM12.8245 16.6303C12.3577 17.1818 11.9354 17.8216 11.5797 18.5716C11.024 19.7629 10.8239 20.91 10.9128 21.6821C11.0017 22.388 11.2463 22.5425 11.513 22.6086C11.8909 22.6969 12.1354 22.6086 12.4022 22.2998C12.7356 21.9027 13.069 21.1527 13.1802 20.0717C13.3135 18.9466 13.1802 17.7333 12.8023 16.6303H12.8245Z" fill="currentColor"/>
|
|
3
|
+
<path d="M20.6582 5.7567C20.7911 5.4625 21.2089 5.4625 21.3418 5.7567L21.5835 6.29203C21.809 6.79121 22.2088 7.19101 22.708 7.41646L23.2433 7.65824C23.5375 7.79111 23.5375 8.20889 23.2433 8.34176L22.708 8.58354C22.2088 8.80899 21.809 9.20879 21.5835 9.70797L21.3418 10.2433C21.2089 10.5375 20.7911 10.5375 20.6582 10.2433L20.4165 9.70797C20.191 9.20879 19.7912 8.80899 19.292 8.58354L18.7567 8.34176C18.4625 8.20889 18.4625 7.79111 18.7567 7.65824L19.292 7.41646C19.7912 7.19101 20.191 6.79121 20.4165 6.29203L20.6582 5.7567Z" fill="currentColor"/>
|
|
4
|
+
<path d="M24.7722 11.5045C24.8607 11.3083 25.1393 11.3083 25.2278 11.5045L25.389 11.8614C25.5393 12.1941 25.8059 12.4607 26.1386 12.611L26.4955 12.7722C26.6917 12.8607 26.6917 13.1393 26.4955 13.2278L26.1386 13.389C25.8059 13.5393 25.5393 13.8059 25.389 14.1386L25.2278 14.4955C25.1393 14.6917 24.8607 14.6917 24.7722 14.4955L24.611 14.1386C24.4607 13.8059 24.1941 13.5393 23.8614 13.389L23.5045 13.2278C23.3083 13.1393 23.3083 12.8607 23.5045 12.7722L23.8614 12.611C24.1941 12.4607 24.4607 12.1941 24.611 11.8614L24.7722 11.5045Z" fill="currentColor"/>
|
|
5
|
+
</svg>
|
|
6
|
+
</template>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M19 10V5.3C19 5.13431 18.8657 5 18.7 5H14" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
<path d="M5 14V18.7C5 18.8657 5.13431 19 5.3 19H10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M5.5 18.5L9.5 14.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M14.5 9.5L18.5 5.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|
|
7
|
+
</template>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.08422 11.626C4.97192 11.8628 4.97193 12.1375 5.08423 12.3743C6.303 14.9438 8.94045 16.7231 11.9977 16.7231C15.055 16.7231 17.6925 14.9437 18.9112 12.3741C19.0235 12.1373 19.0235 11.8625 18.9112 11.6258C17.6924 9.0562 15.055 7.27698 11.9978 7.27698C8.94046 7.27698 6.30294 9.05631 5.08422 11.626ZM15 12C15 13.6569 13.6569 15 12 15C10.3432 15 9.00003 13.6569 9.00003 12C9.00003 10.3432 10.3432 9.00002 12 9.00002C12.3075 9.00002 12.6042 9.04627 12.8834 9.1322C12.3625 9.36738 12 9.89137 12 10.5C12 11.3284 12.6716 12 13.5 12C14.1087 12 14.6327 11.6375 14.8678 11.1166C14.9538 11.3959 15 11.6926 15 12Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
4
|
+
</template>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<template><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-info-circle" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"/>
|
|
3
|
+
<path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"/>
|
|
4
|
+
</svg>
|
|
5
|
+
</template>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<template><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-door-closed" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v13h1.5a.5.5 0 0 1 0 1h-13a.5.5 0 0 1 0-1H3zm1 13h8V2H4z"/>
|
|
3
|
+
<path d="M9 9a1 1 0 1 0 2 0 1 1 0 0 0-2 0"/>
|
|
4
|
+
</svg>
|
|
5
|
+
</template>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<template><svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8.932.727c-.243-.97-1.62-.97-1.864 0l-.071.286a.96.96 0 0 1-1.622.434l-.205-.211c-.695-.719-1.888-.03-1.613.931l.08.284a.96.96 0 0 1-1.186 1.187l-.284-.081c-.96-.275-1.65.918-.931 1.613l.211.205a.96.96 0 0 1-.434 1.622l-.286.071c-.97.243-.97 1.62 0 1.864l.286.071a.96.96 0 0 1 .434 1.622l-.211.205c-.719.695-.03 1.888.931 1.613l.284-.08a.96.96 0 0 1 1.187 1.187l-.081.283c-.275.96.918 1.65 1.613.931l.205-.211a.96.96 0 0 1 1.622.434l.071.286c.243.97 1.62.97 1.864 0l.071-.286a.96.96 0 0 1 1.622-.434l.205.211c.695.719 1.888.03 1.613-.931l-.08-.284a.96.96 0 0 1 1.187-1.187l.283.081c.96.275 1.65-.918.931-1.613l-.211-.205a.96.96 0 0 1 .434-1.622l.286-.071c.97-.243.97-1.62 0-1.864l-.286-.071a.96.96 0 0 1-.434-1.622l.211-.205c.719-.695.03-1.888-.931-1.613l-.284.08a.96.96 0 0 1-1.187-1.186l.081-.284c.275-.96-.918-1.65-1.613-.931l-.205.211a.96.96 0 0 1-1.622-.434zM8 12.997a4.998 4.998 0 1 1 0-9.995 4.998 4.998 0 0 1 0 9.996z"/>
|
|
3
|
+
</svg>
|
|
4
|
+
</template>
|