@webitel/ui-datalist 1.0.44 → 1.0.45

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.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "Toolkit for building data lists in webitel ui system",
5
5
  "scripts": {
6
6
  "build:types": "vue-tsc -p ./tsconfig.build.json",
@@ -51,7 +51,7 @@
51
51
  </template>
52
52
 
53
53
  <wt-icon-action
54
- :disabled="!props.filtersManager.filters.size"
54
+ :disabled="!listSelectedFilters.length"
55
55
  action="clear"
56
56
  @click="emit('filter:reset-all')"
57
57
  />
@@ -173,6 +173,7 @@ const {
173
173
  });
174
174
 
175
175
  const enablePresets = computed(() => !!props.presetNamespace);
176
+ const listSelectedFilters = computed(() => props.filtersManager.getFiltersList({ exclude: ['search'] }));
176
177
  </script>
177
178
 
178
179
  <style>
@@ -3,8 +3,8 @@ import { Ref } from 'vue';
3
3
  export declare const useValidation: <TState, TSchema>({ validationSchema, }: {
4
4
  validationSchema: Ref<RegleSchema<TState, TSchema>>;
5
5
  }) => {
6
- disabledSave: import("vue").ComputedRef<boolean>;
7
- isEdited: import("vue").ComputedRef<boolean>;
6
+ disabledSave: import("vue").ComputedRef<any>;
7
+ isEdited: import("vue").ComputedRef<any>;
8
8
  touch: () => void;
9
- checkIfInvalid: () => boolean;
9
+ checkIfInvalid: () => any;
10
10
  };
@@ -1,11 +0,0 @@
1
- type __VLS_PublicProps = {
2
- modelValue?: string;
3
- };
4
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (value: string) => any;
6
- "update:invalid": (args_0: boolean) => any;
7
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
8
- "onUpdate:modelValue"?: (value: string) => any;
9
- "onUpdate:invalid"?: (args_0: boolean) => any;
10
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
11
- export default _default;
@@ -1,16 +0,0 @@
1
- import { AnyFilterConfig } from "../../modules/filterConfig/classes/FilterConfig";
2
- type __VLS_Props = {
3
- filterConfig: AnyFilterConfig;
4
- label?: string;
5
- };
6
- type __VLS_PublicProps = __VLS_Props & {
7
- modelValue?: unknown;
8
- };
9
- declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- "update:modelValue": (value: unknown) => any;
11
- "update:invalid": (args_0: boolean) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
- "onUpdate:modelValue"?: (value: unknown) => any;
14
- "onUpdate:invalid"?: (args_0: boolean) => any;
15
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
- export default _default;
@@ -1,93 +0,0 @@
1
- import { WtButton, WtSelect } from '@webitel/ui-sdk/components';
2
- import { FilterInitParams, IFilter } from "../../classes/Filter";
3
- import { BaseFilterConfig } from "../../modules/filterConfig/classes/FilterConfig";
4
- import DynamicFilterConfigFormLabel from './dynamic-filter-config-form-label.vue';
5
- import DynamicFilterConfigFormValueInput from "./dynamic-filter-config-form-value-input.vue";
6
- type __VLS_Props = {
7
- /**
8
- * @description
9
- * "Add" mode
10
- */
11
- filterConfigs?: BaseFilterConfig[];
12
- /**
13
- * @description
14
- * "Edit" mode
15
- */
16
- filterConfig?: BaseFilterConfig;
17
- /**
18
- * @description
19
- * Edited filter instance
20
- */
21
- filter?: IFilter;
22
- };
23
- declare const emit: ((evt: "submit", args_0: FilterInitParams) => void) & ((evt: "cancel") => void);
24
- declare const t: import("vue-i18n").ComposerTranslation<{
25
- [x: string]: import("@intlify/core-base").LocaleMessage<import("vue-i18n").VueMessageType>;
26
- }, string, import("@intlify/core-base").RemoveIndexSignature<{
27
- [x: string]: import("vue-i18n").LocaleMessageValue<import("vue-i18n").VueMessageType>;
28
- }>, never, never, never>;
29
- declare const filterName: import("vue").Ref<any, any>;
30
- declare const filterLabel: import("vue").Ref<string, string>;
31
- declare const filterValue: import("vue").Ref<any, any>;
32
- declare const editMode: boolean;
33
- declare const invalid: import("vue").Ref<boolean, boolean>;
34
- declare const filterConfigOptions: import("vue").ComputedRef<BaseFilterConfig[]>;
35
- declare const selectedFilterConfig: import("vue").ComputedRef<BaseFilterConfig>;
36
- declare const onValueChange: (v: any) => void;
37
- declare const onValueInvalidChange: (v: any) => void;
38
- declare const valueInputLabelText: import("vue").ComputedRef<string>;
39
- declare const onLabelValueUpdate: (val: string) => void;
40
- declare const onFilterNameUpdate: (val: string) => void;
41
- declare const submit: () => void;
42
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
43
- declare var __VLS_9: {
44
- filterName: any;
45
- filterValue: any;
46
- inputLabel: string;
47
- onValueChange: (v: any) => void;
48
- onValueInvalidChange: (v: any) => void;
49
- };
50
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
51
- 'value-input'?: (props: typeof __VLS_9) => any;
52
- }>;
53
- declare const __VLS_self: import("vue").DefineComponent<__VLS_Props, {
54
- WtButton: typeof WtButton;
55
- WtSelect: typeof WtSelect;
56
- DynamicFilterConfigFormLabel: typeof DynamicFilterConfigFormLabel;
57
- DynamicFilterConfigFormValueInput: typeof DynamicFilterConfigFormValueInput;
58
- emit: typeof emit;
59
- t: typeof t;
60
- filterName: typeof filterName;
61
- filterLabel: typeof filterLabel;
62
- filterValue: typeof filterValue;
63
- editMode: typeof editMode;
64
- invalid: typeof invalid;
65
- filterConfigOptions: typeof filterConfigOptions;
66
- selectedFilterConfig: typeof selectedFilterConfig;
67
- onValueChange: typeof onValueChange;
68
- onValueInvalidChange: typeof onValueInvalidChange;
69
- valueInputLabelText: typeof valueInputLabelText;
70
- onLabelValueUpdate: typeof onLabelValueUpdate;
71
- onFilterNameUpdate: typeof onFilterNameUpdate;
72
- submit: typeof submit;
73
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
74
- submit: (args_0: FilterInitParams) => any;
75
- cancel: () => any;
76
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
77
- onSubmit?: (args_0: FilterInitParams) => any;
78
- onCancel?: () => any;
79
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
80
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
81
- submit: (args_0: FilterInitParams) => any;
82
- cancel: () => any;
83
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
84
- onSubmit?: (args_0: FilterInitParams) => any;
85
- onCancel?: () => any;
86
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
87
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
88
- export default _default;
89
- type __VLS_WithSlots<T, S> = T & {
90
- new (): {
91
- $slots: S;
92
- };
93
- };
@@ -1,27 +0,0 @@
1
- import { WtTooltip } from '@webitel/ui-sdk/components';
2
- interface Props {
3
- disabled?: boolean;
4
- disableClickAway?: boolean;
5
- }
6
- declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
7
- declare var __VLS_5: {
8
- tooltipSlotScope: any;
9
- }, __VLS_7: {
10
- tooltipSlotScope: any;
11
- };
12
- type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
13
- activator?: (props: typeof __VLS_5) => any;
14
- } & {
15
- content?: (props: typeof __VLS_7) => any;
16
- }>;
17
- declare const __VLS_self: import("vue").DefineComponent<Props, {
18
- WtTooltip: typeof WtTooltip;
19
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
20
- declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
21
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
22
- export default _default;
23
- type __VLS_WithSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };