@webitel/ui-datalist 1.0.1 → 1.0.2
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 +1 -1
- package/src/filter-presets/api/PresetQuery.api.ts +7 -8
- package/src/filter-presets/components/_shared/input-fields/preset-description-field.vue +1 -2
- package/src/filter-presets/components/_shared/input-fields/preset-name-field.vue +1 -2
- package/src/filter-presets/components/_shared/preset-filters-preview.vue +1 -1
- package/src/filter-presets/components/apply-preset/apply-preset-action.vue +9 -9
- package/src/filter-presets/components/apply-preset/preset-preview.vue +6 -6
- package/src/filter-presets/components/save-preset/overwrite-preset-popup.vue +1 -1
- package/src/filter-presets/components/save-preset/save-preset-action.vue +2 -2
- package/src/filter-presets/components/save-preset/save-preset-popup.vue +1 -1
- package/src/filters/classes/FiltersManager.ts +2 -1
- package/src/filters/components/config/dynamic-filter-config-form-label.vue +1 -2
- package/src/filters/components/config/dynamic-filter-config-form.vue +1 -2
- package/src/filters/components/config/dynamic-filter-config-view.vue +1 -1
- package/src/filters/components/dynamic-filter-add-action.vue +1 -1
- package/src/filters/components/dynamic-filter-panel-wrapper.vue +1 -1
- package/src/filters/components/dynamic-filter-search.vue +1 -2
- package/src/filters/components/filter-options/_shared/has-options/has-option-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/agent/agent-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/agent/config.js +1 -1
- package/src/filters/components/filter-options/amd-result/amd-result-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/assignee/assignee-filter-value-field.vue +1 -2
- package/src/filters/components/filter-options/assignee/config.js +1 -1
- package/src/filters/components/filter-options/author/author-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/author/config.js +1 -1
- package/src/filters/components/filter-options/cause/cause-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/close-reason-groups-case/close-reason-groups-case-filter-value-field.vue +2 -2
- package/src/filters/components/filter-options/close-reason-groups-case/config.js +2 -2
- package/src/filters/components/filter-options/contact/config.js +1 -1
- package/src/filters/components/filter-options/contact/contact-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/contact-group/config.js +1 -1
- package/src/filters/components/filter-options/contact-group/contact-group-filter-value-field.vue +2 -2
- package/src/filters/components/filter-options/direction/direction-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/direction/direction-filter-value-preview.vue +1 -1
- package/src/filters/components/filter-options/gateway/config.js +1 -1
- package/src/filters/components/filter-options/gateway/gateway-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/grantee/config.js +1 -1
- package/src/filters/components/filter-options/grantee/grantee-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/impacted/config.js +1 -1
- package/src/filters/components/filter-options/impacted/impacted-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/priority-case/config.js +1 -1
- package/src/filters/components/filter-options/priority-case/priority-case-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/queue/config.js +1 -1
- package/src/filters/components/filter-options/queue/queue-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/rated-by/config.js +1 -1
- package/src/filters/components/filter-options/rated-by/rated-by-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/rating/rating-from-to-filter-value-field.vue +1 -2
- package/src/filters/components/filter-options/reporter/config.js +1 -1
- package/src/filters/components/filter-options/reporter/reporter-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/score/score-from-to-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/service-case/config.js +2 -2
- package/src/filters/components/filter-options/service-case/service-case-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/sla/config.js +1 -1
- package/src/filters/components/filter-options/sla/sla-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/sla-condition/config.js +2 -2
- package/src/filters/components/filter-options/sla-condition/sla-condition-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/source-case/config.js +1 -1
- package/src/filters/components/filter-options/source-case/source-case-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/status-case/config.js +2 -2
- package/src/filters/components/filter-options/status-case/status-case-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/tag/tag-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/team/config.js +1 -1
- package/src/filters/components/filter-options/team/team-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/user/config.js +1 -1
- package/src/filters/components/filter-options/user/user-filter-value-field.vue +1 -1
- package/src/filters/components/filter-options/variable/variable-filter-value-field.vue +1 -2
- package/src/filters/components/preview/dynamic-filter-preview.vue +4 -4
- package/src/filters/components/table-filters-panel.vue +10 -14
- package/src/headers/createTableHeadersStore.ts +3 -3
- package/src/types/tableStore.types.ts +1 -1
package/package.json
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
EngineCreatePresetQueryRequest,
|
|
3
|
-
EnginePresetQuery,
|
|
4
|
-
PresetQueryServiceApiFactory,
|
|
5
|
-
} from 'webitel-sdk';
|
|
6
|
-
|
|
7
1
|
import {
|
|
8
2
|
getDefaultGetListResponse,
|
|
9
3
|
getDefaultGetParams,
|
|
10
4
|
getDefaultInstance,
|
|
11
5
|
getDefaultOpenAPIConfig,
|
|
12
|
-
} from '
|
|
6
|
+
} from '@webitel/ui-sdk/src/api/defaults/index';
|
|
13
7
|
import applyTransform, {
|
|
14
8
|
camelToSnake,
|
|
15
9
|
merge,
|
|
@@ -17,7 +11,12 @@ import applyTransform, {
|
|
|
17
11
|
skipIf,
|
|
18
12
|
snakeToCamel,
|
|
19
13
|
starToSearch,
|
|
20
|
-
} from '
|
|
14
|
+
} from '@webitel/ui-sdk/src/api/transformers/index';
|
|
15
|
+
import {
|
|
16
|
+
EngineCreatePresetQueryRequest,
|
|
17
|
+
EnginePresetQuery,
|
|
18
|
+
PresetQueryServiceApiFactory,
|
|
19
|
+
} from 'webitel-sdk';
|
|
21
20
|
|
|
22
21
|
const instance = getDefaultInstance();
|
|
23
22
|
const configuration = getDefaultOpenAPIConfig();
|
|
@@ -17,10 +17,9 @@
|
|
|
17
17
|
</template>
|
|
18
18
|
|
|
19
19
|
<script setup lang="ts">
|
|
20
|
+
import { WtLabel, WtTextarea } from '@webitel/ui-sdk/src/components/index';
|
|
20
21
|
import { useI18n } from 'vue-i18n';
|
|
21
22
|
|
|
22
|
-
import { WtLabel,WtTextarea } from '../../../../../../../components/index';
|
|
23
|
-
|
|
24
23
|
const model = defineModel<string>();
|
|
25
24
|
|
|
26
25
|
const props = defineProps<{
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
|
|
10
10
|
<script setup lang="ts">
|
|
11
11
|
import { Validation } from '@vuelidate/core';
|
|
12
|
+
import { WtInput } from '@webitel/ui-sdk/src/components/index';
|
|
12
13
|
import { useI18n } from 'vue-i18n';
|
|
13
14
|
|
|
14
|
-
import { WtInput } from '../../../../../../../components/index';
|
|
15
|
-
|
|
16
15
|
type ModelValue = string;
|
|
17
16
|
|
|
18
17
|
const model = defineModel<ModelValue>();
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
</template>
|
|
26
26
|
|
|
27
27
|
<script setup lang="ts">
|
|
28
|
+
import { WtLabel } from '@webitel/ui-sdk/src/components/index';
|
|
28
29
|
import { useI18n } from 'vue-i18n';
|
|
29
30
|
|
|
30
|
-
import { WtLabel } from '../../../../../../components/index';
|
|
31
31
|
import type { IFilter } from '../../../filters';
|
|
32
32
|
import DynamicFilterPanelWrapper from '../../../filters/components/dynamic-filter-panel-wrapper.vue';
|
|
33
33
|
import { FilterOptionToPreviewComponentMap } from '../../../filters/components/filter-options';
|
|
@@ -68,20 +68,20 @@
|
|
|
68
68
|
</template>
|
|
69
69
|
|
|
70
70
|
<script lang="ts" setup>
|
|
71
|
-
import { type StoreDefinition, storeToRefs } from 'pinia';
|
|
72
|
-
import { computed, inject, onUnmounted,ref, watch } from 'vue';
|
|
73
|
-
import { useI18n } from 'vue-i18n';
|
|
74
|
-
import { EnginePresetQuery } from 'webitel-sdk';
|
|
75
|
-
|
|
76
71
|
import {
|
|
77
72
|
WtButton,
|
|
78
73
|
WtEmpty,
|
|
79
74
|
WtIconAction,
|
|
80
75
|
WtPopup,
|
|
81
76
|
WtSearchBar,
|
|
82
|
-
} from '
|
|
83
|
-
import { IconAction } from '
|
|
84
|
-
import { useTableEmpty } from '
|
|
77
|
+
} from '@webitel/ui-sdk/src/components/index';
|
|
78
|
+
import { IconAction } from '@webitel/ui-sdk/src/enums';
|
|
79
|
+
import { useTableEmpty } from '@webitel/ui-sdk/src/TableComponentModule/composables/useTableEmpty';
|
|
80
|
+
import { type StoreDefinition, storeToRefs } from 'pinia';
|
|
81
|
+
import { computed, inject, ref, watch } from 'vue';
|
|
82
|
+
import { useI18n } from 'vue-i18n';
|
|
83
|
+
import { EnginePresetQuery } from 'webitel-sdk';
|
|
84
|
+
|
|
85
85
|
import PresetQueryAPI from '../../api/PresetQuery.api.ts';
|
|
86
86
|
import PresetPreview from './preset-preview.vue';
|
|
87
87
|
|
|
@@ -104,7 +104,7 @@ const { t } = useI18n();
|
|
|
104
104
|
const showPresetsList = ref(false);
|
|
105
105
|
|
|
106
106
|
const presetsStore = props.usePresetsStore();
|
|
107
|
-
const { dataList, error, isLoading, filtersManager
|
|
107
|
+
const { dataList, error, isLoading, filtersManager } =
|
|
108
108
|
storeToRefs(presetsStore);
|
|
109
109
|
|
|
110
110
|
const { loadDataList, initialize, updateSize, deleteEls } = presetsStore;
|
|
@@ -76,16 +76,16 @@
|
|
|
76
76
|
<script lang="ts" setup>
|
|
77
77
|
import { useVuelidate } from '@vuelidate/core';
|
|
78
78
|
import { required } from '@vuelidate/validators';
|
|
79
|
-
import { AxiosError } from 'axios';
|
|
80
|
-
import { computed, ref } from 'vue';
|
|
81
|
-
import { EnginePresetQuery } from 'webitel-sdk';
|
|
82
|
-
|
|
83
79
|
import {
|
|
84
80
|
WtExpansionPanel,
|
|
85
81
|
WtIconAction,
|
|
86
82
|
WtRadio,
|
|
87
|
-
} from '
|
|
88
|
-
import { createFiltersManager } from '
|
|
83
|
+
} from '@webitel/ui-sdk/src/components/index';
|
|
84
|
+
import { createFiltersManager } from '@webitel/ui-sdk/src/filters/index';
|
|
85
|
+
import { AxiosError } from 'axios';
|
|
86
|
+
import { computed, ref } from 'vue';
|
|
87
|
+
import { EnginePresetQuery } from 'webitel-sdk';
|
|
88
|
+
|
|
89
89
|
import PresetDescriptionField from '../_shared/input-fields/preset-description-field.vue';
|
|
90
90
|
import PresetNameField from '../_shared/input-fields/preset-name-field.vue';
|
|
91
91
|
import PresetFiltersPreview from '../_shared/preset-filters-preview.vue';
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
</template>
|
|
35
35
|
|
|
36
36
|
<script setup lang="ts">
|
|
37
|
+
import { WtPopup } from '@webitel/ui-sdk/src/components/index';
|
|
37
38
|
import { ref } from 'vue';
|
|
38
39
|
import { useI18n } from 'vue-i18n';
|
|
39
40
|
|
|
40
|
-
import { WtPopup } from '../../../../../../components/index';
|
|
41
41
|
import { SubmitConfig } from './save-preset-popup.vue';
|
|
42
42
|
|
|
43
43
|
const emit = defineEmits<{
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
</template>
|
|
31
31
|
|
|
32
32
|
<script lang="ts" setup>
|
|
33
|
+
import { WtIconAction } from '@webitel/ui-sdk/src/components/index';
|
|
34
|
+
import { IconAction } from '@webitel/ui-sdk/src/enums';
|
|
33
35
|
import { computed, inject, type Ref, ref } from 'vue';
|
|
34
36
|
import { useI18n } from 'vue-i18n';
|
|
35
37
|
import { EnginePresetQuery } from 'webitel-sdk';
|
|
36
38
|
|
|
37
|
-
import { WtIconAction } from '../../../../../../components/index';
|
|
38
|
-
import { IconAction } from '../../../../../../enums';
|
|
39
39
|
import { IFiltersManager } from '../../../filters/index';
|
|
40
40
|
import {
|
|
41
41
|
addPreset,
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
<script setup lang="ts">
|
|
49
49
|
import { useVuelidate } from '@vuelidate/core';
|
|
50
50
|
import { required } from '@vuelidate/validators';
|
|
51
|
+
import { WtPopup } from '@webitel/ui-sdk/src/components/index';
|
|
51
52
|
import { computed, reactive, ref } from 'vue';
|
|
52
53
|
import { useI18n } from 'vue-i18n';
|
|
53
54
|
import { EnginePresetQuery } from 'webitel-sdk';
|
|
54
55
|
|
|
55
|
-
import { WtPopup } from '../../../../../../components/index';
|
|
56
56
|
import type { IFiltersManager } from '../../../index';
|
|
57
57
|
import PresetDescriptionField from '../_shared/input-fields/preset-description-field.vue';
|
|
58
58
|
import PresetNameField from '../_shared/input-fields/preset-name-field.vue';
|
|
@@ -10,11 +10,10 @@
|
|
|
10
10
|
<script setup lang="ts">
|
|
11
11
|
import { useVuelidate } from '@vuelidate/core';
|
|
12
12
|
import { maxLength } from '@vuelidate/validators';
|
|
13
|
+
import WtInput from '@webitel/ui-sdk/src/components/wt-input/wt-input.vue';
|
|
13
14
|
import { computed, watch } from 'vue';
|
|
14
15
|
import { useI18n } from 'vue-i18n';
|
|
15
16
|
|
|
16
|
-
import WtInput from '../../../../../../components/wt-input/wt-input.vue';
|
|
17
|
-
|
|
18
17
|
const MAX_STRING_LENGTH = 50;
|
|
19
18
|
|
|
20
19
|
const model = defineModel<string>();
|
|
@@ -49,12 +49,11 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script lang="ts" setup>
|
|
52
|
+
import { WtButton, WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
52
53
|
import deepcopy from 'deep-copy';
|
|
53
54
|
import { ref, watch } from 'vue';
|
|
54
55
|
import { useI18n } from 'vue-i18n';
|
|
55
56
|
|
|
56
|
-
import WtButton from '../../../../../../components/wt-button/wt-button.vue';
|
|
57
|
-
import WtSelect from '../../../../../../components/wt-select/wt-select.vue';
|
|
58
57
|
import type { FilterInitParams, FilterName, IFilter } from '../../types/Filter';
|
|
59
58
|
import DynamicFilterConfigFormLabel from './dynamic-filter-config-form-label.vue';
|
|
60
59
|
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
</template>
|
|
25
25
|
|
|
26
26
|
<script lang="ts" setup>
|
|
27
|
+
import { WtIconAction } from '@webitel/ui-sdk/src/components/index';
|
|
27
28
|
import { useI18n } from 'vue-i18n';
|
|
28
29
|
|
|
29
|
-
import WtIconAction from '../../../../../components/wt-icon-action/wt-icon-action.vue';
|
|
30
30
|
import DynamicFilterConfigView from './config/dynamic-filter-config-view.vue';
|
|
31
31
|
|
|
32
32
|
interface Props {
|
|
@@ -18,11 +18,10 @@
|
|
|
18
18
|
</template>
|
|
19
19
|
|
|
20
20
|
<script lang="ts" setup>
|
|
21
|
+
import { WtSearchBar } from '@webitel/ui-sdk/src/components/index';
|
|
21
22
|
import { computed } from 'vue';
|
|
22
23
|
import { useI18n } from 'vue-i18n';
|
|
23
24
|
|
|
24
|
-
import WtSearchBar from '../../../../../components/wt-search-bar/wt-search-bar.vue';
|
|
25
|
-
|
|
26
25
|
type ModelValue = string;
|
|
27
26
|
const model = defineModel<ModelValue>();
|
|
28
27
|
|
package/src/filters/components/filter-options/_shared/has-options/has-option-filter-value-field.vue
CHANGED
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
</template>
|
|
14
14
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
16
17
|
import { computed, useAttrs } from 'vue';
|
|
17
18
|
import { useI18n } from 'vue-i18n';
|
|
18
19
|
|
|
19
|
-
import WtSelect from '../../../../../../../../components/wt-select/wt-select.vue';
|
|
20
20
|
import { BooleanOptions } from '../../../../enums/boolean-options';
|
|
21
21
|
|
|
22
22
|
const model = defineModel<boolean | null>();
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
16
|
import { useVuelidate } from '@vuelidate/core';
|
|
17
17
|
import { required } from '@vuelidate/validators';
|
|
18
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
18
19
|
import { computed, watch } from 'vue';
|
|
19
20
|
import { useI18n } from 'vue-i18n';
|
|
20
21
|
|
|
21
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
22
22
|
import { AmdResultOptions } from '../../../enums/amd-result-options';
|
|
23
23
|
|
|
24
24
|
const model = defineModel<string>();
|
|
@@ -21,11 +21,10 @@
|
|
|
21
21
|
<script lang="ts" setup>
|
|
22
22
|
import { useVuelidate } from '@vuelidate/core';
|
|
23
23
|
import { requiredIf } from '@vuelidate/validators';
|
|
24
|
+
import { WtCheckbox, WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
24
25
|
import { computed, onMounted, watch } from 'vue';
|
|
25
26
|
import { useI18n } from 'vue-i18n';
|
|
26
27
|
|
|
27
|
-
import WtCheckbox from '../../../../../../../components/wt-checkbox/wt-checkbox.vue';
|
|
28
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
29
28
|
import { searchMethod } from './config.js';
|
|
30
29
|
|
|
31
30
|
type ModelValue = {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
16
|
import { useVuelidate } from '@vuelidate/core';
|
|
17
17
|
import { required } from '@vuelidate/validators';
|
|
18
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
18
19
|
import { computed, watch } from 'vue';
|
|
19
20
|
import { useI18n } from 'vue-i18n';
|
|
20
21
|
|
|
21
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
22
22
|
import { HangupCauseOptions } from '../../../enums/hangup-cause-options';
|
|
23
23
|
|
|
24
24
|
const model = defineModel<string>();
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
32
|
import { useVuelidate } from '@vuelidate/core';
|
|
33
33
|
import { required } from '@vuelidate/validators';
|
|
34
|
-
import {
|
|
34
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
35
|
+
import { computed, onMounted, watch } from 'vue';
|
|
35
36
|
import { useI18n } from 'vue-i18n';
|
|
36
37
|
|
|
37
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
38
38
|
import {
|
|
39
39
|
caseCloseReasonsGroupsSearchMethod,
|
|
40
40
|
caseCloseReasonsSearchMethod,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CaseCloseReasonGroupsAPI from '
|
|
2
|
-
import CaseCloseReasonsAPI from '
|
|
1
|
+
import CaseCloseReasonGroupsAPI from '@webitel/ui-sdk/src/api/clients/caseCloseReasonGroups/caseCloseReasonGroups';
|
|
2
|
+
import CaseCloseReasonsAPI from '@webitel/ui-sdk/src/api/clients/caseCloseReasons/caseCloseReasons';
|
|
3
3
|
|
|
4
4
|
export const caseCloseReasonsGroupsSearchMethod =
|
|
5
5
|
CaseCloseReasonGroupsAPI.getLookup;
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import ContactGroupsAPI from '
|
|
1
|
+
import ContactGroupsAPI from '@webitel/ui-sdk/src/api/clients/contactGroups/contactGroups';
|
|
2
2
|
|
|
3
3
|
export const searchMethod = ContactGroupsAPI.getLookup;
|
|
4
4
|
export const localePath = '';
|
package/src/filters/components/filter-options/contact-group/contact-group-filter-value-field.vue
CHANGED
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
<script lang="ts" setup>
|
|
22
22
|
import { useVuelidate } from '@vuelidate/core';
|
|
23
23
|
import { requiredIf } from '@vuelidate/validators';
|
|
24
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
25
|
+
import { WtCheckbox } from '@webitel/ui-sdk/src/components/index';
|
|
24
26
|
import { computed, onMounted, watch } from 'vue';
|
|
25
27
|
import { useI18n } from 'vue-i18n';
|
|
26
28
|
|
|
27
|
-
import WtCheckbox from '../../../../../../../components/wt-checkbox/wt-checkbox.vue';
|
|
28
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
29
29
|
import { searchMethod } from './config.js';
|
|
30
30
|
|
|
31
31
|
type ModelValue = {
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { DirectionOptions } from '../../../enums/direction-options';
|
|
22
22
|
|
|
23
23
|
const model = defineModel<string>();
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import CasePrioritiesAPI from '
|
|
1
|
+
import CasePrioritiesAPI from '@webitel/ui-sdk/src/api/clients/casePriorities/casePriorities';
|
|
2
2
|
|
|
3
3
|
export const searchMethod = CasePrioritiesAPI.getLookup;
|
|
4
4
|
export const localePath = '';
|
package/src/filters/components/filter-options/priority-case/priority-case-filter-value-field.vue
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -29,11 +29,10 @@
|
|
|
29
29
|
<script lang="ts" setup>
|
|
30
30
|
import { useVuelidate } from '@vuelidate/core';
|
|
31
31
|
import { maxValue, requiredIf } from '@vuelidate/validators';
|
|
32
|
+
import { WtInput } from '@webitel/ui-sdk/src/components/index';
|
|
32
33
|
import { computed, watch } from 'vue';
|
|
33
34
|
import { useI18n } from 'vue-i18n';
|
|
34
35
|
|
|
35
|
-
import { WtInput } from '../../../../../../../components';
|
|
36
|
-
|
|
37
36
|
type ModelValue = {
|
|
38
37
|
from: number;
|
|
39
38
|
to: number;
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import ServiceCatalogsAPI from '
|
|
2
|
-
import ServicesAPI from '
|
|
1
|
+
import ServiceCatalogsAPI from '@webitel/ui-sdk/src/api/clients/caseServiceCatalogs/service-catalogs';
|
|
2
|
+
import ServicesAPI from '@webitel/ui-sdk/src/api/clients/caseServices/services';
|
|
3
3
|
|
|
4
4
|
export const searchMethod = ServiceCatalogsAPI.getList;
|
|
5
5
|
export const servicesSearchMethod = ServicesAPI.getList;
|
package/src/filters/components/filter-options/service-case/service-case-filter-value-field.vue
CHANGED
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
|
+
import { WtTree } from '@webitel/ui-sdk/src/components/index';
|
|
15
16
|
import deepCopy from 'deep-copy';
|
|
16
17
|
import { onMounted, ref } from 'vue';
|
|
17
18
|
|
|
18
|
-
import WtTree from '../../../../../../../components/wt-tree/wt-tree.vue';
|
|
19
19
|
import { searchMethod } from './config.js';
|
|
20
20
|
|
|
21
21
|
type ModelValue = string[];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import SLAConditionsAPI from '
|
|
2
|
-
import SlasAPI from '
|
|
1
|
+
import SLAConditionsAPI from '@webitel/ui-sdk/src/api/clients/slaConditions/slaConditions';
|
|
2
|
+
import SlasAPI from '@webitel/ui-sdk/src/api/clients/slas/slas';
|
|
3
3
|
|
|
4
4
|
export const slasConditionsSearchMethod = SLAConditionsAPI.getLookup;
|
|
5
5
|
export const slasSearchMethod = SlasAPI.getLookup;
|
package/src/filters/components/filter-options/sla-condition/sla-condition-filter-value-field.vue
CHANGED
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
32
|
import { useVuelidate } from '@vuelidate/core';
|
|
33
33
|
import { required } from '@vuelidate/validators';
|
|
34
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
34
35
|
import { computed, onMounted, watch } from 'vue';
|
|
35
36
|
import { useI18n } from 'vue-i18n';
|
|
36
37
|
|
|
37
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
38
38
|
import { slasConditionsSearchMethod, slasSearchMethod } from './config.js';
|
|
39
39
|
|
|
40
40
|
type ModelValue = {
|
package/src/filters/components/filter-options/source-case/source-case-filter-value-field.vue
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import CaseStatusConditionsAPI from '
|
|
2
|
-
import CaseStatusesApi from '
|
|
1
|
+
import CaseStatusConditionsAPI from '@webitel/ui-sdk/src/api/clients/caseStatusConditions/caseStatusConditions';
|
|
2
|
+
import CaseStatusesApi from '@webitel/ui-sdk/src/api/clients/caseStatuses/caseStatuses';
|
|
3
3
|
|
|
4
4
|
export const caseStatusesSearchMethod = CaseStatusesApi.getLookup;
|
|
5
5
|
export const caseStatusConditionsSearchMethod =
|
package/src/filters/components/filter-options/status-case/status-case-filter-value-field.vue
CHANGED
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
<script lang="ts" setup>
|
|
32
32
|
import { useVuelidate } from '@vuelidate/core';
|
|
33
33
|
import { required } from '@vuelidate/validators';
|
|
34
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
34
35
|
import { computed, onMounted, watch } from 'vue';
|
|
35
36
|
import { useI18n } from 'vue-i18n';
|
|
36
37
|
|
|
37
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
38
38
|
import {
|
|
39
39
|
caseStatusConditionsSearchMethod,
|
|
40
40
|
caseStatusesSearchMethod,
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
<script lang="ts" setup>
|
|
16
16
|
import { useVuelidate } from '@vuelidate/core';
|
|
17
17
|
import { required } from '@vuelidate/validators';
|
|
18
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
18
19
|
import { computed, watch } from 'vue';
|
|
19
20
|
import { useI18n } from 'vue-i18n';
|
|
20
21
|
|
|
21
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
22
22
|
import { TagOptions } from '../../../enums/tag-options';
|
|
23
23
|
|
|
24
24
|
const model = defineModel<string>();
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
<script lang="ts" setup>
|
|
15
15
|
import { useVuelidate } from '@vuelidate/core';
|
|
16
16
|
import { required } from '@vuelidate/validators';
|
|
17
|
+
import { WtSelect } from '@webitel/ui-sdk/src/components/index';
|
|
17
18
|
import { computed, watch } from 'vue';
|
|
18
19
|
import { useI18n } from 'vue-i18n';
|
|
19
20
|
|
|
20
|
-
import WtSelect from '../../../../../../../components/wt-select/wt-select.vue';
|
|
21
21
|
import { searchMethod } from './config.js';
|
|
22
22
|
|
|
23
23
|
type ModelValue = number[];
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
<script lang="ts" setup>
|
|
10
10
|
import { useVuelidate } from '@vuelidate/core';
|
|
11
|
+
import variableSearchValidator from '@webitel/ui-sdk/src/validators/variableSearchValidator/variableSearchValidator';
|
|
11
12
|
import { computed, watch } from 'vue';
|
|
12
13
|
import { useI18n } from 'vue-i18n';
|
|
13
14
|
|
|
14
|
-
import variableSearchValidator from '../../../../../../../validators/variableSearchValidator/variableSearchValidator.js';
|
|
15
|
-
|
|
16
15
|
type ModelValue = string;
|
|
17
16
|
|
|
18
17
|
const model = defineModel<ModelValue>();
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
{{ t(`webitelUI.filters.${props.filter.name}`) }}
|
|
22
22
|
</template>
|
|
23
23
|
|
|
24
|
-
<template>
|
|
24
|
+
<template #default>
|
|
25
25
|
<slot name="info" />
|
|
26
26
|
</template>
|
|
27
27
|
</dynamic-filter-preview-info>
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
</template>
|
|
40
40
|
|
|
41
41
|
<script lang="ts" setup>
|
|
42
|
+
import { WtChip } from '@webitel/ui-sdk/src/components/index';
|
|
43
|
+
import { WtIconBtn } from '@webitel/ui-sdk/src/components/index';
|
|
44
|
+
import { WtTooltip } from '@webitel/ui-sdk/src/components/index';
|
|
42
45
|
import { useI18n } from 'vue-i18n';
|
|
43
46
|
|
|
44
|
-
import WtChip from '../../../../../../components/wt-chip/wt-chip.vue';
|
|
45
|
-
import WtIconBtn from '../../../../../../components/wt-icon-btn/wt-icon-btn.vue';
|
|
46
|
-
import WtTooltip from '../../../../../../components/wt-tooltip/wt-tooltip.vue';
|
|
47
47
|
import type { IFilter } from '../../types/Filter';
|
|
48
48
|
import DynamicFilterConfigView from '../config/dynamic-filter-config-view.vue';
|
|
49
49
|
import DynamicFilterPreviewInfo from './dynamic-filter-preview-info.vue';
|
|
@@ -68,20 +68,16 @@ import DynamicFilterConfigForm from './config/dynamic-filter-config-form.vue';
|
|
|
68
68
|
import DynamicFilterAddAction from './dynamic-filter-add-action.vue';
|
|
69
69
|
import DynamicFilterPreview from './preview/dynamic-filter-preview.vue';
|
|
70
70
|
|
|
71
|
-
interface Props {}
|
|
71
|
+
// interface Props {}
|
|
72
|
+
// const props = defineProps<Props>();
|
|
72
73
|
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
hide: [];
|
|
81
|
-
}>();
|
|
74
|
+
// const emit = defineEmits<{
|
|
75
|
+
// 'add:filter': [];
|
|
76
|
+
// 'update:filter': [];
|
|
77
|
+
// 'delete:filter': [];
|
|
78
|
+
// 'reset:filters': [];
|
|
79
|
+
// hide: [];
|
|
80
|
+
// }>();
|
|
82
81
|
</script>
|
|
83
82
|
|
|
84
|
-
<style lang="scss" scoped>
|
|
85
|
-
.table-filters-panel {
|
|
86
|
-
}
|
|
87
|
-
</style>
|
|
83
|
+
<style lang="scss" scoped></style>
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { WtTableHeader } from '@webitel/ui-sdk/src/components/wt-table/types/WtTable';
|
|
2
|
+
import { sortToQueryAdapter } from '@webitel/ui-sdk/src/scripts';
|
|
3
|
+
import { SortSymbols } from '@webitel/ui-sdk/src/scripts/sortQueryAdapters';
|
|
1
4
|
import { defineStore } from 'pinia';
|
|
2
5
|
import { computed, ref } from 'vue';
|
|
3
6
|
|
|
4
|
-
import { WtTableHeader } from '../../../../components/wt-table/types/WtTable';
|
|
5
|
-
import { sortToQueryAdapter } from '../../../../scripts';
|
|
6
|
-
import { SortSymbols } from '../../../../scripts/sortQueryAdapters';
|
|
7
7
|
import { PersistedStorageType } from '../persist/PersistedStorage.types';
|
|
8
8
|
import { usePersistedStorage } from '../persist/usePersistedStorage.ts';
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { ApiModule } from '@webitel/ui-sdk/src/api/types/ApiModule.type.ts';
|
|
1
2
|
import type { Ref } from 'vue';
|
|
2
3
|
|
|
3
|
-
import { ApiModule } from '../../../../api/types/ApiModule.type.ts';
|
|
4
4
|
import { IFiltersManager } from '../filters';
|
|
5
5
|
|
|
6
6
|
export interface useTableStoreParams<Entity> {
|