datastake-daf 0.6.329 → 0.6.331
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 +11 -9
- package/package.json +1 -1
- package/src/@daf/core/components/Header/hook.js +1 -0
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/helper.js +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/index.jsx +1 -1
- package/.env +0 -8
- package/.vscode/settings.json +0 -13
package/dist/components/index.js
CHANGED
|
@@ -12769,7 +12769,9 @@ const useHeader = _ref => {
|
|
|
12769
12769
|
}
|
|
12770
12770
|
};
|
|
12771
12771
|
}, [hasButtons, buttonCont.current]);
|
|
12772
|
-
const maxWidth = React.useMemo(
|
|
12772
|
+
const maxWidth = React.useMemo(
|
|
12773
|
+
//? DONT CHANGE THE MAX TO AVOID NEGATIVE VALUES WHEN BUTTON CONT WIDTH IS 0
|
|
12774
|
+
() => mainContWidth - Math.max(0, buttonContWidth) - 24, [mainContWidth, buttonContWidth]);
|
|
12773
12775
|
const renderMainCont = () => /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
12774
12776
|
children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
12775
12777
|
className: formatClassname(["main-cont flex", className]),
|
|
@@ -54411,7 +54413,7 @@ const filtersConfig$a = {
|
|
|
54411
54413
|
name: "",
|
|
54412
54414
|
datastakeId: ""
|
|
54413
54415
|
};
|
|
54414
|
-
const view$
|
|
54416
|
+
const view$2 = "admin-users";
|
|
54415
54417
|
const defaultUrlParams$3 = {
|
|
54416
54418
|
activeTab: "active"
|
|
54417
54419
|
};
|
|
@@ -54555,7 +54557,7 @@ function UserTable(_ref) {
|
|
|
54555
54557
|
goTo,
|
|
54556
54558
|
location,
|
|
54557
54559
|
selectFiltersConfig: selectFiltersConfig$a,
|
|
54558
|
-
view: view$
|
|
54560
|
+
view: view$2,
|
|
54559
54561
|
defaultUrlParams: defaultUrlParams$3,
|
|
54560
54562
|
module,
|
|
54561
54563
|
filtersConfig: filtersConfig$a,
|
|
@@ -54999,7 +55001,7 @@ const filtersConfig$9 = {
|
|
|
54999
55001
|
name: "",
|
|
55000
55002
|
datastakeId: ""
|
|
55001
55003
|
};
|
|
55002
|
-
const view$
|
|
55004
|
+
const view$1 = "accounts";
|
|
55003
55005
|
const defaultUrlParams$2 = {
|
|
55004
55006
|
activeTab: "active"
|
|
55005
55007
|
};
|
|
@@ -55399,7 +55401,7 @@ function AccountTable(_ref) {
|
|
|
55399
55401
|
goTo,
|
|
55400
55402
|
location,
|
|
55401
55403
|
selectFiltersConfig: selectFiltersConfig$9,
|
|
55402
|
-
view: view$
|
|
55404
|
+
view: view$1,
|
|
55403
55405
|
defaultUrlParams: defaultUrlParams$2,
|
|
55404
55406
|
module,
|
|
55405
55407
|
defaultPageSize,
|
|
@@ -55550,7 +55552,6 @@ function AccountTable(_ref) {
|
|
|
55550
55552
|
});
|
|
55551
55553
|
}
|
|
55552
55554
|
|
|
55553
|
-
const view$1 = "locations";
|
|
55554
55555
|
const getTabs = ({
|
|
55555
55556
|
t
|
|
55556
55557
|
}) => {
|
|
@@ -55812,7 +55813,7 @@ const getColumns$2 = ({
|
|
|
55812
55813
|
goTo(getRedirectLink(`/app/accounts/view/${all.id}/details`));
|
|
55813
55814
|
},
|
|
55814
55815
|
children: /*#__PURE__*/jsxRuntime.jsx(CustomIcon, {
|
|
55815
|
-
name: "
|
|
55816
|
+
name: "Link",
|
|
55816
55817
|
width: 18,
|
|
55817
55818
|
height: 18
|
|
55818
55819
|
})
|
|
@@ -56057,7 +56058,8 @@ function LocationTable(_ref) {
|
|
|
56057
56058
|
getData,
|
|
56058
56059
|
module,
|
|
56059
56060
|
config,
|
|
56060
|
-
defaultPageSize = 20
|
|
56061
|
+
defaultPageSize = 20,
|
|
56062
|
+
view
|
|
56061
56063
|
} = _ref;
|
|
56062
56064
|
const [showFilters, setShowFilters] = React.useState(false);
|
|
56063
56065
|
const [hasError, setHasError] = React.useState(false);
|
|
@@ -56080,7 +56082,7 @@ function LocationTable(_ref) {
|
|
|
56080
56082
|
goTo,
|
|
56081
56083
|
location,
|
|
56082
56084
|
selectFiltersConfig: selectFiltersConfig$8,
|
|
56083
|
-
view
|
|
56085
|
+
view,
|
|
56084
56086
|
defaultUrlParams: defaultUrlParams$1,
|
|
56085
56087
|
module,
|
|
56086
56088
|
defaultPageSize,
|
package/package.json
CHANGED
|
@@ -149,6 +149,7 @@ export const useHeader = ({
|
|
|
149
149
|
}, [hasButtons, buttonCont.current]);
|
|
150
150
|
|
|
151
151
|
const maxWidth = useMemo(
|
|
152
|
+
//? DONT CHANGE THE MAX TO AVOID NEGATIVE VALUES WHEN BUTTON CONT WIDTH IS 0
|
|
152
153
|
() => mainContWidth - Math.max(0, buttonContWidth) - 24,
|
|
153
154
|
[mainContWidth, buttonContWidth],
|
|
154
155
|
);
|
|
@@ -5,7 +5,6 @@ import DAFTable from "../../../../Table/index.jsx";
|
|
|
5
5
|
import { theme, Tag } from "antd";
|
|
6
6
|
import CustomIcon from "../../../../Icon/CustomIcon.jsx";
|
|
7
7
|
import {
|
|
8
|
-
view,
|
|
9
8
|
getTabs,
|
|
10
9
|
selectFiltersConfig,
|
|
11
10
|
filtersConfig,
|
|
@@ -26,6 +25,7 @@ export default function LocationTable({
|
|
|
26
25
|
module,
|
|
27
26
|
config,
|
|
28
27
|
defaultPageSize = 20,
|
|
28
|
+
view,
|
|
29
29
|
}) {
|
|
30
30
|
const [showFilters, setShowFilters] = useState(false);
|
|
31
31
|
const [hasError, setHasError] = useState(false);
|
package/.env
DELETED
package/.vscode/settings.json
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"cSpell.words": ["cukura"],
|
|
3
|
-
"files.autoSave": "afterDelay",
|
|
4
|
-
"editor.wordWrap": "on",
|
|
5
|
-
"editor.autoClosingBrackets": "always",
|
|
6
|
-
"editor.autoClosingComments": "always",
|
|
7
|
-
"editor.autoClosingQuotes": "always",
|
|
8
|
-
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
9
|
-
"editor.formatOnPaste": true,
|
|
10
|
-
"editor.formatOnSave": true,
|
|
11
|
-
"notebook.defaultFormatter": "esbenp.prettier-vscode",
|
|
12
|
-
"javascript.format.semicolons": "insert"
|
|
13
|
-
}
|