@webitel/ui-sdk 26.8.111 → 26.8.112
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/{clients-CCAhrWQ1.js → clients-Be8f1qoM.js} +1044 -88
- package/dist/{components-Du718UrL.js → components-GY1xFZWr.js} +5 -5
- package/dist/{sortQueryAdapters-CyYXvnDN.js → sortQueryAdapters-Bb1yt_LD.js} +1 -1
- package/dist/ui-sdk.css +1 -1
- package/dist/ui-sdk.js +1 -1
- package/dist/ui-sdk.umd.cjs +832 -746
- package/dist/{wt-action-bar-ChLl_-jR.js → wt-action-bar-DJ_xvqhE.js} +1 -1
- package/dist/{wt-chat-emoji-B1THVkoV.js → wt-chat-emoji-E6MiDOCz.js} +1 -1
- package/dist/{wt-display-chip-items-DyGS9NUo.js → wt-display-chip-items-Dr6QjwFR.js} +1 -1
- package/dist/{wt-icon-action-g26vM7fD.js → wt-icon-action-BXg3jVf6.js} +1 -1
- package/dist/{wt-send-message-popup-hQXe6TDx.js → wt-send-message-popup-BL9aJz5t.js} +2 -2
- package/dist/{wt-table-D6pqHeiy.js → wt-table-RK0pOlzR.js} +2 -2
- package/dist/{wt-tree-table-BCyo4w2x.js → wt-tree-table-CCaiVeY_.js} +1 -1
- package/dist/{wt-type-extension-value-input-iYTsO1em.js → wt-type-extension-value-input-DaSIbXbu.js} +2 -2
- package/dist/{wt-vidstack-player-DEoNCYM4.js → wt-vidstack-player-u4R9q51f.js} +1 -1
- package/package.json +109 -28
- package/src/components/wt-icon-action/__tests__/WtIconAction.spec.js +1 -1
- package/src/components/wt-icon-action/wt-icon-action.vue +1 -1
- package/src/components/wt-table/wt-table.vue +1 -1
- package/src/locale/en/en.js +1 -1
- package/src/locale/es/es.js +1 -1
- package/src/locale/kz/kz.js +1 -1
- package/src/locale/pl/pl.js +1 -1
- package/src/locale/ro/ro.js +1 -1
- package/src/locale/ru/ru.js +1 -1
- package/src/locale/uk/uk.js +1 -1
- package/src/locale/uz/uz.js +1 -1
- package/src/locale/vi/vi.js +1 -1
- package/src/modules/QueryFilters/mixins/sortFilterMixin.js +1 -1
- package/src/modules/TableStoreModule/store/TableStoreModule.js +1 -1
- package/src/modules/TableStoreModule/store/__tests__/TableStoreModule.spec.js +1 -1
- package/src/scripts/__tests__/{sortQueryAdapters.spec.js → sortQueryAdapters.spec.ts} +6 -1
- package/src/scripts/sortQueryAdapters.ts +45 -0
- package/src/store/new/modules/tableStoreModule/__tests__/tableStoreModule.spec.js +1 -1
- package/src/store/new/modules/tableStoreModule/tableStoreModule.js +1 -1
- package/types/.tsbuildinfo +1 -1
- package/types/scripts/sortQueryAdapters.d.ts +9 -7
- package/src/scripts/sortQueryAdapters.js +0 -38
- package/types/scripts/__tests__/sortQueryAdapters.spec.d.ts +0 -1
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
export const SortSymbols: Readonly<{
|
|
2
|
-
ASC: "asc";
|
|
3
|
-
DESC: "desc";
|
|
4
|
-
NONE: null;
|
|
1
|
+
export declare const SortSymbols: Readonly<{
|
|
2
|
+
readonly ASC: "asc";
|
|
3
|
+
readonly DESC: "desc";
|
|
4
|
+
readonly NONE: null;
|
|
5
5
|
}>;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
6
|
+
export type SortOrder = (typeof SortSymbols)[keyof typeof SortSymbols];
|
|
7
|
+
export type SortQueryPrefix = '+' | '-' | '';
|
|
8
|
+
export declare const sortToQueryAdapter: (order?: SortOrder) => SortQueryPrefix;
|
|
9
|
+
export declare const queryToSortAdapter: (order?: string) => SortOrder;
|
|
10
|
+
export declare const getNextSortOrder: (sort?: SortOrder | boolean) => SortOrder;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
export const SortSymbols = Object.freeze({
|
|
2
|
-
ASC: 'asc',
|
|
3
|
-
DESC: 'desc',
|
|
4
|
-
NONE: null,
|
|
5
|
-
});
|
|
6
|
-
|
|
7
|
-
export const sortToQueryAdapter = (order) => {
|
|
8
|
-
switch (order) {
|
|
9
|
-
case SortSymbols.ASC:
|
|
10
|
-
return '+';
|
|
11
|
-
case SortSymbols.DESC:
|
|
12
|
-
return '-';
|
|
13
|
-
default:
|
|
14
|
-
return '';
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const queryToSortAdapter = (order) => {
|
|
19
|
-
switch (order) {
|
|
20
|
-
case '+':
|
|
21
|
-
return SortSymbols.ASC;
|
|
22
|
-
case '-':
|
|
23
|
-
return SortSymbols.DESC;
|
|
24
|
-
default:
|
|
25
|
-
return SortSymbols.NONE;
|
|
26
|
-
}
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
export const getNextSortOrder = (sort) => {
|
|
30
|
-
switch (sort) {
|
|
31
|
-
case SortSymbols.ASC:
|
|
32
|
-
return SortSymbols.DESC;
|
|
33
|
-
case SortSymbols.DESC:
|
|
34
|
-
return SortSymbols.NONE;
|
|
35
|
-
default:
|
|
36
|
-
return SortSymbols.ASC;
|
|
37
|
-
}
|
|
38
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|