@itfin/components 1.5.2 → 1.5.3
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 +12 -1
- package/src/ITFSettings.js +0 -6
- package/src/components/button/Button.vue +1 -3
- package/src/components/button/NativeButton.js +0 -4
- package/src/components/button/index.stories.js +2 -2
- package/src/components/card/BentoGrid.vue +0 -2
- package/src/components/customize/PropertiesList.vue +2 -0
- package/src/components/customize/PropertiesPopupMenu.vue +1 -1
- package/src/components/customize/PropertyItem.vue +24 -6
- package/src/components/datepicker/DatePicker.vue +1 -1
- package/src/components/datepicker/MonthPicker.vue +21 -1
- package/src/components/dropdown/Dropdown.vue +1 -1
- package/src/components/dropdown/DropdownMenu.vue +1 -1
- package/src/components/editable/EditButton.vue +1 -1
- package/src/components/filter/FilterBadge.vue +5 -4
- package/src/components/filter/FilterFacetsList.vue +3 -2
- package/src/components/filter/FilterPanel.vue +20 -6
- package/src/components/icon/components/nomi-calendar-view.vue +4 -0
- package/src/components/icon/components/nomi-help.vue +3 -2
- package/src/components/icon/components/nomi-kanban-view.vue +6 -0
- package/src/components/icon/components/nomi-list-view.vue +7 -0
- package/src/components/icon/components/nomi-lock.vue +1 -1
- package/src/components/icon/components/nomi-project.vue +2 -2
- package/src/components/icon/components/nomi-scissors.vue +1 -1
- package/src/components/icon/components/nomi-table-config.vue +9 -0
- package/src/components/icon/components/nomi-table-view.vue +4 -1
- package/src/components/icon/components/nomi-user.vue +3 -3
- package/src/components/icon/convert-icons.js +0 -3
- package/src/components/icon/icons.js +402 -397
- package/src/components/icon/new-icons/calendar-view.svg +3 -0
- package/src/components/icon/new-icons/help.svg +3 -2
- package/src/components/icon/new-icons/kanban-view.svg +5 -0
- package/src/components/icon/new-icons/list-view.svg +6 -0
- package/src/components/icon/new-icons/lock.svg +1 -1
- package/src/components/icon/new-icons/project.svg +2 -2
- package/src/components/icon/new-icons/scissors.svg +1 -1
- package/src/components/icon/new-icons/table-config.svg +8 -0
- package/src/components/icon/new-icons/table-view.svg +4 -1
- package/src/components/icon/new-icons/user.svg +3 -3
- package/src/components/kanban/BoardCard.vue +1 -1
- package/src/components/kanban/BoardCardTimer.vue +1 -1
- package/src/components/overlay/SensitiveOverlay.vue +4 -2
- package/src/components/panels/Panel.vue +21 -0
- package/src/components/panels/PanelList.vue +14 -3
- package/src/components/table/Table2.vue +65 -60
- package/src/components/table/TableBody.vue +6 -0
- package/src/components/table/TableGroup.vue +13 -4
- package/src/components/table/TableHeader.vue +77 -76
- package/src/components/table/TableRowToggle.vue +9 -1
- package/src/components/table/TableRows.vue +54 -30
- package/src/components/table/table2.scss +15 -34
- package/src/components/tree/TreeEditor.vue +2 -3
- package/src/components/view/View.vue +214 -59
- package/src/helpers/validators.js +35 -9
- package/src/helpers/validators.spec.js +48 -11
- package/src/locales/en.js +1 -1
- package/src/locales/uk.js +4 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itfin/components",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"author": "Vitalii Savchuk <esvit666@gmail.com>",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"serve": "vue-cli-service serve",
|
|
@@ -59,7 +59,11 @@
|
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@babel/eslint-parser": "^7.19.1",
|
|
62
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
63
|
+
"@babel/plugin-proposal-decorators": "^7.29.0",
|
|
62
64
|
"@babel/plugin-proposal-numeric-separator": "^7.18.6",
|
|
65
|
+
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
|
|
66
|
+
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
63
67
|
"@babel/plugin-syntax-numeric-separator": "^7.10.4",
|
|
64
68
|
"@babel/plugin-transform-nullish-coalescing-operator": "^7.23.4",
|
|
65
69
|
"@vue/cli-plugin-babel": "^5.0.8",
|
|
@@ -81,6 +85,7 @@
|
|
|
81
85
|
"vue-class-component": "^7.2.6",
|
|
82
86
|
"vue-eslint-parser": "^9.1.0",
|
|
83
87
|
"vue-jest": "^3.0.7",
|
|
88
|
+
"vue-loader": "^15.11.1",
|
|
84
89
|
"vue-template-compiler": "=2.6.14"
|
|
85
90
|
},
|
|
86
91
|
"eslintConfig": {
|
|
@@ -130,5 +135,11 @@
|
|
|
130
135
|
"lcov"
|
|
131
136
|
]
|
|
132
137
|
},
|
|
138
|
+
"overrides": {
|
|
139
|
+
"@vue/vue-loader-v15": {
|
|
140
|
+
".": "npm:vue-loader@^15.11.1",
|
|
141
|
+
"webpack": "^5.88.0"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
133
144
|
"license": "ISC"
|
|
134
145
|
}
|
package/src/ITFSettings.js
CHANGED
|
@@ -17,7 +17,6 @@ class itfButton extends Vue {
|
|
|
17
17
|
@Prop(Boolean) large;
|
|
18
18
|
@Prop(Boolean) icon;
|
|
19
19
|
@Prop(Boolean) block;
|
|
20
|
-
@Prop(Boolean) squircle;
|
|
21
20
|
@Prop(String) loadingText;
|
|
22
21
|
@Prop(String) color;
|
|
23
22
|
@Prop(Boolean) disabled;
|
|
@@ -28,7 +27,7 @@ class itfButton extends Vue {
|
|
|
28
27
|
|
|
29
28
|
render (createElement, { data, slots, children, props }) {
|
|
30
29
|
const {
|
|
31
|
-
to, href, target, disabled, color, block, loading, labeled, secondary, primary, small, large, icon, loadingText,
|
|
30
|
+
to, href, target, disabled, color, block, loading, labeled, secondary, primary, small, large, icon, loadingText, default: defaultStyle,
|
|
32
31
|
class: classNames
|
|
33
32
|
} = props;
|
|
34
33
|
const component = to ? 'nuxt-link' : (props.href ? 'a' : 'button');
|
|
@@ -48,7 +47,6 @@ class itfButton extends Vue {
|
|
|
48
47
|
'btn-default': defaultStyle,
|
|
49
48
|
'btn-basic': !primary && !secondary && !color && !defaultStyle,
|
|
50
49
|
'btn-secondary': secondary,
|
|
51
|
-
// 'btn-squircle': squircle,
|
|
52
50
|
'btn-sm': small,
|
|
53
51
|
'btn-lg': large,
|
|
54
52
|
// 'px-3': small && !icon,
|
|
@@ -7,7 +7,6 @@ const CSS_CLASSES = {
|
|
|
7
7
|
small: ['btn-sm'],
|
|
8
8
|
block: ['itf-button__block'],
|
|
9
9
|
labeled: ['labeled'],
|
|
10
|
-
squircle: ['btn-squircle'],
|
|
11
10
|
icon: ['btn-icon'],
|
|
12
11
|
loading: ['loading'],
|
|
13
12
|
spinner: ['itf-spinner'],
|
|
@@ -36,9 +35,6 @@ class Button extends HTMLElement {
|
|
|
36
35
|
if (this.hasAttribute('labeled')) {
|
|
37
36
|
styles.push(CSS_CLASSES.labeled);
|
|
38
37
|
}
|
|
39
|
-
if (this.hasAttribute('squircle')) {
|
|
40
|
-
styles.push(CSS_CLASSES.squircle);
|
|
41
|
-
}
|
|
42
38
|
if (this.hasAttribute('icon')) {
|
|
43
39
|
styles.push(CSS_CLASSES.icon);
|
|
44
40
|
}
|
|
@@ -66,7 +66,7 @@ storiesOf('Common', module)
|
|
|
66
66
|
|
|
67
67
|
<h3>Standart button</h3>
|
|
68
68
|
|
|
69
|
-
<itf-button
|
|
69
|
+
<itf-button primary>Primary button</itf-button>
|
|
70
70
|
<itf-button secondary>Secondary button</itf-button>
|
|
71
71
|
<itf-button>Basic button</itf-button>
|
|
72
72
|
<itf-button icon>
|
|
@@ -92,7 +92,7 @@ storiesOf('Common', module)
|
|
|
92
92
|
|
|
93
93
|
<h3>Large button</h3>
|
|
94
94
|
|
|
95
|
-
<itf-button
|
|
95
|
+
<itf-button large primary>Primary button</itf-button>
|
|
96
96
|
<itf-button large secondary>Secondary button</itf-button>
|
|
97
97
|
<itf-button large>Basic button</itf-button>
|
|
98
98
|
<itf-button large icon>
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<grid-layout
|
|
3
3
|
:layout="layout"
|
|
4
|
-
:responsive-layouts="responsiveLayouts"
|
|
5
4
|
@update:layout="onUpdateLayout"
|
|
6
5
|
class="itf-bento-grid"
|
|
7
6
|
:col-num="4"
|
|
@@ -57,7 +56,6 @@ export default @Component({
|
|
|
57
56
|
})
|
|
58
57
|
class itfBentoGrid extends Vue {
|
|
59
58
|
@Prop() layout;
|
|
60
|
-
@Prop() responsiveLayouts;
|
|
61
59
|
@Prop() components;
|
|
62
60
|
@Prop({ type: Boolean, default: true }) enabled;
|
|
63
61
|
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
:field="field"
|
|
16
16
|
:editable="editable"
|
|
17
17
|
:lock-fields="lockFields"
|
|
18
|
+
:full-name="fullName"
|
|
18
19
|
:value="value[field.Id]"
|
|
19
20
|
@input="$emit('input', { ...value, [field.Id]: $event })"
|
|
20
21
|
@delete="onDelete(field)"
|
|
@@ -104,6 +105,7 @@ class itfPropertiesList extends Vue {
|
|
|
104
105
|
@Prop({ type: Boolean, default: false }) loading;
|
|
105
106
|
@Prop({ type: Boolean, default: false }) editable;
|
|
106
107
|
@Prop({ type: Boolean, default: false }) lockFields;
|
|
108
|
+
@Prop({ type: Boolean, default: false }) fullName;
|
|
107
109
|
|
|
108
110
|
isShowAll = false;
|
|
109
111
|
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
</template>
|
|
29
29
|
<script>
|
|
30
|
-
import { Vue, Component, Prop
|
|
30
|
+
import { Vue, Component, Prop } from 'vue-property-decorator';
|
|
31
31
|
import itfTextField from '../text-field/TextField.vue';
|
|
32
32
|
import itfIcon from '../icon/Icon';
|
|
33
33
|
import itfButton from '../button/Button';
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
|
|
10
10
|
<itf-dropdown text :disabled="!editable || lockFields" ref="editDd" autoclose="outside" class="flex-grow-1 mw-100 editable-field" shadow @close="onClose">
|
|
11
11
|
<div slot="button">
|
|
12
|
-
<div class="d-flex align-items-center">
|
|
12
|
+
<div class="d-flex align-items-center" :class="{ 'b-properties-list__title-text': lockFields }">
|
|
13
13
|
<!-- <itf-icon :name="field.Icon" :size="16" class="me-1" />-->
|
|
14
14
|
|
|
15
|
-
<div
|
|
15
|
+
<div :class="`b-properties-list__title-text-${fullName ? 'full' : 'short'}`" v-text="field.Name" />
|
|
16
16
|
</div>
|
|
17
17
|
</div>
|
|
18
18
|
<properties-edit-menu
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
/>
|
|
36
36
|
</itf-dropdown>
|
|
37
37
|
</div>
|
|
38
|
-
<div class="b-properties-list__value rounded-2" :class="{'editable': editable, 'active shadow rounded-2 bg-body': focusId === field.Id}" sortable-skip>
|
|
38
|
+
<div class="bg-light b-properties-list__value rounded-2" :class="{'editable': editable, 'active shadow rounded-2 bg-body': focusId === field.Id}" sortable-skip>
|
|
39
39
|
<property-inline-edit
|
|
40
40
|
@focus="onFocus(field.Id)"
|
|
41
41
|
@blur="onBlur(field.Id)"
|
|
42
|
-
class="flex-grow-1 b-properties-list__inline-editor editable-field"
|
|
42
|
+
class="flex-grow-1 b-properties-list__inline-editor editable-field rounded-2"
|
|
43
43
|
:field="field"
|
|
44
44
|
:value="value"
|
|
45
45
|
:editable="editable"
|
|
@@ -62,6 +62,11 @@
|
|
|
62
62
|
background: rgba(0, 0, 0, 0.05);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
+
&__inline-editor {
|
|
66
|
+
min-height: 44px;
|
|
67
|
+
padding-right: 10px;
|
|
68
|
+
padding-left: 10px;
|
|
69
|
+
}
|
|
65
70
|
&__draghandler {
|
|
66
71
|
user-select: none;
|
|
67
72
|
transition: opacity 150ms ease-in 0s;
|
|
@@ -80,7 +85,7 @@
|
|
|
80
85
|
}
|
|
81
86
|
&__inner {
|
|
82
87
|
display: flex;
|
|
83
|
-
padding-bottom:
|
|
88
|
+
padding-bottom: 8px;
|
|
84
89
|
width: 100%;
|
|
85
90
|
}
|
|
86
91
|
&__name, &__value {
|
|
@@ -98,7 +103,7 @@
|
|
|
98
103
|
&__name {
|
|
99
104
|
display: flex;
|
|
100
105
|
align-items: center;
|
|
101
|
-
height:
|
|
106
|
+
min-height: 44px;
|
|
102
107
|
width: 250px;
|
|
103
108
|
flex: 0 0 auto;
|
|
104
109
|
}
|
|
@@ -119,6 +124,18 @@
|
|
|
119
124
|
background-color: rgba(55, 53, 47, 0.08);
|
|
120
125
|
}
|
|
121
126
|
}
|
|
127
|
+
&__title-text {
|
|
128
|
+
min-height: 44px;
|
|
129
|
+
}
|
|
130
|
+
&__title-text-short {
|
|
131
|
+
white-space: nowrap;
|
|
132
|
+
overflow: hidden;
|
|
133
|
+
text-overflow: ellipsis;
|
|
134
|
+
}
|
|
135
|
+
&__title-text-full {
|
|
136
|
+
white-space: normal;
|
|
137
|
+
word-break: break-word;
|
|
138
|
+
}
|
|
122
139
|
}
|
|
123
140
|
</style>
|
|
124
141
|
<script>
|
|
@@ -154,6 +171,7 @@ class itfPropertyItem extends Vue {
|
|
|
154
171
|
@Prop({ type: Boolean, default: false }) loading;
|
|
155
172
|
@Prop({ type: Boolean, default: false }) editable;
|
|
156
173
|
@Prop({ type: Boolean, default: false }) lockFields;
|
|
174
|
+
@Prop({ type: Boolean, default: false }) fullName;
|
|
157
175
|
|
|
158
176
|
isEditMode = false;
|
|
159
177
|
focusId = null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="itf-monthpicker" :class="{'with-addon addon-start': prependIcon}">
|
|
2
|
+
<div class="itf-monthpicker" :class="{'with-addon addon-start': prependIcon, 'with-addon addon-end': clearable}">
|
|
3
3
|
<div class="addon" v-if="prependIcon">
|
|
4
4
|
<slot name="addon">
|
|
5
5
|
<itf-icon :name="prependIcon" />
|
|
@@ -16,6 +16,18 @@
|
|
|
16
16
|
:value="displayValue"
|
|
17
17
|
:placeholder="placeholder"
|
|
18
18
|
/>
|
|
19
|
+
<div class="addon-end" v-if="clearable && value && !isInvalid()">
|
|
20
|
+
<slot name="clear">
|
|
21
|
+
<itf-button
|
|
22
|
+
icon
|
|
23
|
+
small
|
|
24
|
+
@click="$emit('input', '')"
|
|
25
|
+
>
|
|
26
|
+
<itf-icon name="close" />
|
|
27
|
+
</itf-button>
|
|
28
|
+
</slot>
|
|
29
|
+
</div>
|
|
30
|
+
|
|
19
31
|
<div style="display: none">
|
|
20
32
|
<div ref="dropdown" class="itf-monthpicker__dropdown border rounded">
|
|
21
33
|
<div>
|
|
@@ -36,16 +48,23 @@
|
|
|
36
48
|
</div>
|
|
37
49
|
</div>
|
|
38
50
|
</template>
|
|
51
|
+
<style>
|
|
52
|
+
.itf-monthpicker .addon-end {
|
|
53
|
+
top: 0
|
|
54
|
+
}
|
|
55
|
+
</style>
|
|
39
56
|
<script>
|
|
40
57
|
import { Vue, Component, Prop, Inject } from 'vue-property-decorator';
|
|
41
58
|
import { DateTime } from 'luxon';
|
|
42
59
|
import tippy from 'tippy.js';
|
|
43
60
|
import itfIcon from '../icon/Icon';
|
|
44
61
|
import itfDatePickerInline from './DatePickerInline.vue';
|
|
62
|
+
import itfButton from "@itfin/components/src/components/button/Button.vue";
|
|
45
63
|
|
|
46
64
|
export default @Component({
|
|
47
65
|
name: 'itfMonthPicker',
|
|
48
66
|
components: {
|
|
67
|
+
itfButton,
|
|
49
68
|
itfIcon,
|
|
50
69
|
itfDatePickerInline
|
|
51
70
|
},
|
|
@@ -63,6 +82,7 @@ class itfMonthPicker extends Vue {
|
|
|
63
82
|
@Prop({ type: String, default: '' }) placeholder;
|
|
64
83
|
@Prop({ type: String, default: '' }) prependIcon;
|
|
65
84
|
@Prop({ type: String, default: 'bottom-start' }) placement;
|
|
85
|
+
@Prop(Boolean) clearable;
|
|
66
86
|
|
|
67
87
|
focused = false;
|
|
68
88
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
</div>
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
|
-
<div>
|
|
15
|
+
<div class="px-2">
|
|
16
16
|
<template v-if="type === 'list'">
|
|
17
17
|
<a
|
|
18
18
|
v-for="(item, n) in options.items"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
<template v-else-if="type === 'period'">
|
|
26
26
|
<itf-date-range-picker-inline
|
|
27
|
-
style="margin: -.5rem
|
|
27
|
+
style="margin: -.5rem"
|
|
28
28
|
:value="value.value"
|
|
29
29
|
@input="onFilterChange({ value: $event })"
|
|
30
30
|
/>
|
|
@@ -48,12 +48,13 @@
|
|
|
48
48
|
</template>
|
|
49
49
|
<template v-else-if="type === 'date'">
|
|
50
50
|
<itf-date-picker-inline
|
|
51
|
-
style="margin: -.5rem
|
|
51
|
+
style="margin: -.5rem"
|
|
52
52
|
:value="value.value"
|
|
53
53
|
:only-calendar="options.calendarOptions && options.calendarOptions.onlyCalendar"
|
|
54
54
|
:max-date="options.calendarOptions && options.calendarOptions.maxDate"
|
|
55
55
|
:min-date="options.calendarOptions && options.calendarOptions.minDate"
|
|
56
|
-
|
|
56
|
+
:start-view="options.calendarOptions && options.calendarOptions.startView"
|
|
57
|
+
:min-view="options.calendarOptions && options.calendarOptions.minView"
|
|
57
58
|
@input="onFilterChange({ value: $event })"
|
|
58
59
|
/>
|
|
59
60
|
</template>
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
43
43
|
</div>
|
|
44
|
+
</div>
|
|
44
45
|
|
|
45
46
|
<itf-button default class="mt-1" v-if="hasMore" small block @click="toggleMore">
|
|
46
47
|
<span v-if="showMore">{{ $t('components.filter.hideMore', { count: visibleList.length }) }}</span>
|
|
@@ -86,7 +87,7 @@
|
|
|
86
87
|
margin: 1px 0;
|
|
87
88
|
&.active {
|
|
88
89
|
.facet-bar-progress {
|
|
89
|
-
background-color: var(--bs-
|
|
90
|
+
background-color: var(--bs-primary);
|
|
90
91
|
}
|
|
91
92
|
}
|
|
92
93
|
.facet-name {
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
width: var(--bar-width);
|
|
116
117
|
min-width: 5px;
|
|
117
118
|
height: 10px;
|
|
118
|
-
background-color: rgba(var(--bs-
|
|
119
|
+
background-color: rgba(var(--bs-primary-rgb), 50%);
|
|
119
120
|
transition: width 0.3s ease 0s;
|
|
120
121
|
}
|
|
121
122
|
}
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
class="itf-filter-panel__badge"
|
|
36
36
|
:ref="'item-' + n"
|
|
37
37
|
v-model="filter[facet.name]"
|
|
38
|
-
:is-default="filter[facet.name].isDefault"
|
|
39
|
-
:text="filter[facet.name].label"
|
|
38
|
+
:is-default="filter[facet.name] && filter[facet.name].isDefault"
|
|
39
|
+
:text="filter[facet.name] && filter[facet.name].label"
|
|
40
40
|
:type="facet.type"
|
|
41
41
|
:icon="facet.icon"
|
|
42
42
|
:options="facet.options"
|
|
@@ -377,11 +377,25 @@ class FilterPanel extends Vue {
|
|
|
377
377
|
}
|
|
378
378
|
} else if (facet.type === 'date') {
|
|
379
379
|
const date = DateTime.fromISO(value.value);
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
380
|
+
const effectiveDate = (date.isValid ? date : DateTime.fromISO(facet.options.defaultValue.value ?? DateTime.now().toISO()));
|
|
381
|
+
// Якщо календарь в режимі вибору місяця (startView/minView === 'month'),
|
|
382
|
+
// відображаємо весь місяць, наприклад: "01 - 31 Mar 2026"
|
|
383
|
+
if (
|
|
384
|
+
facet.options?.calendarOptions &&
|
|
385
|
+
facet.options.calendarOptions.startView === 'months' &&
|
|
386
|
+
facet.options.calendarOptions.minView === 'months'
|
|
387
|
+
) {
|
|
388
|
+
const startOfMonth = effectiveDate.startOf('month');
|
|
389
|
+
const endOfMonth = effectiveDate.endOf('month');
|
|
390
|
+
const startLabel = startOfMonth.toFormat('dd');
|
|
391
|
+
const endLabel = endOfMonth.toFormat('dd MMM yyyy');
|
|
392
|
+
value.label = `${startLabel} - ${endLabel}`;
|
|
393
|
+
} else {
|
|
394
|
+
// Стандартний сценарій: одиночна дата
|
|
395
|
+
value.label = effectiveDate.toFormat('dd MMM yyyy');
|
|
384
396
|
}
|
|
397
|
+
|
|
398
|
+
value.isDefault = facet.options.defaultValue ? value.value === facet.options.defaultValue.value : false;
|
|
385
399
|
} else if (facet.type === 'month') {
|
|
386
400
|
const date = DateTime.fromISO(value.value);
|
|
387
401
|
value.label = capitalizeFirstLetter((date.isValid ? date : DateTime.fromISO(facet.options.defaultValue.value)).toFormat('LLLL yyyy'));
|
|
@@ -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="M8.60039 5.00039C8.60039 4.66902 8.33176 4.40039 8.00039 4.40039C7.66902 4.40039 7.40039 4.66902 7.40039 5.00039V6.44556C7.35748 6.45011 7.31553 6.45512 7.27454 6.46063C6.79953 6.52449 6.3652 6.6657 6.01547 7.01544C5.66574 7.36517 5.52452 7.7995 5.46066 8.2745C5.40035 8.72311 5.40037 9.28719 5.40039 9.95917V9.9592L5.40039 10.0004V15.0004L5.40039 15.0415V15.0416C5.40037 15.7135 5.40035 16.2776 5.46066 16.7262C5.52452 17.2012 5.66574 17.6356 6.01547 17.9853C6.3652 18.335 6.79953 18.4762 7.27454 18.5401C7.72314 18.6004 8.28721 18.6004 8.95917 18.6004H8.95923L9.00039 18.6004H15.0004L15.0416 18.6004H15.0416C15.7136 18.6004 16.2776 18.6004 16.7263 18.5401C17.2013 18.4762 17.6356 18.335 17.9853 17.9853C18.335 17.6356 18.4763 17.2012 18.5401 16.7262C18.6004 16.2776 18.6004 15.7135 18.6004 15.0416V15.0415L18.6004 15.0004V10.0004L18.6004 9.9592V9.95917C18.6004 9.28719 18.6004 8.72311 18.5401 8.2745C18.4763 7.7995 18.335 7.36517 17.9853 7.01544C17.6356 6.6657 17.2013 6.52449 16.7263 6.46063C16.6853 6.45512 16.6433 6.45011 16.6004 6.44556L16.6004 5.00039C16.6004 4.66902 16.3318 4.40039 16.0004 4.40039C15.669 4.40039 15.4004 4.66902 15.4004 5.00039V6.40072C15.2845 6.40035 15.1649 6.40035 15.0417 6.40036H15.0416L15.0004 6.40036H9.00039L8.95923 6.40036H8.9591H8.95908H8.95907H8.95905C8.83586 6.40035 8.71629 6.40035 8.60039 6.40072L8.60039 5.00039ZM17.3987 9.40036C17.3952 8.99258 17.3843 8.68374 17.3508 8.4344C17.3049 8.09246 17.2264 7.95357 17.1368 7.86396C17.0472 7.77436 16.9083 7.6959 16.5664 7.64993C16.2072 7.60163 15.7245 7.60036 15.0004 7.60036H9.00039C8.27632 7.60036 7.79363 7.60163 7.43443 7.64993C7.0925 7.6959 6.95361 7.77436 6.864 7.86396C6.77439 7.95357 6.69593 8.09246 6.64996 8.4344C6.61644 8.68374 6.60557 8.99258 6.60206 9.40036L17.3987 9.40036ZM6.60039 10.6004L17.4004 10.6004V15.0004C17.4004 15.7244 17.3991 16.2071 17.3508 16.5663C17.3049 16.9083 17.2264 17.0471 17.1368 17.1368C17.0472 17.2264 16.9083 17.3048 16.5664 17.3508C16.2072 17.3991 15.7245 17.4004 15.0004 17.4004H9.00039C8.27632 17.4004 7.79363 17.3991 7.43443 17.3508C7.0925 17.3048 6.95361 17.2264 6.864 17.1368C6.77439 17.0471 6.69593 16.9083 6.64996 16.5663C6.60167 16.2071 6.60039 15.7244 6.60039 15.0004V10.6004ZM7.90039 12.5004C7.90039 12.169 8.16902 11.9004 8.50039 11.9004L13.5004 11.9004C13.8318 11.9004 14.1004 12.169 14.1004 12.5004C14.1004 12.8318 13.8318 13.1004 13.5004 13.1004H8.50039C8.16902 13.1004 7.90039 12.8318 7.90039 12.5004ZM8.50039 15.6004H11.5004C11.8318 15.6004 12.1004 15.3318 12.1004 15.0004C12.1004 14.669 11.8318 14.4004 11.5004 14.4004H8.50039C8.16902 14.4004 7.90039 14.669 7.90039 15.0004C7.90039 15.3318 8.16902 15.6004 8.50039 15.6004Z" fill="currentColor"/>
|
|
3
|
+
</svg>
|
|
4
|
+
</template>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
<template><svg width="
|
|
2
|
-
<path d="
|
|
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"/>
|
|
3
4
|
</svg>
|
|
4
5
|
</template>
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
<template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 18L10 18C8.11438 18 7.17157 18 6.58579 17.4142C6 16.8284 6 15.8856 6 14L6 10C6 8.11438 6 7.17157 6.58579 6.58579C7.17157 6 8.11438 6 10 6L14 6C15.8856 6 16.8284 6 17.4142 6.58579C18 7.17157 18 8.11438 18 10L18 14C18 15.8856 18 16.8284 17.4142 17.4142C16.8284 18 15.8856 18 14 18Z" stroke="currentColor" stroke-width="1.2"/>
|
|
3
|
+
<path d="M10 6V18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M14 6V18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
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="M14 18L10 18C8.11438 18 7.17157 18 6.58579 17.4142C6 16.8284 6 15.8856 6 14L6 10C6 8.11438 6 7.17157 6.58579 6.58579C7.17157 6 8.11438 6 10 6L14 6C15.8856 6 16.8284 6 17.4142 6.58579C18 7.17157 18 8.11438 18 10L18 14C18 15.8856 18 16.8284 17.4142 17.4142C16.8284 18 15.8856 18 14 18Z" stroke="currentColor" stroke-width="1.2"/>
|
|
3
|
+
<path d="M13 15L8.5 15" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M12 9H8.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M15 12H8.5" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
</svg>
|
|
7
|
+
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
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="M12 4.
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 4.40002C13.9882 4.40002 15.6 6.0118 15.6 8.00002V10.0491C16.033 10.1019 16.3329 10.2116 16.5607 10.4394C17 10.8787 17 11.5858 17 13V15C17 16.4142 17 17.1214 16.5607 17.5607C16.1213 18 15.4142 18 14 18H10C8.58579 18 7.87868 18 7.43934 17.5607C7 17.1214 7 16.4142 7 15V13C7 11.5858 7 10.8787 7.43934 10.4394C7.66715 10.2116 7.96695 10.1019 8.4 10.0491L8.4 8.00002C8.4 6.0118 10.0118 4.40002 12 4.40002ZM14.4 8.00002V10.0005C14.2733 10 14.1401 10 14 10H10C9.85987 10 9.72668 10 9.6 10.0005L9.6 8.00002C9.6 6.67454 10.6745 5.60002 12 5.60002C13.3255 5.60002 14.4 6.67454 14.4 8.00002ZM12.6 13C12.6 12.6687 12.3314 12.4 12 12.4C11.6686 12.4 11.4 12.6687 11.4 13V15C11.4 15.3314 11.6686 15.6 12 15.6C12.3314 15.6 12.6 15.3314 12.6 15V13Z" fill="currentColor"/>
|
|
3
3
|
</svg>
|
|
4
4
|
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<template><svg width="24" height="24" viewBox="
|
|
2
|
-
|
|
1
|
+
<template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M10.0003 15.8337C13.222 15.8337 15.8337 13.222 15.8337 10.0003C15.8337 6.77866 13.222 4.16699 10.0003 4.16699C6.77866 4.16699 4.16699 6.77866 4.16699 10.0003C4.16699 13.222 6.77866 15.8337 10.0003 15.8337ZM7.91697 10.0003C7.91697 8.84973 8.84971 7.91699 10.0003 7.91699C11.1509 7.91699 12.0836 8.84973 12.0836 10.0003C12.0836 11.1509 11.1509 12.0837 10.0003 12.0837C8.84971 12.0837 7.91697 11.1509 7.91697 10.0003ZM10.0003 6.25032C7.92924 6.25032 6.25031 7.92925 6.25031 10.0003C6.25031 12.0714 7.92924 13.7503 10.0003 13.7503C12.0714 13.7503 13.7503 12.0714 13.7503 10.0003C13.7503 7.92925 12.0714 6.25032 10.0003 6.25032Z" fill="currentColor"/>
|
|
3
3
|
</svg>
|
|
4
4
|
</template>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
<template><svg style="transform: rotate(-90deg);" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="currentColor" viewBox="-1 -1 19 19">
|
|
2
|
-
<path
|
|
2
|
+
<path d="M3.5 3.5c-.614-.884-.074-1.962.858-2.5L8 7.226 11.642 1c.932.538 1.472 1.616.858 2.5L8.81 8.61l1.556 2.661a2.5 2.5 0 1 1-.794.637L8 9.73l-1.572 2.177a2.5 2.5 0 1 1-.794-.637L7.19 8.61zm2.5 10a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0m7 0a1.5 1.5 0 1 0-3 0 1.5 1.5 0 0 0 3 0"/>
|
|
3
3
|
</svg>
|
|
4
4
|
</template>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M14 18L10 18C8.11438 18 7.17157 18 6.58579 17.4142C6 16.8284 6 15.8856 6 14L6 10C6 8.11438 6 7.17157 6.58579 6.58579C7.17157 6 8.11438 6 10 6L14 6C15.8856 6 16.8284 6 17.4142 6.58579C18 7.17157 18 8.11438 18 10L18 14C18 15.8856 18 16.8284 17.4142 17.4142C16.8284 18 15.8856 18 14 18Z" stroke="currentColor" stroke-width="1.2"/>
|
|
3
|
+
<path d="M6 14L18 14" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M6 10L18 10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M10 6L10 18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
6
|
+
<path d="M20.1384 16.7558C20.4109 16.2888 20.4109 15.7112 20.1384 15.2442L18.9718 13.2442C18.703 12.7834 18.2096 12.5 17.6761 12.5L15.3248 12.5C14.7913 12.5 14.298 12.7834 14.0292 13.2442L12.8625 15.2442C12.5901 15.7112 12.5901 16.2888 12.8625 16.7558L14.0292 18.7558C14.298 19.2166 14.7913 19.5 15.3248 19.5L17.6761 19.5C18.2096 19.5 18.703 19.2166 18.9718 18.7558L20.1384 16.7558Z" fill="currentColor" stroke="white"/>
|
|
7
|
+
<circle cx="16.5" cy="16" r="1" fill="white"/>
|
|
8
|
+
</svg>
|
|
9
|
+
</template>
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
<template><svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
|
|
2
|
+
<path d="M14 18L10 18C8.11438 18 7.17157 18 6.58579 17.4142C6 16.8284 6 15.8856 6 14L6 10C6 8.11438 6 7.17157 6.58579 6.58579C7.17157 6 8.11438 6 10 6L14 6C15.8856 6 16.8284 6 17.4142 6.58579C18 7.17157 18 8.11438 18 10L18 14C18 15.8856 18 16.8284 17.4142 17.4142C16.8284 18 15.8856 18 14 18Z" stroke="currentColor" stroke-width="1.2"/>
|
|
3
|
+
<path d="M6 14L18 14" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
4
|
+
<path d="M6 10L18 10" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
5
|
+
<path d="M10 6L10 18" stroke="currentColor" stroke-width="1.2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
6
|
</svg>
|
|
4
7
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
<template><svg width="
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
<template><svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="10.0003" cy="7.08333" r="2.08333" fill="currentColor"/>
|
|
3
|
+
<path d="M6.62838 15C5.80763 15 5.39726 15 5.1452 14.65C4.89314 14.3 5.00241 13.988 5.22095 13.364C5.25366 13.2706 5.2892 13.1781 5.32754 13.0866C5.5817 12.48 5.95423 11.9288 6.42386 11.4645C6.89348 11.0002 7.45101 10.6319 8.06461 10.3806C8.6782 10.1293 9.33585 10 10 10C10.6642 10 11.3218 10.1293 11.9354 10.3806C12.549 10.6319 13.1065 11.0002 13.5761 11.4645C14.0458 11.9288 14.4183 12.48 14.6725 13.0866C14.7108 13.1781 14.7463 13.2706 14.779 13.364C14.9976 13.988 15.1069 14.3 14.8548 14.65C14.6027 15 14.1924 15 13.3716 15L6.62838 15Z" fill="currentColor"/>
|
|
4
4
|
</svg>
|
|
5
5
|
</template>
|
|
@@ -17,9 +17,6 @@ async function bootstrap() {
|
|
|
17
17
|
});
|
|
18
18
|
}));
|
|
19
19
|
await Promise.all(fs.readdirSync(fromNewFolder).map((file) => {
|
|
20
|
-
if (file.includes('.DS_Store')) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
20
|
return new Promise((resolve) => {
|
|
24
21
|
fs.readFile(`${fromNewFolder}/${file}`, { encoding: 'utf-8' }, (err, data) => {
|
|
25
22
|
fs.writeFile(`${toFolder}/nomi-${file.replace('.svg', '.vue')}`, `<template>${data}</template>`, (err) => {
|