@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,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./caseConverters-6cy_SaV5.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { o as n } from "./enums-BDtfwdQu.js";
|
|
4
|
-
import { t as r } from "./wt-icon-action-
|
|
4
|
+
import { t as r } from "./wt-icon-action-BXg3jVf6.js";
|
|
5
5
|
import { Fragment as i, computed as a, createElementBlock as o, createVNode as s, defineComponent as c, guardReactiveProps as l, mergeProps as u, normalizeProps as d, openBlock as f, renderList as p, renderSlot as m } from "vue";
|
|
6
6
|
//#region src/components/wt-action-bar/WtActionBarActionsOrder.ts
|
|
7
7
|
var h = [
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, i as t } from "./components-
|
|
1
|
+
import { C as e, i as t } from "./components-GY1xFZWr.js";
|
|
2
2
|
import { t as n } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
3
3
|
import { t as r } from "./utils-DaacyMAw.js";
|
|
4
4
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, openBlock as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { o as e } from "./enums-BDtfwdQu.js";
|
|
2
2
|
import { t } from "./vue-i18n-B88GcHzn.js";
|
|
3
|
-
import { t as n } from "./sortQueryAdapters-
|
|
3
|
+
import { t as n } from "./sortQueryAdapters-Bb1yt_LD.js";
|
|
4
4
|
import { computed as r, createBlock as i, openBlock as a, resolveComponent as o, resolveDirective as s, unref as c, withDirectives as l } from "vue";
|
|
5
5
|
//#region src/components/wt-icon-action/iconMappings.js
|
|
6
6
|
var u = Object.freeze({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as e } from "./components-
|
|
1
|
+
import { n as e } from "./components-GY1xFZWr.js";
|
|
2
2
|
import "./convertDuration-heRoQzks.js";
|
|
3
|
-
import { n as t, r as n } from "./clients-
|
|
3
|
+
import { n as t, r as n } from "./clients-Be8f1qoM.js";
|
|
4
4
|
import { t as r } from "./vue-i18n-B88GcHzn.js";
|
|
5
5
|
import { n as i } from "./useEventBus-B-ZeklLu.js";
|
|
6
6
|
import { createBlock as a, createTextVNode as o, createVNode as s, defineComponent as c, mergeProps as l, onMounted as u, openBlock as d, ref as f, resolveComponent as p, toDisplayString as m, unref as h, withCtx as g } from "vue";
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
|
2
2
|
import { c as t } from "./enums-BDtfwdQu.js";
|
|
3
3
|
import { t as n } from "./wt-badge-C8O4Oarp.js";
|
|
4
4
|
import { t as r } from "./vue-i18n-B88GcHzn.js";
|
|
5
|
-
import { n as i, t as a } from "./sortQueryAdapters-
|
|
5
|
+
import { n as i, t as a } from "./sortQueryAdapters-Bb1yt_LD.js";
|
|
6
6
|
import { t as o } from "./wt-icon-btn-C8xuTCJR.js";
|
|
7
7
|
import { t as s } from "./composables-Vg-QfE_2.js";
|
|
8
8
|
import { t as c } from "./wt-popover-DuZFw3bg.js";
|
|
@@ -433,6 +433,6 @@ var I = ["onPointerenter", "onPointerleave"], L = /*#__PURE__*/ e(/* @__PURE__ *
|
|
|
433
433
|
]))]);
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
}), [["__scopeId", "data-v-
|
|
436
|
+
}), [["__scopeId", "data-v-4f7c04e7"]]);
|
|
437
437
|
//#endregion
|
|
438
438
|
export { H as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-B3ysoDQm.js";
|
|
2
|
-
import { n as t } from "./sortQueryAdapters-
|
|
2
|
+
import { n as t } from "./sortQueryAdapters-Bb1yt_LD.js";
|
|
3
3
|
import { t as n } from "./wt-checkbox-BBdi-1oS.js";
|
|
4
4
|
import { t as r } from "./wt-icon-btn-C8xuTCJR.js";
|
|
5
5
|
import { t as i } from "./useWtTable-CUpN0LZ5.js";
|
package/dist/{wt-type-extension-value-input-iYTsO1em.js → wt-type-extension-value-input-DaSIbXbu.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as e, o as t, r as n, s as r } from "./components-
|
|
2
|
-
import { t as i } from "./clients-
|
|
1
|
+
import { a as e, o as t, r as n, s as r } from "./components-GY1xFZWr.js";
|
|
2
|
+
import { t as i } from "./clients-Be8f1qoM.js";
|
|
3
3
|
import { t as a } from "./enums-BDtfwdQu.js";
|
|
4
4
|
import { t as o } from "./vue-i18n-B88GcHzn.js";
|
|
5
5
|
import { computed as s, createBlock as c, createCommentVNode as l, createVNode as u, defineComponent as d, mergeModels as f, mergeProps as p, openBlock as m, renderSlot as h, resolveComponent as g, unref as _, useModel as v } from "vue";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webitel/ui-sdk",
|
|
3
|
-
"version": "26.8.
|
|
3
|
+
"version": "26.8.112",
|
|
4
4
|
"private": false,
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "npm run docs:dev",
|
|
@@ -209,11 +209,17 @@
|
|
|
209
209
|
"import": "./src/store/new/index.js"
|
|
210
210
|
},
|
|
211
211
|
"./store*": {
|
|
212
|
-
"types":
|
|
212
|
+
"types": [
|
|
213
|
+
"./types/store*.d.ts",
|
|
214
|
+
"./types/store*"
|
|
215
|
+
],
|
|
213
216
|
"import": "./src/store*"
|
|
214
217
|
},
|
|
215
218
|
"./src/store*": {
|
|
216
|
-
"types":
|
|
219
|
+
"types": [
|
|
220
|
+
"./types/store*.d.ts",
|
|
221
|
+
"./types/store*"
|
|
222
|
+
],
|
|
217
223
|
"import": "./src/store*"
|
|
218
224
|
},
|
|
219
225
|
"./enums": {
|
|
@@ -221,11 +227,17 @@
|
|
|
221
227
|
"import": "./src/enums/index.ts"
|
|
222
228
|
},
|
|
223
229
|
"./enums*": {
|
|
224
|
-
"types":
|
|
230
|
+
"types": [
|
|
231
|
+
"./types/enums*.d.ts",
|
|
232
|
+
"./types/enums*"
|
|
233
|
+
],
|
|
225
234
|
"import": "./src/enums*"
|
|
226
235
|
},
|
|
227
236
|
"./src/enums*": {
|
|
228
|
-
"types":
|
|
237
|
+
"types": [
|
|
238
|
+
"./types/enums*.d.ts",
|
|
239
|
+
"./types/enums*"
|
|
240
|
+
],
|
|
229
241
|
"import": "./src/enums*"
|
|
230
242
|
},
|
|
231
243
|
"./components": {
|
|
@@ -233,11 +245,17 @@
|
|
|
233
245
|
"import": "./src/components/index.js"
|
|
234
246
|
},
|
|
235
247
|
"./components*": {
|
|
236
|
-
"types":
|
|
248
|
+
"types": [
|
|
249
|
+
"./types/components*.d.ts",
|
|
250
|
+
"./types/components*"
|
|
251
|
+
],
|
|
237
252
|
"import": "./src/components*"
|
|
238
253
|
},
|
|
239
254
|
"./src/components*": {
|
|
240
|
-
"types":
|
|
255
|
+
"types": [
|
|
256
|
+
"./types/components*.d.ts",
|
|
257
|
+
"./types/components*"
|
|
258
|
+
],
|
|
241
259
|
"import": "./src/components*"
|
|
242
260
|
},
|
|
243
261
|
"./scripts": {
|
|
@@ -249,15 +267,24 @@
|
|
|
249
267
|
"import": "./src/scripts/file/index.ts"
|
|
250
268
|
},
|
|
251
269
|
"./scripts*": {
|
|
252
|
-
"types":
|
|
270
|
+
"types": [
|
|
271
|
+
"./types/scripts*.d.ts",
|
|
272
|
+
"./types/scripts*"
|
|
273
|
+
],
|
|
253
274
|
"import": "./src/scripts*"
|
|
254
275
|
},
|
|
255
276
|
"./src/scripts*": {
|
|
256
|
-
"types":
|
|
277
|
+
"types": [
|
|
278
|
+
"./types/scripts*.d.ts",
|
|
279
|
+
"./types/scripts*"
|
|
280
|
+
],
|
|
257
281
|
"import": "./src/scripts*"
|
|
258
282
|
},
|
|
259
283
|
"./utils*": {
|
|
260
|
-
"types":
|
|
284
|
+
"types": [
|
|
285
|
+
"./types/utils*.d.ts",
|
|
286
|
+
"./types/utils*"
|
|
287
|
+
],
|
|
261
288
|
"import": "./src/utils*"
|
|
262
289
|
},
|
|
263
290
|
"./utils": {
|
|
@@ -265,15 +292,24 @@
|
|
|
265
292
|
"import": "./src/utils/index.ts"
|
|
266
293
|
},
|
|
267
294
|
"./api*": {
|
|
268
|
-
"types":
|
|
295
|
+
"types": [
|
|
296
|
+
"./types/api*.d.ts",
|
|
297
|
+
"./types/api*"
|
|
298
|
+
],
|
|
269
299
|
"import": "./src/api*"
|
|
270
300
|
},
|
|
271
301
|
"./src/api*": {
|
|
272
|
-
"types":
|
|
302
|
+
"types": [
|
|
303
|
+
"./types/api*.d.ts",
|
|
304
|
+
"./types/api*"
|
|
305
|
+
],
|
|
273
306
|
"import": "./src/api*"
|
|
274
307
|
},
|
|
275
308
|
"./locale*": {
|
|
276
|
-
"types":
|
|
309
|
+
"types": [
|
|
310
|
+
"./types/locale*.d.ts",
|
|
311
|
+
"./types/locale*"
|
|
312
|
+
],
|
|
277
313
|
"import": "./src/locale*"
|
|
278
314
|
},
|
|
279
315
|
"./locale": {
|
|
@@ -281,7 +317,10 @@
|
|
|
281
317
|
"import": "./src/locale/index.ts"
|
|
282
318
|
},
|
|
283
319
|
"./src/locale*": {
|
|
284
|
-
"types":
|
|
320
|
+
"types": [
|
|
321
|
+
"./types/locale*.d.ts",
|
|
322
|
+
"./types/locale*"
|
|
323
|
+
],
|
|
285
324
|
"import": "./src/locale*"
|
|
286
325
|
},
|
|
287
326
|
"./composables": {
|
|
@@ -289,11 +328,17 @@
|
|
|
289
328
|
"import": "./src/composables/index.ts"
|
|
290
329
|
},
|
|
291
330
|
"./composables*": {
|
|
292
|
-
"types":
|
|
331
|
+
"types": [
|
|
332
|
+
"./types/composables*.d.ts",
|
|
333
|
+
"./types/composables*"
|
|
334
|
+
],
|
|
293
335
|
"import": "./src/composables*"
|
|
294
336
|
},
|
|
295
337
|
"./src/composables*": {
|
|
296
|
-
"types":
|
|
338
|
+
"types": [
|
|
339
|
+
"./types/composables*.d.ts",
|
|
340
|
+
"./types/composables*"
|
|
341
|
+
],
|
|
297
342
|
"import": "./src/composables*"
|
|
298
343
|
},
|
|
299
344
|
"./css*": {
|
|
@@ -303,19 +348,31 @@
|
|
|
303
348
|
"import": "./src/css*"
|
|
304
349
|
},
|
|
305
350
|
"./directives*": {
|
|
306
|
-
"types":
|
|
351
|
+
"types": [
|
|
352
|
+
"./types/directives*.d.ts",
|
|
353
|
+
"./types/directives*"
|
|
354
|
+
],
|
|
307
355
|
"import": "./src/directives*"
|
|
308
356
|
},
|
|
309
357
|
"./src/directives*": {
|
|
310
|
-
"types":
|
|
358
|
+
"types": [
|
|
359
|
+
"./types/directives*.d.ts",
|
|
360
|
+
"./types/directives*"
|
|
361
|
+
],
|
|
311
362
|
"import": "./src/directives*"
|
|
312
363
|
},
|
|
313
364
|
"./mixins*": {
|
|
314
|
-
"types":
|
|
365
|
+
"types": [
|
|
366
|
+
"./types/mixins*.d.ts",
|
|
367
|
+
"./types/mixins*"
|
|
368
|
+
],
|
|
315
369
|
"import": "./src/mixins*"
|
|
316
370
|
},
|
|
317
371
|
"./src/mixins*": {
|
|
318
|
-
"types":
|
|
372
|
+
"types": [
|
|
373
|
+
"./types/mixins*.d.ts",
|
|
374
|
+
"./types/mixins*"
|
|
375
|
+
],
|
|
319
376
|
"import": "./src/mixins*"
|
|
320
377
|
},
|
|
321
378
|
"./validations": {
|
|
@@ -323,19 +380,31 @@
|
|
|
323
380
|
"import": "./src/validations/index.ts"
|
|
324
381
|
},
|
|
325
382
|
"./validators*": {
|
|
326
|
-
"types":
|
|
383
|
+
"types": [
|
|
384
|
+
"./types/validations/vuelidate/validators*.d.ts",
|
|
385
|
+
"./types/validations/vuelidate/validators*"
|
|
386
|
+
],
|
|
327
387
|
"import": "./src/validations/vuelidate/validators*"
|
|
328
388
|
},
|
|
329
389
|
"./src/validators*": {
|
|
330
|
-
"types":
|
|
390
|
+
"types": [
|
|
391
|
+
"./types/validations/vuelidate/validators*.d.ts",
|
|
392
|
+
"./types/validations/vuelidate/validators*"
|
|
393
|
+
],
|
|
331
394
|
"import": "./src/validations/vuelidate/validators*"
|
|
332
395
|
},
|
|
333
396
|
"./modules*": {
|
|
334
|
-
"types":
|
|
397
|
+
"types": [
|
|
398
|
+
"./types/modules*.d.ts",
|
|
399
|
+
"./types/modules*"
|
|
400
|
+
],
|
|
335
401
|
"import": "./src/modules*"
|
|
336
402
|
},
|
|
337
403
|
"./src/modules*": {
|
|
338
|
-
"types":
|
|
404
|
+
"types": [
|
|
405
|
+
"./types/modules*.d.ts",
|
|
406
|
+
"./types/modules*"
|
|
407
|
+
],
|
|
339
408
|
"import": "./src/modules*"
|
|
340
409
|
},
|
|
341
410
|
"./modules/AgentStatusSelect": {
|
|
@@ -383,19 +452,31 @@
|
|
|
383
452
|
"import": "./src/modules/TableVariableColumnSelect/index.ts"
|
|
384
453
|
},
|
|
385
454
|
"./plugins*": {
|
|
386
|
-
"types":
|
|
455
|
+
"types": [
|
|
456
|
+
"./types/plugins*.d.ts",
|
|
457
|
+
"./types/plugins*"
|
|
458
|
+
],
|
|
387
459
|
"import": "./src/plugins*"
|
|
388
460
|
},
|
|
389
461
|
"./src/plugins*": {
|
|
390
|
-
"types":
|
|
462
|
+
"types": [
|
|
463
|
+
"./types/plugins*.d.ts",
|
|
464
|
+
"./types/plugins*"
|
|
465
|
+
],
|
|
391
466
|
"import": "./src/plugins*"
|
|
392
467
|
},
|
|
393
468
|
"./tests*": {
|
|
394
|
-
"types":
|
|
469
|
+
"types": [
|
|
470
|
+
"./types/tests*.d.ts",
|
|
471
|
+
"./types/tests*"
|
|
472
|
+
],
|
|
395
473
|
"import": "./src/tests*"
|
|
396
474
|
},
|
|
397
475
|
"./src/tests*": {
|
|
398
|
-
"types":
|
|
476
|
+
"types": [
|
|
477
|
+
"./types/tests*.d.ts",
|
|
478
|
+
"./types/tests*"
|
|
479
|
+
],
|
|
399
480
|
"import": "./src/tests*"
|
|
400
481
|
},
|
|
401
482
|
"./dist*": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { shallowMount } from '@vue/test-utils';
|
|
2
2
|
|
|
3
3
|
import { IconAction } from '../../../enums';
|
|
4
|
-
import { SortSymbols } from '../../../scripts/sortQueryAdapters
|
|
4
|
+
import { SortSymbols } from '../../../scripts/sortQueryAdapters';
|
|
5
5
|
import WtIconAction from '../wt-icon-action.vue';
|
|
6
6
|
|
|
7
7
|
describe('WtIconAction', () => {
|
|
@@ -14,7 +14,7 @@ import { computed } from 'vue';
|
|
|
14
14
|
import { useI18n } from 'vue-i18n';
|
|
15
15
|
|
|
16
16
|
import { IconAction } from '../../enums';
|
|
17
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
17
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
18
18
|
import { WtIconActionIconMappings } from './iconMappings.js';
|
|
19
19
|
|
|
20
20
|
const props = defineProps({
|
|
@@ -267,7 +267,7 @@ import {
|
|
|
267
267
|
useTemplateRef,
|
|
268
268
|
} from 'vue';
|
|
269
269
|
import { useI18n } from 'vue-i18n';
|
|
270
|
-
import { getNextSortOrder } from '../../scripts/sortQueryAdapters
|
|
270
|
+
import { getNextSortOrder } from '../../scripts/sortQueryAdapters';
|
|
271
271
|
import { useTableColumnDrag } from '../_internals/composables';
|
|
272
272
|
import WtTableColumnFilter from './_internals/wt-table-column-filter.vue';
|
|
273
273
|
import type { WtTableHeader, WtTableRow } from './types/WtTable';
|
package/src/locale/en/en.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
} from '../../enums';
|
|
23
23
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
24
24
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
25
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
25
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
26
26
|
import notTranslatable from './notTranslatable.en';
|
|
27
27
|
|
|
28
28
|
export default deepmerge(
|
package/src/locale/es/es.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
reusable: {
|
package/src/locale/kz/kz.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
package/src/locale/pl/pl.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
package/src/locale/ro/ro.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
package/src/locale/ru/ru.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
package/src/locale/uk/uk.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
package/src/locale/uz/uz.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
package/src/locale/vi/vi.js
CHANGED
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
} from '../../enums';
|
|
22
22
|
import { AccessMode } from '../../modules/ObjectPermissions/enums/AccessMode.enum';
|
|
23
23
|
import { snakeToCamel } from '../../scripts/caseConverters';
|
|
24
|
-
import { SortSymbols } from '../../scripts/sortQueryAdapters
|
|
24
|
+
import { SortSymbols } from '../../scripts/sortQueryAdapters';
|
|
25
25
|
|
|
26
26
|
export default {
|
|
27
27
|
// describes reusable buttons, actions, default titles, and other ui elements
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
queryToSortAdapter,
|
|
3
3
|
SortSymbols,
|
|
4
4
|
sortToQueryAdapter,
|
|
5
|
-
} from '../../../scripts/sortQueryAdapters
|
|
5
|
+
} from '../../../scripts/sortQueryAdapters';
|
|
6
6
|
import baseFilterMixin from './baseFilterMixin/baseFilterMixin.js';
|
|
7
7
|
|
|
8
8
|
const getNextSortOrder = (sort) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
queryToSortAdapter,
|
|
3
3
|
sortToQueryAdapter,
|
|
4
|
-
} from '../../../scripts/sortQueryAdapters
|
|
4
|
+
} from '../../../scripts/sortQueryAdapters';
|
|
5
5
|
import BaseStoreModule from '../../../store/BaseStoreModules/BaseStoreModule.js';
|
|
6
6
|
import FilterEvent from '../../Filters/enums/FilterEvent.enum.js';
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createRouter, createWebHistory } from 'vue-router';
|
|
2
2
|
import { createStore } from 'vuex';
|
|
3
3
|
|
|
4
|
-
import { SortSymbols } from '../../../../scripts/sortQueryAdapters
|
|
4
|
+
import { SortSymbols } from '../../../../scripts/sortQueryAdapters';
|
|
5
5
|
import FilterEvent from '../../../Filters/enums/FilterEvent.enum.js';
|
|
6
6
|
import FiltersStoreModule from '../../../Filters/store/FiltersStoreModule.js';
|
|
7
7
|
import TableStoreModule from '../TableStoreModule.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as sortQueryAdapters from '../sortQueryAdapters
|
|
1
|
+
import * as sortQueryAdapters from '../sortQueryAdapters';
|
|
2
2
|
|
|
3
3
|
test('sortToQueryAdapter', () => {
|
|
4
4
|
expect(sortQueryAdapters.sortToQueryAdapter('asc')).toBe('+');
|
|
@@ -10,3 +10,8 @@ test('queryToSortAdapter', () => {
|
|
|
10
10
|
expect(sortQueryAdapters.queryToSortAdapter('-')).toBe('desc');
|
|
11
11
|
expect(sortQueryAdapters.queryToSortAdapter('')).toBe(null);
|
|
12
12
|
});
|
|
13
|
+
test('getNextSortOrder', () => {
|
|
14
|
+
expect(sortQueryAdapters.getNextSortOrder('asc')).toBe('desc');
|
|
15
|
+
expect(sortQueryAdapters.getNextSortOrder('desc')).toBe(null);
|
|
16
|
+
expect(sortQueryAdapters.getNextSortOrder(null)).toBe('asc');
|
|
17
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export const SortSymbols = Object.freeze({
|
|
2
|
+
ASC: 'asc',
|
|
3
|
+
DESC: 'desc',
|
|
4
|
+
NONE: null,
|
|
5
|
+
} as const);
|
|
6
|
+
|
|
7
|
+
export type SortOrder = (typeof SortSymbols)[keyof typeof SortSymbols];
|
|
8
|
+
|
|
9
|
+
// query-string prefix the API sorts by: `+field` ascending, `-field` descending
|
|
10
|
+
export type SortQueryPrefix = '+' | '-' | '';
|
|
11
|
+
|
|
12
|
+
export const sortToQueryAdapter = (order?: SortOrder): SortQueryPrefix => {
|
|
13
|
+
switch (order) {
|
|
14
|
+
case SortSymbols.ASC:
|
|
15
|
+
return '+';
|
|
16
|
+
case SortSymbols.DESC:
|
|
17
|
+
return '-';
|
|
18
|
+
default:
|
|
19
|
+
return '';
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export const queryToSortAdapter = (order?: string): SortOrder => {
|
|
24
|
+
switch (order) {
|
|
25
|
+
case '+':
|
|
26
|
+
return SortSymbols.ASC;
|
|
27
|
+
case '-':
|
|
28
|
+
return SortSymbols.DESC;
|
|
29
|
+
default:
|
|
30
|
+
return SortSymbols.NONE;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// cycles a column through asc -> desc -> none -> asc; a boolean `sort` is the
|
|
35
|
+
// back-compat "sortable, not sorted yet" header flag and starts at asc
|
|
36
|
+
export const getNextSortOrder = (sort?: SortOrder | boolean): SortOrder => {
|
|
37
|
+
switch (sort) {
|
|
38
|
+
case SortSymbols.ASC:
|
|
39
|
+
return SortSymbols.DESC;
|
|
40
|
+
case SortSymbols.DESC:
|
|
41
|
+
return SortSymbols.NONE;
|
|
42
|
+
default:
|
|
43
|
+
return SortSymbols.ASC;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
@@ -3,7 +3,7 @@ import { createStore } from 'vuex';
|
|
|
3
3
|
|
|
4
4
|
import FilterEvent from '../../../../../modules/Filters/enums/FilterEvent.enum.js';
|
|
5
5
|
import FiltersStoreModule from '../../../../../modules/Filters/store/FiltersStoreModule.js';
|
|
6
|
-
import { SortSymbols } from '../../../../../scripts/sortQueryAdapters
|
|
6
|
+
import { SortSymbols } from '../../../../../scripts/sortQueryAdapters';
|
|
7
7
|
import { createTableStoreModule } from '../../../helpers/createTableStoreModule.js';
|
|
8
8
|
|
|
9
9
|
describe('TableStoreModule', () => {
|
|
@@ -2,7 +2,7 @@ import FilterEvent from '../../../../modules/Filters/enums/FilterEvent.enum.js';
|
|
|
2
2
|
import {
|
|
3
3
|
queryToSortAdapter,
|
|
4
4
|
sortToQueryAdapter,
|
|
5
|
-
} from '../../../../scripts/sortQueryAdapters
|
|
5
|
+
} from '../../../../scripts/sortQueryAdapters';
|
|
6
6
|
|
|
7
7
|
const state = () => ({
|
|
8
8
|
headers: [],
|