datastake-daf 0.6.331 → 0.6.332
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/components/index.js +13 -5
- package/package.json +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/helper.js +6 -2
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/index.jsx +4 -1
- package/src/@daf/core/components/Screens/Admin/AdminTables/components/index.jsx +2 -1
package/dist/components/index.js
CHANGED
|
@@ -53818,6 +53818,7 @@ function AdminTable({
|
|
|
53818
53818
|
canClearSearch,
|
|
53819
53819
|
checkboxConfig,
|
|
53820
53820
|
defaultTableFilters,
|
|
53821
|
+
breadcrumbs,
|
|
53821
53822
|
children
|
|
53822
53823
|
}) {
|
|
53823
53824
|
return /*#__PURE__*/jsxRuntime.jsx(jsxRuntime.Fragment, {
|
|
@@ -53825,7 +53826,8 @@ function AdminTable({
|
|
|
53825
53826
|
className: "semibold form-input-output daf-create-view",
|
|
53826
53827
|
children: [/*#__PURE__*/jsxRuntime.jsx(DAFHeader, {
|
|
53827
53828
|
title: t(`admin::${headerTitle}`),
|
|
53828
|
-
actionButtons: actionButton
|
|
53829
|
+
actionButtons: actionButton,
|
|
53830
|
+
breadcrumbs: breadcrumbs
|
|
53829
53831
|
}), /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
53830
53832
|
className: "column start table-content",
|
|
53831
53833
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -55559,8 +55561,11 @@ const getTabs = ({
|
|
|
55559
55561
|
key: "active",
|
|
55560
55562
|
label: t("Active")
|
|
55561
55563
|
}, {
|
|
55562
|
-
key: "
|
|
55563
|
-
label: t("
|
|
55564
|
+
key: "pending",
|
|
55565
|
+
label: t("Pending")
|
|
55566
|
+
}, {
|
|
55567
|
+
key: 'suspended',
|
|
55568
|
+
label: t("Suspended")
|
|
55564
55569
|
}];
|
|
55565
55570
|
};
|
|
55566
55571
|
const selectFiltersConfig$8 = {
|
|
@@ -56059,7 +56064,9 @@ function LocationTable(_ref) {
|
|
|
56059
56064
|
module,
|
|
56060
56065
|
config,
|
|
56061
56066
|
defaultPageSize = 20,
|
|
56062
|
-
view
|
|
56067
|
+
view,
|
|
56068
|
+
headerTitle,
|
|
56069
|
+
breadcrumbs
|
|
56063
56070
|
} = _ref;
|
|
56064
56071
|
const [showFilters, setShowFilters] = React.useState(false);
|
|
56065
56072
|
const [hasError, setHasError] = React.useState(false);
|
|
@@ -56114,7 +56121,7 @@ function LocationTable(_ref) {
|
|
|
56114
56121
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AdminTable, {
|
|
56115
56122
|
filters: filter,
|
|
56116
56123
|
t: t,
|
|
56117
|
-
headerTitle:
|
|
56124
|
+
headerTitle: headerTitle,
|
|
56118
56125
|
actionButton: [{
|
|
56119
56126
|
icon: "Merge",
|
|
56120
56127
|
onClick: () => setCombineLocationVisible(true),
|
|
@@ -56134,6 +56141,7 @@ function LocationTable(_ref) {
|
|
|
56134
56141
|
selectOptions: selectOptions,
|
|
56135
56142
|
checkboxConfig: checkboxConfig$8,
|
|
56136
56143
|
defaultTableFilters: {},
|
|
56144
|
+
breadcrumbs: breadcrumbs,
|
|
56137
56145
|
children: [selectedLocations.length > 0 && /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
56138
56146
|
className: "flex flex-row ml-6 mt-5",
|
|
56139
56147
|
style: {
|
package/package.json
CHANGED
|
@@ -26,6 +26,8 @@ export default function LocationTable({
|
|
|
26
26
|
config,
|
|
27
27
|
defaultPageSize = 20,
|
|
28
28
|
view,
|
|
29
|
+
headerTitle,
|
|
30
|
+
breadcrumbs,
|
|
29
31
|
}) {
|
|
30
32
|
const [showFilters, setShowFilters] = useState(false);
|
|
31
33
|
const [hasError, setHasError] = useState(false);
|
|
@@ -82,7 +84,7 @@ export default function LocationTable({
|
|
|
82
84
|
<AdminTable
|
|
83
85
|
filters={filter}
|
|
84
86
|
t={t}
|
|
85
|
-
headerTitle={
|
|
87
|
+
headerTitle={headerTitle}
|
|
86
88
|
actionButton={[
|
|
87
89
|
{
|
|
88
90
|
icon: "Merge",
|
|
@@ -102,6 +104,7 @@ export default function LocationTable({
|
|
|
102
104
|
selectOptions={selectOptions}
|
|
103
105
|
checkboxConfig={checkboxConfig}
|
|
104
106
|
defaultTableFilters={{}}
|
|
107
|
+
breadcrumbs={breadcrumbs}
|
|
105
108
|
>
|
|
106
109
|
{selectedLocations.length > 0 && (
|
|
107
110
|
<div
|
|
@@ -19,12 +19,13 @@ export default function AdminTable({
|
|
|
19
19
|
canClearSearch,
|
|
20
20
|
checkboxConfig,
|
|
21
21
|
defaultTableFilters,
|
|
22
|
+
breadcrumbs,
|
|
22
23
|
children,
|
|
23
24
|
}) {
|
|
24
25
|
return (
|
|
25
26
|
<>
|
|
26
27
|
<div className="semibold form-input-output daf-create-view">
|
|
27
|
-
<Header title={t(`admin::${headerTitle}`)} actionButtons={actionButton} />
|
|
28
|
+
<Header title={t(`admin::${headerTitle}`)} actionButtons={actionButton} breadcrumbs={breadcrumbs} />
|
|
28
29
|
<div className="column start table-content">
|
|
29
30
|
<div className="mt-6 ml-6 mr-6">
|
|
30
31
|
<div className="flex flex-row">
|