@apexcura/ui-components 0.0.11-Beta183 → 0.0.11-Beta185
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.js +8 -4
- package/dist/index.mjs +9 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -623,7 +623,8 @@ var TableElement = (props) => {
|
|
|
623
623
|
...thead.map((col) => ({
|
|
624
624
|
title: col.label,
|
|
625
625
|
dataIndex: col.name,
|
|
626
|
-
key: col.key
|
|
626
|
+
key: col.key,
|
|
627
|
+
sorter: col.sorter
|
|
627
628
|
}))
|
|
628
629
|
];
|
|
629
630
|
}
|
|
@@ -631,14 +632,17 @@ var TableElement = (props) => {
|
|
|
631
632
|
...row,
|
|
632
633
|
[columns[0].key]: index + 1
|
|
633
634
|
}));
|
|
635
|
+
const onChange = (pagination, filters, sorter, extra) => {
|
|
636
|
+
console.log("params", pagination, filters, sorter, extra);
|
|
637
|
+
};
|
|
634
638
|
return /* @__PURE__ */ import_react19.default.createElement(
|
|
635
639
|
import_antd13.Table,
|
|
636
640
|
{
|
|
637
641
|
dataSource,
|
|
638
642
|
columns,
|
|
639
643
|
bordered: true,
|
|
640
|
-
|
|
641
|
-
|
|
644
|
+
size: props.size && props.size,
|
|
645
|
+
onChange
|
|
642
646
|
}
|
|
643
647
|
);
|
|
644
648
|
};
|
|
@@ -684,7 +688,7 @@ var DatePickerElement = (props) => {
|
|
|
684
688
|
props.onChange(newDate.format("lll"));
|
|
685
689
|
}
|
|
686
690
|
};
|
|
687
|
-
return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ import_react20.default.createElement(
|
|
691
|
+
return /* @__PURE__ */ import_react20.default.createElement("div", null, /* @__PURE__ */ import_react20.default.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ import_react20.default.createElement(import_icons4.LeftOutlined, null)), /* @__PURE__ */ import_react20.default.createElement(
|
|
688
692
|
import_antd14.DatePicker,
|
|
689
693
|
{
|
|
690
694
|
placeholder: props.placeholder,
|
package/dist/index.mjs
CHANGED
|
@@ -572,7 +572,8 @@ var TableElement = (props) => {
|
|
|
572
572
|
...thead.map((col) => ({
|
|
573
573
|
title: col.label,
|
|
574
574
|
dataIndex: col.name,
|
|
575
|
-
key: col.key
|
|
575
|
+
key: col.key,
|
|
576
|
+
sorter: col.sorter
|
|
576
577
|
}))
|
|
577
578
|
];
|
|
578
579
|
}
|
|
@@ -580,14 +581,17 @@ var TableElement = (props) => {
|
|
|
580
581
|
...row,
|
|
581
582
|
[columns[0].key]: index + 1
|
|
582
583
|
}));
|
|
584
|
+
const onChange = (pagination, filters, sorter, extra) => {
|
|
585
|
+
console.log("params", pagination, filters, sorter, extra);
|
|
586
|
+
};
|
|
583
587
|
return /* @__PURE__ */ React18.createElement(
|
|
584
588
|
Table2,
|
|
585
589
|
{
|
|
586
590
|
dataSource,
|
|
587
591
|
columns,
|
|
588
592
|
bordered: true,
|
|
589
|
-
|
|
590
|
-
|
|
593
|
+
size: props.size && props.size,
|
|
594
|
+
onChange
|
|
591
595
|
}
|
|
592
596
|
);
|
|
593
597
|
};
|
|
@@ -595,7 +599,7 @@ var TableElement = (props) => {
|
|
|
595
599
|
// src/Components/DatePicker.tsx
|
|
596
600
|
import React19, { useState as useState5 } from "react";
|
|
597
601
|
import { DatePicker } from "antd";
|
|
598
|
-
import { RightOutlined } from "@ant-design/icons";
|
|
602
|
+
import { LeftOutlined, RightOutlined } from "@ant-design/icons";
|
|
599
603
|
import moment from "moment";
|
|
600
604
|
var DatePickerElement = (props) => {
|
|
601
605
|
const [date, setDate] = useState5(null);
|
|
@@ -633,7 +637,7 @@ var DatePickerElement = (props) => {
|
|
|
633
637
|
props.onChange(newDate.format("lll"));
|
|
634
638
|
}
|
|
635
639
|
};
|
|
636
|
-
return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ React19.createElement(
|
|
640
|
+
return /* @__PURE__ */ React19.createElement("div", null, /* @__PURE__ */ React19.createElement("button", { onClick: onHandleDecrement }, /* @__PURE__ */ React19.createElement(LeftOutlined, null)), /* @__PURE__ */ React19.createElement(
|
|
637
641
|
DatePicker,
|
|
638
642
|
{
|
|
639
643
|
placeholder: props.placeholder,
|