@snabcentr/vue-ui-lib 4.19.8 → 4.19.10

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.
@@ -1,12 +1,13 @@
1
1
  import { IAddressSuggestion } from '@snabcentr/common-lib';
2
2
  import { SearchDataHandlerType } from '../../../properties/types/search-data-handler-type';
3
3
  import { IMinTermLength } from '../../../properties/interfaces/i-min-term-length';
4
+ import { IConsistentMenuWidth } from '../../../properties';
4
5
  /**
5
6
  * Компонент подсказки данных об адресе.
6
7
  */
7
- declare const _default: import('vue').DefineComponent<import('../../..').IDisabled & import('../../..').IValue<string | undefined> & import('../../..').IClearable & {
8
+ declare const _default: import('vue').DefineComponent<import('../../../properties').IDisabled & import('../../../properties').IValue<string | undefined> & import('../../../properties').IClearable & {
8
9
  field?: string;
9
- } & IMinTermLength & {
10
+ } & IMinTermLength & IConsistentMenuWidth & {
10
11
  /**
11
12
  * Обработчик события поиска товаров.
12
13
  */
@@ -19,9 +20,9 @@ declare const _default: import('vue').DefineComponent<import('../../..').IDisabl
19
20
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
21
  select: (selectedItem: IAddressSuggestion) => any;
21
22
  "update:value": (value: string | undefined, ...additionalParams: any[]) => any;
22
- }, string, import('vue').PublicProps, Readonly<import('../../..').IDisabled & import('../../..').IValue<string | undefined> & import('../../..').IClearable & {
23
+ }, string, import('vue').PublicProps, Readonly<import('../../../properties').IDisabled & import('../../../properties').IValue<string | undefined> & import('../../../properties').IClearable & {
23
24
  field?: string;
24
- } & IMinTermLength & {
25
+ } & IMinTermLength & IConsistentMenuWidth & {
25
26
  /**
26
27
  * Обработчик события поиска товаров.
27
28
  */
@@ -34,6 +35,7 @@ declare const _default: import('vue').DefineComponent<import('../../..').IDisabl
34
35
  disabled: boolean;
35
36
  clearable: boolean;
36
37
  minTermLength: number;
38
+ readonly wrapContent: boolean;
37
39
  searchDataHandler: SearchDataHandlerType<IAddressSuggestion[]>;
38
40
  field: string;
39
41
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -1,11 +1,12 @@
1
1
  import { IBankSuggestion } from '@snabcentr/common-lib';
2
+ import { IConsistentMenuWidth } from '../../../properties';
2
3
  import { IMinTermLength } from '../../../properties/interfaces/i-min-term-length';
3
4
  /**
4
5
  * Компонент подсказки данных о банке.
5
6
  */
6
- declare const _default: import('vue').DefineComponent<import('../../..').IDisabled & import('../../..').IValue<string | undefined> & import('../../..').IClearable & {
7
+ declare const _default: import('vue').DefineComponent<import('../../../properties').IDisabled & import('../../../properties').IValue<string | undefined> & import('../../../properties').IClearable & {
7
8
  field?: string;
8
- } & IMinTermLength, {
9
+ } & IMinTermLength & IConsistentMenuWidth, {
9
10
  /**
10
11
  * Устанавливает фокус в поле ввода.
11
12
  */
@@ -13,9 +14,9 @@ declare const _default: import('vue').DefineComponent<import('../../..').IDisabl
13
14
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
14
15
  select: (selectedItem: IBankSuggestion) => any;
15
16
  "update:value": (value: string | undefined, ...additionalParams: any[]) => any;
16
- }, string, import('vue').PublicProps, Readonly<import('../../..').IDisabled & import('../../..').IValue<string | undefined> & import('../../..').IClearable & {
17
+ }, string, import('vue').PublicProps, Readonly<import('../../../properties').IDisabled & import('../../../properties').IValue<string | undefined> & import('../../../properties').IClearable & {
17
18
  field?: string;
18
- } & IMinTermLength> & Readonly<{
19
+ } & IMinTermLength & IConsistentMenuWidth> & Readonly<{
19
20
  onSelect?: ((selectedItem: IBankSuggestion) => any) | undefined;
20
21
  "onUpdate:value"?: ((value: string | undefined, ...additionalParams: any[]) => any) | undefined;
21
22
  }>, {
@@ -23,6 +24,7 @@ declare const _default: import('vue').DefineComponent<import('../../..').IDisabl
23
24
  disabled: boolean;
24
25
  clearable: boolean;
25
26
  minTermLength: number;
27
+ readonly wrapContent: boolean;
26
28
  field: string;
27
29
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
30
  autoCompleteElement: unknown;
@@ -1,11 +1,12 @@
1
1
  import { IOrganizationSuggestion } from '@snabcentr/common-lib';
2
+ import { IConsistentMenuWidth } from '../../../properties';
2
3
  import { IMinTermLength } from '../../../properties/interfaces/i-min-term-length';
3
4
  /**
4
5
  * Компонент подсказки данных об организации.
5
6
  */
6
- declare const _default: import('vue').DefineComponent<import('../../..').IDisabled & import('../../..').IValue<string | undefined> & import('../../..').IClearable & {
7
+ declare const _default: import('vue').DefineComponent<import('../../../properties').IDisabled & import('../../../properties').IValue<string | undefined> & import('../../../properties').IClearable & {
7
8
  field?: string;
8
- } & IMinTermLength & {
9
+ } & IMinTermLength & IConsistentMenuWidth & {
9
10
  /**
10
11
  * Признак, что разрешено выбирать записи ликвидированных организаций.
11
12
  */
@@ -18,9 +19,9 @@ declare const _default: import('vue').DefineComponent<import('../../..').IDisabl
18
19
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
19
20
  select: (selectedItem: IOrganizationSuggestion) => any;
20
21
  "update:value": (value: string | undefined, ...additionalParams: any[]) => any;
21
- }, string, import('vue').PublicProps, Readonly<import('../../..').IDisabled & import('../../..').IValue<string | undefined> & import('../../..').IClearable & {
22
+ }, string, import('vue').PublicProps, Readonly<import('../../../properties').IDisabled & import('../../../properties').IValue<string | undefined> & import('../../../properties').IClearable & {
22
23
  field?: string;
23
- } & IMinTermLength & {
24
+ } & IMinTermLength & IConsistentMenuWidth & {
24
25
  /**
25
26
  * Признак, что разрешено выбирать записи ликвидированных организаций.
26
27
  */
@@ -33,6 +34,7 @@ declare const _default: import('vue').DefineComponent<import('../../..').IDisabl
33
34
  disabled: boolean;
34
35
  clearable: boolean;
35
36
  minTermLength: number;
37
+ readonly wrapContent: boolean;
36
38
  field: string;
37
39
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
38
40
  autoCompleteElement: unknown;
@@ -1,6 +1,7 @@
1
1
  import { IUpdateValue } from '../../emits';
2
- import { IClearableValue } from '../../properties';
2
+ import { IClearableValue, IConsistentMenuWidth } from '../../properties';
3
3
  import { IDisabled } from '../../properties/interfaces/i-disabled';
4
+ import { HTMLAttributes } from 'vue';
4
5
  /**
5
6
  * Тип списка свойств.
6
7
  */
@@ -10,6 +11,10 @@ export type IProperties = IDisabled & IClearableValue<string | undefined> & {
10
11
  */
11
12
  field?: string;
12
13
  };
14
+ /**
15
+ * Тип списка свойств компонентов подсказок с автозавершением.
16
+ */
17
+ export type ISuggestionProperties = IProperties & IConsistentMenuWidth;
13
18
  /**
14
19
  * Значения свойств по умолчанию.
15
20
  */
@@ -19,6 +24,26 @@ export declare const propertyDefaults: {
19
24
  field: undefined;
20
25
  disabled: boolean;
21
26
  };
27
+ /**
28
+ * Значения свойств по умолчанию для компонентов подсказок с автозавершением.
29
+ */
30
+ export declare const suggestionPropertyDefaults: {
31
+ wrapContent: boolean;
32
+ clearable: boolean;
33
+ value: string;
34
+ field: undefined;
35
+ disabled: boolean;
36
+ };
37
+ /**
38
+ * Класс меню подсказок с переносом текста опций.
39
+ */
40
+ export declare const SUGGESTION_MENU_WRAP_CLASS = "consistent-menu-width";
41
+ /**
42
+ * Формирует свойства выпадающего меню подсказок автозавершения.
43
+ *
44
+ * @param wrapContent Признак переноса текста в опциях меню.
45
+ */
46
+ export declare function getSuggestionMenuProperties(wrapContent?: boolean): HTMLAttributes | undefined;
22
47
  /**
23
48
  * Список событий.
24
49
  */
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "keywords": [],
5
5
  "author": "Sergey S. Smirnov <dev@snabcentr.com>",
6
6
  "type": "module",
7
- "version": "4.19.8",
7
+ "version": "4.19.10",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",
@@ -51,7 +51,7 @@
51
51
  "@iconify-json/logos": "^1.2.9",
52
52
  "@iconify-json/mdi": "^1.2.3",
53
53
  "@iconify-json/tabler": "^1.2.23",
54
- "@snabcentr/common-lib": "^2.20.1",
54
+ "@snabcentr/common-lib": "^2.20.2",
55
55
  "@tailwindcss/container-queries": "^0.1.1",
56
56
  "date-fns": "^3.6.0",
57
57
  "libphonenumber-js": "^1.12.23",