@deviceinsight/ng-ui-components 6.18.0 → 6.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/__mocks__/i18n.d.ts +12 -4
- package/lib/cjs/__mocks__/i18n.d.ts.map +1 -1
- package/lib/cjs/__mocks__/i18n.js +20 -7
- package/lib/cjs/components/chart/Chart.d.ts +1 -1
- package/lib/cjs/components/colorpicker/ColorPickerPopper.d.ts +1 -1
- package/lib/cjs/components/colorpicker/GradientColorPicker.d.ts +2 -2
- package/lib/cjs/components/colorpicker/GridColorPicker.d.ts +2 -2
- package/lib/cjs/components/contentHeader/ContentHeader.d.ts +1 -1
- package/lib/cjs/components/contentHeader/ContentHeader.d.ts.map +1 -1
- package/lib/cjs/components/infobox/InfoBox.d.ts +1 -1
- package/lib/cjs/components/infobox/InfoBox.d.ts.map +1 -1
- package/lib/cjs/components/input/DateInput.d.ts +2 -2
- package/lib/cjs/components/input/DateInput.d.ts.map +1 -1
- package/lib/cjs/components/input/DateTimeInput.d.ts +2 -2
- package/lib/cjs/components/input/DateTimeInput.d.ts.map +1 -1
- package/lib/cjs/components/input/SelectWithSearch.d.ts +4 -1
- package/lib/cjs/components/input/SelectWithSearch.d.ts.map +1 -1
- package/lib/cjs/components/input/SelectWithSearch.js +25 -4
- package/lib/cjs/components/input/SelectWithSearchAsync.d.ts +1 -1
- package/lib/cjs/components/input/UrnInput.d.ts +1 -1
- package/lib/cjs/components/input/ValidatedTextInput.d.ts +1 -1
- package/lib/cjs/components/input/__tests__/DateInput.spec.js +24 -24
- package/lib/cjs/components/input/__tests__/DateTimeInput.spec.js +5 -4
- package/lib/cjs/components/input/__tests__/SelectWithSearchAsync.spec.js +12 -11
- package/lib/cjs/components/link/RouteLink.d.ts +2 -2
- package/lib/cjs/components/link/RouteLink.d.ts.map +1 -1
- package/lib/cjs/components/multiMenu/MultiMenu.d.ts +1 -1
- package/lib/cjs/components/multiMenu/components/MultiMenuItem.d.ts +1 -1
- package/lib/cjs/components/pagination/Pagination.d.ts +1 -1
- package/lib/cjs/components/pagination/__tests__/Pagination.spec.js +70 -70
- package/lib/cjs/components/periodpicker/PeriodPicker.d.ts +2 -2
- package/lib/cjs/components/periodpicker/PeriodPicker.d.ts.map +1 -1
- package/lib/cjs/components/periodpicker/components/Inputs.d.ts +2 -2
- package/lib/cjs/components/periodpicker/components/Inputs.d.ts.map +1 -1
- package/lib/cjs/components/periodpicker/components/Menu.d.ts +2 -2
- package/lib/cjs/components/periodpicker/components/Menu.d.ts.map +1 -1
- package/lib/cjs/components/periodpicker/components/MonthPicker.d.ts +2 -2
- package/lib/cjs/components/periodpicker/components/MonthPicker.d.ts.map +1 -1
- package/lib/cjs/components/periodpicker/usePeriodName.d.ts +1 -1
- package/lib/cjs/components/periodpicker/usePeriodName.d.ts.map +1 -1
- package/lib/cjs/components/periodpicker/usePeriodName.js +2 -2
- package/lib/cjs/components/prompt/Prompt.d.ts +2 -2
- package/lib/cjs/components/prompt/Prompt.d.ts.map +1 -1
- package/lib/cjs/components/reactable/Reactable.d.ts +1 -1
- package/lib/cjs/components/reactable/helpers/ReactableTable.d.ts +1 -1
- package/lib/cjs/components/reactable/helpers/ReactableTableHeader.d.ts +2 -2
- package/lib/cjs/components/reactable/helpers/ReactableTableHeader.d.ts.map +1 -1
- package/lib/cjs/components/reactable/helpers/ReactableTableRow.d.ts +1 -1
- package/lib/cjs/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts +1 -1
- package/lib/cjs/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.js +64 -72
- package/lib/cjs/components/slider/Slider.d.ts +2 -2
- package/lib/cjs/components/slider/Slider.d.ts.map +1 -1
- package/lib/cjs/components/svg/SvgImage.d.ts +2 -2
- package/lib/cjs/components/svg/SvgImage.d.ts.map +1 -1
- package/lib/cjs/components/svg/utils/__tests__/getMutableNodeList.spec.js +11 -10
- package/lib/cjs/components/tabs/RouteTabs.d.ts +1 -1
- package/lib/cjs/components/tabs/RouteTabs.d.ts.map +1 -1
- package/lib/cjs/components/tabs/RouteTabs.js +2 -2
- package/lib/cjs/components/treeview/TreeView.d.ts +1 -1
- package/lib/cjs/components/treeview/components/Node.d.ts +1 -1
- package/lib/cjs/components/treeview/components/NodeInfo.d.ts +1 -1
- package/lib/cjs/components/upload/FileUpload.d.ts +1 -1
- package/lib/cjs/components/upload/ImageUpload.d.ts +1 -1
- package/lib/cjs/modules/messageBox/messageBox.d.ts +2 -2
- package/lib/cjs/modules/messageBox/messageBox.d.ts.map +1 -1
- package/lib/esm/__mocks__/i18n.d.ts +12 -4
- package/lib/esm/__mocks__/i18n.d.ts.map +1 -1
- package/lib/esm/__mocks__/i18n.js +20 -5
- package/lib/esm/components/chart/Chart.d.ts +1 -1
- package/lib/esm/components/colorpicker/ColorPickerPopper.d.ts +1 -1
- package/lib/esm/components/colorpicker/GradientColorPicker.d.ts +2 -2
- package/lib/esm/components/colorpicker/GridColorPicker.d.ts +2 -2
- package/lib/esm/components/contentHeader/ContentHeader.d.ts +1 -1
- package/lib/esm/components/contentHeader/ContentHeader.d.ts.map +1 -1
- package/lib/esm/components/infobox/InfoBox.d.ts +1 -1
- package/lib/esm/components/infobox/InfoBox.d.ts.map +1 -1
- package/lib/esm/components/input/DateInput.d.ts +2 -2
- package/lib/esm/components/input/DateInput.d.ts.map +1 -1
- package/lib/esm/components/input/DateTimeInput.d.ts +2 -2
- package/lib/esm/components/input/DateTimeInput.d.ts.map +1 -1
- package/lib/esm/components/input/SelectWithSearch.d.ts +4 -1
- package/lib/esm/components/input/SelectWithSearch.d.ts.map +1 -1
- package/lib/esm/components/input/SelectWithSearch.js +25 -4
- package/lib/esm/components/input/SelectWithSearchAsync.d.ts +1 -1
- package/lib/esm/components/input/UrnInput.d.ts +1 -1
- package/lib/esm/components/input/ValidatedTextInput.d.ts +1 -1
- package/lib/esm/components/input/__tests__/DateInput.spec.js +4 -4
- package/lib/esm/components/input/__tests__/DateTimeInput.spec.js +1 -0
- package/lib/esm/components/input/__tests__/SelectWithSearchAsync.spec.js +3 -2
- package/lib/esm/components/link/RouteLink.d.ts +2 -2
- package/lib/esm/components/link/RouteLink.d.ts.map +1 -1
- package/lib/esm/components/multiMenu/MultiMenu.d.ts +1 -1
- package/lib/esm/components/multiMenu/components/MultiMenuItem.d.ts +1 -1
- package/lib/esm/components/pagination/Pagination.d.ts +1 -1
- package/lib/esm/components/pagination/__tests__/Pagination.spec.js +53 -53
- package/lib/esm/components/periodpicker/PeriodPicker.d.ts +2 -2
- package/lib/esm/components/periodpicker/PeriodPicker.d.ts.map +1 -1
- package/lib/esm/components/periodpicker/components/Inputs.d.ts +2 -2
- package/lib/esm/components/periodpicker/components/Inputs.d.ts.map +1 -1
- package/lib/esm/components/periodpicker/components/Menu.d.ts +2 -2
- package/lib/esm/components/periodpicker/components/Menu.d.ts.map +1 -1
- package/lib/esm/components/periodpicker/components/MonthPicker.d.ts +2 -2
- package/lib/esm/components/periodpicker/components/MonthPicker.d.ts.map +1 -1
- package/lib/esm/components/periodpicker/usePeriodName.d.ts +1 -1
- package/lib/esm/components/periodpicker/usePeriodName.d.ts.map +1 -1
- package/lib/esm/components/periodpicker/usePeriodName.js +1 -1
- package/lib/esm/components/prompt/Prompt.d.ts +2 -2
- package/lib/esm/components/prompt/Prompt.d.ts.map +1 -1
- package/lib/esm/components/reactable/Reactable.d.ts +1 -1
- package/lib/esm/components/reactable/helpers/ReactableTable.d.ts +1 -1
- package/lib/esm/components/reactable/helpers/ReactableTableHeader.d.ts +2 -2
- package/lib/esm/components/reactable/helpers/ReactableTableHeader.d.ts.map +1 -1
- package/lib/esm/components/reactable/helpers/ReactableTableRow.d.ts +1 -1
- package/lib/esm/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts +1 -1
- package/lib/esm/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.js +55 -63
- package/lib/esm/components/slider/Slider.d.ts +2 -2
- package/lib/esm/components/slider/Slider.d.ts.map +1 -1
- package/lib/esm/components/svg/SvgImage.d.ts +2 -2
- package/lib/esm/components/svg/SvgImage.d.ts.map +1 -1
- package/lib/esm/components/svg/utils/__tests__/getMutableNodeList.spec.js +1 -0
- package/lib/esm/components/tabs/RouteTabs.d.ts +1 -1
- package/lib/esm/components/tabs/RouteTabs.d.ts.map +1 -1
- package/lib/esm/components/tabs/RouteTabs.js +2 -2
- package/lib/esm/components/treeview/TreeView.d.ts +1 -1
- package/lib/esm/components/treeview/components/Node.d.ts +1 -1
- package/lib/esm/components/treeview/components/NodeInfo.d.ts +1 -1
- package/lib/esm/components/upload/FileUpload.d.ts +1 -1
- package/lib/esm/components/upload/ImageUpload.d.ts +1 -1
- package/lib/esm/modules/messageBox/messageBox.d.ts +2 -2
- package/lib/esm/modules/messageBox/messageBox.d.ts.map +1 -1
- package/lib/esm/src/__mocks__/i18n.d.ts +13 -0
- package/lib/esm/src/__mocks__/i18n.d.ts.map +1 -0
- package/lib/esm/src/__mocks__/i18n.js +20 -0
- package/lib/esm/src/components/chart/Chart.d.ts +38 -0
- package/lib/esm/src/components/chart/Chart.d.ts.map +1 -0
- package/lib/esm/src/components/chart/Chart.js +202 -0
- package/lib/esm/src/components/colorpicker/ColorPickerPopper.d.ts +24 -0
- package/lib/esm/src/components/colorpicker/ColorPickerPopper.d.ts.map +1 -0
- package/lib/esm/src/components/colorpicker/ColorPickerPopper.js +46 -0
- package/lib/esm/src/components/colorpicker/GradientColorPicker.d.ts +63 -0
- package/lib/esm/src/components/colorpicker/GradientColorPicker.d.ts.map +1 -0
- package/lib/esm/src/components/colorpicker/GradientColorPicker.js +125 -0
- package/lib/esm/src/components/colorpicker/GridColorPicker.d.ts +41 -0
- package/lib/esm/src/components/colorpicker/GridColorPicker.d.ts.map +1 -0
- package/lib/esm/src/components/colorpicker/GridColorPicker.js +30 -0
- package/lib/esm/src/components/contentHeader/ContentHeader.d.ts +25 -0
- package/lib/esm/src/components/contentHeader/ContentHeader.d.ts.map +1 -0
- package/lib/esm/src/components/contentHeader/ContentHeader.js +53 -0
- package/lib/esm/src/components/infobox/InfoBox.d.ts +22 -0
- package/lib/esm/src/components/infobox/InfoBox.d.ts.map +1 -0
- package/lib/esm/src/components/infobox/InfoBox.js +36 -0
- package/lib/esm/src/components/input/DateInput.d.ts +28 -0
- package/lib/esm/src/components/input/DateInput.d.ts.map +1 -0
- package/lib/esm/src/components/input/DateInput.js +157 -0
- package/lib/esm/src/components/input/DateTimeInput.d.ts +27 -0
- package/lib/esm/src/components/input/DateTimeInput.d.ts.map +1 -0
- package/lib/esm/src/components/input/DateTimeInput.js +50 -0
- package/lib/esm/src/components/input/SelectWithSearch.d.ts +65 -0
- package/lib/esm/src/components/input/SelectWithSearch.d.ts.map +1 -0
- package/lib/esm/src/components/input/SelectWithSearch.js +111 -0
- package/lib/esm/src/components/input/SelectWithSearchAsync.d.ts +58 -0
- package/lib/esm/src/components/input/SelectWithSearchAsync.d.ts.map +1 -0
- package/lib/esm/src/components/input/SelectWithSearchAsync.js +100 -0
- package/lib/esm/src/components/input/UrnInput.d.ts +22 -0
- package/lib/esm/src/components/input/UrnInput.d.ts.map +1 -0
- package/lib/esm/src/components/input/UrnInput.js +33 -0
- package/lib/esm/src/components/input/ValidatedTextInput.d.ts +35 -0
- package/lib/esm/src/components/input/ValidatedTextInput.d.ts.map +1 -0
- package/lib/esm/src/components/input/ValidatedTextInput.js +30 -0
- package/lib/esm/src/components/input/__tests__/DateInput.spec.d.ts +2 -0
- package/lib/esm/src/components/input/__tests__/DateInput.spec.d.ts.map +1 -0
- package/lib/esm/src/components/input/__tests__/DateInput.spec.js +85 -0
- package/lib/esm/src/components/input/__tests__/DateTimeInput.spec.d.ts +2 -0
- package/lib/esm/src/components/input/__tests__/DateTimeInput.spec.d.ts.map +1 -0
- package/lib/esm/src/components/input/__tests__/DateTimeInput.spec.js +13 -0
- package/lib/esm/src/components/input/__tests__/SelectWithSearchAsync.spec.d.ts +2 -0
- package/lib/esm/src/components/input/__tests__/SelectWithSearchAsync.spec.d.ts.map +1 -0
- package/lib/esm/src/components/input/__tests__/SelectWithSearchAsync.spec.js +44 -0
- package/lib/esm/src/components/link/RouteLink.d.ts +31 -0
- package/lib/esm/src/components/link/RouteLink.d.ts.map +1 -0
- package/lib/esm/src/components/link/RouteLink.js +55 -0
- package/lib/esm/src/components/multiMenu/MultiMenu.d.ts +27 -0
- package/lib/esm/src/components/multiMenu/MultiMenu.d.ts.map +1 -0
- package/lib/esm/src/components/multiMenu/MultiMenu.js +30 -0
- package/lib/esm/src/components/multiMenu/components/MultiMenuContext.d.ts +7 -0
- package/lib/esm/src/components/multiMenu/components/MultiMenuContext.d.ts.map +1 -0
- package/lib/esm/src/components/multiMenu/components/MultiMenuContext.js +5 -0
- package/lib/esm/src/components/multiMenu/components/MultiMenuItem.d.ts +14 -0
- package/lib/esm/src/components/multiMenu/components/MultiMenuItem.d.ts.map +1 -0
- package/lib/esm/src/components/multiMenu/components/MultiMenuItem.js +24 -0
- package/lib/esm/src/components/pagination/Pagination.d.ts +37 -0
- package/lib/esm/src/components/pagination/Pagination.d.ts.map +1 -0
- package/lib/esm/src/components/pagination/Pagination.js +114 -0
- package/lib/esm/src/components/pagination/__tests__/Pagination.spec.d.ts +2 -0
- package/lib/esm/src/components/pagination/__tests__/Pagination.spec.d.ts.map +1 -0
- package/lib/esm/src/components/pagination/__tests__/Pagination.spec.js +87 -0
- package/lib/esm/src/components/periodpicker/PeriodPicker.d.ts +23 -0
- package/lib/esm/src/components/periodpicker/PeriodPicker.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/PeriodPicker.js +11 -0
- package/lib/esm/src/components/periodpicker/components/Inputs.d.ts +12 -0
- package/lib/esm/src/components/periodpicker/components/Inputs.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/components/Inputs.js +59 -0
- package/lib/esm/src/components/periodpicker/components/Menu.d.ts +11 -0
- package/lib/esm/src/components/periodpicker/components/Menu.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/components/Menu.js +96 -0
- package/lib/esm/src/components/periodpicker/components/MonthPicker.d.ts +19 -0
- package/lib/esm/src/components/periodpicker/components/MonthPicker.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/components/MonthPicker.js +62 -0
- package/lib/esm/src/components/periodpicker/periods.d.ts +33 -0
- package/lib/esm/src/components/periodpicker/periods.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/periods.js +56 -0
- package/lib/esm/src/components/periodpicker/types.d.ts +5 -0
- package/lib/esm/src/components/periodpicker/types.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/types.js +1 -0
- package/lib/esm/src/components/periodpicker/usePeriodName.d.ts +7 -0
- package/lib/esm/src/components/periodpicker/usePeriodName.d.ts.map +1 -0
- package/lib/esm/src/components/periodpicker/usePeriodName.js +38 -0
- package/lib/esm/src/components/prompt/Prompt.d.ts +23 -0
- package/lib/esm/src/components/prompt/Prompt.d.ts.map +1 -0
- package/lib/esm/src/components/prompt/Prompt.js +31 -0
- package/lib/esm/src/components/prompt/withPrompt.d.ts +7 -0
- package/lib/esm/src/components/prompt/withPrompt.d.ts.map +1 -0
- package/lib/esm/src/components/prompt/withPrompt.js +33 -0
- package/lib/esm/src/components/reactable/Reactable.d.ts +38 -0
- package/lib/esm/src/components/reactable/Reactable.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/Reactable.js +18 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTable.d.ts +21 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTable.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTable.js +33 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableFilterRow.d.ts +9 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableFilterRow.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableFilterRow.js +57 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableHeader.d.ts +16 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableHeader.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableHeader.js +52 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableRow.d.ts +16 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableRow.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTableRow.js +56 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTextFilter.d.ts +9 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTextFilter.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/helpers/ReactableTextFilter.js +18 -0
- package/lib/esm/src/components/reactable/helpers/helper.d.ts +7 -0
- package/lib/esm/src/components/reactable/helpers/helper.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/helpers/helper.js +90 -0
- package/lib/esm/src/components/reactable/types.d.ts +38 -0
- package/lib/esm/src/components/reactable/types.d.ts.map +1 -0
- package/lib/esm/src/components/reactable/types.js +1 -0
- package/lib/esm/src/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts +69 -0
- package/lib/esm/src/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts.map +1 -0
- package/lib/esm/src/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.js +155 -0
- package/lib/esm/src/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts +2 -0
- package/lib/esm/src/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts.map +1 -0
- package/lib/esm/src/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.js +130 -0
- package/lib/esm/src/components/slider/Slider.d.ts +30 -0
- package/lib/esm/src/components/slider/Slider.d.ts.map +1 -0
- package/lib/esm/src/components/slider/Slider.js +35 -0
- package/lib/esm/src/components/slider/useLimitStyling.d.ts +3 -0
- package/lib/esm/src/components/slider/useLimitStyling.d.ts.map +1 -0
- package/lib/esm/src/components/slider/useLimitStyling.js +49 -0
- package/lib/esm/src/components/svg/SvgImage.d.ts +12 -0
- package/lib/esm/src/components/svg/SvgImage.d.ts.map +1 -0
- package/lib/esm/src/components/svg/SvgImage.js +37 -0
- package/lib/esm/src/components/svg/storybookHelper.d.ts +7 -0
- package/lib/esm/src/components/svg/storybookHelper.d.ts.map +1 -0
- package/lib/esm/src/components/svg/storybookHelper.js +53 -0
- package/lib/esm/src/components/svg/types.d.ts +58 -0
- package/lib/esm/src/components/svg/types.d.ts.map +1 -0
- package/lib/esm/src/components/svg/types.js +1 -0
- package/lib/esm/src/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts +2 -0
- package/lib/esm/src/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/__tests__/getMutableNodeList.spec.js +24 -0
- package/lib/esm/src/components/svg/utils/createHyperlinkModification.d.ts +4 -0
- package/lib/esm/src/components/svg/utils/createHyperlinkModification.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/createHyperlinkModification.js +35 -0
- package/lib/esm/src/components/svg/utils/createPositionModification.d.ts +3 -0
- package/lib/esm/src/components/svg/utils/createPositionModification.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/createPositionModification.js +19 -0
- package/lib/esm/src/components/svg/utils/findConflicts.d.ts +2 -0
- package/lib/esm/src/components/svg/utils/findConflicts.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/findConflicts.js +23 -0
- package/lib/esm/src/components/svg/utils/getMutableNodeList.d.ts +3 -0
- package/lib/esm/src/components/svg/utils/getMutableNodeList.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/getMutableNodeList.js +12 -0
- package/lib/esm/src/components/svg/utils/getSvgElement.d.ts +3 -0
- package/lib/esm/src/components/svg/utils/getSvgElement.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/getSvgElement.js +10 -0
- package/lib/esm/src/components/svg/utils/renderSvg.d.ts +3 -0
- package/lib/esm/src/components/svg/utils/renderSvg.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/renderSvg.js +88 -0
- package/lib/esm/src/components/svg/utils/transformPositionModifications.d.ts +4 -0
- package/lib/esm/src/components/svg/utils/transformPositionModifications.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/transformPositionModifications.js +42 -0
- package/lib/esm/src/components/svg/utils/validateSvg.d.ts +3 -0
- package/lib/esm/src/components/svg/utils/validateSvg.d.ts.map +1 -0
- package/lib/esm/src/components/svg/utils/validateSvg.js +5 -0
- package/lib/esm/src/components/tabs/RouteTabs.d.ts +24 -0
- package/lib/esm/src/components/tabs/RouteTabs.d.ts.map +1 -0
- package/lib/esm/src/components/tabs/RouteTabs.js +67 -0
- package/lib/esm/src/components/treeview/TreeView.d.ts +50 -0
- package/lib/esm/src/components/treeview/TreeView.d.ts.map +1 -0
- package/lib/esm/src/components/treeview/TreeView.js +104 -0
- package/lib/esm/src/components/treeview/components/Node.d.ts +37 -0
- package/lib/esm/src/components/treeview/components/Node.d.ts.map +1 -0
- package/lib/esm/src/components/treeview/components/Node.js +111 -0
- package/lib/esm/src/components/treeview/components/NodeInfo.d.ts +25 -0
- package/lib/esm/src/components/treeview/components/NodeInfo.d.ts.map +1 -0
- package/lib/esm/src/components/treeview/components/NodeInfo.js +64 -0
- package/lib/esm/src/components/treeview/constants.d.ts +6 -0
- package/lib/esm/src/components/treeview/constants.d.ts.map +1 -0
- package/lib/esm/src/components/treeview/constants.js +6 -0
- package/lib/esm/src/components/treeview/treeutils.d.ts +59 -0
- package/lib/esm/src/components/treeview/treeutils.d.ts.map +1 -0
- package/lib/esm/src/components/treeview/treeutils.js +158 -0
- package/lib/esm/src/components/treeview/types.d.ts +37 -0
- package/lib/esm/src/components/treeview/types.d.ts.map +1 -0
- package/lib/esm/src/components/treeview/types.js +1 -0
- package/lib/esm/src/components/upload/FileUpload.d.ts +67 -0
- package/lib/esm/src/components/upload/FileUpload.d.ts.map +1 -0
- package/lib/esm/src/components/upload/FileUpload.js +95 -0
- package/lib/esm/src/components/upload/ImageUpload.d.ts +21 -0
- package/lib/esm/src/components/upload/ImageUpload.d.ts.map +1 -0
- package/lib/esm/src/components/upload/ImageUpload.js +45 -0
- package/lib/esm/src/hoc/outsideClick.d.ts +4 -0
- package/lib/esm/src/hoc/outsideClick.d.ts.map +1 -0
- package/lib/esm/src/hoc/outsideClick.js +73 -0
- package/lib/esm/src/i18n/index.d.ts +16 -0
- package/lib/esm/src/i18n/index.d.ts.map +1 -0
- package/lib/esm/src/i18n/index.js +6 -0
- package/lib/esm/src/index.d.ts +52 -0
- package/lib/esm/src/index.d.ts.map +1 -0
- package/lib/esm/src/index.js +39 -0
- package/lib/esm/src/modules/messageBox/messageBox.d.ts +14 -0
- package/lib/esm/src/modules/messageBox/messageBox.d.ts.map +1 -0
- package/lib/esm/src/modules/messageBox/messageBox.js +56 -0
- package/lib/esm/src/modules/utils/nanoidGen.d.ts +2 -0
- package/lib/esm/src/modules/utils/nanoidGen.d.ts.map +1 -0
- package/lib/esm/src/modules/utils/nanoidGen.js +3 -0
- package/lib/esm/src/modules/utils/uuidGen.d.ts +2 -0
- package/lib/esm/src/modules/utils/uuidGen.d.ts.map +1 -0
- package/lib/esm/src/modules/utils/uuidGen.js +13 -0
- package/lib/esm/src/types/i18n.d.ts +5 -0
- package/lib/esm/src/types/i18n.d.ts.map +1 -0
- package/lib/esm/src/types/i18n.js +1 -0
- package/lib/esm/src/types/pagination.d.ts +19 -0
- package/lib/esm/src/types/pagination.d.ts.map +1 -0
- package/lib/esm/src/types/pagination.js +1 -0
- package/lib/esm/src/utils/dayjsLocales.d.ts +10 -0
- package/lib/esm/src/utils/dayjsLocales.d.ts.map +1 -0
- package/lib/esm/src/utils/dayjsLocales.js +12 -0
- package/lib/esm/src/utils/resolvePath.d.ts +2 -0
- package/lib/esm/src/utils/resolvePath.d.ts.map +1 -0
- package/lib/esm/src/utils/resolvePath.js +4 -0
- package/lib/esm/vite.config.d.mts +3 -0
- package/lib/esm/vite.config.d.mts.map +1 -0
- package/lib/esm/vite.config.mjs +9 -0
- package/lib/esm/vitest.setup.d.ts +3 -0
- package/lib/esm/vitest.setup.d.ts.map +1 -0
- package/lib/esm/vitest.setup.js +10 -0
- package/package.json +24 -54
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
export function removeDuplicatesFromArray(arr) {
|
|
2
|
+
return arr.filter((id, index, arr) => arr.indexOf(id) === index);
|
|
3
|
+
}
|
|
4
|
+
export function removeNodeIds(nodeIds, nodeIdsToRemove) {
|
|
5
|
+
return nodeIds.filter((id) => !nodeIdsToRemove.includes(id));
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Returns the union of two arrays. Examples
|
|
9
|
+
* [1,2,3] u [2,3,4,5] -> [1,2,3,4,5]
|
|
10
|
+
* @param {Array<NodeId>} nodeIds1 An array of string or integers defining the nodeid
|
|
11
|
+
* @param {Array<NodeId>} nodeIds2 An array of string or integers defining the nodeid
|
|
12
|
+
*/
|
|
13
|
+
export function mergeNodeIdArrays(nodeIds1, nodeIds2) {
|
|
14
|
+
return removeDuplicatesFromArray([...nodeIds1, ...nodeIds2]);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns the intersection of two arrays. Example
|
|
18
|
+
* [1,2,3] n [2,3,4,5] -> [2,3]
|
|
19
|
+
* @param {Array} array1
|
|
20
|
+
* @param {Array} array2
|
|
21
|
+
*/
|
|
22
|
+
export function intersectArrays(array1, array2) {
|
|
23
|
+
return array1.filter((value) => array2.includes(value));
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Returns the count of all leaves in the tree @node
|
|
27
|
+
* @param {Tree} node tree to calculate the treesize for
|
|
28
|
+
*/
|
|
29
|
+
export function getTreeSize(node) {
|
|
30
|
+
if (node.children) {
|
|
31
|
+
const numberOfChildren = node.children.length;
|
|
32
|
+
return numberOfChildren + node.children.reduce((l, child) => l + getTreeSize(child), 0);
|
|
33
|
+
}
|
|
34
|
+
return 0;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Returns the leaves of the tree given by @node
|
|
38
|
+
* @param {Tree} node The root node of the tree that should be processed
|
|
39
|
+
*/
|
|
40
|
+
export function getAllLeaves(node) {
|
|
41
|
+
if (node.children) {
|
|
42
|
+
return node.children.reduce((childNodes, child) => [...childNodes, ...getAllLeaves(child)], []);
|
|
43
|
+
}
|
|
44
|
+
return [node];
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Returns the ids of all leaves of the tree given by @node
|
|
48
|
+
* @param {Tree} node The root node of the tree that should be processed
|
|
49
|
+
*/
|
|
50
|
+
export function getAllLeafIds(node) {
|
|
51
|
+
return getAllLeaves(node).map((node) => node.id);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Returns a function that converts an arbitrary hierarchical tree data structure into a treestructure
|
|
55
|
+
* that is processable by the * @Node component. The properties defined in @childNodeKey , @idKey ,
|
|
56
|
+
* @displayNameKey , @typeKey are injected into the returned function @convert . The @convert function
|
|
57
|
+
* returns a new tree of the same structure of smaller size with different parameters.
|
|
58
|
+
*
|
|
59
|
+
* @param {string} childNodeKey The name of the property that holds child nodes
|
|
60
|
+
* @param {string} idKey The name of the property of the node identifier
|
|
61
|
+
* @param {string} displayNameKey The name of the property of the node's name
|
|
62
|
+
* @param {string} typeKey The name of the property to decide if it is a leaf or a "folder" node
|
|
63
|
+
* @param {string} lazyLoadableKey
|
|
64
|
+
* @param {ExpandableNode} nodeMetaData An object containing the value for the node's property @typeKey as well as image paths
|
|
65
|
+
* @param {Leaf} leafMetaData An object containing the value for the node's property @typeKey as well as image paths
|
|
66
|
+
*/
|
|
67
|
+
export function convertToTree({ childNodeKey, idKey, displayNameKey, typeKey, lazyLoadableKey, nodeMetaData, leafMetaData }) {
|
|
68
|
+
const { typeValue: leafTypeValue, image, resolver: leafResolver } = leafMetaData;
|
|
69
|
+
const { typeValue: nodeTypeValue, expandedImage, closedImage, resolver: nodeResolver } = nodeMetaData;
|
|
70
|
+
return function convert(hierarchicalData, nodePath = '') {
|
|
71
|
+
return hierarchicalData.map((rootNode) => {
|
|
72
|
+
const id = rootNode[idKey];
|
|
73
|
+
const name = rootNode[displayNameKey];
|
|
74
|
+
const children = rootNode[childNodeKey];
|
|
75
|
+
const lazyLoadable = rootNode[lazyLoadableKey];
|
|
76
|
+
const isNode = nodeResolver ? nodeResolver(rootNode) : rootNode[typeKey] === nodeTypeValue;
|
|
77
|
+
const isLeaf = leafResolver ? leafResolver(rootNode) : rootNode[typeKey] === leafTypeValue;
|
|
78
|
+
const path = `${nodePath}/${name}`;
|
|
79
|
+
const originalNode = rootNode;
|
|
80
|
+
if (isNode) {
|
|
81
|
+
return {
|
|
82
|
+
id,
|
|
83
|
+
name,
|
|
84
|
+
children: convert(children || [], path),
|
|
85
|
+
lazyLoadable,
|
|
86
|
+
expandedImage,
|
|
87
|
+
closedImage,
|
|
88
|
+
path,
|
|
89
|
+
originalNode
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
else if (isLeaf) {
|
|
93
|
+
return {
|
|
94
|
+
id,
|
|
95
|
+
name,
|
|
96
|
+
image,
|
|
97
|
+
path,
|
|
98
|
+
originalNode
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
throw new Error('unknown node or leaf type provided');
|
|
102
|
+
});
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Merges the properties of @node with the properties of @patch .
|
|
107
|
+
* @param {Tree} node The single node to apply the patch against
|
|
108
|
+
* @param {Tree} patch An object holding new properties and additional children for the node
|
|
109
|
+
*/
|
|
110
|
+
function patchNode(node, patch) {
|
|
111
|
+
let patchedChildren;
|
|
112
|
+
if (patch.children !== undefined) {
|
|
113
|
+
if (node.children !== undefined) {
|
|
114
|
+
patchedChildren = [...node.children, ...patch.children];
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
patchedChildren = [...patch.children];
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return { ...node, ...patch, children: patchedChildren || undefined };
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* Find the node with @nodeId in the tree @node and replace properties defined in the provided @patch .
|
|
124
|
+
* If the node with id @nodeId is not found the tree is returned with the same structure.
|
|
125
|
+
* In any case (@nodeId is found or not found) a new object is created and returned, containing the resulting tree.
|
|
126
|
+
*
|
|
127
|
+
* @param {Tree} node The initial tree to add children on
|
|
128
|
+
* @param {NodeId} nodeId The specific node id of the node to add the children
|
|
129
|
+
* @param {Array<Tree>} patch An object containing Tree properties to change on the node with id @nodeId
|
|
130
|
+
*/
|
|
131
|
+
export function findNodeAndApplyPatch(node, nodeId, patch) {
|
|
132
|
+
if (node.children === undefined) {
|
|
133
|
+
return node;
|
|
134
|
+
}
|
|
135
|
+
if (node.id === nodeId) {
|
|
136
|
+
return patchNode(node, patch);
|
|
137
|
+
}
|
|
138
|
+
return { ...node, children: node.children.map((childNode) => findNodeAndApplyPatch(childNode, nodeId, patch)) };
|
|
139
|
+
}
|
|
140
|
+
function getTreeNodePathByIdArray(currentNode, idToFind, idKey, childNodeKey, displayNameKey) {
|
|
141
|
+
if (currentNode[idKey] === idToFind) {
|
|
142
|
+
return [currentNode[displayNameKey]];
|
|
143
|
+
}
|
|
144
|
+
else if (currentNode[childNodeKey]) {
|
|
145
|
+
for (let i = 0; i < currentNode[childNodeKey].length; i++) {
|
|
146
|
+
const path = getTreeNodePathByIdArray(currentNode[childNodeKey][i], idToFind, idKey, childNodeKey, displayNameKey);
|
|
147
|
+
if (path) {
|
|
148
|
+
path.unshift(currentNode[displayNameKey]);
|
|
149
|
+
return path;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
return null;
|
|
154
|
+
}
|
|
155
|
+
export function getTreeNodePathById(currentNode, idToFind, idKey, childNodeKey, displayNameKey) {
|
|
156
|
+
const nodePathArray = getTreeNodePathByIdArray(currentNode, idToFind, idKey, childNodeKey, displayNameKey);
|
|
157
|
+
return nodePathArray ? nodePathArray.join('.') : null;
|
|
158
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export declare type ExpandableNode = {
|
|
2
|
+
typeValue: string;
|
|
3
|
+
expandedImage?: string;
|
|
4
|
+
closedImage?: string;
|
|
5
|
+
resolver?: (arg0: unknown) => boolean;
|
|
6
|
+
};
|
|
7
|
+
export declare type Leaf = {
|
|
8
|
+
typeValue: string;
|
|
9
|
+
image?: string;
|
|
10
|
+
resolver?: (arg0: unknown) => boolean;
|
|
11
|
+
};
|
|
12
|
+
export declare type DataSetConfig = {
|
|
13
|
+
/** The key for child nodes in the data set */
|
|
14
|
+
childNodeKey: string;
|
|
15
|
+
idKey: string;
|
|
16
|
+
displayNameKey: string;
|
|
17
|
+
typeKey: string;
|
|
18
|
+
lazyLoadableKey: string;
|
|
19
|
+
nodeMetaData: ExpandableNode;
|
|
20
|
+
leafMetaData: Leaf;
|
|
21
|
+
};
|
|
22
|
+
export declare type Tree = {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
lazyLoadable?: boolean;
|
|
26
|
+
expandedImage?: string;
|
|
27
|
+
closedImage?: string;
|
|
28
|
+
image?: string;
|
|
29
|
+
children?: Array<Tree>;
|
|
30
|
+
path: string;
|
|
31
|
+
originalNode: Record<string, unknown>;
|
|
32
|
+
};
|
|
33
|
+
export declare type SelectionItem = {
|
|
34
|
+
$$path: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type NodeId = number | string;
|
|
37
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/treeview/types.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc,GAAG;IAC5B,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;CACtC,CAAC;AAEF,oBAAY,IAAI,GAAG;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,OAAO,CAAC;CACtC,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B,8CAA8C;IAC9C,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,YAAY,EAAE,cAAc,CAAC;IAC7B,YAAY,EAAE,IAAI,CAAC;CACnB,CAAC;AAEF,oBAAY,IAAI,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACtC,CAAC;AAEF,oBAAY,aAAa,GAAG;IAC3B,MAAM,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,oBAAY,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { TranslationDescriptor } from '../../types/i18n';
|
|
3
|
+
export declare type DropzoneFile = File & {
|
|
4
|
+
preview?: string;
|
|
5
|
+
};
|
|
6
|
+
export declare type PreviewComponentProps = {
|
|
7
|
+
file: DropzoneFile | null;
|
|
8
|
+
onRemoveFile: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare type Props = {
|
|
11
|
+
/** (Optional) string for accepting files */
|
|
12
|
+
accept?: string;
|
|
13
|
+
/** Function, executed when a file gets removed */
|
|
14
|
+
onRemoveFile: () => void;
|
|
15
|
+
/** Optional Function, executed to download the file */
|
|
16
|
+
onDownloadFile?: () => void;
|
|
17
|
+
/** Function, executed when a file gets selected */
|
|
18
|
+
onSelectFile: (file: DropzoneFile) => void;
|
|
19
|
+
/** (Optional) function, executed when a file gets dragged into the upload field and accepted */
|
|
20
|
+
onDropAccepted?: () => void;
|
|
21
|
+
/** (Optional) function, executed when a file gets dragged into the upload field and rejected */
|
|
22
|
+
onDropRejected?: (files: DropzoneFile[]) => void;
|
|
23
|
+
/** (Optional) Hint for dragging files into upload field */
|
|
24
|
+
dropHint?: TranslationDescriptor;
|
|
25
|
+
/** (Optional) Hint for hovering over upload field */
|
|
26
|
+
hoverHint?: TranslationDescriptor;
|
|
27
|
+
/** (Optional) Hint for accepting file in upload field*/
|
|
28
|
+
acceptHint?: TranslationDescriptor;
|
|
29
|
+
/** (Optional) Hint for rejecting file in upload field*/
|
|
30
|
+
rejectHint?: TranslationDescriptor;
|
|
31
|
+
/** (Optional) Component to display preview of uploaded field */
|
|
32
|
+
previewComponent?: React.ComponentType<PreviewComponentProps>;
|
|
33
|
+
/** (Optional) Maximum upload size */
|
|
34
|
+
maxSize?: number;
|
|
35
|
+
};
|
|
36
|
+
export declare type State = {
|
|
37
|
+
file: DropzoneFile | null | undefined;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* FileUpload enables the possibility to upload files conveniently
|
|
41
|
+
*/
|
|
42
|
+
export default class FileUpload extends React.Component<Props, State> {
|
|
43
|
+
static defaultProps: {
|
|
44
|
+
acceptHint: {
|
|
45
|
+
defaultValue: string;
|
|
46
|
+
id: string;
|
|
47
|
+
};
|
|
48
|
+
dropHint: {
|
|
49
|
+
defaultValue: string;
|
|
50
|
+
id: string;
|
|
51
|
+
};
|
|
52
|
+
hoverHint: {
|
|
53
|
+
defaultValue: string;
|
|
54
|
+
id: string;
|
|
55
|
+
};
|
|
56
|
+
rejectHint: {
|
|
57
|
+
defaultValue: string;
|
|
58
|
+
id: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
state: State;
|
|
62
|
+
handleDrop: (accepted: Array<DropzoneFile>, rejected: Array<DropzoneFile>) => void;
|
|
63
|
+
selectFile: (arg0: DropzoneFile) => void;
|
|
64
|
+
handleRemoveFile: () => void;
|
|
65
|
+
render(): React.JSX.Element;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=FileUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileUpload.d.ts","sourceRoot":"","sources":["../../../../../src/components/upload/FileUpload.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAC,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AAEvD,oBAAY,YAAY,GAAG,IAAI,GAAG;IACjC,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,oBAAY,qBAAqB,GAAG;IACnC,IAAI,EAAE,YAAY,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,IAAI,CAAC;CACzB,CAAC;AAEF,oBAAY,KAAK,GAAG;IACnB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,kDAAkD;IAClD,YAAY,EAAE,MAAM,IAAI,CAAC;IAEzB,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B,mDAAmD;IACnD,YAAY,EAAE,CAAC,IAAI,EAAE,YAAY,KAAK,IAAI,CAAC;IAE3C,gGAAgG;IAChG,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAE5B,gGAAgG;IAChG,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;IAEjD,2DA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,0 +1,95 @@
|
|
|
1
|
+
/* eslint no-unused-vars: 0 */
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import Dropzone from 'react-dropzone';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { Trans } from '../../i18n';
|
|
6
|
+
/**
|
|
7
|
+
* FileUpload enables the possibility to upload files conveniently
|
|
8
|
+
*/
|
|
9
|
+
export default class FileUpload extends React.Component {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.state = {
|
|
13
|
+
file: null
|
|
14
|
+
};
|
|
15
|
+
this.handleDrop = (accepted, rejected) => {
|
|
16
|
+
if (accepted.length > 1) {
|
|
17
|
+
return;
|
|
18
|
+
}
|
|
19
|
+
if (rejected.length > 0) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const file = accepted[0];
|
|
23
|
+
/** Prevent console error on <Dropzone /> component */
|
|
24
|
+
setTimeout(() => this.selectFile(file), 100);
|
|
25
|
+
};
|
|
26
|
+
this.selectFile = (file) => {
|
|
27
|
+
file.preview = URL.createObjectURL(file);
|
|
28
|
+
this.setState({
|
|
29
|
+
file
|
|
30
|
+
});
|
|
31
|
+
this.props.onSelectFile(file);
|
|
32
|
+
};
|
|
33
|
+
this.handleRemoveFile = () => {
|
|
34
|
+
const { file } = this.state;
|
|
35
|
+
const { onRemoveFile } = this.props;
|
|
36
|
+
if (file) {
|
|
37
|
+
if (file.preview)
|
|
38
|
+
window.URL.revokeObjectURL(file.preview);
|
|
39
|
+
onRemoveFile();
|
|
40
|
+
this.setState({
|
|
41
|
+
file: null
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
render() {
|
|
47
|
+
const { file } = this.state;
|
|
48
|
+
const { accept, previewComponent: Preview, dropHint, hoverHint, acceptHint, rejectHint,
|
|
49
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
50
|
+
onRemoveFile, onDownloadFile,
|
|
51
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
52
|
+
onSelectFile, onDropRejected, onDropAccepted, maxSize, ...otherProps } = this.props;
|
|
53
|
+
const dropHintOrDefault = dropHint || FileUpload.defaultProps.dropHint;
|
|
54
|
+
const hoverHintOrDefault = hoverHint || FileUpload.defaultProps.hoverHint;
|
|
55
|
+
const acceptHintOrDefault = acceptHint || FileUpload.defaultProps.acceptHint;
|
|
56
|
+
const rejectHintOrDefault = rejectHint || FileUpload.defaultProps.rejectHint;
|
|
57
|
+
return (React.createElement("div", { ...otherProps, className: classNames('di upload', {
|
|
58
|
+
clickable: !file,
|
|
59
|
+
hasContent: !!file
|
|
60
|
+
}) },
|
|
61
|
+
!!file && !!Preview && (
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
React.createElement(Preview, { file: file, onRemoveFile: this.handleRemoveFile, onDownloadFile: onDownloadFile })),
|
|
64
|
+
!file && (React.createElement(Dropzone, { accept: accept, multiple: false, style: {
|
|
65
|
+
border: 'none'
|
|
66
|
+
}, onDrop: this.handleDrop, onDropRejected: onDropRejected, onDropAccepted: onDropAccepted, activeClassName: "active", acceptClassName: "accept", rejectClassName: "reject", maxSize: maxSize || Infinity },
|
|
67
|
+
React.createElement("div", { className: "drag-drop-text-container" },
|
|
68
|
+
React.createElement("p", { className: "drag-drop-hint" },
|
|
69
|
+
React.createElement(Trans, { i18nKey: dropHintOrDefault.id }, dropHintOrDefault.defaultValue)),
|
|
70
|
+
React.createElement("p", { className: "drag-drop-hover-hint" },
|
|
71
|
+
React.createElement(Trans, { i18nKey: hoverHintOrDefault.id }, hoverHintOrDefault.defaultValue)),
|
|
72
|
+
React.createElement("p", { className: "drag-drop-accept" },
|
|
73
|
+
React.createElement(Trans, { i18nKey: acceptHintOrDefault.id }, acceptHintOrDefault.defaultValue)),
|
|
74
|
+
React.createElement("p", { className: "drag-drop-reject" },
|
|
75
|
+
React.createElement(Trans, { i18nKey: rejectHintOrDefault.id }, rejectHintOrDefault.defaultValue)))))));
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
FileUpload.defaultProps = {
|
|
79
|
+
dropHint: {
|
|
80
|
+
id: 'fileUpload.dropHint',
|
|
81
|
+
defaultValue: 'Drop file here, or click to browse ...'
|
|
82
|
+
},
|
|
83
|
+
hoverHint: {
|
|
84
|
+
id: 'fileUpload.hoverHint',
|
|
85
|
+
defaultValue: 'Drop file here, or click to browse ...'
|
|
86
|
+
},
|
|
87
|
+
acceptHint: {
|
|
88
|
+
id: 'fileUpload.acceptHint',
|
|
89
|
+
defaultValue: 'This file type can be uploaded'
|
|
90
|
+
},
|
|
91
|
+
rejectHint: {
|
|
92
|
+
id: 'fileUpload.rejectHint',
|
|
93
|
+
defaultValue: 'This file type cannot be uploaded'
|
|
94
|
+
}
|
|
95
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Props as FileUploadProps } from './FileUpload';
|
|
3
|
+
export declare type Props = FileUploadProps & {
|
|
4
|
+
/** (Optional) Url for the image preview */
|
|
5
|
+
imageUrl: string | null | undefined;
|
|
6
|
+
imageSize?: 'contain' | 'cover';
|
|
7
|
+
};
|
|
8
|
+
declare type ImageUploadState = {
|
|
9
|
+
dragOverPreview: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* ImageUpload enables the possibility to upload images conveniently
|
|
13
|
+
*/
|
|
14
|
+
export default class ImageUpload extends React.Component<Props, ImageUploadState> {
|
|
15
|
+
state: ImageUploadState;
|
|
16
|
+
componentDidUpdate(prevProps: Props): void;
|
|
17
|
+
handleDragOver: () => void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
21
|
+
//# sourceMappingURL=ImageUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ImageUpload.d.ts","sourceRoot":"","sources":["../../../../../src/components/upload/ImageUpload.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAmB,EAAC,KAAK,IAAI,eAAe,EAAC,MAAM,cAAc,CAAC;AA+BlE,oBAAY,KAAK,GAAG,eAAe,GAAG;IACrC,2CAA2C;IAC3C,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;CAChC,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACvB,eAAe,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,gBAAgB,CAAC;IAChF,KAAK,EAAE,gBAAgB,CAErB;IAEF,kBAAkB,CAAC,SAAS,EAAE,KAAK,GAAG,IAAI;IAQ1C,cAAc,EAAE,MAAM,IAAI,CAIxB;IAEF,MAAM;CAkBN"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { Trans } from '../../i18n';
|
|
3
|
+
import FileUpload from './FileUpload';
|
|
4
|
+
const PreviewImage = ({ url, imageSize, onRemoveFile, onDragOver, onDownloadFile }) => (React.createElement("div", { className: "di upload preview-container", onDragOver: onDragOver },
|
|
5
|
+
React.createElement("div", { className: "preview", style: {
|
|
6
|
+
backgroundImage: `url(${url})`,
|
|
7
|
+
...(imageSize && { backgroundSize: imageSize })
|
|
8
|
+
} },
|
|
9
|
+
React.createElement("button", { className: "action-button", onClick: onRemoveFile, "data-testid": "delete-button" },
|
|
10
|
+
React.createElement(Trans, { i18nKey: "imageUpload.remove" }, "Remove")),
|
|
11
|
+
onDownloadFile && (React.createElement("button", { className: "action-button", onClick: onDownloadFile, "data-testid": "download-button" },
|
|
12
|
+
React.createElement(Trans, { i18nKey: "imageUpload.download" }, "Download"))))));
|
|
13
|
+
/**
|
|
14
|
+
* ImageUpload enables the possibility to upload images conveniently
|
|
15
|
+
*/
|
|
16
|
+
export default class ImageUpload extends React.Component {
|
|
17
|
+
constructor() {
|
|
18
|
+
super(...arguments);
|
|
19
|
+
this.state = {
|
|
20
|
+
dragOverPreview: false
|
|
21
|
+
};
|
|
22
|
+
this.handleDragOver = () => {
|
|
23
|
+
this.setState({
|
|
24
|
+
dragOverPreview: true
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
componentDidUpdate(prevProps) {
|
|
29
|
+
if (prevProps.imageUrl !== this.props.imageUrl) {
|
|
30
|
+
this.setState({
|
|
31
|
+
dragOverPreview: false
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
render() {
|
|
36
|
+
const { accept, imageUrl, imageSize, ...otherProps } = this.props;
|
|
37
|
+
const { dragOverPreview } = this.state;
|
|
38
|
+
if (imageUrl && !dragOverPreview) {
|
|
39
|
+
return (React.createElement(PreviewImage, { url: imageUrl, imageSize: imageSize, onRemoveFile: otherProps.onRemoveFile, onDownloadFile: otherProps.onDownloadFile, onDragOver: this.handleDragOver }));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
return React.createElement(FileUpload, { ...otherProps, accept: accept || 'image/jpeg, image/png' });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outsideClick.d.ts","sourceRoot":"","sources":["../../../../src/hoc/outsideClick.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,QAAA,MAAM,YAAY,yEAkFjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom';
|
|
3
|
+
/*
|
|
4
|
+
* Components using this Higher Order Component must implement handleOutsideClick(MouseEvent)
|
|
5
|
+
*/
|
|
6
|
+
const outsideClick = function (WrappedComponent) {
|
|
7
|
+
return class OutsideClickWrapper extends React.Component {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this._domElement = null;
|
|
11
|
+
this.clickHandler = (event) => {
|
|
12
|
+
if (this._componentRef) {
|
|
13
|
+
const { handleOutsideClick } = this._componentRef;
|
|
14
|
+
if (typeof handleOutsideClick !== 'function') {
|
|
15
|
+
throw Error(`no handleOutsideClick() event handler defined in ${WrappedComponent.name || ''}`);
|
|
16
|
+
}
|
|
17
|
+
const targetElement = event.target;
|
|
18
|
+
if (!this.wasInsideClick(event, targetElement)) {
|
|
19
|
+
handleOutsideClick(event);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
this.keyHandler = (event) => {
|
|
24
|
+
if (this._componentRef) {
|
|
25
|
+
const { handleOutsideClick } = this._componentRef;
|
|
26
|
+
if (typeof handleOutsideClick !== 'function') {
|
|
27
|
+
throw Error(`no handleOutsideClick() event handler defined in ${WrappedComponent.name || ''}`);
|
|
28
|
+
}
|
|
29
|
+
if (event.key === 'Escape') {
|
|
30
|
+
handleOutsideClick(event);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
this.wasInsideClick = (event, element) => {
|
|
35
|
+
return this.checkByCoordinates(event) || this.checkByDOMHierarchy(element);
|
|
36
|
+
};
|
|
37
|
+
this.checkByCoordinates = ({ clientX, clientY }) => {
|
|
38
|
+
if (this._domElement) {
|
|
39
|
+
const rect = this._domElement.getBoundingClientRect();
|
|
40
|
+
return rect.left <= clientX && rect.right >= clientX && rect.top <= clientY && rect.bottom >= clientY;
|
|
41
|
+
}
|
|
42
|
+
return false;
|
|
43
|
+
};
|
|
44
|
+
this.checkByDOMHierarchy = (element) => {
|
|
45
|
+
if (this._domElement && element === this._domElement) {
|
|
46
|
+
return true;
|
|
47
|
+
}
|
|
48
|
+
else if (element.parentElement) {
|
|
49
|
+
return this.checkByDOMHierarchy(element.parentElement);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
componentDidMount() {
|
|
57
|
+
document.addEventListener('mousedown', this.clickHandler);
|
|
58
|
+
document.addEventListener('keydown', this.keyHandler);
|
|
59
|
+
const domElement = ReactDOM.findDOMNode(this._componentRef);
|
|
60
|
+
this._domElement = domElement;
|
|
61
|
+
}
|
|
62
|
+
componentWillUnmount() {
|
|
63
|
+
document.removeEventListener('mousedown', this.clickHandler);
|
|
64
|
+
document.removeEventListener('keydown', this.keyHandler);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return (React.createElement(WrappedComponent, { ref: (c) => {
|
|
68
|
+
this._componentRef = c;
|
|
69
|
+
}, ...this.props }));
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
export default outsideClick;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ComponentProps } from 'react';
|
|
2
|
+
import { i18n, TOptions } from 'i18next';
|
|
3
|
+
import { useTranslation as useReactI18NextTranslation } from 'react-i18next';
|
|
4
|
+
export declare let Trans: Trans;
|
|
5
|
+
export declare let useTranslation: UseTranslation;
|
|
6
|
+
declare type Trans = (props: ComponentProps<any>) => JSX.Element;
|
|
7
|
+
declare type UseTranslation = (...args: Parameters<typeof useReactI18NextTranslation>) => Result;
|
|
8
|
+
declare type Result = {
|
|
9
|
+
t: TFunction;
|
|
10
|
+
i18n: i18n;
|
|
11
|
+
ready: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare type TFunction = (key: string, options?: TOptions, context?: any) => string;
|
|
14
|
+
export declare function initializeTranslation(transComponent: Trans, useTranslationHook: UseTranslation): void;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/i18n/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,IAAI,EAAE,QAAQ,EAAC,MAAM,SAAS,CAAC;AACvC,OAAO,EAAC,cAAc,IAAI,0BAA0B,EAAC,MAAM,eAAe,CAAC;AAE3E,eAAO,IAAI,KAAK,EAAE,KAAK,CAAC;AACxB,eAAO,IAAI,cAAc,EAAE,cAAc,CAAC;AAE1C,aAAK,KAAK,GAAG,CAAC,KAAK,EAAE,cAAc,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;AAEzD,aAAK,cAAc,GAAG,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,OAAO,0BAA0B,CAAC,KAAK,MAAM,CAAC;AAEzF,aAAK,MAAM,GAAG;IACb,CAAC,EAAE,SAAS,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,KAAK,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,oBAAY,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM,CAAC;AAEnF,wBAAgB,qBAAqB,CAAC,cAAc,EAAE,KAAK,EAAE,kBAAkB,EAAE,cAAc,QAG9F"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import './assets/style.css';
|
|
2
|
+
import 'rc-slider/assets/index.css';
|
|
3
|
+
export { messageBoxSuccess, messageBoxInfo, messageBoxWarn, messageBoxError, messageBoxDismissSingle, messageBoxDismissGroup, messageBoxDismissAll, setGlobalErrorMessageBoxOptions, MessageBoxContainer } from './modules/messageBox/messageBox';
|
|
4
|
+
export { uuidV4 } from './modules/utils/uuidGen';
|
|
5
|
+
export { nanoid10 } from './modules/utils/nanoidGen';
|
|
6
|
+
export { initializeTranslation } from './i18n';
|
|
7
|
+
export { getTreeNodePathById } from './components/treeview/treeutils';
|
|
8
|
+
export { default as ColorPicker } from './components/colorpicker/GridColorPicker';
|
|
9
|
+
export { default as GridColorPicker } from './components/colorpicker/GridColorPicker';
|
|
10
|
+
export { default as GradientColorPicker } from './components/colorpicker/GradientColorPicker';
|
|
11
|
+
export { default as DateInput } from './components/input/DateInput';
|
|
12
|
+
export { default as UrnInput } from './components/input/UrnInput';
|
|
13
|
+
export { default as ValidatedTextInput } from './components/input/ValidatedTextInput';
|
|
14
|
+
export { default as withPrompt } from './components/prompt/withPrompt';
|
|
15
|
+
export { default as RouteLink } from './components/link/RouteLink';
|
|
16
|
+
export { default as InfoBox } from './components/infobox/InfoBox';
|
|
17
|
+
export { default as RouteTabs } from './components/tabs/RouteTabs';
|
|
18
|
+
export { default as TreeView } from './components/treeview/TreeView';
|
|
19
|
+
export { default as Pagination } from './components/pagination/Pagination';
|
|
20
|
+
export { default as Reactable } from './components/reactable/Reactable';
|
|
21
|
+
export type { Props as ReactableProps } from './components/reactable/Reactable';
|
|
22
|
+
export { default as ReactableWithClientSidePagination } from './components/reactableWithClientSidePagination/ReactableWithClientSidePagination';
|
|
23
|
+
export { default as FileUpload } from './components/upload/FileUpload';
|
|
24
|
+
export { default as ImageUpload } from './components/upload/ImageUpload';
|
|
25
|
+
export { default as ContentHeader } from './components/contentHeader/ContentHeader';
|
|
26
|
+
export { default as DateTimeInput } from './components/input/DateTimeInput';
|
|
27
|
+
export { default as SelectWithSearch } from './components/input/SelectWithSearch';
|
|
28
|
+
export { default as SelectWithSearchAsync } from './components/input/SelectWithSearchAsync';
|
|
29
|
+
export { default as MultiMenu } from './components/multiMenu/MultiMenu';
|
|
30
|
+
export { default as MultiMenuItem } from './components/multiMenu/components/MultiMenuItem';
|
|
31
|
+
export { default as PeriodPicker } from './components/periodpicker/PeriodPicker';
|
|
32
|
+
export { default as SvgImage } from './components/svg/SvgImage';
|
|
33
|
+
export { default as getMutableNodeList } from './components/svg/utils/getMutableNodeList';
|
|
34
|
+
export { default as validateSvg } from './components/svg/utils/validateSvg';
|
|
35
|
+
export { default as getSvgElement } from './components/svg/utils/getSvgElement';
|
|
36
|
+
export { default as Chart } from './components/chart/Chart';
|
|
37
|
+
export { default as Slider } from './components/slider/Slider';
|
|
38
|
+
export { default as outsideClick } from './hoc/outsideClick';
|
|
39
|
+
export type { PaginationSettings } from './types/pagination';
|
|
40
|
+
export type { PromptProps } from './components/prompt/withPrompt';
|
|
41
|
+
export type { Props as ReactableWithClientSidePaginationProps } from './components/reactableWithClientSidePagination/ReactableWithClientSidePagination';
|
|
42
|
+
export type { ReactableColumnDef } from './components/reactable/types';
|
|
43
|
+
export type { ReactableRowDef } from './components/reactable/types';
|
|
44
|
+
export type { ReactableFilterSettings } from './components/reactable/types';
|
|
45
|
+
export type { PreviewComponentProps } from './components/upload/FileUpload';
|
|
46
|
+
export type { DropzoneFile } from './components/upload/FileUpload';
|
|
47
|
+
export type { Props as SelectWithSearchProps, Group as SelectWithSearchGroup, Item as SelectWithSearchItem } from './components/input/SelectWithSearch';
|
|
48
|
+
export type { Period } from './components/periodpicker/types';
|
|
49
|
+
export type { SelectionItem as SelectionItem, DataSetConfig as DataSetConfig } from './components/treeview/types';
|
|
50
|
+
export type { Props as SvgImageProps } from './components/svg/SvgImage';
|
|
51
|
+
export type { Modification as SvgImageModification, PositionX as SvgImagePositionXModification, PositionY as SvgImagePositionYModification, SetVisibility as SvgImageVisibilityModification } from './components/svg/types';
|
|
52
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAC5B,OAAO,4BAA4B,CAAC;AAEpC,OAAO,EACN,iBAAiB,EACjB,cAAc,EACd,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,oBAAoB,EACpB,+BAA+B,EAC/B,mBAAmB,EACnB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAC,MAAM,EAAC,MAAM,yBAAyB,CAAC;AAC/C,OA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