@webitel/ui-datalist 1.1.7 → 1.1.8
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
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-datalist",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Toolkit for building data lists in webitel ui system",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"make-all": "npm version patch --git-tag-version false && ( npm run lint:fix || true) && (npm run build:types || true) && npm run utils:publish",
|
|
@@ -130,7 +130,12 @@ export const tableHeadersStoreBody = ({
|
|
|
130
130
|
]);
|
|
131
131
|
};
|
|
132
132
|
|
|
133
|
-
const updateSort = (
|
|
133
|
+
const updateSort = (
|
|
134
|
+
column,
|
|
135
|
+
options: {
|
|
136
|
+
order?: SortSymbols;
|
|
137
|
+
} = {},
|
|
138
|
+
) => {
|
|
134
139
|
const getNextSortOrder = (sort) => {
|
|
135
140
|
switch (sort) {
|
|
136
141
|
case SortSymbols.NONE:
|
|
@@ -162,7 +167,10 @@ export const tableHeadersStoreBody = ({
|
|
|
162
167
|
});
|
|
163
168
|
};
|
|
164
169
|
|
|
165
|
-
const order =
|
|
170
|
+
const order =
|
|
171
|
+
options.order !== undefined
|
|
172
|
+
? options.order
|
|
173
|
+
: getNextSortOrder(column.sort);
|
|
166
174
|
|
|
167
175
|
headers.value = changeHeadersSort({
|
|
168
176
|
headers: headers.value,
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EnginePresetQuery } from 'webitel-sdk';
|
|
1
2
|
export declare const filterPresetsStoreBody: (namespace?: string) => {
|
|
2
3
|
presetId: import("vue").Ref<any, any>;
|
|
3
4
|
setupPresetPersistence: () => Promise<void>;
|
|
@@ -97,7 +98,9 @@ export declare const filterPresetsStoreBody: (namespace?: string) => {
|
|
|
97
98
|
updateSearchMode: (newSearch: string) => void;
|
|
98
99
|
updatePage: (newPage: number) => void;
|
|
99
100
|
updateSize: (newSize: number) => void;
|
|
100
|
-
updateSort: (column: any
|
|
101
|
+
updateSort: (column: any, options?: {
|
|
102
|
+
order?: EnginePresetQuery;
|
|
103
|
+
}) => void;
|
|
101
104
|
columnResize: ({ columnName, columnWidth }: {
|
|
102
105
|
columnName: any;
|
|
103
106
|
columnWidth: any;
|
|
@@ -208,7 +211,9 @@ export declare const createFilterPresetsStore: (namespace: string) => () => {
|
|
|
208
211
|
updateSearchMode: (newSearch: string) => void;
|
|
209
212
|
updatePage: (newPage: number) => void;
|
|
210
213
|
updateSize: (newSize: number) => void;
|
|
211
|
-
updateSort: (column: any
|
|
214
|
+
updateSort: (column: any, options?: {
|
|
215
|
+
order?: EnginePresetQuery;
|
|
216
|
+
}) => void;
|
|
212
217
|
columnResize: ({ columnName, columnWidth }: {
|
|
213
218
|
columnName: any;
|
|
214
219
|
columnWidth: any;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { WtTableHeader } from '@webitel/ui-sdk/components/wt-table/types/WtTable';
|
|
2
|
+
import { SortSymbols } from '@webitel/ui-sdk/scripts/sortQueryAdapters';
|
|
2
3
|
import { useTableStoreConfig } from '../types/tableStore.types';
|
|
3
4
|
interface TableHeadersStoreBodyParams {
|
|
4
5
|
rawHeaders: WtTableHeader[];
|
|
@@ -12,7 +13,9 @@ export declare const tableHeadersStoreBody: ({ rawHeaders, id, }: TableHeadersSt
|
|
|
12
13
|
columnWidths: import("vue").ComputedRef<any>;
|
|
13
14
|
isReorderingColumn: import("vue").Ref<boolean, boolean>;
|
|
14
15
|
updateShownHeaders: (value: any) => void;
|
|
15
|
-
updateSort: (column: any
|
|
16
|
+
updateSort: (column: any, options?: {
|
|
17
|
+
order?: SortSymbols;
|
|
18
|
+
}) => void;
|
|
16
19
|
columnResize: ({ columnName, columnWidth }: {
|
|
17
20
|
columnName: any;
|
|
18
21
|
columnWidth: any;
|
|
@@ -31,7 +34,9 @@ export declare const createTableHeadersStore: <Entity>(namespace: string, config
|
|
|
31
34
|
columnWidths: import("vue").ComputedRef<any>;
|
|
32
35
|
isReorderingColumn: import("vue").Ref<boolean, boolean>;
|
|
33
36
|
updateShownHeaders: (value: any) => void;
|
|
34
|
-
updateSort: (column: any
|
|
37
|
+
updateSort: (column: any, options?: {
|
|
38
|
+
order?: SortSymbols;
|
|
39
|
+
}) => void;
|
|
35
40
|
columnResize: ({ columnName, columnWidth }: {
|
|
36
41
|
columnName: any;
|
|
37
42
|
columnWidth: any;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import deepEqual from 'deep-equal';
|
|
1
2
|
import { type Ref } from 'vue';
|
|
2
3
|
import { PatchItemPropertyParams, useTableStoreConfig } from '../types/tableStore.types';
|
|
3
4
|
export declare const tableStoreBody: <Entity extends {
|
|
@@ -99,7 +100,9 @@ export declare const tableStoreBody: <Entity extends {
|
|
|
99
100
|
updateSearchMode: (newSearch: string) => void;
|
|
100
101
|
updatePage: (newPage: number) => void;
|
|
101
102
|
updateSize: (newSize: number) => void;
|
|
102
|
-
updateSort: (column: any
|
|
103
|
+
updateSort: (column: any, options?: {
|
|
104
|
+
order?: deepEqual;
|
|
105
|
+
}) => void;
|
|
103
106
|
columnResize: ({ columnName, columnWidth }: {
|
|
104
107
|
columnName: any;
|
|
105
108
|
columnWidth: any;
|
|
@@ -210,7 +213,9 @@ export declare const createTableStore: <Entity extends {
|
|
|
210
213
|
updateSearchMode: (newSearch: string) => void;
|
|
211
214
|
updatePage: (newPage: number) => void;
|
|
212
215
|
updateSize: (newSize: number) => void;
|
|
213
|
-
updateSort: (column: any
|
|
216
|
+
updateSort: (column: any, options?: {
|
|
217
|
+
order?: deepEqual;
|
|
218
|
+
}) => void;
|
|
214
219
|
columnResize: ({ columnName, columnWidth }: {
|
|
215
220
|
columnName: any;
|
|
216
221
|
columnWidth: any;
|