@webitel/ui-datalist 26.8.13 → 26.8.15

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.
Files changed (30) hide show
  1. package/package.json +1 -1
  2. package/src/modules/filters/components/config/static-view/__tests__/static-filter-field.spec.ts +10 -0
  3. package/src/modules/filters/components/config/static-view/static-filter-field.vue +0 -2
  4. package/src/modules/filters/modules/filterConfig/components/_shared/has-options/__tests__/has-option-filter-value-field.spec.ts +40 -0
  5. package/src/modules/filters/modules/filterConfig/components/_shared/has-options/has-option-filter-value-field.vue +11 -4
  6. package/src/modules/filters/modules/filterConfig/components/has-attachment/has-attachment-filter-value-field.vue +3 -0
  7. package/src/modules/filters/modules/filterConfig/components/has-file/has-file-filter-value-field.vue +9 -2
  8. package/src/modules/filters/modules/filterConfig/components/has-rating/has-rating-filter-value-field.vue +9 -2
  9. package/src/modules/filters/modules/filterConfig/components/has-transcription/has-transcription-filter-value-field.vue +9 -2
  10. package/src/modules/filters/modules/filterConfig/components/rated-by/__tests__/rated-by-filter-value-field.spec.ts +35 -0
  11. package/src/modules/filters/modules/filterConfig/components/rated-by/rated-by-filter-value-field.vue +10 -1
  12. package/src/modules/filters/modules/filterConfig/components/tags/tags-filter-value-preview.vue +10 -5
  13. package/types/.tsbuildinfo +1 -1
  14. package/types/modules/filters/modules/filterConfig/components/_shared/has-options/has-option-filter-value-field.vue.d.ts +3 -0
  15. package/types/modules/filters/modules/filterConfig/components/has-attachment/has-attachment-filter-value-field.vue.d.ts +2 -0
  16. package/types/modules/filters/modules/filterConfig/components/has-file/has-file-filter-value-field.vue.d.ts +8 -2
  17. package/types/modules/filters/modules/filterConfig/components/has-rating/has-rating-filter-value-field.vue.d.ts +8 -2
  18. package/types/modules/filters/modules/filterConfig/components/has-transcription/has-transcription-filter-value-field.vue.d.ts +8 -2
  19. package/types/modules/filters/modules/filterConfig/components/index.d.ts +2 -2
  20. package/types/modules/filters/modules/filterConfig/components/rated-by/rated-by-filter-value-field.vue.d.ts +2 -0
  21. package/types/modules/filters/modules/filterConfig/components/tags/index.d.ts +2 -2
  22. package/types/modules/filters/modules/filterConfig/components/tags/tags-filter-value-preview.vue.d.ts +2 -2
  23. package/src/modules/filters/modules/filterConfig/components/created-at-from/created-at-from-filter-value-field.vue +0 -23
  24. package/src/modules/filters/modules/filterConfig/components/created-at-from/created-at-from-filter-value-preview.vue +0 -17
  25. package/src/modules/filters/modules/filterConfig/components/created-at-to/created-at-to-filter-value-field.vue +0 -23
  26. package/src/modules/filters/modules/filterConfig/components/created-at-to/created-at-to-filter-value-preview.vue +0 -17
  27. package/types/modules/filters/modules/filterConfig/components/created-at-from/created-at-from-filter-value-field.vue.d.ts +0 -10
  28. package/types/modules/filters/modules/filterConfig/components/created-at-from/created-at-from-filter-value-preview.vue.d.ts +0 -6
  29. package/types/modules/filters/modules/filterConfig/components/created-at-to/created-at-to-filter-value-field.vue.d.ts +0 -10
  30. package/types/modules/filters/modules/filterConfig/components/created-at-to/created-at-to-filter-value-preview.vue.d.ts +0 -6
@@ -1,5 +1,8 @@
1
+ import { WtSysTypeFilterConfig } from '../../../classes/FilterConfig';
1
2
  type __VLS_Props = {
3
+ filterConfig?: WtSysTypeFilterConfig;
2
4
  hideLabel?: boolean;
5
+ label?: string;
3
6
  };
4
7
  type __VLS_ModelProps = {
5
8
  modelValue?: boolean | null;
@@ -1,4 +1,6 @@
1
+ import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
1
2
  type __VLS_Props = {
3
+ filterConfig?: WtSysTypeFilterConfig;
2
4
  disableValidation?: boolean;
3
5
  };
4
6
  type __VLS_ModelProps = {
@@ -1,11 +1,17 @@
1
+ import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
1
2
  import { BooleanFilterModelValue } from '../../enums/options/BooleanFilterOptions';
3
+ type __VLS_Props = {
4
+ filterConfig?: WtSysTypeFilterConfig;
5
+ disableValidation?: boolean;
6
+ };
2
7
  type __VLS_ModelProps = {
3
8
  modelValue?: BooleanFilterModelValue | null;
4
9
  };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
12
  "update:invalid": (args_0: boolean) => any;
7
13
  "update:modelValue": (value: boolean | null | undefined) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
15
  "onUpdate:invalid"?: ((args_0: boolean) => any) | undefined;
10
16
  "onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
11
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,11 +1,17 @@
1
+ import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
1
2
  import { BooleanFilterModelValue } from '../../enums/options/BooleanFilterOptions';
3
+ type __VLS_Props = {
4
+ filterConfig?: WtSysTypeFilterConfig;
5
+ disableValidation?: boolean;
6
+ };
2
7
  type __VLS_ModelProps = {
3
8
  modelValue?: BooleanFilterModelValue | null;
4
9
  };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
12
  "update:invalid": (args_0: boolean) => any;
7
13
  "update:modelValue": (value: boolean | null | undefined) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
15
  "onUpdate:invalid"?: ((args_0: boolean) => any) | undefined;
10
16
  "onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
11
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -1,11 +1,17 @@
1
+ import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
1
2
  import { BooleanFilterModelValue } from '../../enums/options/BooleanFilterOptions';
3
+ type __VLS_Props = {
4
+ filterConfig?: WtSysTypeFilterConfig;
5
+ disableValidation?: boolean;
6
+ };
2
7
  type __VLS_ModelProps = {
3
8
  modelValue?: BooleanFilterModelValue | null;
4
9
  };
5
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
6
12
  "update:invalid": (args_0: boolean) => any;
7
13
  "update:modelValue": (value: boolean | null | undefined) => any;
8
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
14
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
9
15
  "onUpdate:invalid"?: ((args_0: boolean) => any) | undefined;
10
16
  "onUpdate:modelValue"?: ((value: boolean | null | undefined) => any) | undefined;
11
17
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -492,9 +492,9 @@ export declare const FilterOptionToFilterConfigCreatorMap: {
492
492
  "onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
493
493
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
494
494
  valuePreviewComponent: import("vue").DefineComponent<{
495
- value?: string[];
495
+ filter: import("../../..").IFilter;
496
496
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
497
- value?: string[];
497
+ filter: import("../../..").IFilter;
498
498
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
499
499
  searchRecords(params: object): Promise<{
500
500
  items: unknown[];
@@ -1,5 +1,7 @@
1
+ import { WtSysTypeFilterConfig } from '../../classes/FilterConfig';
1
2
  type ModelValue = number[];
2
3
  type __VLS_Props = {
4
+ filterConfig?: WtSysTypeFilterConfig;
3
5
  disableValidation?: boolean;
4
6
  };
5
7
  type __VLS_ModelProps = {
@@ -19,9 +19,9 @@ declare class QueueTagsFilterConfig extends WtSysTypeFilterConfig {
19
19
  "onUpdate:modelValue"?: ((value: string[] | undefined) => any) | undefined;
20
20
  }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
21
  valuePreviewComponent: import("vue").DefineComponent<{
22
- value?: string[];
22
+ filter: import("../../../..").IFilter;
23
23
  }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
24
- value?: string[];
24
+ filter: import("../../../..").IFilter;
25
25
  }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
26
26
  searchRecords(params: object): Promise<{
27
27
  items: unknown[];
@@ -1,6 +1,6 @@
1
+ import type { IFilter } from '../../../../classes/Filter';
1
2
  type __VLS_Props = {
2
- /** tag names — this filter stores strings, not lookup objects */
3
- value?: string[];
3
+ filter: IFilter;
4
4
  };
5
5
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
6
6
  declare const _default: typeof __VLS_export;
@@ -1,23 +0,0 @@
1
- <template>
2
- <wt-datepicker
3
- v-if="model"
4
- v-model:model-value="model"
5
- :label="`${t('webitelUI.filters.filterValue')}`"
6
- show-time
7
- />
8
- </template>
9
-
10
- <script lang="ts" setup>
11
- import { startOfToday } from 'date-fns';
12
- import { useI18n } from 'vue-i18n';
13
-
14
- const model = defineModel<number>();
15
-
16
- const { t } = useI18n();
17
-
18
- if (!model.value) {
19
- model.value = startOfToday().getTime();
20
- }
21
- </script>
22
-
23
- <style scoped></style>
@@ -1,17 +0,0 @@
1
- <template>
2
- <div>{{ date }}</div>
3
- </template>
4
-
5
- <script lang="ts" setup>
6
- import { FormatDateMode } from '@webitel/ui-sdk/enums';
7
- import { formatDate } from '@webitel/ui-sdk/utils';
8
- import { ref } from 'vue';
9
-
10
- const props = defineProps<{
11
- value: number[];
12
- }>();
13
-
14
- const date = ref(formatDate(+props.value, FormatDateMode.DATETIME));
15
- </script>
16
-
17
- <style scoped></style>
@@ -1,23 +0,0 @@
1
- <template>
2
- <wt-datepicker
3
- v-if="model"
4
- :label="`${t('webitelUI.filters.filterValue')}`"
5
- v-model:model-value="model"
6
- show-time
7
- />
8
- </template>
9
-
10
- <script lang="ts" setup>
11
- import { endOfToday } from 'date-fns';
12
- import { useI18n } from 'vue-i18n';
13
-
14
- const model = defineModel<number>();
15
-
16
- const { t } = useI18n();
17
-
18
- if (!model.value) {
19
- model.value = endOfToday().getTime();
20
- }
21
- </script>
22
-
23
- <style scoped></style>
@@ -1,17 +0,0 @@
1
- <template>
2
- <div>{{ date }}</div>
3
- </template>
4
-
5
- <script lang="ts" setup>
6
- import { FormatDateMode } from '@webitel/ui-sdk/enums';
7
- import { formatDate } from '@webitel/ui-sdk/utils';
8
- import { ref } from 'vue';
9
-
10
- const props = defineProps<{
11
- value: number[];
12
- }>();
13
-
14
- const date = ref(formatDate(+props.value, FormatDateMode.DATETIME));
15
- </script>
16
-
17
- <style scoped></style>
@@ -1,10 +0,0 @@
1
- type __VLS_ModelProps = {
2
- modelValue?: number;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (value: number | undefined) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
- "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;
@@ -1,6 +0,0 @@
1
- type __VLS_Props = {
2
- value: number[];
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
- declare const _default: typeof __VLS_export;
6
- export default _default;
@@ -1,10 +0,0 @@
1
- type __VLS_ModelProps = {
2
- modelValue?: number;
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_ModelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (value: number | undefined) => any;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_ModelProps> & Readonly<{
7
- "onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- declare const _default: typeof __VLS_export;
10
- export default _default;
@@ -1,6 +0,0 @@
1
- type __VLS_Props = {
2
- value: number[];
3
- };
4
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
5
- declare const _default: typeof __VLS_export;
6
- export default _default;