@dative-gpi/foundation-shared-components 0.0.109 → 0.0.110
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/components/FSSlideGroup.vue +6 -10
- package/components/fields/FSSearchField.vue +11 -4
- package/components/fields/FSTagField.vue +3 -1
- package/components/lists/FSDataTableUI.vue +4 -4
- package/models/tables.ts +2 -2
- package/package.json +4 -4
- package/styles/components/fs_data_table.scss +3 -3
- package/styles/globals/overrides.scss +1 -1
|
@@ -107,31 +107,27 @@ export default defineComponent({
|
|
|
107
107
|
|
|
108
108
|
const goToStart = () => {
|
|
109
109
|
if (slideGroupRef.value) {
|
|
110
|
-
(slideGroupRef.value as any).
|
|
110
|
+
(slideGroupRef.value as any).scrollTo("prev");
|
|
111
|
+
(slideGroupRef.value as any).scrollTo("prev");
|
|
111
112
|
}
|
|
112
113
|
};
|
|
113
114
|
|
|
114
115
|
const goToPrev = () => {
|
|
115
116
|
if (slideGroupRef.value) {
|
|
116
|
-
(slideGroupRef.value as any).
|
|
117
|
+
(slideGroupRef.value as any).scrollTo("prev");
|
|
117
118
|
}
|
|
118
119
|
};
|
|
119
120
|
|
|
120
121
|
const goToEnd = () => {
|
|
121
122
|
if (slideGroupRef.value) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
const arrowsOffset = props.dash ? 104 : 64;
|
|
125
|
-
(slideGroupRef.value as any).scrollOffset = (contentSize - containerSize + arrowsOffset);
|
|
123
|
+
(slideGroupRef.value as any).scrollTo("next");
|
|
124
|
+
(slideGroupRef.value as any).scrollTo("next");
|
|
126
125
|
}
|
|
127
126
|
};
|
|
128
127
|
|
|
129
128
|
const goToNext = () => {
|
|
130
129
|
if (slideGroupRef.value) {
|
|
131
|
-
|
|
132
|
-
const containerSize = (slideGroupRef.value as any).$el.clientWidth;
|
|
133
|
-
const arrowsOffset = props.dash ? 104 : 64;
|
|
134
|
-
(slideGroupRef.value as any).scrollOffset = Math.min(contentSize - containerSize + arrowsOffset, (slideGroupRef.value as any).scrollOffset + props.speed);
|
|
130
|
+
(slideGroupRef.value as any).scrollTo("next");
|
|
135
131
|
}
|
|
136
132
|
};
|
|
137
133
|
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:required="$props.required"
|
|
8
8
|
:editable="$props.editable"
|
|
9
9
|
:placeholder="placeholder"
|
|
10
|
-
@keydown.enter="
|
|
10
|
+
@keydown.enter="onSearch"
|
|
11
11
|
v-model="innerValue"
|
|
12
12
|
v-bind="$attrs"
|
|
13
13
|
>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:icon="$props.prependInnerIcon"
|
|
24
24
|
:editable="$props.editable"
|
|
25
25
|
:color="ColorEnum.Dark"
|
|
26
|
-
@click="
|
|
26
|
+
@click="onSearch"
|
|
27
27
|
/>
|
|
28
28
|
</slot>
|
|
29
29
|
</template>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
:variant="$props.buttonVariant"
|
|
42
42
|
:color="$props.buttonColor"
|
|
43
43
|
:editable="$props.editable"
|
|
44
|
-
@click="
|
|
44
|
+
@click="onSearch"
|
|
45
45
|
/>
|
|
46
46
|
</slot>
|
|
47
47
|
</template>
|
|
@@ -163,6 +163,12 @@ export default defineComponent({
|
|
|
163
163
|
return props.buttonLabel ?? $tr('ui.button.search', 'Search');
|
|
164
164
|
});
|
|
165
165
|
|
|
166
|
+
const onSearch = (event: Event) => {
|
|
167
|
+
event.stopImmediatePropagation();
|
|
168
|
+
event.preventDefault();
|
|
169
|
+
emit('update:modelValue', innerValue.value);
|
|
170
|
+
};
|
|
171
|
+
|
|
166
172
|
watch(innerValue, () => {
|
|
167
173
|
if (["instant"].includes(props.variant)) {
|
|
168
174
|
emit("update:modelValue", innerValue.value);
|
|
@@ -173,7 +179,8 @@ export default defineComponent({
|
|
|
173
179
|
placeholder,
|
|
174
180
|
buttonLabel,
|
|
175
181
|
innerValue,
|
|
176
|
-
ColorEnum
|
|
182
|
+
ColorEnum,
|
|
183
|
+
onSearch
|
|
177
184
|
};
|
|
178
185
|
}
|
|
179
186
|
});
|
|
@@ -141,7 +141,9 @@ export default defineComponent({
|
|
|
141
141
|
|
|
142
142
|
const messages = computed((): string[] => getMessages(props.modelValue, props.rules));
|
|
143
143
|
|
|
144
|
-
const onAdd = (): void => {
|
|
144
|
+
const onAdd = (event: Event): void => {
|
|
145
|
+
event.stopImmediatePropagation();
|
|
146
|
+
event.preventDefault();
|
|
145
147
|
if (!props.editable) {
|
|
146
148
|
return;
|
|
147
149
|
}
|
|
@@ -373,7 +373,7 @@
|
|
|
373
373
|
{{ $tr("ui.data-table.rows-per-page", "Rows per page") }}
|
|
374
374
|
</FSText>
|
|
375
375
|
<FSSelectField
|
|
376
|
-
class="fs-data-table-rows-per-page"
|
|
376
|
+
class="fs-data-table-rows-per-page fs-small-input"
|
|
377
377
|
:clearable="false"
|
|
378
378
|
:hideHeader="true"
|
|
379
379
|
:items="rowsPerPageOptions"
|
|
@@ -382,7 +382,7 @@
|
|
|
382
382
|
</FSRow>
|
|
383
383
|
<FSToggleSet
|
|
384
384
|
v-if="innerRowsPerPage !== -1"
|
|
385
|
-
class="fs-data-table-pagination"
|
|
385
|
+
class="fs-data-table-pagination fs-small-input"
|
|
386
386
|
variant="slide"
|
|
387
387
|
:dash="pageOptions.length > 8"
|
|
388
388
|
:values="pageOptions"
|
|
@@ -529,7 +529,7 @@
|
|
|
529
529
|
width="120px"
|
|
530
530
|
>
|
|
531
531
|
<FSSelectField
|
|
532
|
-
class="fs-data-table-rows-per-page"
|
|
532
|
+
class="fs-data-table-rows-per-page fs-small-input"
|
|
533
533
|
:clearable="false"
|
|
534
534
|
:hideHeader="true"
|
|
535
535
|
:items="rowsPerPageOptions"
|
|
@@ -539,7 +539,7 @@
|
|
|
539
539
|
</FSRow>
|
|
540
540
|
<FSToggleSet
|
|
541
541
|
v-if="innerRowsPerPage !== -1"
|
|
542
|
-
class="fs-data-table-pagination"
|
|
542
|
+
class="fs-data-table-pagination fs-small-input"
|
|
543
543
|
variant="slide"
|
|
544
544
|
:dash="pageOptions.length > 8"
|
|
545
545
|
:values="pageOptions"
|
package/models/tables.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.110",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@dative-gpi/foundation-shared-domain": "0.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "0.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "0.0.110",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "0.0.110",
|
|
15
15
|
"@fontsource/montserrat": "^5.0.16",
|
|
16
16
|
"@lexical/clipboard": "^0.12.5",
|
|
17
17
|
"@lexical/history": "^0.12.5",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"sass": "^1.69.5",
|
|
33
33
|
"sass-loader": "^13.3.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "8a2d3dd65f3e61ed359d517dc060537fb47b0123"
|
|
36
36
|
}
|
|
@@ -106,9 +106,9 @@
|
|
|
106
106
|
background-color: var(--fs-data-table-background-color);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
.fs-data-table-rows-per-page
|
|
110
|
-
min-width:
|
|
111
|
-
width:
|
|
109
|
+
.fs-data-table-rows-per-page {
|
|
110
|
+
min-width: 100px;
|
|
111
|
+
width: 100px;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
.fs-data-table-pagination {
|