@c3labsbr/vuetify-elements 1.0.0 → 1.1.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/components/dialogs/AdjustColumnsDialog.vue.d.ts +24 -0
- package/dist/components/table/GenericHeaderActions.spec.d.ts +1 -0
- package/dist/components/table/GenericItemActions.spec.d.ts +1 -0
- package/dist/components/table/GenericTable.vue.d.ts +1 -4
- package/dist/components/table/GenericTableHeader.spec.d.ts +1 -0
- package/dist/components/table/GenericTableHeader.vue.d.ts +43 -0
- package/dist/helpers/formatters.spec.d.ts +1 -0
- package/dist/helpers/masks.spec.d.ts +1 -0
- package/dist/index.d.ts +4 -3
- package/dist/infra/i18n/adapter.d.ts +3 -0
- package/dist/infra/i18n/en_us/words.json.d.ts +17 -0
- package/dist/infra/i18n/fallback.d.ts +5 -0
- package/dist/infra/i18n/interfaces.d.ts +16 -0
- package/dist/infra/i18n/messages.d.ts +2 -0
- package/dist/infra/i18n/pt_br/words.json.d.ts +17 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/utils/t.d.ts +3 -0
- package/dist/vuetify-elements.cjs.js +3 -3
- package/dist/vuetify-elements.css +1 -1
- package/dist/vuetify-elements.es.js +9819 -9891
- package/package.json +33 -16
- package/dist/components/dialogs/ConfirmDialog.vue.d.ts +0 -25
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IHeader } from '../../interfaces/app';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
showAdjustColumns: boolean;
|
|
4
|
+
};
|
|
5
|
+
type __VLS_PublicProps = {
|
|
6
|
+
"sortedHeaders"?: IHeader[];
|
|
7
|
+
} & __VLS_Props;
|
|
8
|
+
declare const _default: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
9
|
+
"update:showAdjustColumns": (value: boolean) => void;
|
|
10
|
+
"update:sortedHeaders": (value: IHeader[]) => void;
|
|
11
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
12
|
+
"onUpdate:showAdjustColumns"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
"onUpdate:sortedHeaders"?: ((value: IHeader[]) => any) | undefined;
|
|
14
|
+
}, {}, {}>;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
17
|
+
type __VLS_TypePropsToOption<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: import('vue').PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -21,14 +21,11 @@ declare function __VLS_template(): {
|
|
|
21
21
|
slots: Partial<Record<string, (_: {
|
|
22
22
|
item: any;
|
|
23
23
|
}) => any>> & {
|
|
24
|
-
'custom-btn'?(_: {}): any;
|
|
25
24
|
actions?(_: {
|
|
26
25
|
item: unknown;
|
|
27
26
|
}): any;
|
|
28
27
|
};
|
|
29
|
-
refs: {
|
|
30
|
-
refHeadersBoard: HTMLDivElement;
|
|
31
|
-
};
|
|
28
|
+
refs: {};
|
|
32
29
|
rootEl: any;
|
|
33
30
|
};
|
|
34
31
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
keyWord: string;
|
|
3
|
+
hideSearch?: boolean;
|
|
4
|
+
hideHeader?: boolean;
|
|
5
|
+
hideCreate?: boolean;
|
|
6
|
+
};
|
|
7
|
+
type __VLS_PublicProps = {
|
|
8
|
+
"search"?: any;
|
|
9
|
+
} & __VLS_Props;
|
|
10
|
+
declare function __VLS_template(): {
|
|
11
|
+
attrs: Partial<{}>;
|
|
12
|
+
slots: {
|
|
13
|
+
'custom-btn'?(_: {}): any;
|
|
14
|
+
};
|
|
15
|
+
refs: {};
|
|
16
|
+
rootEl: any;
|
|
17
|
+
};
|
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
19
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_TypePropsToOption<__VLS_PublicProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
createItem: (...args: any[]) => void;
|
|
21
|
+
"update:search": (...args: any[]) => void;
|
|
22
|
+
showAdjustColumns: (...args: any[]) => void;
|
|
23
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToOption<__VLS_PublicProps>>> & {
|
|
24
|
+
onCreateItem?: ((...args: any[]) => any) | undefined;
|
|
25
|
+
"onUpdate:search"?: ((...args: any[]) => any) | undefined;
|
|
26
|
+
onShowAdjustColumns?: ((...args: any[]) => any) | undefined;
|
|
27
|
+
}, {}, {}>;
|
|
28
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
29
|
+
export default _default;
|
|
30
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
31
|
+
type __VLS_TypePropsToOption<T> = {
|
|
32
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
33
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
34
|
+
} : {
|
|
35
|
+
type: import('vue').PropType<T[K]>;
|
|
36
|
+
required: true;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
40
|
+
new (): {
|
|
41
|
+
$slots: S;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { Plugin } from '
|
|
2
|
-
|
|
3
|
-
export
|
|
1
|
+
import { default as Plugin } from './plugin';
|
|
2
|
+
import { default as GenericTable } from './components/table/GenericTable.vue';
|
|
3
|
+
export { Plugin as VuetifyElements, GenericTable };
|
|
4
|
+
export default Plugin;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"vuetify-elements": {
|
|
3
|
+
"actions": "Actions",
|
|
4
|
+
"search": "Search",
|
|
5
|
+
"add": "Add",
|
|
6
|
+
"adjust_columns": "Adjust view columns",
|
|
7
|
+
"delete": "Delete",
|
|
8
|
+
"deleted": "Deleted",
|
|
9
|
+
"cancel": "Cancel",
|
|
10
|
+
"this": "This",
|
|
11
|
+
"was_deleted": "was deleted.",
|
|
12
|
+
"confirm_delete": "Are you sure you want to delete"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
;
|
|
16
|
+
|
|
17
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { LibLocales, MessageKeys } from './interfaces';
|
|
2
|
+
declare let fallbackMessages: import('./interfaces').LibMessages;
|
|
3
|
+
export declare function setFallbackMessages(locale: LibLocales, messages?: Partial<typeof fallbackMessages>): void;
|
|
4
|
+
export declare function fallbackTranslate(key: keyof MessageKeys): string;
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface MessageKeys {
|
|
2
|
+
actions: string;
|
|
3
|
+
search: string;
|
|
4
|
+
add: string;
|
|
5
|
+
adjust_columns: string;
|
|
6
|
+
delete: string;
|
|
7
|
+
deleted: string;
|
|
8
|
+
cancel: string;
|
|
9
|
+
this: string;
|
|
10
|
+
was_deleted: string;
|
|
11
|
+
confirm_delete: string;
|
|
12
|
+
}
|
|
13
|
+
export interface LibMessages {
|
|
14
|
+
'vuetify-elements': MessageKeys;
|
|
15
|
+
}
|
|
16
|
+
export type LibLocales = 'en-US' | 'pt-BR';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
"vuetify-elements": {
|
|
3
|
+
"actions": "Ações",
|
|
4
|
+
"search": "Pesquisar",
|
|
5
|
+
"add": "Adicionar",
|
|
6
|
+
"adjust_columns": "Ajustar colunas de visualização",
|
|
7
|
+
"delete": "Excluir",
|
|
8
|
+
"deleted": "Excluído",
|
|
9
|
+
"cancel": "Cancelar",
|
|
10
|
+
"this": "Esse",
|
|
11
|
+
"was_deleted": "foi deletado.",
|
|
12
|
+
"confirm_delete": "Tem certeza que deseja excluir"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
;
|
|
16
|
+
|
|
17
|
+
export default _default;
|
package/dist/plugin.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { I18n } from 'vue-i18n';
|
|
3
|
+
import { LibLocales } from './infra/i18n/interfaces';
|
|
4
|
+
interface PluginOptions {
|
|
5
|
+
i18n?: I18n;
|
|
6
|
+
locale?: LibLocales;
|
|
7
|
+
messages?: Record<string, any>;
|
|
8
|
+
}
|
|
9
|
+
declare const _default: {
|
|
10
|
+
install(app: App, options?: PluginOptions): void;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|