@datametria/vue-components 2.2.0 → 2.3.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.
Files changed (78) hide show
  1. package/README.md +25 -7
  2. package/dist/index.es.js +3378 -2148
  3. package/dist/index.umd.js +9 -9
  4. package/dist/src/components/DatametriaAutocomplete.vue.d.ts +14 -17
  5. package/dist/src/components/DatametriaBreadcrumb.vue.d.ts +39 -7
  6. package/dist/src/components/DatametriaCheckbox.vue.d.ts +35 -6
  7. package/dist/src/components/DatametriaCheckboxGroup.vue.d.ts +30 -0
  8. package/dist/src/components/DatametriaDataTable.vue.d.ts +64 -0
  9. package/dist/src/components/DatametriaDatePicker.vue.d.ts +15 -37
  10. package/dist/src/components/DatametriaDialog.vue.d.ts +71 -0
  11. package/dist/src/components/DatametriaEmpty.vue.d.ts +30 -0
  12. package/dist/src/components/DatametriaFloatingBar.vue.d.ts +2 -2
  13. package/dist/src/components/DatametriaForm.vue.d.ts +40 -0
  14. package/dist/src/components/DatametriaFormItem.vue.d.ts +28 -0
  15. package/dist/src/components/DatametriaGrid.vue.d.ts +1 -1
  16. package/dist/src/components/DatametriaInput.vue.d.ts +69 -10
  17. package/dist/src/components/DatametriaMenu.vue.d.ts +3 -3
  18. package/dist/src/components/DatametriaNavbar.vue.d.ts +2 -2
  19. package/dist/src/components/DatametriaPagination.vue.d.ts +29 -0
  20. package/dist/src/components/DatametriaPopconfirm.vue.d.ts +43 -0
  21. package/dist/src/components/DatametriaProgress.vue.d.ts +33 -8
  22. package/dist/src/components/DatametriaRadio.vue.d.ts +25 -6
  23. package/dist/src/components/DatametriaRadioGroup.vue.d.ts +29 -0
  24. package/dist/src/components/DatametriaResult.vue.d.ts +30 -0
  25. package/dist/src/components/DatametriaSelect.vue.d.ts +16 -11
  26. package/dist/src/components/DatametriaSidebar.vue.d.ts +3 -3
  27. package/dist/src/components/DatametriaSlider.vue.d.ts +3 -3
  28. package/dist/src/components/DatametriaSortableTable.vue.d.ts +1 -1
  29. package/dist/src/components/DatametriaSteps.vue.d.ts +45 -0
  30. package/dist/src/components/DatametriaSwitch.vue.d.ts +9 -4
  31. package/dist/src/components/DatametriaTabPane.vue.d.ts +28 -0
  32. package/dist/src/components/DatametriaTextarea.vue.d.ts +27 -8
  33. package/dist/src/components/DatametriaTimePicker.vue.d.ts +17 -25
  34. package/dist/src/components/DatametriaToast.vue.d.ts +1 -1
  35. package/dist/src/components/DatametriaTooltip.vue.d.ts +1 -1
  36. package/dist/src/components/DatametriaTree.vue.d.ts +31 -0
  37. package/dist/src/components/DatametriaTreeNode.vue.d.ts +17 -0
  38. package/dist/src/components/DatametriaUpload.vue.d.ts +64 -0
  39. package/dist/src/index.d.ts +14 -0
  40. package/dist/vue-components.css +1 -1
  41. package/package.json +4 -3
  42. package/src/components/DatametriaAutocomplete.vue +155 -260
  43. package/src/components/DatametriaBreadcrumb.vue +66 -80
  44. package/src/components/DatametriaCheckbox.vue +150 -37
  45. package/src/components/DatametriaCheckboxGroup.vue +43 -0
  46. package/src/components/DatametriaDataTable.vue +304 -0
  47. package/src/components/DatametriaDatePicker.vue +238 -614
  48. package/src/components/DatametriaDialog.vue +295 -0
  49. package/src/components/DatametriaDropdown.vue +352 -0
  50. package/src/components/DatametriaEmpty.vue +153 -0
  51. package/src/components/DatametriaForm.vue +160 -0
  52. package/src/components/DatametriaFormItem.vue +181 -0
  53. package/src/components/DatametriaInput.vue +226 -63
  54. package/src/components/DatametriaPagination.vue +373 -0
  55. package/src/components/DatametriaPopconfirm.vue +236 -0
  56. package/src/components/DatametriaProgress.vue +176 -63
  57. package/src/components/DatametriaRadio.vue +83 -72
  58. package/src/components/DatametriaRadioGroup.vue +42 -0
  59. package/src/components/DatametriaResult.vue +133 -0
  60. package/src/components/DatametriaSelect.vue +172 -67
  61. package/src/components/DatametriaSortableTable.vue +35 -4
  62. package/src/components/DatametriaSteps.vue +314 -0
  63. package/src/components/DatametriaSwitch.vue +86 -80
  64. package/src/components/DatametriaTabPane.vue +82 -0
  65. package/src/components/DatametriaTextarea.vue +140 -100
  66. package/src/components/DatametriaTimePicker.vue +231 -214
  67. package/src/components/DatametriaTree.vue +124 -0
  68. package/src/components/DatametriaTreeNode.vue +174 -0
  69. package/src/components/DatametriaUpload.vue +365 -0
  70. package/src/index.ts +25 -11
  71. package/src/components/__tests__/DatametriaAutocomplete.test.ts +0 -180
  72. package/src/components/__tests__/DatametriaBreadcrumb.test.ts +0 -75
  73. package/src/components/__tests__/DatametriaCheckbox.test.ts +0 -47
  74. package/src/components/__tests__/DatametriaDatePicker.test.ts +0 -234
  75. package/src/components/__tests__/DatametriaProgress.test.ts +0 -90
  76. package/src/components/__tests__/DatametriaRadio.test.ts +0 -77
  77. package/src/components/__tests__/DatametriaSwitch.test.ts +0 -64
  78. package/src/components/__tests__/DatametriaTextarea.test.ts +0 -66
@@ -0,0 +1,43 @@
1
+ type Placement = 'top' | 'bottom' | 'left' | 'right';
2
+ interface Props {
3
+ title?: string;
4
+ confirmButtonText?: string;
5
+ cancelButtonText?: string;
6
+ placement?: Placement;
7
+ }
8
+ declare function __VLS_template(): {
9
+ attrs: Partial<{}>;
10
+ slots: {
11
+ default?(_: {}): any;
12
+ };
13
+ refs: {
14
+ popconfirmRef: HTMLDivElement;
15
+ triggerRef: HTMLDivElement;
16
+ popoverRef: HTMLDivElement;
17
+ };
18
+ rootEl: HTMLDivElement;
19
+ };
20
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
21
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
22
+ cancel: () => any;
23
+ confirm: () => any;
24
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
+ onCancel?: (() => any) | undefined;
26
+ onConfirm?: (() => any) | undefined;
27
+ }>, {
28
+ title: string;
29
+ placement: Placement;
30
+ confirmButtonText: string;
31
+ cancelButtonText: string;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
33
+ popconfirmRef: HTMLDivElement;
34
+ triggerRef: HTMLDivElement;
35
+ popoverRef: HTMLDivElement;
36
+ }, HTMLDivElement>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -1,12 +1,37 @@
1
+ type ProgressType = 'line' | 'circle' | 'dashboard';
2
+ type ProgressStatus = 'success' | 'warning' | 'error' | '';
1
3
  interface Props {
2
- value: number;
3
- label?: string;
4
- variant?: 'primary' | 'success' | 'warning' | 'error';
5
- showValue?: boolean;
6
- ariaLabel?: string;
4
+ percentage?: number;
5
+ type?: ProgressType;
6
+ status?: ProgressStatus;
7
+ strokeWidth?: number;
8
+ showText?: boolean;
9
+ textInside?: boolean;
10
+ width?: number;
7
11
  }
8
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
9
- variant: "primary" | "success" | "warning" | "error";
10
- showValue: boolean;
12
+ declare function __VLS_template(): {
13
+ attrs: Partial<{}>;
14
+ slots: {
15
+ default?(_: {}): any;
16
+ default?(_: {}): any;
17
+ };
18
+ refs: {};
19
+ rootEl: HTMLDivElement;
20
+ };
21
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
22
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
23
+ type: ProgressType;
24
+ status: ProgressStatus;
25
+ width: number;
26
+ strokeWidth: number;
27
+ percentage: number;
28
+ showText: boolean;
29
+ textInside: boolean;
11
30
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
32
  export default _default;
33
+ type __VLS_WithTemplateSlots<T, S> = T & {
34
+ new (): {
35
+ $slots: S;
36
+ };
37
+ };
@@ -1,17 +1,36 @@
1
1
  interface Props {
2
2
  modelValue?: string | number | boolean;
3
- value: string | number | boolean;
4
3
  label?: string;
5
- name?: string;
6
4
  disabled?: boolean;
7
- error?: string;
8
- ariaLabel?: string;
9
5
  }
10
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
6
+ declare function __VLS_template(): {
7
+ attrs: Partial<{}>;
8
+ slots: {
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {
12
+ inputRef: HTMLInputElement;
13
+ };
14
+ rootEl: HTMLLabelElement;
15
+ };
16
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
17
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
18
+ inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
19
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
20
  "update:modelValue": (value: string | number | boolean) => any;
21
+ change: (value: string | number | boolean) => any;
12
22
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
13
23
  "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
24
+ onChange?: ((value: string | number | boolean) => any) | undefined;
14
25
  }>, {
15
26
  disabled: boolean;
16
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
27
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
28
+ inputRef: HTMLInputElement;
29
+ }, HTMLLabelElement>;
30
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
31
  export default _default;
32
+ type __VLS_WithTemplateSlots<T, S> = T & {
33
+ new (): {
34
+ $slots: S;
35
+ };
36
+ };
@@ -0,0 +1,29 @@
1
+ interface Props {
2
+ modelValue?: string | number | boolean;
3
+ disabled?: boolean;
4
+ }
5
+ declare function __VLS_template(): {
6
+ attrs: Partial<{}>;
7
+ slots: {
8
+ default?(_: {}): any;
9
+ };
10
+ refs: {};
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
+ "update:modelValue": (value: string | number | boolean) => any;
16
+ change: (value: string | number | boolean) => any;
17
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
18
+ "onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
19
+ onChange?: ((value: string | number | boolean) => any) | undefined;
20
+ }>, {
21
+ disabled: boolean;
22
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
24
+ export default _default;
25
+ type __VLS_WithTemplateSlots<T, S> = T & {
26
+ new (): {
27
+ $slots: S;
28
+ };
29
+ };
@@ -0,0 +1,30 @@
1
+ type ResultStatus = 'success' | 'warning' | 'error' | 'info';
2
+ interface Props {
3
+ status?: ResultStatus;
4
+ title?: string;
5
+ subtitle?: string;
6
+ }
7
+ declare function __VLS_template(): {
8
+ attrs: Partial<{}>;
9
+ slots: {
10
+ icon?(_: {}): any;
11
+ title?(_: {}): any;
12
+ subtitle?(_: {}): any;
13
+ extra?(_: {}): any;
14
+ };
15
+ refs: {};
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
20
+ title: string;
21
+ status: ResultStatus;
22
+ subtitle: string;
23
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
24
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
25
+ export default _default;
26
+ type __VLS_WithTemplateSlots<T, S> = T & {
27
+ new (): {
28
+ $slots: S;
29
+ };
30
+ };
@@ -1,23 +1,28 @@
1
- interface Option {
2
- value: string | number;
1
+ interface SelectOption {
3
2
  label: string;
3
+ value: any;
4
+ disabled?: boolean;
4
5
  }
5
6
  interface Props {
6
- modelValue?: string | number;
7
- options: Option[];
8
- label?: string;
7
+ modelValue: any | any[];
8
+ options: SelectOption[];
9
9
  placeholder?: string;
10
- errorMessage?: string;
11
10
  disabled?: boolean;
12
- required?: boolean;
11
+ clearable?: boolean;
12
+ filterable?: boolean;
13
+ multiple?: boolean;
13
14
  }
14
15
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
- "update:modelValue": (value: string) => any;
16
+ "update:modelValue": (value: any) => any;
17
+ change: (value: any) => any;
16
18
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
17
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
19
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
20
+ onChange?: ((value: any) => any) | undefined;
18
21
  }>, {
19
22
  disabled: boolean;
20
- modelValue: string | number;
21
- required: boolean;
23
+ placeholder: string;
24
+ clearable: boolean;
25
+ filterable: boolean;
26
+ multiple: boolean;
22
27
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
23
28
  export default _default;
@@ -21,18 +21,18 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
21
21
  isOpen: import('vue').Ref<boolean, boolean>;
22
22
  toggle: () => void;
23
23
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
- open: () => any;
25
24
  close: () => any;
26
25
  toggle: (isOpen: boolean) => any;
26
+ open: () => any;
27
27
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
28
- onOpen?: (() => any) | undefined;
29
28
  onClose?: (() => any) | undefined;
30
29
  onToggle?: ((isOpen: boolean) => any) | undefined;
30
+ onOpen?: (() => any) | undefined;
31
31
  }>, {
32
32
  variant: "light" | "dark" | "primary";
33
33
  width: string;
34
- ariaLabel: string;
35
34
  position: "left" | "right";
35
+ ariaLabel: string;
36
36
  collapsible: boolean;
37
37
  defaultOpen: boolean;
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLElement>;
@@ -20,19 +20,19 @@ declare const _default: import('vue').DefineComponent<Props, {
20
20
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
21
21
  input: (value: number) => any;
22
22
  "update:modelValue": (value: number) => any;
23
- blur: (event: FocusEvent) => any;
24
23
  change: (value: number) => any;
25
24
  focus: (event: FocusEvent) => any;
25
+ blur: (event: FocusEvent) => any;
26
26
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
27
27
  onInput?: ((value: number) => any) | undefined;
28
28
  "onUpdate:modelValue"?: ((value: number) => any) | undefined;
29
- onBlur?: ((event: FocusEvent) => any) | undefined;
30
29
  onChange?: ((value: number) => any) | undefined;
31
30
  onFocus?: ((event: FocusEvent) => any) | undefined;
31
+ onBlur?: ((event: FocusEvent) => any) | undefined;
32
32
  }>, {
33
+ step: number;
33
34
  min: number;
34
35
  max: number;
35
- step: number;
36
36
  showValue: boolean;
37
37
  showMinMax: boolean;
38
38
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
@@ -16,9 +16,9 @@ declare const __VLS_component: import('vue').DefineComponent<SortableTableProps,
16
16
  }, string, import('vue').PublicProps, Readonly<SortableTableProps> & Readonly<{
17
17
  "onSelection-change"?: ((selectedIds: (string | number)[]) => any) | undefined;
18
18
  }>, {
19
+ filterable: boolean;
19
20
  selectable: boolean;
20
21
  searchable: boolean;
21
- filterable: boolean;
22
22
  paginated: boolean;
23
23
  pageSize: number;
24
24
  pageSizeOptions: number[];
@@ -0,0 +1,45 @@
1
+ /**
2
+ * DatametriaSteps - Componente de passos/wizard
3
+ *
4
+ * @component
5
+ * @example
6
+ * <DatametriaSteps
7
+ * :active="1"
8
+ * :items="[
9
+ * { title: 'Passo 1', description: 'Descrição' },
10
+ * { title: 'Passo 2' },
11
+ * { title: 'Passo 3' }
12
+ * ]"
13
+ * direction="horizontal"
14
+ * />
15
+ */
16
+ export interface StepItem {
17
+ /** Título do passo */
18
+ title: string;
19
+ /** Descrição do passo (opcional) */
20
+ description?: string;
21
+ /** Status customizado do passo */
22
+ status?: 'wait' | 'process' | 'finish' | 'error';
23
+ }
24
+ interface Props {
25
+ /** Índice do passo ativo (0-based) */
26
+ active?: number;
27
+ /** Array de itens dos passos */
28
+ items: StepItem[];
29
+ /** Direção dos passos */
30
+ direction?: 'horizontal' | 'vertical';
31
+ /** Modo simples (sem descrição) */
32
+ simple?: boolean;
33
+ /** Status global (sobrescreve status individual) */
34
+ status?: 'wait' | 'process' | 'finish' | 'error';
35
+ }
36
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ change: (index: number) => any;
38
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
39
+ onChange?: ((index: number) => any) | undefined;
40
+ }>, {
41
+ direction: "horizontal" | "vertical";
42
+ active: number;
43
+ simple: boolean;
44
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
45
+ export default _default;
@@ -1,16 +1,21 @@
1
1
  interface Props {
2
2
  modelValue?: boolean;
3
- label?: string;
4
3
  disabled?: boolean;
5
- error?: string;
6
- ariaLabel?: string;
4
+ loading?: boolean;
5
+ activeColor?: string;
6
+ inactiveColor?: string;
7
7
  }
8
8
  declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
9
  "update:modelValue": (value: boolean) => any;
10
+ change: (value: boolean) => any;
10
11
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
11
12
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
13
+ onChange?: ((value: boolean) => any) | undefined;
12
14
  }>, {
13
15
  disabled: boolean;
16
+ loading: boolean;
14
17
  modelValue: boolean;
15
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
18
+ activeColor: string;
19
+ inactiveColor: string;
20
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>;
16
21
  export default _default;
@@ -0,0 +1,28 @@
1
+ interface Props {
2
+ label: string;
3
+ name?: string;
4
+ disabled?: boolean;
5
+ lazy?: boolean;
6
+ icon?: string;
7
+ badge?: string | number;
8
+ }
9
+ declare function __VLS_template(): {
10
+ attrs: Partial<{}>;
11
+ slots: {
12
+ default?(_: {}): any;
13
+ };
14
+ refs: {};
15
+ rootEl: HTMLDivElement;
16
+ };
17
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
+ declare const __VLS_component: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{}>, {
19
+ disabled: boolean;
20
+ lazy: boolean;
21
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
22
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
23
+ export default _default;
24
+ type __VLS_WithTemplateSlots<T, S> = T & {
25
+ new (): {
26
+ $slots: S;
27
+ };
28
+ };
@@ -1,22 +1,41 @@
1
1
  interface Props {
2
2
  modelValue?: string;
3
- label?: string;
4
3
  placeholder?: string;
5
4
  disabled?: boolean;
6
- required?: boolean;
7
- error?: string;
5
+ readonly?: boolean;
8
6
  rows?: number;
9
- maxLength?: number;
10
- ariaLabel?: string;
7
+ maxlength?: number;
8
+ showWordLimit?: boolean;
9
+ autosize?: boolean | {
10
+ minRows?: number;
11
+ maxRows?: number;
12
+ };
11
13
  }
12
- declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
14
+ declare const _default: import('vue').DefineComponent<Props, {
15
+ focus: () => void | undefined;
16
+ blur: () => void | undefined;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
+ input: (value: string) => any;
13
19
  "update:modelValue": (value: string) => any;
20
+ focus: (event: FocusEvent) => any;
21
+ blur: (event: FocusEvent) => any;
14
22
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
23
+ onInput?: ((value: string) => any) | undefined;
15
24
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
25
+ onFocus?: ((event: FocusEvent) => any) | undefined;
26
+ onBlur?: ((event: FocusEvent) => any) | undefined;
16
27
  }>, {
17
28
  disabled: boolean;
18
29
  modelValue: string;
19
- required: boolean;
30
+ placeholder: string;
31
+ readonly: boolean;
20
32
  rows: number;
21
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
33
+ showWordLimit: boolean;
34
+ autosize: boolean | {
35
+ minRows?: number;
36
+ maxRows?: number;
37
+ };
38
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
39
+ textareaRef: HTMLTextAreaElement;
40
+ }, HTMLDivElement>;
22
41
  export default _default;
@@ -1,36 +1,28 @@
1
1
  interface Props {
2
- modelValue?: string;
3
- label?: string;
2
+ modelValue?: string | null;
3
+ format?: string;
4
+ step?: number;
4
5
  placeholder?: string;
5
6
  disabled?: boolean;
6
- required?: boolean;
7
- errorMessage?: string;
8
- successMessage?: string;
9
- helperText?: string;
10
- min?: string;
11
- max?: string;
12
- step?: number;
13
- format24h?: boolean;
7
+ readonly?: boolean;
8
+ range?: boolean;
14
9
  }
15
- declare const _default: import('vue').DefineComponent<Props, {
16
- focus: () => void;
17
- blur: () => void;
18
- inputRef: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
19
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
20
- "update:modelValue": (value: string) => any;
21
- blur: (event: FocusEvent) => any;
22
- change: (value: string) => any;
23
- focus: (event: FocusEvent) => any;
10
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ "update:modelValue": (value: string | null) => any;
12
+ change: (value: string | null) => any;
24
13
  }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
25
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
26
- onBlur?: ((event: FocusEvent) => any) | undefined;
27
- onChange?: ((value: string) => any) | undefined;
28
- onFocus?: ((event: FocusEvent) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
15
+ onChange?: ((value: string | null) => any) | undefined;
29
16
  }>, {
30
- modelValue: string;
17
+ disabled: boolean;
18
+ modelValue: string | null;
19
+ placeholder: string;
20
+ readonly: boolean;
21
+ range: boolean;
22
+ format: string;
31
23
  step: number;
32
- format24h: boolean;
33
24
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
34
25
  inputRef: HTMLInputElement;
26
+ dropdownRef: HTMLDivElement;
35
27
  }, HTMLDivElement>;
36
28
  export default _default;
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, imp
14
14
  }>, {
15
15
  variant: "success" | "error" | "warning" | "info" | "primary";
16
16
  modelValue: boolean;
17
- closable: boolean;
18
17
  duration: number;
18
+ closable: boolean;
19
19
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
20
  export default _default;
@@ -39,12 +39,12 @@ declare const __VLS_component: import('vue').DefineComponent<Props, {
39
39
  }>, {
40
40
  variant: Variant;
41
41
  maxWidth: string;
42
+ offset: number;
42
43
  placement: Placement;
43
44
  trigger: Trigger;
44
45
  showArrow: boolean;
45
46
  delay: number;
46
47
  hideDelay: number;
47
- offset: number;
48
48
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
49
49
  triggerRef: HTMLDivElement;
50
50
  tooltipRef: HTMLDivElement;
@@ -0,0 +1,31 @@
1
+ export interface TreeNode {
2
+ [key: string]: any;
3
+ children?: TreeNode[];
4
+ }
5
+ interface Props {
6
+ data: TreeNode[];
7
+ nodeKey?: string;
8
+ defaultExpandAll?: boolean;
9
+ checkable?: boolean;
10
+ defaultExpandedKeys?: (string | number)[];
11
+ defaultCheckedKeys?: (string | number)[];
12
+ }
13
+ declare const _default: import('vue').DefineComponent<Props, {
14
+ expandAll: () => void;
15
+ collapseAll: () => void;
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
17
+ check: (checkedKeys: (string | number)[], node: TreeNode) => any;
18
+ nodeExpand: (node: TreeNode) => any;
19
+ nodeCollapse: (node: TreeNode) => any;
20
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
21
+ onCheck?: ((checkedKeys: (string | number)[], node: TreeNode) => any) | undefined;
22
+ onNodeExpand?: ((node: TreeNode) => any) | undefined;
23
+ onNodeCollapse?: ((node: TreeNode) => any) | undefined;
24
+ }>, {
25
+ nodeKey: string;
26
+ checkable: boolean;
27
+ defaultExpandAll: boolean;
28
+ defaultExpandedKeys: (string | number)[];
29
+ defaultCheckedKeys: (string | number)[];
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
31
+ export default _default;
@@ -0,0 +1,17 @@
1
+ import { TreeNode } from './DatametriaTree.vue';
2
+ interface Props {
3
+ node: TreeNode;
4
+ nodeKey: string;
5
+ checkable: boolean;
6
+ defaultExpandAll: boolean;
7
+ expandedKeys: Set<string | number>;
8
+ checkedKeys: Set<string | number>;
9
+ }
10
+ declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ toggle: (node: TreeNode) => any;
12
+ check: (node: TreeNode, checked: boolean) => any;
13
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
14
+ onToggle?: ((node: TreeNode) => any) | undefined;
15
+ onCheck?: ((node: TreeNode, checked: boolean) => any) | undefined;
16
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
17
+ export default _default;
@@ -0,0 +1,64 @@
1
+ interface UploadFile {
2
+ uid: string;
3
+ name: string;
4
+ size: number;
5
+ status: 'ready' | 'uploading' | 'success' | 'error';
6
+ progress: number;
7
+ preview?: string;
8
+ raw: File;
9
+ }
10
+ interface Props {
11
+ modelValue?: UploadFile[];
12
+ action?: string;
13
+ accept?: string;
14
+ multiple?: boolean;
15
+ limit?: number;
16
+ maxSize?: number;
17
+ drag?: boolean;
18
+ disabled?: boolean;
19
+ }
20
+ declare function __VLS_template(): {
21
+ attrs: Partial<{}>;
22
+ slots: {
23
+ trigger?(_: {}): any;
24
+ trigger?(_: {}): any;
25
+ };
26
+ refs: {
27
+ inputRef: HTMLInputElement;
28
+ };
29
+ rootEl: HTMLDivElement;
30
+ };
31
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
32
+ declare const __VLS_component: import('vue').DefineComponent<Props, {
33
+ clearFiles: () => void;
34
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ "update:modelValue": (files: UploadFile[]) => any;
36
+ change: (files: UploadFile[]) => any;
37
+ error: (error: Error, file: File) => any;
38
+ success: (response: any, file: UploadFile) => any;
39
+ exceed: (files: File[]) => any;
40
+ }, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
41
+ "onUpdate:modelValue"?: ((files: UploadFile[]) => any) | undefined;
42
+ onChange?: ((files: UploadFile[]) => any) | undefined;
43
+ onError?: ((error: Error, file: File) => any) | undefined;
44
+ onSuccess?: ((response: any, file: UploadFile) => any) | undefined;
45
+ onExceed?: ((files: File[]) => any) | undefined;
46
+ }>, {
47
+ disabled: boolean;
48
+ modelValue: UploadFile[];
49
+ multiple: boolean;
50
+ drag: boolean;
51
+ accept: string;
52
+ maxSize: number;
53
+ action: string;
54
+ limit: number;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
56
+ inputRef: HTMLInputElement;
57
+ }, HTMLDivElement>;
58
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
59
+ export default _default;
60
+ type __VLS_WithTemplateSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };