@esic-lab/data-core-ui 0.0.65 → 0.0.67

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/index.css CHANGED
@@ -325,8 +325,8 @@
325
325
  .left-full {
326
326
  left: 100%;
327
327
  }
328
- .z-1 {
329
- z-index: 1;
328
+ .z-2 {
329
+ z-index: 2;
330
330
  }
331
331
  .z-3 {
332
332
  z-index: 3;
package/dist/index.d.mts CHANGED
@@ -662,7 +662,7 @@ interface GanttElement {
662
662
  startDate?: Date;
663
663
  endDate: Date;
664
664
  color: string;
665
- status: "IN_PROGRESS" | "COMPLETE" | "CANCEL" | "SUCCESS" | "DELAY";
665
+ status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SUCCESS" | "DELAY";
666
666
  }
667
667
  interface GanttChartProps {
668
668
  data: GanttElement[];
package/dist/index.d.ts CHANGED
@@ -662,7 +662,7 @@ interface GanttElement {
662
662
  startDate?: Date;
663
663
  endDate: Date;
664
664
  color: string;
665
- status: "IN_PROGRESS" | "COMPLETE" | "CANCEL" | "SUCCESS" | "DELAY";
665
+ status: "IN_PROGRESS" | "COMPLETED" | "CANCELLED" | "SUCCESS" | "DELAY";
666
666
  }
667
667
  interface GanttChartProps {
668
668
  data: GanttElement[];
package/dist/index.js CHANGED
@@ -4822,7 +4822,7 @@ var STATUS_META = {
4822
4822
  label: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",
4823
4823
  icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconHourglassEmpty, { className: "text-[#FFC654]" })
4824
4824
  },
4825
- CANCEL: {
4825
+ CANCELLED: {
4826
4826
  color: "#D2D5DB",
4827
4827
  label: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
4828
4828
  icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconCircleX, { className: "text-[#D2D5DB]" })
@@ -4832,7 +4832,7 @@ var STATUS_META = {
4832
4832
  label: "\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27\u0E40\u0E2A\u0E23\u0E47\u0E08",
4833
4833
  icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
4834
4834
  },
4835
- COMPLETE: {
4835
+ COMPLETED: {
4836
4836
  color: "#81CF92",
4837
4837
  label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",
4838
4838
  icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
@@ -4972,7 +4972,7 @@ var GanttChart = ({
4972
4972
  const margin = { top: 0, right: 20, bottom: 20, left: 20 };
4973
4973
  const chartHeight = data.length * (barHeight + barSpacing) + margin.top + margin.bottom;
4974
4974
  const containerWidth = width * 2;
4975
- const containerHeight = totalHeaderHeight + chartHeight > 590 ? totalHeaderHeight + chartHeight : 590;
4975
+ const containerHeight = totalHeaderHeight + chartHeight > 585 ? totalHeaderHeight + chartHeight : 585;
4976
4976
  const borderRadius = 5;
4977
4977
  if (leftPanelRef.current) {
4978
4978
  leftPanelRef.current.style.height = `${containerHeight}px`;
@@ -5140,7 +5140,7 @@ var GanttChart = ({
5140
5140
  display: "flex",
5141
5141
  flexDirection: "column",
5142
5142
  width: `${width}px`,
5143
- height: `590px`,
5143
+ height: `587px`,
5144
5144
  border: "1px solid #E9E9E9",
5145
5145
  borderRadius: "10px",
5146
5146
  backgroundColor: "#fff",
@@ -5157,7 +5157,7 @@ var GanttChart = ({
5157
5157
  position: "relative"
5158
5158
  },
5159
5159
  children: [
5160
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "z-1", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5160
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "z-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5161
5161
  RowOverlay,
5162
5162
  {
5163
5163
  data: data.length > 10 ? data : ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
package/dist/index.mjs CHANGED
@@ -4770,7 +4770,7 @@ var STATUS_META = {
4770
4770
  label: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",
4771
4771
  icon: /* @__PURE__ */ jsx48(IconHourglassEmpty, { className: "text-[#FFC654]" })
4772
4772
  },
4773
- CANCEL: {
4773
+ CANCELLED: {
4774
4774
  color: "#D2D5DB",
4775
4775
  label: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
4776
4776
  icon: /* @__PURE__ */ jsx48(IconCircleX, { className: "text-[#D2D5DB]" })
@@ -4780,7 +4780,7 @@ var STATUS_META = {
4780
4780
  label: "\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27\u0E40\u0E2A\u0E23\u0E47\u0E08",
4781
4781
  icon: /* @__PURE__ */ jsx48(IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
4782
4782
  },
4783
- COMPLETE: {
4783
+ COMPLETED: {
4784
4784
  color: "#81CF92",
4785
4785
  label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",
4786
4786
  icon: /* @__PURE__ */ jsx48(IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
@@ -4920,7 +4920,7 @@ var GanttChart = ({
4920
4920
  const margin = { top: 0, right: 20, bottom: 20, left: 20 };
4921
4921
  const chartHeight = data.length * (barHeight + barSpacing) + margin.top + margin.bottom;
4922
4922
  const containerWidth = width * 2;
4923
- const containerHeight = totalHeaderHeight + chartHeight > 590 ? totalHeaderHeight + chartHeight : 590;
4923
+ const containerHeight = totalHeaderHeight + chartHeight > 585 ? totalHeaderHeight + chartHeight : 585;
4924
4924
  const borderRadius = 5;
4925
4925
  if (leftPanelRef.current) {
4926
4926
  leftPanelRef.current.style.height = `${containerHeight}px`;
@@ -5088,7 +5088,7 @@ var GanttChart = ({
5088
5088
  display: "flex",
5089
5089
  flexDirection: "column",
5090
5090
  width: `${width}px`,
5091
- height: `590px`,
5091
+ height: `587px`,
5092
5092
  border: "1px solid #E9E9E9",
5093
5093
  borderRadius: "10px",
5094
5094
  backgroundColor: "#fff",
@@ -5105,7 +5105,7 @@ var GanttChart = ({
5105
5105
  position: "relative"
5106
5106
  },
5107
5107
  children: [
5108
- /* @__PURE__ */ jsx48("div", { className: "z-1", children: /* @__PURE__ */ jsx48(
5108
+ /* @__PURE__ */ jsx48("div", { className: "z-2", children: /* @__PURE__ */ jsx48(
5109
5109
  RowOverlay,
5110
5110
  {
5111
5111
  data: data.length > 10 ? data : ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esic-lab/data-core-ui",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",