@salesql/sql_components_vue3 1.0.0 → 2.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.
Files changed (77) hide show
  1. package/dist/constants/events.d.ts +20 -0
  2. package/dist/index.cjs +1 -1
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +40 -6
  5. package/dist/index.es.js +2258 -613
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/sql_components_vue3.css +1 -1
  8. package/dist/ui/DsAlert/DsAlert.vue.d.ts +15 -2
  9. package/dist/ui/DsAvatar/DsAvatar.types.d.ts +6 -0
  10. package/dist/ui/DsAvatar/DsAvatar.vue.d.ts +47 -2
  11. package/dist/ui/DsButton/DsButton.types.d.ts +6 -1
  12. package/dist/ui/DsButton/DsButton.vue.d.ts +11 -5
  13. package/dist/ui/DsCell/DsCell.types.d.ts +19 -0
  14. package/dist/ui/DsCell/DsCell.vue.d.ts +71 -0
  15. package/dist/ui/DsCell/index.d.ts +2 -0
  16. package/dist/ui/DsCheckbox/DsCheckbox.types.d.ts +2 -0
  17. package/dist/ui/DsCheckbox/DsCheckbox.vue.d.ts +10 -1
  18. package/dist/ui/DsContactValue/DsContactValue.types.d.ts +4 -0
  19. package/dist/ui/DsContactValue/DsContactValue.vue.d.ts +18 -0
  20. package/dist/ui/DsCustomTag/DsCustomTag.types.d.ts +9 -0
  21. package/dist/ui/DsCustomTag/DsCustomTag.vue.d.ts +29 -0
  22. package/dist/ui/DsCustomTag/index.d.ts +2 -0
  23. package/dist/ui/DsDataCard/DsDataCard.types.d.ts +2 -0
  24. package/dist/ui/DsDataCard/DsDataCard.vue.d.ts +58 -1
  25. package/dist/ui/DsEmptyState/DsEmptyState.types.d.ts +12 -0
  26. package/dist/ui/DsEmptyState/DsEmptyState.vue.d.ts +53 -0
  27. package/dist/ui/DsEmptyState/index.d.ts +2 -0
  28. package/dist/ui/DsInput/DsInput.vue.d.ts +36 -2
  29. package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.types.d.ts +20 -0
  30. package/dist/ui/DsItemSelectorButton/DsItemSelectorButton.vue.d.ts +50 -0
  31. package/dist/ui/DsItemSelectorButton/index.d.ts +2 -0
  32. package/dist/ui/DsMenuItem/DsMenuItem.types.d.ts +6 -0
  33. package/dist/ui/DsMenuItem/DsMenuItem.vue.d.ts +42 -0
  34. package/dist/ui/DsMenuItem/index.d.ts +2 -0
  35. package/dist/ui/DsModal/DsModal.types.d.ts +10 -0
  36. package/dist/ui/DsModal/DsModal.vue.d.ts +42 -3
  37. package/dist/ui/DsNotification/DsNotification.types.d.ts +8 -0
  38. package/dist/ui/DsNotification/DsNotification.vue.d.ts +22 -2
  39. package/dist/ui/DsPaginator/DsPaginator.types.d.ts +12 -0
  40. package/dist/ui/DsPaginator/DsPaginator.vue.d.ts +101 -0
  41. package/dist/ui/DsPaginator/index.d.ts +2 -0
  42. package/dist/ui/DsPill/DsPill.types.d.ts +11 -0
  43. package/dist/ui/DsPill/DsPill.vue.d.ts +46 -0
  44. package/dist/ui/DsPill/index.d.ts +2 -0
  45. package/dist/ui/DsPillWithBorder/DsPillWithBorder.types.d.ts +2 -0
  46. package/dist/ui/DsPillWithBorder/DsPillWithBorder.vue.d.ts +18 -0
  47. package/dist/ui/DsPillWithBorder/index.d.ts +2 -0
  48. package/dist/ui/DsRadio/DsRadio.types.d.ts +7 -0
  49. package/dist/ui/DsRadio/DsRadio.vue.d.ts +55 -0
  50. package/dist/ui/DsRadio/index.d.ts +2 -0
  51. package/dist/ui/DsRow/DsRow.types.d.ts +6 -0
  52. package/dist/ui/DsRow/DsRow.vue.d.ts +37 -0
  53. package/dist/ui/DsRow/index.d.ts +2 -0
  54. package/dist/ui/DsSegmentedProgressBar/DsSegmentedProgressBar.types.d.ts +5 -0
  55. package/dist/ui/DsSegmentedProgressBar/DsSegmentedProgressBar.vue.d.ts +62 -0
  56. package/dist/ui/DsSegmentedProgressBar/index.d.ts +2 -0
  57. package/dist/ui/DsSelect/DsSelect.types.d.ts +33 -0
  58. package/dist/ui/DsSelect/DsSelect.vue.d.ts +126 -0
  59. package/dist/ui/DsSelect/index.d.ts +2 -0
  60. package/dist/ui/DsSpinner/DsSpinner.types.d.ts +6 -0
  61. package/dist/ui/DsSpinner/DsSpinner.vue.d.ts +4 -4
  62. package/dist/ui/DsSwitch/DsSwitch.types.d.ts +6 -0
  63. package/dist/ui/DsSwitch/DsSwitch.vue.d.ts +30 -0
  64. package/dist/ui/DsSwitch/index.d.ts +2 -0
  65. package/dist/ui/DsTable/DsTable.types.d.ts +11 -0
  66. package/dist/ui/DsTable/DsTable.vue.d.ts +112 -10
  67. package/dist/ui/DsTag/DsTag.types.d.ts +1 -0
  68. package/dist/ui/DsTag/DsTag.vue.d.ts +6 -0
  69. package/dist/ui/DsTextarea/DsTextarea.types.d.ts +8 -0
  70. package/dist/ui/DsTextarea/DsTextarea.vue.d.ts +14 -3
  71. package/dist/ui/DsTooltip/DsTooltip.types.d.ts +7 -0
  72. package/dist/ui/DsTooltip/DsTooltip.vue.d.ts +64 -0
  73. package/dist/ui/DsTooltip/index.d.ts +2 -0
  74. package/dist/ui/DsWizardStepper/DsWizardStepper.types.d.ts +13 -0
  75. package/dist/ui/DsWizardStepper/DsWizardStepper.vue.d.ts +58 -0
  76. package/dist/ui/DsWizardStepper/index.d.ts +2 -0
  77. package/package.json +1 -1
@@ -1,21 +1,27 @@
1
1
  import { type PropType } from 'vue';
2
- import { type DsTableColumn, type DsTableRow } from './DsTable.types';
3
- declare var __VLS_1: {}, __VLS_4: `cell-${string}`, __VLS_5: {
2
+ import { type DsTableColumn, type DsTableHeader, type DsTableRow } from './DsTable.types';
3
+ declare var __VLS_9: {}, __VLS_15: {}, __VLS_17: {}, __VLS_23: {}, __VLS_26: `cell-${string}`, __VLS_27: {
4
4
  row: DsTableRow;
5
5
  };
6
6
  type __VLS_Slots = {} & {
7
- [K in NonNullable<typeof __VLS_4>]?: (props: typeof __VLS_5) => any;
7
+ [K in NonNullable<typeof __VLS_26>]?: (props: typeof __VLS_27) => any;
8
8
  } & {
9
- empty?: (props: typeof __VLS_1) => any;
9
+ loading?: (props: typeof __VLS_9) => any;
10
+ } & {
11
+ default?: (props: typeof __VLS_15) => any;
12
+ } & {
13
+ loading?: (props: typeof __VLS_17) => any;
14
+ } & {
15
+ empty?: (props: typeof __VLS_23) => any;
10
16
  };
11
17
  declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
12
18
  columns: {
13
19
  type: PropType<DsTableColumn[]>;
14
- required: true;
20
+ default: () => never[];
15
21
  };
16
22
  rows: {
17
23
  type: PropType<DsTableRow[]>;
18
- required: true;
24
+ default: () => never[];
19
25
  };
20
26
  emptyMessage: {
21
27
  type: StringConstructor;
@@ -25,14 +31,56 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
25
31
  type: PropType<string | number | null>;
26
32
  default: null;
27
33
  };
28
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
34
+ rowHeight: {
35
+ type: PropType<string | number | null>;
36
+ default: null;
37
+ };
38
+ compound: {
39
+ type: BooleanConstructor;
40
+ default: boolean;
41
+ };
42
+ headers: {
43
+ type: PropType<(string | DsTableHeader)[]>;
44
+ default: () => never[];
45
+ };
46
+ selectable: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ allSelected: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ someSelected: {
55
+ type: BooleanConstructor;
56
+ default: boolean;
57
+ };
58
+ selectAllLabel: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ height: {
63
+ type: PropType<string | number | null>;
64
+ default: null;
65
+ };
66
+ loading: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ loadingLabel: {
71
+ type: StringConstructor;
72
+ default: string;
73
+ };
74
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
75
+ "select-all": (...args: any[]) => void;
76
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
29
77
  columns: {
30
78
  type: PropType<DsTableColumn[]>;
31
- required: true;
79
+ default: () => never[];
32
80
  };
33
81
  rows: {
34
82
  type: PropType<DsTableRow[]>;
35
- required: true;
83
+ default: () => never[];
36
84
  };
37
85
  emptyMessage: {
38
86
  type: StringConstructor;
@@ -42,9 +90,63 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
42
90
  type: PropType<string | number | null>;
43
91
  default: null;
44
92
  };
45
- }>> & Readonly<{}>, {
93
+ rowHeight: {
94
+ type: PropType<string | number | null>;
95
+ default: null;
96
+ };
97
+ compound: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ headers: {
102
+ type: PropType<(string | DsTableHeader)[]>;
103
+ default: () => never[];
104
+ };
105
+ selectable: {
106
+ type: BooleanConstructor;
107
+ default: boolean;
108
+ };
109
+ allSelected: {
110
+ type: BooleanConstructor;
111
+ default: boolean;
112
+ };
113
+ someSelected: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ selectAllLabel: {
118
+ type: StringConstructor;
119
+ default: string;
120
+ };
121
+ height: {
122
+ type: PropType<string | number | null>;
123
+ default: null;
124
+ };
125
+ loading: {
126
+ type: BooleanConstructor;
127
+ default: boolean;
128
+ };
129
+ loadingLabel: {
130
+ type: StringConstructor;
131
+ default: string;
132
+ };
133
+ }>> & Readonly<{
134
+ "onSelect-all"?: ((...args: any[]) => any) | undefined;
135
+ }>, {
136
+ height: string | number | null;
137
+ loading: boolean;
138
+ columns: DsTableColumn[];
139
+ rows: DsTableRow[];
46
140
  emptyMessage: string;
47
141
  highlightRowId: string | number | null;
142
+ rowHeight: string | number | null;
143
+ compound: boolean;
144
+ headers: (string | DsTableHeader)[];
145
+ selectable: boolean;
146
+ allSelected: boolean;
147
+ someSelected: boolean;
148
+ selectAllLabel: string;
149
+ loadingLabel: string;
48
150
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
151
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
50
152
  export default _default;
@@ -1,5 +1,6 @@
1
1
  export declare const DS_TAG_TONES: {
2
2
  readonly DEFAULT: "default";
3
+ readonly GREY: "grey";
3
4
  readonly SUCCESS: "success";
4
5
  readonly INFO: "info";
5
6
  readonly WARNING: "warning";
@@ -11,6 +11,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
11
11
  };
12
12
  rounded: BooleanConstructor;
13
13
  closable: BooleanConstructor;
14
+ clickable: BooleanConstructor;
15
+ truncate: BooleanConstructor;
14
16
  closeLabel: {
15
17
  type: StringConstructor;
16
18
  default: string;
@@ -24,6 +26,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
24
26
  };
25
27
  rounded: BooleanConstructor;
26
28
  closable: BooleanConstructor;
29
+ clickable: BooleanConstructor;
30
+ truncate: BooleanConstructor;
27
31
  closeLabel: {
28
32
  type: StringConstructor;
29
33
  default: string;
@@ -34,6 +38,8 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
34
38
  tone: DsTagTone;
35
39
  rounded: boolean;
36
40
  closable: boolean;
41
+ clickable: boolean;
42
+ truncate: boolean;
37
43
  closeLabel: string;
38
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
45
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -1,3 +1,10 @@
1
+ export declare const DS_TEXTAREA_RESIZE: {
2
+ readonly NONE: "none";
3
+ readonly VERTICAL: "vertical";
4
+ readonly HORIZONTAL: "horizontal";
5
+ readonly BOTH: "both";
6
+ };
7
+ export type DsTextareaResize = (typeof DS_TEXTAREA_RESIZE)[keyof typeof DS_TEXTAREA_RESIZE];
1
8
  export interface DsTextareaProps {
2
9
  modelValue?: string;
3
10
  placeholder?: string;
@@ -5,4 +12,5 @@ export interface DsTextareaProps {
5
12
  error?: boolean;
6
13
  errorMessage?: string;
7
14
  disabled?: boolean;
15
+ resize?: DsTextareaResize;
8
16
  }
@@ -1,3 +1,5 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsTextareaResize } from './DsTextarea.types';
1
3
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
4
  placeholder: {
3
5
  type: StringConstructor;
@@ -21,8 +23,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
21
23
  type: StringConstructor;
22
24
  default: string;
23
25
  };
26
+ resize: {
27
+ type: PropType<DsTextareaResize>;
28
+ default: "vertical";
29
+ };
24
30
  modelValue: {
25
- type: import("vue").PropType<string>;
31
+ type: PropType<string>;
26
32
  };
27
33
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
34
  focus: (...args: any[]) => void;
@@ -51,8 +57,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
51
57
  type: StringConstructor;
52
58
  default: string;
53
59
  };
60
+ resize: {
61
+ type: PropType<DsTextareaResize>;
62
+ default: "vertical";
63
+ };
54
64
  modelValue: {
55
- type: import("vue").PropType<string>;
65
+ type: PropType<string>;
56
66
  };
57
67
  }>> & Readonly<{
58
68
  onFocus?: ((...args: any[]) => any) | undefined;
@@ -61,10 +71,11 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
61
71
  }>, {
62
72
  disabled: boolean;
63
73
  error: boolean;
74
+ name: string;
64
75
  id: string;
65
76
  rows: number;
77
+ resize: DsTextareaResize;
66
78
  placeholder: string;
67
79
  errorMessage: string;
68
- name: string;
69
80
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
70
81
  export default _default;
@@ -0,0 +1,7 @@
1
+ export declare const DS_TOOLTIP_PLACEMENTS: {
2
+ readonly TOP: "top";
3
+ readonly BOTTOM: "bottom";
4
+ readonly LEFT: "left";
5
+ readonly RIGHT: "right";
6
+ };
7
+ export type DsTooltipPlacement = (typeof DS_TOOLTIP_PLACEMENTS)[keyof typeof DS_TOOLTIP_PLACEMENTS];
@@ -0,0 +1,64 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsTooltipPlacement } from './DsTooltip.types';
3
+ declare var __VLS_1: {}, __VLS_7: {};
4
+ type __VLS_Slots = {} & {
5
+ default?: (props: typeof __VLS_1) => any;
6
+ } & {
7
+ content?: (props: typeof __VLS_7) => any;
8
+ };
9
+ declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
10
+ content: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ placement: {
15
+ type: PropType<DsTooltipPlacement>;
16
+ default: "top";
17
+ };
18
+ delay: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ block: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ disabled: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
31
+ content: {
32
+ type: StringConstructor;
33
+ default: string;
34
+ };
35
+ placement: {
36
+ type: PropType<DsTooltipPlacement>;
37
+ default: "top";
38
+ };
39
+ delay: {
40
+ type: NumberConstructor;
41
+ default: number;
42
+ };
43
+ block: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ disabled: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ }>> & Readonly<{}>, {
52
+ disabled: boolean;
53
+ content: string;
54
+ placement: DsTooltipPlacement;
55
+ delay: number;
56
+ block: boolean;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
59
+ export default _default;
60
+ type __VLS_WithSlots<T, S> = T & {
61
+ new (): {
62
+ $slots: S;
63
+ };
64
+ };
@@ -0,0 +1,2 @@
1
+ export { default as DsTooltip } from './DsTooltip.vue';
2
+ export * from './DsTooltip.types';
@@ -0,0 +1,13 @@
1
+ export interface DsWizardStep {
2
+ key?: string | number;
3
+ label: string;
4
+ completed?: boolean;
5
+ visited?: boolean;
6
+ }
7
+ export declare const DS_WIZARD_STEP_STATES: {
8
+ readonly ACTIVE: "active";
9
+ readonly COMPLETED: "completed";
10
+ readonly INCOMPLETE: "incomplete";
11
+ readonly NEUTRAL: "neutral";
12
+ };
13
+ export type DsWizardStepState = (typeof DS_WIZARD_STEP_STATES)[keyof typeof DS_WIZARD_STEP_STATES];
@@ -0,0 +1,58 @@
1
+ import { type PropType } from 'vue';
2
+ import { type DsWizardStep } from './DsWizardStepper.types';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ steps: {
5
+ type: PropType<DsWizardStep[]>;
6
+ default: () => never[];
7
+ };
8
+ value: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ nextLabel: {
13
+ type: StringConstructor;
14
+ default: string;
15
+ };
16
+ finalStepLabel: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ clickable: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ step: (...args: any[]) => void;
26
+ "final-step": (...args: any[]) => void;
27
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
28
+ steps: {
29
+ type: PropType<DsWizardStep[]>;
30
+ default: () => never[];
31
+ };
32
+ value: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
36
+ nextLabel: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ finalStepLabel: {
41
+ type: StringConstructor;
42
+ default: string;
43
+ };
44
+ clickable: {
45
+ type: BooleanConstructor;
46
+ default: boolean;
47
+ };
48
+ }>> & Readonly<{
49
+ onStep?: ((...args: any[]) => any) | undefined;
50
+ "onFinal-step"?: ((...args: any[]) => any) | undefined;
51
+ }>, {
52
+ clickable: boolean;
53
+ value: number;
54
+ nextLabel: string;
55
+ steps: DsWizardStep[];
56
+ finalStepLabel: string;
57
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
58
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export { default as DsWizardStepper } from './DsWizardStepper.vue';
2
+ export * from './DsWizardStepper.types';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesql/sql_components_vue3",
3
- "version": "1.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Librería de componentes Vue 3 (SalesQL)",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",