blixify-ui-web 1.3.18 → 1.3.23
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/lib/components/data/dataTemplate/index.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/index.js +109 -85
- package/lib/components/data/dataTemplate/index.js.map +1 -1
- package/lib/components/data/dataTemplate/viewStatePersistence.d.ts +1 -0
- package/lib/components/data/dataTemplate/viewStatePersistence.d.ts.map +1 -1
- package/lib/components/data/dataTemplate/viewStatePersistence.js +1 -0
- package/lib/components/data/dataTemplate/viewStatePersistence.js.map +1 -1
- package/lib/components/display/drawer/index.d.ts +5 -1
- package/lib/components/display/drawer/index.d.ts.map +1 -1
- package/lib/components/display/drawer/index.js +47 -8
- package/lib/components/display/drawer/index.js.map +1 -1
- package/lib/components/display/newTable/index.d.ts.map +1 -1
- package/lib/components/display/newTable/index.js +13 -5
- package/lib/components/display/newTable/index.js.map +1 -1
- package/lib/components/input/select/index.d.ts +4 -1
- package/lib/components/input/select/index.d.ts.map +1 -1
- package/lib/components/input/select/index.js +40 -2
- package/lib/components/input/select/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwHf,OAAO,EAEL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAoJ1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/data/dataTemplate/index.tsx"],"names":[],"mappings":"AAqCA,OAAO,KASN,MAAM,OAAO,CAAC;AAwHf,OAAO,EAEL,iBAAiB,EAIlB,MAAM,kBAAkB,CAAC;AAoJ1B,eAAO,MAAM,qBAAqB,OAAO,CAAC;AA6C1C,eAAO,MAAM,yBAAyB,UAAW,GAAG,YAYnD,CAAC;AAEF,eAAO,MAAM,YAAY,mFAk/hBvB,CAAC"}
|
|
@@ -619,83 +619,90 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
619
619
|
var _177 = (0, react_1.useState)(null), activeSavedViewId = _177[0], setActiveSavedViewId = _177[1];
|
|
620
620
|
// INFO: the widths of the view on screen, by column id ("180px")
|
|
621
621
|
var _178 = (0, react_1.useState)(function () { var _a, _b, _c; return (_c = (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.allView) === null || _b === void 0 ? void 0 : _b.columnWidths) !== null && _c !== void 0 ? _c : {}; }), columnWidths = _178[0], setColumnWidths = _178[1];
|
|
622
|
+
// INFO: the read drawer's dragged width ("520px"), kept in the view with the
|
|
623
|
+
// column widths. A restored persistViewState wins over All's, as a saved
|
|
624
|
+
// view or draft applied at opening replaces both
|
|
625
|
+
var _179 = (0, react_1.useState)(function () {
|
|
626
|
+
var _a, _b, _c;
|
|
627
|
+
return (_a = (isPersistEnabled ? persistedState === null || persistedState === void 0 ? void 0 : persistedState.drawerWidth : undefined)) !== null && _a !== void 0 ? _a : (_c = (_b = props.organise) === null || _b === void 0 ? void 0 : _b.allView) === null || _c === void 0 ? void 0 : _c.drawerWidth;
|
|
628
|
+
}), drawerWidth = _179[0], setDrawerWidth = _179[1];
|
|
622
629
|
// INFO: the columns the view on screen freezes at the left edge
|
|
623
|
-
var
|
|
630
|
+
var _180 = (0, react_1.useState)(function () { var _a, _b; return (_b = (_a = props.organise) === null || _a === void 0 ? void 0 : _a.allView) === null || _b === void 0 ? void 0 : _b.pinnedColumnIds; }), pinnedColumnIds = _180[0], setPinnedColumnIds = _180[1];
|
|
624
631
|
// INFO: unsaved changes are kept only once the opening view is on screen,
|
|
625
632
|
// so the defaults drawn before it never overwrite a person's own
|
|
626
|
-
var
|
|
633
|
+
var _181 = (0, react_1.useState)(false), isViewDraftReady = _181[0], setIsViewDraftReady = _181[1];
|
|
627
634
|
// INFO: null while the name box is closed
|
|
628
|
-
var
|
|
629
|
-
var
|
|
635
|
+
var _182 = (0, react_1.useState)(null), savedViewName = _182[0], setSavedViewName = _182[1];
|
|
636
|
+
var _183 = (0, react_1.useState)(null), deletingSavedViewId = _183[0], setDeletingSavedViewId = _183[1];
|
|
630
637
|
// INFO: the view chip being dragged, to drop it in another place
|
|
631
|
-
var
|
|
638
|
+
var _184 = (0, react_1.useState)(null), draggingSavedViewId = _184[0], setDraggingSavedViewId = _184[1];
|
|
632
639
|
// INFO: the tab strip in the order a drag has reached, saved once on drop
|
|
633
|
-
var
|
|
634
|
-
var
|
|
635
|
-
var
|
|
636
|
-
var
|
|
640
|
+
var _185 = (0, react_1.useState)(null), draggedTabs = _185[0], setDraggedTabs = _185[1];
|
|
641
|
+
var _186 = (0, react_1.useState)(null), renamingSavedView = _186[0], setRenamingSavedView = _186[1];
|
|
642
|
+
var _187 = (0, react_1.useState)(false), isSavedViewsExpanded = _187[0], setIsSavedViewsExpanded = _187[1];
|
|
643
|
+
var _188 = (0, react_1.useState)(null), draggingColumnId = _188[0], setDraggingColumnId = _188[1];
|
|
637
644
|
var columnRowRefs = (0, react_1.useRef)({});
|
|
638
645
|
//INFO : Used by Auth
|
|
639
|
-
var
|
|
646
|
+
var _189 = (0, react_1.useState)({
|
|
640
647
|
email: "",
|
|
641
648
|
google: "",
|
|
642
649
|
phone: "",
|
|
643
650
|
disabled: false,
|
|
644
651
|
create: false,
|
|
645
|
-
}), authMethods =
|
|
646
|
-
var
|
|
652
|
+
}), authMethods = _189[0], setAuthMethods = _189[1];
|
|
653
|
+
var _190 = (0, react_1.useState)(""), selectedAuthMethod = _190[0], setSelectedAuthMethod = _190[1];
|
|
647
654
|
// INFO: the sign-in check of a users datasheet's record is running; the
|
|
648
655
|
// panel shows a spinner rather than nothing, which read as "no login"
|
|
649
|
-
var
|
|
656
|
+
var _191 = (0, react_1.useState)(false), authLoading = _191[0], setAuthLoading = _191[1];
|
|
650
657
|
// INFO: a delete is running — the ref answers a second tap at once, before
|
|
651
658
|
// the state has rendered, and the state disables the confirm button
|
|
652
659
|
var deletingRef = (0, react_1.useRef)(false);
|
|
653
|
-
var
|
|
660
|
+
var _192 = (0, react_1.useState)(false), deleting = _192[0], setDeleting = _192[1];
|
|
654
661
|
// INFO: Used by Activity Log
|
|
655
|
-
var
|
|
656
|
-
var
|
|
662
|
+
var _193 = (0, react_1.useState)(false), activityModal = _193[0], setActivityModal = _193[1];
|
|
663
|
+
var _194 = (0, react_1.useState)(""), activityId = _194[0], setActivityId = _194[1];
|
|
657
664
|
//INFO : Used by Export
|
|
658
|
-
var
|
|
659
|
-
var
|
|
660
|
-
var
|
|
661
|
-
var
|
|
662
|
-
var
|
|
663
|
-
var
|
|
664
|
-
var
|
|
665
|
-
var
|
|
666
|
-
var
|
|
667
|
-
var
|
|
668
|
-
var
|
|
669
|
-
var
|
|
670
|
-
var
|
|
671
|
-
var
|
|
672
|
-
var
|
|
665
|
+
var _195 = (0, react_1.useState)(null), csvFile = _195[0], setCSVFile = _195[1];
|
|
666
|
+
var _196 = (0, react_1.useState)([]), csvFileData = _196[0], setCSVFileData = _196[1];
|
|
667
|
+
var _197 = (0, react_1.useState)(0), stepCSVIndex = _197[0], setStepCSVIndex = _197[1];
|
|
668
|
+
var _198 = (0, react_1.useState)({}), listCSVMapAttribute = _198[0], setListCSVMapAttribute = _198[1];
|
|
669
|
+
var _199 = (0, react_1.useState)({}), listCSVObjAttribute = _199[0], setListCSVObjAttribute = _199[1];
|
|
670
|
+
var _200 = (0, react_1.useState)([]), csvAPIAttribute = _200[0], setCSVAPIAttribute = _200[1];
|
|
671
|
+
var _201 = (0, react_1.useState)(((_2 = props.devSettings.currentUser) === null || _2 === void 0 ? void 0 : _2.userEmail) || ""), exportCSVEmail = _201[0], setExportCSVEmail = _201[1];
|
|
672
|
+
var _202 = (0, react_1.useState)(((_4 = (_3 = props.organise) === null || _3 === void 0 ? void 0 : _3.exportSettings) === null || _4 === void 0 ? void 0 : _4.defaultExportPDFName) || ""), exportPDFTitle = _202[0], setExportPDFTitle = _202[1];
|
|
673
|
+
var _203 = (0, react_1.useState)(false), exportPDFLoading = _203[0], setExportPDFLoading = _203[1];
|
|
674
|
+
var _204 = (0, react_1.useState)(false), exportReadPDFLoading = _204[0], setExportReadPDFLoading = _204[1];
|
|
675
|
+
var _205 = (0, react_1.useState)((_7 = (_6 = (_5 = props.organise) === null || _5 === void 0 ? void 0 : _5.exportSettings) === null || _6 === void 0 ? void 0 : _6.sumColumnId) !== null && _7 !== void 0 ? _7 : []), exportSumAttributeIds = _205[0], setExportSumAttributeIds = _205[1];
|
|
676
|
+
var _206 = (0, react_1.useState)((_10 = (_9 = (_8 = props.organise) === null || _8 === void 0 ? void 0 : _8.exportSettings) === null || _9 === void 0 ? void 0 : _9.hideSubItems) !== null && _10 !== void 0 ? _10 : false), hideSubItems = _206[0], setHideSubItems = _206[1];
|
|
677
|
+
var _207 = (0, react_1.useState)([]), importTableData = _207[0], setImportTableData = _207[1];
|
|
678
|
+
var _208 = (0, react_1.useState)([]), queryList = _208[0], setQueryList = _208[1];
|
|
679
|
+
var _209 = (0, react_1.useState)(undefined), allQueryList = _209[0], setAllQueryList = _209[1];
|
|
673
680
|
// INFO: a restored state wins over the prop; its "" is a list the user
|
|
674
681
|
// ungrouped, so it opens ungrouped
|
|
675
|
-
var
|
|
682
|
+
var _210 = (0, react_1.useState)((persistedState === null || persistedState === void 0 ? void 0 : persistedState.groupBy) !== undefined
|
|
676
683
|
? persistedState.groupBy || undefined
|
|
677
|
-
: (_11 = props.organise) === null || _11 === void 0 ? void 0 : _11.groupBy), groupId =
|
|
684
|
+
: (_11 = props.organise) === null || _11 === void 0 ? void 0 : _11.groupBy), groupId = _210[0], setGroupId = _210[1];
|
|
678
685
|
// INFO: each group's total per number column, keyed by section id
|
|
679
|
-
var
|
|
686
|
+
var _211 = (0, react_1.useState)({}), groupSummaries = _211[0], setGroupSummaries = _211[1];
|
|
680
687
|
// INFO: each group's row count over every row the filters match; null until
|
|
681
688
|
// read. A band paged alone shows it until its own first page lands, and a
|
|
682
689
|
// band it counts empty is left out instead of waiting to be read
|
|
683
|
-
var
|
|
690
|
+
var _212 = (0, react_1.useState)(null), groupTotals = _212[0], setGroupTotals = _212[1];
|
|
684
691
|
// INFO: the last read of groupTotals failed, so bands fall back to the rows
|
|
685
692
|
// loaded instead of waiting on a total that is not coming
|
|
686
|
-
var
|
|
693
|
+
var _213 = (0, react_1.useState)(false), groupTotalsFailed = _213[0], setGroupTotalsFailed = _213[1];
|
|
687
694
|
var groupSummaryRequestRef = (0, react_1.useRef)(0);
|
|
688
695
|
// INFO: the grouped count waiting to go out, so a filter change can stop it
|
|
689
696
|
// before it sends the filters it was scheduled with
|
|
690
697
|
var groupSummaryTimerRef = (0, react_1.useRef)(null);
|
|
691
|
-
var
|
|
692
|
-
var
|
|
698
|
+
var _214 = (0, react_1.useState)({}), commentCounts = _214[0], setCommentCounts = _214[1];
|
|
699
|
+
var _215 = (0, react_1.useState)({}), commentUnread = _215[0], setCommentUnread = _215[1];
|
|
693
700
|
// INFO: Monday-board per-group paging. Keyed by the group key that
|
|
694
701
|
// handleBuildNewTableGroups() produces (an option, Unknown or No Value).
|
|
695
702
|
// Each group tracks its own loaded cursor + total so it can lazily load its
|
|
696
703
|
// next page as the user scrolls inside that band, independent of every other
|
|
697
704
|
// group. Only used when renderCheckGroupPaging() is true.
|
|
698
|
-
var
|
|
705
|
+
var _216 = (0, react_1.useState)({}), groupPageState = _216[0], setGroupPageState = _216[1];
|
|
699
706
|
// INFO: read fresh inside the async per-group fetch so chained scroll fires
|
|
700
707
|
// in one tick do not re-fetch an already in-flight page.
|
|
701
708
|
var groupPageStateRef = (0, react_1.useRef)({});
|
|
@@ -710,62 +717,62 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
710
717
|
var groupLoadingKeyRef = (0, react_1.useRef)(null);
|
|
711
718
|
var groupLoadQueueRef = (0, react_1.useRef)([]);
|
|
712
719
|
var handleFetchGroupNextPageRef = (0, react_1.useRef)(function () { });
|
|
713
|
-
var
|
|
714
|
-
var
|
|
720
|
+
var _217 = (0, react_1.useState)(""), readTabSection = _217[0], setReadTabSection = _217[1];
|
|
721
|
+
var _218 = (0, react_1.useState)(false), readFloatingNav = _218[0], setReadFloatingNav = _218[1];
|
|
715
722
|
var readTabSectionRefs = (0, react_1.useRef)({});
|
|
716
723
|
//INFO : Used by Read
|
|
717
724
|
//INFO : Used by Update
|
|
718
|
-
var
|
|
719
|
-
var
|
|
720
|
-
var
|
|
721
|
-
var
|
|
722
|
-
var
|
|
723
|
-
var
|
|
724
|
-
var
|
|
725
|
+
var _219 = (0, react_1.useState)(false), modalVisible = _219[0], setModalVisible = _219[1];
|
|
726
|
+
var _220 = (0, react_1.useState)(false), deleteModal = _220[0], setDeleteModal = _220[1];
|
|
727
|
+
var _221 = (0, react_1.useState)(false), excelModal = _221[0], setExcelModal = _221[1];
|
|
728
|
+
var _222 = (0, react_1.useState)(false), exportExcel = _222[0], setExportExcel = _222[1];
|
|
729
|
+
var _223 = (0, react_1.useState)(""), exportType = _223[0], setExportType = _223[1];
|
|
730
|
+
var _224 = (0, react_1.useState)(false), exportQR = _224[0], setExportQR = _224[1];
|
|
731
|
+
var _225 = (0, react_1.useState)(function () {
|
|
725
732
|
var _a, _b;
|
|
726
733
|
var firstTabId = (_b = (_a = structure.find(function (item) { return item.tabId; })) === null || _a === void 0 ? void 0 : _a.tabId) !== null && _b !== void 0 ? _b : "";
|
|
727
734
|
return firstTabId;
|
|
728
|
-
}), activeTab =
|
|
729
|
-
var
|
|
730
|
-
var
|
|
731
|
-
var
|
|
732
|
-
var
|
|
733
|
-
var
|
|
734
|
-
var
|
|
735
|
-
var
|
|
735
|
+
}), activeTab = _225[0], setActiveTab = _225[1];
|
|
736
|
+
var _226 = (0, react_1.useState)(false), signatureSigning = _226[0], setSignatureSigning = _226[1];
|
|
737
|
+
var _227 = (0, react_1.useState)({}), selectedData = _227[0], setSelectedData = _227[1];
|
|
738
|
+
var _228 = (0, react_1.useState)(""), selectedObjectStructureId = _228[0], setSelectedObjectStructureId = _228[1];
|
|
739
|
+
var _229 = (0, react_1.useState)(""), selectedObjectId = _229[0], setSelectedObjectId = _229[1];
|
|
740
|
+
var _230 = (0, react_1.useState)(""), selectedListAddressId = _230[0], setSelectedListAddressId = _230[1];
|
|
741
|
+
var _231 = (0, react_1.useState)(-1), selectedListAddressIndex = _231[0], setSelectedListAddressIndex = _231[1];
|
|
742
|
+
var _232 = (0, react_1.useState)({
|
|
736
743
|
lat: 0,
|
|
737
744
|
lng: 0,
|
|
738
745
|
name: "",
|
|
739
|
-
}), selectedListAddress =
|
|
740
|
-
var
|
|
741
|
-
var
|
|
742
|
-
var
|
|
743
|
-
var
|
|
744
|
-
var
|
|
745
|
-
var
|
|
746
|
+
}), selectedListAddress = _232[0], setSelectedListAddress = _232[1];
|
|
747
|
+
var _233 = (0, react_1.useState)({}), selectedObjectData = _233[0], setSelectedObjectData = _233[1];
|
|
748
|
+
var _234 = (0, react_1.useState)(null), objectCellEdit = _234[0], setObjectCellEdit = _234[1];
|
|
749
|
+
var _235 = (0, react_1.useState)(false), referenceLoading = _235[0], setReferenceLoading = _235[1];
|
|
750
|
+
var _236 = (0, react_1.useState)({}), referencesOptions = _236[0], setReferencesOptions = _236[1];
|
|
751
|
+
var _237 = (0, react_1.useState)({}), referencesDetails = _237[0], setReferencesDetails = _237[1];
|
|
752
|
+
var _238 = (0, react_1.useState)({}), listReferencesOptions = _238[0], setListReferencesOptions = _238[1];
|
|
746
753
|
// INFO: the referenced records themselves, for a table cell that picks from
|
|
747
754
|
// a list on one (referenceSelection)
|
|
748
|
-
var
|
|
749
|
-
var
|
|
750
|
-
var
|
|
751
|
-
var
|
|
752
|
-
var
|
|
755
|
+
var _239 = (0, react_1.useState)({}), listReferencesDetails = _239[0], setListReferencesDetails = _239[1];
|
|
756
|
+
var _240 = (0, react_1.useState)({}), referenceDeleteTableData = _240[0], setReferenceDeleteTableData = _240[1];
|
|
757
|
+
var _241 = (0, react_1.useState)([]), relatedSections = _241[0], setRelatedSections = _241[1];
|
|
758
|
+
var _242 = (0, react_1.useState)(0), referenceDeleteIndex = _242[0], setReferenceDeleteIndex = _242[1];
|
|
759
|
+
var _243 = (0, react_1.useState)({
|
|
753
760
|
id: "",
|
|
754
761
|
name: "",
|
|
755
762
|
type: "string",
|
|
756
|
-
}), referenceCreationModal =
|
|
757
|
-
var
|
|
758
|
-
var
|
|
763
|
+
}), referenceCreationModal = _243[0], setReferenceCreationModal = _243[1];
|
|
764
|
+
var _244 = (0, react_1.useState)({}), referenceModelSchema = _244[0], setReferenceSchema = _244[1];
|
|
765
|
+
var _245 = (0, react_1.useState)([]), kanbanChecked = _245[0], setKanbanChecked = _245[1];
|
|
759
766
|
//INFO : Offline
|
|
760
|
-
var
|
|
761
|
-
var
|
|
767
|
+
var _246 = (0, react_1.useState)(0), offlineDataLength = _246[0], setOfflineDataLength = _246[1];
|
|
768
|
+
var _247 = (0, react_1.useState)(false), offlineModal = _247[0], setOfflineModal = _247[1];
|
|
762
769
|
// INFO: live-stream state — driven by socket connection and navigator.onLine
|
|
763
|
-
var
|
|
764
|
-
var
|
|
770
|
+
var _248 = (0, react_1.useState)(false), isLive = _248[0], setIsLive = _248[1];
|
|
771
|
+
var _249 = (0, react_1.useState)(false), isLiveOffline = _249[0], setIsLiveOffline = _249[1];
|
|
765
772
|
// INFO: true when navigator is offline — used to switch ReadQueryHoc between
|
|
766
773
|
// server reads (online, full pagination) and IndexedDB reads (offline, cached data).
|
|
767
774
|
// Independent of SSE status so it works even when bareSocketName is not set.
|
|
768
|
-
var
|
|
775
|
+
var _250 = (0, react_1.useState)(typeof navigator !== "undefined" ? !navigator.onLine : false), isNetworkOffline = _250[0], setIsNetworkOffline = _250[1];
|
|
769
776
|
var previousType = (0, react_1.useRef)(null);
|
|
770
777
|
var previousSelectedData = (0, react_1.useRef)(null);
|
|
771
778
|
var scrollSentinelRef = (0, react_1.useRef)(null);
|
|
@@ -1144,7 +1151,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1144
1151
|
var isSchemaHideMode = ((_23 = props.organise) === null || _23 === void 0 ? void 0 : _23.onChangeHide) ? true : false;
|
|
1145
1152
|
// INFO: rows per page is a view setting the user can change, so it starts from
|
|
1146
1153
|
// the persisted value and falls back to the consumer's limit
|
|
1147
|
-
var
|
|
1154
|
+
var _251 = (0, react_1.useState)((_25 = (_24 = (isPersistEnabled ? persistedState === null || persistedState === void 0 ? void 0 : persistedState.pageLimit : undefined)) !== null && _24 !== void 0 ? _24 : props.limit) !== null && _25 !== void 0 ? _25 : 10), pageLimit = _251[0], setPageLimit = _251[1];
|
|
1148
1155
|
var limit = pageLimit;
|
|
1149
1156
|
var isSavedViewsEnabled = !!((_26 = props.organise) === null || _26 === void 0 ? void 0 : _26.savedViews) && resolvedType === "list";
|
|
1150
1157
|
// INFO: an app that stores views takes over from this browser's storage, so
|
|
@@ -1291,7 +1298,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1291
1298
|
displayRows: filtered.map(function (eachEntry) { return eachEntry.displayRow; }),
|
|
1292
1299
|
};
|
|
1293
1300
|
};
|
|
1294
|
-
var
|
|
1301
|
+
var _252 = (0, permissions_1.handleResolveDataTemplateWritePermissions)(props.edit), canUpdateRecord = _252.canUpdateRecord, canInlineUpdate = _252.canInlineUpdate, canBatchUpdate = _252.canBatchUpdate, canDeleteRecord = _252.canDeleteRecord;
|
|
1295
1302
|
var isEditor = ((_38 = props.edit) === null || _38 === void 0 ? void 0 : _38.allEditable) ? true : false;
|
|
1296
1303
|
var isOffline = (_39 = props.bareSettings) === null || _39 === void 0 ? void 0 : _39.bareOffline;
|
|
1297
1304
|
// INFO: when bareOfflineNetworkAware is true, the save path is also gated on
|
|
@@ -1338,7 +1345,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1338
1345
|
// INFO: each row button opens what it shows: the comment button the row's
|
|
1339
1346
|
// comments and logs alone, the eye (or the row) its details alone, so
|
|
1340
1347
|
// neither has to be scrolled past to reach the other
|
|
1341
|
-
var
|
|
1348
|
+
var _253 = (0, react_1.useState)(false), inlineActivityOnly = _253[0], setInlineActivityOnly = _253[1];
|
|
1342
1349
|
var isActivityOnly = isInlineActivity && inlineActivityOnly;
|
|
1343
1350
|
// INFO: the row whose comments were shown; going back to the list asks its
|
|
1344
1351
|
// comment count again, as the drawer does when it closes
|
|
@@ -1923,7 +1930,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
1923
1930
|
// INFO: scroll mode reloads from page 0; the anchor restores the position
|
|
1924
1931
|
pageIndex: renderCheckScrollMode() ? 0 : pageIndex, hiddenColumnIds: structure.filter(function (col) { return col.hide; }).map(function (col) { return col.id; }),
|
|
1925
1932
|
// INFO: raw, so switching bareViewSettings off does not wipe the user's choice
|
|
1926
|
-
userHiddenColumnIds: userHiddenColumnIds, shownSystemColumnIds: shownSystemColumnIds, columnOrder: structure.map(function (col) { return col.id; }), columnWidths: columnWidths, pinnedColumnIds: pinnedColumnIds, groupBy: groupId !== null && groupId !== void 0 ? groupId : "" }, scrollCaptureRef.current));
|
|
1933
|
+
userHiddenColumnIds: userHiddenColumnIds, shownSystemColumnIds: shownSystemColumnIds, columnOrder: structure.map(function (col) { return col.id; }), columnWidths: columnWidths, drawerWidth: drawerWidth, pinnedColumnIds: pinnedColumnIds, groupBy: groupId !== null && groupId !== void 0 ? groupId : "" }, scrollCaptureRef.current));
|
|
1927
1934
|
};
|
|
1928
1935
|
handleRegisterViewSnapshot(handleBuildViewSnapshot);
|
|
1929
1936
|
//=====================================================================================
|
|
@@ -2129,13 +2136,15 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
2129
2136
|
// INFO: a view is the defaults overridden by its own fields, so a field it
|
|
2130
2137
|
// leaves out is reset rather than carried over from whatever was on screen
|
|
2131
2138
|
var handleResolveViewState = function (state) {
|
|
2132
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
2139
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
2133
2140
|
var model = (_a = props.model) !== null && _a !== void 0 ? _a : [];
|
|
2134
|
-
return ((
|
|
2141
|
+
return ((_o = (0, viewStatePersistence_1.handlePruneStaleColumns)(__assign({ filterSearchParams: initialFilterSearchParams, filterSelection: initialFilterSelection, filterReference: initialFilterReference, filterReferenceDate: (0, viewStatePersistence_1.serializeDateFilterState)(initialFilterReferenceDate), sort: (_b = props.organise) === null || _b === void 0 ? void 0 : _b.sort, pageLimit: (_c = props.limit) !== null && _c !== void 0 ? _c : 10, userHiddenColumnIds: [], shownSystemColumnIds: [], hiddenColumnIds: model
|
|
2135
2142
|
.filter(function (eachColumn) { return eachColumn.hide; })
|
|
2136
2143
|
.map(function (eachColumn) { return eachColumn.id; }), columnOrder: model.map(function (eachColumn) { return eachColumn.id; }),
|
|
2137
2144
|
// INFO: a saved view without its own widths follows All's
|
|
2138
|
-
columnWidths: (_f = (_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.allView) === null || _e === void 0 ? void 0 : _e.columnWidths) !== null && _f !== void 0 ? _f : {},
|
|
2145
|
+
columnWidths: (_f = (_e = (_d = props.organise) === null || _d === void 0 ? void 0 : _d.allView) === null || _e === void 0 ? void 0 : _e.columnWidths) !== null && _f !== void 0 ? _f : {},
|
|
2146
|
+
// INFO: and so does one without its own drawer width
|
|
2147
|
+
drawerWidth: (_h = (_g = props.organise) === null || _g === void 0 ? void 0 : _g.allView) === null || _h === void 0 ? void 0 : _h.drawerWidth, pinnedColumnIds: (_k = (_j = props.organise) === null || _j === void 0 ? void 0 : _j.allView) === null || _k === void 0 ? void 0 : _k.pinnedColumnIds, groupBy: (_m = (_l = props.organise) === null || _l === void 0 ? void 0 : _l.groupBy) !== null && _m !== void 0 ? _m : "" }, (state !== null && state !== void 0 ? state : {})), model, (0, flexFilter_1.handleBuildFlexFilterStructure)(model, flexFilterExtras))) !== null && _o !== void 0 ? _o : {});
|
|
2139
2148
|
};
|
|
2140
2149
|
var handleApplyViewColumns = function (columns, state) {
|
|
2141
2150
|
var _a, _b;
|
|
@@ -2247,6 +2256,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
2247
2256
|
setUserHiddenColumnIds((_m = next.userHiddenColumnIds) !== null && _m !== void 0 ? _m : []);
|
|
2248
2257
|
setShownSystemColumnIds((_o = next.shownSystemColumnIds) !== null && _o !== void 0 ? _o : []);
|
|
2249
2258
|
setColumnWidths((_p = next.columnWidths) !== null && _p !== void 0 ? _p : {});
|
|
2259
|
+
setDrawerWidth(next.drawerWidth);
|
|
2250
2260
|
setPinnedColumnIds(next.pinnedColumnIds);
|
|
2251
2261
|
if (view) {
|
|
2252
2262
|
if (!schemaStructureRef.current)
|
|
@@ -2481,6 +2491,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
2481
2491
|
userHiddenColumnIds,
|
|
2482
2492
|
shownSystemColumnIds,
|
|
2483
2493
|
pageLimit,
|
|
2494
|
+
drawerWidth,
|
|
2484
2495
|
]);
|
|
2485
2496
|
/* eslint-enable */
|
|
2486
2497
|
// INFO: a view's settings that differ from what is stored for it are this
|
|
@@ -2516,6 +2527,7 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
2516
2527
|
pageLimit,
|
|
2517
2528
|
groupId,
|
|
2518
2529
|
columnWidths,
|
|
2530
|
+
drawerWidth,
|
|
2519
2531
|
pinnedColumnIds,
|
|
2520
2532
|
(_92 = props.organise) === null || _92 === void 0 ? void 0 : _92.allView,
|
|
2521
2533
|
(_93 = props.organise) === null || _93 === void 0 ? void 0 : _93.sharedViews,
|
|
@@ -9453,7 +9465,16 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
9453
9465
|
handleCloseDrawer();
|
|
9454
9466
|
}, title: title !== null && title !== void 0 ? title : (typeof props.title === "string" && props.title
|
|
9455
9467
|
? props.title
|
|
9456
|
-
: "Details"), desc: desc, expandable: !disableExpand, resizable: !disableResize,
|
|
9468
|
+
: "Details"), desc: desc, expandable: !disableExpand, resizable: !disableResize,
|
|
9469
|
+
// INFO: kept with the view like a dragged column width, so the panel
|
|
9470
|
+
// reopens, and survives a reload, at the width it was left at
|
|
9471
|
+
width: drawerWidth ? parseFloat(drawerWidth) || undefined : undefined,
|
|
9472
|
+
// INFO: a reset is kept as "" rather than undefined, which JSON drops,
|
|
9473
|
+
// so a view or draft that resets it does not fall back to All's again
|
|
9474
|
+
// after a reload
|
|
9475
|
+
onResizeWidth: function (pixels) {
|
|
9476
|
+
return setDrawerWidth(pixels === undefined ? "" : (0, columnWidth_1.handleFormatColumnWidth)(pixels));
|
|
9477
|
+
}, onExpand: function () { return setDrawerPageView(true); }, content: react_1.default.createElement("div", { onInputCapture: handleMarkDrawerFormEdited, onChangeCapture: handleMarkDrawerFormEdited, onClickCapture: handleMarkDrawerFormChoice },
|
|
9457
9478
|
react_1.default.createElement(exports.DataTemplate, __assign({ key: drawerSessionRef.current }, props, { id: drawerReadIdRef.current, type: isForm ? "update" : "read",
|
|
9458
9479
|
// INFO: strips the flag so the nested instance renders the record
|
|
9459
9480
|
// rather than hosting another drawer
|
|
@@ -13310,7 +13331,10 @@ exports.DataTemplate = (0, react_1.forwardRef)(function (rawProps, ref) {
|
|
|
13310
13331
|
// INFO: the record stays set while the drawer slides out — clearing it
|
|
13311
13332
|
// would remount the hidden panel collection-wide and fetch again. The
|
|
13312
13333
|
// toolbar's collection-wide button clears it when it opens.
|
|
13313
|
-
onClose: function () { return setActivityModal(false); }, anchor: "responsive", maxWidth: "2xl", maxHeight: "75",
|
|
13334
|
+
onClose: function () { return setActivityModal(false); }, anchor: "responsive", maxWidth: "2xl", maxHeight: "75",
|
|
13335
|
+
// INFO: dragged like the read drawer; the width sticks across
|
|
13336
|
+
// opens while the list stays mounted
|
|
13337
|
+
resizable: true, title: "Activity Log", content: renderActivityPanel(resolvedType === "read" ? ((_125 = props.id) !== null && _125 !== void 0 ? _125 : "") : activityId) })), document.body),
|
|
13314
13338
|
renderScrollSentinel()));
|
|
13315
13339
|
});
|
|
13316
13340
|
//# sourceMappingURL=index.js.map
|