@snabcentr/vue-ui-lib 4.22.0 → 4.22.1

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,4 +1,4 @@
1
- import { ProductData } from '@snabcentr/common-lib';
1
+ import { CategoryData, ProductData } from '@snabcentr/common-lib';
2
2
  import { ICategoryCollapseItemProperties } from '../../catalog/interfaces/properties/i-category-collapse-item-properties';
3
3
  /**
4
4
  * Компонент элемента сворачиваемого списка категорий.
@@ -16,13 +16,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<IC
16
16
  showProductEditButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<ProductData>;
17
17
  productContextButtonsConfig: (product: ProductData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
18
18
  isProductItemSelected: import('../..').ButtonStateFunction<ProductData>;
19
- isCategoryItemSelected: import('../..').ButtonStates | import('../..').ButtonStateFunction<import('@snabcentr/common-lib').CategoryData>;
20
- showCategoryHideForClientButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<import('@snabcentr/common-lib').CategoryData>;
21
- showCategoryRequiredButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<import('@snabcentr/common-lib').CategoryData>;
22
- showCategoryPinButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<import('@snabcentr/common-lib').CategoryData>;
23
- showCategoryEditButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<import('@snabcentr/common-lib').CategoryData>;
24
- categoryContextButtonsConfig: (category: import('@snabcentr/common-lib').CategoryData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
25
- showConfigurator: boolean | ((category: import('@snabcentr/common-lib').CategoryData) => boolean);
19
+ isCategoryItemSelected: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
20
+ showCategoryHideForClientButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
21
+ showCategoryRequiredButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
22
+ showCategoryPinButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
23
+ showCategoryEditButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
24
+ categoryContextButtonsConfig: (category: CategoryData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
25
+ showConfigurator: boolean | ((category: CategoryData) => boolean);
26
26
  canShowConfigurator: boolean | (() => boolean);
27
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
28
  'collapse-item-reference': ({
@@ -101,17 +101,50 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<IC
101
101
  collapse: () => void;
102
102
  expanded: Readonly<import('vue').Ref<boolean, boolean>>;
103
103
  }> & {} & import('vue').ComponentCustomProperties & {} & {
104
- $slots: {
105
- arrow?(_: {}): any;
106
- 'pre-arrow'?(_: {}): any;
107
- header?(_: {}): any;
108
- 'sub-header'?(_: {}): any;
109
- 'header-extra'?(_: {}): any;
110
- default?(_: {}): any;
104
+ $slots: Readonly<{
105
+ arrow: () => void;
106
+ 'pre-arrow': () => void;
107
+ header: () => void;
108
+ 'sub-header': () => void;
109
+ 'header-extra': () => void;
110
+ default: () => void;
111
+ }> & {
112
+ arrow: () => void;
113
+ 'pre-arrow': () => void;
114
+ header: () => void;
115
+ 'sub-header': () => void;
116
+ 'header-extra': () => void;
117
+ default: () => void;
111
118
  };
112
119
  }) | null;
113
- }, HTMLDivElement>, {
114
- default?(_: {}): any;
120
+ }, HTMLDivElement>, Readonly<{
121
+ /**
122
+ * Содержимое категории.
123
+ */
124
+ default: () => void;
125
+ /**
126
+ * Дополнительное содержимое заголовка элемента категории.
127
+ *
128
+ * @param props Параметры слота.
129
+ * @param props.categoryItem Данные категории, для которой рендерится блок.
130
+ */
131
+ 'header-extra': (props: {
132
+ categoryItem: CategoryData;
133
+ }) => void;
134
+ }> & {
135
+ /**
136
+ * Содержимое категории.
137
+ */
138
+ default: () => void;
139
+ /**
140
+ * Дополнительное содержимое заголовка элемента категории.
141
+ *
142
+ * @param props Параметры слота.
143
+ * @param props.categoryItem Данные категории, для которой рендерится блок.
144
+ */
145
+ 'header-extra': (props: {
146
+ categoryItem: CategoryData;
147
+ }) => void;
115
148
  }>;
116
149
  export default _default;
117
150
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -3,7 +3,7 @@ import { CategoryData, SearchResult } from '@snabcentr/common-lib';
3
3
  /**
4
4
  * Компонент списка сворачиваемых элементов каталога.
5
5
  */
6
- declare const _default: import('vue').DefineComponent<ICategoryCollapseProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ICategoryCollapseProperties> & Readonly<{}>, {
6
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ICategoryCollapseProperties, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ICategoryCollapseProperties> & Readonly<{}>, {
7
7
  loading: boolean;
8
8
  showSlugs: boolean;
9
9
  showProperties: boolean;
@@ -22,5 +22,30 @@ declare const _default: import('vue').DefineComponent<ICategoryCollapsePropertie
22
22
  showCategoryEditButton: import('../..').ButtonStates | import('../..').ButtonStateFunction<CategoryData>;
23
23
  categoryContextButtonsConfig: (category: CategoryData) => Array<import('naive-ui').DropdownOption | import('naive-ui').DropdownGroupOption | import('naive-ui').DropdownDividerOption | import('naive-ui').DropdownRenderOption>;
24
24
  client: import('@snabcentr/common-lib').IClient;
25
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<{
26
+ /**
27
+ * Дополнительное содержимое заголовка элемента категории.
28
+ *
29
+ * @param props Параметры слота.
30
+ * @param props.categoryItem Данные категории, для которой рендерится блок.
31
+ */
32
+ 'header-extra': (props: {
33
+ categoryItem: CategoryData;
34
+ }) => void;
35
+ }> & {
36
+ /**
37
+ * Дополнительное содержимое заголовка элемента категории.
38
+ *
39
+ * @param props Параметры слота.
40
+ * @param props.categoryItem Данные категории, для которой рендерится блок.
41
+ */
42
+ 'header-extra': (props: {
43
+ categoryItem: CategoryData;
44
+ }) => void;
45
+ }>;
26
46
  export default _default;
47
+ type __VLS_WithTemplateSlots<T, S> = T & {
48
+ new (): {
49
+ $slots: S;
50
+ };
51
+ };
@@ -52,13 +52,56 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
52
52
  name: string | number;
53
53
  disabled: boolean;
54
54
  title: string;
55
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
56
- arrow?(_: {}): any;
57
- 'pre-arrow'?(_: {}): any;
58
- header?(_: {}): any;
59
- 'sub-header'?(_: {}): any;
60
- 'header-extra'?(_: {}): any;
61
- default?(_: {}): any;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<{
56
+ /**
57
+ * Значок скрытия и отображения содержимого.
58
+ */
59
+ arrow: () => void;
60
+ /**
61
+ * Зона значков слева от заголовка.
62
+ */
63
+ 'pre-arrow': () => void;
64
+ /**
65
+ * Основной заголовок элемента.
66
+ */
67
+ header: () => void;
68
+ /**
69
+ * Вспомогательный заголовок под основным.
70
+ */
71
+ 'sub-header': () => void;
72
+ /**
73
+ * Дополнительное содержимое заголовка справа.
74
+ */
75
+ 'header-extra': () => void;
76
+ /**
77
+ * Содержимое элемента, отображаемое в развёрнутом состоянии.
78
+ */
79
+ default: () => void;
80
+ }> & {
81
+ /**
82
+ * Значок скрытия и отображения содержимого.
83
+ */
84
+ arrow: () => void;
85
+ /**
86
+ * Зона значков слева от заголовка.
87
+ */
88
+ 'pre-arrow': () => void;
89
+ /**
90
+ * Основной заголовок элемента.
91
+ */
92
+ header: () => void;
93
+ /**
94
+ * Вспомогательный заголовок под основным.
95
+ */
96
+ 'sub-header': () => void;
97
+ /**
98
+ * Дополнительное содержимое заголовка справа.
99
+ */
100
+ 'header-extra': () => void;
101
+ /**
102
+ * Содержимое элемента, отображаемое в развёрнутом состоянии.
103
+ */
104
+ default: () => void;
62
105
  }>;
63
106
  export default _default;
64
107
  type __VLS_WithTemplateSlots<T, S> = T & {
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.22.0",
7
+ "version": "4.22.1",
8
8
  "license": "ISC",
9
9
  "scripts": {
10
10
  "dev": "vite",