@fiscozen/tab 0.1.10 → 0.1.11
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/CHANGELOG.md +22 -0
- package/dist/src/FzTab.vue.d.ts +1 -1
- package/dist/src/FzTabs.vue.d.ts +5 -5
- package/dist/src/common.d.ts +8 -0
- package/dist/src/components/FzTabButton.vue.d.ts +56 -0
- package/dist/src/components/FzTabPicker.vue.d.ts +3 -3
- package/dist/src/types.d.ts +2 -2
- package/dist/style.css +1 -1
- package/dist/tab.js +1037 -165
- package/dist/tab.umd.cjs +1 -1
- package/package.json +7 -10
- package/src/__tests__/FzTabs.spec.ts +1193 -0
- package/src/__tests__/__snapshots__/FzTabs.spec.ts.snap +112 -0
- package/tsconfig.tsbuildinfo +1 -1
- package/vitest.config.ts +9 -1
- package/dist/src/__test__/FzTabs.test.d.ts +0 -1
- package/dist/src/components/FzTabName.vue.d.ts +0 -19
- package/dist/src/components/FzTabPickerValue.vue.d.ts +0 -23
- package/src/__test__/FzTabs.test.ts +0 -97
- package/src/__test__/__snapshots__/FzTabs.test.ts.snap +0 -93
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# @fiscozen/tab
|
|
2
|
+
|
|
3
|
+
## 0.1.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
#### Modifiche dalla versione 0.1.8
|
|
8
|
+
|
|
9
|
+
- Layout **full width** del picker su dispositivi mobile
|
|
10
|
+
- Nuovo layout con correzioni di stile e refactoring del componente
|
|
11
|
+
- Gestione dell'overflow con resize automatico e `v-if` corretto
|
|
12
|
+
- Correzione del border radius per i tab (LIB-487)
|
|
13
|
+
- Rimozione dell'emit inutilizzato (LIB-478)
|
|
14
|
+
- Cambio automatico a un tab esistente dopo la cancellazione (LIB-478)
|
|
15
|
+
- Nuovi slot `tabs-end` e `tabs-content-ends` (LIB-477)
|
|
16
|
+
- Correzione del rendering dei figli dei tab (LIB-462)
|
|
17
|
+
- Hotfix per il rendering con `v-for` (LIB-460)
|
|
18
|
+
- Gap corretto e layout verticale con emissione dell'evento `onChange` (LIB-388)
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
- @fiscozen/badge@1.0.0
|
|
21
|
+
- @fiscozen/style@0.2.0
|
|
22
|
+
- @fiscozen/composables@1.0.1
|
package/dist/src/FzTab.vue.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FzTabProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<FzTabProps
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FzTabProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<FzTabProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
4
4
|
default?(_: {}): any;
|
|
5
5
|
}>;
|
|
6
6
|
export default _default;
|
package/dist/src/FzTabs.vue.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { FzTabsProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzTabsProps>, {
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzTabsProps>, {
|
|
4
4
|
size: string;
|
|
5
5
|
vertical: boolean;
|
|
6
|
-
}
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
7
7
|
change: (...args: any[]) => void;
|
|
8
8
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<FzTabsProps>, {
|
|
9
9
|
size: string;
|
|
10
10
|
vertical: boolean;
|
|
11
|
-
}>>> & {
|
|
11
|
+
}>>> & Readonly<{
|
|
12
12
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
13
|
-
}
|
|
13
|
+
}>, {
|
|
14
14
|
size: "sm" | "md";
|
|
15
15
|
vertical: boolean;
|
|
16
|
-
}, {}>, {
|
|
16
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
17
17
|
"tabs-container-end"?(_: {}): any;
|
|
18
18
|
"tabs-end"?(_: {}): any;
|
|
19
19
|
default?(_: {
|
package/dist/src/common.d.ts
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { FzTabProps } from '../types';
|
|
2
|
+
|
|
3
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
4
|
+
tab: FzTabProps;
|
|
5
|
+
size: "sm" | "md";
|
|
6
|
+
type: "picker" | "tab";
|
|
7
|
+
readonly: boolean;
|
|
8
|
+
maxWidth?: string | undefined;
|
|
9
|
+
}>, {
|
|
10
|
+
type: string;
|
|
11
|
+
readonly: boolean;
|
|
12
|
+
maxWidth: string;
|
|
13
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
14
|
+
click: (...args: any[]) => void;
|
|
15
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
16
|
+
tab: FzTabProps;
|
|
17
|
+
size: "sm" | "md";
|
|
18
|
+
type: "picker" | "tab";
|
|
19
|
+
readonly: boolean;
|
|
20
|
+
maxWidth?: string | undefined;
|
|
21
|
+
}>, {
|
|
22
|
+
type: string;
|
|
23
|
+
readonly: boolean;
|
|
24
|
+
maxWidth: string;
|
|
25
|
+
}>>> & Readonly<{
|
|
26
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
maxWidth: string;
|
|
29
|
+
type: "picker" | "tab";
|
|
30
|
+
readonly: boolean;
|
|
31
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, {
|
|
32
|
+
default?(_: {}): any;
|
|
33
|
+
}>;
|
|
34
|
+
export default _default;
|
|
35
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
+
} : {
|
|
40
|
+
type: import('vue').PropType<T[K]>;
|
|
41
|
+
required: true;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
44
|
+
type __VLS_WithDefaults<P, D> = {
|
|
45
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
46
|
+
default: D[K];
|
|
47
|
+
}> : P[K];
|
|
48
|
+
};
|
|
49
|
+
type __VLS_Prettify<T> = {
|
|
50
|
+
[K in keyof T]: T[K];
|
|
51
|
+
} & {};
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { FzTabProps } from '../types';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
4
4
|
tabs: FzTabProps[];
|
|
5
5
|
size: "sm" | "md";
|
|
6
|
-
}
|
|
6
|
+
}>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
7
|
tabs: FzTabProps[];
|
|
8
8
|
size: "sm" | "md";
|
|
9
|
-
}
|
|
9
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
10
10
|
export default _default;
|
|
11
11
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
12
|
type __VLS_TypePropsToRuntimeProps<T> = {
|
package/dist/src/types.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ export type FzTabProps = {
|
|
|
34
34
|
*/
|
|
35
35
|
initialSelected?: boolean;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Max width of the tab
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
maxWidth?: string;
|
|
40
40
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.tab-container[data-v-
|
|
1
|
+
.tab-container[data-v-f9fcb49a]::-webkit-scrollbar{width:0em;height:0em}
|