warqadui 0.0.42 → 0.0.43
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.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -3
- package/dist/index.mjs +4 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -601,11 +601,12 @@ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
|
|
|
601
601
|
reactToPrintFn: react_to_print.UseReactToPrintFn;
|
|
602
602
|
};
|
|
603
603
|
|
|
604
|
-
declare const useTransaction: ({ url, v, delay, params, }: {
|
|
604
|
+
declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
|
|
605
605
|
url: string;
|
|
606
606
|
v?: 0 | 1 | 2;
|
|
607
607
|
delay?: number;
|
|
608
608
|
params?: Record<string, any>;
|
|
609
|
+
dateFilter?: boolean;
|
|
609
610
|
}) => {
|
|
610
611
|
TransactionViewComponent: ({ columns, data, error, pageRows, searchPlaceholder, selectable, filterables, verticalLines, index, rowPadding, className, title, description, onCreate, createTitle, ...rest }: {
|
|
611
612
|
columns: DataTableColumn[];
|
package/dist/index.d.ts
CHANGED
|
@@ -601,11 +601,12 @@ declare const useA4StatementView: ({ url, v, delay, params, startPage, }?: {
|
|
|
601
601
|
reactToPrintFn: react_to_print.UseReactToPrintFn;
|
|
602
602
|
};
|
|
603
603
|
|
|
604
|
-
declare const useTransaction: ({ url, v, delay, params, }: {
|
|
604
|
+
declare const useTransaction: ({ url, v, delay, params, dateFilter, }: {
|
|
605
605
|
url: string;
|
|
606
606
|
v?: 0 | 1 | 2;
|
|
607
607
|
delay?: number;
|
|
608
608
|
params?: Record<string, any>;
|
|
609
|
+
dateFilter?: boolean;
|
|
609
610
|
}) => {
|
|
610
611
|
TransactionViewComponent: ({ columns, data, error, pageRows, searchPlaceholder, selectable, filterables, verticalLines, index, rowPadding, className, title, description, onCreate, createTitle, ...rest }: {
|
|
611
612
|
columns: DataTableColumn[];
|
package/dist/index.js
CHANGED
|
@@ -4524,13 +4524,14 @@ var useTransaction = ({
|
|
|
4524
4524
|
url,
|
|
4525
4525
|
v = 1,
|
|
4526
4526
|
delay,
|
|
4527
|
-
params = {}
|
|
4527
|
+
params = {},
|
|
4528
|
+
dateFilter = true
|
|
4528
4529
|
}) => {
|
|
4529
4530
|
const [date, setDate] = (0, import_react20.useState)(
|
|
4530
4531
|
(0, import_moment.default)().format("DD/MM/YYYY")
|
|
4531
4532
|
);
|
|
4532
4533
|
const dateObj = {};
|
|
4533
|
-
if (date) dateObj.date = date;
|
|
4534
|
+
if (date && dateFilter) dateObj.date = date;
|
|
4534
4535
|
const { data: apiData, isLoading, get, error: apiError } = useApis_default();
|
|
4535
4536
|
const getData = () => {
|
|
4536
4537
|
console.log(dateObj);
|
|
@@ -4600,7 +4601,7 @@ var useTransaction = ({
|
|
|
4600
4601
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(Card.Description, { children: description })
|
|
4601
4602
|
] }),
|
|
4602
4603
|
/* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("section", { className: "flex gap-2 items-center", children: [
|
|
4603
|
-
/* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4604
|
+
dateFilter && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
|
|
4604
4605
|
Fields_default.DateInput,
|
|
4605
4606
|
{
|
|
4606
4607
|
value: date,
|
package/dist/index.mjs
CHANGED
|
@@ -4507,13 +4507,14 @@ var useTransaction = ({
|
|
|
4507
4507
|
url,
|
|
4508
4508
|
v = 1,
|
|
4509
4509
|
delay,
|
|
4510
|
-
params = {}
|
|
4510
|
+
params = {},
|
|
4511
|
+
dateFilter = true
|
|
4511
4512
|
}) => {
|
|
4512
4513
|
const [date, setDate] = useState17(
|
|
4513
4514
|
moment().format("DD/MM/YYYY")
|
|
4514
4515
|
);
|
|
4515
4516
|
const dateObj = {};
|
|
4516
|
-
if (date) dateObj.date = date;
|
|
4517
|
+
if (date && dateFilter) dateObj.date = date;
|
|
4517
4518
|
const { data: apiData, isLoading, get, error: apiError } = useApis_default();
|
|
4518
4519
|
const getData = () => {
|
|
4519
4520
|
console.log(dateObj);
|
|
@@ -4583,7 +4584,7 @@ var useTransaction = ({
|
|
|
4583
4584
|
/* @__PURE__ */ jsx29(Card.Description, { children: description })
|
|
4584
4585
|
] }),
|
|
4585
4586
|
/* @__PURE__ */ jsxs21("section", { className: "flex gap-2 items-center", children: [
|
|
4586
|
-
/* @__PURE__ */ jsx29(
|
|
4587
|
+
dateFilter && /* @__PURE__ */ jsx29(
|
|
4587
4588
|
Fields_default.DateInput,
|
|
4588
4589
|
{
|
|
4589
4590
|
value: date,
|