@farm-investimentos/front-mfe-components 15.13.2 → 15.14.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.
@@ -1,5 +1,5 @@
1
1
  import { computed } from 'vue';
2
- import { isValid, endOfMonth } from 'date-fns';
2
+ import { isValid, endOfMonth, addMonths } from 'date-fns';
3
3
 
4
4
  export default function buildGanttData(props) {
5
5
  const autoCalculatedDateRange = computed(() => {
@@ -23,7 +23,7 @@ export default function buildGanttData(props) {
23
23
  const now = new Date();
24
24
  return {
25
25
  start: new Date(now.getFullYear(), 0, 1),
26
- end: new Date(now.getFullYear(), 11, 31)
26
+ end: endOfMonth(addMonths(new Date(now.getFullYear(), 11, 31), 1))
27
27
  };
28
28
  }
29
29
 
@@ -31,7 +31,7 @@ export default function buildGanttData(props) {
31
31
  const maxDate = new Date(Math.max(...allDates.map(d => d.getTime())));
32
32
 
33
33
  minDate.setDate(1);
34
- const adjustedMaxDate = endOfMonth(maxDate);
34
+ const adjustedMaxDate = endOfMonth(addMonths(maxDate, 1));
35
35
 
36
36
  return { start: minDate, end: adjustedMaxDate };
37
37
  });
@@ -45,13 +45,10 @@ export interface DateRange {
45
45
  end: Date;
46
46
  }
47
47
 
48
-
49
- // NEW: Tooltip data interface
50
48
  export interface TooltipData {
51
49
  [key: string]: string | number | null | undefined;
52
50
  }
53
51
 
54
- // NEW: Enhanced tooltip state
55
52
  export interface TooltipState {
56
53
  visible: boolean;
57
54
  x: number;
package/src/main.ts CHANGED
@@ -12,6 +12,7 @@ import DatePicker from './components/DatePicker';
12
12
  import ManagersList from './components/ManagersList';
13
13
  import PromptUserToConfirm from './components/PromptUserToConfirm';
14
14
  import ModalPromptUser from './components/ModalPromptUser';
15
+ import FilterEmptyState from './components/FilterEmptyState';
15
16
 
16
17
  import TableContextMenu from './components/TableContextMenu';
17
18
  import IconBox from './components/IconBox';
@@ -21,6 +22,7 @@ import Collapsible from './components/Collapsible';
21
22
  import IdCaption from './components/IdCaption';
22
23
  import ResourceMetaInfo from './components/ResourceMetaInfo';
23
24
  import GanttChart from './components/GanttChart';
25
+
24
26
  export {
25
27
  DataTableEmptyWrapper,
26
28
  DataTablePaginator,
@@ -41,6 +43,8 @@ export {
41
43
  Collapsible,
42
44
  IdCaption,
43
45
  ResourceMetaInfo,
46
+ FilterEmptyState,
47
+ GanttChart,
44
48
  };
45
49
 
46
50
  export * from './components/AlertBox';
@@ -93,3 +97,4 @@ export * from './components/layout/ContainerFooter';
93
97
  export * from './components/layout/Row';
94
98
  export * from './components/layout/Line';
95
99
  export * from './components/GanttChart';
100
+ export * from './components/FilterEmptyState';
@@ -1,11 +1,16 @@
1
1
  import Vue, { VNode } from 'vue';
2
2
 
3
3
  declare global {
4
- namespace JSX {
5
- interface Element extends VNode {}
6
- interface ElementClass extends Vue {}
7
- interface IntrinsicElements {
8
- [elem: string]: any
9
- }
10
- }
4
+ namespace JSX {
5
+ interface Element extends VNode {}
6
+ interface ElementClass extends Vue {}
7
+ interface IntrinsicElements {
8
+ [elem: string]: any;
9
+ }
10
+ }
11
+ }
12
+
13
+ declare module '*.svg' {
14
+ const content: string;
15
+ export default content;
11
16
  }
@@ -1,4 +1,5 @@
1
1
  declare module '*.vue' {
2
- import Vue from 'vue';
3
- export default Vue;
2
+ import { DefineComponent } from 'vue';
3
+ const component: DefineComponent<{}, {}, any>;
4
+ export default component;
4
5
  }