@erpsquad/common 1.10.57 → 1.10.59
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/chunks/{ERPUIProvider-DNIk_P9N.js → ERPUIProvider-Dx510YOi.js} +4 -4
- package/dist/chunks/{ERPUIProvider-DNIk_P9N.js.map → ERPUIProvider-Dx510YOi.js.map} +1 -1
- package/dist/chunks/{ERPUIProvider-BJM1qtBf.esm.js → ERPUIProvider-f482ZZks.esm.js} +4 -4
- package/dist/chunks/{ERPUIProvider-BJM1qtBf.esm.js.map → ERPUIProvider-f482ZZks.esm.js.map} +1 -1
- package/dist/chunks/{android-12-switch-DPYQqw4U.js → android-12-switch-CN34IUv6.js} +8 -7
- package/dist/chunks/{android-12-switch-DPYQqw4U.js.map → android-12-switch-CN34IUv6.js.map} +1 -1
- package/dist/chunks/{android-12-switch-SPfvwO74.esm.js → android-12-switch-DMx6Q9Zi.esm.js} +8 -7
- package/dist/chunks/{android-12-switch-SPfvwO74.esm.js.map → android-12-switch-DMx6Q9Zi.esm.js.map} +1 -1
- package/dist/chunks/{appbar-CJ_YiTaE.esm.js → appbar-Cn3nzgcA.esm.js} +3 -3
- package/dist/chunks/{appbar-CJ_YiTaE.esm.js.map → appbar-Cn3nzgcA.esm.js.map} +1 -1
- package/dist/chunks/{appbar-B7Don9mm.js → appbar-DmQnXpjh.js} +3 -3
- package/dist/chunks/{appbar-B7Don9mm.js.map → appbar-DmQnXpjh.js.map} +1 -1
- package/dist/chunks/{checkbox-BhH6VEUa.esm.js → checkbox-CY109f8U.esm.js} +3 -3
- package/dist/chunks/{checkbox-BhH6VEUa.esm.js.map → checkbox-CY109f8U.esm.js.map} +1 -1
- package/dist/chunks/{checkbox-C1ZTJUlQ.js → checkbox-DCDNuj0h.js} +3 -3
- package/dist/chunks/{checkbox-C1ZTJUlQ.js.map → checkbox-DCDNuj0h.js.map} +1 -1
- package/dist/chunks/{default-data-Ci8MCe7E.js → default-data-Av7VuzZ7.js} +6 -6
- package/dist/chunks/{default-data-Ci8MCe7E.js.map → default-data-Av7VuzZ7.js.map} +1 -1
- package/dist/chunks/{default-data-DoAHAkBR.esm.js → default-data-Dl7xjyme.esm.js} +6 -6
- package/dist/chunks/{default-data-DoAHAkBR.esm.js.map → default-data-Dl7xjyme.esm.js.map} +1 -1
- package/dist/chunks/{fullScreen-B2LsVuQY.js → fullScreen-BRRYokze.js} +2 -2
- package/dist/chunks/{fullScreen-B2LsVuQY.js.map → fullScreen-BRRYokze.js.map} +1 -1
- package/dist/chunks/{fullScreen-CVRwgry_.esm.js → fullScreen-Dudkmbx3.esm.js} +2 -2
- package/dist/chunks/{fullScreen-CVRwgry_.esm.js.map → fullScreen-Dudkmbx3.esm.js.map} +1 -1
- package/dist/chunks/{modules-BstDoVbN.js → modules-BNuvy7fb.js} +2 -2
- package/dist/chunks/{modules-BstDoVbN.js.map → modules-BNuvy7fb.js.map} +1 -1
- package/dist/chunks/{modules-gZ7sN3SY.esm.js → modules-CrPGQR-7.esm.js} +2 -2
- package/dist/chunks/{modules-gZ7sN3SY.esm.js.map → modules-CrPGQR-7.esm.js.map} +1 -1
- package/dist/chunks/{page-context-ChBO0RIs.js → page-context-Bl5SEL1G.js} +2 -2
- package/dist/chunks/{page-context-ChBO0RIs.js.map → page-context-Bl5SEL1G.js.map} +1 -1
- package/dist/chunks/{page-context-OVe_dHlX.esm.js → page-context-Dy0COu6T.esm.js} +2 -2
- package/dist/chunks/{page-context-OVe_dHlX.esm.js.map → page-context-Dy0COu6T.esm.js.map} +1 -1
- package/dist/chunks/{route-page-map-7BVft1HF.js → route-page-map-C_stv0lM.js} +34 -1
- package/dist/chunks/{route-page-map-7BVft1HF.js.map → route-page-map-C_stv0lM.js.map} +1 -1
- package/dist/chunks/{route-page-map-BHHss936.esm.js → route-page-map-DRdSTiPH.esm.js} +134 -101
- package/dist/chunks/{route-page-map-BHHss936.esm.js.map → route-page-map-DRdSTiPH.esm.js.map} +1 -1
- package/dist/chunks/{sidebar-DDy7Ao3K.js → sidebar-DAyfQ8hX.js} +2 -2
- package/dist/chunks/{sidebar-DDy7Ao3K.js.map → sidebar-DAyfQ8hX.js.map} +1 -1
- package/dist/chunks/{sidebar-Dhnfy7is.esm.js → sidebar-DxMP9e4a.esm.js} +2 -2
- package/dist/chunks/{sidebar-Dhnfy7is.esm.js.map → sidebar-DxMP9e4a.esm.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-DuLhKJQB.js → sidebarScreen-B8a6hQQD.js} +3 -3
- package/dist/chunks/{sidebarScreen-DuLhKJQB.js.map → sidebarScreen-B8a6hQQD.js.map} +1 -1
- package/dist/chunks/{sidebarScreen-Lox6-RBs.esm.js → sidebarScreen-DFeaZmHG.esm.js} +3 -3
- package/dist/chunks/{sidebarScreen-Lox6-RBs.esm.js.map → sidebarScreen-DFeaZmHG.esm.js.map} +1 -1
- package/dist/chunks/{uom-field-wrapper-CsRIQR4E.esm.js → uom-field-wrapper-BqcSmcAs.esm.js} +32 -11
- package/dist/chunks/uom-field-wrapper-BqcSmcAs.esm.js.map +1 -0
- package/dist/chunks/{uom-field-wrapper-D_c8mueN.js → uom-field-wrapper-DlXciJko.js} +32 -11
- package/dist/chunks/uom-field-wrapper-DlXciJko.js.map +1 -0
- package/dist/chunks/{useAddressContact-DEl4_ZBi.js → useAddressContact-B4kEQFE5.js} +3 -3
- package/dist/chunks/{useAddressContact-DEl4_ZBi.js.map → useAddressContact-B4kEQFE5.js.map} +1 -1
- package/dist/chunks/{useAddressContact-BI2XYnuW.esm.js → useAddressContact-DbPBm_MA.esm.js} +3 -3
- package/dist/chunks/{useAddressContact-BI2XYnuW.esm.js.map → useAddressContact-DbPBm_MA.esm.js.map} +1 -1
- package/dist/components/index.esm.js +7 -7
- package/dist/components/index.js +7 -7
- package/dist/components/material-table/material-table.d.ts +2 -1
- package/dist/components/reports-title-bar/reports-title-bar.d.ts +4 -0
- package/dist/constants/defaultColumns.d.ts +1 -0
- package/dist/constants/index.esm.js +101 -100
- package/dist/constants/index.js +3 -2
- package/dist/constants/index.js.map +1 -1
- package/dist/contexts/index.esm.js +1 -1
- package/dist/contexts/index.js +1 -1
- package/dist/hooks/index.esm.js +3 -3
- package/dist/hooks/index.js +3 -3
- package/dist/index.esm.js +114 -113
- package/dist/index.js +14 -13
- package/dist/index.js.map +1 -1
- package/dist/layout/index.esm.js +2 -2
- package/dist/layout/index.js +2 -2
- package/dist/src/components/material-table/material-table.d.ts +2 -1
- package/dist/src/components/reports-title-bar/reports-title-bar.d.ts +4 -0
- package/dist/src/constants/defaultColumns.d.ts +1 -0
- package/dist/views/index.esm.js +9 -9
- package/dist/views/index.js +6 -6
- package/package.json +1 -1
- package/dist/chunks/uom-field-wrapper-CsRIQR4E.esm.js.map +0 -1
- package/dist/chunks/uom-field-wrapper-D_c8mueN.js.map +0 -1
|
@@ -3,8 +3,8 @@ const jsxRuntime = require("./jsx-runtime-B6vEU3CM.js");
|
|
|
3
3
|
const reactHookForm = require("react-hook-form");
|
|
4
4
|
const identifier = require("./identifier-CaTy7Osd.js");
|
|
5
5
|
const useAuth = require("./useAuth-B3lJDoed.js");
|
|
6
|
-
const android12Switch = require("./android-12-switch-
|
|
7
|
-
const appbar = require("./appbar-
|
|
6
|
+
const android12Switch = require("./android-12-switch-CN34IUv6.js");
|
|
7
|
+
const appbar = require("./appbar-DmQnXpjh.js");
|
|
8
8
|
const React = require("react");
|
|
9
9
|
const DatePicker = require("react-datepicker");
|
|
10
10
|
;/* empty css */
|
|
@@ -23,12 +23,12 @@ const marked = require("marked");
|
|
|
23
23
|
const api = require("./api-PQmwG2-a.js");
|
|
24
24
|
const apiConfig = require("./api-config-DXwDMFn-.js");
|
|
25
25
|
const Yup = require("yup");
|
|
26
|
-
const checkbox = require("./checkbox-
|
|
26
|
+
const checkbox = require("./checkbox-DCDNuj0h.js");
|
|
27
27
|
const formBuilderDeconversion = require("./form-builder-deconversion-Cvk9TQ1b.js");
|
|
28
28
|
const radioButton = require("./radio-button-Z203yCd7.js");
|
|
29
29
|
const notistack = require("notistack");
|
|
30
30
|
const reactRedux = require("react-redux");
|
|
31
|
-
const ERPUIProvider = require("./ERPUIProvider-
|
|
31
|
+
const ERPUIProvider = require("./ERPUIProvider-Dx510YOi.js");
|
|
32
32
|
const Board = require("@asseinfo/react-kanban");
|
|
33
33
|
const translations = require("./translations-jBUvz7sG.js");
|
|
34
34
|
const FullCalendar = require("@fullcalendar/react");
|
|
@@ -44,20 +44,20 @@ const arrowUp = require("./arrow-up-Dg35LjrD.js");
|
|
|
44
44
|
const ReactFlagsSelect = require("react-flags-select");
|
|
45
45
|
const reactRouterDom = require("react-router-dom");
|
|
46
46
|
const navigationUtils = require("./navigation-utils-CjGqJQmS.js");
|
|
47
|
-
const pageContext = require("./page-context-
|
|
47
|
+
const pageContext = require("./page-context-Bl5SEL1G.js");
|
|
48
48
|
const ganttTaskReact = require("gantt-task-react");
|
|
49
49
|
const reactDateRange = require("react-date-range");
|
|
50
50
|
const actionBar = require("./action-bar-DMv6sqDP.js");
|
|
51
51
|
const DataEditor = require("@glideapps/glide-data-grid");
|
|
52
52
|
const glideDataGridCells = require("@glideapps/glide-data-grid-cells");
|
|
53
53
|
const ReactDOM = require("react-dom");
|
|
54
|
-
const sidebar = require("./sidebar-
|
|
54
|
+
const sidebar = require("./sidebar-DAyfQ8hX.js");
|
|
55
55
|
const materialReactTable = require("material-react-table");
|
|
56
56
|
const trash = require("./trash-C63VDmtW.js");
|
|
57
57
|
const _$1 = require("lodash");
|
|
58
|
-
const modules = require("./modules-
|
|
58
|
+
const modules = require("./modules-BNuvy7fb.js");
|
|
59
59
|
const pathname_rental = require("./pathname.rental-C0Yjyyx7.js");
|
|
60
|
-
const routePageMap = require("./route-page-map-
|
|
60
|
+
const routePageMap = require("./route-page-map-C_stv0lM.js");
|
|
61
61
|
const hooks = require("./hooks-DsdahmnZ.js");
|
|
62
62
|
const store = require("./store-DZMbCH9Y.js");
|
|
63
63
|
const reactDropzone = require("react-dropzone");
|
|
@@ -10237,7 +10237,9 @@ const ReportsTitleBar = (props) => {
|
|
|
10237
10237
|
filterKeys = {},
|
|
10238
10238
|
searchBar,
|
|
10239
10239
|
/** Custom ReactNode components rendered after the standard filters. */
|
|
10240
|
-
customFilterComponents = []
|
|
10240
|
+
customFilterComponents = [],
|
|
10241
|
+
autoShowFiltersWithValue = false,
|
|
10242
|
+
defaultVisibleFilters = []
|
|
10241
10243
|
} = props;
|
|
10242
10244
|
const startDateKey = (filterKeys == null ? void 0 : filterKeys.start_date) || "start_date";
|
|
10243
10245
|
const endDateKey = (filterKeys == null ? void 0 : filterKeys.end_date) || "end_date";
|
|
@@ -10295,7 +10297,8 @@ const ReportsTitleBar = (props) => {
|
|
|
10295
10297
|
...showDateFilter ? [{ value: "date" }] : [],
|
|
10296
10298
|
{
|
|
10297
10299
|
value: "company"
|
|
10298
|
-
}
|
|
10300
|
+
},
|
|
10301
|
+
...defaultVisibleFilters || []
|
|
10299
10302
|
];
|
|
10300
10303
|
const [selectedItems, setSelectedItems] = React.useState(defaultSelected);
|
|
10301
10304
|
const [level, setLevel] = React.useState(1);
|
|
@@ -10398,6 +10401,24 @@ const ReportsTitleBar = (props) => {
|
|
|
10398
10401
|
multiple: filter.multiple || false,
|
|
10399
10402
|
options: filter.options || void 0
|
|
10400
10403
|
}))) || [];
|
|
10404
|
+
React.useEffect(() => {
|
|
10405
|
+
if (!autoShowFiltersWithValue) return;
|
|
10406
|
+
setSelectedItems((prev) => {
|
|
10407
|
+
const visibleKeys = new Set(prev.map((item) => item == null ? void 0 : item.value));
|
|
10408
|
+
let changed = false;
|
|
10409
|
+
const next = [...prev];
|
|
10410
|
+
filtersConfig.forEach((config) => {
|
|
10411
|
+
if (visibleKeys.has(config.key)) return;
|
|
10412
|
+
const val = filters == null ? void 0 : filters[config.valueKey];
|
|
10413
|
+
const hasValue = Array.isArray(val) ? val.length > 0 : val !== void 0 && val !== null && val !== "";
|
|
10414
|
+
if (hasValue) {
|
|
10415
|
+
next.push({ value: config.key });
|
|
10416
|
+
changed = true;
|
|
10417
|
+
}
|
|
10418
|
+
});
|
|
10419
|
+
return changed ? next : prev;
|
|
10420
|
+
});
|
|
10421
|
+
}, [filters, filtersConfig, autoShowFiltersWithValue]);
|
|
10401
10422
|
const options = [
|
|
10402
10423
|
{
|
|
10403
10424
|
label: navigationUtils.RANGE.TODAY,
|
|
@@ -16799,4 +16820,4 @@ exports.dynamicFields = dynamicFields;
|
|
|
16799
16820
|
exports.fields = fields;
|
|
16800
16821
|
exports.useDynamicLayout = useDynamicLayout;
|
|
16801
16822
|
exports.validator = validator;
|
|
16802
|
-
//# sourceMappingURL=uom-field-wrapper-
|
|
16823
|
+
//# sourceMappingURL=uom-field-wrapper-DlXciJko.js.map
|