@leav/ui 0.3.6-b3a1065 → 0.3.6-bcac760
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/__mocks__/common/attribute.js +1 -0
- package/dist/__mocks__/common/attribute.js.map +1 -1
- package/dist/__mocks__/common/value.js +1 -0
- package/dist/__mocks__/common/value.js.map +1 -1
- package/dist/_gqlTypes/index.d.ts +270 -25
- package/dist/_gqlTypes/index.js +141 -28
- package/dist/_gqlTypes/index.js.map +1 -1
- package/dist/_queries/records/getRecordColumnsValues.d.ts +1 -1
- package/dist/_queries/records/recordFormAttributeFragment.js +1 -0
- package/dist/_queries/records/recordFormAttributeFragment.js.map +1 -1
- package/dist/antdTheme/index.d.ts +0 -3
- package/dist/antdTheme/index.js +3 -42
- package/dist/antdTheme/index.js.map +1 -1
- package/dist/components/Explorer/Explorer.d.ts +3 -3
- package/dist/components/Explorer/Explorer.js +25 -19
- package/dist/components/Explorer/Explorer.js.map +1 -1
- package/dist/components/Explorer/ExplorerTitle.d.ts +2 -0
- package/dist/components/Explorer/ExplorerTitle.js +28 -11
- package/dist/components/Explorer/ExplorerTitle.js.map +1 -1
- package/dist/components/Explorer/_queries/useExplorerData.d.ts +11 -5
- package/dist/components/Explorer/_queries/useExplorerData.js +95 -22
- package/dist/components/Explorer/_queries/useExplorerData.js.map +1 -1
- package/dist/components/Explorer/_types.d.ts +26 -1
- package/dist/components/Explorer/{nullValuesConditions.d.ts → conditionsHelper.d.ts} +1 -0
- package/dist/components/Explorer/{nullValuesConditions.js → conditionsHelper.js} +3 -1
- package/dist/components/Explorer/conditionsHelper.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.d.ts +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js +16 -31
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/BooleanAttributeDropdown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ColorAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.d.ts +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js +12 -36
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/DateRangeAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/EncryptedAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.d.ts +3 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js +11 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/ExtendedAttributeDropDown.js.map +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.d.ts +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js +56 -8
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/FilterValueList.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.d.ts +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js +7 -32
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/NumericAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.d.ts +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js +7 -32
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/TextAttributeDropDown.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.d.ts +1 -0
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js +5 -15
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/useConditionOptionsByType.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js +2 -2
- package/dist/components/Explorer/manage-view-settings/router-menu/SettingsPanel.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js +5 -0
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsInitialState.js.map +1 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.d.ts +3 -1
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js +16 -6
- package/dist/components/Explorer/manage-view-settings/store-view-settings/viewSettingsReducer.js.map +1 -1
- package/dist/components/Explorer/useCreateAction.d.ts +4 -2
- package/dist/components/Explorer/useCreateAction.js +35 -2
- package/dist/components/Explorer/useCreateAction.js.map +1 -1
- package/dist/components/Explorer/useEditAction.js +3 -3
- package/dist/components/Explorer/useEditAction.js.map +1 -1
- package/dist/components/Explorer/usePrimaryActions.js +14 -7
- package/dist/components/Explorer/usePrimaryActions.js.map +1 -1
- package/dist/components/Explorer/useRemoveAction.d.ts +12 -0
- package/dist/components/Explorer/useRemoveAction.js +90 -0
- package/dist/components/Explorer/useRemoveAction.js.map +1 -0
- package/dist/components/Explorer/useSearchInput.js +1 -1
- package/dist/components/Explorer/useSearchInput.js.map +1 -1
- package/dist/components/Explorer/useViewSettingsReducer.d.ts +2 -2
- package/dist/components/Explorer/useViewSettingsReducer.js +70 -47
- package/dist/components/Explorer/useViewSettingsReducer.js.map +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js +1 -1
- package/dist/components/LibraryItemsList/LibraryItemsListTable/Header/Header.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/EditRecordContent.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/_types.d.ts +1 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.d.ts +3 -1
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js +8 -2
- package/dist/components/RecordEdition/EditRecordContent/helpers/extractFormElements/extractFormElements.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js +2 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/LinkField/LinkField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/ComputeIndicator.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js +40 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardField.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSBooleanWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSColorPickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js +6 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSDatePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js +5 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputEncryptedWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js +5 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputNumberWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js +6 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSInputWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js +6 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRangePickerWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js +5 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/DSRichTextWrapper.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.d.ts +2 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js +3 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/StandardFieldValue.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js +5 -2
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/_types.d.ts +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js +6 -1
- package/dist/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.d.ts +4 -7
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js +6 -8
- package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.d.ts +9 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js +42 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.d.ts +6 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js +35 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.js.map +1 -0
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.d.ts +2 -281
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js +25 -56
- package/dist/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordSummary.js.map +1 -1
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js +1 -13
- package/dist/components/RecordEdition/EditRecordSidebar/ValueDetails/ValueDetails.js.map +1 -1
- package/dist/constants.d.ts +3 -0
- package/dist/constants.js +3 -0
- package/dist/constants.js.map +1 -1
- package/dist/locales/en/shared.json +17 -3
- package/dist/locales/fr/shared.json +17 -3
- package/package.json +2 -2
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.d.ts +0 -3
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js +0 -72
- package/dist/components/Explorer/manage-view-settings/filter-items/filter-type/SimpleFilterDropDown.js.map +0 -1
- package/dist/components/Explorer/nullValuesConditions.js.map +0 -1
- package/dist/components/Explorer/useDeactivateAction.d.ts +0 -12
- package/dist/components/Explorer/useDeactivateAction.js +0 -52
- package/dist/components/Explorer/useDeactivateAction.js.map +0 -1
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.d.ts +0 -8
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js +0 -23
- package/dist/components/RecordEdition/EditRecordContent/shared/ValueDetailsBtn/useValueDetailsButton.js.map +0 -1
|
@@ -23,7 +23,7 @@ const addOption = (options, optionToAdd) => {
|
|
|
23
23
|
}
|
|
24
24
|
return newOptions;
|
|
25
25
|
};
|
|
26
|
-
export const DSListSelect = ({ value, presentationValue, isLastValueOfMultivalues, removeLastValueOfMultivalues, onChange, attribute, required, readonly, handleSubmit, inheritedFlags, calculatedFlags }) => {
|
|
26
|
+
export const DSListSelect = ({ value, presentationValue, isLastValueOfMultivalues, removeLastValueOfMultivalues, onChange, attribute, required, readonly, handleSubmit, inheritedFlags, calculatedFlags, setActiveValue }) => {
|
|
27
27
|
if (!onChange) {
|
|
28
28
|
throw Error('DSListSelect should be used inside a antd Form.Item');
|
|
29
29
|
}
|
|
@@ -131,8 +131,11 @@ export const DSListSelect = ({ value, presentationValue, isLastValueOfMultivalue
|
|
|
131
131
|
removeLastValueOfMultivalues();
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
|
+
const _handleOnFocus = () => {
|
|
135
|
+
setActiveValue();
|
|
136
|
+
};
|
|
134
137
|
const valueToDisplay = isFocused ? value : presentationValue;
|
|
135
138
|
const isValueEmpty = value === '';
|
|
136
|
-
return (_jsx(KitSelect, { id: attribute.id, "data-testid": attribute.id, autoFocus: isFocused, open: isFocused, value: isValueEmpty ? undefined : valueToDisplay, allowClear: !required && value, disabled: readonly, options: options, status: errors.length > 0 && 'error', showSearch: true, onDropdownVisibleChange: _handleDropdownVisibleChange, onSelect: _handleOnChange, onChange: onChange, onClear: _handleOnClear, onSearch: _handleOnSearch, placeholder: t('record_edition.placeholder.select_an_option'), dropdownRender: menu => (_jsxs(_Fragment, { children: [searchedString !== '' && searchResultsCount > 0 && (_jsxs("div", { style: { paddingBottom: 'calc(var(--general-spacing-xs) * 1px)' }, children: [_jsx(KitTypography.Text, { size: "fontSize7", children: t('record_edition.press_enter_to') }), _jsx(KitTypography.Text, { size: "fontSize7", weight: "medium", children: t('record_edition.select_this_value') })] })), menu] })), notFoundContent: _jsx("div", { style: { textAlign: 'center' }, children: _jsx(KitTypography.Text, { size: "fontSize5", weight: "medium", children: t('record_edition.search_not_found') }) }) }));
|
|
139
|
+
return (_jsx(KitSelect, { id: attribute.id, "data-testid": attribute.id, autoFocus: isFocused, open: isFocused, value: isValueEmpty ? undefined : valueToDisplay, allowClear: !required && value, disabled: readonly, options: options, status: errors.length > 0 && 'error', showSearch: true, onDropdownVisibleChange: _handleDropdownVisibleChange, onSelect: _handleOnChange, onChange: onChange, onClear: _handleOnClear, onSearch: _handleOnSearch, onFocus: _handleOnFocus, placeholder: t('record_edition.placeholder.select_an_option'), dropdownRender: menu => (_jsxs(_Fragment, { children: [searchedString !== '' && searchResultsCount > 0 && (_jsxs("div", { style: { paddingBottom: 'calc(var(--general-spacing-xs) * 1px)' }, children: [_jsx(KitTypography.Text, { size: "fontSize7", children: t('record_edition.press_enter_to') }), _jsx(KitTypography.Text, { size: "fontSize7", weight: "medium", children: t('record_edition.select_this_value') })] })), menu] })), notFoundContent: _jsx("div", { style: { textAlign: 'center' }, children: _jsx(KitTypography.Text, { size: "fontSize5", weight: "medium", children: t('record_edition.search_not_found') }) }) }));
|
|
137
140
|
};
|
|
138
141
|
//# sourceMappingURL=DSListSelect.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DSListSelect.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACpD,OAAO,oBAAoB,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAC,eAAe,EAAE,wBAAwB,EAAC,MAAM,eAAe,CAAC;AACxE,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AAGzG,OAAO,EAAC,0BAA0B,EAAC,MAAM,0DAA0D,CAAC;AAOpG,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,OAAkB,EAAW,EAAE,CAC/D,KAAK,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAEpE,MAAM,SAAS,GAAG,CAAC,OAAkB,EAAE,WAAoB,EAAE,EAAE;IAC3D,MAAM,UAAU,GAAG,OAAO,CAAC;IAC3B,IAAI,WAAW,CAAC,KAAK,IAAI,WAAW,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CAAC,EAAE,CAAC;QAC/D,UAAU,CAAC,OAAO,CAAC;YACf,KAAK,EAAE,WAAW,CAAC,KAAK;YACxB,KAAK,EAAE,WAAW,CAAC,KAAK;SAC3B,CAAC,CAAC;IACP,CAAC;IACD,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,YAAY,GAAgE,CAAC,EACtF,KAAK,EACL,iBAAiB,EACjB,wBAAwB,EACxB,4BAA4B,EAC5B,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,eAAe,
|
|
1
|
+
{"version":3,"file":"DSListSelect.js","sourceRoot":"","sources":["../../../../../../../../src/components/RecordEdition/EditRecordContent/uiElements/StandardField/StandardFieldValue/ValuesList/DSListSelect.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,OAAO,EAAE,QAAQ,EAAC,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AACpD,OAAO,oBAAoB,MAAM,qDAAqD,CAAC;AACvF,OAAO,EAAC,eAAe,EAAE,wBAAwB,EAAC,MAAM,eAAe,CAAC;AACxE,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAC,uBAAuB,EAAC,MAAM,YAAY,CAAC;AAEnD,OAAO,EAAC,6BAA6B,EAAC,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EAAC,oBAAoB,EAAC,MAAM,qEAAqE,CAAC;AAGzG,OAAO,EAAC,0BAA0B,EAAC,MAAM,0DAA0D,CAAC;AAOpG,MAAM,WAAW,GAAG,CAAC,KAAa,EAAE,OAAkB,EAAW,EAAE,CAC/D,KAAK,KAAK,EAAE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC;AAEpE,MAAM,SAAS,GAAG,CAAC,OAAkB,EAAE,WAAoB,EAAE,EAAE;IAC3D,MAAM,UAAU,GAAG,OAAO,CAAC;IAC3B,IAAI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AAU,QACV,uBAAuB,EAAE,4BAA4B,EACrD,QAAQ,EAAE,eAAe,EACzB,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,cAAc,EACvB,QAAQ,EAAE,eAAe,EACzB,OAAO,EAAE,cAAc,EACvB,WAAW,EAAE,CAAC,CAAC,6CAA6C,CAAC,EAC7D,cAAc,EAAE,IAAI,CAAC,EAAE,CAAC,CACpB,8BACK,cAAc,KAAK,EAAE,IAAI,kBAAkB,GAAG,CAAC,IAAI,CAChD,eAAK,KAAK,EAAE,EAAC,aAAa,EAAE,uCAAuC,EAAC,aAChE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAC/B,CAAC,CAAC,+BAA+B,CAAC,GAClB,EACrB,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,CAAC,CAAC,kCAAkC,CAAC,GACrB,IACnB,CACT,EACA,IAAI,IACN,CACN,EACD,eAAe,EACX,cAAK,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAC,YAC7B,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,QAAQ,YAC/C,CAAC,CAAC,iCAAiC,CAAC,GACpB,GACnB,GAEZ,CACL,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -10,7 +10,10 @@ import ValuesVersions from './ValuesVersions';
|
|
|
10
10
|
import { createPortal } from 'react-dom';
|
|
11
11
|
import { EditRecordReducerActionsTypes } from '../editRecordReducer/editRecordReducer';
|
|
12
12
|
import { KitSidePanel } from 'aristid-ds';
|
|
13
|
+
import { useSharedTranslation } from '../../../hooks/useSharedTranslation';
|
|
14
|
+
import { EDIT_RECORD_SIDEBAR_ID } from '../../../constants';
|
|
13
15
|
const _getRecordSidebarContent = (state, onMetadataSubmit) => {
|
|
16
|
+
// TODO: ValueDetails and ValuesVersions should be removed or refactored later
|
|
14
17
|
switch (state.sidebarContent) {
|
|
15
18
|
case 'none':
|
|
16
19
|
return null;
|
|
@@ -23,9 +26,11 @@ const _getRecordSidebarContent = (state, onMetadataSubmit) => {
|
|
|
23
26
|
}
|
|
24
27
|
};
|
|
25
28
|
export const EditRecordSidebar = ({ onMetadataSubmit, open, sidebarContainer }) => {
|
|
29
|
+
const { t } = useSharedTranslation();
|
|
26
30
|
const { state, dispatch } = useEditRecordReducer();
|
|
27
31
|
const sidePanelRef = useRef(null);
|
|
28
|
-
const
|
|
32
|
+
const sidePanelTitle = state.record?.label ?? state.record?.id ?? t('record_summary.new_record');
|
|
33
|
+
const editRecordSidebarContent = (_jsx(KitSidePanel, { ref: sidePanelRef, initialOpen: open, idCardProps: { title: sidePanelTitle }, id: EDIT_RECORD_SIDEBAR_ID, children: _getRecordSidebarContent(state, onMetadataSubmit) }));
|
|
29
34
|
useEffect(() => {
|
|
30
35
|
if (sidePanelRef.current) {
|
|
31
36
|
if (open) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordSidebar/EditRecordSidebar.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,SAAS,EAAE,MAAM,EAAC,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2CAA2C,CAAC;AAC/E,OAAO,aAAa,MAAM,iBAAiB,CAAC;AAC5C,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAC1C,OAAO,cAAc,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AACvC,OAAO,EAAC,6BAA6B,EAA0B,MAAM,wCAAwC,CAAC;AAC9G,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"EditRecordSidebar.js","sourceRoot":"","sources":["../../../../src/components/RecordEdition/EditRecordS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react';
|
|
2
|
+
interface IPropertiesListItemValue {
|
|
2
3
|
title: string;
|
|
3
4
|
value: string;
|
|
4
5
|
}
|
|
5
|
-
export interface IPropertiesListItemDivider {
|
|
6
|
-
divider: boolean;
|
|
7
|
-
}
|
|
8
|
-
export type PropertiesListItem = IPropertiesListItemValue | IPropertiesListItemDivider;
|
|
9
6
|
interface IPropertiesListProps {
|
|
10
|
-
items:
|
|
7
|
+
items: IPropertiesListItemValue[];
|
|
11
8
|
}
|
|
12
|
-
declare
|
|
9
|
+
export declare const PropertiesList: FunctionComponent<IPropertiesListProps>;
|
|
13
10
|
export default PropertiesList;
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
// Copyright LEAV Solutions 2017 until 2023/11/05, Copyright Aristid from 2023/11/06
|
|
3
3
|
// This file is released under LGPL V3
|
|
4
4
|
// License text available at https://www.gnu.org/licenses/lgpl-3.0.txt
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}) }));
|
|
11
|
-
}
|
|
5
|
+
import { KitSpace, KitTypography } from 'aristid-ds';
|
|
6
|
+
export const PropertiesList = ({ items }) => (_jsx(KitSpace, { size: "s", direction: "vertical", children: items.map((item, index) => {
|
|
7
|
+
const { title, value } = item;
|
|
8
|
+
return (_jsxs(KitSpace, { size: "none", direction: "vertical", children: [_jsx(KitTypography.Text, { size: "fontSize7", children: title }), _jsx(KitTypography.Text, { size: "fontSize5", weight: "bold", children: value })] }, index));
|
|
9
|
+
}) }));
|
|
12
10
|
export default PropertiesList;
|
|
13
11
|
//# sourceMappingURL=PropertiesList.js.map
|
package/dist/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,
|
|
1
|
+
{"version":3,"file":"PropertiesList.js","sourceRoot":"","sources":["../../../../../src/components/RecordEdition/EditRecordSidebar/PropertiesList/PropertiesList.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAC,QAAQ,EAAE,aAAa,EAAC,MAAM,YAAY,CAAC;AAYnD,MAAM,CAAC,MAAM,cAAc,GAA4C,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAChF,KAAC,QAAQ,IAAC,IAAI,EAAC,GAAG,EAAC,SAAS,EAAC,UAAU,YAClC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;QACvB,MAAM,EAAC,KAAK,EAAE,KAAK,EAAC,GAAG,IAAI,CAAC;QAE5B,OAAO,CACH,MAAC,QAAQ,IAAa,IAAI,EAAC,MAAM,EAAC,SAAS,EAAC,UAAU,aAClD,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,YAAE,KAAK,GAAsB,EACjE,KAAC,aAAa,CAAC,IAAI,IAAC,IAAI,EAAC,WAAW,EAAC,MAAM,EAAC,MAAM,YAC7C,KAAK,GACW,KAJV,KAAK,CAKT,CACd,CAAC;IACN,CAAC,CAAC,GACK,CACd,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FunctionComponent } from 'react';
|
|
2
|
+
import { IRecordIdentityWhoAmI } from '../../../../../types';
|
|
3
|
+
import { GetRecordColumnsValuesRecord } from '../../../../../_queries/records/getRecordColumnsValues';
|
|
4
|
+
interface IInformationsProps {
|
|
5
|
+
record: IRecordIdentityWhoAmI;
|
|
6
|
+
recordData: GetRecordColumnsValuesRecord;
|
|
7
|
+
}
|
|
8
|
+
export declare const RecordInformations: FunctionComponent<IInformationsProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { useState } from 'react';
|
|
6
|
+
import styled from 'styled-components';
|
|
7
|
+
import { KitButton, KitTooltip } from 'aristid-ds';
|
|
8
|
+
import { FaExpand } from 'react-icons/fa';
|
|
9
|
+
import PropertiesList from '../../PropertiesList';
|
|
10
|
+
import { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
11
|
+
import { useRecordInformations } from './useRecordInformations';
|
|
12
|
+
import FileModal from '../../../../../components/RecordPreviewWithModal/FileModal';
|
|
13
|
+
import { EntityPreview } from '../../../../../components/EntityPreview';
|
|
14
|
+
import { TOOLTIP_DEFAULT_DELAY_IN_SECONDS } from '../../../../../constants';
|
|
15
|
+
const InformationsWrapper = styled.div `
|
|
16
|
+
margin-top: calc(var(--general-spacing-s) * 1px);
|
|
17
|
+
`;
|
|
18
|
+
const PreviewWrapper = styled.div `
|
|
19
|
+
position: relative;
|
|
20
|
+
width: 100%;
|
|
21
|
+
height: 162px;
|
|
22
|
+
background-color: var(--general-colors-primary-50);
|
|
23
|
+
border-radius: calc(var(--general-border-radius-s) * 1px);
|
|
24
|
+
padding: calc(var(--general-spacing-xs) * 1px);
|
|
25
|
+
`;
|
|
26
|
+
const ExpandImageButton = styled(KitButton) `
|
|
27
|
+
position: absolute;
|
|
28
|
+
right: 0;
|
|
29
|
+
top: 0;
|
|
30
|
+
`;
|
|
31
|
+
const ContentWrapper = styled.div `
|
|
32
|
+
margin-top: calc(var(--general-spacing-s) * 1px);
|
|
33
|
+
`;
|
|
34
|
+
export const RecordInformations = ({ record, recordData }) => {
|
|
35
|
+
const { t } = useSharedTranslation();
|
|
36
|
+
const recordInformations = useRecordInformations(record, recordData);
|
|
37
|
+
const [isFilePreviewModalOpen, setFilePreviewModalOpen] = useState(false);
|
|
38
|
+
const previewFile = record?.preview?.file;
|
|
39
|
+
const preview = record?.preview?.medium ? String(record?.preview?.medium) : null;
|
|
40
|
+
return (_jsxs(InformationsWrapper, { children: [_jsxs(PreviewWrapper, { children: [_jsx(EntityPreview, { label: record?.label ?? record?.id, color: record?.color, image: preview, imageStyle: { border: 'none' }, placeholderStyle: { height: '100%', width: 'fit-content', margin: 'auto', borderRadius: '0' }, style: { height: '100%', background: 'initial' }, tile: true }), previewFile !== undefined && (_jsx(KitTooltip, { title: t('record_summary.open_preview_modal'), mouseEnterDelay: TOOLTIP_DEFAULT_DELAY_IN_SECONDS, children: _jsx(ExpandImageButton, { "aria-label": t('record_summary.open_preview_modal'), type: "tertiary", icon: _jsx(FaExpand, {}), onClick: () => setFilePreviewModalOpen(true) }) }))] }), isFilePreviewModalOpen && (_jsx(FileModal, { open: isFilePreviewModalOpen, fileId: previewFile?.id, libraryId: previewFile?.library, onClose: () => setFilePreviewModalOpen(false) })), _jsx(ContentWrapper, { children: _jsx(PropertiesList, { items: recordInformations }) })] }));
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=RecordInformations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/RecordInformations.tsx"],"names":[],"mappings":";AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAAO,EAAoB,QAAQ,EAAC,MAAM,OAAO,CAAC;AAElD,OAAO,MAAM,MAAM,mBAAmB,CAAC;AACvC,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,YAAY,CAAC;AACjD,OAAO,EAAC,QAAQ,EAAC,MAAM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AAM,EAAE,KAAK,EACpB,KAAK,EAAE,OAAO,EACd,UAAU,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,EAC5B,gBAAgB,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,GAAG,EAAC,EAC3F,KAAK,EAAE,EAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAC,EAC9C,IAAI,SACN,EACD,WAAW,KAAK,SAAS,IAAI,CAC1B,KAAC,UAAU,IACP,KAAK,EAAE,CAAC,CAAC,mCAAmC,CAAC,EAC7C,eAAe,EAAE,gCAAgC,YAEjD,KAAC,iBAAiB,kBACF,CAAC,CAAC,mCAAmC,CAAC,EAClD,IAAI,EAAC,UAAU,EACf,IAAI,EAAE,KAAC,QAAQ,KAAG,EAClB,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,IAAI,CAAC,GAC9C,GACO,CAChB,IACY,EAChB,sBAAsB,IAAI,CACvB,KAAC,SAAS,IACN,IAAI,EAAE,sBAAsB,EAC5B,MAAM,EAAE,WAAW,EAAE,EAAE,EACvB,SAAS,EAAE,WAAW,EAAE,OAAO,EAC/B,OAAO,EAAE,GAAG,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAAC,GAC/C,CACL,EACD,KAAC,cAAc,cACX,KAAC,cAAc,IAAC,KAAK,EAAE,kBAAkB,GAAI,GAChC,IACC,CACzB,CAAC;AACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { GetRecordColumnsValuesRecord } from '../../../../../_queries/records/getRecordColumnsValues';
|
|
2
|
+
import { IRecordIdentityWhoAmI } from '../../../../../types';
|
|
3
|
+
export declare const useRecordInformations: (record: IRecordIdentityWhoAmI, recordData: GetRecordColumnsValuesRecord) => {
|
|
4
|
+
title: string;
|
|
5
|
+
value: string;
|
|
6
|
+
}[];
|
|
@@ -0,0 +1,35 @@
|
|
|
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 { useSharedTranslation } from '../../../../../hooks/useSharedTranslation';
|
|
5
|
+
export const useRecordInformations = (record, recordData) => {
|
|
6
|
+
const { t } = useSharedTranslation();
|
|
7
|
+
const recordInformations = [
|
|
8
|
+
{
|
|
9
|
+
title: t('record_summary.id_entity'),
|
|
10
|
+
value: record?.id ?? '-'
|
|
11
|
+
}
|
|
12
|
+
];
|
|
13
|
+
if (recordData?.created_at?.[0]) {
|
|
14
|
+
recordInformations.push({
|
|
15
|
+
title: t('record_summary.creation'),
|
|
16
|
+
value: t('record_summary.date_by_user', {
|
|
17
|
+
date: (recordData?.created_at?.[0]).payload,
|
|
18
|
+
user: recordData?.created_by?.[0]?.linkValue?.whoAmI?.label,
|
|
19
|
+
interpolation: { escapeValue: false }
|
|
20
|
+
})
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
if (recordData?.modified_at?.[0]) {
|
|
24
|
+
recordInformations.push({
|
|
25
|
+
title: t('record_summary.last_modification'),
|
|
26
|
+
value: t('record_summary.date_by_user', {
|
|
27
|
+
date: (recordData?.modified_at?.[0]).payload,
|
|
28
|
+
user: recordData?.modified_by?.[0]?.linkValue?.whoAmI?.label,
|
|
29
|
+
interpolation: { escapeValue: false }
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
return recordInformations;
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=useRecordInformations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useRecordInformations.js","sourceRoot":"","sources":["../../../../../../src/components/RecordEdition/EditRecordSidebar/RecordSummary/RecordInformations/useRecordInformations.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sCAAsC;AACtC,sEAAsE;AACtE,OAA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C,CAAC;IACP,CAAC;IAED,OAAO,kBAAkB,CAAC;AAC9B,CAAC,CAAC"}
|
|
@@ -1,286 +1,7 @@
|
|
|
1
1
|
import { IRecordIdentityWhoAmI } from '../../../../types/records';
|
|
2
|
+
import { FunctionComponent } from 'react';
|
|
2
3
|
interface IRecordSummaryProps {
|
|
3
4
|
record: IRecordIdentityWhoAmI;
|
|
4
5
|
}
|
|
5
|
-
export declare const
|
|
6
|
-
prefixCls?: string;
|
|
7
|
-
className?: string;
|
|
8
|
-
rootClassName?: string;
|
|
9
|
-
style?: import("react").CSSProperties;
|
|
10
|
-
size?: import("antd/es/space").SpaceSize | [import("antd/es/space").SpaceSize, import("antd/es/space").SpaceSize];
|
|
11
|
-
direction?: "horizontal" | "vertical";
|
|
12
|
-
align?: "start" | "end" | "center" | "baseline";
|
|
13
|
-
split?: import("react").ReactNode;
|
|
14
|
-
wrap?: boolean;
|
|
15
|
-
classNames?: {
|
|
16
|
-
item: string;
|
|
17
|
-
};
|
|
18
|
-
styles?: {
|
|
19
|
-
item: import("react").CSSProperties;
|
|
20
|
-
};
|
|
21
|
-
defaultChecked?: boolean | undefined;
|
|
22
|
-
defaultValue?: string | number | ReadonlyArray<string> | undefined;
|
|
23
|
-
suppressContentEditableWarning?: boolean | undefined;
|
|
24
|
-
suppressHydrationWarning?: boolean | undefined;
|
|
25
|
-
accessKey?: string | undefined;
|
|
26
|
-
autoFocus?: boolean | undefined;
|
|
27
|
-
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
28
|
-
contextMenu?: string | undefined;
|
|
29
|
-
dir?: string | undefined;
|
|
30
|
-
draggable?: (boolean | "true" | "false") | undefined;
|
|
31
|
-
hidden?: boolean | undefined;
|
|
32
|
-
id?: string | undefined;
|
|
33
|
-
lang?: string | undefined;
|
|
34
|
-
nonce?: string | undefined;
|
|
35
|
-
placeholder?: string | undefined;
|
|
36
|
-
slot?: string | undefined;
|
|
37
|
-
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
38
|
-
tabIndex?: number | undefined;
|
|
39
|
-
title?: string | undefined;
|
|
40
|
-
translate?: "yes" | "no" | undefined;
|
|
41
|
-
radioGroup?: string | undefined;
|
|
42
|
-
role?: import("react").AriaRole | undefined;
|
|
43
|
-
about?: string | undefined;
|
|
44
|
-
content?: string | undefined;
|
|
45
|
-
datatype?: string | undefined;
|
|
46
|
-
inlist?: any;
|
|
47
|
-
prefix?: string | undefined;
|
|
48
|
-
property?: string | undefined;
|
|
49
|
-
rel?: string | undefined;
|
|
50
|
-
resource?: string | undefined;
|
|
51
|
-
rev?: string | undefined;
|
|
52
|
-
typeof?: string | undefined;
|
|
53
|
-
vocab?: string | undefined;
|
|
54
|
-
autoCapitalize?: string | undefined;
|
|
55
|
-
autoCorrect?: string | undefined;
|
|
56
|
-
autoSave?: string | undefined;
|
|
57
|
-
color?: string | undefined;
|
|
58
|
-
itemProp?: string | undefined;
|
|
59
|
-
itemScope?: boolean | undefined;
|
|
60
|
-
itemType?: string | undefined;
|
|
61
|
-
itemID?: string | undefined;
|
|
62
|
-
itemRef?: string | undefined;
|
|
63
|
-
results?: number | undefined;
|
|
64
|
-
security?: string | undefined;
|
|
65
|
-
unselectable?: "on" | "off" | undefined;
|
|
66
|
-
inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
|
|
67
|
-
is?: string | undefined;
|
|
68
|
-
children?: import("react").ReactNode;
|
|
69
|
-
'aria-activedescendant'?: string | undefined;
|
|
70
|
-
'aria-atomic'?: boolean | "false" | "true" | undefined;
|
|
71
|
-
'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
|
|
72
|
-
'aria-busy'?: boolean | "false" | "true" | undefined;
|
|
73
|
-
'aria-checked'?: boolean | "false" | "mixed" | "true" | undefined;
|
|
74
|
-
'aria-colcount'?: number | undefined;
|
|
75
|
-
'aria-colindex'?: number | undefined;
|
|
76
|
-
'aria-colspan'?: number | undefined;
|
|
77
|
-
'aria-controls'?: string | undefined;
|
|
78
|
-
'aria-current'?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined;
|
|
79
|
-
'aria-describedby'?: string | undefined;
|
|
80
|
-
'aria-details'?: string | undefined;
|
|
81
|
-
'aria-disabled'?: boolean | "false" | "true" | undefined;
|
|
82
|
-
'aria-dropeffect'?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
83
|
-
'aria-errormessage'?: string | undefined;
|
|
84
|
-
'aria-expanded'?: boolean | "false" | "true" | undefined;
|
|
85
|
-
'aria-flowto'?: string | undefined;
|
|
86
|
-
'aria-grabbed'?: boolean | "false" | "true" | undefined;
|
|
87
|
-
'aria-haspopup'?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
88
|
-
'aria-hidden'?: boolean | "false" | "true" | undefined;
|
|
89
|
-
'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
90
|
-
'aria-keyshortcuts'?: string | undefined;
|
|
91
|
-
'aria-label'?: string | undefined;
|
|
92
|
-
'aria-labelledby'?: string | undefined;
|
|
93
|
-
'aria-level'?: number | undefined;
|
|
94
|
-
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
95
|
-
'aria-modal'?: boolean | "false" | "true" | undefined;
|
|
96
|
-
'aria-multiline'?: boolean | "false" | "true" | undefined;
|
|
97
|
-
'aria-multiselectable'?: boolean | "false" | "true" | undefined;
|
|
98
|
-
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
99
|
-
'aria-owns'?: string | undefined;
|
|
100
|
-
'aria-placeholder'?: string | undefined;
|
|
101
|
-
'aria-posinset'?: number | undefined;
|
|
102
|
-
'aria-pressed'?: boolean | "false" | "mixed" | "true" | undefined;
|
|
103
|
-
'aria-readonly'?: boolean | "false" | "true" | undefined;
|
|
104
|
-
'aria-relevant'?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
105
|
-
'aria-required'?: boolean | "false" | "true" | undefined;
|
|
106
|
-
'aria-roledescription'?: string | undefined;
|
|
107
|
-
'aria-rowcount'?: number | undefined;
|
|
108
|
-
'aria-rowindex'?: number | undefined;
|
|
109
|
-
'aria-rowspan'?: number | undefined;
|
|
110
|
-
'aria-selected'?: boolean | "false" | "true" | undefined;
|
|
111
|
-
'aria-setsize'?: number | undefined;
|
|
112
|
-
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
113
|
-
'aria-valuemax'?: number | undefined;
|
|
114
|
-
'aria-valuemin'?: number | undefined;
|
|
115
|
-
'aria-valuenow'?: number | undefined;
|
|
116
|
-
'aria-valuetext'?: string | undefined;
|
|
117
|
-
dangerouslySetInnerHTML?: {
|
|
118
|
-
__html: string | TrustedHTML;
|
|
119
|
-
} | undefined;
|
|
120
|
-
onCopy?: import("react").ClipboardEventHandler<HTMLDivElement>;
|
|
121
|
-
onCopyCapture?: import("react").ClipboardEventHandler<HTMLDivElement>;
|
|
122
|
-
onCut?: import("react").ClipboardEventHandler<HTMLDivElement>;
|
|
123
|
-
onCutCapture?: import("react").ClipboardEventHandler<HTMLDivElement>;
|
|
124
|
-
onPaste?: import("react").ClipboardEventHandler<HTMLDivElement>;
|
|
125
|
-
onPasteCapture?: import("react").ClipboardEventHandler<HTMLDivElement>;
|
|
126
|
-
onCompositionEnd?: import("react").CompositionEventHandler<HTMLDivElement>;
|
|
127
|
-
onCompositionEndCapture?: import("react").CompositionEventHandler<HTMLDivElement>;
|
|
128
|
-
onCompositionStart?: import("react").CompositionEventHandler<HTMLDivElement>;
|
|
129
|
-
onCompositionStartCapture?: import("react").CompositionEventHandler<HTMLDivElement>;
|
|
130
|
-
onCompositionUpdate?: import("react").CompositionEventHandler<HTMLDivElement>;
|
|
131
|
-
onCompositionUpdateCapture?: import("react").CompositionEventHandler<HTMLDivElement>;
|
|
132
|
-
onFocus?: import("react").FocusEventHandler<HTMLDivElement>;
|
|
133
|
-
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement>;
|
|
134
|
-
onBlur?: import("react").FocusEventHandler<HTMLDivElement>;
|
|
135
|
-
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement>;
|
|
136
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement>;
|
|
137
|
-
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement>;
|
|
138
|
-
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement>;
|
|
139
|
-
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement>;
|
|
140
|
-
onInput?: import("react").FormEventHandler<HTMLDivElement>;
|
|
141
|
-
onInputCapture?: import("react").FormEventHandler<HTMLDivElement>;
|
|
142
|
-
onReset?: import("react").FormEventHandler<HTMLDivElement>;
|
|
143
|
-
onResetCapture?: import("react").FormEventHandler<HTMLDivElement>;
|
|
144
|
-
onSubmit?: import("react").FormEventHandler<HTMLDivElement>;
|
|
145
|
-
onSubmitCapture?: import("react").FormEventHandler<HTMLDivElement>;
|
|
146
|
-
onInvalid?: import("react").FormEventHandler<HTMLDivElement>;
|
|
147
|
-
onInvalidCapture?: import("react").FormEventHandler<HTMLDivElement>;
|
|
148
|
-
onLoad?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
149
|
-
onLoadCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
150
|
-
onError?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
151
|
-
onErrorCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
152
|
-
onKeyDown?: import("react").KeyboardEventHandler<HTMLDivElement>;
|
|
153
|
-
onKeyDownCapture?: import("react").KeyboardEventHandler<HTMLDivElement>;
|
|
154
|
-
onKeyPress?: import("react").KeyboardEventHandler<HTMLDivElement>;
|
|
155
|
-
onKeyPressCapture?: import("react").KeyboardEventHandler<HTMLDivElement>;
|
|
156
|
-
onKeyUp?: import("react").KeyboardEventHandler<HTMLDivElement>;
|
|
157
|
-
onKeyUpCapture?: import("react").KeyboardEventHandler<HTMLDivElement>;
|
|
158
|
-
onAbort?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
159
|
-
onAbortCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
160
|
-
onCanPlay?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
161
|
-
onCanPlayCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
162
|
-
onCanPlayThrough?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
163
|
-
onCanPlayThroughCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
164
|
-
onDurationChange?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
165
|
-
onDurationChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
166
|
-
onEmptied?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
167
|
-
onEmptiedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
168
|
-
onEncrypted?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
169
|
-
onEncryptedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
170
|
-
onEnded?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
171
|
-
onEndedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
172
|
-
onLoadedData?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
173
|
-
onLoadedDataCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
174
|
-
onLoadedMetadata?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
175
|
-
onLoadedMetadataCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
176
|
-
onLoadStart?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
177
|
-
onLoadStartCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
178
|
-
onPause?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
179
|
-
onPauseCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
180
|
-
onPlay?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
181
|
-
onPlayCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
182
|
-
onPlaying?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
183
|
-
onPlayingCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
184
|
-
onProgress?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
185
|
-
onProgressCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
186
|
-
onRateChange?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
187
|
-
onRateChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
188
|
-
onSeeked?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
189
|
-
onSeekedCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
190
|
-
onSeeking?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
191
|
-
onSeekingCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
192
|
-
onStalled?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
193
|
-
onStalledCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
194
|
-
onSuspend?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
195
|
-
onSuspendCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
196
|
-
onTimeUpdate?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
197
|
-
onTimeUpdateCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
198
|
-
onVolumeChange?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
199
|
-
onVolumeChangeCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
200
|
-
onWaiting?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
201
|
-
onWaitingCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
202
|
-
onAuxClick?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
203
|
-
onAuxClickCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
204
|
-
onClick?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
205
|
-
onClickCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
206
|
-
onContextMenu?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
207
|
-
onContextMenuCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
208
|
-
onDoubleClick?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
209
|
-
onDoubleClickCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
210
|
-
onDrag?: import("react").DragEventHandler<HTMLDivElement>;
|
|
211
|
-
onDragCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
212
|
-
onDragEnd?: import("react").DragEventHandler<HTMLDivElement>;
|
|
213
|
-
onDragEndCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
214
|
-
onDragEnter?: import("react").DragEventHandler<HTMLDivElement>;
|
|
215
|
-
onDragEnterCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
216
|
-
onDragExit?: import("react").DragEventHandler<HTMLDivElement>;
|
|
217
|
-
onDragExitCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
218
|
-
onDragLeave?: import("react").DragEventHandler<HTMLDivElement>;
|
|
219
|
-
onDragLeaveCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
220
|
-
onDragOver?: import("react").DragEventHandler<HTMLDivElement>;
|
|
221
|
-
onDragOverCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
222
|
-
onDragStart?: import("react").DragEventHandler<HTMLDivElement>;
|
|
223
|
-
onDragStartCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
224
|
-
onDrop?: import("react").DragEventHandler<HTMLDivElement>;
|
|
225
|
-
onDropCapture?: import("react").DragEventHandler<HTMLDivElement>;
|
|
226
|
-
onMouseDown?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
227
|
-
onMouseDownCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
228
|
-
onMouseEnter?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
229
|
-
onMouseLeave?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
230
|
-
onMouseMove?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
231
|
-
onMouseMoveCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
232
|
-
onMouseOut?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
233
|
-
onMouseOutCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
234
|
-
onMouseOver?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
235
|
-
onMouseOverCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
236
|
-
onMouseUp?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
237
|
-
onMouseUpCapture?: import("react").MouseEventHandler<HTMLDivElement>;
|
|
238
|
-
onSelect?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
239
|
-
onSelectCapture?: import("react").ReactEventHandler<HTMLDivElement>;
|
|
240
|
-
onTouchCancel?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
241
|
-
onTouchCancelCapture?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
242
|
-
onTouchEnd?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
243
|
-
onTouchEndCapture?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
244
|
-
onTouchMove?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
245
|
-
onTouchMoveCapture?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
246
|
-
onTouchStart?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
247
|
-
onTouchStartCapture?: import("react").TouchEventHandler<HTMLDivElement>;
|
|
248
|
-
onPointerDown?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
249
|
-
onPointerDownCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
250
|
-
onPointerMove?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
251
|
-
onPointerMoveCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
252
|
-
onPointerUp?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
253
|
-
onPointerUpCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
254
|
-
onPointerCancel?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
255
|
-
onPointerCancelCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
256
|
-
onPointerEnter?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
257
|
-
onPointerEnterCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
258
|
-
onPointerLeave?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
259
|
-
onPointerLeaveCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
260
|
-
onPointerOver?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
261
|
-
onPointerOverCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
262
|
-
onPointerOut?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
263
|
-
onPointerOutCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
264
|
-
onGotPointerCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
265
|
-
onGotPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
266
|
-
onLostPointerCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
267
|
-
onLostPointerCaptureCapture?: import("react").PointerEventHandler<HTMLDivElement>;
|
|
268
|
-
onScroll?: import("react").UIEventHandler<HTMLDivElement>;
|
|
269
|
-
onScrollCapture?: import("react").UIEventHandler<HTMLDivElement>;
|
|
270
|
-
onWheel?: import("react").WheelEventHandler<HTMLDivElement>;
|
|
271
|
-
onWheelCapture?: import("react").WheelEventHandler<HTMLDivElement>;
|
|
272
|
-
onAnimationStart?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
273
|
-
onAnimationStartCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
274
|
-
onAnimationEnd?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
275
|
-
onAnimationEndCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
276
|
-
onAnimationIteration?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
277
|
-
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement>;
|
|
278
|
-
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement>;
|
|
279
|
-
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement>;
|
|
280
|
-
ref?: import("react").Ref<HTMLDivElement>;
|
|
281
|
-
key?: import("react").Key | null | undefined;
|
|
282
|
-
}> & import("react").ForwardRefExoticComponent<import("antd").SpaceProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
283
|
-
Compact: import("react").FC<import("antd/es/space/Compact").SpaceCompactProps>;
|
|
284
|
-
};
|
|
285
|
-
declare function RecordSummary({ record }: IRecordSummaryProps): JSX.Element;
|
|
6
|
+
export declare const RecordSummary: FunctionComponent<IRecordSummaryProps>;
|
|
286
7
|
export default RecordSummary;
|