@up-packages/ui 0.1.1-qa.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/LICENSE +22 -0
- package/README.md +360 -0
- package/dist/components/UpAccordion/UpAccordion.vue.d.ts +26 -0
- package/dist/components/UpAccordion/index.d.ts +2 -0
- package/dist/components/UpBadge/UpBadge.vue.d.ts +41 -0
- package/dist/components/UpBadge/index.d.ts +2 -0
- package/dist/components/UpButton/UpButton.vue.d.ts +30 -0
- package/dist/components/UpButton/index.d.ts +2 -0
- package/dist/components/UpCalendar/UpCalendar.vue.d.ts +35 -0
- package/dist/components/UpCalendar/index.d.ts +2 -0
- package/dist/components/UpCard/UpCard.vue.d.ts +20 -0
- package/dist/components/UpCard/UpCardIndicator.vue.d.ts +17 -0
- package/dist/components/UpCard/UpCardInfo.vue.d.ts +16 -0
- package/dist/components/UpCard/UpCardInteractive.vue.d.ts +23 -0
- package/dist/components/UpCard/UpCardItem.vue.d.ts +15 -0
- package/dist/components/UpCard/UpCardList.vue.d.ts +12 -0
- package/dist/components/UpCard/UpCardNode.vue.d.ts +21 -0
- package/dist/components/UpCard/UpCardProduct.vue.d.ts +16 -0
- package/dist/components/UpCard/index.d.ts +9 -0
- package/dist/components/UpCard/types.d.ts +33 -0
- package/dist/components/UpCell/UpCell.vue.d.ts +17 -0
- package/dist/components/UpCell/index.d.ts +6 -0
- package/dist/components/UpCell/types.d.ts +24 -0
- package/dist/components/UpCheckbox/UpCheckbox.vue.d.ts +11 -0
- package/dist/components/UpCheckbox/index.d.ts +6 -0
- package/dist/components/UpCheckbox/types.d.ts +31 -0
- package/dist/components/UpDataTable/UpDataTable.vue.d.ts +70 -0
- package/dist/components/UpDataTable/index.d.ts +2 -0
- package/dist/components/UpDatePicker/UpDatePicker.vue.d.ts +59 -0
- package/dist/components/UpDatePicker/index.d.ts +2 -0
- package/dist/components/UpDivider/UpDivider.vue.d.ts +5 -0
- package/dist/components/UpDivider/index.d.ts +2 -0
- package/dist/components/UpDivider/types.d.ts +7 -0
- package/dist/components/UpEnvironmentBadge/UpEnvironmentBadge.vue.d.ts +2 -0
- package/dist/components/UpEnvironmentBadge/index.d.ts +1 -0
- package/dist/components/UpFloatMenu/UpFloatMenu.vue.d.ts +16 -0
- package/dist/components/UpFloatMenu/index.d.ts +2 -0
- package/dist/components/UpFloatMenu/types.d.ts +41 -0
- package/dist/components/UpNotification/UpNotification.vue.d.ts +11 -0
- package/dist/components/UpNotification/index.d.ts +2 -0
- package/dist/components/UpPagination/UpPagination.vue.d.ts +26 -0
- package/dist/components/UpPagination/index.d.ts +2 -0
- package/dist/components/UpPagination/types.d.ts +20 -0
- package/dist/components/UpProduct/UpProduct.vue.d.ts +3 -0
- package/dist/components/UpProduct/index.d.ts +2 -0
- package/dist/components/UpProduct/types.d.ts +7 -0
- package/dist/components/UpRadio/UpRadio.vue.d.ts +52 -0
- package/dist/components/UpRadio/index.d.ts +2 -0
- package/dist/components/UpSelect/UpSelect.vue.d.ts +97 -0
- package/dist/components/UpSelect/index.d.ts +2 -0
- package/dist/components/UpSelect/types.d.ts +38 -0
- package/dist/components/UpSideBar/UpSideBar.vue.d.ts +23 -0
- package/dist/components/UpSideBar/index.d.ts +2 -0
- package/dist/components/UpSideBar/types.d.ts +11 -0
- package/dist/components/UpStepper/UpStepper.vue.d.ts +11 -0
- package/dist/components/UpStepper/index.d.ts +2 -0
- package/dist/components/UpStepper/types.d.ts +9 -0
- package/dist/components/UpSwitch/UpSwitch.vue.d.ts +15 -0
- package/dist/components/UpSwitch/index.d.ts +2 -0
- package/dist/components/UpTab/UpTab.vue.d.ts +13 -0
- package/dist/components/UpTab/index.d.ts +2 -0
- package/dist/components/UpTab/types.d.ts +11 -0
- package/dist/components/UpTextField/UpTextField.vue.d.ts +73 -0
- package/dist/components/UpTextField/index.d.ts +2 -0
- package/dist/components/UpTitleBar/UpTitleBar.vue.d.ts +13 -0
- package/dist/components/UpTitleBar/index.d.ts +2 -0
- package/dist/components/UpTitleBar/types.d.ts +9 -0
- package/dist/components/UpToast/UpToast.vue.d.ts +44 -0
- package/dist/components/UpToast/index.d.ts +2 -0
- package/dist/components/UpTooltip/UpTooltip.vue.d.ts +19 -0
- package/dist/components/UpTooltip/index.d.ts +2 -0
- package/dist/components/UpTooltip/types.d.ts +6 -0
- package/dist/components/UpWindow/UpWindow.vue.d.ts +22 -0
- package/dist/components/UpWindow/index.d.ts +2 -0
- package/dist/components/UpWindow/types.d.ts +16 -0
- package/dist/components/index.d.ts +50 -0
- package/dist/composables/index.d.ts +6 -0
- package/dist/composables/useToast.d.ts +40 -0
- package/dist/config/environments.d.ts +26 -0
- package/dist/directives/index.d.ts +21 -0
- package/dist/directives/textFormat.d.ts +15 -0
- package/dist/index.d.ts +10 -0
- package/dist/install.d.ts +35 -0
- package/dist/plugins/vuetify.d.ts +142 -0
- package/dist/uplexis-ui.css +5 -0
- package/dist/uplexis-ui.js +15474 -0
- package/dist/uplexis-ui.js.map +1 -0
- package/dist/uplexis-ui.umd.cjs +5 -0
- package/dist/uplexis-ui.umd.cjs.map +1 -0
- package/dist/utils/formatters.d.ts +49 -0
- package/dist/utils/helpers.d.ts +19 -0
- package/dist/utils/index.d.ts +6 -0
- package/package.json +82 -0
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface UpSelectProps {
|
|
2
|
+
/**
|
|
3
|
+
* Nome da propriedade do objeto que será exibida como label
|
|
4
|
+
*/
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* Array de opções disponíveis para seleção
|
|
8
|
+
*/
|
|
9
|
+
options: Array<any>;
|
|
10
|
+
/**
|
|
11
|
+
* Texto exibido quando nenhuma opção está selecionada
|
|
12
|
+
*/
|
|
13
|
+
placeholder: string;
|
|
14
|
+
/**
|
|
15
|
+
* Valor selecionado (v-model)
|
|
16
|
+
*/
|
|
17
|
+
modelValue?: any;
|
|
18
|
+
/**
|
|
19
|
+
* Permite selecionar múltiplas opções
|
|
20
|
+
*/
|
|
21
|
+
allowMultiple?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Permite criar novas tags digitando
|
|
24
|
+
*/
|
|
25
|
+
isTaggable?: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Mensagem de erro exibida abaixo do select
|
|
28
|
+
*/
|
|
29
|
+
error?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Desabilita o select
|
|
32
|
+
*/
|
|
33
|
+
disabled?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Função para transformar a opção selecionada (ex: retornar apenas o ID)
|
|
36
|
+
*/
|
|
37
|
+
reduce?: (option: any) => any;
|
|
38
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { UpSideBarProps, UpSideBarItem } from "./types";
|
|
2
|
+
declare var __VLS_1: {}, __VLS_16: string, __VLS_17: {
|
|
3
|
+
close: () => void;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_Slots = {} & {
|
|
6
|
+
[K in NonNullable<typeof __VLS_16>]?: (props: typeof __VLS_17) => any;
|
|
7
|
+
} & {
|
|
8
|
+
header?: (props: typeof __VLS_1) => any;
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_component: import("vue").DefineComponent<UpSideBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
itemClick: (item: UpSideBarItem) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<UpSideBarProps> & Readonly<{
|
|
13
|
+
onItemClick?: ((item: UpSideBarItem) => any) | undefined;
|
|
14
|
+
}>, {
|
|
15
|
+
to: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface UpSideBarItem {
|
|
2
|
+
clickable?: boolean;
|
|
3
|
+
space?: boolean;
|
|
4
|
+
icon?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
collisionPadding?: number | Partial<Record<"top" | "right" | "bottom" | "left", number>>;
|
|
7
|
+
}
|
|
8
|
+
export interface UpSideBarProps {
|
|
9
|
+
items: UpSideBarItem[];
|
|
10
|
+
to?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { NavigationItem, UpStepperProps } from "./types";
|
|
2
|
+
type __VLS_Props = UpStepperProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
modelValue?: NavigationItem;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:modelValue": (value: NavigationItem) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:modelValue"?: ((value: NavigationItem) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface UpSwitchProps {
|
|
2
|
+
id?: string;
|
|
3
|
+
onLabel?: string;
|
|
4
|
+
offLabel?: string;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = UpSwitchProps;
|
|
7
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
8
|
+
"state"?: boolean;
|
|
9
|
+
};
|
|
10
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:state": (value: boolean) => any;
|
|
12
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
13
|
+
"onUpdate:state"?: ((value: boolean) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UpTabProps } from "./types";
|
|
2
|
+
type __VLS_Props = UpTabProps;
|
|
3
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
4
|
+
"tab"?: string;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
+
"update:tab": (value: string | undefined) => any;
|
|
8
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
9
|
+
"onUpdate:tab"?: ((value: string | undefined) => any) | undefined;
|
|
10
|
+
}>, {
|
|
11
|
+
showArrows: boolean;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
export interface UpTextFieldProps {
|
|
2
|
+
modelValue?: string | number;
|
|
3
|
+
id?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
hint?: string;
|
|
7
|
+
persistentHint?: boolean;
|
|
8
|
+
type?: string;
|
|
9
|
+
variant?: "outlined" | "filled" | "underlined" | "solo" | "solo-inverted" | "solo-filled" | "plain";
|
|
10
|
+
density?: "default" | "comfortable" | "compact";
|
|
11
|
+
color?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
readonly?: boolean;
|
|
14
|
+
loading?: boolean;
|
|
15
|
+
clearable?: boolean;
|
|
16
|
+
prependIcon?: string;
|
|
17
|
+
prependInnerIcon?: string;
|
|
18
|
+
appendIcon?: string;
|
|
19
|
+
appendInnerIcon?: string;
|
|
20
|
+
rules?: Array<(value: any) => boolean | string>;
|
|
21
|
+
errorMessages?: string | string[];
|
|
22
|
+
counter?: boolean | number | string;
|
|
23
|
+
maxlength?: number | string;
|
|
24
|
+
rounded?: string | number | boolean;
|
|
25
|
+
pattern?: string;
|
|
26
|
+
required?: boolean;
|
|
27
|
+
error?: {
|
|
28
|
+
message: string;
|
|
29
|
+
} | null;
|
|
30
|
+
icon?: string;
|
|
31
|
+
}
|
|
32
|
+
declare var __VLS_15: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {};
|
|
33
|
+
type __VLS_Slots = {} & {
|
|
34
|
+
prepend?: (props: typeof __VLS_15) => any;
|
|
35
|
+
} & {
|
|
36
|
+
'prepend-inner'?: (props: typeof __VLS_17) => any;
|
|
37
|
+
} & {
|
|
38
|
+
append?: (props: typeof __VLS_19) => any;
|
|
39
|
+
} & {
|
|
40
|
+
'append-inner'?: (props: typeof __VLS_21) => any;
|
|
41
|
+
};
|
|
42
|
+
declare const __VLS_component: import("vue").DefineComponent<UpTextFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
43
|
+
enter: () => any;
|
|
44
|
+
"update:modelValue": (value: string | number) => any;
|
|
45
|
+
click: () => any;
|
|
46
|
+
focus: (event: FocusEvent) => any;
|
|
47
|
+
blur: (event: FocusEvent) => any;
|
|
48
|
+
}, string, import("vue").PublicProps, Readonly<UpTextFieldProps> & Readonly<{
|
|
49
|
+
onEnter?: (() => any) | undefined;
|
|
50
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
51
|
+
onClick?: (() => any) | undefined;
|
|
52
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
53
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
54
|
+
}>, {
|
|
55
|
+
rounded: string | number | boolean;
|
|
56
|
+
variant: "outlined" | "filled" | "underlined" | "solo" | "solo-inverted" | "solo-filled" | "plain";
|
|
57
|
+
density: "default" | "comfortable" | "compact";
|
|
58
|
+
color: string;
|
|
59
|
+
loading: boolean;
|
|
60
|
+
disabled: boolean;
|
|
61
|
+
type: string;
|
|
62
|
+
required: boolean;
|
|
63
|
+
readonly: boolean;
|
|
64
|
+
persistentHint: boolean;
|
|
65
|
+
clearable: boolean;
|
|
66
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
67
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
68
|
+
export default _default;
|
|
69
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
70
|
+
new (): {
|
|
71
|
+
$slots: S;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { UpTitleBarProps } from "./types";
|
|
2
|
+
declare const _default: import("vue").DefineComponent<UpTitleBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
3
|
+
close: () => any;
|
|
4
|
+
}, string, import("vue").PublicProps, Readonly<UpTitleBarProps> & Readonly<{
|
|
5
|
+
onClose?: (() => any) | undefined;
|
|
6
|
+
}>, {
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
title: string;
|
|
9
|
+
bordered: boolean;
|
|
10
|
+
closeable: boolean;
|
|
11
|
+
headingType: import("./types").HeadingType;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface UpToastProps {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
type?: "success" | "info" | "warning" | "error" | "default";
|
|
6
|
+
icon?: string;
|
|
7
|
+
requireClose?: boolean;
|
|
8
|
+
closable?: boolean;
|
|
9
|
+
duration?: number;
|
|
10
|
+
position?: "top" | "top-right" | "top-left" | "bottom" | "bottom-right" | "bottom-left";
|
|
11
|
+
showProgress?: boolean;
|
|
12
|
+
maxWidth?: string | number;
|
|
13
|
+
closeIcon?: string;
|
|
14
|
+
}
|
|
15
|
+
declare var __VLS_21: {
|
|
16
|
+
close: () => void;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
actions?: (props: typeof __VLS_21) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<UpToastProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
close: () => any;
|
|
23
|
+
"update:modelValue": (value: boolean) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<UpToastProps> & Readonly<{
|
|
25
|
+
onClose?: (() => any) | undefined;
|
|
26
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
27
|
+
}>, {
|
|
28
|
+
modelValue: boolean;
|
|
29
|
+
type: "success" | "info" | "warning" | "error" | "default";
|
|
30
|
+
duration: number;
|
|
31
|
+
maxWidth: string | number;
|
|
32
|
+
position: "top" | "top-right" | "top-left" | "bottom" | "bottom-right" | "bottom-left";
|
|
33
|
+
closable: boolean;
|
|
34
|
+
closeIcon: string;
|
|
35
|
+
requireClose: boolean;
|
|
36
|
+
showProgress: boolean;
|
|
37
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
38
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
39
|
+
export default _default;
|
|
40
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
41
|
+
new (): {
|
|
42
|
+
$slots: S;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { UpTooltipProps } from "./types";
|
|
2
|
+
declare var __VLS_6: {}, __VLS_8: {};
|
|
3
|
+
type __VLS_Slots = {} & {
|
|
4
|
+
trigger?: (props: typeof __VLS_6) => any;
|
|
5
|
+
} & {
|
|
6
|
+
content?: (props: typeof __VLS_8) => any;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<UpTooltipProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<UpTooltipProps> & Readonly<{}>, {
|
|
9
|
+
side: import("./types").TooltipSide;
|
|
10
|
+
delay: number;
|
|
11
|
+
tooltipText: string;
|
|
12
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { UpWindowProps } from "./types";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
props: UpWindowProps;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_9: {}, __VLS_11: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_9) => any;
|
|
8
|
+
} & {
|
|
9
|
+
default?: (props: typeof __VLS_11) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
|
+
close: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onClose?: (() => any) | undefined;
|
|
15
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
16
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
17
|
+
export default _default;
|
|
18
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
19
|
+
new (): {
|
|
20
|
+
$slots: S;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
type Modal = {
|
|
2
|
+
type: "modal";
|
|
3
|
+
border: "top" | "left";
|
|
4
|
+
color: "white" | "grey";
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
scrollable?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type Window = {
|
|
9
|
+
type: "window";
|
|
10
|
+
title: string;
|
|
11
|
+
titleIcon?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
scrollable?: boolean;
|
|
14
|
+
};
|
|
15
|
+
export type UpWindowProps = Modal | Window;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export { UpButton } from "./UpButton";
|
|
2
|
+
export { UpTextField } from "./UpTextField";
|
|
3
|
+
export { UpSelect } from "./UpSelect";
|
|
4
|
+
export { UpRadio } from "./UpRadio";
|
|
5
|
+
export { UpSwitch } from "./UpSwitch";
|
|
6
|
+
export { UpCalendar } from "./UpCalendar";
|
|
7
|
+
export { UpDatePicker } from "./UpDatePicker";
|
|
8
|
+
export { UpToast } from "./UpToast";
|
|
9
|
+
export { UpNotification } from "./UpNotification";
|
|
10
|
+
export { UpAccordion } from "./UpAccordion";
|
|
11
|
+
export { UpBadge } from "./UpBadge";
|
|
12
|
+
export { UpCard, UpCardNode, UpCardInfo, UpCardList, UpCardItem, UpCardProduct, UpCardInteractive, UpCardIndicator, } from "./UpCard";
|
|
13
|
+
export { UpCell } from "./UpCell";
|
|
14
|
+
export { UpCheckbox } from "./UpCheckbox";
|
|
15
|
+
export { UpDataTable } from "./UpDataTable";
|
|
16
|
+
export { UpDivider } from "./UpDivider";
|
|
17
|
+
export { UpEnvironmentBadge } from "./UpEnvironmentBadge";
|
|
18
|
+
export { UpFloatMenu } from "./UpFloatMenu";
|
|
19
|
+
export { UpPagination } from "./UpPagination";
|
|
20
|
+
export { UpProduct } from "./UpProduct";
|
|
21
|
+
export { UpSideBar } from "./UpSideBar";
|
|
22
|
+
export { UpStepper } from "./UpStepper";
|
|
23
|
+
export { UpTab } from "./UpTab";
|
|
24
|
+
export { UpTitleBar } from "./UpTitleBar";
|
|
25
|
+
export { UpTooltip } from "./UpTooltip";
|
|
26
|
+
export { UpWindow } from "./UpWindow";
|
|
27
|
+
export type { UpButtonProps } from "./UpButton";
|
|
28
|
+
export type { UpTextFieldProps } from "./UpTextField";
|
|
29
|
+
export type { UpSelectProps } from "./UpSelect";
|
|
30
|
+
export type { UpRadioProps, UpRadioOption } from "./UpRadio";
|
|
31
|
+
export type { UpSwitchProps } from "./UpSwitch";
|
|
32
|
+
export type { UpCalendarProps, UpCalendarEvent, UpCalendarDay, } from "./UpCalendar";
|
|
33
|
+
export type { UpDatePickerProps, UpDatePickerDay } from "./UpDatePicker";
|
|
34
|
+
export type { UpToastProps } from "./UpToast";
|
|
35
|
+
export type { UpNotificationProps } from "./UpNotification";
|
|
36
|
+
export type { UpAccordionProps, UpAccordionItem } from "./UpAccordion";
|
|
37
|
+
export type { UpBadgeProps, UpBadgeType, UpBadgeVariant, UpBadgeSize, } from "./UpBadge";
|
|
38
|
+
export type { UpDataTableProps, UpDataTableHeader } from "./UpDataTable";
|
|
39
|
+
export type { UpCardProps, UpCardNodeProps, UpCardInfoProps, UpCardListProps, UpCardItemProps, UpCardProductProps, UpCardInteractiveProps, UpCardIndicatorProps, UpCardEntityType, UpCardInfoVariant, } from "./UpCard";
|
|
40
|
+
export type { UpCellProps, UpCellType, UpCellFormatter } from "./UpCell";
|
|
41
|
+
export type { UpCheckboxProps } from "./UpCheckbox";
|
|
42
|
+
export type { UpDividerProps } from "./UpDivider";
|
|
43
|
+
export type { UpFloatMenuProps, UpFloatMenuItem } from "./UpFloatMenu";
|
|
44
|
+
export type { UpPaginationProps } from "./UpPagination";
|
|
45
|
+
export type { UpProductProps, UpProductType } from "./UpProduct";
|
|
46
|
+
export type { UpStepperProps, NavigationItem } from "./UpStepper";
|
|
47
|
+
export type { UpTabProps, TabItem } from "./UpTab";
|
|
48
|
+
export type { UpTitleBarProps, HeadingType } from "./UpTitleBar";
|
|
49
|
+
export type { UpTooltipProps, TooltipSide } from "./UpTooltip";
|
|
50
|
+
export type { UpWindowProps } from "./UpWindow";
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Composable useToast
|
|
3
|
+
* Sistema de gerenciamento de notificações toast
|
|
4
|
+
* Compatível com @aplicativo/uplexis-ui v1.7.7
|
|
5
|
+
*/
|
|
6
|
+
import { type Ref } from "vue";
|
|
7
|
+
export interface ToastOptions {
|
|
8
|
+
id?: number | string;
|
|
9
|
+
title?: string;
|
|
10
|
+
content: string;
|
|
11
|
+
type?: "success" | "error" | "warning" | "info" | "neutral";
|
|
12
|
+
icon?: string;
|
|
13
|
+
size?: "sm" | "lg";
|
|
14
|
+
outlined?: boolean;
|
|
15
|
+
duration?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface Toast extends Required<Omit<ToastOptions, "duration">> {
|
|
18
|
+
duration: number;
|
|
19
|
+
timestamp: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Composable para gerenciar toasts/notificações
|
|
23
|
+
* @param toastRef - Referência opcional do componente UpToast
|
|
24
|
+
* @returns Objeto com funções para gerenciar toasts
|
|
25
|
+
* @example
|
|
26
|
+
* const { addToast, removeToast, clearToasts } = useToast()
|
|
27
|
+
*
|
|
28
|
+
* addToast({
|
|
29
|
+
* title: 'Sucesso',
|
|
30
|
+
* content: 'Operação realizada com sucesso!',
|
|
31
|
+
* type: 'success'
|
|
32
|
+
* })
|
|
33
|
+
*/
|
|
34
|
+
export declare function useToast(toastRef?: any): {
|
|
35
|
+
toasts: Ref<Toast[], Toast[]>;
|
|
36
|
+
addToast: (options: ToastOptions) => Toast;
|
|
37
|
+
removeToast: (id: number | string) => void;
|
|
38
|
+
clearToasts: () => void;
|
|
39
|
+
};
|
|
40
|
+
export default useToast;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type Environment = 'development' | 'qa' | 'staging' | 'production';
|
|
2
|
+
export interface EnvironmentConfig {
|
|
3
|
+
name: Environment;
|
|
4
|
+
version: string;
|
|
5
|
+
debug: boolean;
|
|
6
|
+
telemetry: boolean;
|
|
7
|
+
apiUrl?: string;
|
|
8
|
+
storagePrefix: string;
|
|
9
|
+
theme: {
|
|
10
|
+
showEnvironmentBadge: boolean;
|
|
11
|
+
environmentBadgeColor?: string;
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export declare const currentEnvironment: Environment;
|
|
15
|
+
export declare const config: EnvironmentConfig;
|
|
16
|
+
export declare const isDevelopment: boolean;
|
|
17
|
+
export declare const isQA: boolean;
|
|
18
|
+
export declare const isStaging: boolean;
|
|
19
|
+
export declare const isProduction: boolean;
|
|
20
|
+
export declare const logger: {
|
|
21
|
+
debug: (...args: any[]) => void;
|
|
22
|
+
info: (...args: any[]) => void;
|
|
23
|
+
warn: (...args: any[]) => void;
|
|
24
|
+
error: (...args: any[]) => void;
|
|
25
|
+
};
|
|
26
|
+
export default config;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diretivas Vue
|
|
3
|
+
* Compatível com @aplicativo/uplexis-ui v1.7.7
|
|
4
|
+
*/
|
|
5
|
+
import type { App } from 'vue';
|
|
6
|
+
import { vTextFormat } from './textFormat';
|
|
7
|
+
/**
|
|
8
|
+
* Instala todas as diretivas no app Vue
|
|
9
|
+
* @param app - Instância do app Vue
|
|
10
|
+
* @example
|
|
11
|
+
* import { installDirectives } from '@uplexis/ui'
|
|
12
|
+
*
|
|
13
|
+
* const app = createApp(App)
|
|
14
|
+
* installDirectives(app)
|
|
15
|
+
*/
|
|
16
|
+
export declare function installDirectives(app: App): void;
|
|
17
|
+
export { vTextFormat };
|
|
18
|
+
declare const _default: {
|
|
19
|
+
install: typeof installDirectives;
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Diretiva v-text-format
|
|
3
|
+
* Formata automaticamente o conteúdo de texto de um elemento
|
|
4
|
+
* Compatível com @aplicativo/uplexis-ui v1.7.7
|
|
5
|
+
*/
|
|
6
|
+
import type { Directive } from 'vue';
|
|
7
|
+
type FormatType = 'cpf' | 'cnpj' | 'currency' | 'date';
|
|
8
|
+
/**
|
|
9
|
+
* Diretiva para formatação automática de texto
|
|
10
|
+
* @example
|
|
11
|
+
* <p v-text-format="'cpf'">12345678900</p>
|
|
12
|
+
* <!-- Renderiza: 123.456.789-00 -->
|
|
13
|
+
*/
|
|
14
|
+
export declare const vTextFormat: Directive<HTMLElement, FormatType>;
|
|
15
|
+
export default vTextFormat;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as UplexisUI } from "./install";
|
|
2
|
+
export { default } from "./install";
|
|
3
|
+
export * from "./components";
|
|
4
|
+
export { default as vuetify, uplexisLight, uplexisDark, uplexisColors, } from "./plugins/vuetify";
|
|
5
|
+
export { config, currentEnvironment, isDevelopment, isQA, isStaging, isProduction, logger, } from "./config/environments";
|
|
6
|
+
export * from "./utils";
|
|
7
|
+
export * from "./composables";
|
|
8
|
+
export * from "./directives";
|
|
9
|
+
export type { App } from "vue";
|
|
10
|
+
export type { Environment, EnvironmentConfig } from "./config/environments";
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { App } from "vue";
|
|
2
|
+
import "./styles/index.scss";
|
|
3
|
+
import { UpAccordion } from "./components/UpAccordion";
|
|
4
|
+
import { UpBadge } from "./components/UpBadge";
|
|
5
|
+
import { UpButton } from "./components/UpButton";
|
|
6
|
+
import { UpCalendar } from "./components/UpCalendar";
|
|
7
|
+
import { UpCard } from "./components/UpCard";
|
|
8
|
+
import { UpCell } from "./components/UpCell";
|
|
9
|
+
import { UpCheckbox } from "./components/UpCheckbox";
|
|
10
|
+
import { UpDataTable } from "./components/UpDataTable";
|
|
11
|
+
import { UpDatePicker } from "./components/UpDatePicker";
|
|
12
|
+
import { UpDivider } from "./components/UpDivider";
|
|
13
|
+
import { UpEnvironmentBadge } from "./components/UpEnvironmentBadge";
|
|
14
|
+
import { UpFloatMenu } from "./components/UpFloatMenu";
|
|
15
|
+
import { UpNotification } from "./components/UpNotification";
|
|
16
|
+
import { UpPagination } from "./components/UpPagination";
|
|
17
|
+
import { UpProduct } from "./components/UpProduct";
|
|
18
|
+
import { UpRadio } from "./components/UpRadio";
|
|
19
|
+
import { UpSelect } from "./components/UpSelect";
|
|
20
|
+
import { UpSideBar } from "./components/UpSideBar";
|
|
21
|
+
import { UpStepper } from "./components/UpStepper";
|
|
22
|
+
import { UpSwitch } from "./components/UpSwitch";
|
|
23
|
+
import { UpTab } from "./components/UpTab";
|
|
24
|
+
import { UpTextField } from "./components/UpTextField";
|
|
25
|
+
import { UpTitleBar } from "./components/UpTitleBar";
|
|
26
|
+
import { UpToast } from "./components/UpToast";
|
|
27
|
+
import { UpTooltip } from "./components/UpTooltip";
|
|
28
|
+
import { UpWindow } from "./components/UpWindow";
|
|
29
|
+
declare const _default: {
|
|
30
|
+
install(app: App, options?: {
|
|
31
|
+
vuetify?: any;
|
|
32
|
+
}): void;
|
|
33
|
+
};
|
|
34
|
+
export default _default;
|
|
35
|
+
export { UpAccordion, UpBadge, UpButton, UpCalendar, UpCard, UpCell, UpCheckbox, UpDataTable, UpDatePicker, UpDivider, UpEnvironmentBadge, UpFloatMenu, UpNotification, UpPagination, UpProduct, UpRadio, UpSelect, UpSideBar, UpStepper, UpSwitch, UpTab, UpTextField, UpTitleBar, UpToast, UpTooltip, UpWindow, };
|