@leav/ui 1.9.0 → 1.10.0-088d807d
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/_gqlTypes/index.d.ts +305 -121
- package/dist/_gqlTypes/index.js +243 -102
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/createRecordMutation.js +2 -2
- package/dist/_queries/records/createRecordMutation.js.map +1 -1
- package/dist/_utils/getFiltersFromRequest.js +5 -6
- package/dist/_utils/getFiltersFromRequest.js.map +1 -1
- package/dist/_utils/index.d.ts +0 -1
- package/dist/_utils/index.js +3 -7
- package/dist/_utils/index.js.map +1 -1
- package/dist/_utils/typeguards.d.ts +5 -0
- package/dist/_utils/typeguards.js +6 -0
- package/dist/_utils/typeguards.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +2 -1
- package/dist/components/Explorer/Explorer.js +31 -13
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerToolbar.js +2 -1
- package/dist/components/Explorer/ExplorerToolbar.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerCountData.d.ts +16 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js +25 -0
- package/dist/components/Explorer/_queries/useExplorerCountData.js.map +1 -0
- package/dist/components/Explorer/_queries/useExplorerData.js +18 -20
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/actions-mass/ResultsCount.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js +8 -0
- package/dist/components/Explorer/actions-mass/ResultsCount.js.map +1 -0
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/EditAttributeMassActionModal.js.map +1 -1
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.d.ts +9 -2
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js +18 -4
- package/dist/components/Explorer/actions-mass/edit-attribute/useCountValuesOccurrencesHook.js.map +1 -1
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.d.ts +10 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js +69 -0
- package/dist/components/Explorer/actions-mass/generate-previews/GeneratePreviewsModal.js.map +1 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.d.ts +18 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js +57 -0
- package/dist/components/Explorer/actions-mass/generate-previews/useGetPreviewSizesData.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.d.ts +19 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js +94 -0
- package/dist/components/Explorer/actions-mass/useGeneratePreviewsMassAction.js.map +1 -0
- package/dist/components/Explorer/actions-mass/useMassActions.d.ts +5 -3
- package/dist/components/Explorer/actions-mass/useMassActions.js +19 -13
- package/dist/components/Explorer/actions-mass/useMassActions.js.map +1 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.d.ts +3 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js +5 -1
- package/dist/components/Explorer/actions-primary/useCreatePrimaryAction.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js +6 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/ConfigureDisplay.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js +5 -5
- package/dist/components/Explorer/manage-view-settings/configure-display/attributes/SelectVisibleAttributes.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js +1 -1
- package/dist/components/Explorer/manage-view-settings/configure-display/view-type/SelectViewType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/FilterItems.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.js +11 -8
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/Filters/_queries/treeFiltersDataQuery.d.ts +6 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js +54 -0
- package/dist/components/Filters/_queries/treeFiltersDataQuery.js.map +1 -0
- package/dist/components/Filters/context/useGetTreeFilters.js +24 -40
- package/dist/components/Filters/context/useGetTreeFilters.js.map +1 -1
- package/dist/components/Filters/filter-items/CommonFilterItem.js +8 -6
- package/dist/components/Filters/filter-items/CommonFilterItem.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js +6 -1
- package/dist/components/Filters/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js +11 -19
- package/dist/components/Filters/filter-items/filter-type/FilterValueListDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js +27 -18
- package/dist/components/Filters/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js +1 -2
- package/dist/components/Filters/filter-items/filter-type/tree/TreeAttributeDropDown.js.map +1 -1
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.d.ts +6 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js +54 -0
- package/dist/components/Filters/filter-items/filter-type/tree/_queries/filterTreeDataQuery.js.map +1 -0
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js +22 -41
- package/dist/components/Filters/filter-items/filter-type/tree/useGetTreeData.js.map +1 -1
- package/dist/components/Notifications/InitNotificationsSubscription.d.ts +4 -2
- package/dist/components/Notifications/InitNotificationsSubscription.js.map +1 -1
- package/dist/components/RecordEdition/EditRecord/EditRecord.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecord/EditRecord.js +3 -27
- package/dist/components/RecordEdition/EditRecord/EditRecord.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js +2 -2
- package/dist/components/RecordEdition/EditRecordButtons/SidebarButton.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +5 -19
- package/dist/components/RecordEdition/EditRecordContent/_types.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/_types.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js +1 -3
- package/dist/components/RecordEdition/EditRecordContent/antdUtils.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/explorer/LinkFieldExplorer.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js +28 -17
- package/dist/components/RecordEdition/EditRecordModal/EditRecordModal.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js +30 -18
- package/dist/components/RecordEdition/EditRecordPage/EditRecordPage.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js +11 -0
- package/dist/components/RecordEdition/EditRecordPage/ErrorComponent.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.d.ts +2 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js +35 -0
- package/dist/components/RecordEdition/EditRecordPage/getInitialRecordValues.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.d.ts +1 -2
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +7 -9
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +2 -33
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +11 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +4 -20
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/_types.d.ts +1 -1
- package/dist/components/RecordEdition/_types.js.map +1 -1
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js +7 -6
- package/dist/components/RecordEdition/editRecordReducer/editRecordReducer.js.map +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.d.ts +1 -1
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js +6 -2
- package/dist/components/RecordEdition/hooks/useGetSubmitButtons.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistory.d.ts +1 -0
- package/dist/components/RecordHistory/RecordHistory.js +3 -3
- package/dist/components/RecordHistory/RecordHistory.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.d.ts +1 -0
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js +3 -3
- package/dist/components/RecordHistory/RecordHistoryGoUpButton.js.map +1 -1
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js +7 -5
- package/dist/components/RecordHistory/RecordHistoryLogEntry.js.map +1 -1
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.js +38 -14
- package/dist/components/RecordHistory/_queries/recordHistoryQuery.js.map +1 -1
- package/dist/components/RecordHistory/_types.d.ts +2 -2
- package/dist/components/RecordHistory/_types.js.map +1 -1
- package/dist/components/SearchModal/SearchModal.js +28 -18
- package/dist/components/SearchModal/SearchModal.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNode.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js +2 -2
- package/dist/components/SelectTreeNode/SelectTreeNode.js.map +1 -1
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.d.ts +0 -2
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js +60 -114
- package/dist/components/SelectTreeNode/SelectTreeNodeContent.js.map +1 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.d.ts +0 -1
- package/dist/components/SelectTreeNode/TreeNodeTitle.js +3 -7
- package/dist/components/SelectTreeNode/TreeNodeTitle.js.map +1 -1
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.d.ts +6 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js +56 -0
- package/dist/components/SelectTreeNode/_queries/treeContentDataQuery.js.map +1 -0
- package/dist/components/SelectTreeNode/_types.d.ts +0 -1
- package/dist/components/SelectTreeNode/_types.js.map +1 -1
- package/dist/components/index.d.ts +0 -3
- package/dist/components/index.js +0 -3
- package/dist/components/index.js.map +1 -1
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js +24 -22
- package/dist/hooks/useGetRecordForm/useGetRecordForm.js.map +1 -1
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js +9 -6
- package/dist/hooks/useGetRecordValuesQuery/useGetRecordValuesQuery.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/schema.d.ts +14 -2
- package/dist/hooks/useIFrameMessenger/schema.js +7 -1
- package/dist/hooks/useIFrameMessenger/schema.js.map +1 -1
- package/dist/hooks/useIFrameMessenger/types.d.ts +5 -0
- package/dist/hooks/useIFrameMessenger/types.js.map +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.d.ts +1 -1
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js +14 -6
- package/dist/hooks/useRecordsConsultationHistory/useRecordsConsultationHistory.js.map +1 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.d.ts +2 -1
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js +32 -4
- package/dist/hooks/useRedirectToLogin/useRedirectToLogin.js.map +1 -1
- package/dist/locales/en/shared.json +17 -35
- package/dist/locales/fr/shared.json +17 -35
- package/package.json +11 -20
- package/dist/__mocks__/common/mockSearchContextProvider.d.ts +0 -6
- package/dist/__mocks__/common/mockSearchContextProvider.js +0 -10
- package/dist/__mocks__/common/mockSearchContextProvider.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/Attribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js +0 -50
- package/dist/components/AttributesSelectionList/Attribute/Attribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/Attribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/Attribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/Attribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/AttributesSelectionList.d.ts +0 -10
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js +0 -72
- package/dist/components/AttributesSelectionList/AttributesSelectionList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.d.ts +0 -7
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js +0 -39
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/SelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttribute/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js +0 -63
- package/dist/components/AttributesSelectionList/SelectedAttributesList/SelectedAttributesList.js.map +0 -1
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js +0 -6
- package/dist/components/AttributesSelectionList/SelectedAttributesList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/_types.d.ts +0 -8
- package/dist/components/AttributesSelectionList/_types.js +0 -2
- package/dist/components/AttributesSelectionList/_types.js.map +0 -1
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.d.ts +0 -3
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js +0 -9
- package/dist/components/AttributesSelectionList/helpers/attributeToSelectedAttribute.js.map +0 -1
- package/dist/components/AttributesSelectionList/index.d.ts +0 -2
- package/dist/components/AttributesSelectionList/index.js +0 -6
- package/dist/components/AttributesSelectionList/index.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.d.ts +0 -11
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js +0 -10
- package/dist/components/AttributesSelectionList/reducer/__mocks__/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.d.ts +0 -33
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js +0 -77
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListReducer.js.map +0 -1
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.d.ts +0 -10
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js +0 -8
- package/dist/components/AttributesSelectionList/reducer/attributesSelectionListStateContext.js.map +0 -1
- package/dist/components/AttributesSelectionList/sharedComponents.d.ts +0 -809
- package/dist/components/AttributesSelectionList/sharedComponents.js +0 -16
- package/dist/components/AttributesSelectionList/sharedComponents.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.d.ts +0 -10
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js +0 -39
- package/dist/components/DeactivateRecordsModal/DeactivateRecordsModal.js.map +0 -1
- package/dist/components/DeactivateRecordsModal/index.d.ts +0 -1
- package/dist/components/DeactivateRecordsModal/index.js +0 -5
- package/dist/components/DeactivateRecordsModal/index.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.d.ts +0 -13
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js +0 -50
- package/dist/components/LibraryItemsList/CreateNewRecordButton/CreateNewRecordButton.js.map +0 -1
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js +0 -6
- package/dist/components/LibraryItemsList/CreateNewRecordButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js +0 -80
- package/dist/components/LibraryItemsList/DisplayOptions/DisplayOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayOptions/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayOptions/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayOptions/index.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js +0 -22
- package/dist/components/LibraryItemsList/DisplayTypeSelector/DisplayTypeSelector.js.map +0 -1
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js +0 -6
- package/dist/components/LibraryItemsList/DisplayTypeSelector/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.d.ts +0 -13
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js +0 -229
- package/dist/components/LibraryItemsList/FiltersDropdown/FiltersDropdown.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersDropdown/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersDropdown/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.d.ts +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js +0 -328
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/Filter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.d.ts +0 -7
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js +0 -90
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/FilterAttributeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterAttributeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js +0 -13
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/BooleanFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/BooleanFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js +0 -26
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/DateBetweenFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateBetweenFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js +0 -22
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/DateFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/DateFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js +0 -35
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/NumericFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/NumericFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js +0 -34
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/TextFilter.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/FilterInput/TextFilter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js +0 -16
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/filterUtils.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/Filter/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.d.ts +0 -8
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js +0 -11
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/FilterDropdownButton.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterDropdownButton/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.d.ts +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js +0 -38
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/FilterTreeCondition.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/FilterTreeCondition/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.d.ts +0 -14
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js +0 -147
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersOptions.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js +0 -121
- package/dist/components/LibraryItemsList/FiltersPanel/FiltersPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/FiltersPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/FiltersPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.d.ts +0 -3
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js +0 -17
- package/dist/components/LibraryItemsList/FiltersPanel/mustHideValue.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.d.ts +0 -8
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js +0 -18
- package/dist/components/LibraryItemsList/IconViewType/IconViewType.js.map +0 -1
- package/dist/components/LibraryItemsList/IconViewType/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/IconViewType/index.js +0 -6
- package/dist/components/LibraryItemsList/IconViewType/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsList.d.ts +0 -14
- package/dist/components/LibraryItemsList/LibraryItemsList.js +0 -18
- package/dist/components/LibraryItemsList/LibraryItemsList.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.d.ts +0 -16
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js +0 -202
- package/dist/components/LibraryItemsList/LibraryItemsListContent/LibraryItemsListContent.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListContent/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js +0 -32
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/LibraryItemsListEmpty.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListEmpty/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js +0 -21
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/LibraryItemsListPagination.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListPagination/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/BodyCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.d.ts +0 -7
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js +0 -54
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/BodyRow.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/BodyRow/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js +0 -66
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/AllValuesCount.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/AllValuesCount/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.d.ts +0 -8
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js +0 -59
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/Cell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js +0 -56
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/CellInfos.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellInfos/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js +0 -34
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/CellSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/CellSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.d.ts +0 -5
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js +0 -23
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/ElementsToDisplay/RichTextDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.d.ts +0 -3
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js +0 -80
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/StandardCell.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/StandardCell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js +0 -11
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/typeGuards.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.d.ts +0 -12
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/types.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js +0 -40
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Cell/utils.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.d.ts +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js +0 -81
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/ChooseTableColumns.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/ChooseTableColumns/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.d.ts +0 -9
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +0 -142
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/index.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js +0 -232
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Table.js.map +0 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js +0 -6
- package/dist/components/LibraryItemsList/LibraryItemsListTable/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.d.ts +0 -9
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js +0 -27
- package/dist/components/LibraryItemsList/MenuItemList/MenuItemList.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemList/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemList/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js +0 -62
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/ActionsMenu.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/ActionsMenu/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.d.ts +0 -5
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js +0 -139
- package/dist/components/LibraryItemsList/MenuItemListSelected/MenuItemListSelected.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuItemListSelected/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js +0 -58
- package/dist/components/LibraryItemsList/MenuSelection/MenuSelection.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuSelection/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuSelection/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuSelection/index.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/MenuView.d.ts +0 -6
- package/dist/components/LibraryItemsList/MenuView/MenuView.js +0 -162
- package/dist/components/LibraryItemsList/MenuView/MenuView.js.map +0 -1
- package/dist/components/LibraryItemsList/MenuView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/MenuView/index.js +0 -6
- package/dist/components/LibraryItemsList/MenuView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js +0 -21
- package/dist/components/LibraryItemsList/SearchItems/SearchItems.js.map +0 -1
- package/dist/components/LibraryItemsList/SearchItems/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/SearchItems/index.js +0 -6
- package/dist/components/LibraryItemsList/SearchItems/index.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js +0 -58
- package/dist/components/LibraryItemsList/Sidebar/Sidebar.js.map +0 -1
- package/dist/components/LibraryItemsList/Sidebar/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/Sidebar/index.js +0 -6
- package/dist/components/LibraryItemsList/Sidebar/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.d.ts +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js +0 -199
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/ItemTileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/ItemTileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js +0 -50
- package/dist/components/LibraryItemsList/TileDisplay/TileDisplay.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js +0 -11
- package/dist/components/LibraryItemsList/TileDisplay/helpers/getItemPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/TileDisplay/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/TileDisplay/index.js +0 -6
- package/dist/components/LibraryItemsList/TileDisplay/index.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js +0 -66
- package/dist/components/LibraryItemsList/VersionsPanel/VersionsPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/VersionsPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/VersionsPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/VersionsPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.d.ts +0 -9
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js +0 -85
- package/dist/components/LibraryItemsList/ViewPanel/EditView/EditView.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/EditView/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/View.d.ts +0 -7
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js +0 -152
- package/dist/components/LibraryItemsList/ViewPanel/View/View.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/View/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/View/index.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js +0 -209
- package/dist/components/LibraryItemsList/ViewPanel/ViewPanel.js.map +0 -1
- package/dist/components/LibraryItemsList/ViewPanel/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/ViewPanel/index.js +0 -6
- package/dist/components/LibraryItemsList/ViewPanel/index.js.map +0 -1
- package/dist/components/LibraryItemsList/constants.d.ts +0 -12
- package/dist/components/LibraryItemsList/constants.js +0 -19
- package/dist/components/LibraryItemsList/constants.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js +0 -21
- package/dist/components/LibraryItemsList/helpers/defaultFilterConditionByAttributeFormat.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.d.ts +0 -3
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js +0 -18
- package/dist/components/LibraryItemsList/helpers/displayTypeToPreviewSize.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.d.ts +0 -4
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js +0 -64
- package/dist/components/LibraryItemsList/helpers/extractAttributesFromLibrary.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.d.ts +0 -5
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js +0 -40
- package/dist/components/LibraryItemsList/helpers/getFieldFromKey.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.d.ts +0 -6
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js +0 -10
- package/dist/components/LibraryItemsList/helpers/getFieldsFromView.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js +0 -13
- package/dist/components/LibraryItemsList/helpers/getFieldsKeyFromAttribute.js.map +0 -1
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.d.ts +0 -2
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js +0 -18
- package/dist/components/LibraryItemsList/helpers/getSortFieldByAttributeType.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.d.ts +0 -8
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js +0 -99
- package/dist/components/LibraryItemsList/hooks/useLibraryView/useLibraryView.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.d.ts +0 -82
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/_types.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js +0 -6
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/index.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js +0 -7
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchContext.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.d.ts +0 -121
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js +0 -228
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/searchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.d.ts +0 -5
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js +0 -8
- package/dist/components/LibraryItemsList/hooks/useSearchReducer/useSearchReducer.js.map +0 -1
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.d.ts +0 -7
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js +0 -40
- package/dist/components/LibraryItemsList/hooks/useUpdateViewsOrderMutation.js.map +0 -1
- package/dist/components/LibraryItemsList/index.d.ts +0 -1
- package/dist/components/LibraryItemsList/index.js +0 -5
- package/dist/components/LibraryItemsList/index.js.map +0 -1
- package/dist/components/LibraryItemsList/manageItems.d.ts +0 -11
- package/dist/components/LibraryItemsList/manageItems.js +0 -98
- package/dist/components/LibraryItemsList/manageItems.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.d.ts +0 -7
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js +0 -38
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/DeactivateRecordBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.d.ts +0 -2
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js +0 -6
- package/dist/components/LibraryItemsList/shared/DeactivateRecordBtn/index.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.d.ts +0 -12
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js +0 -29
- package/dist/components/LibraryItemsList/shared/SelectCellsBtn.js.map +0 -1
- package/dist/components/LibraryItemsList/shared/sharedUtils.d.ts +0 -4
- package/dist/components/LibraryItemsList/shared/sharedUtils.js +0 -9
- package/dist/components/LibraryItemsList/shared/sharedUtils.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.d.ts +0 -3
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js +0 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/getActiveFieldValues.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.d.ts +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js +0 -5
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js +0 -20
- package/dist/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion/isCurrentVersion.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.d.ts +0 -11
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js +0 -35
- package/dist/components/RecordEdition/EditRecordContent/hooks/useTabManagement.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.d.ts +0 -52
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js +0 -144
- package/dist/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js +0 -19
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.d.ts +0 -5
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js +0 -21
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js +0 -14
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.d.ts +0 -9
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js +0 -28
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.d.ts +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js +0 -25
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.d.ts +0 -7
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js +0 -33
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/NoValue/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts +0 -10
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js +0 -24
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.d.ts +0 -13
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js +0 -41
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/ValuesVersionBtn.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionBtn/index.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js +0 -34
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/ValuesVersionIndicator.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.d.ts +0 -2
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js +0 -6
- package/dist/components/RecordEdition/EditRecordContent/shared/ValuesVersionIndicator/index.js.map +0 -1
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import getActiveFieldValues from '../../../../../components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues';
|
|
5
|
-
import isCurrentVersion from '../../../../../components/RecordEdition/EditRecordContent/helpers/isCurrentVersion';
|
|
6
|
-
import { VersionFieldScope, } from '../../../../../components/RecordEdition/EditRecordContent/_types';
|
|
7
|
-
export var LinkFieldReducerActionsType;
|
|
8
|
-
(function (LinkFieldReducerActionsType) {
|
|
9
|
-
LinkFieldReducerActionsType["ADD_VALUES"] = "ADD_VALUES";
|
|
10
|
-
LinkFieldReducerActionsType["DELETE_VALUE"] = "DELETE_VALUE";
|
|
11
|
-
LinkFieldReducerActionsType["DELETE_ALL_VALUES"] = "DELETE_ALL_VALUES";
|
|
12
|
-
LinkFieldReducerActionsType["SET_ERROR_MESSAGE"] = "SET_ERROR_MESSAGE";
|
|
13
|
-
LinkFieldReducerActionsType["CLEAR_ERROR_MESSAGE"] = "CLEAR_ERROR_MESSAGE";
|
|
14
|
-
LinkFieldReducerActionsType["SET_IS_VALUES_ADD_VISIBLE"] = "SET_IS_VALUES_ADD_VISIBLE";
|
|
15
|
-
LinkFieldReducerActionsType["CHANGE_ACTIVE_SCOPE"] = "CHANGE_ACTIVE_SCOPE";
|
|
16
|
-
LinkFieldReducerActionsType["REFRESH_VALUES"] = "REFRESH_VALUES";
|
|
17
|
-
})(LinkFieldReducerActionsType || (LinkFieldReducerActionsType = {}));
|
|
18
|
-
export const virginState = {
|
|
19
|
-
record: null,
|
|
20
|
-
formElement: null,
|
|
21
|
-
attribute: null,
|
|
22
|
-
isReadOnly: false,
|
|
23
|
-
activeScope: VersionFieldScope.CURRENT,
|
|
24
|
-
values: {
|
|
25
|
-
[VersionFieldScope.CURRENT]: {
|
|
26
|
-
version: null,
|
|
27
|
-
values: [],
|
|
28
|
-
},
|
|
29
|
-
[VersionFieldScope.INHERITED]: null,
|
|
30
|
-
},
|
|
31
|
-
errorMessage: '',
|
|
32
|
-
isValuesAddVisible: false,
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* For given list of values, determine if there is inherited values, inherited/current version and default active scope
|
|
36
|
-
*/
|
|
37
|
-
const _computeScopeAndValues = (params) => {
|
|
38
|
-
const { attribute, values, formVersion } = params;
|
|
39
|
-
const currentVersion = attribute?.versions_conf?.versionable && attribute?.versions_conf?.profile
|
|
40
|
-
? attribute.versions_conf.profile.trees.reduce((relevantVersion, tree) => {
|
|
41
|
-
if (formVersion?.[tree.id]) {
|
|
42
|
-
relevantVersion[tree.id] = formVersion[tree.id];
|
|
43
|
-
}
|
|
44
|
-
return relevantVersion;
|
|
45
|
-
}, {})
|
|
46
|
-
: null;
|
|
47
|
-
const hasInheritedValues = attribute?.versions_conf?.versionable
|
|
48
|
-
? !isCurrentVersion(currentVersion, values?.[0]?.version ?? currentVersion)
|
|
49
|
-
: false; // We assume that all values have the same version
|
|
50
|
-
const inheritedVersion = hasInheritedValues ? values?.[0]?.version : null;
|
|
51
|
-
return {
|
|
52
|
-
activeScope: hasInheritedValues ? VersionFieldScope.INHERITED : VersionFieldScope.CURRENT,
|
|
53
|
-
values: {
|
|
54
|
-
[VersionFieldScope.CURRENT]: {
|
|
55
|
-
version: currentVersion ?? null,
|
|
56
|
-
values: hasInheritedValues ? [] : values,
|
|
57
|
-
},
|
|
58
|
-
[VersionFieldScope.INHERITED]: hasInheritedValues ? { version: inheritedVersion ?? null, values } : null,
|
|
59
|
-
},
|
|
60
|
-
};
|
|
61
|
-
};
|
|
62
|
-
export const computeInitialState = (params) => {
|
|
63
|
-
const { element, record, isRecordReadOnly, formVersion } = params;
|
|
64
|
-
const attribute = element.attribute;
|
|
65
|
-
const fieldValues = element.values ?? [];
|
|
66
|
-
const initialState = {
|
|
67
|
-
...virginState,
|
|
68
|
-
attribute,
|
|
69
|
-
record,
|
|
70
|
-
formElement: element,
|
|
71
|
-
isReadOnly: attribute?.readonly || isRecordReadOnly || !attribute?.permissions?.edit_value,
|
|
72
|
-
..._computeScopeAndValues({ attribute, values: fieldValues, formVersion }),
|
|
73
|
-
};
|
|
74
|
-
return initialState;
|
|
75
|
-
};
|
|
76
|
-
const linkFieldReducer = (state, action) => {
|
|
77
|
-
switch (action.type) {
|
|
78
|
-
case LinkFieldReducerActionsType.ADD_VALUES: {
|
|
79
|
-
const newValues = [...state.values[state.activeScope].values, ...action.values];
|
|
80
|
-
return {
|
|
81
|
-
...state,
|
|
82
|
-
values: {
|
|
83
|
-
...state.values,
|
|
84
|
-
[state.activeScope]: {
|
|
85
|
-
...state.values[state.activeScope],
|
|
86
|
-
values: newValues,
|
|
87
|
-
},
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
case LinkFieldReducerActionsType.DELETE_VALUE: {
|
|
92
|
-
const activeValues = getActiveFieldValues(state);
|
|
93
|
-
const newValues = activeValues.filter(value => value.id_value !== action.idValue);
|
|
94
|
-
return {
|
|
95
|
-
...state,
|
|
96
|
-
values: {
|
|
97
|
-
...state.values,
|
|
98
|
-
[state.activeScope]: {
|
|
99
|
-
...state.values[state.activeScope],
|
|
100
|
-
values: newValues,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
};
|
|
104
|
-
}
|
|
105
|
-
case LinkFieldReducerActionsType.DELETE_ALL_VALUES: {
|
|
106
|
-
return {
|
|
107
|
-
...state,
|
|
108
|
-
values: {
|
|
109
|
-
...state.values,
|
|
110
|
-
[state.activeScope]: {
|
|
111
|
-
...state.values[state.activeScope],
|
|
112
|
-
values: [],
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
case LinkFieldReducerActionsType.SET_ERROR_MESSAGE: {
|
|
118
|
-
return { ...state, errorMessage: action.errorMessage };
|
|
119
|
-
}
|
|
120
|
-
case LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE: {
|
|
121
|
-
return { ...state, errorMessage: '' };
|
|
122
|
-
}
|
|
123
|
-
case LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE: {
|
|
124
|
-
return { ...state, isValuesAddVisible: action.isValuesAddVisible };
|
|
125
|
-
}
|
|
126
|
-
case LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE: {
|
|
127
|
-
return { ...state, activeScope: action.scope };
|
|
128
|
-
}
|
|
129
|
-
case LinkFieldReducerActionsType.REFRESH_VALUES: {
|
|
130
|
-
return {
|
|
131
|
-
...state,
|
|
132
|
-
..._computeScopeAndValues({
|
|
133
|
-
attribute: state.formElement.attribute,
|
|
134
|
-
values: action.values,
|
|
135
|
-
formVersion: state.values[VersionFieldScope.CURRENT].version,
|
|
136
|
-
}),
|
|
137
|
-
};
|
|
138
|
-
}
|
|
139
|
-
default:
|
|
140
|
-
return state;
|
|
141
|
-
}
|
|
142
|
-
};
|
|
143
|
-
export default linkFieldReducer;
|
|
144
|
-
//# sourceMappingURL=linkFieldReducer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"linkFieldReducer.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/reducers/linkFieldReducer/linkFieldReducer.ts"],"names":[],"mappings":"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","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport getActiveFieldValues from '_ui/components/RecordEdition/EditRecordContent/helpers/getActiveFieldValues';\nimport isCurrentVersion from '_ui/components/RecordEdition/EditRecordContent/helpers/isCurrentVersion';\nimport {\n VersionFieldScope,\n type FormElement,\n type ICommonFieldsReducerState,\n} from '_ui/components/RecordEdition/EditRecordContent/_types';\nimport {\n type RecordFormElementsValueLinkValue,\n type RecordFormElementsValueTreeValue,\n} from '_ui/hooks/useGetRecordForm/useGetRecordForm';\nimport {type IRecordIdentityWhoAmI} from '_ui/types/records';\nimport {type IValueVersion} from '_ui/types/values';\nimport {type RecordFormAttributeFragment} from '_ui/_gqlTypes';\n\ntype AllowedValuesType = RecordFormElementsValueLinkValue | RecordFormElementsValueTreeValue;\n\nexport interface ILinkFieldState<ValuesType> extends ICommonFieldsReducerState<ValuesType[]> {\n errorMessage: string | string[];\n isValuesAddVisible: boolean;\n}\n\nexport enum LinkFieldReducerActionsType {\n ADD_VALUES = 'ADD_VALUES',\n DELETE_VALUE = 'DELETE_VALUE',\n DELETE_ALL_VALUES = 'DELETE_ALL_VALUES',\n SET_ERROR_MESSAGE = 'SET_ERROR_MESSAGE',\n CLEAR_ERROR_MESSAGE = 'CLEAR_ERROR_MESSAGE',\n SET_IS_VALUES_ADD_VISIBLE = 'SET_IS_VALUES_ADD_VISIBLE',\n CHANGE_ACTIVE_SCOPE = 'CHANGE_ACTIVE_SCOPE',\n REFRESH_VALUES = 'REFRESH_VALUES',\n}\n\nexport type LinkFieldReducerActions<ValuesType extends AllowedValuesType> =\n | {\n type: LinkFieldReducerActionsType.ADD_VALUES;\n values: ValuesType[];\n }\n | {\n type: LinkFieldReducerActionsType.DELETE_VALUE;\n idValue: string;\n }\n | {\n type: LinkFieldReducerActionsType.DELETE_ALL_VALUES;\n }\n | {type: LinkFieldReducerActionsType.SET_ERROR_MESSAGE; errorMessage: string | string[]}\n | {type: LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE}\n | {type: LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE; isValuesAddVisible: boolean}\n | {type: LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE; scope: VersionFieldScope}\n | {\n type: LinkFieldReducerActionsType.REFRESH_VALUES;\n values: ValuesType[];\n formVersion: IValueVersion;\n };\n\nexport const virginState: ILinkFieldState<AllowedValuesType> = {\n record: null,\n formElement: null,\n attribute: null,\n isReadOnly: false,\n activeScope: VersionFieldScope.CURRENT,\n values: {\n [VersionFieldScope.CURRENT]: {\n version: null,\n values: [],\n },\n [VersionFieldScope.INHERITED]: null,\n },\n errorMessage: '',\n isValuesAddVisible: false,\n};\n\n/**\n * For given list of values, determine if there is inherited values, inherited/current version and default active scope\n */\nconst _computeScopeAndValues = <ValuesType extends AllowedValuesType>(params: {\n attribute: RecordFormAttributeFragment;\n values: ValuesType[];\n formVersion: IValueVersion;\n}): Pick<ILinkFieldState<ValuesType>, 'values' | 'activeScope'> => {\n const {attribute, values, formVersion} = params;\n\n const currentVersion: IValueVersion =\n attribute?.versions_conf?.versionable && attribute?.versions_conf?.profile\n ? attribute.versions_conf.profile.trees.reduce((relevantVersion, tree) => {\n if (formVersion?.[tree.id]) {\n relevantVersion[tree.id] = formVersion[tree.id];\n }\n\n return relevantVersion;\n }, {})\n : null;\n\n const hasInheritedValues = attribute?.versions_conf?.versionable\n ? !isCurrentVersion(currentVersion, values?.[0]?.version ?? currentVersion)\n : false; // We assume that all values have the same version\n const inheritedVersion = hasInheritedValues ? values?.[0]?.version : null;\n\n return {\n activeScope: hasInheritedValues ? VersionFieldScope.INHERITED : VersionFieldScope.CURRENT,\n values: {\n [VersionFieldScope.CURRENT]: {\n version: currentVersion ?? null,\n values: hasInheritedValues ? [] : values,\n },\n [VersionFieldScope.INHERITED]: hasInheritedValues ? {version: inheritedVersion ?? null, values} : null,\n },\n };\n};\n\nexport const computeInitialState = <ValuesType extends AllowedValuesType>(params: {\n element: FormElement<unknown>;\n record: IRecordIdentityWhoAmI;\n isRecordReadOnly: boolean;\n formVersion: IValueVersion;\n}): ILinkFieldState<ValuesType> => {\n const {element, record, isRecordReadOnly, formVersion} = params;\n\n const attribute = element.attribute;\n\n const fieldValues = (element.values as ValuesType[]) ?? [];\n\n const initialState: ILinkFieldState<ValuesType> = {\n ...virginState,\n attribute,\n record,\n formElement: element,\n isReadOnly: attribute?.readonly || isRecordReadOnly || !attribute?.permissions?.edit_value,\n ..._computeScopeAndValues<ValuesType>({attribute, values: fieldValues, formVersion}),\n };\n\n return initialState;\n};\n\nconst linkFieldReducer = <ValuesType extends AllowedValuesType>(\n state: ILinkFieldState<ValuesType>,\n action: LinkFieldReducerActions<ValuesType>,\n): ILinkFieldState<ValuesType> => {\n switch (action.type) {\n case LinkFieldReducerActionsType.ADD_VALUES: {\n const newValues = [...state.values[state.activeScope].values, ...action.values];\n return {\n ...state,\n values: {\n ...state.values,\n [state.activeScope]: {\n ...state.values[state.activeScope],\n values: newValues,\n },\n },\n };\n }\n case LinkFieldReducerActionsType.DELETE_VALUE: {\n const activeValues = getActiveFieldValues(state);\n const newValues = activeValues.filter(value => value.id_value !== action.idValue);\n\n return {\n ...state,\n values: {\n ...state.values,\n [state.activeScope]: {\n ...state.values[state.activeScope],\n values: newValues,\n },\n },\n };\n }\n case LinkFieldReducerActionsType.DELETE_ALL_VALUES: {\n return {\n ...state,\n values: {\n ...state.values,\n [state.activeScope]: {\n ...state.values[state.activeScope],\n values: [],\n },\n },\n };\n }\n case LinkFieldReducerActionsType.SET_ERROR_MESSAGE: {\n return {...state, errorMessage: action.errorMessage};\n }\n case LinkFieldReducerActionsType.CLEAR_ERROR_MESSAGE: {\n return {...state, errorMessage: ''};\n }\n case LinkFieldReducerActionsType.SET_IS_VALUES_ADD_VISIBLE: {\n return {...state, isValuesAddVisible: action.isValuesAddVisible};\n }\n case LinkFieldReducerActionsType.CHANGE_ACTIVE_SCOPE: {\n return {...state, activeScope: action.scope};\n }\n case LinkFieldReducerActionsType.REFRESH_VALUES: {\n return {\n ...state,\n ..._computeScopeAndValues({\n attribute: state.formElement.attribute,\n values: action.values,\n formVersion: state.values[VersionFieldScope.CURRENT].version,\n }),\n };\n }\n default:\n return state;\n }\n};\n\nexport default linkFieldReducer;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps } from 'antd';
|
|
2
|
-
import { VersionFieldScope } from '../../_types';
|
|
3
|
-
interface IAddValueBtnProps extends ButtonProps {
|
|
4
|
-
bordered?: boolean;
|
|
5
|
-
linkField?: boolean;
|
|
6
|
-
activeScope: VersionFieldScope;
|
|
7
|
-
}
|
|
8
|
-
declare function AddValueBtn({ bordered, linkField, activeScope, ...props }: IAddValueBtnProps): JSX.Element;
|
|
9
|
-
export default AddValueBtn;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { PlusOutlined } from '@ant-design/icons';
|
|
6
|
-
import { themeVars } from '../../../../../antdTheme';
|
|
7
|
-
import { BasicButton } from '../../../../../components';
|
|
8
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
9
|
-
import { VersionFieldScope } from '../../_types';
|
|
10
|
-
function AddValueBtn({ bordered = false, linkField = false, activeScope, ...props }) {
|
|
11
|
-
const { t } = useSharedTranslation();
|
|
12
|
-
return (_jsxs(BasicButton, { bordered: bordered, ...props, style: {
|
|
13
|
-
color: activeScope === VersionFieldScope.INHERITED
|
|
14
|
-
? themeVars.inheritedValuesVersionColor
|
|
15
|
-
: themeVars.defaultTextColor,
|
|
16
|
-
}, children: [_jsx(PlusOutlined, {}), linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')] }));
|
|
17
|
-
}
|
|
18
|
-
export default AddValueBtn;
|
|
19
|
-
//# sourceMappingURL=AddValueBtn.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AddValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/AddValueBtn/AddValueBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,iBAAiB,EAAC,MAAM,cAAc,CAAC;AAQ/C,SAAS,WAAW,CAAC,EAAC,QAAQ,GAAG,KAAK,EAAE,SAAS,GAAG,KAAK,EAAE,WAAW,EAAE,GAAG,KAAK,EAAoB;IAChG,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,OAAO,CACH,MAAC,WAAW,IACR,QAAQ,EAAE,QAAQ,KACd,KAAK,EACT,KAAK,EAAE;YACH,KAAK,EACD,WAAW,KAAK,iBAAiB,CAAC,SAAS;gBACvC,CAAC,CAAC,SAAS,CAAC,2BAA2B;gBACvC,CAAC,CAAC,SAAS,CAAC,gBAAgB;SACvC,aAED,KAAC,YAAY,KAAG,EACf,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,IACrE,CACjB,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {PlusOutlined} from '@ant-design/icons';\nimport {type ButtonProps} from 'antd';\nimport {themeVars} from '_ui/antdTheme';\nimport {BasicButton} from '_ui/components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {VersionFieldScope} from '../../_types';\n\ninterface IAddValueBtnProps extends ButtonProps {\n bordered?: boolean;\n linkField?: boolean;\n activeScope: VersionFieldScope;\n}\n\nfunction AddValueBtn({bordered = false, linkField = false, activeScope, ...props}: IAddValueBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n return (\n <BasicButton\n bordered={bordered}\n {...props}\n style={{\n color:\n activeScope === VersionFieldScope.INHERITED\n ? themeVars.inheritedValuesVersionColor\n : themeVars.defaultTextColor,\n }}\n >\n <PlusOutlined />\n {linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')}\n </BasicButton>\n );\n}\n\nexport default AddValueBtn;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import AddValueBtn from './AddValueBtn';
|
|
5
|
-
export default AddValueBtn;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/AddValueBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport AddValueBtn from './AddValueBtn';\n\nexport default AddValueBtn;\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { DeleteOutlined } from '@ant-design/icons';
|
|
6
|
-
import { Popconfirm, Tooltip } from 'antd';
|
|
7
|
-
import { useState } from 'react';
|
|
8
|
-
import { BasicButton } from '../../../../../components';
|
|
9
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
10
|
-
function DeleteAllValuesBtn({ onDelete }) {
|
|
11
|
-
const { t } = useSharedTranslation();
|
|
12
|
-
const [isLoading, setIsLoading] = useState(false);
|
|
13
|
-
const _handleDelete = async () => {
|
|
14
|
-
setIsLoading(true);
|
|
15
|
-
await onDelete();
|
|
16
|
-
setIsLoading(false);
|
|
17
|
-
};
|
|
18
|
-
return (_jsx(Popconfirm, { placement: "leftTop", title: t('record_edition.delete_all_values_confirm'), onConfirm: _handleDelete, okText: t('global.submit'), okButtonProps: { 'aria-label': 'delete-confirm-button' }, cancelText: t('global.cancel'), children: _jsx(_Fragment, { children: _jsx(Tooltip, { title: t('record_edition.delete_all_values'), children: _jsx(BasicButton, { "aria-label": "delete-all-values", icon: _jsx(DeleteOutlined, {}), shape: "circle", loading: isLoading }) }) }) }));
|
|
19
|
-
}
|
|
20
|
-
export default DeleteAllValuesBtn;
|
|
21
|
-
//# sourceMappingURL=DeleteAllValuesBtn.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteAllValuesBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/DeleteAllValuesBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,UAAU,EAAE,OAAO,EAAC,MAAM,MAAM,CAAC;AACzC,OAAO,EAAC,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAMpE,SAAS,kBAAkB,CAAC,EAAC,QAAQ,EAA2B;IAC5D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;QAC7B,YAAY,CAAC,IAAI,CAAC,CAAC;QACnB,MAAM,QAAQ,EAAE,CAAC;QACjB,YAAY,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC,CAAC;IAEF,OAAO,CACH,KAAC,UAAU,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,CAAC,CAAC,0CAA0C,CAAC,EACpD,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,EAC1B,aAAa,EAAE,EAAC,YAAY,EAAE,uBAAuB,EAAC,EACtD,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,YAG9B,4BACI,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,kCAAkC,CAAC,YACjD,KAAC,WAAW,kBACG,mBAAmB,EAC9B,IAAI,EAAE,KAAC,cAAc,KAAG,EACxB,KAAK,EAAC,QAAQ,EACd,OAAO,EAAE,SAAS,GACpB,GACI,GACX,GACM,CAChB,CAAC;AACN,CAAC;AAED,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {DeleteOutlined} from '@ant-design/icons';\nimport {Popconfirm, Tooltip} from 'antd';\nimport {useState} from 'react';\nimport {BasicButton} from '_ui/components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface IDeleteAllValuesBtnProps {\n onDelete: () => Promise<void>;\n}\n\nfunction DeleteAllValuesBtn({onDelete}: IDeleteAllValuesBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n const [isLoading, setIsLoading] = useState(false);\n\n const _handleDelete = async () => {\n setIsLoading(true);\n await onDelete();\n setIsLoading(false);\n };\n\n return (\n <Popconfirm\n placement=\"leftTop\"\n title={t('record_edition.delete_all_values_confirm')}\n onConfirm={_handleDelete}\n okText={t('global.submit')}\n okButtonProps={{'aria-label': 'delete-confirm-button'}}\n cancelText={t('global.cancel')}\n >\n {/* Do not remove the <></>. Workaround for issue https://github.com/ant-design/ant-design/issues/41206 */}\n <>\n <Tooltip title={t('record_edition.delete_all_values')}>\n <BasicButton\n aria-label=\"delete-all-values\"\n icon={<DeleteOutlined />}\n shape=\"circle\"\n loading={isLoading}\n />\n </Tooltip>\n </>\n </Popconfirm>\n );\n}\n\nexport default DeleteAllValuesBtn;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import DeleteAllValuesBtn from './DeleteAllValuesBtn';
|
|
5
|
-
export default DeleteAllValuesBtn;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteAllValuesBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,kBAAkB,MAAM,sBAAsB,CAAC;AAEtD,eAAe,kBAAkB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport DeleteAllValuesBtn from './DeleteAllValuesBtn';\n\nexport default DeleteAllValuesBtn;\n"]}
|
package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { DeleteOutlined } from '@ant-design/icons';
|
|
6
|
-
import { Button, Popconfirm } from 'antd';
|
|
7
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
8
|
-
function DeleteValueBtn({ onDelete, ...buttonProps }) {
|
|
9
|
-
const { t } = useSharedTranslation();
|
|
10
|
-
const _handleDelete = () => onDelete();
|
|
11
|
-
return (_jsx(Popconfirm, { placement: "leftTop", title: t('record_edition.delete_value_confirm'), onConfirm: _handleDelete, okText: t('global.submit'), okButtonProps: { 'aria-label': 'delete-confirm-button' }, cancelText: t('global.cancel'), children: _jsx(Button, { shape: "circle", ...buttonProps, icon: _jsx(DeleteOutlined, {}), style: { background: '#FFF' }, danger: true, "aria-label": "delete-value", onClick: e => e.stopPropagation(), className: "delete-value-button" }) }));
|
|
12
|
-
}
|
|
13
|
-
export default DeleteValueBtn;
|
|
14
|
-
//# sourceMappingURL=DeleteValueBtn.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteValueBtn.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/DeleteValueBtn.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAC,MAAM,EAAoB,UAAU,EAAC,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAMpE,SAAS,cAAc,CAAC,EAAC,QAAQ,EAAE,GAAG,WAAW,EAAuB;IACpE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,MAAM,aAAa,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;IAEvC,OAAO,CACH,KAAC,UAAU,IACP,SAAS,EAAC,SAAS,EACnB,KAAK,EAAE,CAAC,CAAC,qCAAqC,CAAC,EAC/C,SAAS,EAAE,aAAa,EACxB,MAAM,EAAE,CAAC,CAAC,eAAe,CAAC,EAC1B,aAAa,EAAE,EAAC,YAAY,EAAE,uBAAuB,EAAC,EACtD,UAAU,EAAE,CAAC,CAAC,eAAe,CAAC,YAE9B,KAAC,MAAM,IACH,KAAK,EAAC,QAAQ,KACV,WAAW,EACf,IAAI,EAAE,KAAC,cAAc,KAAG,EACxB,KAAK,EAAE,EAAC,UAAU,EAAE,MAAM,EAAC,EAC3B,MAAM,sBACK,cAAc,EACzB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,eAAe,EAAE,EACjC,SAAS,EAAC,qBAAqB,GACjC,GACO,CAChB,CAAC;AACN,CAAC;AAED,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {DeleteOutlined} from '@ant-design/icons';\nimport {Button, type ButtonProps, Popconfirm} from 'antd';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface IDeleteValueBtnProps extends ButtonProps {\n onDelete: () => void;\n}\n\nfunction DeleteValueBtn({onDelete, ...buttonProps}: IDeleteValueBtnProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n const _handleDelete = () => onDelete();\n\n return (\n <Popconfirm\n placement=\"leftTop\"\n title={t('record_edition.delete_value_confirm')}\n onConfirm={_handleDelete}\n okText={t('global.submit')}\n okButtonProps={{'aria-label': 'delete-confirm-button'}}\n cancelText={t('global.cancel')}\n >\n <Button\n shape=\"circle\"\n {...buttonProps}\n icon={<DeleteOutlined />}\n style={{background: '#FFF'}}\n danger\n aria-label=\"delete-value\"\n onClick={e => e.stopPropagation()}\n className=\"delete-value-button\"\n />\n </Popconfirm>\n );\n}\n\nexport default DeleteValueBtn;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import DeleteValueBtn from './DeleteValueBtn';
|
|
5
|
-
export default DeleteValueBtn;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/DeleteValueBtn/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAE9C,eAAe,cAAc,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport DeleteValueBtn from './DeleteValueBtn';\n\nexport default DeleteValueBtn;\n"]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type CSSObject } from 'styled-components';
|
|
3
|
-
interface IFieldFooterProps {
|
|
4
|
-
children?: React.ReactNode;
|
|
5
|
-
bordered?: boolean;
|
|
6
|
-
style?: CSSObject;
|
|
7
|
-
}
|
|
8
|
-
declare function FieldFooter({ children, bordered, style }: IFieldFooterProps): JSX.Element;
|
|
9
|
-
export default FieldFooter;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { theme } from 'antd';
|
|
6
|
-
import styled from 'styled-components';
|
|
7
|
-
import { themeVars } from '../../../../../antdTheme';
|
|
8
|
-
const FooterWrapper = styled.div `
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: space-between;
|
|
11
|
-
align-items: center;
|
|
12
|
-
flex-direction: row-reverse;
|
|
13
|
-
padding: 0.25rem;
|
|
14
|
-
background: ${themeVars.lightBg};
|
|
15
|
-
border-radius: ${p => p.$themeToken.borderRadius}px;
|
|
16
|
-
border-top-left-radius: 0;
|
|
17
|
-
border-top-right-radius: 0;
|
|
18
|
-
|
|
19
|
-
${props => (props.$bordered ? `border: 1px solid ${themeVars.borderColor};` : '')}
|
|
20
|
-
|
|
21
|
-
${props => props.style}
|
|
22
|
-
`;
|
|
23
|
-
function FieldFooter({ children, bordered, style }) {
|
|
24
|
-
const { token } = theme.useToken();
|
|
25
|
-
return (_jsx(FooterWrapper, { style: style, "$bordered": bordered, "$themeToken": token, children: children }));
|
|
26
|
-
}
|
|
27
|
-
export default FieldFooter;
|
|
28
|
-
//# sourceMappingURL=FieldFooter.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldFooter.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/FieldFooter/FieldFooter.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,KAAK,EAAC,MAAM,MAAM,CAAC;AAG3B,OAAO,MAAwB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAQxC,MAAM,aAAa,GAAG,MAAM,CAAC,GAAG,CAAmE;;;;;;kBAMjF,SAAS,CAAC,OAAO;qBACd,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAAC,YAAY;;;;MAI9C,KAAK,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,qBAAqB,SAAS,CAAC,WAAW,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;;MAE/E,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK;CACzB,CAAC;AAEF,SAAS,WAAW,CAAC,EAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAoB;IAC/D,MAAM,EAAC,KAAK,EAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;IAEjC,OAAO,CACH,KAAC,aAAa,IAAC,KAAK,EAAE,KAAK,eAAa,QAAQ,iBAAe,KAAK,YAC/D,QAAQ,GACG,CACnB,CAAC;AACN,CAAC;AAED,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {theme} from 'antd';\nimport {type GlobalToken} from 'antd/lib/theme/interface';\nimport React from 'react';\nimport styled, {type CSSObject} from 'styled-components';\nimport {themeVars} from '_ui/antdTheme';\n\ninterface IFieldFooterProps {\n children?: React.ReactNode;\n bordered?: boolean;\n style?: CSSObject;\n}\n\nconst FooterWrapper = styled.div<{style: CSSObject; $bordered?: boolean; $themeToken: GlobalToken}>`\n display: flex;\n justify-content: space-between;\n align-items: center;\n flex-direction: row-reverse;\n padding: 0.25rem;\n background: ${themeVars.lightBg};\n border-radius: ${p => p.$themeToken.borderRadius}px;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n\n ${props => (props.$bordered ? `border: 1px solid ${themeVars.borderColor};` : '')}\n\n ${props => props.style}\n`;\n\nfunction FieldFooter({children, bordered, style}: IFieldFooterProps): JSX.Element {\n const {token} = theme.useToken();\n\n return (\n <FooterWrapper style={style} $bordered={bordered} $themeToken={token}>\n {children}\n </FooterWrapper>\n );\n}\n\nexport default FieldFooter;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import FieldFooter from './FieldFooter';
|
|
5
|
-
export default FieldFooter;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/FieldFooter/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,eAAe,WAAW,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport FieldFooter from './FieldFooter';\n\nexport default FieldFooter;\n"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
// Copyright LEAV Solutions 2017
|
|
6
|
-
// This file is released under LGPL V3
|
|
7
|
-
// License text available at https://www.gnu.org/licenses:lgpl-3.0.txt
|
|
8
|
-
import styled from 'styled-components';
|
|
9
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
10
|
-
import { getValueVersionLabel } from '../../../../../_utils';
|
|
11
|
-
const Wrapper = styled.span `
|
|
12
|
-
font-style: italic;
|
|
13
|
-
font-size: 0.9em;
|
|
14
|
-
|
|
15
|
-
::before {
|
|
16
|
-
content: ' - ';
|
|
17
|
-
}
|
|
18
|
-
`;
|
|
19
|
-
function InheritedFieldLabel({ version }) {
|
|
20
|
-
const { t } = useSharedTranslation();
|
|
21
|
-
const versionLabel = getValueVersionLabel(version);
|
|
22
|
-
return (_jsxs(Wrapper, { children: [t('values_version.inherited_from'), ": ", versionLabel] }));
|
|
23
|
-
}
|
|
24
|
-
export default InheritedFieldLabel;
|
|
25
|
-
//# sourceMappingURL=InheritedFieldLabel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InheritedFieldLabel.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/InheritedFieldLabel.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,gCAAgC;AAChC,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAC,oBAAoB,EAAC,MAAM,uBAAuB,CAAC;AAE3D,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CAAA;;;;;;;CAO1B,CAAC;AAMF,SAAS,mBAAmB,CAAC,EAAC,OAAO,EAA4B;IAC7D,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,YAAY,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IAEnD,OAAO,CACH,MAAC,OAAO,eACH,CAAC,CAAC,+BAA+B,CAAC,QAAI,YAAY,IAC7C,CACb,CAAC;AACN,CAAC;AAED,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\n// Copyright LEAV Solutions 2017\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses:lgpl-3.0.txt\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\nimport {type IValueVersion} from '_ui/types/values';\nimport {getValueVersionLabel} from '../../../../../_utils';\n\nconst Wrapper = styled.span`\n font-style: italic;\n font-size: 0.9em;\n\n ::before {\n content: ' - ';\n }\n`;\n\ninterface IInheritedFieldLabelProps {\n version: IValueVersion;\n}\n\nfunction InheritedFieldLabel({version}: IInheritedFieldLabelProps): JSX.Element {\n const {t} = useSharedTranslation();\n const versionLabel = getValueVersionLabel(version);\n\n return (\n <Wrapper>\n {t('values_version.inherited_from')}: {versionLabel}\n </Wrapper>\n );\n}\n\nexport default InheritedFieldLabel;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import InheritedFieldLabel from './InheritedFieldLabel';
|
|
5
|
-
export default InheritedFieldLabel;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/InheritedFieldLabel/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,mBAAmB,MAAM,uBAAuB,CAAC;AAExD,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport InheritedFieldLabel from './InheritedFieldLabel';\n\nexport default InheritedFieldLabel;\n"]}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { FileAddOutlined, FileOutlined } from '@ant-design/icons';
|
|
6
|
-
import { Button } from 'antd';
|
|
7
|
-
import styled from 'styled-components';
|
|
8
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
9
|
-
const NoValueWrapper = styled.div `
|
|
10
|
-
font-size: 1.1em;
|
|
11
|
-
|
|
12
|
-
span {
|
|
13
|
-
margin-left: 0.5em;
|
|
14
|
-
}
|
|
15
|
-
`;
|
|
16
|
-
const AddButton = styled(Button) `
|
|
17
|
-
&& {
|
|
18
|
-
border: none;
|
|
19
|
-
width: 100%;
|
|
20
|
-
color: rgba(0, 0, 0, 0.25);
|
|
21
|
-
box-shadow: none;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
&&:hover {
|
|
25
|
-
border: none;
|
|
26
|
-
}
|
|
27
|
-
`;
|
|
28
|
-
function NoValue({ canAddValue, onAddValue, linkField = false }) {
|
|
29
|
-
const { t } = useSharedTranslation();
|
|
30
|
-
return (_jsx(NoValueWrapper, { onClick: onAddValue, children: canAddValue ? (_jsxs(AddButton, { onClick: onAddValue, size: "small", children: [_jsx(FileAddOutlined, {}), _jsx("span", { children: linkField ? t('record_edition.add_value_link') : t('record_edition.add_value') })] })) : (_jsxs(_Fragment, { children: [_jsx(FileOutlined, {}), _jsx("span", { children: t('record_edition.no_value') })] })) }));
|
|
31
|
-
}
|
|
32
|
-
export default NoValue;
|
|
33
|
-
//# sourceMappingURL=NoValue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NoValue.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/NoValue/NoValue.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,eAAe,EAAE,YAAY,EAAC,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAC,MAAM,EAAC,MAAM,MAAM,CAAC;AAC5B,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAQpE,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMhC,CAAC;AAEF,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;;;;;;;;CAW/B,CAAC;AAEF,SAAS,OAAO,CAAC,EAAC,WAAW,EAAE,UAAU,EAAE,SAAS,GAAG,KAAK,EAAgB;IACxE,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,KAAC,cAAc,IAAC,OAAO,EAAE,UAAU,YAC9B,WAAW,CAAC,CAAC,CAAC,CACX,MAAC,SAAS,IAAC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAC,OAAO,aACxC,KAAC,eAAe,KAAG,EACnB,yBAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,+BAA+B,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,0BAA0B,CAAC,GAAQ,IACrF,CACf,CAAC,CAAC,CAAC,CACA,8BACI,KAAC,YAAY,KAAG,EAChB,yBAAO,CAAC,CAAC,yBAAyB,CAAC,GAAQ,IAC5C,CACN,GACY,CACpB,CAAC;AACN,CAAC;AAED,eAAe,OAAO,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {FileAddOutlined, FileOutlined} from '@ant-design/icons';\nimport {Button} from 'antd';\nimport styled from 'styled-components';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\ninterface INoValueProps {\n canAddValue: boolean;\n onAddValue: () => void;\n linkField?: boolean;\n}\n\nconst NoValueWrapper = styled.div`\n font-size: 1.1em;\n\n span {\n margin-left: 0.5em;\n }\n`;\n\nconst AddButton = styled(Button)`\n && {\n border: none;\n width: 100%;\n color: rgba(0, 0, 0, 0.25);\n box-shadow: none;\n }\n\n &&:hover {\n border: none;\n }\n`;\n\nfunction NoValue({canAddValue, onAddValue, linkField = false}: INoValueProps): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <NoValueWrapper onClick={onAddValue}>\n {canAddValue ? (\n <AddButton onClick={onAddValue} size=\"small\">\n <FileAddOutlined />\n <span>{linkField ? t('record_edition.add_value_link') : t('record_edition.add_value')}</span>\n </AddButton>\n ) : (\n <>\n <FileOutlined />\n <span>{t('record_edition.no_value')}</span>\n </>\n )}\n </NoValueWrapper>\n );\n}\n\nexport default NoValue;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import NoValue from './NoValue';
|
|
5
|
-
export default NoValue;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/NoValue/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,OAAO,MAAM,WAAW,CAAC;AAEhC,eAAe,OAAO,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport NoValue from './NoValue';\n\nexport default NoValue;\n"]}
|
package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
|
-
// This file is released under LGPL V3
|
|
4
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import { ExclamationCircleOutlined } from '@ant-design/icons';
|
|
6
|
-
import { Tooltip } from 'antd';
|
|
7
|
-
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
8
|
-
function UpdatedFieldIcon() {
|
|
9
|
-
const { t } = useSharedTranslation();
|
|
10
|
-
return (_jsx(Tooltip, { title: t('record_edition.field_external_update'), children: _jsx(ExclamationCircleOutlined, { style: { marginLeft: '5px', fontSize: '0.9em' } }) }));
|
|
11
|
-
}
|
|
12
|
-
export default UpdatedFieldIcon;
|
|
13
|
-
//# sourceMappingURL=UpdatedFieldIcon.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"UpdatedFieldIcon.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/UpdatedFieldIcon.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,yBAAyB,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,OAAO,EAAC,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AAEpE,SAAS,gBAAgB;IACrB,MAAM,EAAC,CAAC,EAAC,GAAG,oBAAoB,EAAE,CAAC;IAEnC,OAAO,CACH,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,CAAC,sCAAsC,CAAC,YACrD,KAAC,yBAAyB,IAAC,KAAK,EAAE,EAAC,UAAU,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAC,GAAI,GACtE,CACb,CAAC;AACN,CAAC;AAED,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport {ExclamationCircleOutlined} from '@ant-design/icons';\nimport {Tooltip} from 'antd';\nimport {useSharedTranslation} from '_ui/hooks/useSharedTranslation';\n\nfunction UpdatedFieldIcon(): JSX.Element {\n const {t} = useSharedTranslation();\n\n return (\n <Tooltip title={t('record_edition.field_external_update')}>\n <ExclamationCircleOutlined style={{marginLeft: '5px', fontSize: '0.9em'}} />\n </Tooltip>\n );\n}\n\nexport default UpdatedFieldIcon;\n"]}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
2
|
-
// This file is released under LGPL V3
|
|
3
|
-
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
4
|
-
import UpdatedFieldIcon from './UpdatedFieldIcon';
|
|
5
|
-
export default UpdatedFieldIcon;
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
package/dist/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordContent/shared/UpdatedFieldIcon/index.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06\n// This file is released under LGPL V3\n// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt\nimport UpdatedFieldIcon from './UpdatedFieldIcon';\n\nexport default UpdatedFieldIcon;\n"]}
|
package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/ValueDetailsBtn.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { type ButtonProps } from 'antd';
|
|
2
|
-
import { type RecordFormAttributeFragment } from '../../../../../_gqlTypes';
|
|
3
|
-
import { type RecordProperty } from '../../../../../_queries/records/getRecordPropertiesQuery';
|
|
4
|
-
interface IValueDetailsBtnProps extends Omit<ButtonProps, 'value'> {
|
|
5
|
-
attribute: RecordFormAttributeFragment;
|
|
6
|
-
value: RecordProperty;
|
|
7
|
-
basic?: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare function ValueDetailsBtn({ value, attribute, basic, ...buttonProps }: IValueDetailsBtnProps): JSX.Element;
|
|
10
|
-
export default ValueDetailsBtn;
|