@cobre-npm/ds-v3 0.11.0 → 0.12.1

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.
@@ -42,3 +42,4 @@ export { default as CobreTableCellCopy } from './molecules/CobreTableCellCopy/Co
42
42
  export { default as CobreTextArea } from './molecules/CobreTextArea/CobreTextArea.vue';
43
43
  export { default as CobreHeader } from './organisms/CobreHeader/CobreHeader.vue';
44
44
  export { default as CobreSideMenu } from './organisms/CobreSideMenu/CobreSideMenu.vue';
45
+ export { default as CobreDateFilter } from './organisms/CobreDateFilter/CobreDateFilter.vue';
@@ -0,0 +1,65 @@
1
+ import '@vuepic/vue-datepicker/dist/main.css';
2
+ type CalendarTypes = 'equal' | 'range' | 'after' | 'before';
3
+ interface Props {
4
+ modelValue: object;
5
+ label?: string;
6
+ placeholder?: string;
7
+ title?: string;
8
+ availableTypes?: {
9
+ type: CalendarTypes;
10
+ label: string;
11
+ }[];
12
+ type?: CalendarTypes;
13
+ }
14
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
15
+ placeholder: string;
16
+ label: string;
17
+ type: string;
18
+ title: string;
19
+ availableTypes: () => {
20
+ type: string;
21
+ label: string;
22
+ }[];
23
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
+ "update:modelValue": (...args: any[]) => void;
25
+ change: (...args: any[]) => void;
26
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
27
+ placeholder: string;
28
+ label: string;
29
+ type: string;
30
+ title: string;
31
+ availableTypes: () => {
32
+ type: string;
33
+ label: string;
34
+ }[];
35
+ }>>> & {
36
+ onChange?: ((...args: any[]) => any) | undefined;
37
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
38
+ }, {
39
+ type: CalendarTypes;
40
+ label: string;
41
+ title: string;
42
+ placeholder: string;
43
+ availableTypes: {
44
+ type: CalendarTypes;
45
+ label: string;
46
+ }[];
47
+ }, {}>;
48
+ export default _default;
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};
57
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
+ type __VLS_TypePropsToOption<T> = {
59
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
60
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
+ } : {
62
+ type: import('vue').PropType<T[K]>;
63
+ required: true;
64
+ };
65
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.11.0",
3
+ "version": "0.12.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -71,5 +71,10 @@
71
71
  "vite": "^5.2.0",
72
72
  "vite-plugin-static-copy": "^1.0.5",
73
73
  "vue-tsc": "^2.0.6"
74
+ },
75
+ "peerDependencies": {
76
+ "date-fns": "^2.30.0",
77
+ "date-fns-tz": "^2.0.1",
78
+ "@vuepic/vue-datepicker": "^8.5.0"
74
79
  }
75
80
  }