@gradient-ui/core 0.6.0 → 0.8.0
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/dist/{GLoading.vue_vue_type_style_index_0_lang-COggAM7a.js → GLoading.vue_vue_type_style_index_0_lang-BbVYszn2.js} +1 -1
- package/dist/{GLoading.vue_vue_type_style_index_0_lang-CoPHejAL.cjs → GLoading.vue_vue_type_style_index_0_lang-DW5X0giH.cjs} +1 -1
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-BPwF9Kug.js +8734 -0
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-C45EmRhx.cjs +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +73 -65
- package/dist/directives.cjs +1 -1
- package/dist/directives.mjs +1 -1
- package/dist/index-DVHKm06w.cjs +1 -0
- package/dist/index-DeFv4BdJ.js +418 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +198 -178
- package/dist/{mask-BqOamrcF.js → mask-669nMf98.js} +2 -2
- package/dist/{mask-ObMqNEfF.cjs → mask-Bh_UkcCe.cjs} +1 -1
- package/dist/{materialSurface-CbOpfFGO.js → materialSurface-BbFTyJuA.js} +1 -1
- package/dist/{materialSurface-CjhWd_yD.cjs → materialSurface-DOfA2E9c.cjs} +1 -1
- package/dist/services.cjs +1 -1
- package/dist/services.mjs +1 -1
- package/dist/style.css +1 -1
- package/dist/{surface-DImNM7I1.js → surface-C3w1Rz6V.js} +1 -1
- package/dist/{surface-_J0t7c3m.cjs → surface-DB9flb-h.cjs} +1 -1
- package/dist/types/components/index.d.ts +10 -0
- package/dist/types/components/ui/GAlert/GAlert.vue.d.ts +1 -1
- package/dist/types/components/ui/GAvatar/GAvatar.vue.d.ts +873 -0
- package/dist/types/components/ui/GAvatar/GAvatarGroup.vue.d.ts +194 -0
- package/dist/types/components/ui/GAvatar/index.d.ts +3 -0
- package/dist/types/components/ui/GAvatar/types.d.ts +585 -0
- package/dist/types/components/ui/GBadge/GBadge.vue.d.ts +1 -1
- package/dist/types/components/ui/GButton/GButton.vue.d.ts +1 -1
- package/dist/types/components/ui/GCard/GCard.vue.d.ts +949 -0
- package/dist/types/components/ui/GCard/index.d.ts +2 -0
- package/dist/types/components/ui/GCard/types.d.ts +519 -0
- package/dist/types/components/ui/GCheckControl/GCheckGroup.vue.d.ts +1 -1
- package/dist/types/components/ui/GChip/GChip.vue.d.ts +7 -3
- package/dist/types/components/ui/GChip/types.d.ts +1 -0
- package/dist/types/components/ui/GCombobox/GCombobox.vue.d.ts +37 -0
- package/dist/types/components/ui/GCombobox/index.d.ts +2 -0
- package/dist/types/components/ui/GCombobox/types.d.ts +59 -0
- package/dist/types/components/ui/GDivider/GDivider.vue.d.ts +965 -0
- package/dist/types/components/ui/GDivider/index.d.ts +2 -0
- package/dist/types/components/ui/GDivider/types.d.ts +518 -0
- package/dist/types/components/ui/GExpansion/GExpansion.vue.d.ts +5 -5
- package/dist/types/components/ui/GExpansionGroup/types.d.ts +4 -1
- package/dist/types/components/ui/GFAB/GFAB.vue.d.ts +1 -1
- package/dist/types/components/ui/GFieldBase/GFieldBase.vue.d.ts +75 -0
- package/dist/types/components/ui/GFieldBase/props.d.ts +73 -4
- package/dist/types/components/ui/GGradientMaterial/GGradientMaterial.vue.d.ts +1 -1
- package/dist/types/components/ui/GInput/GInput.vue.d.ts +75 -0
- package/dist/types/components/ui/GMenu/GMenu.vue.d.ts +1 -1
- package/dist/types/components/ui/GMenu/GSubmenu.vue.d.ts +6 -6
- package/dist/types/components/ui/GMenuItem/GMenuItem.vue.d.ts +1 -1
- package/dist/types/components/ui/GNavbar/GNavbar.vue.d.ts +3 -3
- package/dist/types/components/ui/GQuickActions/GQuickActions.vue.d.ts +1 -1
- package/dist/types/components/ui/GSelect/types.d.ts +6 -0
- package/dist/types/components/ui/GSelectItem.vue.d.ts +1 -1
- package/dist/types/components/ui/GSnackbar/GSnackbar.vue.d.ts +2 -2
- package/dist/types/components/ui/GStepper/GStepItem.vue.d.ts +16 -0
- package/dist/types/components/ui/GStepper/GStepPanel.vue.d.ts +76 -0
- package/dist/types/components/ui/GStepper/GStepper.vue.d.ts +63 -0
- package/dist/types/components/ui/GStepper/GStepperActions.vue.d.ts +22 -0
- package/dist/types/components/ui/GStepper/context.d.ts +42 -0
- package/dist/types/components/ui/GStepper/index.d.ts +4 -0
- package/dist/types/components/ui/GStepper/types.d.ts +708 -0
- package/dist/types/components/ui/GTable/GTable.vue.d.ts +7 -7
- package/dist/types/components/ui/GTable/types.d.ts +59 -55
- package/dist/types/components/ui/GTextarea/GTextarea.vue.d.ts +75 -0
- package/dist/types/components/ui/GToggleButton/GToggleButton.vue.d.ts +1 -1
- package/dist/types/use/density.d.ts +16 -0
- package/dist/types/use/form/fieldKeyboard.d.ts +19 -0
- package/dist/types/use/form/props.d.ts +54 -2
- package/dist/types/use/form/textFieldControl.d.ts +9 -1
- package/dist/types/use/index.d.ts +9 -0
- package/dist/types/use/input/props.d.ts +43 -4
- package/dist/types/use/navigation/controller.d.ts +14 -0
- package/dist/types/use/navigation/index.d.ts +4 -0
- package/dist/types/use/navigation/item.d.ts +9 -0
- package/dist/types/use/navigation/keyboard.d.ts +4 -0
- package/dist/types/use/navigation/types.d.ts +42 -0
- package/dist/types/use/select/comboboxController.d.ts +36 -0
- package/dist/types/use/select/commit.d.ts +23 -0
- package/dist/types/use/select/controller.d.ts +5 -0
- package/dist/types/use/select/creatable.d.ts +18 -0
- package/dist/types/use/select/fieldControl.d.ts +59 -0
- package/dist/types/use/select/filter.d.ts +14 -0
- package/dist/types/use/select/listboxKeyboard.d.ts +9 -0
- package/dist/types/use/select/modelFallbackItems.d.ts +12 -0
- package/dist/types/use/select/search.d.ts +14 -0
- package/dist/types/use/select/searchFieldControl.d.ts +24 -0
- package/dist/types/use/select/selectionSummary.d.ts +1 -0
- package/dist/types/use/select/tokenInputKeyboard.d.ts +11 -0
- package/dist/types/use/stateIcon.d.ts +9 -0
- package/dist/types/use/stepper/controller.d.ts +20 -0
- package/dist/types/use/stepper/index.d.ts +1 -0
- package/dist/types/use/textarea/props.d.ts +43 -4
- package/dist/use.cjs +1 -1
- package/dist/use.mjs +54 -42
- package/dist/{useSnackbar-D60dFSV1.cjs → useSnackbar-6OiYxhJA.cjs} +1 -1
- package/dist/{useSnackbar-us11nXny.js → useSnackbar-BYPu4tJ4.js} +3 -3
- package/package.json +1 -1
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-CRlkCyW_.js +0 -7031
- package/dist/GSwitch.vue_vue_type_script_setup_true_lang-DZXv1j__.cjs +0 -1
- package/dist/index-B3_n44N_.cjs +0 -1
- package/dist/index-BtCLucTD.js +0 -66
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { type GStepValue, type GStepperItem, type GStepperSlots } from './types';
|
|
2
|
+
declare const _default: <T = unknown, V extends GStepValue = GStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
4
|
+
size: import("../../../types/CommonTypes").Sizes;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
rounded: boolean;
|
|
7
|
+
color: import("@/use/colorResolver").GColor;
|
|
8
|
+
variant: import("./types").GStepperVariant;
|
|
9
|
+
linear: boolean;
|
|
10
|
+
mandatory: boolean;
|
|
11
|
+
modelValue: GStepValue | undefined;
|
|
12
|
+
defaultValue: GStepValue | undefined;
|
|
13
|
+
activeColor: import("@/use/colorResolver").GColor | undefined;
|
|
14
|
+
activation: import("./types").GStepperActivation;
|
|
15
|
+
orientation: import("./types").GStepperOrientation;
|
|
16
|
+
items: readonly GStepperItem<unknown, GStepValue>[];
|
|
17
|
+
divider: boolean;
|
|
18
|
+
dividerOptions: import("./types").GStepperDividerOptions | undefined;
|
|
19
|
+
editable: boolean;
|
|
20
|
+
altLabels: boolean;
|
|
21
|
+
hideActions: boolean;
|
|
22
|
+
prevText: string;
|
|
23
|
+
nextText: string;
|
|
24
|
+
finishText: string;
|
|
25
|
+
}> & Omit<{
|
|
26
|
+
readonly size: import("../../../types/CommonTypes").Sizes;
|
|
27
|
+
readonly disabled: boolean;
|
|
28
|
+
readonly rounded: boolean;
|
|
29
|
+
readonly color: import("@/use/colorResolver").GColor;
|
|
30
|
+
readonly variant: import("./types").GStepperVariant;
|
|
31
|
+
readonly linear: boolean;
|
|
32
|
+
readonly mandatory: boolean;
|
|
33
|
+
readonly modelValue: GStepValue;
|
|
34
|
+
readonly defaultValue: GStepValue;
|
|
35
|
+
readonly activeColor: import("@/use/colorResolver").GColor;
|
|
36
|
+
readonly activation: import("./types").GStepperActivation;
|
|
37
|
+
readonly orientation: import("./types").GStepperOrientation;
|
|
38
|
+
readonly items: readonly GStepperItem<unknown, GStepValue>[];
|
|
39
|
+
readonly divider: boolean;
|
|
40
|
+
readonly dividerOptions: import("./types").GStepperDividerOptions;
|
|
41
|
+
readonly editable: boolean;
|
|
42
|
+
readonly altLabels: boolean;
|
|
43
|
+
readonly hideActions: boolean;
|
|
44
|
+
readonly prevText: string;
|
|
45
|
+
readonly nextText: string;
|
|
46
|
+
readonly finishText: string;
|
|
47
|
+
readonly onSelect?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
|
|
48
|
+
readonly onNext?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
|
|
49
|
+
readonly "onUpdate:modelValue"?: ((value: V | undefined) => any) | undefined;
|
|
50
|
+
readonly onPrev?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
|
|
51
|
+
readonly onFinish?: ((value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => any) | undefined;
|
|
52
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "disabled" | "rounded" | "color" | "variant" | "linear" | "mandatory" | "modelValue" | "defaultValue" | "activeColor" | "activation" | "orientation" | "items" | "divider" | "dividerOptions" | "editable" | "altLabels" | "hideActions" | "prevText" | "nextText" | "finishText">, "onSelect" | "onUpdate:modelValue" | "onNext" | "onFinish" | "onPrev" | ("size" | "disabled" | "rounded" | "color" | "variant" | "linear" | "mandatory" | "modelValue" | "defaultValue" | "activeColor" | "activation" | "orientation" | "items" | "divider" | "dividerOptions" | "editable" | "altLabels" | "hideActions" | "prevText" | "nextText" | "finishText")> & Partial<{}> & {}> & import("vue").PublicProps;
|
|
53
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
54
|
+
attrs: any;
|
|
55
|
+
slots: Readonly<GStepperSlots<T, V>> & GStepperSlots<T, V>;
|
|
56
|
+
emit: ((evt: "select", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void) & ((evt: "next", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void) & ((evt: "update:modelValue", value: V | undefined) => void) & ((evt: "prev", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void) & ((evt: "finish", value: V | undefined, item: import("./types").GStepperResolvedItem<T, V> | undefined, event?: Event | undefined) => void);
|
|
57
|
+
}>) => import("vue").VNode & {
|
|
58
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
59
|
+
};
|
|
60
|
+
export default _default;
|
|
61
|
+
type __VLS_PrettifyLocal<T> = {
|
|
62
|
+
[K in keyof T]: T[K];
|
|
63
|
+
} & {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type GStepValue, type GStepperActionsSlots } from './types';
|
|
2
|
+
declare const _default: <T = unknown, V extends GStepValue = GStepValue>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{
|
|
4
|
+
prevText: string;
|
|
5
|
+
nextText: string;
|
|
6
|
+
finishText: string;
|
|
7
|
+
}> & Omit<{
|
|
8
|
+
readonly prevText: string;
|
|
9
|
+
readonly nextText: string;
|
|
10
|
+
readonly finishText: string;
|
|
11
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "prevText" | "nextText" | "finishText">, "prevText" | "nextText" | "finishText"> & Partial<{}> & {}> & import("vue").PublicProps;
|
|
12
|
+
expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
|
|
13
|
+
attrs: any;
|
|
14
|
+
slots: Readonly<GStepperActionsSlots<T, V>> & GStepperActionsSlots<T, V>;
|
|
15
|
+
emit: {};
|
|
16
|
+
}>) => import("vue").VNode & {
|
|
17
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
18
|
+
};
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_PrettifyLocal<T> = {
|
|
21
|
+
[K in keyof T]: T[K];
|
|
22
|
+
} & {};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type ComputedRef, type Ref } from 'vue';
|
|
2
|
+
import type { Sizes } from '@/types/CommonTypes';
|
|
3
|
+
import type { GColor } from '@/use/color';
|
|
4
|
+
import type { GNavigationRegistration } from '@/use/navigation';
|
|
5
|
+
import type { GStepValue, GStepperActivation, GStepperItemSlotProps, GStepperOrientation, GStepperResolvedItem, GStepperSemanticState, GStepperSlotProps, GStepperStepState, GStepperVariant } from './types';
|
|
6
|
+
export interface GStepperContext<T = unknown, V = GStepValue> {
|
|
7
|
+
modelValue: Ref<V | undefined>;
|
|
8
|
+
items: ComputedRef<GStepperResolvedItem<T, V>[]>;
|
|
9
|
+
activeItem: ComputedRef<GStepperResolvedItem<T, V> | undefined>;
|
|
10
|
+
activeIndex: ComputedRef<number>;
|
|
11
|
+
color: ComputedRef<GColor | undefined>;
|
|
12
|
+
activeColor: ComputedRef<GColor | undefined>;
|
|
13
|
+
activation: ComputedRef<GStepperActivation>;
|
|
14
|
+
orientation: ComputedRef<GStepperOrientation>;
|
|
15
|
+
variant: ComputedRef<GStepperVariant>;
|
|
16
|
+
size: ComputedRef<Sizes>;
|
|
17
|
+
disabled: ComputedRef<boolean>;
|
|
18
|
+
canPrev: ComputedRef<boolean>;
|
|
19
|
+
canNext: ComputedRef<boolean>;
|
|
20
|
+
isLast: ComputedRef<boolean>;
|
|
21
|
+
prevText: ComputedRef<string>;
|
|
22
|
+
nextText: ComputedRef<string>;
|
|
23
|
+
finishText: ComputedRef<string>;
|
|
24
|
+
isSelected: (value: V | undefined) => boolean;
|
|
25
|
+
isStepAvailable: (item: GStepperResolvedItem<T, V>) => boolean;
|
|
26
|
+
isStepCompleted: (item: GStepperResolvedItem<T, V>) => boolean;
|
|
27
|
+
getItemState: (item: GStepperResolvedItem<T, V>) => GStepperStepState;
|
|
28
|
+
getItemSemanticState: (item: GStepperResolvedItem<T, V>) => GStepperSemanticState | undefined;
|
|
29
|
+
select: (value: V | undefined, event?: Event) => void;
|
|
30
|
+
next: (event?: Event) => void;
|
|
31
|
+
prev: (event?: Event) => void;
|
|
32
|
+
finish: (event?: Event) => void;
|
|
33
|
+
registerStep: (registration: GNavigationRegistration<V>) => void;
|
|
34
|
+
unregisterStep: (el: HTMLElement) => void;
|
|
35
|
+
onStepKeydown: (event: KeyboardEvent, value: V | undefined) => void;
|
|
36
|
+
getStepId: (value: V | undefined) => string;
|
|
37
|
+
getPanelId: (value: V | undefined) => string;
|
|
38
|
+
getItemSlotProps: (item: GStepperResolvedItem<T, V>) => GStepperItemSlotProps<T, V>;
|
|
39
|
+
getSlotProps: () => GStepperSlotProps<T, V>;
|
|
40
|
+
}
|
|
41
|
+
export declare const provideStepper: <T = unknown, V = GStepValue>(context: GStepperContext<T, V>) => void;
|
|
42
|
+
export declare const useStepperInject: <T = unknown, V = GStepValue>() => GStepperContext<T, V> | null;
|