@fewangsit/wangsvue-fats 1.0.0-alpha.71 → 1.0.0-alpha.72

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.
@@ -7,127 +7,11 @@
7
7
  * @module tabmenu
8
8
  *
9
9
  */
10
- import { VNode } from 'vue';
11
10
 
12
- import { ComponentHooks } from '../basecomponent';
13
- import { MenuItem } from '../menuitem';
14
- import { PassThroughOptions } from '../passthrough';
15
- import { ClassComponent, PassThrough } from '../ts-helpers';
16
-
17
- export declare type TabMenuPassThroughOptionType =
18
- | TabMenuPassThroughAttributes
19
- | ((
20
- options: TabMenuPassThroughMethodOptions,
21
- ) => TabMenuPassThroughAttributes | string)
22
- | string
23
- | null
24
- | undefined;
25
-
26
- /**
27
- * Custom passthrough(pt) option method.
28
- */
29
- export interface TabMenuPassThroughMethodOptions {
30
- /**
31
- * Defines instance.
32
- */
33
- instance: any;
34
- /**
35
- * Defines valid properties.
36
- */
37
- props: TabMenuProps;
38
- /**
39
- * Defines current inline state.
40
- */
41
- state: TabMenuState;
42
- /**
43
- * Defines current options.
44
- */
45
- context: TabMenuContext;
46
- /**
47
- * Defines valid attributes.
48
- */
49
- attrs: any;
50
- /**
51
- * Defines parent options.
52
- */
53
- parent: any;
54
- /**
55
- * Defines passthrough(pt) options in global config.
56
- */
57
- global: object | undefined;
58
- }
11
+ import { TabMenuProps as WangsUITabMenuProps } from '@wangs-ui/core';
59
12
 
60
- /**
61
- * Custom passthrough(pt) options.
62
- * @see {@link TabMenuProps.pt}
63
- */
64
- export interface TabMenuPassThroughOptions {
65
- /**
66
- * Used to pass attributes to the root's DOM element.
67
- */
68
- root?: TabMenuPassThroughOptionType;
69
- /**
70
- * Used to pass attributes to the list's DOM element.
71
- */
72
- menu?: TabMenuPassThroughOptionType;
73
- /**
74
- * Used to pass attributes to the list item's DOM element.
75
- */
76
- menuitem?: TabMenuPassThroughOptionType;
77
- /**
78
- * Used to pass attributes to the action's DOM element.
79
- */
80
- action?: TabMenuPassThroughOptionType;
81
- /**
82
- * Used to pass attributes to the icon's DOM element.
83
- */
84
- icon?: TabMenuPassThroughOptionType;
85
- /**
86
- * Used to pass attributes to the label's DOM element.
87
- */
88
- label?: TabMenuPassThroughOptionType;
89
- /**
90
- * Used to pass attributes to the inkbar's DOM element.
91
- */
92
- inkbar?: TabMenuPassThroughOptionType;
93
- /**
94
- * Used to manage all lifecycle hooks.
95
- * @see {@link BaseComponent.ComponentHooks}
96
- */
97
- hooks?: ComponentHooks;
98
- }
99
-
100
- /**
101
- * Custom passthrough attributes for each DOM elements
102
- */
103
- export interface TabMenuPassThroughAttributes {
104
- [key: string]: any;
105
- }
106
-
107
- /**
108
- * Defines current inline state in TabMenu component.
109
- */
110
- export interface TabMenuState {
111
- /**
112
- * Current active index state as a number.
113
- * @defaulValue 0
114
- */
115
- d_activeIndex: number;
116
- }
117
-
118
- /**
119
- * Defines current options in TabMenu component.
120
- */
121
- export interface TabMenuContext {
122
- /**
123
- * Current menuitem
124
- */
125
- item: any;
126
- /**
127
- * Index of the menuitem
128
- */
129
- index: number;
130
- }
13
+ import { MenuItem } from '../menuitem';
14
+ import { ClassComponent } from '../ts-helpers';
131
15
 
132
16
  /**
133
17
  * Custom change event.
@@ -165,7 +49,7 @@ export interface TabMenuRouterBindProps {
165
49
  /**
166
50
  * Defines valid properties in TabMenu component.
167
51
  */
168
- export interface TabMenuProps {
52
+ export interface TabMenuProps extends WangsUITabMenuProps {
169
53
  /**
170
54
  * An array of menuitems.
171
55
  */
@@ -185,75 +69,6 @@ export interface TabMenuProps {
185
69
  * @defaultValue true - when type is tab, otherwise true
186
70
  */
187
71
  useTrailingLine?: boolean | undefined;
188
- /**
189
- * Defines a string value that labels an interactive element.
190
- */
191
- ariaLabel?: string | undefined;
192
- /**
193
- * Identifier of the underlying input element.
194
- */
195
- ariaLabelledby?: string | undefined;
196
- /**
197
- * Used to pass attributes to DOM elements inside the component.
198
- * @type {TabMenuPassThroughOptions}
199
- */
200
- pt?: PassThrough<TabMenuPassThroughOptions>;
201
- /**
202
- * Used to configure passthrough(pt) options of the component.
203
- * @type {PassThroughOptions}
204
- */
205
- ptOptions?: PassThroughOptions;
206
- /**
207
- * When enabled, it removes component related styles in the core.
208
- * @defaultValue false
209
- */
210
- unstyled?: boolean;
211
- }
212
-
213
- /**
214
- * Defines valid slots in TabMenu component.
215
- */
216
- export interface TabMenuSlots {
217
- /**
218
- * Custom content for each item.
219
- * @param {Object} scope - item slot's params.
220
- */
221
- item(scope: {
222
- /**
223
- * Menuitem instance
224
- */
225
- item: MenuItem;
226
- /**
227
- * Index of the menuitem
228
- */
229
- index: number;
230
- /**
231
- * Current active state of the menuitem
232
- */
233
- active: boolean;
234
- /**
235
- * Label property of the menuitem
236
- */
237
- label: string | ((...args: any) => string) | undefined;
238
- /**
239
- * Binding properties of the menuitem
240
- */
241
- props: TabMenuRouterBindProps;
242
- }): VNode[];
243
- /**
244
- * Custom item icon template.
245
- * @param {Object} scope - item icon slot's params.
246
- */
247
- itemicon(scope: {
248
- /**
249
- * Menuitem instance
250
- */
251
- item: MenuItem;
252
- /**
253
- * Style class of the item icon element.
254
- */
255
- class: any;
256
- }): VNode[];
257
72
  }
258
73
 
259
74
  /**
@@ -282,7 +97,7 @@ export type TabMenuEmits = {
282
97
  */
283
98
  declare class TabMenu extends ClassComponent<
284
99
  TabMenuProps,
285
- TabMenuSlots,
100
+ unknown,
286
101
  TabMenuEmits
287
102
  > {}
288
103
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fewangsit/wangsvue-fats",
3
- "version": "1.0.0-alpha.71",
3
+ "version": "1.0.0-alpha.72",
4
4
  "author": "Wangsit FE Developer",
5
5
  "description": "Fixed Asset Tagsamurai VueJS Component Library",
6
6
  "type": "module",