@deviceinsight/ng-ui-components 6.30.0 → 7.1.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/dist/index.cjs +2 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.js +3027 -0
- package/dist/index.js.map +1 -0
- package/dist/style.css +1 -0
- package/dist/types/__mocks__/i18n.d.ts +13 -0
- package/dist/types/__mocks__/i18n.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/chart/Chart.d.ts +5 -5
- package/dist/types/components/chart/Chart.d.ts.map +1 -0
- package/dist/types/components/chart/Chart.stories.d.ts +25 -0
- package/dist/types/components/chart/Chart.stories.d.ts.map +1 -0
- package/dist/types/components/colorpicker/ColorPickerPopper.d.ts +13 -0
- package/dist/types/components/colorpicker/ColorPickerPopper.d.ts.map +1 -0
- package/dist/types/components/colorpicker/ColorTextInput.d.ts +11 -0
- package/dist/types/components/colorpicker/ColorTextInput.d.ts.map +1 -0
- package/dist/types/components/colorpicker/GradientColorPicker.d.ts +33 -0
- package/dist/types/components/colorpicker/GradientColorPicker.d.ts.map +1 -0
- package/dist/types/components/colorpicker/GradientColorPicker.stories.d.ts +9 -0
- package/dist/types/components/colorpicker/GradientColorPicker.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/colorpicker/GridColorPicker.d.ts +4 -11
- package/dist/types/components/colorpicker/GridColorPicker.d.ts.map +1 -0
- package/dist/types/components/colorpicker/GridColorPicker.stories.d.ts +17 -0
- package/dist/types/components/colorpicker/GridColorPicker.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/contentHeader/ContentHeader.d.ts +3 -3
- package/dist/types/components/contentHeader/ContentHeader.d.ts.map +1 -0
- package/dist/types/components/contentHeader/ContentHeader.stories.d.ts +7 -0
- package/dist/types/components/contentHeader/ContentHeader.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/infobox/InfoBox.d.ts +3 -3
- package/dist/types/components/infobox/InfoBox.d.ts.map +1 -0
- package/dist/types/components/infobox/InfoBox.stories.d.ts +55 -0
- package/dist/types/components/infobox/InfoBox.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/input/DateInput.d.ts +10 -7
- package/dist/types/components/input/DateInput.d.ts.map +1 -0
- package/dist/types/components/input/DateInput.stories.d.ts +34 -0
- package/dist/types/components/input/DateInput.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/input/DateTimeInput.d.ts +3 -5
- package/dist/types/components/input/DateTimeInput.d.ts.map +1 -0
- package/dist/types/components/input/DateTimeInput.stories.d.ts +32 -0
- package/dist/types/components/input/DateTimeInput.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/input/SelectWithSearch.d.ts +9 -9
- package/dist/types/components/input/SelectWithSearch.d.ts.map +1 -0
- package/dist/types/components/input/SelectWithSearch.stories.d.ts +13 -0
- package/dist/types/components/input/SelectWithSearch.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/input/SelectWithSearchAsync.d.ts +9 -8
- package/dist/types/components/input/SelectWithSearchAsync.d.ts.map +1 -0
- package/dist/types/components/input/SelectWithSearchAsync.stories.d.ts +8 -0
- package/dist/types/components/input/SelectWithSearchAsync.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/input/UrnInput.d.ts +3 -3
- package/dist/types/components/input/UrnInput.d.ts.map +1 -0
- package/dist/types/components/input/UrnInput.stories.d.ts +7 -0
- package/dist/types/components/input/UrnInput.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/input/ValidatedTextInput.d.ts +3 -3
- package/dist/types/components/input/ValidatedTextInput.d.ts.map +1 -0
- package/dist/types/components/input/ValidatedTextInput.stories.d.ts +7 -0
- package/dist/types/components/input/ValidatedTextInput.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/link/RouteLink.d.ts +3 -4
- package/dist/types/components/link/RouteLink.d.ts.map +1 -0
- package/dist/types/components/link/RouteLink.stories.d.ts +11 -0
- package/dist/types/components/link/RouteLink.stories.d.ts.map +1 -0
- package/dist/types/components/multiMenu/MultiMenu.d.ts +21 -0
- package/dist/types/components/multiMenu/MultiMenu.d.ts.map +1 -0
- package/dist/types/components/multiMenu/MultiMenu.stories.d.ts +12 -0
- package/dist/types/components/multiMenu/MultiMenu.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/multiMenu/components/MultiMenuContext.d.ts +2 -2
- package/dist/types/components/multiMenu/components/MultiMenuContext.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/multiMenu/components/MultiMenuItem.d.ts +2 -2
- package/dist/types/components/multiMenu/components/MultiMenuItem.d.ts.map +1 -0
- package/dist/types/components/pagination/Pagination.d.ts +17 -0
- package/dist/types/components/pagination/Pagination.d.ts.map +1 -0
- package/dist/types/components/pagination/Pagination.stories.d.ts +8 -0
- package/dist/types/components/pagination/Pagination.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/periodpicker/PeriodPicker.d.ts +2 -3
- package/dist/types/components/periodpicker/PeriodPicker.d.ts.map +1 -0
- package/dist/types/components/periodpicker/PeriodPicker.stories.d.ts +10 -0
- package/dist/types/components/periodpicker/PeriodPicker.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/periodpicker/components/Inputs.d.ts +2 -3
- package/dist/types/components/periodpicker/components/Inputs.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/periodpicker/components/Menu.d.ts +2 -3
- package/dist/types/components/periodpicker/components/Menu.d.ts.map +1 -0
- package/dist/types/components/periodpicker/components/MonthPicker.d.ts +19 -0
- package/dist/types/components/periodpicker/components/MonthPicker.d.ts.map +1 -0
- package/dist/types/components/periodpicker/types.d.ts +5 -0
- package/{lib/cjs → dist/types}/components/periodpicker/types.d.ts.map +1 -1
- package/{lib/esm/src → dist/types}/components/prompt/Prompt.d.ts +2 -3
- package/dist/types/components/prompt/Prompt.d.ts.map +1 -0
- package/dist/types/components/prompt/Prompt.stories.d.ts +7 -0
- package/dist/types/components/prompt/Prompt.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/prompt/withPrompt.d.ts +1 -1
- package/dist/types/components/prompt/withPrompt.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/reactable/Reactable.d.ts +5 -5
- package/dist/types/components/reactable/Reactable.d.ts.map +1 -0
- package/dist/types/components/reactable/Reactable.stories.d.ts +11 -0
- package/dist/types/components/reactable/Reactable.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/reactable/helpers/ReactableTable.d.ts +3 -4
- package/dist/types/components/reactable/helpers/ReactableTable.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/reactable/helpers/ReactableTableFilterRow.d.ts +2 -2
- package/dist/types/components/reactable/helpers/ReactableTableFilterRow.d.ts.map +1 -0
- package/dist/types/components/reactable/helpers/ReactableTableHeader.d.ts +17 -0
- package/dist/types/components/reactable/helpers/ReactableTableHeader.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/reactable/helpers/ReactableTableRow.d.ts +5 -5
- package/dist/types/components/reactable/helpers/ReactableTableRow.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/reactable/helpers/ReactableTextFilter.d.ts +2 -2
- package/dist/types/components/reactable/helpers/ReactableTextFilter.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/reactable/helpers/helper.d.ts +1 -1
- package/dist/types/components/reactable/helpers/helper.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/reactable/types.d.ts +5 -5
- package/dist/types/components/reactable/types.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts +5 -5
- package/dist/types/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts.map +1 -0
- package/dist/types/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.stories.d.ts +9 -0
- package/dist/types/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.stories.d.ts.map +1 -0
- package/dist/types/components/slider/RcSliderWithTooltip.d.ts +11 -0
- package/dist/types/components/slider/RcSliderWithTooltip.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/slider/Slider.d.ts +2 -3
- package/dist/types/components/slider/Slider.d.ts.map +1 -0
- package/dist/types/components/slider/Slider.stories.d.ts +10 -0
- package/dist/types/components/slider/Slider.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/slider/useLimitStyling.d.ts +0 -1
- package/dist/types/components/slider/useLimitStyling.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/svg/SvgImage.d.ts +2 -3
- package/dist/types/components/svg/SvgImage.d.ts.map +1 -0
- package/dist/types/components/svg/SvgImage.stories.d.ts +16 -0
- package/dist/types/components/svg/SvgImage.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/svg/types.d.ts +11 -11
- package/dist/types/components/svg/types.d.ts.map +1 -0
- package/dist/types/components/svg/utils/getMutableNodeList.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/svg/utils/getSvgElement.d.ts.map +1 -1
- package/{lib/cjs → dist/types}/components/svg/utils/transformPositionModifications.d.ts.map +1 -1
- package/{lib/cjs → dist/types}/components/svg/utils/validateSvg.d.ts.map +1 -1
- package/{lib/esm → dist/types}/components/tabs/RouteTabs.d.ts +4 -4
- package/dist/types/components/tabs/RouteTabs.d.ts.map +1 -0
- package/dist/types/components/tabs/RouteTabs.stories.d.ts +9 -0
- package/dist/types/components/tabs/RouteTabs.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/treeview/TreeView.d.ts +5 -5
- package/dist/types/components/treeview/TreeView.d.ts.map +1 -0
- package/dist/types/components/treeview/TreeView.stories.d.ts +9 -0
- package/dist/types/components/treeview/TreeView.stories.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/components/treeview/components/Node.d.ts +5 -5
- package/dist/types/components/treeview/components/Node.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/components/treeview/components/NodeInfo.d.ts +2 -2
- package/{lib/cjs → dist/types}/components/treeview/components/NodeInfo.d.ts.map +1 -1
- package/{lib/esm/src → dist/types}/components/treeview/types.d.ts +6 -6
- package/dist/types/components/treeview/types.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/upload/FileUpload.d.ts +12 -9
- package/dist/types/components/upload/FileUpload.d.ts.map +1 -0
- package/dist/types/components/upload/FileUpload.stories.d.ts +26 -0
- package/dist/types/components/upload/FileUpload.stories.d.ts.map +1 -0
- package/{lib/esm → dist/types}/components/upload/ImageUpload.d.ts +5 -5
- package/dist/types/components/upload/ImageUpload.d.ts.map +1 -0
- package/dist/types/components/upload/ImageUpload.stories.d.ts +32 -0
- package/dist/types/components/upload/ImageUpload.stories.d.ts.map +1 -0
- package/dist/types/i18n/index.d.ts +9 -0
- package/dist/types/i18n/index.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/index.d.ts +5 -3
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/modules/messageBox/MessageBox.stories.d.ts +8 -0
- package/dist/types/modules/messageBox/MessageBox.stories.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/modules/messageBox/messageBox.d.ts +2 -4
- package/dist/types/modules/messageBox/messageBox.d.ts.map +1 -0
- package/{lib/cjs → dist/types}/modules/utils/uuidGen.d.ts.map +1 -1
- package/dist/types/types/i18n.d.ts +5 -0
- package/dist/types/types/i18n.d.ts.map +1 -0
- package/{lib/esm/src → dist/types}/types/pagination.d.ts +4 -4
- package/dist/types/types/pagination.d.ts.map +1 -0
- package/package.json +75 -87
- package/lib/cjs/__mocks__/i18n.d.ts +0 -13
- package/lib/cjs/__mocks__/i18n.d.ts.map +0 -1
- package/lib/cjs/__mocks__/i18n.js +0 -22
- package/lib/cjs/assets/img/icon-arrow-back.png +0 -0
- package/lib/cjs/assets/img/icon_folder_closed.png +0 -0
- package/lib/cjs/assets/img/icon_folder_closed_light.png +0 -0
- package/lib/cjs/assets/img/icon_folder_open.png +0 -0
- package/lib/cjs/assets/img/icon_folder_open_light.png +0 -0
- package/lib/cjs/assets/img/icon_help_light_24.png +0 -0
- package/lib/cjs/assets/img/icon_variablenode.png +0 -0
- package/lib/cjs/assets/img/icon_variablenode_light.png +0 -0
- package/lib/cjs/assets/img/toastify_msg_error_24.png +0 -0
- package/lib/cjs/assets/img/toastify_msg_success_24.png +0 -0
- package/lib/cjs/assets/react-datepicker-custom.css +0 -43
- package/lib/cjs/assets/react-select-custom.css +0 -13
- package/lib/cjs/assets/react-select.css +0 -428
- package/lib/cjs/assets/react-toastify-custom.css +0 -16
- package/lib/cjs/assets/search-box.css +0 -29
- package/lib/cjs/assets/style.css +0 -256
- package/lib/cjs/assets/svg/icon_add.svg +0 -3
- package/lib/cjs/assets/svg/icon_calendar.svg +0 -50
- package/lib/cjs/assets/svg/icon_chevron_left.svg +0 -6
- package/lib/cjs/assets/svg/icon_chevron_right.svg +0 -6
- package/lib/cjs/assets/svg/icon_cross.svg +0 -3
- package/lib/cjs/assets/svg/icon_download.svg +0 -5
- package/lib/cjs/assets/svg/icon_duplicate.svg +0 -10
- package/lib/cjs/assets/svg/icon_edit.svg +0 -6
- package/lib/cjs/assets/svg/icon_folder_loading.svg +0 -21
- package/lib/cjs/assets/svg/icon_fullscreen.svg +0 -6
- package/lib/cjs/assets/svg/icon_gear.svg +0 -5
- package/lib/cjs/assets/svg/icon_help_light.svg +0 -3
- package/lib/cjs/assets/svg/icon_key.svg +0 -3
- package/lib/cjs/assets/svg/icon_lupe.svg +0 -14
- package/lib/cjs/assets/svg/icon_menu_horizontal.svg +0 -5
- package/lib/cjs/assets/svg/icon_menu_vertical.svg +0 -5
- package/lib/cjs/assets/svg/icon_reload.svg +0 -6
- package/lib/cjs/assets/svg/icon_upload.svg +0 -7
- package/lib/cjs/assets/svg/icon_warning_triangle.svg +0 -12
- package/lib/cjs/assets/svg/triangle_down.svg +0 -3
- package/lib/cjs/assets/svg/triangle_left.svg +0 -3
- package/lib/cjs/assets/svg/triangle_right.svg +0 -3
- package/lib/cjs/assets/svg/triangle_up.svg +0 -3
- package/lib/cjs/assets/svg/triangle_up_and_down.svg +0 -4
- package/lib/cjs/components/chart/Chart.d.ts +0 -38
- package/lib/cjs/components/chart/Chart.d.ts.map +0 -1
- package/lib/cjs/components/chart/Chart.js +0 -231
- package/lib/cjs/components/colorpicker/ColorPickerPopper.d.ts +0 -24
- package/lib/cjs/components/colorpicker/ColorPickerPopper.d.ts.map +0 -1
- package/lib/cjs/components/colorpicker/ColorPickerPopper.js +0 -72
- package/lib/cjs/components/colorpicker/GradientColorPicker.d.ts +0 -63
- package/lib/cjs/components/colorpicker/GradientColorPicker.d.ts.map +0 -1
- package/lib/cjs/components/colorpicker/GradientColorPicker.js +0 -154
- package/lib/cjs/components/colorpicker/GridColorPicker.d.ts +0 -41
- package/lib/cjs/components/colorpicker/GridColorPicker.d.ts.map +0 -1
- package/lib/cjs/components/colorpicker/GridColorPicker.js +0 -36
- package/lib/cjs/components/contentHeader/ContentHeader.d.ts.map +0 -1
- package/lib/cjs/components/contentHeader/ContentHeader.js +0 -58
- package/lib/cjs/components/infobox/InfoBox.d.ts +0 -22
- package/lib/cjs/components/infobox/InfoBox.d.ts.map +0 -1
- package/lib/cjs/components/infobox/InfoBox.js +0 -61
- package/lib/cjs/components/input/DateInput.d.ts +0 -30
- package/lib/cjs/components/input/DateInput.d.ts.map +0 -1
- package/lib/cjs/components/input/DateInput.js +0 -207
- package/lib/cjs/components/input/DateTimeInput.d.ts +0 -27
- package/lib/cjs/components/input/DateTimeInput.d.ts.map +0 -1
- package/lib/cjs/components/input/DateTimeInput.js +0 -81
- package/lib/cjs/components/input/SelectWithSearch.d.ts.map +0 -1
- package/lib/cjs/components/input/SelectWithSearch.js +0 -140
- package/lib/cjs/components/input/SelectWithSearchAsync.d.ts.map +0 -1
- package/lib/cjs/components/input/SelectWithSearchAsync.js +0 -126
- package/lib/cjs/components/input/UrnInput.d.ts +0 -22
- package/lib/cjs/components/input/UrnInput.d.ts.map +0 -1
- package/lib/cjs/components/input/UrnInput.js +0 -59
- package/lib/cjs/components/input/ValidatedTextInput.d.ts +0 -35
- package/lib/cjs/components/input/ValidatedTextInput.d.ts.map +0 -1
- package/lib/cjs/components/input/ValidatedTextInput.js +0 -36
- package/lib/cjs/components/input/__tests__/DateInput.spec.d.ts +0 -2
- package/lib/cjs/components/input/__tests__/DateInput.spec.d.ts.map +0 -1
- package/lib/cjs/components/input/__tests__/DateInput.spec.js +0 -99
- package/lib/cjs/components/input/__tests__/DateTimeInput.spec.d.ts +0 -2
- package/lib/cjs/components/input/__tests__/DateTimeInput.spec.d.ts.map +0 -1
- package/lib/cjs/components/input/__tests__/DateTimeInput.spec.js +0 -39
- package/lib/cjs/components/input/__tests__/SelectWithSearchAsync.spec.d.ts +0 -2
- package/lib/cjs/components/input/__tests__/SelectWithSearchAsync.spec.d.ts.map +0 -1
- package/lib/cjs/components/input/__tests__/SelectWithSearchAsync.spec.js +0 -49
- package/lib/cjs/components/link/RouteLink.d.ts +0 -31
- package/lib/cjs/components/link/RouteLink.d.ts.map +0 -1
- package/lib/cjs/components/link/RouteLink.js +0 -81
- package/lib/cjs/components/multiMenu/MultiMenu.d.ts +0 -27
- package/lib/cjs/components/multiMenu/MultiMenu.d.ts.map +0 -1
- package/lib/cjs/components/multiMenu/MultiMenu.js +0 -59
- package/lib/cjs/components/multiMenu/components/MultiMenuContext.d.ts.map +0 -1
- package/lib/cjs/components/multiMenu/components/MultiMenuContext.js +0 -10
- package/lib/cjs/components/multiMenu/components/MultiMenuItem.d.ts.map +0 -1
- package/lib/cjs/components/multiMenu/components/MultiMenuItem.js +0 -53
- package/lib/cjs/components/pagination/Pagination.d.ts +0 -37
- package/lib/cjs/components/pagination/Pagination.d.ts.map +0 -1
- package/lib/cjs/components/pagination/Pagination.js +0 -143
- package/lib/cjs/components/pagination/__tests__/Pagination.spec.d.ts +0 -2
- package/lib/cjs/components/pagination/__tests__/Pagination.spec.d.ts.map +0 -1
- package/lib/cjs/components/pagination/__tests__/Pagination.spec.js +0 -115
- package/lib/cjs/components/periodpicker/PeriodPicker.d.ts +0 -23
- package/lib/cjs/components/periodpicker/PeriodPicker.d.ts.map +0 -1
- package/lib/cjs/components/periodpicker/PeriodPicker.js +0 -40
- package/lib/cjs/components/periodpicker/components/Inputs.d.ts.map +0 -1
- package/lib/cjs/components/periodpicker/components/Inputs.js +0 -95
- package/lib/cjs/components/periodpicker/components/Menu.d.ts +0 -11
- package/lib/cjs/components/periodpicker/components/Menu.d.ts.map +0 -1
- package/lib/cjs/components/periodpicker/components/Menu.js +0 -125
- package/lib/cjs/components/periodpicker/components/MonthPicker.d.ts +0 -19
- package/lib/cjs/components/periodpicker/components/MonthPicker.d.ts.map +0 -1
- package/lib/cjs/components/periodpicker/components/MonthPicker.js +0 -91
- package/lib/cjs/components/periodpicker/periods.js +0 -71
- package/lib/cjs/components/periodpicker/types.d.ts +0 -5
- package/lib/cjs/components/periodpicker/types.js +0 -2
- package/lib/cjs/components/periodpicker/usePeriodName.js +0 -41
- package/lib/cjs/components/prompt/Prompt.d.ts +0 -23
- package/lib/cjs/components/prompt/Prompt.d.ts.map +0 -1
- package/lib/cjs/components/prompt/Prompt.js +0 -57
- package/lib/cjs/components/prompt/withPrompt.d.ts +0 -7
- package/lib/cjs/components/prompt/withPrompt.d.ts.map +0 -1
- package/lib/cjs/components/prompt/withPrompt.js +0 -62
- package/lib/cjs/components/reactable/Reactable.d.ts +0 -41
- package/lib/cjs/components/reactable/Reactable.d.ts.map +0 -1
- package/lib/cjs/components/reactable/Reactable.js +0 -59
- package/lib/cjs/components/reactable/helpers/ReactableTable.d.ts +0 -20
- package/lib/cjs/components/reactable/helpers/ReactableTable.d.ts.map +0 -1
- package/lib/cjs/components/reactable/helpers/ReactableTable.js +0 -107
- package/lib/cjs/components/reactable/helpers/ReactableTableFilterRow.d.ts +0 -10
- package/lib/cjs/components/reactable/helpers/ReactableTableFilterRow.d.ts.map +0 -1
- package/lib/cjs/components/reactable/helpers/ReactableTableFilterRow.js +0 -113
- package/lib/cjs/components/reactable/helpers/ReactableTableHeader.d.ts +0 -17
- package/lib/cjs/components/reactable/helpers/ReactableTableHeader.d.ts.map +0 -1
- package/lib/cjs/components/reactable/helpers/ReactableTableHeader.js +0 -80
- package/lib/cjs/components/reactable/helpers/ReactableTableRow.d.ts +0 -17
- package/lib/cjs/components/reactable/helpers/ReactableTableRow.d.ts.map +0 -1
- package/lib/cjs/components/reactable/helpers/ReactableTableRow.js +0 -83
- package/lib/cjs/components/reactable/helpers/ReactableTextFilter.d.ts +0 -9
- package/lib/cjs/components/reactable/helpers/ReactableTextFilter.d.ts.map +0 -1
- package/lib/cjs/components/reactable/helpers/ReactableTextFilter.js +0 -43
- package/lib/cjs/components/reactable/helpers/helper.d.ts.map +0 -1
- package/lib/cjs/components/reactable/helpers/helper.js +0 -124
- package/lib/cjs/components/reactable/types.d.ts +0 -39
- package/lib/cjs/components/reactable/types.d.ts.map +0 -1
- package/lib/cjs/components/reactable/types.js +0 -2
- package/lib/cjs/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts +0 -71
- package/lib/cjs/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts.map +0 -1
- package/lib/cjs/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.js +0 -184
- package/lib/cjs/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts +0 -2
- package/lib/cjs/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts.map +0 -1
- package/lib/cjs/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.js +0 -158
- package/lib/cjs/components/slider/Slider.d.ts +0 -30
- package/lib/cjs/components/slider/Slider.d.ts.map +0 -1
- package/lib/cjs/components/slider/Slider.js +0 -63
- package/lib/cjs/components/slider/useLimitStyling.d.ts.map +0 -1
- package/lib/cjs/components/slider/useLimitStyling.js +0 -52
- package/lib/cjs/components/svg/SvgImage.d.ts.map +0 -1
- package/lib/cjs/components/svg/SvgImage.js +0 -66
- package/lib/cjs/components/svg/storybookHelper.js +0 -56
- package/lib/cjs/components/svg/types.d.ts +0 -58
- package/lib/cjs/components/svg/types.d.ts.map +0 -1
- package/lib/cjs/components/svg/types.js +0 -2
- package/lib/cjs/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts +0 -2
- package/lib/cjs/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts.map +0 -1
- package/lib/cjs/components/svg/utils/__tests__/getMutableNodeList.spec.js +0 -49
- package/lib/cjs/components/svg/utils/createHyperlinkModification.js +0 -39
- package/lib/cjs/components/svg/utils/createPositionModification.js +0 -22
- package/lib/cjs/components/svg/utils/findConflicts.js +0 -26
- package/lib/cjs/components/svg/utils/getMutableNodeList.d.ts.map +0 -1
- package/lib/cjs/components/svg/utils/getMutableNodeList.js +0 -17
- package/lib/cjs/components/svg/utils/getSvgElement.js +0 -12
- package/lib/cjs/components/svg/utils/renderSvg.js +0 -94
- package/lib/cjs/components/svg/utils/transformPositionModifications.js +0 -44
- package/lib/cjs/components/svg/utils/validateSvg.js +0 -10
- package/lib/cjs/components/tabs/RouteTabs.d.ts +0 -24
- package/lib/cjs/components/tabs/RouteTabs.d.ts.map +0 -1
- package/lib/cjs/components/tabs/RouteTabs.js +0 -96
- package/lib/cjs/components/treeview/TreeView.d.ts +0 -50
- package/lib/cjs/components/treeview/TreeView.d.ts.map +0 -1
- package/lib/cjs/components/treeview/TreeView.js +0 -133
- package/lib/cjs/components/treeview/components/Node.d.ts.map +0 -1
- package/lib/cjs/components/treeview/components/Node.js +0 -140
- package/lib/cjs/components/treeview/components/NodeInfo.d.ts +0 -25
- package/lib/cjs/components/treeview/components/NodeInfo.js +0 -93
- package/lib/cjs/components/treeview/constants.js +0 -9
- package/lib/cjs/components/treeview/treeutils.js +0 -171
- package/lib/cjs/components/treeview/types.d.ts +0 -37
- package/lib/cjs/components/treeview/types.d.ts.map +0 -1
- package/lib/cjs/components/treeview/types.js +0 -2
- package/lib/cjs/components/upload/FileUpload.d.ts +0 -81
- package/lib/cjs/components/upload/FileUpload.d.ts.map +0 -1
- package/lib/cjs/components/upload/FileUpload.js +0 -132
- package/lib/cjs/components/upload/ImageUpload.d.ts +0 -22
- package/lib/cjs/components/upload/ImageUpload.d.ts.map +0 -1
- package/lib/cjs/components/upload/ImageUpload.js +0 -81
- package/lib/cjs/hoc/outsideClick.d.ts +0 -4
- package/lib/cjs/hoc/outsideClick.d.ts.map +0 -1
- package/lib/cjs/hoc/outsideClick.js +0 -101
- package/lib/cjs/i18n/index.d.ts +0 -16
- package/lib/cjs/i18n/index.d.ts.map +0 -1
- package/lib/cjs/i18n/index.js +0 -8
- package/lib/cjs/index.d.ts +0 -52
- package/lib/cjs/index.d.ts.map +0 -1
- package/lib/cjs/index.js +0 -88
- package/lib/cjs/modules/messageBox/messageBox.d.ts +0 -14
- package/lib/cjs/modules/messageBox/messageBox.d.ts.map +0 -1
- package/lib/cjs/modules/messageBox/messageBox.js +0 -71
- package/lib/cjs/modules/utils/nanoidGen.js +0 -6
- package/lib/cjs/modules/utils/uuidGen.js +0 -17
- package/lib/cjs/types/i18n.d.ts +0 -5
- package/lib/cjs/types/i18n.d.ts.map +0 -1
- package/lib/cjs/types/i18n.js +0 -2
- package/lib/cjs/types/pagination.d.ts +0 -19
- package/lib/cjs/types/pagination.d.ts.map +0 -1
- package/lib/cjs/types/pagination.js +0 -2
- package/lib/cjs/utils/dayjsLocales.js +0 -16
- package/lib/cjs/utils/resolvePath.js +0 -7
- package/lib/esm/__mocks__/i18n.d.ts +0 -13
- package/lib/esm/__mocks__/i18n.d.ts.map +0 -1
- package/lib/esm/__mocks__/i18n.js +0 -20
- package/lib/esm/assets/img/icon-arrow-back.png +0 -0
- package/lib/esm/assets/img/icon_folder_closed.png +0 -0
- package/lib/esm/assets/img/icon_folder_closed_light.png +0 -0
- package/lib/esm/assets/img/icon_folder_open.png +0 -0
- package/lib/esm/assets/img/icon_folder_open_light.png +0 -0
- package/lib/esm/assets/img/icon_help_light_24.png +0 -0
- package/lib/esm/assets/img/icon_variablenode.png +0 -0
- package/lib/esm/assets/img/icon_variablenode_light.png +0 -0
- package/lib/esm/assets/img/toastify_msg_error_24.png +0 -0
- package/lib/esm/assets/img/toastify_msg_success_24.png +0 -0
- package/lib/esm/assets/react-datepicker-custom.css +0 -43
- package/lib/esm/assets/react-select-custom.css +0 -13
- package/lib/esm/assets/react-select.css +0 -428
- package/lib/esm/assets/react-toastify-custom.css +0 -16
- package/lib/esm/assets/search-box.css +0 -29
- package/lib/esm/assets/style.css +0 -256
- package/lib/esm/assets/svg/icon_add.svg +0 -3
- package/lib/esm/assets/svg/icon_calendar.svg +0 -50
- package/lib/esm/assets/svg/icon_chevron_left.svg +0 -6
- package/lib/esm/assets/svg/icon_chevron_right.svg +0 -6
- package/lib/esm/assets/svg/icon_cross.svg +0 -3
- package/lib/esm/assets/svg/icon_download.svg +0 -5
- package/lib/esm/assets/svg/icon_duplicate.svg +0 -10
- package/lib/esm/assets/svg/icon_edit.svg +0 -6
- package/lib/esm/assets/svg/icon_folder_loading.svg +0 -21
- package/lib/esm/assets/svg/icon_fullscreen.svg +0 -6
- package/lib/esm/assets/svg/icon_gear.svg +0 -5
- package/lib/esm/assets/svg/icon_help_light.svg +0 -3
- package/lib/esm/assets/svg/icon_key.svg +0 -3
- package/lib/esm/assets/svg/icon_lupe.svg +0 -14
- package/lib/esm/assets/svg/icon_menu_horizontal.svg +0 -5
- package/lib/esm/assets/svg/icon_menu_vertical.svg +0 -5
- package/lib/esm/assets/svg/icon_reload.svg +0 -6
- package/lib/esm/assets/svg/icon_upload.svg +0 -7
- package/lib/esm/assets/svg/icon_warning_triangle.svg +0 -12
- package/lib/esm/assets/svg/triangle_down.svg +0 -3
- package/lib/esm/assets/svg/triangle_left.svg +0 -3
- package/lib/esm/assets/svg/triangle_right.svg +0 -3
- package/lib/esm/assets/svg/triangle_up.svg +0 -3
- package/lib/esm/assets/svg/triangle_up_and_down.svg +0 -4
- package/lib/esm/components/chart/Chart.d.ts +0 -38
- package/lib/esm/components/chart/Chart.d.ts.map +0 -1
- package/lib/esm/components/chart/Chart.js +0 -202
- package/lib/esm/components/colorpicker/ColorPickerPopper.d.ts +0 -24
- package/lib/esm/components/colorpicker/ColorPickerPopper.d.ts.map +0 -1
- package/lib/esm/components/colorpicker/ColorPickerPopper.js +0 -46
- package/lib/esm/components/colorpicker/GradientColorPicker.d.ts +0 -63
- package/lib/esm/components/colorpicker/GradientColorPicker.d.ts.map +0 -1
- package/lib/esm/components/colorpicker/GradientColorPicker.js +0 -125
- package/lib/esm/components/colorpicker/GridColorPicker.d.ts.map +0 -1
- package/lib/esm/components/colorpicker/GridColorPicker.js +0 -30
- package/lib/esm/components/contentHeader/ContentHeader.d.ts +0 -25
- package/lib/esm/components/contentHeader/ContentHeader.d.ts.map +0 -1
- package/lib/esm/components/contentHeader/ContentHeader.js +0 -53
- package/lib/esm/components/infobox/InfoBox.d.ts.map +0 -1
- package/lib/esm/components/infobox/InfoBox.js +0 -36
- package/lib/esm/components/input/DateInput.d.ts.map +0 -1
- package/lib/esm/components/input/DateInput.js +0 -178
- package/lib/esm/components/input/DateTimeInput.d.ts.map +0 -1
- package/lib/esm/components/input/DateTimeInput.js +0 -52
- package/lib/esm/components/input/SelectWithSearch.d.ts +0 -65
- package/lib/esm/components/input/SelectWithSearch.d.ts.map +0 -1
- package/lib/esm/components/input/SelectWithSearch.js +0 -111
- package/lib/esm/components/input/SelectWithSearchAsync.d.ts +0 -58
- package/lib/esm/components/input/SelectWithSearchAsync.d.ts.map +0 -1
- package/lib/esm/components/input/SelectWithSearchAsync.js +0 -100
- package/lib/esm/components/input/UrnInput.d.ts +0 -22
- package/lib/esm/components/input/UrnInput.d.ts.map +0 -1
- package/lib/esm/components/input/UrnInput.js +0 -33
- package/lib/esm/components/input/ValidatedTextInput.d.ts.map +0 -1
- package/lib/esm/components/input/ValidatedTextInput.js +0 -30
- package/lib/esm/components/input/__tests__/DateInput.spec.d.ts +0 -2
- package/lib/esm/components/input/__tests__/DateInput.spec.d.ts.map +0 -1
- package/lib/esm/components/input/__tests__/DateInput.spec.js +0 -71
- package/lib/esm/components/input/__tests__/DateTimeInput.spec.d.ts +0 -2
- package/lib/esm/components/input/__tests__/DateTimeInput.spec.d.ts.map +0 -1
- package/lib/esm/components/input/__tests__/DateTimeInput.spec.js +0 -34
- package/lib/esm/components/input/__tests__/SelectWithSearchAsync.spec.d.ts +0 -2
- package/lib/esm/components/input/__tests__/SelectWithSearchAsync.spec.d.ts.map +0 -1
- package/lib/esm/components/input/__tests__/SelectWithSearchAsync.spec.js +0 -44
- package/lib/esm/components/link/RouteLink.d.ts +0 -31
- package/lib/esm/components/link/RouteLink.d.ts.map +0 -1
- package/lib/esm/components/link/RouteLink.js +0 -55
- package/lib/esm/components/multiMenu/MultiMenu.d.ts +0 -27
- package/lib/esm/components/multiMenu/MultiMenu.d.ts.map +0 -1
- package/lib/esm/components/multiMenu/MultiMenu.js +0 -30
- package/lib/esm/components/multiMenu/components/MultiMenuContext.d.ts +0 -7
- package/lib/esm/components/multiMenu/components/MultiMenuContext.d.ts.map +0 -1
- package/lib/esm/components/multiMenu/components/MultiMenuContext.js +0 -5
- package/lib/esm/components/multiMenu/components/MultiMenuItem.d.ts +0 -14
- package/lib/esm/components/multiMenu/components/MultiMenuItem.d.ts.map +0 -1
- package/lib/esm/components/multiMenu/components/MultiMenuItem.js +0 -24
- package/lib/esm/components/pagination/Pagination.d.ts +0 -37
- package/lib/esm/components/pagination/Pagination.d.ts.map +0 -1
- package/lib/esm/components/pagination/Pagination.js +0 -114
- package/lib/esm/components/pagination/__tests__/Pagination.spec.d.ts +0 -2
- package/lib/esm/components/pagination/__tests__/Pagination.spec.d.ts.map +0 -1
- package/lib/esm/components/pagination/__tests__/Pagination.spec.js +0 -87
- package/lib/esm/components/periodpicker/PeriodPicker.d.ts +0 -23
- package/lib/esm/components/periodpicker/PeriodPicker.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/PeriodPicker.js +0 -11
- package/lib/esm/components/periodpicker/components/Inputs.d.ts +0 -12
- package/lib/esm/components/periodpicker/components/Inputs.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/components/Inputs.js +0 -66
- package/lib/esm/components/periodpicker/components/Menu.d.ts +0 -11
- package/lib/esm/components/periodpicker/components/Menu.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/components/Menu.js +0 -96
- package/lib/esm/components/periodpicker/components/MonthPicker.d.ts +0 -19
- package/lib/esm/components/periodpicker/components/MonthPicker.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/components/MonthPicker.js +0 -62
- package/lib/esm/components/periodpicker/periods.d.ts +0 -33
- package/lib/esm/components/periodpicker/periods.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/periods.js +0 -56
- package/lib/esm/components/periodpicker/types.d.ts +0 -5
- package/lib/esm/components/periodpicker/types.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/types.js +0 -1
- package/lib/esm/components/periodpicker/usePeriodName.d.ts +0 -7
- package/lib/esm/components/periodpicker/usePeriodName.d.ts.map +0 -1
- package/lib/esm/components/periodpicker/usePeriodName.js +0 -38
- package/lib/esm/components/prompt/Prompt.d.ts +0 -23
- package/lib/esm/components/prompt/Prompt.d.ts.map +0 -1
- package/lib/esm/components/prompt/Prompt.js +0 -31
- package/lib/esm/components/prompt/withPrompt.d.ts +0 -7
- package/lib/esm/components/prompt/withPrompt.d.ts.map +0 -1
- package/lib/esm/components/prompt/withPrompt.js +0 -33
- package/lib/esm/components/reactable/Reactable.d.ts +0 -41
- package/lib/esm/components/reactable/Reactable.d.ts.map +0 -1
- package/lib/esm/components/reactable/Reactable.js +0 -30
- package/lib/esm/components/reactable/helpers/ReactableTable.d.ts.map +0 -1
- package/lib/esm/components/reactable/helpers/ReactableTable.js +0 -78
- package/lib/esm/components/reactable/helpers/ReactableTableFilterRow.d.ts.map +0 -1
- package/lib/esm/components/reactable/helpers/ReactableTableFilterRow.js +0 -85
- package/lib/esm/components/reactable/helpers/ReactableTableHeader.d.ts +0 -17
- package/lib/esm/components/reactable/helpers/ReactableTableHeader.d.ts.map +0 -1
- package/lib/esm/components/reactable/helpers/ReactableTableHeader.js +0 -54
- package/lib/esm/components/reactable/helpers/ReactableTableRow.d.ts +0 -17
- package/lib/esm/components/reactable/helpers/ReactableTableRow.d.ts.map +0 -1
- package/lib/esm/components/reactable/helpers/ReactableTableRow.js +0 -57
- package/lib/esm/components/reactable/helpers/ReactableTextFilter.d.ts.map +0 -1
- package/lib/esm/components/reactable/helpers/ReactableTextFilter.js +0 -18
- package/lib/esm/components/reactable/helpers/helper.d.ts +0 -8
- package/lib/esm/components/reactable/helpers/helper.d.ts.map +0 -1
- package/lib/esm/components/reactable/helpers/helper.js +0 -93
- package/lib/esm/components/reactable/types.d.ts +0 -39
- package/lib/esm/components/reactable/types.d.ts.map +0 -1
- package/lib/esm/components/reactable/types.js +0 -1
- package/lib/esm/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts +0 -71
- package/lib/esm/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts.map +0 -1
- package/lib/esm/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.js +0 -155
- package/lib/esm/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts +0 -2
- package/lib/esm/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts.map +0 -1
- package/lib/esm/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.js +0 -130
- package/lib/esm/components/slider/Slider.d.ts.map +0 -1
- package/lib/esm/components/slider/Slider.js +0 -35
- package/lib/esm/components/slider/useLimitStyling.d.ts +0 -3
- package/lib/esm/components/slider/useLimitStyling.d.ts.map +0 -1
- package/lib/esm/components/slider/useLimitStyling.js +0 -49
- package/lib/esm/components/svg/SvgImage.d.ts +0 -12
- package/lib/esm/components/svg/SvgImage.d.ts.map +0 -1
- package/lib/esm/components/svg/SvgImage.js +0 -37
- package/lib/esm/components/svg/storybookHelper.d.ts +0 -7
- package/lib/esm/components/svg/storybookHelper.d.ts.map +0 -1
- package/lib/esm/components/svg/storybookHelper.js +0 -53
- package/lib/esm/components/svg/types.d.ts +0 -58
- package/lib/esm/components/svg/types.d.ts.map +0 -1
- package/lib/esm/components/svg/types.js +0 -1
- package/lib/esm/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts +0 -2
- package/lib/esm/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/__tests__/getMutableNodeList.spec.js +0 -24
- package/lib/esm/components/svg/utils/createHyperlinkModification.d.ts +0 -4
- package/lib/esm/components/svg/utils/createHyperlinkModification.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/createHyperlinkModification.js +0 -35
- package/lib/esm/components/svg/utils/createPositionModification.d.ts +0 -3
- package/lib/esm/components/svg/utils/createPositionModification.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/createPositionModification.js +0 -19
- package/lib/esm/components/svg/utils/findConflicts.d.ts +0 -2
- package/lib/esm/components/svg/utils/findConflicts.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/findConflicts.js +0 -23
- package/lib/esm/components/svg/utils/getMutableNodeList.d.ts +0 -3
- package/lib/esm/components/svg/utils/getMutableNodeList.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/getMutableNodeList.js +0 -12
- package/lib/esm/components/svg/utils/getSvgElement.d.ts +0 -3
- package/lib/esm/components/svg/utils/getSvgElement.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/getSvgElement.js +0 -10
- package/lib/esm/components/svg/utils/renderSvg.d.ts +0 -3
- package/lib/esm/components/svg/utils/renderSvg.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/renderSvg.js +0 -88
- package/lib/esm/components/svg/utils/transformPositionModifications.d.ts +0 -4
- package/lib/esm/components/svg/utils/transformPositionModifications.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/transformPositionModifications.js +0 -42
- package/lib/esm/components/svg/utils/validateSvg.d.ts +0 -3
- package/lib/esm/components/svg/utils/validateSvg.d.ts.map +0 -1
- package/lib/esm/components/svg/utils/validateSvg.js +0 -5
- package/lib/esm/components/tabs/RouteTabs.d.ts.map +0 -1
- package/lib/esm/components/tabs/RouteTabs.js +0 -67
- package/lib/esm/components/treeview/TreeView.d.ts +0 -50
- package/lib/esm/components/treeview/TreeView.d.ts.map +0 -1
- package/lib/esm/components/treeview/TreeView.js +0 -104
- package/lib/esm/components/treeview/components/Node.d.ts +0 -37
- package/lib/esm/components/treeview/components/Node.d.ts.map +0 -1
- package/lib/esm/components/treeview/components/Node.js +0 -111
- package/lib/esm/components/treeview/components/NodeInfo.d.ts +0 -25
- package/lib/esm/components/treeview/components/NodeInfo.d.ts.map +0 -1
- package/lib/esm/components/treeview/components/NodeInfo.js +0 -64
- package/lib/esm/components/treeview/constants.d.ts +0 -6
- package/lib/esm/components/treeview/constants.d.ts.map +0 -1
- package/lib/esm/components/treeview/constants.js +0 -6
- package/lib/esm/components/treeview/treeutils.d.ts +0 -59
- package/lib/esm/components/treeview/treeutils.d.ts.map +0 -1
- package/lib/esm/components/treeview/treeutils.js +0 -158
- package/lib/esm/components/treeview/types.d.ts +0 -37
- package/lib/esm/components/treeview/types.d.ts.map +0 -1
- package/lib/esm/components/treeview/types.js +0 -1
- package/lib/esm/components/upload/FileUpload.d.ts.map +0 -1
- package/lib/esm/components/upload/FileUpload.js +0 -103
- package/lib/esm/components/upload/ImageUpload.d.ts.map +0 -1
- package/lib/esm/components/upload/ImageUpload.js +0 -52
- package/lib/esm/hoc/outsideClick.d.ts +0 -4
- package/lib/esm/hoc/outsideClick.d.ts.map +0 -1
- package/lib/esm/hoc/outsideClick.js +0 -73
- package/lib/esm/i18n/index.d.ts +0 -16
- package/lib/esm/i18n/index.d.ts.map +0 -1
- package/lib/esm/i18n/index.js +0 -6
- package/lib/esm/index.d.ts +0 -52
- package/lib/esm/index.d.ts.map +0 -1
- package/lib/esm/index.js +0 -39
- package/lib/esm/modules/messageBox/messageBox.d.ts +0 -14
- package/lib/esm/modules/messageBox/messageBox.d.ts.map +0 -1
- package/lib/esm/modules/messageBox/messageBox.js +0 -56
- package/lib/esm/modules/utils/nanoidGen.d.ts +0 -2
- package/lib/esm/modules/utils/nanoidGen.d.ts.map +0 -1
- package/lib/esm/modules/utils/nanoidGen.js +0 -3
- package/lib/esm/modules/utils/uuidGen.d.ts +0 -2
- package/lib/esm/modules/utils/uuidGen.d.ts.map +0 -1
- package/lib/esm/modules/utils/uuidGen.js +0 -13
- package/lib/esm/src/__mocks__/i18n.d.ts +0 -13
- package/lib/esm/src/__mocks__/i18n.d.ts.map +0 -1
- package/lib/esm/src/__mocks__/i18n.js +0 -20
- package/lib/esm/src/components/chart/Chart.d.ts.map +0 -1
- package/lib/esm/src/components/chart/Chart.js +0 -202
- package/lib/esm/src/components/colorpicker/ColorPickerPopper.d.ts +0 -24
- package/lib/esm/src/components/colorpicker/ColorPickerPopper.d.ts.map +0 -1
- package/lib/esm/src/components/colorpicker/ColorPickerPopper.js +0 -46
- package/lib/esm/src/components/colorpicker/GradientColorPicker.d.ts +0 -63
- package/lib/esm/src/components/colorpicker/GradientColorPicker.d.ts.map +0 -1
- package/lib/esm/src/components/colorpicker/GradientColorPicker.js +0 -125
- package/lib/esm/src/components/colorpicker/GridColorPicker.d.ts +0 -41
- package/lib/esm/src/components/colorpicker/GridColorPicker.d.ts.map +0 -1
- package/lib/esm/src/components/colorpicker/GridColorPicker.js +0 -30
- package/lib/esm/src/components/contentHeader/ContentHeader.d.ts +0 -25
- package/lib/esm/src/components/contentHeader/ContentHeader.d.ts.map +0 -1
- package/lib/esm/src/components/contentHeader/ContentHeader.js +0 -53
- package/lib/esm/src/components/infobox/InfoBox.d.ts +0 -22
- package/lib/esm/src/components/infobox/InfoBox.d.ts.map +0 -1
- package/lib/esm/src/components/infobox/InfoBox.js +0 -36
- package/lib/esm/src/components/input/DateInput.d.ts +0 -30
- package/lib/esm/src/components/input/DateInput.d.ts.map +0 -1
- package/lib/esm/src/components/input/DateInput.js +0 -178
- package/lib/esm/src/components/input/DateTimeInput.d.ts +0 -27
- package/lib/esm/src/components/input/DateTimeInput.d.ts.map +0 -1
- package/lib/esm/src/components/input/DateTimeInput.js +0 -52
- package/lib/esm/src/components/input/SelectWithSearch.d.ts +0 -65
- package/lib/esm/src/components/input/SelectWithSearch.d.ts.map +0 -1
- package/lib/esm/src/components/input/SelectWithSearch.js +0 -111
- package/lib/esm/src/components/input/SelectWithSearchAsync.d.ts +0 -58
- package/lib/esm/src/components/input/SelectWithSearchAsync.d.ts.map +0 -1
- package/lib/esm/src/components/input/SelectWithSearchAsync.js +0 -100
- package/lib/esm/src/components/input/UrnInput.d.ts.map +0 -1
- package/lib/esm/src/components/input/UrnInput.js +0 -33
- package/lib/esm/src/components/input/ValidatedTextInput.d.ts +0 -35
- package/lib/esm/src/components/input/ValidatedTextInput.d.ts.map +0 -1
- package/lib/esm/src/components/input/ValidatedTextInput.js +0 -30
- package/lib/esm/src/components/input/__tests__/DateInput.spec.d.ts +0 -2
- package/lib/esm/src/components/input/__tests__/DateInput.spec.d.ts.map +0 -1
- package/lib/esm/src/components/input/__tests__/DateInput.spec.js +0 -71
- package/lib/esm/src/components/input/__tests__/DateTimeInput.spec.d.ts +0 -2
- package/lib/esm/src/components/input/__tests__/DateTimeInput.spec.d.ts.map +0 -1
- package/lib/esm/src/components/input/__tests__/DateTimeInput.spec.js +0 -34
- package/lib/esm/src/components/input/__tests__/SelectWithSearchAsync.spec.d.ts +0 -2
- package/lib/esm/src/components/input/__tests__/SelectWithSearchAsync.spec.d.ts.map +0 -1
- package/lib/esm/src/components/input/__tests__/SelectWithSearchAsync.spec.js +0 -44
- package/lib/esm/src/components/link/RouteLink.d.ts.map +0 -1
- package/lib/esm/src/components/link/RouteLink.js +0 -55
- package/lib/esm/src/components/multiMenu/MultiMenu.d.ts +0 -27
- package/lib/esm/src/components/multiMenu/MultiMenu.d.ts.map +0 -1
- package/lib/esm/src/components/multiMenu/MultiMenu.js +0 -30
- package/lib/esm/src/components/multiMenu/components/MultiMenuContext.d.ts +0 -7
- package/lib/esm/src/components/multiMenu/components/MultiMenuContext.d.ts.map +0 -1
- package/lib/esm/src/components/multiMenu/components/MultiMenuContext.js +0 -5
- package/lib/esm/src/components/multiMenu/components/MultiMenuItem.d.ts +0 -14
- package/lib/esm/src/components/multiMenu/components/MultiMenuItem.d.ts.map +0 -1
- package/lib/esm/src/components/multiMenu/components/MultiMenuItem.js +0 -24
- package/lib/esm/src/components/pagination/Pagination.d.ts +0 -37
- package/lib/esm/src/components/pagination/Pagination.d.ts.map +0 -1
- package/lib/esm/src/components/pagination/Pagination.js +0 -114
- package/lib/esm/src/components/pagination/__tests__/Pagination.spec.d.ts +0 -2
- package/lib/esm/src/components/pagination/__tests__/Pagination.spec.d.ts.map +0 -1
- package/lib/esm/src/components/pagination/__tests__/Pagination.spec.js +0 -87
- package/lib/esm/src/components/periodpicker/PeriodPicker.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/PeriodPicker.js +0 -11
- package/lib/esm/src/components/periodpicker/components/Inputs.d.ts +0 -12
- package/lib/esm/src/components/periodpicker/components/Inputs.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/components/Inputs.js +0 -66
- package/lib/esm/src/components/periodpicker/components/Menu.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/components/Menu.js +0 -96
- package/lib/esm/src/components/periodpicker/components/MonthPicker.d.ts +0 -19
- package/lib/esm/src/components/periodpicker/components/MonthPicker.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/components/MonthPicker.js +0 -62
- package/lib/esm/src/components/periodpicker/periods.d.ts +0 -33
- package/lib/esm/src/components/periodpicker/periods.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/periods.js +0 -56
- package/lib/esm/src/components/periodpicker/types.d.ts +0 -5
- package/lib/esm/src/components/periodpicker/types.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/types.js +0 -1
- package/lib/esm/src/components/periodpicker/usePeriodName.d.ts +0 -7
- package/lib/esm/src/components/periodpicker/usePeriodName.d.ts.map +0 -1
- package/lib/esm/src/components/periodpicker/usePeriodName.js +0 -38
- package/lib/esm/src/components/prompt/Prompt.d.ts.map +0 -1
- package/lib/esm/src/components/prompt/Prompt.js +0 -31
- package/lib/esm/src/components/prompt/withPrompt.d.ts.map +0 -1
- package/lib/esm/src/components/prompt/withPrompt.js +0 -33
- package/lib/esm/src/components/reactable/Reactable.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/Reactable.js +0 -30
- package/lib/esm/src/components/reactable/helpers/ReactableTable.d.ts +0 -20
- package/lib/esm/src/components/reactable/helpers/ReactableTable.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/helpers/ReactableTable.js +0 -78
- package/lib/esm/src/components/reactable/helpers/ReactableTableFilterRow.d.ts +0 -10
- package/lib/esm/src/components/reactable/helpers/ReactableTableFilterRow.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/helpers/ReactableTableFilterRow.js +0 -85
- package/lib/esm/src/components/reactable/helpers/ReactableTableHeader.d.ts +0 -17
- package/lib/esm/src/components/reactable/helpers/ReactableTableHeader.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/helpers/ReactableTableHeader.js +0 -54
- package/lib/esm/src/components/reactable/helpers/ReactableTableRow.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/helpers/ReactableTableRow.js +0 -57
- package/lib/esm/src/components/reactable/helpers/ReactableTextFilter.d.ts +0 -9
- package/lib/esm/src/components/reactable/helpers/ReactableTextFilter.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/helpers/ReactableTextFilter.js +0 -18
- package/lib/esm/src/components/reactable/helpers/helper.d.ts +0 -8
- package/lib/esm/src/components/reactable/helpers/helper.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/helpers/helper.js +0 -93
- package/lib/esm/src/components/reactable/types.d.ts.map +0 -1
- package/lib/esm/src/components/reactable/types.js +0 -1
- package/lib/esm/src/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.d.ts.map +0 -1
- package/lib/esm/src/components/reactableWithClientSidePagination/ReactableWithClientSidePagination.js +0 -155
- package/lib/esm/src/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts +0 -2
- package/lib/esm/src/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.d.ts.map +0 -1
- package/lib/esm/src/components/reactableWithClientSidePagination/__tests__/ReactableWithClientSidePagination.spec.js +0 -130
- package/lib/esm/src/components/slider/Slider.d.ts +0 -30
- package/lib/esm/src/components/slider/Slider.d.ts.map +0 -1
- package/lib/esm/src/components/slider/Slider.js +0 -35
- package/lib/esm/src/components/slider/useLimitStyling.d.ts +0 -3
- package/lib/esm/src/components/slider/useLimitStyling.d.ts.map +0 -1
- package/lib/esm/src/components/slider/useLimitStyling.js +0 -49
- package/lib/esm/src/components/svg/SvgImage.d.ts +0 -12
- package/lib/esm/src/components/svg/SvgImage.d.ts.map +0 -1
- package/lib/esm/src/components/svg/SvgImage.js +0 -37
- package/lib/esm/src/components/svg/storybookHelper.d.ts +0 -7
- package/lib/esm/src/components/svg/storybookHelper.d.ts.map +0 -1
- package/lib/esm/src/components/svg/storybookHelper.js +0 -53
- package/lib/esm/src/components/svg/types.d.ts.map +0 -1
- package/lib/esm/src/components/svg/types.js +0 -1
- package/lib/esm/src/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts +0 -2
- package/lib/esm/src/components/svg/utils/__tests__/getMutableNodeList.spec.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/__tests__/getMutableNodeList.spec.js +0 -24
- package/lib/esm/src/components/svg/utils/createHyperlinkModification.d.ts +0 -4
- package/lib/esm/src/components/svg/utils/createHyperlinkModification.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/createHyperlinkModification.js +0 -35
- package/lib/esm/src/components/svg/utils/createPositionModification.d.ts +0 -3
- package/lib/esm/src/components/svg/utils/createPositionModification.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/createPositionModification.js +0 -19
- package/lib/esm/src/components/svg/utils/findConflicts.d.ts +0 -2
- package/lib/esm/src/components/svg/utils/findConflicts.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/findConflicts.js +0 -23
- package/lib/esm/src/components/svg/utils/getMutableNodeList.d.ts +0 -3
- package/lib/esm/src/components/svg/utils/getMutableNodeList.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/getMutableNodeList.js +0 -12
- package/lib/esm/src/components/svg/utils/getSvgElement.d.ts +0 -3
- package/lib/esm/src/components/svg/utils/getSvgElement.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/getSvgElement.js +0 -10
- package/lib/esm/src/components/svg/utils/renderSvg.d.ts +0 -3
- package/lib/esm/src/components/svg/utils/renderSvg.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/renderSvg.js +0 -88
- package/lib/esm/src/components/svg/utils/transformPositionModifications.d.ts +0 -4
- package/lib/esm/src/components/svg/utils/transformPositionModifications.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/transformPositionModifications.js +0 -42
- package/lib/esm/src/components/svg/utils/validateSvg.d.ts +0 -3
- package/lib/esm/src/components/svg/utils/validateSvg.d.ts.map +0 -1
- package/lib/esm/src/components/svg/utils/validateSvg.js +0 -5
- package/lib/esm/src/components/tabs/RouteTabs.d.ts +0 -24
- package/lib/esm/src/components/tabs/RouteTabs.d.ts.map +0 -1
- package/lib/esm/src/components/tabs/RouteTabs.js +0 -67
- package/lib/esm/src/components/treeview/TreeView.d.ts.map +0 -1
- package/lib/esm/src/components/treeview/TreeView.js +0 -104
- package/lib/esm/src/components/treeview/components/Node.d.ts +0 -37
- package/lib/esm/src/components/treeview/components/Node.d.ts.map +0 -1
- package/lib/esm/src/components/treeview/components/Node.js +0 -111
- package/lib/esm/src/components/treeview/components/NodeInfo.d.ts.map +0 -1
- package/lib/esm/src/components/treeview/components/NodeInfo.js +0 -64
- package/lib/esm/src/components/treeview/constants.d.ts +0 -6
- package/lib/esm/src/components/treeview/constants.d.ts.map +0 -1
- package/lib/esm/src/components/treeview/constants.js +0 -6
- package/lib/esm/src/components/treeview/treeutils.d.ts +0 -59
- package/lib/esm/src/components/treeview/treeutils.d.ts.map +0 -1
- package/lib/esm/src/components/treeview/treeutils.js +0 -158
- package/lib/esm/src/components/treeview/types.d.ts.map +0 -1
- package/lib/esm/src/components/treeview/types.js +0 -1
- package/lib/esm/src/components/upload/FileUpload.d.ts +0 -81
- package/lib/esm/src/components/upload/FileUpload.d.ts.map +0 -1
- package/lib/esm/src/components/upload/FileUpload.js +0 -103
- package/lib/esm/src/components/upload/ImageUpload.d.ts +0 -22
- package/lib/esm/src/components/upload/ImageUpload.d.ts.map +0 -1
- package/lib/esm/src/components/upload/ImageUpload.js +0 -52
- package/lib/esm/src/hoc/outsideClick.d.ts +0 -4
- package/lib/esm/src/hoc/outsideClick.d.ts.map +0 -1
- package/lib/esm/src/hoc/outsideClick.js +0 -73
- package/lib/esm/src/i18n/index.d.ts +0 -16
- package/lib/esm/src/i18n/index.d.ts.map +0 -1
- package/lib/esm/src/i18n/index.js +0 -6
- package/lib/esm/src/index.d.ts.map +0 -1
- package/lib/esm/src/index.js +0 -39
- package/lib/esm/src/modules/messageBox/messageBox.d.ts.map +0 -1
- package/lib/esm/src/modules/messageBox/messageBox.js +0 -56
- package/lib/esm/src/modules/utils/nanoidGen.d.ts +0 -2
- package/lib/esm/src/modules/utils/nanoidGen.d.ts.map +0 -1
- package/lib/esm/src/modules/utils/nanoidGen.js +0 -3
- package/lib/esm/src/modules/utils/uuidGen.d.ts +0 -2
- package/lib/esm/src/modules/utils/uuidGen.d.ts.map +0 -1
- package/lib/esm/src/modules/utils/uuidGen.js +0 -13
- package/lib/esm/src/types/i18n.d.ts +0 -5
- package/lib/esm/src/types/i18n.d.ts.map +0 -1
- package/lib/esm/src/types/i18n.js +0 -1
- package/lib/esm/src/types/pagination.d.ts.map +0 -1
- package/lib/esm/src/types/pagination.js +0 -1
- package/lib/esm/src/utils/dayjsLocales.d.ts +0 -10
- package/lib/esm/src/utils/dayjsLocales.d.ts.map +0 -1
- package/lib/esm/src/utils/dayjsLocales.js +0 -12
- package/lib/esm/src/utils/resolvePath.d.ts +0 -2
- package/lib/esm/src/utils/resolvePath.d.ts.map +0 -1
- package/lib/esm/src/utils/resolvePath.js +0 -4
- package/lib/esm/types/i18n.d.ts +0 -5
- package/lib/esm/types/i18n.d.ts.map +0 -1
- package/lib/esm/types/i18n.js +0 -1
- package/lib/esm/types/pagination.d.ts +0 -19
- package/lib/esm/types/pagination.d.ts.map +0 -1
- package/lib/esm/types/pagination.js +0 -1
- package/lib/esm/utils/dayjsLocales.d.ts +0 -10
- package/lib/esm/utils/dayjsLocales.d.ts.map +0 -1
- package/lib/esm/utils/dayjsLocales.js +0 -12
- package/lib/esm/utils/resolvePath.d.ts +0 -2
- package/lib/esm/utils/resolvePath.d.ts.map +0 -1
- package/lib/esm/utils/resolvePath.js +0 -4
- package/lib/esm/vite.config.d.mts +0 -3
- package/lib/esm/vite.config.d.mts.map +0 -1
- package/lib/esm/vite.config.mjs +0 -9
- package/lib/esm/vitest.setup.d.ts +0 -3
- package/lib/esm/vitest.setup.d.ts.map +0 -1
- package/lib/esm/vitest.setup.js +0 -10
- /package/{lib/cjs → dist/types}/components/periodpicker/periods.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/periodpicker/periods.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/periodpicker/usePeriodName.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/periodpicker/usePeriodName.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/svg/storybookHelper.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/storybookHelper.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/createHyperlinkModification.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/createHyperlinkModification.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/createPositionModification.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/createPositionModification.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/findConflicts.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/findConflicts.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/getMutableNodeList.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/getSvgElement.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/renderSvg.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/renderSvg.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/transformPositionModifications.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/svg/utils/validateSvg.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/treeview/constants.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/treeview/constants.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/components/treeview/treeutils.d.ts +0 -0
- /package/{lib/cjs → dist/types}/components/treeview/treeutils.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/modules/utils/nanoidGen.d.ts +0 -0
- /package/{lib/cjs → dist/types}/modules/utils/nanoidGen.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/modules/utils/uuidGen.d.ts +0 -0
- /package/{lib/cjs → dist/types}/utils/dayjsLocales.d.ts +0 -0
- /package/{lib/cjs → dist/types}/utils/dayjsLocales.d.ts.map +0 -0
- /package/{lib/cjs → dist/types}/utils/resolvePath.d.ts +0 -0
- /package/{lib/cjs → dist/types}/utils/resolvePath.d.ts.map +0 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,3027 @@
|
|
|
1
|
+
import { jsx as a, jsxs as m, Fragment as Ve } from "react/jsx-runtime";
|
|
2
|
+
import { toast as Q, ToastContainer as ct, Slide as dt } from "react-toastify";
|
|
3
|
+
import { customAlphabet as ht } from "nanoid";
|
|
4
|
+
import * as $ from "react";
|
|
5
|
+
import { useState as N, useEffect as R, forwardRef as Fe, useMemo as ut, useCallback as q, useRef as D, createElement as Be, Component as V, createRef as je } from "react";
|
|
6
|
+
import P from "classnames";
|
|
7
|
+
import { Popup as te, Button as F, Icon as pe, Modal as He, Checkbox as Se, SpinnerContainer as pt } from "@deviceinsight/ng-ui-basic-components";
|
|
8
|
+
import { convert as Ge, parse as ft } from "pure-color";
|
|
9
|
+
import { HexColorPicker as gt, RgbaStringColorPicker as mt, RgbStringColorPicker as vt } from "react-colorful";
|
|
10
|
+
import Ye from "dayjs/plugin/timezone";
|
|
11
|
+
import Ze from "dayjs/plugin/utc";
|
|
12
|
+
import ie, { registerLocale as yt } from "react-datepicker";
|
|
13
|
+
import { debounce as Ue, isEqual as z, orderBy as bt, uniqWith as St, difference as wt } from "lodash";
|
|
14
|
+
import b from "dayjs";
|
|
15
|
+
import Ct from "dayjs/plugin/localeData";
|
|
16
|
+
import At from "dayjs/plugin/localizedFormat";
|
|
17
|
+
import Nt from "dayjs/plugin/customParseFormat";
|
|
18
|
+
import J from "i18next";
|
|
19
|
+
import * as se from "date-fns/locale";
|
|
20
|
+
import "dayjs/locale/en";
|
|
21
|
+
import "dayjs/locale/en-gb";
|
|
22
|
+
import "dayjs/locale/en-ca";
|
|
23
|
+
import "dayjs/locale/de";
|
|
24
|
+
import "dayjs/locale/de-at";
|
|
25
|
+
import "dayjs/locale/de-ch";
|
|
26
|
+
import "dayjs/locale/it";
|
|
27
|
+
import "dayjs/locale/ja";
|
|
28
|
+
import { useHistory as fe, useLocation as ge, Switch as xt, Route as we, Redirect as It, Link as We } from "react-router-dom";
|
|
29
|
+
import { DndContext as Rt, closestCenter as kt } from "@dnd-kit/core";
|
|
30
|
+
import { SortableContext as Mt, horizontalListSortingStrategy as ze, useSortable as Tt } from "@dnd-kit/sortable";
|
|
31
|
+
import { restrictToHorizontalAxis as Ot } from "@dnd-kit/modifiers";
|
|
32
|
+
import { readAccountObject as Et, writeAccountObject as Dt } from "@deviceinsight/ng-ui-api-client";
|
|
33
|
+
import Lt from "react-select";
|
|
34
|
+
import Pt from "react-dropzone";
|
|
35
|
+
import { AsyncPaginate as Vt } from "react-select-async-paginate";
|
|
36
|
+
import { SVG as Qe } from "@svgdotjs/svg.js";
|
|
37
|
+
import Ft from "highcharts";
|
|
38
|
+
import Bt from "highcharts-react-official";
|
|
39
|
+
import $e from "@rc-component/slider";
|
|
40
|
+
import jt from "@rc-component/tooltip";
|
|
41
|
+
let G = {}, Je = {
|
|
42
|
+
autoClose: !1
|
|
43
|
+
};
|
|
44
|
+
const $i = (t) => {
|
|
45
|
+
Je = t;
|
|
46
|
+
}, ne = (t, e) => {
|
|
47
|
+
t && (G[t] ? G[t] = [...G[t], e] : G[t] = [e]);
|
|
48
|
+
}, Ji = (t, e, n) => {
|
|
49
|
+
const i = Q.success(t, e);
|
|
50
|
+
n && ne(n, i);
|
|
51
|
+
}, Ki = (t, e, n) => {
|
|
52
|
+
const i = Q.info(t, e);
|
|
53
|
+
n && ne(n, i);
|
|
54
|
+
}, Xi = (t, e, n) => {
|
|
55
|
+
const i = Q.warn(t, e);
|
|
56
|
+
n && ne(n, i);
|
|
57
|
+
}, qi = (t, e, n) => {
|
|
58
|
+
const i = Q.error(t, { ...Je, ...e });
|
|
59
|
+
n && ne(n, i);
|
|
60
|
+
}, _i = (t) => {
|
|
61
|
+
Q.dismiss(t);
|
|
62
|
+
}, es = (t) => {
|
|
63
|
+
G[t] && (G[t].forEach((e) => Q.dismiss(e)), delete G[t]);
|
|
64
|
+
}, ts = () => {
|
|
65
|
+
G = {}, Q.dismiss();
|
|
66
|
+
}, ns = () => /* @__PURE__ */ a(ct, { position: "top-center", theme: "colored", autoClose: 3e4, hideProgressBar: !0, transition: dt }), Ht = (t = 32) => {
|
|
67
|
+
let e = "";
|
|
68
|
+
for (let n = 0; n < t; n++) {
|
|
69
|
+
const i = Math.random() * 16 | 0;
|
|
70
|
+
(n === 8 || n === 12 || n === 16 || n === 20) && (e += "-"), e += (n === 12 ? 4 : n === 16 ? i & 3 | 8 : i).toString(16);
|
|
71
|
+
}
|
|
72
|
+
return e;
|
|
73
|
+
}, Gt = "0123456789abcdefghijklmnopqrstuvwxyz", is = ht(Gt, 10);
|
|
74
|
+
let A, B;
|
|
75
|
+
function ss(t, e) {
|
|
76
|
+
A = t, B = e;
|
|
77
|
+
}
|
|
78
|
+
function Yt(t) {
|
|
79
|
+
return t.filter((e, n, i) => i.indexOf(e) === n);
|
|
80
|
+
}
|
|
81
|
+
function Zt(t, e) {
|
|
82
|
+
return t.filter((n) => !e.includes(n));
|
|
83
|
+
}
|
|
84
|
+
function Ut(t, e) {
|
|
85
|
+
return Yt([...t, ...e]);
|
|
86
|
+
}
|
|
87
|
+
function Wt(t, e) {
|
|
88
|
+
return t.filter((n) => e.includes(n));
|
|
89
|
+
}
|
|
90
|
+
function le(t) {
|
|
91
|
+
return t.children ? t.children.length + t.children.reduce((n, i) => n + le(i), 0) : 0;
|
|
92
|
+
}
|
|
93
|
+
function _(t) {
|
|
94
|
+
return t.children ? t.children.reduce((e, n) => [...e, ..._(n)], []) : [t];
|
|
95
|
+
}
|
|
96
|
+
function zt(t) {
|
|
97
|
+
return _(t).map((e) => e.id);
|
|
98
|
+
}
|
|
99
|
+
function Qt({
|
|
100
|
+
childNodeKey: t,
|
|
101
|
+
idKey: e,
|
|
102
|
+
displayNameKey: n,
|
|
103
|
+
typeKey: i,
|
|
104
|
+
lazyLoadableKey: s,
|
|
105
|
+
nodeMetaData: r,
|
|
106
|
+
leafMetaData: o
|
|
107
|
+
}) {
|
|
108
|
+
const { typeValue: l, image: c, resolver: h } = o, { typeValue: d, expandedImage: u, closedImage: f, resolver: p } = r;
|
|
109
|
+
return function g(v, w = "") {
|
|
110
|
+
return v.map((y) => {
|
|
111
|
+
const C = y[e], x = y[n], k = y[t], I = y[s], M = p ? p(y) : y[i] === d, E = h ? h(y) : y[i] === l, S = `${w}/${x}`, T = y;
|
|
112
|
+
if (M)
|
|
113
|
+
return {
|
|
114
|
+
id: C,
|
|
115
|
+
name: x,
|
|
116
|
+
children: g(k || [], S),
|
|
117
|
+
lazyLoadable: I,
|
|
118
|
+
expandedImage: u,
|
|
119
|
+
closedImage: f,
|
|
120
|
+
path: S,
|
|
121
|
+
originalNode: T
|
|
122
|
+
};
|
|
123
|
+
if (E)
|
|
124
|
+
return {
|
|
125
|
+
id: C,
|
|
126
|
+
name: x,
|
|
127
|
+
image: c,
|
|
128
|
+
path: S,
|
|
129
|
+
originalNode: T
|
|
130
|
+
};
|
|
131
|
+
throw new Error("unknown node or leaf type provided");
|
|
132
|
+
});
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
function $t(t, e) {
|
|
136
|
+
let n;
|
|
137
|
+
return e.children !== void 0 && (t.children !== void 0 ? n = [...t.children, ...e.children] : n = [...e.children]), { ...t, ...e, children: n || void 0 };
|
|
138
|
+
}
|
|
139
|
+
function Ke(t, e, n) {
|
|
140
|
+
return t.children === void 0 ? t : t.id === e ? $t(t, n) : { ...t, children: t.children.map((i) => Ke(i, e, n)) };
|
|
141
|
+
}
|
|
142
|
+
function Xe(t, e, n, i, s) {
|
|
143
|
+
if (t[n] === e)
|
|
144
|
+
return [t[s]];
|
|
145
|
+
if (t[i])
|
|
146
|
+
for (let r = 0; r < t[i].length; r++) {
|
|
147
|
+
const o = Xe(
|
|
148
|
+
t[i][r],
|
|
149
|
+
e,
|
|
150
|
+
n,
|
|
151
|
+
i,
|
|
152
|
+
s
|
|
153
|
+
);
|
|
154
|
+
if (o)
|
|
155
|
+
return o.unshift(t[s]), o;
|
|
156
|
+
}
|
|
157
|
+
return null;
|
|
158
|
+
}
|
|
159
|
+
function rs(t, e, n, i, s) {
|
|
160
|
+
const r = Xe(t, e, n, i, s);
|
|
161
|
+
return r ? r.join(".") : null;
|
|
162
|
+
}
|
|
163
|
+
function qe({
|
|
164
|
+
isOpen: t,
|
|
165
|
+
onOpenChange: e,
|
|
166
|
+
className: n,
|
|
167
|
+
style: i,
|
|
168
|
+
value: s,
|
|
169
|
+
placement: r,
|
|
170
|
+
children: o
|
|
171
|
+
}) {
|
|
172
|
+
return /* @__PURE__ */ a(
|
|
173
|
+
te,
|
|
174
|
+
{
|
|
175
|
+
handler: /* @__PURE__ */ a("div", { className: `di color-picker-popper ${n || ""}`, style: i, children: /* @__PURE__ */ a("div", { className: "trigger", style: { ...i, backgroundColor: s } }) }),
|
|
176
|
+
open: t,
|
|
177
|
+
onOpenChange: e,
|
|
178
|
+
placement: r,
|
|
179
|
+
children: /* @__PURE__ */ a("div", { className: "color-picker-box", children: /* @__PURE__ */ a("div", { className: "content", children: o }) })
|
|
180
|
+
}
|
|
181
|
+
);
|
|
182
|
+
}
|
|
183
|
+
function as({
|
|
184
|
+
value: t,
|
|
185
|
+
isOpen: e,
|
|
186
|
+
onOpenStateChange: n,
|
|
187
|
+
direction: i,
|
|
188
|
+
colors: s,
|
|
189
|
+
onPick: r,
|
|
190
|
+
pickerStyle: o,
|
|
191
|
+
pickerClassName: l,
|
|
192
|
+
inline: c = !0,
|
|
193
|
+
className: h,
|
|
194
|
+
style: d
|
|
195
|
+
}) {
|
|
196
|
+
const [u, f] = N(!1), p = /* @__PURE__ */ a("div", { className: P("di color-picker grid-color-picker clearfix", l), style: o, children: s.map((g) => /* @__PURE__ */ a(
|
|
197
|
+
"div",
|
|
198
|
+
{
|
|
199
|
+
onClick: () => {
|
|
200
|
+
r(g);
|
|
201
|
+
},
|
|
202
|
+
className: `color ${g === t ? "selected" : ""}`,
|
|
203
|
+
style: {
|
|
204
|
+
background: g
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
g
|
|
208
|
+
)) });
|
|
209
|
+
return c ? p : /* @__PURE__ */ a(
|
|
210
|
+
qe,
|
|
211
|
+
{
|
|
212
|
+
className: h,
|
|
213
|
+
style: d,
|
|
214
|
+
value: t,
|
|
215
|
+
isOpen: e ?? u,
|
|
216
|
+
onOpenChange: n ?? f,
|
|
217
|
+
placement: i,
|
|
218
|
+
children: p
|
|
219
|
+
}
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
const Ce = (t, e, n) => t.length ? e.test(t) : !n, be = class be extends $.Component {
|
|
223
|
+
constructor() {
|
|
224
|
+
super(...arguments), this.handleChange = (e) => {
|
|
225
|
+
const { value: n } = e.target, { pattern: i, required: s, onChange: r } = this.props, o = Ce(n, i, s);
|
|
226
|
+
r(n, o);
|
|
227
|
+
};
|
|
228
|
+
}
|
|
229
|
+
render() {
|
|
230
|
+
const { style: e, invalidStyle: n, value: i, ...s } = this.props, { pattern: r, required: o, ...l } = s;
|
|
231
|
+
return /* @__PURE__ */ a(
|
|
232
|
+
"input",
|
|
233
|
+
{
|
|
234
|
+
...l,
|
|
235
|
+
value: i,
|
|
236
|
+
onChange: this.handleChange,
|
|
237
|
+
style: Ce(i, r, o) ? e : { ...e, ...n },
|
|
238
|
+
type: "text"
|
|
239
|
+
}
|
|
240
|
+
);
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
be.defaultProps = {
|
|
244
|
+
required: !1
|
|
245
|
+
};
|
|
246
|
+
let ee = be;
|
|
247
|
+
function Ae({ value: t, pattern: e, onChange: n, placeholder: i, style: s }) {
|
|
248
|
+
const [r, o] = N(t);
|
|
249
|
+
function l(c, h) {
|
|
250
|
+
o(c), h && n(c);
|
|
251
|
+
}
|
|
252
|
+
return R(() => {
|
|
253
|
+
o(t);
|
|
254
|
+
}, [t]), /* @__PURE__ */ a(
|
|
255
|
+
ee,
|
|
256
|
+
{
|
|
257
|
+
value: r,
|
|
258
|
+
onChange: l,
|
|
259
|
+
pattern: e,
|
|
260
|
+
invalidStyle: {
|
|
261
|
+
borderColor: "red"
|
|
262
|
+
},
|
|
263
|
+
placeholder: i,
|
|
264
|
+
required: !0,
|
|
265
|
+
style: s
|
|
266
|
+
}
|
|
267
|
+
);
|
|
268
|
+
}
|
|
269
|
+
const Jt = /^#([A-Fa-f0-9]{6})$/, Kt = /^rgb\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/, _e = (t) => ft(t).splice(0, 3), Xt = (t) => t && t.length > 6 ? Ge.rgb.hex(_e(t)) : "", qt = (t) => t ? Ge.rgb.string(_e(t)) : "";
|
|
270
|
+
function os({
|
|
271
|
+
onOpenStateChange: t,
|
|
272
|
+
onPick: e,
|
|
273
|
+
allowTextInput: n,
|
|
274
|
+
className: i,
|
|
275
|
+
direction: s,
|
|
276
|
+
inline: r = !0,
|
|
277
|
+
isOpen: o,
|
|
278
|
+
opacitySlider: l,
|
|
279
|
+
pickerClassName: c,
|
|
280
|
+
pickerStyle: h,
|
|
281
|
+
style: d,
|
|
282
|
+
value: u
|
|
283
|
+
}) {
|
|
284
|
+
const [f, p] = N(!1), g = Xt(u), v = qt(u), w = u === g ? gt : l && !n ? mt : vt, y = /* @__PURE__ */ m(
|
|
285
|
+
"div",
|
|
286
|
+
{
|
|
287
|
+
className: P(
|
|
288
|
+
"di gradient-color-picker",
|
|
289
|
+
{
|
|
290
|
+
"with-textfield": n
|
|
291
|
+
},
|
|
292
|
+
c
|
|
293
|
+
),
|
|
294
|
+
style: h,
|
|
295
|
+
children: [
|
|
296
|
+
/* @__PURE__ */ a(w, { color: u, onChange: e }),
|
|
297
|
+
n && /* @__PURE__ */ m("div", { className: "inputs", children: [
|
|
298
|
+
/* @__PURE__ */ a(
|
|
299
|
+
Ae,
|
|
300
|
+
{
|
|
301
|
+
value: g,
|
|
302
|
+
onChange: e,
|
|
303
|
+
pattern: Jt,
|
|
304
|
+
placeholder: "#FF00FF",
|
|
305
|
+
style: { width: 60 }
|
|
306
|
+
}
|
|
307
|
+
),
|
|
308
|
+
/* @__PURE__ */ a(
|
|
309
|
+
Ae,
|
|
310
|
+
{
|
|
311
|
+
value: v,
|
|
312
|
+
onChange: e,
|
|
313
|
+
pattern: Kt,
|
|
314
|
+
placeholder: "rgb(255,0,255)",
|
|
315
|
+
style: { width: 115 }
|
|
316
|
+
}
|
|
317
|
+
)
|
|
318
|
+
] })
|
|
319
|
+
]
|
|
320
|
+
}
|
|
321
|
+
);
|
|
322
|
+
return r ? y : /* @__PURE__ */ a(
|
|
323
|
+
qe,
|
|
324
|
+
{
|
|
325
|
+
className: i,
|
|
326
|
+
style: d,
|
|
327
|
+
value: u,
|
|
328
|
+
isOpen: o ?? f,
|
|
329
|
+
onOpenChange: t ?? p,
|
|
330
|
+
placement: s,
|
|
331
|
+
children: y
|
|
332
|
+
}
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
const _t = ["en", "en-gb", "en-ca", "de", "de-at", "de-ch", "it", "ja"];
|
|
336
|
+
function Ne(t) {
|
|
337
|
+
return _t.includes(t);
|
|
338
|
+
}
|
|
339
|
+
b.extend(Ze);
|
|
340
|
+
b.extend(Ye);
|
|
341
|
+
b.extend(Ct);
|
|
342
|
+
b.extend(At);
|
|
343
|
+
b.extend(Nt);
|
|
344
|
+
function en(t) {
|
|
345
|
+
const [e, n] = t.split("-");
|
|
346
|
+
let i;
|
|
347
|
+
e && n ? i = se[`${e}${n}`] ?? se[e] : e ? i = se[e] : i = null, i && yt(t, i);
|
|
348
|
+
}
|
|
349
|
+
async function tn(t) {
|
|
350
|
+
let e = null;
|
|
351
|
+
const [n] = t.split("-");
|
|
352
|
+
Ne(t.toLowerCase()) ? e = t.toLowerCase() : Ne(n.toLowerCase()) && (e = n.toLowerCase()), e && b.locale(e);
|
|
353
|
+
}
|
|
354
|
+
function xe(t, e) {
|
|
355
|
+
return t == null || t === "" ? !0 : typeof t == "number" ? !isNaN(t) : typeof t == "string" ? b(t, e, !0).isValid() : !1;
|
|
356
|
+
}
|
|
357
|
+
function re(t, e, n) {
|
|
358
|
+
return typeof t == "number" && !Number.isNaN(t) ? new Date(t) : typeof t == "string" && b(t, e, !0).isValid() ? b.tz(t, e, n).toDate() : null;
|
|
359
|
+
}
|
|
360
|
+
function nn(t, e, n) {
|
|
361
|
+
return typeof t == "number" ? b.tz(t, n) : typeof t == "string" && b(t, e, !0).isValid() ? b.tz(t, e, n) : null;
|
|
362
|
+
}
|
|
363
|
+
const et = Fe(
|
|
364
|
+
({ value: t, clearable: e, inline: n, readOnly: i, wrapperClassName: s, onChange: r, locale: o, timezone: l, ...c }, h) => {
|
|
365
|
+
const [d, u] = N(b.localeData().longDateFormat("L")), { t: f } = B(), [p, g] = N(!1), [v, w] = N(!1), [y, C] = N(""), x = ut(() => Ue(w, 30), []);
|
|
366
|
+
R(() => {
|
|
367
|
+
const S = o ?? J.language;
|
|
368
|
+
S && (en(S), tn(S).then(() => u(b.localeData().longDateFormat("L"))));
|
|
369
|
+
}, [o]);
|
|
370
|
+
const k = q(
|
|
371
|
+
(S) => S == null || S == "" ? "" : xe(S, d) ? typeof S == "number" ? b.tz(S, l).format(d) : S : f("dateInput.invalidDate", {
|
|
372
|
+
defaultValue: "invalid date"
|
|
373
|
+
}),
|
|
374
|
+
[d, f, l]
|
|
375
|
+
);
|
|
376
|
+
R(() => {
|
|
377
|
+
t == null ? C("") : C(k(t));
|
|
378
|
+
}, [k, t]), R(() => {
|
|
379
|
+
g(xe(t, d));
|
|
380
|
+
}, [d, t]), R(() => {
|
|
381
|
+
b.locale(o ?? J.language), u(b.localeData().longDateFormat("L"));
|
|
382
|
+
}, [o]);
|
|
383
|
+
const I = (S) => {
|
|
384
|
+
if (C(S), S) {
|
|
385
|
+
const T = b(S, d, !0).isValid();
|
|
386
|
+
if (T) {
|
|
387
|
+
const Y = nn(t, d, l), Z = b.tz(S, d, l ?? b.tz.guess());
|
|
388
|
+
Y && (Z.set("hour", Y.hour()), Z.set("minute", Y.minute()), Z.set("second", Y.second()), Z.set("millisecond", Y.millisecond())), r(Z.valueOf(), !0);
|
|
389
|
+
}
|
|
390
|
+
g(T);
|
|
391
|
+
} else
|
|
392
|
+
r(null, !0), g(!0);
|
|
393
|
+
}, M = (S) => {
|
|
394
|
+
r(S ? S.valueOf() : null), C(k(S ? S.getTime() : null)), w(!1);
|
|
395
|
+
}, E = () => I("");
|
|
396
|
+
return n ? /* @__PURE__ */ a(
|
|
397
|
+
ie,
|
|
398
|
+
{
|
|
399
|
+
...c,
|
|
400
|
+
onChange: M,
|
|
401
|
+
selected: re(t, d, l),
|
|
402
|
+
locale: o ?? J.language,
|
|
403
|
+
isClearable: e,
|
|
404
|
+
placeholderText: d,
|
|
405
|
+
className: P("date", { invalid: !p }),
|
|
406
|
+
inline: !0
|
|
407
|
+
}
|
|
408
|
+
) : i ? /* @__PURE__ */ a(
|
|
409
|
+
ie,
|
|
410
|
+
{
|
|
411
|
+
...c,
|
|
412
|
+
onChange: () => {
|
|
413
|
+
},
|
|
414
|
+
selected: re(t, d, l),
|
|
415
|
+
locale: o ?? J.language,
|
|
416
|
+
customInput: /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a("input", { type: "text", value: k(t), readOnly: !0 }) }),
|
|
417
|
+
placeholderText: d,
|
|
418
|
+
readOnly: !0
|
|
419
|
+
}
|
|
420
|
+
) : /* @__PURE__ */ a(
|
|
421
|
+
te,
|
|
422
|
+
{
|
|
423
|
+
handler: /* @__PURE__ */ m("span", { className: "di date-input-wrapper", children: [
|
|
424
|
+
/* @__PURE__ */ a(
|
|
425
|
+
"input",
|
|
426
|
+
{
|
|
427
|
+
ref: h,
|
|
428
|
+
"data-testid": "date-input",
|
|
429
|
+
className: P("date", { invalid: !p }),
|
|
430
|
+
onChange: (S) => I(S.target.value),
|
|
431
|
+
value: y,
|
|
432
|
+
placeholder: d,
|
|
433
|
+
onBlur: () => {
|
|
434
|
+
I(k(t)), x(!1);
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
),
|
|
438
|
+
e && /* @__PURE__ */ a(F, { naked: !0, small: !0, onClick: E, children: /* @__PURE__ */ a(pe, { del: !0 }) })
|
|
439
|
+
] }),
|
|
440
|
+
mode: ["click", "focus"],
|
|
441
|
+
className: "date-input",
|
|
442
|
+
handlerWrapperClassName: s,
|
|
443
|
+
open: v,
|
|
444
|
+
onOpenChange: w,
|
|
445
|
+
children: /* @__PURE__ */ a(
|
|
446
|
+
"div",
|
|
447
|
+
{
|
|
448
|
+
className: "di date-picker-popup-wrapper",
|
|
449
|
+
tabIndex: 0,
|
|
450
|
+
onFocus: () => {
|
|
451
|
+
x(!0);
|
|
452
|
+
},
|
|
453
|
+
children: /* @__PURE__ */ a(
|
|
454
|
+
ie,
|
|
455
|
+
{
|
|
456
|
+
...c,
|
|
457
|
+
selected: re(t, d, l),
|
|
458
|
+
onChange: M,
|
|
459
|
+
locale: o ?? J.language,
|
|
460
|
+
isClearable: e,
|
|
461
|
+
placeholderText: d,
|
|
462
|
+
className: P("date", { invalid: !p }),
|
|
463
|
+
inline: !0
|
|
464
|
+
}
|
|
465
|
+
)
|
|
466
|
+
}
|
|
467
|
+
)
|
|
468
|
+
}
|
|
469
|
+
);
|
|
470
|
+
}
|
|
471
|
+
);
|
|
472
|
+
class ls extends $.Component {
|
|
473
|
+
constructor() {
|
|
474
|
+
super(...arguments), this.state = {
|
|
475
|
+
editMode: !1
|
|
476
|
+
}, this.handleEdit = () => this.setState({
|
|
477
|
+
editMode: !0
|
|
478
|
+
}), this.handleChangeValue = (e) => this.props.onChange(e.target.value);
|
|
479
|
+
}
|
|
480
|
+
render() {
|
|
481
|
+
const { editMode: e } = this.state, { value: n } = this.props;
|
|
482
|
+
return e ? /* @__PURE__ */ a(
|
|
483
|
+
"input",
|
|
484
|
+
{
|
|
485
|
+
value: n,
|
|
486
|
+
onChange: this.handleChangeValue,
|
|
487
|
+
autoCorrect: "off",
|
|
488
|
+
spellCheck: "false",
|
|
489
|
+
autoComplete: "off"
|
|
490
|
+
}
|
|
491
|
+
) : /* @__PURE__ */ m("span", { children: [
|
|
492
|
+
/* @__PURE__ */ a(
|
|
493
|
+
"span",
|
|
494
|
+
{
|
|
495
|
+
style: {
|
|
496
|
+
marginRight: 10
|
|
497
|
+
},
|
|
498
|
+
children: n
|
|
499
|
+
}
|
|
500
|
+
),
|
|
501
|
+
/* @__PURE__ */ a(F, { small: !0, onClick: this.handleEdit, children: /* @__PURE__ */ a(pe, { edit: !0 }) })
|
|
502
|
+
] });
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
function sn({
|
|
506
|
+
title: t,
|
|
507
|
+
message: e,
|
|
508
|
+
onAccept: n,
|
|
509
|
+
onCancel: i,
|
|
510
|
+
inputPlaceholder: s,
|
|
511
|
+
cancelButtonLabel: r,
|
|
512
|
+
acceptButtonLabel: o
|
|
513
|
+
}) {
|
|
514
|
+
const { t: l } = B(), c = D(null), [h, d] = N("");
|
|
515
|
+
return R(() => {
|
|
516
|
+
c.current?.focus();
|
|
517
|
+
}), /* @__PURE__ */ a(
|
|
518
|
+
He,
|
|
519
|
+
{
|
|
520
|
+
header: l(t.id, {
|
|
521
|
+
defaultValue: t.defaultValue
|
|
522
|
+
}),
|
|
523
|
+
content: /* @__PURE__ */ a("div", { className: "di form", children: /* @__PURE__ */ m("div", { className: "field", children: [
|
|
524
|
+
/* @__PURE__ */ a("label", { children: /* @__PURE__ */ a(A, { i18nKey: e.id, children: e.defaultValue }) }),
|
|
525
|
+
/* @__PURE__ */ a(
|
|
526
|
+
"input",
|
|
527
|
+
{
|
|
528
|
+
type: "text",
|
|
529
|
+
style: {
|
|
530
|
+
width: 250
|
|
531
|
+
},
|
|
532
|
+
ref: c,
|
|
533
|
+
placeholder: s ? l(s.id, {
|
|
534
|
+
defaultValue: s.defaultValue
|
|
535
|
+
}) : void 0,
|
|
536
|
+
onChange: (u) => d(u.target.value)
|
|
537
|
+
}
|
|
538
|
+
)
|
|
539
|
+
] }) }),
|
|
540
|
+
footer: /* @__PURE__ */ m("div", { children: [
|
|
541
|
+
/* @__PURE__ */ a(
|
|
542
|
+
F,
|
|
543
|
+
{
|
|
544
|
+
primary: !0,
|
|
545
|
+
onClick: () => {
|
|
546
|
+
n(h);
|
|
547
|
+
},
|
|
548
|
+
disabled: !h.length,
|
|
549
|
+
children: o ? /* @__PURE__ */ a(A, { i18nKey: o.id, children: o.defaultValue }) : /* @__PURE__ */ a(A, { i18nKey: "form.accept", children: "Accept" })
|
|
550
|
+
}
|
|
551
|
+
),
|
|
552
|
+
/* @__PURE__ */ a(F, { onClick: i, children: r ? /* @__PURE__ */ a(A, { i18nKey: r.id, children: r.defaultValue }) : /* @__PURE__ */ a(A, { i18nKey: "form.cancel", children: "Cancel" }) })
|
|
553
|
+
] }),
|
|
554
|
+
width: 600
|
|
555
|
+
}
|
|
556
|
+
);
|
|
557
|
+
}
|
|
558
|
+
function ds(t) {
|
|
559
|
+
return class extends $.Component {
|
|
560
|
+
constructor() {
|
|
561
|
+
super(...arguments), this.state = {
|
|
562
|
+
show: !1
|
|
563
|
+
}, this.prompt = (n, i, s, r, o) => new Promise((l) => {
|
|
564
|
+
this.setState({
|
|
565
|
+
show: !0,
|
|
566
|
+
promptElement: /* @__PURE__ */ a(
|
|
567
|
+
sn,
|
|
568
|
+
{
|
|
569
|
+
title: n,
|
|
570
|
+
message: i,
|
|
571
|
+
onAccept: (c) => {
|
|
572
|
+
this.setState({
|
|
573
|
+
show: !1
|
|
574
|
+
}), l(c);
|
|
575
|
+
},
|
|
576
|
+
onCancel: () => {
|
|
577
|
+
this.setState({
|
|
578
|
+
show: !1
|
|
579
|
+
});
|
|
580
|
+
},
|
|
581
|
+
inputPlaceholder: s,
|
|
582
|
+
acceptButtonLabel: r,
|
|
583
|
+
cancelButtonLabel: o
|
|
584
|
+
},
|
|
585
|
+
"1"
|
|
586
|
+
)
|
|
587
|
+
});
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
render() {
|
|
591
|
+
return [
|
|
592
|
+
/* @__PURE__ */ Be(t, { ...this.props, prompt: this.prompt, key: "0" }),
|
|
593
|
+
this.state.show ? this.state.promptElement : null
|
|
594
|
+
];
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
const Ie = (t) => !!(t.metaKey || t.altKey || t.ctrlKey || t.shiftKey);
|
|
599
|
+
function hs({ to: t, confirm: e, className: n, title: i, children: s, keyboardShortcut: r, ...o }) {
|
|
600
|
+
const l = fe(), { t: c } = B(), h = q(() => {
|
|
601
|
+
e ? e().then((p) => l.push(p || t)).catch(() => {
|
|
602
|
+
}) : l.push(t);
|
|
603
|
+
}, [e, l, t]), d = q(
|
|
604
|
+
(p) => {
|
|
605
|
+
r && p.key === r && !Ie(p) && // @ts-ignore EventTarget is a Node and has a tagName
|
|
606
|
+
p.target.tagName && // @ts-ignore EventTarget is a Node and has a tagName
|
|
607
|
+
!["INPUT", "SELECT", "TEXTAREA"].includes(p.target.tagName) && (p.preventDefault(), h());
|
|
608
|
+
},
|
|
609
|
+
[r, h]
|
|
610
|
+
);
|
|
611
|
+
R(() => {
|
|
612
|
+
if (r)
|
|
613
|
+
return window.addEventListener("keydown", d), () => {
|
|
614
|
+
window.removeEventListener("keydown", d);
|
|
615
|
+
};
|
|
616
|
+
}, [r, d]);
|
|
617
|
+
const u = (p) => {
|
|
618
|
+
p.button === 0 && !Ie(p) && (p.preventDefault(), h());
|
|
619
|
+
}, f = l.createHref(typeof t == "string" ? { pathname: t } : t);
|
|
620
|
+
return /* @__PURE__ */ a(
|
|
621
|
+
"a",
|
|
622
|
+
{
|
|
623
|
+
href: f,
|
|
624
|
+
onClick: u,
|
|
625
|
+
className: `di route-link ${n || ""}`,
|
|
626
|
+
title: i ? c(i.id, {
|
|
627
|
+
defaultValue: i.defaultValue
|
|
628
|
+
}) : void 0,
|
|
629
|
+
...o,
|
|
630
|
+
children: s
|
|
631
|
+
}
|
|
632
|
+
);
|
|
633
|
+
}
|
|
634
|
+
const rn = {
|
|
635
|
+
info: "#ffffff",
|
|
636
|
+
success: "#cce0cc",
|
|
637
|
+
warning: "#fed254",
|
|
638
|
+
error: "#d66961"
|
|
639
|
+
};
|
|
640
|
+
function us({ type: t = "info", hideable: e = !1, className: n, icon: i, message: s, children: r }) {
|
|
641
|
+
const [o, l] = N(!0), { t: c } = B();
|
|
642
|
+
function h() {
|
|
643
|
+
if (typeof s != "string") {
|
|
644
|
+
const { id: u, defaultValue: f, ...p } = s;
|
|
645
|
+
return c(u, { ...p, defaultValue: f });
|
|
646
|
+
}
|
|
647
|
+
return s;
|
|
648
|
+
}
|
|
649
|
+
const d = h();
|
|
650
|
+
return o ? /* @__PURE__ */ m("div", { className: `infobox ${n || ""}`, children: [
|
|
651
|
+
/* @__PURE__ */ m(
|
|
652
|
+
"div",
|
|
653
|
+
{
|
|
654
|
+
className: "infobox-header",
|
|
655
|
+
style: {
|
|
656
|
+
backgroundColor: rn[t]
|
|
657
|
+
},
|
|
658
|
+
children: [
|
|
659
|
+
/* @__PURE__ */ m("div", { className: "infobox-header-content", children: [
|
|
660
|
+
i && /* @__PURE__ */ a("div", { className: "infobox-iconcontainer", children: /* @__PURE__ */ a("img", { src: i, alt: "info-icon", style: { width: 16, height: 16 } }) }),
|
|
661
|
+
/* @__PURE__ */ a("div", { className: "infobox-message", children: d })
|
|
662
|
+
] }),
|
|
663
|
+
e && /* @__PURE__ */ a("button", { className: "infobox-closebutton", onClick: () => l(!1), children: /* @__PURE__ */ a(pe, { del: !0, large: !0 }) })
|
|
664
|
+
]
|
|
665
|
+
}
|
|
666
|
+
),
|
|
667
|
+
r
|
|
668
|
+
] }) : null;
|
|
669
|
+
}
|
|
670
|
+
const ce = /* @__PURE__ */ Object.freeze({
|
|
671
|
+
Translate: {
|
|
672
|
+
toString(t) {
|
|
673
|
+
if (!t)
|
|
674
|
+
return;
|
|
675
|
+
const {
|
|
676
|
+
x: e,
|
|
677
|
+
y: n
|
|
678
|
+
} = t;
|
|
679
|
+
return "translate3d(" + (e ? Math.round(e) : 0) + "px, " + (n ? Math.round(n) : 0) + "px, 0)";
|
|
680
|
+
}
|
|
681
|
+
},
|
|
682
|
+
Scale: {
|
|
683
|
+
toString(t) {
|
|
684
|
+
if (!t)
|
|
685
|
+
return;
|
|
686
|
+
const {
|
|
687
|
+
scaleX: e,
|
|
688
|
+
scaleY: n
|
|
689
|
+
} = t;
|
|
690
|
+
return "scaleX(" + e + ") scaleY(" + n + ")";
|
|
691
|
+
}
|
|
692
|
+
},
|
|
693
|
+
Transform: {
|
|
694
|
+
toString(t) {
|
|
695
|
+
if (t)
|
|
696
|
+
return [ce.Translate.toString(t), ce.Scale.toString(t)].join(" ");
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
Transition: {
|
|
700
|
+
toString(t) {
|
|
701
|
+
let {
|
|
702
|
+
property: e,
|
|
703
|
+
duration: n,
|
|
704
|
+
easing: i
|
|
705
|
+
} = t;
|
|
706
|
+
return e + " " + n + "ms " + i;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
});
|
|
710
|
+
function ae(t, e) {
|
|
711
|
+
const n = t.endsWith("/") ? "" : "/";
|
|
712
|
+
return `${t}${n}${e}`;
|
|
713
|
+
}
|
|
714
|
+
const an = ({
|
|
715
|
+
id: t,
|
|
716
|
+
to: e,
|
|
717
|
+
className: n,
|
|
718
|
+
title: i,
|
|
719
|
+
children: s,
|
|
720
|
+
draggingDisabled: r
|
|
721
|
+
}) => {
|
|
722
|
+
const { attributes: o, listeners: l, setNodeRef: c, transform: h, transition: d } = Tt({
|
|
723
|
+
id: t,
|
|
724
|
+
disabled: r,
|
|
725
|
+
strategy: ze
|
|
726
|
+
}), u = {
|
|
727
|
+
transform: h ? ce.Transform.toString({ ...h, scaleX: 1 }) : void 0,
|
|
728
|
+
transition: d
|
|
729
|
+
}, { pathname: f } = ge();
|
|
730
|
+
return f.endsWith(e.toString()) ? /* @__PURE__ */ a(
|
|
731
|
+
"button",
|
|
732
|
+
{
|
|
733
|
+
"data-testid": "tab-button",
|
|
734
|
+
className: P("tab-header item active", n),
|
|
735
|
+
title: i,
|
|
736
|
+
ref: c,
|
|
737
|
+
style: u,
|
|
738
|
+
type: "button",
|
|
739
|
+
...o,
|
|
740
|
+
...l,
|
|
741
|
+
children: s
|
|
742
|
+
}
|
|
743
|
+
) : /* @__PURE__ */ a(
|
|
744
|
+
We,
|
|
745
|
+
{
|
|
746
|
+
"data-testid": "tab-button",
|
|
747
|
+
to: e,
|
|
748
|
+
title: i,
|
|
749
|
+
className: P("tab-header item", n),
|
|
750
|
+
ref: c,
|
|
751
|
+
style: u,
|
|
752
|
+
...o,
|
|
753
|
+
...l,
|
|
754
|
+
children: s
|
|
755
|
+
}
|
|
756
|
+
);
|
|
757
|
+
};
|
|
758
|
+
function ps({ pages: t, onOrderChange: e, basePath: n, ...i }) {
|
|
759
|
+
const [s, r] = N(!1), { pathname: o, state: l } = ge();
|
|
760
|
+
function c() {
|
|
761
|
+
const d = o.split("/").reverse()[0];
|
|
762
|
+
return t.some((u) => u.path === d) ? o.substring(0, o.lastIndexOf("/")) : o;
|
|
763
|
+
}
|
|
764
|
+
function h(d) {
|
|
765
|
+
r(!1);
|
|
766
|
+
const { active: u, over: f } = d;
|
|
767
|
+
if (u.id !== f?.id && e) {
|
|
768
|
+
const p = t.findIndex((v) => v.path === u.id), g = t.findIndex((v) => v.path === f?.id);
|
|
769
|
+
e(p, g);
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
return /* @__PURE__ */ m("div", { className: s ? "draggable-area" : "", children: [
|
|
773
|
+
/* @__PURE__ */ a(
|
|
774
|
+
Rt,
|
|
775
|
+
{
|
|
776
|
+
collisionDetection: kt,
|
|
777
|
+
onDragEnd: h,
|
|
778
|
+
onDragStart: () => r(!0),
|
|
779
|
+
modifiers: [Ot],
|
|
780
|
+
children: /* @__PURE__ */ a("div", { className: "di tabs", children: /* @__PURE__ */ a(
|
|
781
|
+
Mt,
|
|
782
|
+
{
|
|
783
|
+
items: t.map((d) => ({ ...d, id: d.path })),
|
|
784
|
+
strategy: ze,
|
|
785
|
+
children: t.map(({ path: d, renderHeading: u, headingTitle: f, draggingDisabled: p, disabled: g }) => /* @__PURE__ */ a(
|
|
786
|
+
an,
|
|
787
|
+
{
|
|
788
|
+
id: d,
|
|
789
|
+
to: ae(n || c(), d),
|
|
790
|
+
title: f,
|
|
791
|
+
draggingDisabled: g || p || !e || !s && !o.endsWith(d),
|
|
792
|
+
children: u(i)
|
|
793
|
+
},
|
|
794
|
+
d
|
|
795
|
+
))
|
|
796
|
+
}
|
|
797
|
+
) })
|
|
798
|
+
}
|
|
799
|
+
),
|
|
800
|
+
/* @__PURE__ */ m(xt, { children: [
|
|
801
|
+
t.map(({ renderBody: d, path: u }) => /* @__PURE__ */ a(
|
|
802
|
+
we,
|
|
803
|
+
{
|
|
804
|
+
path: ae(n || c(), u),
|
|
805
|
+
render: () => d(i)
|
|
806
|
+
},
|
|
807
|
+
u
|
|
808
|
+
)),
|
|
809
|
+
/* @__PURE__ */ a(we, { children: /* @__PURE__ */ a(
|
|
810
|
+
It,
|
|
811
|
+
{
|
|
812
|
+
to: {
|
|
813
|
+
pathname: ae(n || c(), t[0].path),
|
|
814
|
+
state: l
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
) })
|
|
818
|
+
] })
|
|
819
|
+
] });
|
|
820
|
+
}
|
|
821
|
+
const on = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMZJREFUeNpi/P//PwMtARMDjcHQt4ABGgchQPwKxMWBzwKxKFlmQy14g8dwGL5MqiXIFvynEgb5VJmWFoDwImQLWNB8pQ/EjyiM1j/IHHQLPgHxB3ok00dUCKpnuCzQAmJZKjh+Jy4L3KkUOjgtcKNG/gXi3cg5GRZuGkD8jQrhfwpmNroPbIGYkwo+2IErFXlQKfx3oRd2MK99oELwfIDlL+Qgegul+ang+u0ouRnqg0ACxTWx+CIQKyGbzThaJw+4BQABBgBH38BkTQm7ZwAAAABJRU5ErkJggg==", ln = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAGpJREFUeNpi/P//PwMtARMDjcHQt4ABFAfQeAgH4jcgIRy4gyxzkSzAZzjJlmCz4D+VMMih4TBzGWHJlJGRkZrp9S3QXBGwuTSyAOR6xtF8MGrBqAUDYMFbahYV5BTXlBV2o5E8YBYABBgAxQJ9mxTaZMQAAAAASUVORK5CYII=", cn = "data:image/svg+xml,%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20width='24px'%20height='24px'%20viewBox='0%200%2024%2024'%20style='enable-background:new%200%200%2050%2050;'%20xml:space='preserve'%3e%3crect%20x='0'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3crect%20x='9'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0.2s'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3crect%20x='19'%20y='0'%20width='5'%20height='10'%20fill='%23000'%3e%3canimateTransform%20attributeType='xml'%20attributeName='transform'%20type='translate'%20values='0%200;%200%2014;%200%200'%20begin='0.4s'%20dur='0.6s'%20repeatCount='indefinite'%20/%3e%3c/rect%3e%3c/svg%3e", dn = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjIwNDI3RTg2NEQxQjExRTc4OEM3RTkwQjYwNjA2OTk5IiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjIwNDI3RTg3NEQxQjExRTc4OEM3RTkwQjYwNjA2OTk5Ij4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MjA0MjdFODQ0RDFCMTFFNzg4QzdFOTBCNjA2MDY5OTkiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6MjA0MjdFODU0RDFCMTFFNzg4QzdFOTBCNjA2MDY5OTkiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5FrZPxAAAA5UlEQVR42qzTvQ7BUBTA8UpEYraJWAwSNVgMHsDIZvUEngWDisTiBTyA4A3EJEiMYrBJGBBf/yO3UlVNq07y63Cbc3rvuaea9hkZ1LHAUZmrtYzmEhG0cMX9C3nXQdQpeeiSaDdSOa8wfCSbWmayjssPBSRHD/EoqzMtscEeN8SQQwVVhB361pRHDX1VYGf5whZjlJDHymEXclPaycN2e4hjYFs/eS0gJkiibVmT4z634bVxaxRQxBQzKdDw2X0Zpi7SSEiBbIBrTAUZJOOvoxz4Z7KGriZMBuuMg+p2U/XrLR4CDACHu7RW+98pzwAAAABJRU5ErkJggg==";
|
|
822
|
+
var L = /* @__PURE__ */ ((t) => (t.ALL = "all", t.SOME = "some", t.NONE = "none", t))(L || {});
|
|
823
|
+
const hn = ({ lastChild: t }) => /* @__PURE__ */ m("div", { className: "skeleton", children: [
|
|
824
|
+
/* @__PURE__ */ a("div", { className: "skeleton-cell top" }),
|
|
825
|
+
/* @__PURE__ */ a(
|
|
826
|
+
"div",
|
|
827
|
+
{
|
|
828
|
+
className: "skeleton-cell bottom",
|
|
829
|
+
style: {
|
|
830
|
+
visibility: t ? "hidden" : "initial"
|
|
831
|
+
}
|
|
832
|
+
}
|
|
833
|
+
)
|
|
834
|
+
] }), un = ({ node: t, leafNode: e, expanded: n, isLoading: i, onExpand: s }) => {
|
|
835
|
+
let r;
|
|
836
|
+
return e ? r = t.image || dn : i ? r = cn : n ? r = t.expandedImage || on : r = t.closedImage || ln, /* @__PURE__ */ a("div", { className: "icon-container", children: /* @__PURE__ */ a("img", { src: r, alt: "node", onClick: s }) });
|
|
837
|
+
};
|
|
838
|
+
class pn extends $.PureComponent {
|
|
839
|
+
constructor() {
|
|
840
|
+
super(...arguments), this.onSelect = (e) => {
|
|
841
|
+
const { onSelect: n, selectionState: i } = this.props;
|
|
842
|
+
n(i === L.SOME ? !1 : e.currentTarget.checked);
|
|
843
|
+
}, this.onLabelClick = () => {
|
|
844
|
+
const { onSelect: e, selectionState: n } = this.props;
|
|
845
|
+
e(n === L.SOME ? !1 : this.inputRef ? !this.inputRef.checked : !1);
|
|
846
|
+
};
|
|
847
|
+
}
|
|
848
|
+
componentDidMount() {
|
|
849
|
+
this.updateSelectionState();
|
|
850
|
+
}
|
|
851
|
+
componentDidUpdate() {
|
|
852
|
+
this.updateSelectionState();
|
|
853
|
+
}
|
|
854
|
+
updateSelectionState() {
|
|
855
|
+
const { selectionState: e } = this.props;
|
|
856
|
+
this.inputRef && (this.inputRef.indeterminate = e === L.SOME);
|
|
857
|
+
}
|
|
858
|
+
render() {
|
|
859
|
+
const {
|
|
860
|
+
node: e,
|
|
861
|
+
node: { name: n },
|
|
862
|
+
leafNode: i,
|
|
863
|
+
expanded: s,
|
|
864
|
+
isLastChild: r,
|
|
865
|
+
onExpand: o,
|
|
866
|
+
selectionState: l,
|
|
867
|
+
isLoading: c
|
|
868
|
+
} = this.props, h = l === L.ALL;
|
|
869
|
+
return /* @__PURE__ */ m("div", { className: `node-info ${h ? "selected" : ""}`, children: [
|
|
870
|
+
r !== void 0 && /* @__PURE__ */ a(hn, { lastChild: r }),
|
|
871
|
+
/* @__PURE__ */ a(
|
|
872
|
+
un,
|
|
873
|
+
{
|
|
874
|
+
node: e,
|
|
875
|
+
leafNode: i,
|
|
876
|
+
expanded: s,
|
|
877
|
+
isLoading: c,
|
|
878
|
+
onExpand: o
|
|
879
|
+
}
|
|
880
|
+
),
|
|
881
|
+
/* @__PURE__ */ a(
|
|
882
|
+
"input",
|
|
883
|
+
{
|
|
884
|
+
ref: (d) => {
|
|
885
|
+
this.inputRef = d;
|
|
886
|
+
},
|
|
887
|
+
type: "checkbox",
|
|
888
|
+
checked: l === L.ALL,
|
|
889
|
+
onChange: this.onSelect
|
|
890
|
+
}
|
|
891
|
+
),
|
|
892
|
+
/* @__PURE__ */ a("div", { className: "name", onClick: this.onLabelClick, children: n })
|
|
893
|
+
] });
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
class me extends V {
|
|
897
|
+
constructor() {
|
|
898
|
+
super(...arguments), this.state = {
|
|
899
|
+
expanded: !1,
|
|
900
|
+
selectionState: this.getSelectionState(),
|
|
901
|
+
isLoading: !1
|
|
902
|
+
}, this.toggleExpand = () => {
|
|
903
|
+
const { node: e, lazyLoadingFunction: n } = this.props;
|
|
904
|
+
e.lazyLoadable ? this.setState(
|
|
905
|
+
{
|
|
906
|
+
isLoading: !0
|
|
907
|
+
},
|
|
908
|
+
() => {
|
|
909
|
+
n(e).then(
|
|
910
|
+
() => this.setState({
|
|
911
|
+
expanded: !0,
|
|
912
|
+
isLoading: !1
|
|
913
|
+
})
|
|
914
|
+
);
|
|
915
|
+
}
|
|
916
|
+
) : this.setState({
|
|
917
|
+
expanded: !this.state.expanded
|
|
918
|
+
});
|
|
919
|
+
}, this.onSelect = (e) => {
|
|
920
|
+
const { node: n, selectNodes: i, deselectNodes: s, selectedNodes: r } = this.props;
|
|
921
|
+
if (e) {
|
|
922
|
+
const o = _(n).filter((l) => !r.includes(l.id));
|
|
923
|
+
i(o);
|
|
924
|
+
} else {
|
|
925
|
+
const o = _(n).filter((l) => r.includes(l.id));
|
|
926
|
+
s(o);
|
|
927
|
+
}
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Update folder nodes only if the selection changed, or expanded changed
|
|
932
|
+
* Update leaf nodes only if the previously selected nodes include this leaf and the currently
|
|
933
|
+
* selected nodes do not include this leaf, and vice versa.
|
|
934
|
+
* @param {Props} prevProps
|
|
935
|
+
* @param {State} prevState
|
|
936
|
+
*/
|
|
937
|
+
shouldComponentUpdate(e, n) {
|
|
938
|
+
const { selectedNodes: i, treeSize: s } = e, { expanded: r, selectionState: o, isLoading: l } = n, { selectedNodes: c, node: h, treeSize: d } = this.props, { expanded: u, selectionState: f, isLoading: p } = this.state;
|
|
939
|
+
return l !== p || s !== d ? !0 : this.isLeaf() ? i.includes(h.id) && !c.includes(h.id) || !i.includes(h.id) && c.includes(h.id) || o !== f : i.length !== c.length || r !== u || o !== f;
|
|
940
|
+
}
|
|
941
|
+
componentDidMount() {
|
|
942
|
+
this.setState({
|
|
943
|
+
selectionState: this.getSelectionState()
|
|
944
|
+
});
|
|
945
|
+
}
|
|
946
|
+
componentDidUpdate() {
|
|
947
|
+
this.setState({
|
|
948
|
+
selectionState: this.getSelectionState()
|
|
949
|
+
});
|
|
950
|
+
}
|
|
951
|
+
isLeaf() {
|
|
952
|
+
const { node: e } = this.props;
|
|
953
|
+
return e.children === void 0;
|
|
954
|
+
}
|
|
955
|
+
getSelectionState() {
|
|
956
|
+
const { node: e, selectedNodes: n } = this.props;
|
|
957
|
+
if (this.isLeaf())
|
|
958
|
+
return n.includes(e.id) ? L.ALL : L.NONE;
|
|
959
|
+
{
|
|
960
|
+
const i = zt(e), s = Wt(i, n);
|
|
961
|
+
return s.length === i.length && i.length !== 0 ? L.ALL : s.length === 0 ? L.NONE : L.SOME;
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
render() {
|
|
965
|
+
const { node: e, isLastChild: n, ...i } = this.props, { expanded: s, selectionState: r, isLoading: o } = this.state;
|
|
966
|
+
return /* @__PURE__ */ m("div", { className: "node", children: [
|
|
967
|
+
/* @__PURE__ */ a(
|
|
968
|
+
pn,
|
|
969
|
+
{
|
|
970
|
+
node: e,
|
|
971
|
+
displayName: e.name,
|
|
972
|
+
leafNode: this.isLeaf(),
|
|
973
|
+
expanded: s,
|
|
974
|
+
isLastChild: n,
|
|
975
|
+
onExpand: this.toggleExpand,
|
|
976
|
+
onSelect: this.onSelect,
|
|
977
|
+
isLoading: o,
|
|
978
|
+
selectionState: r
|
|
979
|
+
}
|
|
980
|
+
),
|
|
981
|
+
s && e.children && e.children.map((l, c) => /* @__PURE__ */ Be(
|
|
982
|
+
me,
|
|
983
|
+
{
|
|
984
|
+
...i,
|
|
985
|
+
key: c,
|
|
986
|
+
node: l,
|
|
987
|
+
isLastChild: c === (e.children || []).length - 1
|
|
988
|
+
}
|
|
989
|
+
))
|
|
990
|
+
] });
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
class fs extends V {
|
|
994
|
+
constructor() {
|
|
995
|
+
super(...arguments), this.state = {
|
|
996
|
+
treeData: this.props.treeData,
|
|
997
|
+
tree: {
|
|
998
|
+
id: "virtualRootNode",
|
|
999
|
+
name: "",
|
|
1000
|
+
children: [],
|
|
1001
|
+
path: "/",
|
|
1002
|
+
originalNode: {}
|
|
1003
|
+
},
|
|
1004
|
+
treeSize: 0,
|
|
1005
|
+
selectedNodes: this.props.selectedNodes || []
|
|
1006
|
+
}, this.convert = Qt(this.props.dataSetConfig), this.selectNodes = (e) => {
|
|
1007
|
+
const { onSelect: n } = this.props, { selectedNodes: i } = this.state;
|
|
1008
|
+
this.setState({
|
|
1009
|
+
selectedNodes: Ut(
|
|
1010
|
+
i,
|
|
1011
|
+
e.map(({ id: s }) => s)
|
|
1012
|
+
)
|
|
1013
|
+
}), n(e.map(({ originalNode: s, path: r }) => ({ ...s, $$path: r })));
|
|
1014
|
+
}, this.deselectNodes = (e) => {
|
|
1015
|
+
const { onDeselect: n } = this.props, { selectedNodes: i } = this.state;
|
|
1016
|
+
this.setState({
|
|
1017
|
+
selectedNodes: Zt(
|
|
1018
|
+
i,
|
|
1019
|
+
e.map(({ id: s }) => s)
|
|
1020
|
+
)
|
|
1021
|
+
}), n(e.map(({ originalNode: s, path: r }) => ({ ...s, $$path: r })));
|
|
1022
|
+
}, this.addTreeData = (e, n) => {
|
|
1023
|
+
const { tree: i } = this.state, s = this.convert(e, n.path), r = {
|
|
1024
|
+
id: "virtualRootNode",
|
|
1025
|
+
name: "",
|
|
1026
|
+
children: (i.children || []).map(
|
|
1027
|
+
(l) => Ke(l, n.id, {
|
|
1028
|
+
lazyLoadable: !1,
|
|
1029
|
+
children: s
|
|
1030
|
+
})
|
|
1031
|
+
),
|
|
1032
|
+
path: "/",
|
|
1033
|
+
originalNode: {}
|
|
1034
|
+
}, o = le(r);
|
|
1035
|
+
this.setState({
|
|
1036
|
+
tree: r,
|
|
1037
|
+
treeSize: o
|
|
1038
|
+
});
|
|
1039
|
+
}, this.lazyLoadingFunction = (e) => {
|
|
1040
|
+
const { lazyLoadingFunction: n } = this.props;
|
|
1041
|
+
return n ? n(e.originalNode).then((i) => {
|
|
1042
|
+
this.addTreeData(i, e);
|
|
1043
|
+
}).catch(() => Promise.resolve()) : Promise.resolve();
|
|
1044
|
+
};
|
|
1045
|
+
}
|
|
1046
|
+
componentDidMount() {
|
|
1047
|
+
const { treeData: e } = this.props, n = this.initTree(e), i = le(n);
|
|
1048
|
+
this.setState({
|
|
1049
|
+
tree: n,
|
|
1050
|
+
treeSize: i
|
|
1051
|
+
});
|
|
1052
|
+
}
|
|
1053
|
+
componentDidUpdate(e) {
|
|
1054
|
+
const { selectedNodes: n } = e, { selectedNodes: i } = this.props;
|
|
1055
|
+
i && n && n.length !== i.length && this.setState({
|
|
1056
|
+
selectedNodes: i
|
|
1057
|
+
});
|
|
1058
|
+
}
|
|
1059
|
+
initTree(e) {
|
|
1060
|
+
return {
|
|
1061
|
+
id: "virtualRootNode",
|
|
1062
|
+
name: "",
|
|
1063
|
+
children: this.convert(e),
|
|
1064
|
+
path: "/",
|
|
1065
|
+
originalNode: {}
|
|
1066
|
+
};
|
|
1067
|
+
}
|
|
1068
|
+
render() {
|
|
1069
|
+
const { tree: e, selectedNodes: n, treeSize: i } = this.state;
|
|
1070
|
+
return /* @__PURE__ */ a("div", { className: "treeview", children: e.children && e.children.map((s, r) => /* @__PURE__ */ a(
|
|
1071
|
+
me,
|
|
1072
|
+
{
|
|
1073
|
+
node: s,
|
|
1074
|
+
selectedNodes: n,
|
|
1075
|
+
selectNodes: this.selectNodes,
|
|
1076
|
+
deselectNodes: this.deselectNodes,
|
|
1077
|
+
treeSize: i,
|
|
1078
|
+
lazyLoadingFunction: this.lazyLoadingFunction
|
|
1079
|
+
},
|
|
1080
|
+
r
|
|
1081
|
+
)) });
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
const fn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3ccircle%20cx='7.5'%20cy='3.5'%20r='1.5'/%3e%3ccircle%20cx='7.5'%20cy='7.5'%20r='1.5'/%3e%3ccircle%20cx='7.5'%20cy='11.5'%20r='1.5'/%3e%3c/svg%3e", tt = $.createContext({
|
|
1085
|
+
toggleMenu: () => {
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
function gn({ menuButton: t, children: e, direction: n, className: i, open: s, onOpenChange: r }) {
|
|
1089
|
+
const [o, l] = N(!1), c = () => {
|
|
1090
|
+
l(!o);
|
|
1091
|
+
};
|
|
1092
|
+
return /* @__PURE__ */ a("span", { children: /* @__PURE__ */ a(
|
|
1093
|
+
te,
|
|
1094
|
+
{
|
|
1095
|
+
open: s ?? o,
|
|
1096
|
+
onOpenChange: r ?? l,
|
|
1097
|
+
handler: t,
|
|
1098
|
+
placement: n,
|
|
1099
|
+
className: i,
|
|
1100
|
+
children: /* @__PURE__ */ a("div", { className: "di multimenu", children: /* @__PURE__ */ a("div", { className: `drop ${n || "bottom"} ${o ? "show" : ""}`, children: /* @__PURE__ */ a(tt.Provider, { value: { toggleMenu: c }, children: e }) }) })
|
|
1101
|
+
}
|
|
1102
|
+
) });
|
|
1103
|
+
}
|
|
1104
|
+
const mn = [5, 10, 15, 20, 50];
|
|
1105
|
+
function vn({ onChangePage: t, page: e, totalPages: n, onChangeSize: i, size: s }) {
|
|
1106
|
+
const r = D(null), { current: o } = r, [l, c] = N(`${e + 1}`), [h, d] = N(!1);
|
|
1107
|
+
R(() => {
|
|
1108
|
+
r.current = Ue(t, 500);
|
|
1109
|
+
}, [t]), R(() => {
|
|
1110
|
+
c(`${e + 1}`);
|
|
1111
|
+
}, [e]);
|
|
1112
|
+
function u() {
|
|
1113
|
+
t(0);
|
|
1114
|
+
}
|
|
1115
|
+
function f() {
|
|
1116
|
+
e > 0 && t(e - 1);
|
|
1117
|
+
}
|
|
1118
|
+
function p() {
|
|
1119
|
+
e < n - 1 && t(e + 1);
|
|
1120
|
+
}
|
|
1121
|
+
function g() {
|
|
1122
|
+
t(n - 1);
|
|
1123
|
+
}
|
|
1124
|
+
function v(x) {
|
|
1125
|
+
if (i) {
|
|
1126
|
+
const k = parseInt(x.target.value, 10);
|
|
1127
|
+
i(k), d(!1);
|
|
1128
|
+
}
|
|
1129
|
+
}
|
|
1130
|
+
function w(x) {
|
|
1131
|
+
const k = x.target.value;
|
|
1132
|
+
if (k.trim() === "") {
|
|
1133
|
+
c(k);
|
|
1134
|
+
return;
|
|
1135
|
+
}
|
|
1136
|
+
const I = Number(x.target.value);
|
|
1137
|
+
!Number.isNaN(I) && I >= 1 && I <= n && (o?.(I - 1), c(k));
|
|
1138
|
+
}
|
|
1139
|
+
function y() {
|
|
1140
|
+
c(`${e + 1}`);
|
|
1141
|
+
}
|
|
1142
|
+
const C = e >= n - 1;
|
|
1143
|
+
return /* @__PURE__ */ a("div", { className: "di pagination-holder", children: /* @__PURE__ */ m("div", { className: "di pagination", children: [
|
|
1144
|
+
/* @__PURE__ */ a("span", { className: `prev ${e === 0 ? "disabled" : ""}`, onClick: u, children: "«" }),
|
|
1145
|
+
/* @__PURE__ */ a("span", { className: `prev ${e === 0 ? "disabled" : ""}`, onClick: f, children: "‹" }),
|
|
1146
|
+
/* @__PURE__ */ m("span", { className: "info", children: [
|
|
1147
|
+
/* @__PURE__ */ a(A, { i18nKey: "reactable.pagination.page", children: "Page" }),
|
|
1148
|
+
/* @__PURE__ */ a("input", { value: l, onChange: w, onBlur: y }),
|
|
1149
|
+
typeof process < "u" && process?.env?.STORYBOOK_MODE ? /* @__PURE__ */ m(Ve, { children: [
|
|
1150
|
+
"of ",
|
|
1151
|
+
n
|
|
1152
|
+
] }) : /* @__PURE__ */ m(A, { i18nKey: "reactable.pagination.ofTotal", children: [
|
|
1153
|
+
" of ",
|
|
1154
|
+
{ totalPages: n }
|
|
1155
|
+
] })
|
|
1156
|
+
] }),
|
|
1157
|
+
/* @__PURE__ */ a("span", { className: `next ${C ? "disabled" : ""}`, onClick: p, children: "›" }),
|
|
1158
|
+
/* @__PURE__ */ a("span", { className: `next ${C ? "disabled" : ""}`, onClick: g, children: "»" }),
|
|
1159
|
+
i && /* @__PURE__ */ a("div", { className: "options", children: /* @__PURE__ */ a(
|
|
1160
|
+
gn,
|
|
1161
|
+
{
|
|
1162
|
+
direction: "left",
|
|
1163
|
+
open: h,
|
|
1164
|
+
onOpenChange: d,
|
|
1165
|
+
menuButton: /* @__PURE__ */ a(
|
|
1166
|
+
F,
|
|
1167
|
+
{
|
|
1168
|
+
naked: !0,
|
|
1169
|
+
title: {
|
|
1170
|
+
id: "trend.settings.buttonTitle",
|
|
1171
|
+
defaultValue: "Settings"
|
|
1172
|
+
},
|
|
1173
|
+
children: /* @__PURE__ */ a("img", { src: fn, alt: "settings icon", style: { width: 16, height: 16 } })
|
|
1174
|
+
}
|
|
1175
|
+
),
|
|
1176
|
+
children: /* @__PURE__ */ m(
|
|
1177
|
+
"div",
|
|
1178
|
+
{
|
|
1179
|
+
className: "di form",
|
|
1180
|
+
style: {
|
|
1181
|
+
width: 200,
|
|
1182
|
+
padding: 10
|
|
1183
|
+
},
|
|
1184
|
+
children: [
|
|
1185
|
+
/* @__PURE__ */ m("div", { className: "field", children: [
|
|
1186
|
+
/* @__PURE__ */ a("label", { children: /* @__PURE__ */ a(A, { i18nKey: "reactable.pagination.entriesPerPage", children: "Entries per page" }) }),
|
|
1187
|
+
/* @__PURE__ */ a("select", { onChange: v, value: s, children: mn.map((x) => /* @__PURE__ */ a("option", { value: x, children: x }, x)) })
|
|
1188
|
+
] }),
|
|
1189
|
+
/* @__PURE__ */ a("p", { children: /* @__PURE__ */ a(A, { i18nKey: "reactable.pagination.changePageWillBeStored", children: "Your changes will be stored for view." }) })
|
|
1190
|
+
]
|
|
1191
|
+
}
|
|
1192
|
+
)
|
|
1193
|
+
}
|
|
1194
|
+
) })
|
|
1195
|
+
] }) });
|
|
1196
|
+
}
|
|
1197
|
+
const yn = (t) => t.filterable?.initialValue ?? "", bn = ({ columnDef: t, changeFilter: e }) => {
|
|
1198
|
+
const { t: n } = B(), [i, s] = N(yn(t)), r = (o) => {
|
|
1199
|
+
const l = o.target.value;
|
|
1200
|
+
s(l), e(t.name, l);
|
|
1201
|
+
};
|
|
1202
|
+
return /* @__PURE__ */ a(
|
|
1203
|
+
"input",
|
|
1204
|
+
{
|
|
1205
|
+
type: "text",
|
|
1206
|
+
placeholder: n(`${t.filterable?.placeholder ?? "reactable.filter.placeholder"}`, {
|
|
1207
|
+
defaultValue: "Filter..."
|
|
1208
|
+
}),
|
|
1209
|
+
onChange: r,
|
|
1210
|
+
value: i
|
|
1211
|
+
}
|
|
1212
|
+
);
|
|
1213
|
+
};
|
|
1214
|
+
function Sn(t, e, n) {
|
|
1215
|
+
if (!t)
|
|
1216
|
+
return null;
|
|
1217
|
+
const { page: i, size: s, sort: r } = e;
|
|
1218
|
+
return {
|
|
1219
|
+
content: (n ? n(t, r, ke) : ke(t, r)).slice(i * s, (i + 1) * s),
|
|
1220
|
+
totalElements: t.length,
|
|
1221
|
+
totalPages: Math.ceil(t.length / s),
|
|
1222
|
+
number: i,
|
|
1223
|
+
size: s,
|
|
1224
|
+
sort: [r]
|
|
1225
|
+
};
|
|
1226
|
+
}
|
|
1227
|
+
const wn = (t, e) => t === "text" ? (n, i) => n[e] && n[e].toString().toLowerCase().includes(i.toLowerCase()) : (n, i) => n[e] === i;
|
|
1228
|
+
function Re(t, e, n) {
|
|
1229
|
+
return t ? t.filter((i) => Object.keys(n).every((s) => {
|
|
1230
|
+
const r = n[s];
|
|
1231
|
+
if (r && r.length > 0) {
|
|
1232
|
+
const o = Cn(s, e);
|
|
1233
|
+
return o.filterable ? (o.filterable.filterFn || wn(o.filterable.filterType, o.name))(i, r) : !1;
|
|
1234
|
+
}
|
|
1235
|
+
return !0;
|
|
1236
|
+
})) : null;
|
|
1237
|
+
}
|
|
1238
|
+
function Cn(t, e) {
|
|
1239
|
+
const n = e.find((i) => i.name === t);
|
|
1240
|
+
if (!n)
|
|
1241
|
+
throw Error(`column definition not found for ${t}`);
|
|
1242
|
+
return n;
|
|
1243
|
+
}
|
|
1244
|
+
function ke(t, e) {
|
|
1245
|
+
return t.sort((n, i) => {
|
|
1246
|
+
const s = typeof n == "object" && n?.[e.property] || 0, r = typeof i == "object" && i?.[e.property] || 0, o = e.direction === "ASC" ? 1 : -1;
|
|
1247
|
+
return s === r ? 0 : typeof s == "string" && typeof r == "string" ? s.localeCompare(r) * o : typeof s == "number" && typeof r == "number" ? (s - r) * o : s.toString().localeCompare(r.toString()) * o;
|
|
1248
|
+
});
|
|
1249
|
+
}
|
|
1250
|
+
function An(t, e, n, i, s, r) {
|
|
1251
|
+
return [
|
|
1252
|
+
{
|
|
1253
|
+
name: "checkbox",
|
|
1254
|
+
label: /* @__PURE__ */ a(
|
|
1255
|
+
Se,
|
|
1256
|
+
{
|
|
1257
|
+
value: i,
|
|
1258
|
+
onChange: n,
|
|
1259
|
+
title: {
|
|
1260
|
+
id: "components.filtertable.selectAllItems",
|
|
1261
|
+
defaultValue: "Select/deselect all items in search result"
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1264
|
+
),
|
|
1265
|
+
sortable: !1,
|
|
1266
|
+
render: (o) => /* @__PURE__ */ a(
|
|
1267
|
+
Se,
|
|
1268
|
+
{
|
|
1269
|
+
value: s.includes(r(o)),
|
|
1270
|
+
onChange: (l) => e(l, o)
|
|
1271
|
+
}
|
|
1272
|
+
),
|
|
1273
|
+
width: "1%"
|
|
1274
|
+
},
|
|
1275
|
+
...t
|
|
1276
|
+
];
|
|
1277
|
+
}
|
|
1278
|
+
function ve(t, e) {
|
|
1279
|
+
return `${t || "unnamedTable"}-${e}`;
|
|
1280
|
+
}
|
|
1281
|
+
function Nn(t, e) {
|
|
1282
|
+
if (!e)
|
|
1283
|
+
return bt(t, "label", "asc");
|
|
1284
|
+
if (t.every((n) => !n.options))
|
|
1285
|
+
return [...t].sort(e);
|
|
1286
|
+
if (t.every((n) => n.options))
|
|
1287
|
+
return t.map((i) => ({ ...i, options: [...i.options].sort(e) }));
|
|
1288
|
+
throw new Error("Mixing groups with single options not allowed");
|
|
1289
|
+
}
|
|
1290
|
+
class xn extends V {
|
|
1291
|
+
constructor() {
|
|
1292
|
+
super(...arguments), this.state = {
|
|
1293
|
+
options: [],
|
|
1294
|
+
inputValue: null
|
|
1295
|
+
}, this.selectRef = je(), this.portalRoot = null, this.updateOptions = () => {
|
|
1296
|
+
const { options: e, specialOptions: n, compareOptions: i } = this.props, s = Nn(e, i);
|
|
1297
|
+
n ? this.setState({
|
|
1298
|
+
// @ts-ignore
|
|
1299
|
+
options: [...s, ...n]
|
|
1300
|
+
}) : this.setState({
|
|
1301
|
+
options: s
|
|
1302
|
+
});
|
|
1303
|
+
}, this.filterOption = (e, n) => e.label.toString().toLowerCase().startsWith(n.toLowerCase()), this.getContainerClasses = () => {
|
|
1304
|
+
const { specialOptions: e } = this.props;
|
|
1305
|
+
return e ? ["select-search-container", "special"] : ["select-search-container"];
|
|
1306
|
+
};
|
|
1307
|
+
}
|
|
1308
|
+
componentDidMount() {
|
|
1309
|
+
if (this.updateOptions(), this.props["data-testid"] && this.selectRef && this.selectRef.current && this.selectRef.current.controlRef.setAttribute("data-testid", this.props["data-testid"]), this.props.menuPortalTarget) {
|
|
1310
|
+
this.portalRoot = document.createElement("div");
|
|
1311
|
+
const e = this.getContainerClasses();
|
|
1312
|
+
this.portalRoot.classList.add(...e), this.props.menuPortalTarget.appendChild(this.portalRoot);
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
componentDidUpdate(e) {
|
|
1316
|
+
(!z(e.options, this.props.options) || e.freeForm !== this.props.freeForm) && this.updateOptions();
|
|
1317
|
+
}
|
|
1318
|
+
componentWillUnmount() {
|
|
1319
|
+
this.props.menuPortalTarget && this.portalRoot && this.props.menuPortalTarget.removeChild(this.portalRoot);
|
|
1320
|
+
}
|
|
1321
|
+
render() {
|
|
1322
|
+
const { noResultsMessage: e, placeholder: n, value: i, onChange: s, clearable: r, loading: o, disabled: l } = this.props, { options: c } = this.state;
|
|
1323
|
+
return /* @__PURE__ */ a(
|
|
1324
|
+
Lt,
|
|
1325
|
+
{
|
|
1326
|
+
ref: this.selectRef,
|
|
1327
|
+
joinValues: !0,
|
|
1328
|
+
name: "form-field-name",
|
|
1329
|
+
className: this.getContainerClasses().join(" "),
|
|
1330
|
+
classNamePrefix: "select-search",
|
|
1331
|
+
isClearable: r,
|
|
1332
|
+
noOptionsMessage: e ? () => e : void 0,
|
|
1333
|
+
options: c,
|
|
1334
|
+
value: i || null,
|
|
1335
|
+
onChange: s,
|
|
1336
|
+
onInputChange: (h) => {
|
|
1337
|
+
this.props.freeForm && h && this.setState({ inputValue: h });
|
|
1338
|
+
},
|
|
1339
|
+
placeholder: n,
|
|
1340
|
+
filterOption: this.filterOption,
|
|
1341
|
+
isLoading: o,
|
|
1342
|
+
menuPortalTarget: this.portalRoot,
|
|
1343
|
+
isDisabled: l,
|
|
1344
|
+
onBlur: () => {
|
|
1345
|
+
this.props.freeForm && this.state.inputValue !== null && (this.setState({ options: this.props.options }), this.setState({ inputValue: this.state.inputValue }, () => {
|
|
1346
|
+
const h = {
|
|
1347
|
+
type: "item",
|
|
1348
|
+
value: this.state.inputValue,
|
|
1349
|
+
label: this.state.inputValue
|
|
1350
|
+
};
|
|
1351
|
+
this.setState(
|
|
1352
|
+
(d) => ({
|
|
1353
|
+
options: [h, ...d.options]
|
|
1354
|
+
})
|
|
1355
|
+
), this.state.inputValue = null, s(h);
|
|
1356
|
+
}));
|
|
1357
|
+
}
|
|
1358
|
+
}
|
|
1359
|
+
);
|
|
1360
|
+
}
|
|
1361
|
+
}
|
|
1362
|
+
const In = ({ columnDefs: t, onFilter: e, tableName: n }) => {
|
|
1363
|
+
const { t: i } = B(), [s, r] = N({}), o = D(e);
|
|
1364
|
+
R(() => {
|
|
1365
|
+
o.current = e;
|
|
1366
|
+
}, [e]), R(() => {
|
|
1367
|
+
r((u) => {
|
|
1368
|
+
const f = {};
|
|
1369
|
+
for (const y of t)
|
|
1370
|
+
f[y.name] = u[y.name] !== void 0 ? u[y.name] : y.filterable?.initialValue ?? "";
|
|
1371
|
+
const p = Object.keys(u), g = Object.keys(f), v = g.length === p.length && g.every((y) => p.includes(y)), w = v && g.every((y) => f[y] === u[y]);
|
|
1372
|
+
return v && w ? u : (Object.values(f).some((y) => y) && o.current(f), f);
|
|
1373
|
+
});
|
|
1374
|
+
}, [t]);
|
|
1375
|
+
const l = (u, f) => {
|
|
1376
|
+
const p = { ...s, [u]: f };
|
|
1377
|
+
r(p), e(p);
|
|
1378
|
+
}, c = (u) => {
|
|
1379
|
+
if (u.filterable)
|
|
1380
|
+
switch (u.filterable.filterType) {
|
|
1381
|
+
case "text":
|
|
1382
|
+
return h(u);
|
|
1383
|
+
case "options":
|
|
1384
|
+
return d(u);
|
|
1385
|
+
default:
|
|
1386
|
+
throw new Error(`Filter type ${u.filterable.filterType} not supported`);
|
|
1387
|
+
}
|
|
1388
|
+
return null;
|
|
1389
|
+
}, h = (u) => /* @__PURE__ */ a(bn, { columnDef: u, changeFilter: l }), d = (u) => {
|
|
1390
|
+
if (!u.filterable?.filterOptions)
|
|
1391
|
+
throw new Error(`No filterOptions found for column type: options on columnDef: ${u.name}`);
|
|
1392
|
+
const f = u.filterable.filterOptions;
|
|
1393
|
+
if (u.filterable.searchableOptions) {
|
|
1394
|
+
const p = f.map((v) => ({
|
|
1395
|
+
type: "item",
|
|
1396
|
+
label: typeof v.label == "string" ? v.label : i(v.label.id, { defaultValue: v.label.defaultValue }),
|
|
1397
|
+
value: v.value
|
|
1398
|
+
})), g = s[u.name];
|
|
1399
|
+
return /* @__PURE__ */ a(
|
|
1400
|
+
xn,
|
|
1401
|
+
{
|
|
1402
|
+
options: p,
|
|
1403
|
+
onChange: (v) => {
|
|
1404
|
+
l(u.name, v?.value);
|
|
1405
|
+
},
|
|
1406
|
+
value: g ? p.find((v) => v.value === g.toString()) : null,
|
|
1407
|
+
clearable: !0
|
|
1408
|
+
}
|
|
1409
|
+
);
|
|
1410
|
+
} else
|
|
1411
|
+
return /* @__PURE__ */ m(
|
|
1412
|
+
"select",
|
|
1413
|
+
{
|
|
1414
|
+
onChange: (p) => {
|
|
1415
|
+
l(u.name, p.target.value);
|
|
1416
|
+
},
|
|
1417
|
+
value: s[u.name],
|
|
1418
|
+
children: [
|
|
1419
|
+
/* @__PURE__ */ a("option", { value: "", children: i("reactable.filter.all", {
|
|
1420
|
+
defaultValue: "- All -"
|
|
1421
|
+
}) }, ""),
|
|
1422
|
+
f.map((p) => /* @__PURE__ */ a(
|
|
1423
|
+
"option",
|
|
1424
|
+
{
|
|
1425
|
+
className: ve(n, u.name),
|
|
1426
|
+
value: p.value,
|
|
1427
|
+
children: typeof p.label == "string" ? p.label : i(p.label.id, { defaultValue: p.label.defaultValue })
|
|
1428
|
+
},
|
|
1429
|
+
p.value
|
|
1430
|
+
))
|
|
1431
|
+
]
|
|
1432
|
+
}
|
|
1433
|
+
);
|
|
1434
|
+
};
|
|
1435
|
+
return /* @__PURE__ */ a("tr", { className: "di filterrow form", children: t.map((u) => /* @__PURE__ */ a("td", { style: { textAlign: u.align || "left" }, children: c(u) }, u.name)) });
|
|
1436
|
+
}, Rn = (t) => t === "ASC" ? "DESC" : "ASC";
|
|
1437
|
+
class kn extends V {
|
|
1438
|
+
constructor() {
|
|
1439
|
+
super(...arguments), this.handleSort = (e) => {
|
|
1440
|
+
const { paginationSettings: n, onSort: i } = this.props, s = e.name === n.sort.property ? Rn(n.sort.direction) : e.defaultSortDirection || "ASC";
|
|
1441
|
+
i(e.name, s);
|
|
1442
|
+
}, this.getClassName = (e) => {
|
|
1443
|
+
const { paginationSettings: n, tableName: i } = this.props, s = ve(i, e.name);
|
|
1444
|
+
return e.sortable ? e.name === n.sort.property ? n.sort.direction === "ASC" ? `${s} sortable sortAsc` : `${s} sortable sortDes` : `${s} sortable` : `${s}`;
|
|
1445
|
+
}, this.printLabel = (e) => Mn(e) ? /* @__PURE__ */ a(A, { i18nKey: e.id, children: e.defaultValue }) : e;
|
|
1446
|
+
}
|
|
1447
|
+
render() {
|
|
1448
|
+
return /* @__PURE__ */ a("tr", { children: this.props.columnDefs.map((e) => /* @__PURE__ */ a(
|
|
1449
|
+
"th",
|
|
1450
|
+
{
|
|
1451
|
+
style: {
|
|
1452
|
+
width: e.width || "auto",
|
|
1453
|
+
textAlign: e.align || "left"
|
|
1454
|
+
},
|
|
1455
|
+
className: this.getClassName(e),
|
|
1456
|
+
onClick: () => {
|
|
1457
|
+
e.sortable && this.handleSort(e);
|
|
1458
|
+
},
|
|
1459
|
+
children: this.printLabel(e.label)
|
|
1460
|
+
},
|
|
1461
|
+
e.name
|
|
1462
|
+
)) });
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
function Mn(t) {
|
|
1466
|
+
return typeof t == "object" && t != null && "id" in t && t.id !== void 0;
|
|
1467
|
+
}
|
|
1468
|
+
class Tn extends V {
|
|
1469
|
+
constructor() {
|
|
1470
|
+
super(...arguments), this.getRowClass = () => {
|
|
1471
|
+
const { rowDef: e, item: n } = this.props;
|
|
1472
|
+
return e && typeof e.getRowClass == "function" ? e.getRowClass(n) : "";
|
|
1473
|
+
}, this.handleClick = () => {
|
|
1474
|
+
const { rowDef: e, item: n } = this.props;
|
|
1475
|
+
e && typeof e.onClick == "function" && e.onClick(n);
|
|
1476
|
+
}, this.getTooltip = () => {
|
|
1477
|
+
const { rowDef: e, item: n } = this.props;
|
|
1478
|
+
return e && typeof e.getTooltip == "function" ? e.getTooltip(n) : "";
|
|
1479
|
+
}, this.getRowStyle = () => {
|
|
1480
|
+
const { rowDef: e, item: n } = this.props;
|
|
1481
|
+
if (e && e.getRowStyle)
|
|
1482
|
+
return e.getRowStyle(n);
|
|
1483
|
+
};
|
|
1484
|
+
}
|
|
1485
|
+
render() {
|
|
1486
|
+
const { columnDefs: e, item: n, tableName: i } = this.props;
|
|
1487
|
+
return /* @__PURE__ */ a(
|
|
1488
|
+
"tr",
|
|
1489
|
+
{
|
|
1490
|
+
className: this.getRowClass(),
|
|
1491
|
+
onClick: this.handleClick,
|
|
1492
|
+
title: this.getTooltip(),
|
|
1493
|
+
style: this.getRowStyle(),
|
|
1494
|
+
children: e.map((s) => {
|
|
1495
|
+
const r = s.align || "left", o = s.onClick ? "pointer" : "inherit", l = s.whiteSpace || void 0, c = s.onClick ? () => s.onClick ? s.onClick(n) : void 0 : void 0;
|
|
1496
|
+
return /* @__PURE__ */ a(
|
|
1497
|
+
"td",
|
|
1498
|
+
{
|
|
1499
|
+
style: {
|
|
1500
|
+
textAlign: r,
|
|
1501
|
+
cursor: o,
|
|
1502
|
+
// @ts-ignore
|
|
1503
|
+
whiteSpace: l
|
|
1504
|
+
},
|
|
1505
|
+
onClick: c,
|
|
1506
|
+
className: ve(i, s.name),
|
|
1507
|
+
children: s.render(n)
|
|
1508
|
+
},
|
|
1509
|
+
`${n.id}_${s.name}`
|
|
1510
|
+
);
|
|
1511
|
+
})
|
|
1512
|
+
}
|
|
1513
|
+
);
|
|
1514
|
+
}
|
|
1515
|
+
}
|
|
1516
|
+
function On({
|
|
1517
|
+
columnDefs: t,
|
|
1518
|
+
uniqueItemKey: e,
|
|
1519
|
+
paginationSettings: n,
|
|
1520
|
+
onSort: i,
|
|
1521
|
+
onFilter: s,
|
|
1522
|
+
tableName: r,
|
|
1523
|
+
pageable: o,
|
|
1524
|
+
isLoading: l,
|
|
1525
|
+
rowDef: c,
|
|
1526
|
+
clickable: h,
|
|
1527
|
+
messageWhenEmpty: d,
|
|
1528
|
+
"data-testid": u
|
|
1529
|
+
}) {
|
|
1530
|
+
const f = D(null), p = D(null), [g, v] = N(!1), [w, y] = N(!0), [C, x] = N(!1), k = "uiConfigurations/nevershowscrollingadvice", I = "reactable.neverShowScrollingAdvice", M = D(w);
|
|
1531
|
+
R(() => {
|
|
1532
|
+
M.current = w;
|
|
1533
|
+
}, [w]);
|
|
1534
|
+
const E = () => {
|
|
1535
|
+
f.current && p.current && v(
|
|
1536
|
+
!M.current && p.current.scrollWidth > f.current.offsetWidth
|
|
1537
|
+
);
|
|
1538
|
+
};
|
|
1539
|
+
R(() => {
|
|
1540
|
+
setTimeout(() => {
|
|
1541
|
+
(async () => {
|
|
1542
|
+
const T = localStorage.getItem(I), Y = T !== null;
|
|
1543
|
+
try {
|
|
1544
|
+
const j = await Et(k) === !0;
|
|
1545
|
+
y(j), M.current = j, localStorage.setItem(I, String(j)), j || E();
|
|
1546
|
+
} catch {
|
|
1547
|
+
if (Y) {
|
|
1548
|
+
const j = T === "true";
|
|
1549
|
+
y(j), M.current = j, j || E();
|
|
1550
|
+
} else
|
|
1551
|
+
y(!1), M.current = !1, E();
|
|
1552
|
+
}
|
|
1553
|
+
x(!0);
|
|
1554
|
+
})();
|
|
1555
|
+
}, 0);
|
|
1556
|
+
}, []), R(() => (E(), window.addEventListener("resize", E), () => window.removeEventListener("resize", E)), [o, t]);
|
|
1557
|
+
const S = t.some((T) => T.filterable);
|
|
1558
|
+
return /* @__PURE__ */ a(pt, { show: l, children: /* @__PURE__ */ m("div", { ref: f, className: "di reactable scroll-x", children: [
|
|
1559
|
+
C && g && !l && /* @__PURE__ */ a(
|
|
1560
|
+
He,
|
|
1561
|
+
{
|
|
1562
|
+
className: "scroll-horizontally-advice",
|
|
1563
|
+
content: /* @__PURE__ */ m("div", { children: [
|
|
1564
|
+
/* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.advice", children: "SHIFT + mouse wheel to scroll horizontally" }),
|
|
1565
|
+
/* @__PURE__ */ m("div", { className: "scroll-horizontally-advice-buttons", children: [
|
|
1566
|
+
/* @__PURE__ */ a(
|
|
1567
|
+
F,
|
|
1568
|
+
{
|
|
1569
|
+
primary: !0,
|
|
1570
|
+
onClick: async () => {
|
|
1571
|
+
await Dt(k, !0), localStorage.setItem(I, "true"), y(!0), M.current = !0, v(!1);
|
|
1572
|
+
},
|
|
1573
|
+
children: /* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.neverShowAgain", children: "Never show again" })
|
|
1574
|
+
}
|
|
1575
|
+
),
|
|
1576
|
+
/* @__PURE__ */ a(F, { onClick: () => v(!1), children: /* @__PURE__ */ a(A, { i18nKey: "reactable.scrollHorizontally.ok", children: "OK" }) })
|
|
1577
|
+
] })
|
|
1578
|
+
] }),
|
|
1579
|
+
width: "40%"
|
|
1580
|
+
}
|
|
1581
|
+
),
|
|
1582
|
+
/* @__PURE__ */ m(
|
|
1583
|
+
"table",
|
|
1584
|
+
{
|
|
1585
|
+
ref: p,
|
|
1586
|
+
className: P("di reactable sortable hoverable", { selectable: h }),
|
|
1587
|
+
"data-testid": u,
|
|
1588
|
+
children: [
|
|
1589
|
+
/* @__PURE__ */ a("thead", { children: /* @__PURE__ */ a(
|
|
1590
|
+
kn,
|
|
1591
|
+
{
|
|
1592
|
+
columnDefs: t,
|
|
1593
|
+
paginationSettings: n,
|
|
1594
|
+
onSort: i,
|
|
1595
|
+
tableName: r
|
|
1596
|
+
}
|
|
1597
|
+
) }),
|
|
1598
|
+
/* @__PURE__ */ m("tbody", { children: [
|
|
1599
|
+
s && S && /* @__PURE__ */ a(
|
|
1600
|
+
In,
|
|
1601
|
+
{
|
|
1602
|
+
columnDefs: t,
|
|
1603
|
+
onFilter: s,
|
|
1604
|
+
tableName: r
|
|
1605
|
+
}
|
|
1606
|
+
),
|
|
1607
|
+
o?.content.length ? o.content.slice(0, n.size).map((T) => /* @__PURE__ */ a(
|
|
1608
|
+
Tn,
|
|
1609
|
+
{
|
|
1610
|
+
columnDefs: t,
|
|
1611
|
+
item: T,
|
|
1612
|
+
rowDef: c,
|
|
1613
|
+
tableName: r
|
|
1614
|
+
},
|
|
1615
|
+
e(T)
|
|
1616
|
+
)) : !l && /* @__PURE__ */ a("tr", { children: /* @__PURE__ */ a("td", { colSpan: t.length, children: /* @__PURE__ */ a(A, { i18nKey: d ?? "reactable.noEntriesFound", children: "No entries found" }) }) })
|
|
1617
|
+
] })
|
|
1618
|
+
]
|
|
1619
|
+
}
|
|
1620
|
+
)
|
|
1621
|
+
] }) });
|
|
1622
|
+
}
|
|
1623
|
+
class En extends V {
|
|
1624
|
+
componentDidUpdate() {
|
|
1625
|
+
const { pageable: e, paginationSettings: n, onChangePage: i } = this.props;
|
|
1626
|
+
if (!e)
|
|
1627
|
+
return;
|
|
1628
|
+
const s = e.totalPages || 0, r = n.page, o = s > 0 ? Math.min(r, s - 1) : 0;
|
|
1629
|
+
r !== o && i(o);
|
|
1630
|
+
}
|
|
1631
|
+
render() {
|
|
1632
|
+
const { paginationSettings: e, pageable: n, onChangePage: i, onChangeSize: s } = this.props, r = s ? n && n.totalElements > 0 : n && n.totalPages > 1;
|
|
1633
|
+
return /* @__PURE__ */ m("div", { children: [
|
|
1634
|
+
/* @__PURE__ */ a(On, { ...this.props }),
|
|
1635
|
+
n && r && /* @__PURE__ */ a(
|
|
1636
|
+
vn,
|
|
1637
|
+
{
|
|
1638
|
+
page: e.page,
|
|
1639
|
+
totalPages: n.totalPages,
|
|
1640
|
+
onChangePage: i,
|
|
1641
|
+
onChangeSize: s,
|
|
1642
|
+
size: e.size
|
|
1643
|
+
}
|
|
1644
|
+
)
|
|
1645
|
+
] });
|
|
1646
|
+
}
|
|
1647
|
+
}
|
|
1648
|
+
const Me = {
|
|
1649
|
+
page: 0,
|
|
1650
|
+
size: 15,
|
|
1651
|
+
sort: {
|
|
1652
|
+
property: "name",
|
|
1653
|
+
direction: "DESC"
|
|
1654
|
+
}
|
|
1655
|
+
};
|
|
1656
|
+
class gs extends V {
|
|
1657
|
+
constructor(e) {
|
|
1658
|
+
super(e), this.content = [], this.calculatePageNumber = (i, s) => {
|
|
1659
|
+
const { forceResetPaginationOnItemsChange: r } = this.props;
|
|
1660
|
+
if (r)
|
|
1661
|
+
this.handleChangePage(0);
|
|
1662
|
+
else {
|
|
1663
|
+
const o = Math.floor((i.length - 1) / s.size);
|
|
1664
|
+
o <= 0 ? this.handleChangePage(0) : o < s.page && this.handleChangePage(o);
|
|
1665
|
+
}
|
|
1666
|
+
}, this.handleChangePage = (i) => {
|
|
1667
|
+
this.setState({
|
|
1668
|
+
paginationSettings: { ...this.state.paginationSettings, page: i }
|
|
1669
|
+
});
|
|
1670
|
+
}, this.handleSort = (i, s) => {
|
|
1671
|
+
this.setState({
|
|
1672
|
+
paginationSettings: {
|
|
1673
|
+
...this.state.paginationSettings,
|
|
1674
|
+
sort: {
|
|
1675
|
+
property: i,
|
|
1676
|
+
direction: s
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
});
|
|
1680
|
+
}, this.handleFilter = (i) => {
|
|
1681
|
+
const { items: s, onFilter: r, columnDefs: o, onFilteredItemsChanged: l } = this.props;
|
|
1682
|
+
this.setState(
|
|
1683
|
+
{
|
|
1684
|
+
paginationSettings: { ...this.state.paginationSettings, page: 0 },
|
|
1685
|
+
filterSettings: i
|
|
1686
|
+
},
|
|
1687
|
+
() => {
|
|
1688
|
+
r && r(i);
|
|
1689
|
+
const c = Re(s, o, i);
|
|
1690
|
+
this.setState({
|
|
1691
|
+
filteredItems: c
|
|
1692
|
+
}), c && l?.(c);
|
|
1693
|
+
}
|
|
1694
|
+
);
|
|
1695
|
+
}, this.getPageable = () => {
|
|
1696
|
+
const { customSortFunction: i, items: s, columnDefs: r, onContentChange: o } = this.props, { filterSettings: l, paginationSettings: c } = this.state, h = Re(s, r, l), d = Sn(h, c, i);
|
|
1697
|
+
return d && d.content && !z(d.content, this.content) && (this.content = d.content, o && o(this.content)), d;
|
|
1698
|
+
}, this.handleSelectChange = (i, s) => {
|
|
1699
|
+
const { onSelectedItemsChange: r, selectedItems: o = [], uniqueItemKey: l } = this.props;
|
|
1700
|
+
if (r)
|
|
1701
|
+
if (i) {
|
|
1702
|
+
const c = o.concat(l(s));
|
|
1703
|
+
r(c);
|
|
1704
|
+
} else
|
|
1705
|
+
r(o.filter((c) => c !== l(s)));
|
|
1706
|
+
else
|
|
1707
|
+
console.warn("ReactableWithClientSidePagination: onSelectedItemsChange property is missing");
|
|
1708
|
+
}, this.handleSelectAllChange = (i) => {
|
|
1709
|
+
const { onSelectedItemsChange: s, items: r, selectedItems: o = [], uniqueItemKey: l } = this.props, { filteredItems: c } = this.state, h = (c || r || []).map(l);
|
|
1710
|
+
s ? s(i ? St([...o, ...h], z).sort() : wt(o, h)) : console.warn("ReactableWithClientSidePagination: onSelectedItemsChange property is missing");
|
|
1711
|
+
}, this.areSelectedAll = () => {
|
|
1712
|
+
const { items: i, selectedItems: s, uniqueItemKey: r } = this.props, { filteredItems: o } = this.state;
|
|
1713
|
+
return !!s && (o || i || []).every((c) => s.some((h) => h === r(c)));
|
|
1714
|
+
};
|
|
1715
|
+
let n = Me;
|
|
1716
|
+
e.paginationSettings ? n = e.paginationSettings : e.initialPaginationSettings ? (console.warn('initialPaginationSettings is deprecated! Please use "paginationSettings" instead'), n = e.initialPaginationSettings) : console.error("Missing pagination settings!"), this.state = {
|
|
1717
|
+
paginationSettings: n || Me,
|
|
1718
|
+
filterSettings: {},
|
|
1719
|
+
filteredItems: null
|
|
1720
|
+
};
|
|
1721
|
+
}
|
|
1722
|
+
componentDidUpdate(e) {
|
|
1723
|
+
const { items: n } = this.props, { items: i } = e, s = this.props.paginationSettings || this.props.initialPaginationSettings, r = e.paginationSettings || e.initialPaginationSettings;
|
|
1724
|
+
n && i && n.length !== i.length && this.calculatePageNumber(n, this.state.paginationSettings), s && !z(s, r) && this.setState(
|
|
1725
|
+
{
|
|
1726
|
+
paginationSettings: s
|
|
1727
|
+
},
|
|
1728
|
+
() => this.handleChangePage(0)
|
|
1729
|
+
);
|
|
1730
|
+
}
|
|
1731
|
+
render() {
|
|
1732
|
+
const {
|
|
1733
|
+
uniqueItemKey: e,
|
|
1734
|
+
isLoading: n,
|
|
1735
|
+
columnDefs: i,
|
|
1736
|
+
rowDef: s,
|
|
1737
|
+
tableName: r,
|
|
1738
|
+
clickable: o,
|
|
1739
|
+
selectable: l,
|
|
1740
|
+
selectedItems: c,
|
|
1741
|
+
onChangeSize: h
|
|
1742
|
+
} = this.props, d = l ? An(
|
|
1743
|
+
i,
|
|
1744
|
+
this.handleSelectChange,
|
|
1745
|
+
this.handleSelectAllChange,
|
|
1746
|
+
this.areSelectedAll(),
|
|
1747
|
+
c || [],
|
|
1748
|
+
e
|
|
1749
|
+
) : i;
|
|
1750
|
+
return /* @__PURE__ */ a(
|
|
1751
|
+
En,
|
|
1752
|
+
{
|
|
1753
|
+
columnDefs: d,
|
|
1754
|
+
rowDef: s,
|
|
1755
|
+
uniqueItemKey: e,
|
|
1756
|
+
paginationSettings: this.state.paginationSettings,
|
|
1757
|
+
onChangePage: this.handleChangePage,
|
|
1758
|
+
onChangeSize: h,
|
|
1759
|
+
onSort: this.handleSort,
|
|
1760
|
+
onFilter: this.handleFilter,
|
|
1761
|
+
tableName: r,
|
|
1762
|
+
pageable: this.getPageable(),
|
|
1763
|
+
isLoading: n,
|
|
1764
|
+
clickable: o,
|
|
1765
|
+
"data-testid": this.props["data-testid"]
|
|
1766
|
+
}
|
|
1767
|
+
);
|
|
1768
|
+
}
|
|
1769
|
+
}
|
|
1770
|
+
const W = class W extends $.Component {
|
|
1771
|
+
constructor() {
|
|
1772
|
+
super(...arguments), this.state = {
|
|
1773
|
+
files: []
|
|
1774
|
+
}, this.handleDrop = (e, n) => {
|
|
1775
|
+
!this.props.multiple && e.length > 1 || n.length > 0 || setTimeout(() => this.selectFile(e), 100);
|
|
1776
|
+
}, this.selectFile = (e) => {
|
|
1777
|
+
const { onSelectFile: n, onChange: i } = this.props;
|
|
1778
|
+
e.forEach((r) => {
|
|
1779
|
+
r.preview = URL.createObjectURL(r);
|
|
1780
|
+
});
|
|
1781
|
+
const s = [...this.state.files, ...e];
|
|
1782
|
+
this.setState({ files: s }), i?.(s), n && e.forEach((r) => {
|
|
1783
|
+
n(r);
|
|
1784
|
+
});
|
|
1785
|
+
}, this.handleRemoveFile = (e) => {
|
|
1786
|
+
const { files: n } = this.state;
|
|
1787
|
+
if (e) {
|
|
1788
|
+
e.preview && window.URL.revokeObjectURL(e.preview);
|
|
1789
|
+
const i = n.filter((s) => s !== e);
|
|
1790
|
+
this.setState({ files: i }), this.props.onChange?.(i), this.props.onRemoveFile?.(e);
|
|
1791
|
+
}
|
|
1792
|
+
};
|
|
1793
|
+
}
|
|
1794
|
+
render() {
|
|
1795
|
+
const { files: e } = this.state, {
|
|
1796
|
+
accept: n,
|
|
1797
|
+
previewComponent: i,
|
|
1798
|
+
dropHint: s,
|
|
1799
|
+
hoverHint: r,
|
|
1800
|
+
acceptHint: o,
|
|
1801
|
+
rejectHint: l,
|
|
1802
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1803
|
+
onChange: c,
|
|
1804
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1805
|
+
onRemoveFile: h,
|
|
1806
|
+
onDownloadFile: d,
|
|
1807
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1808
|
+
onSelectFile: u,
|
|
1809
|
+
onDropRejected: f,
|
|
1810
|
+
onDropAccepted: p,
|
|
1811
|
+
maxSize: g,
|
|
1812
|
+
multiple: v,
|
|
1813
|
+
...w
|
|
1814
|
+
} = this.props, y = s || W.defaultProps.dropHint, C = r || W.defaultProps.hoverHint, x = o || W.defaultProps.acceptHint, k = l || W.defaultProps.rejectHint;
|
|
1815
|
+
return /* @__PURE__ */ m(
|
|
1816
|
+
"div",
|
|
1817
|
+
{
|
|
1818
|
+
...w,
|
|
1819
|
+
className: P("di upload", {
|
|
1820
|
+
clickable: !e.length,
|
|
1821
|
+
hasContent: !!e.length
|
|
1822
|
+
}),
|
|
1823
|
+
children: [
|
|
1824
|
+
!!i && e.map((I, M) => /* @__PURE__ */ a(
|
|
1825
|
+
i,
|
|
1826
|
+
{
|
|
1827
|
+
file: I,
|
|
1828
|
+
onRemoveFile: () => this.handleRemoveFile(I),
|
|
1829
|
+
onDownloadFile: d ? () => d(I) : void 0
|
|
1830
|
+
},
|
|
1831
|
+
M
|
|
1832
|
+
)),
|
|
1833
|
+
(v || !e.length) && /* @__PURE__ */ a(
|
|
1834
|
+
Pt,
|
|
1835
|
+
{
|
|
1836
|
+
accept: n,
|
|
1837
|
+
multiple: v ?? !1,
|
|
1838
|
+
onDrop: this.handleDrop,
|
|
1839
|
+
onDropRejected: f,
|
|
1840
|
+
onDropAccepted: p,
|
|
1841
|
+
maxSize: g || 1 / 0,
|
|
1842
|
+
children: ({ getRootProps: I, getInputProps: M, isDragAccept: E, isDragReject: S, isDragActive: T }) => /* @__PURE__ */ m(
|
|
1843
|
+
"div",
|
|
1844
|
+
{
|
|
1845
|
+
className: P("drag-drop-text-container", {
|
|
1846
|
+
active: T,
|
|
1847
|
+
accept: E,
|
|
1848
|
+
reject: S
|
|
1849
|
+
}),
|
|
1850
|
+
...I(),
|
|
1851
|
+
children: [
|
|
1852
|
+
/* @__PURE__ */ a("input", { ...M() }),
|
|
1853
|
+
/* @__PURE__ */ a("p", { className: "drag-drop-hint", children: /* @__PURE__ */ a(A, { i18nKey: y.id, children: y.defaultValue }) }),
|
|
1854
|
+
/* @__PURE__ */ a("p", { className: "drag-drop-hover-hint", children: /* @__PURE__ */ a(A, { i18nKey: C.id, children: C.defaultValue }) }),
|
|
1855
|
+
/* @__PURE__ */ a("p", { className: "drag-drop-accept", children: /* @__PURE__ */ a(A, { i18nKey: x.id, children: x.defaultValue }) }),
|
|
1856
|
+
/* @__PURE__ */ a("p", { className: "drag-drop-reject", children: /* @__PURE__ */ a(A, { i18nKey: k.id, children: k.defaultValue }) })
|
|
1857
|
+
]
|
|
1858
|
+
}
|
|
1859
|
+
)
|
|
1860
|
+
}
|
|
1861
|
+
)
|
|
1862
|
+
]
|
|
1863
|
+
}
|
|
1864
|
+
);
|
|
1865
|
+
}
|
|
1866
|
+
};
|
|
1867
|
+
W.defaultProps = {
|
|
1868
|
+
dropHint: {
|
|
1869
|
+
id: "fileUpload.dropHint",
|
|
1870
|
+
defaultValue: "Drop file here, or click to browse ..."
|
|
1871
|
+
},
|
|
1872
|
+
hoverHint: {
|
|
1873
|
+
id: "fileUpload.hoverHint",
|
|
1874
|
+
defaultValue: "Drop file here, or click to browse ..."
|
|
1875
|
+
},
|
|
1876
|
+
acceptHint: {
|
|
1877
|
+
id: "fileUpload.acceptHint",
|
|
1878
|
+
defaultValue: "This file type can be uploaded"
|
|
1879
|
+
},
|
|
1880
|
+
rejectHint: {
|
|
1881
|
+
id: "fileUpload.rejectHint",
|
|
1882
|
+
defaultValue: "This file type cannot be uploaded"
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
let de = W;
|
|
1886
|
+
const Dn = ({ url: t, imageSize: e, onRemoveFile: n, onDragOver: i, onDownloadFile: s }) => /* @__PURE__ */ a("div", { className: "di upload preview-container", onDragOver: i, children: /* @__PURE__ */ m(
|
|
1887
|
+
"div",
|
|
1888
|
+
{
|
|
1889
|
+
className: "preview",
|
|
1890
|
+
style: {
|
|
1891
|
+
backgroundImage: `url(${t})`,
|
|
1892
|
+
...e && { backgroundSize: e }
|
|
1893
|
+
},
|
|
1894
|
+
children: [
|
|
1895
|
+
/* @__PURE__ */ a("button", { className: "action-button", onClick: n, "data-testid": "delete-button", children: /* @__PURE__ */ a(A, { i18nKey: "imageUpload.remove", children: "Remove" }) }),
|
|
1896
|
+
s && /* @__PURE__ */ a("button", { className: "action-button", onClick: s, "data-testid": "download-button", children: /* @__PURE__ */ a(A, { i18nKey: "imageUpload.download", children: "Download" }) })
|
|
1897
|
+
]
|
|
1898
|
+
}
|
|
1899
|
+
) });
|
|
1900
|
+
class ms extends V {
|
|
1901
|
+
constructor() {
|
|
1902
|
+
super(...arguments), this.state = {
|
|
1903
|
+
dragOverPreview: !1,
|
|
1904
|
+
file: null
|
|
1905
|
+
}, this.handleDragOver = () => {
|
|
1906
|
+
this.setState({
|
|
1907
|
+
dragOverPreview: !0
|
|
1908
|
+
});
|
|
1909
|
+
};
|
|
1910
|
+
}
|
|
1911
|
+
componentDidUpdate(e) {
|
|
1912
|
+
e.imageUrl !== this.props.imageUrl && this.setState({
|
|
1913
|
+
dragOverPreview: !1
|
|
1914
|
+
});
|
|
1915
|
+
}
|
|
1916
|
+
render() {
|
|
1917
|
+
const { accept: e, imageUrl: n, imageSize: i, onSelectFile: s, onRemoveFile: r, onDownloadFile: o, ...l } = this.props, { dragOverPreview: c, file: h } = this.state;
|
|
1918
|
+
return n && !c && h ? /* @__PURE__ */ a(
|
|
1919
|
+
Dn,
|
|
1920
|
+
{
|
|
1921
|
+
url: n,
|
|
1922
|
+
imageSize: i,
|
|
1923
|
+
onRemoveFile: () => r?.(h),
|
|
1924
|
+
onDownloadFile: o ? () => o(h) : void 0,
|
|
1925
|
+
onDragOver: this.handleDragOver
|
|
1926
|
+
}
|
|
1927
|
+
) : /* @__PURE__ */ a(
|
|
1928
|
+
de,
|
|
1929
|
+
{
|
|
1930
|
+
...l,
|
|
1931
|
+
onRemoveFile: (d) => {
|
|
1932
|
+
this.setState({ file: null }), r?.(d);
|
|
1933
|
+
},
|
|
1934
|
+
onSelectFile: (d) => {
|
|
1935
|
+
this.setState({ file: d }), s?.(d);
|
|
1936
|
+
},
|
|
1937
|
+
accept: e || {
|
|
1938
|
+
"image/*": [".jpeg", ".jpg", ".png", ".webp"]
|
|
1939
|
+
}
|
|
1940
|
+
}
|
|
1941
|
+
);
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
const Ln = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDYuMC1jMDAyIDc5LjE2NDQ2MCwgMjAyMC8wNS8xMi0xNjowNDoxNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDplMjI2NGVmOC0xY2Q1LTgyNDQtOWQ5NS0yZDBjNGMxMmZkM2UiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDhENjczMThERTNEMTFFQUIwNjJCODBDQ0RGM0I4QkEiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDhENjczMTdERTNEMTFFQUIwNjJCODBDQ0RGM0I4QkEiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDIxLjIgKFdpbmRvd3MpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NTcyODQ4NjktNjA0NC0xZjQ2LTg2OWMtMjBlYzMwMTA0MWE2IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmUyMjY0ZWY4LTFjZDUtODI0NC05ZDk1LTJkMGM0YzEyZmQzZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PnOjy94AAABySURBVHjapFMJDsAgCFvJ/v/lbkvYEQ4naGIiShtaASS3lSWjRwA8d4/gAutxSLJrsr3/6kKUc0uPKnDgioQS2BKUwY8HBhzFoc+/31ipAF0JkoDY7cQyiWTmzJLADZN2HIwn2dD5Ct5EzBiK1XE+BBgAvZQfJzDjL2UAAAAASUVORK5CYII=", vs = ({
|
|
1945
|
+
parentPageLink: t,
|
|
1946
|
+
title: e,
|
|
1947
|
+
subPagePathPrefixArray: n,
|
|
1948
|
+
subPagePathPrefix: i,
|
|
1949
|
+
subtitle: s,
|
|
1950
|
+
children: r
|
|
1951
|
+
}) => {
|
|
1952
|
+
const { push: o } = fe(), { pathname: l } = ge(), { t: c } = B(), h = () => {
|
|
1953
|
+
i ? o(l.substring(0, l.lastIndexOf(i))) : n ? n.forEach((u) => {
|
|
1954
|
+
l.includes(u) && o(l.substring(0, l.lastIndexOf(u)));
|
|
1955
|
+
}) : o(l.substring(0, l.lastIndexOf("/")));
|
|
1956
|
+
}, d = (u) => {
|
|
1957
|
+
if (typeof u == "string")
|
|
1958
|
+
return u;
|
|
1959
|
+
{
|
|
1960
|
+
const { id: f, defaultValue: p } = u;
|
|
1961
|
+
return c(f, {
|
|
1962
|
+
defaultValue: p
|
|
1963
|
+
});
|
|
1964
|
+
}
|
|
1965
|
+
};
|
|
1966
|
+
return /* @__PURE__ */ m("h1", { className: "di header", children: [
|
|
1967
|
+
t && /* @__PURE__ */ a(
|
|
1968
|
+
F,
|
|
1969
|
+
{
|
|
1970
|
+
onClick: h,
|
|
1971
|
+
style: {
|
|
1972
|
+
marginRight: "15px"
|
|
1973
|
+
},
|
|
1974
|
+
children: /* @__PURE__ */ a(
|
|
1975
|
+
"img",
|
|
1976
|
+
{
|
|
1977
|
+
src: Ln,
|
|
1978
|
+
alt: c("general.navigation.goBack", {
|
|
1979
|
+
defaultValue: "Go Back"
|
|
1980
|
+
})
|
|
1981
|
+
}
|
|
1982
|
+
)
|
|
1983
|
+
}
|
|
1984
|
+
),
|
|
1985
|
+
/* @__PURE__ */ a("span", { children: d(e) }),
|
|
1986
|
+
s && /* @__PURE__ */ a("span", { className: "search-result-count", children: d(s) }),
|
|
1987
|
+
r
|
|
1988
|
+
] });
|
|
1989
|
+
}, oe = (t, e) => {
|
|
1990
|
+
try {
|
|
1991
|
+
return b.tz(e, t).format("HH:mm");
|
|
1992
|
+
} catch (n) {
|
|
1993
|
+
return console.error("DateTimeInput: Error while extracting time from date", n), "00:00";
|
|
1994
|
+
}
|
|
1995
|
+
}, Te = Fe(
|
|
1996
|
+
({ timestamp: t, timezone: e, warning: n, readOnly: i = !1, onChange: s, ...r }, o) => {
|
|
1997
|
+
const [l, c] = N(oe(e, t)), h = l ?? oe(e, t);
|
|
1998
|
+
R(() => {
|
|
1999
|
+
c(oe(e, t));
|
|
2000
|
+
}, [e, t]);
|
|
2001
|
+
function d(p, g) {
|
|
2002
|
+
const v = b.tz(t, e), w = b.tz(p, e).set("hour", v.hour()).set("minute", v.minute()).set("second", v.second()).set("millisecond", v.millisecond());
|
|
2003
|
+
s(w.valueOf(), g);
|
|
2004
|
+
}
|
|
2005
|
+
function u(p, g) {
|
|
2006
|
+
if (g) {
|
|
2007
|
+
const [v, w] = p.split(":").map(Number), y = b.tz(t, e).set("hours", v).set("minutes", w);
|
|
2008
|
+
s(y.valueOf(), !0);
|
|
2009
|
+
}
|
|
2010
|
+
c(p);
|
|
2011
|
+
}
|
|
2012
|
+
function f() {
|
|
2013
|
+
l && /^[0-9]:[0-5][0-9]$/.test(l) && u(l.padStart(5, "0"), !0);
|
|
2014
|
+
}
|
|
2015
|
+
return /* @__PURE__ */ m("span", { className: `di date-time-input ${n ? "with-warning" : ""}`, children: [
|
|
2016
|
+
/* @__PURE__ */ a(
|
|
2017
|
+
et,
|
|
2018
|
+
{
|
|
2019
|
+
...r,
|
|
2020
|
+
ref: o,
|
|
2021
|
+
value: t,
|
|
2022
|
+
timezone: e,
|
|
2023
|
+
onChange: d,
|
|
2024
|
+
readOnly: i
|
|
2025
|
+
}
|
|
2026
|
+
),
|
|
2027
|
+
/* @__PURE__ */ a(
|
|
2028
|
+
ee,
|
|
2029
|
+
{
|
|
2030
|
+
"data-testid": "time-input",
|
|
2031
|
+
value: h,
|
|
2032
|
+
onChange: u,
|
|
2033
|
+
pattern: /^(([01][0-9])|2[0-3]):[0-5][0-9]$/,
|
|
2034
|
+
required: !0,
|
|
2035
|
+
invalidStyle: {
|
|
2036
|
+
borderColor: "red"
|
|
2037
|
+
},
|
|
2038
|
+
placeholder: "00:00",
|
|
2039
|
+
className: "time",
|
|
2040
|
+
onBlur: f,
|
|
2041
|
+
disabled: i
|
|
2042
|
+
}
|
|
2043
|
+
)
|
|
2044
|
+
] });
|
|
2045
|
+
}
|
|
2046
|
+
);
|
|
2047
|
+
class ys extends V {
|
|
2048
|
+
constructor() {
|
|
2049
|
+
super(...arguments), this.state = {
|
|
2050
|
+
cache: {},
|
|
2051
|
+
currentItem: null
|
|
2052
|
+
}, this.selectRef = je(), this.transformBackendItemToSelectItem = (e) => {
|
|
2053
|
+
const { labelKey: n, valueKey: i } = this.props;
|
|
2054
|
+
return {
|
|
2055
|
+
value: e[i],
|
|
2056
|
+
label: e[n]
|
|
2057
|
+
};
|
|
2058
|
+
}, this.reloadItemFromCache = () => {
|
|
2059
|
+
const { value: e } = this.props, { currentItem: n, cache: i } = this.state;
|
|
2060
|
+
return e && (!n || n.value !== e) && i[e] ? (this.setState({
|
|
2061
|
+
currentItem: i[e]
|
|
2062
|
+
}), !0) : !1;
|
|
2063
|
+
}, this.addBackendItemToCache = (e) => {
|
|
2064
|
+
if (e) {
|
|
2065
|
+
const n = this.transformBackendItemToSelectItem(e), i = n.value;
|
|
2066
|
+
this.setState(({ cache: s }) => ({
|
|
2067
|
+
cache: { ...s, [i]: n }
|
|
2068
|
+
}));
|
|
2069
|
+
}
|
|
2070
|
+
}, this.fetchOptions = async (e, n) => {
|
|
2071
|
+
const { searchByQuery: i } = this.props;
|
|
2072
|
+
try {
|
|
2073
|
+
const { content: s, number: r, totalPages: o } = await i(e, n.length);
|
|
2074
|
+
return {
|
|
2075
|
+
options: s.map(this.transformBackendItemToSelectItem),
|
|
2076
|
+
hasMore: r < o - 1
|
|
2077
|
+
};
|
|
2078
|
+
} catch (s) {
|
|
2079
|
+
return console.error("Error fetching options:", s), { hasMore: !1, options: [] };
|
|
2080
|
+
}
|
|
2081
|
+
}, this.handleChange = (e) => {
|
|
2082
|
+
const { onChange: n } = this.props;
|
|
2083
|
+
if (e) {
|
|
2084
|
+
const i = e.value;
|
|
2085
|
+
this.setState(
|
|
2086
|
+
({ cache: s }) => ({
|
|
2087
|
+
cache: { ...s, [i]: e }
|
|
2088
|
+
}),
|
|
2089
|
+
() => {
|
|
2090
|
+
n(i);
|
|
2091
|
+
}
|
|
2092
|
+
);
|
|
2093
|
+
} else
|
|
2094
|
+
n(null);
|
|
2095
|
+
};
|
|
2096
|
+
}
|
|
2097
|
+
componentDidMount() {
|
|
2098
|
+
const { value: e, searchById: n } = this.props;
|
|
2099
|
+
e && n(e).then(this.addBackendItemToCache), this.props["data-testid"] && setTimeout(() => {
|
|
2100
|
+
this.selectRef?.current?.controlRef && this.selectRef.current.controlRef.setAttribute("data-testid", this.props["data-testid"]);
|
|
2101
|
+
}, 0);
|
|
2102
|
+
}
|
|
2103
|
+
componentDidUpdate() {
|
|
2104
|
+
const { value: e, searchById: n } = this.props, { currentItem: i } = this.state;
|
|
2105
|
+
e && (!i || i.value !== e) ? this.reloadItemFromCache() || n(e).then(this.addBackendItemToCache) : !e && i && this.setState({
|
|
2106
|
+
currentItem: null
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2109
|
+
render() {
|
|
2110
|
+
const { clearable: e, noResultsMessage: n, disabled: i, menuPortalTarget: s } = this.props, { currentItem: r } = this.state;
|
|
2111
|
+
return /* @__PURE__ */ a(
|
|
2112
|
+
Vt,
|
|
2113
|
+
{
|
|
2114
|
+
selectRef: this.selectRef,
|
|
2115
|
+
className: "select-search-container",
|
|
2116
|
+
classNamePrefix: "select-search",
|
|
2117
|
+
isClearable: e,
|
|
2118
|
+
noResultsText: n,
|
|
2119
|
+
value: r,
|
|
2120
|
+
onChange: this.handleChange,
|
|
2121
|
+
loadOptions: this.fetchOptions,
|
|
2122
|
+
isDisabled: i,
|
|
2123
|
+
menuPortalTarget: s,
|
|
2124
|
+
placeholder: this.props.placeholder
|
|
2125
|
+
}
|
|
2126
|
+
);
|
|
2127
|
+
}
|
|
2128
|
+
}
|
|
2129
|
+
class bs extends $.PureComponent {
|
|
2130
|
+
constructor() {
|
|
2131
|
+
super(...arguments), this.createClickHandler = (e) => () => {
|
|
2132
|
+
const { onClick: n } = this.props;
|
|
2133
|
+
n && n(), e();
|
|
2134
|
+
};
|
|
2135
|
+
}
|
|
2136
|
+
render() {
|
|
2137
|
+
const { disabled: e, icon: n, children: i, linkTo: s } = this.props, r = this.props["data-testid"];
|
|
2138
|
+
return /* @__PURE__ */ a(tt.Consumer, { children: ({ toggleMenu: o }) => s ? /* @__PURE__ */ m(
|
|
2139
|
+
We,
|
|
2140
|
+
{
|
|
2141
|
+
"data-testid": r,
|
|
2142
|
+
to: s,
|
|
2143
|
+
className: `item ${e ? "disabled" : ""}`,
|
|
2144
|
+
onClick: this.createClickHandler(o),
|
|
2145
|
+
children: [
|
|
2146
|
+
n && /* @__PURE__ */ a("span", { className: "item-icon", children: n }),
|
|
2147
|
+
/* @__PURE__ */ a("span", { className: "item-text", children: i })
|
|
2148
|
+
]
|
|
2149
|
+
}
|
|
2150
|
+
) : /* @__PURE__ */ m(
|
|
2151
|
+
"div",
|
|
2152
|
+
{
|
|
2153
|
+
"data-testid": r,
|
|
2154
|
+
className: `item ${e ? "disabled" : ""}`,
|
|
2155
|
+
onClick: this.createClickHandler(o),
|
|
2156
|
+
children: [
|
|
2157
|
+
n && /* @__PURE__ */ a("span", { className: "item-icon", children: n }),
|
|
2158
|
+
/* @__PURE__ */ a("span", { className: "item-text", children: i })
|
|
2159
|
+
]
|
|
2160
|
+
}
|
|
2161
|
+
) });
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
const Oe = 3600 * 1e3;
|
|
2165
|
+
function Pn({ period: t, onChange: e, readOnly: n, locale: i, timezone: s }) {
|
|
2166
|
+
const [r, o] = N(""), l = D(void 0), c = D(null), h = new Date(t.tsStart), d = new Date(t.tsEnd);
|
|
2167
|
+
function u(g) {
|
|
2168
|
+
l.current && clearTimeout(l.current), o(g), l.current = setTimeout(() => o(""), 1e3);
|
|
2169
|
+
}
|
|
2170
|
+
function f(g, v) {
|
|
2171
|
+
if (g) {
|
|
2172
|
+
const w = t.tsEnd && g > t.tsEnd, y = w ? g + Oe : t.tsEnd, C = {
|
|
2173
|
+
tsStart: g,
|
|
2174
|
+
tsEnd: y
|
|
2175
|
+
};
|
|
2176
|
+
z(C, t) || e(C), !v && c.current && c.current.focus(), w && u("date-to");
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
function p(g) {
|
|
2180
|
+
if (g) {
|
|
2181
|
+
const v = t.tsStart && g < t.tsStart, y = {
|
|
2182
|
+
tsStart: v ? g - Oe : t.tsStart,
|
|
2183
|
+
tsEnd: g
|
|
2184
|
+
};
|
|
2185
|
+
z(y, t) || e(y), v && u("date-from");
|
|
2186
|
+
}
|
|
2187
|
+
}
|
|
2188
|
+
return /* @__PURE__ */ m("span", { className: "inputs", children: [
|
|
2189
|
+
/* @__PURE__ */ a("span", { "data-testid": "from-wrapper", children: /* @__PURE__ */ a(
|
|
2190
|
+
Te,
|
|
2191
|
+
{
|
|
2192
|
+
timestamp: t.tsStart,
|
|
2193
|
+
onChange: f,
|
|
2194
|
+
warning: r === "date-from",
|
|
2195
|
+
selectsStart: !0,
|
|
2196
|
+
startDate: h,
|
|
2197
|
+
endDate: d,
|
|
2198
|
+
readOnly: n,
|
|
2199
|
+
locale: i,
|
|
2200
|
+
timezone: s
|
|
2201
|
+
}
|
|
2202
|
+
) }),
|
|
2203
|
+
" - ",
|
|
2204
|
+
/* @__PURE__ */ a("span", { "data-testid": "to-wrapper", children: /* @__PURE__ */ a(
|
|
2205
|
+
Te,
|
|
2206
|
+
{
|
|
2207
|
+
ref: c,
|
|
2208
|
+
timestamp: t.tsEnd,
|
|
2209
|
+
onChange: p,
|
|
2210
|
+
warning: r === "date-to",
|
|
2211
|
+
selectsEnd: !0,
|
|
2212
|
+
startDate: h,
|
|
2213
|
+
endDate: d,
|
|
2214
|
+
readOnly: n,
|
|
2215
|
+
locale: i,
|
|
2216
|
+
timezone: s
|
|
2217
|
+
}
|
|
2218
|
+
) })
|
|
2219
|
+
] });
|
|
2220
|
+
}
|
|
2221
|
+
class Vn extends V {
|
|
2222
|
+
constructor(e) {
|
|
2223
|
+
super(e), this.tdMonth = (s) => {
|
|
2224
|
+
const { selectedMonth: r, selectedYear: o, displayedYear: l } = this.state;
|
|
2225
|
+
return /* @__PURE__ */ a(
|
|
2226
|
+
"td",
|
|
2227
|
+
{
|
|
2228
|
+
"data-testid": `month-${s}-button`,
|
|
2229
|
+
onClick: () => {
|
|
2230
|
+
this.props.onChange(s, l), this.setState({
|
|
2231
|
+
selectedMonth: s,
|
|
2232
|
+
selectedYear: l
|
|
2233
|
+
});
|
|
2234
|
+
},
|
|
2235
|
+
className: P({ selected: s === r && l === o }),
|
|
2236
|
+
children: b(`${o}/${s.toString().padStart(2, "0")}/01`, "YYYY/MM/DD").format("MMM")
|
|
2237
|
+
}
|
|
2238
|
+
);
|
|
2239
|
+
};
|
|
2240
|
+
const n = e.month !== null && e.month !== void 0 ? e.month : b().month() + 1, i = e.year !== null && e.year !== void 0 ? e.year : b().year();
|
|
2241
|
+
this.state = {
|
|
2242
|
+
selectedMonth: n,
|
|
2243
|
+
selectedYear: i,
|
|
2244
|
+
displayedYear: i
|
|
2245
|
+
};
|
|
2246
|
+
}
|
|
2247
|
+
render() {
|
|
2248
|
+
const { displayedYear: e } = this.state;
|
|
2249
|
+
return /* @__PURE__ */ m("div", { className: "di monthpicker", children: [
|
|
2250
|
+
/* @__PURE__ */ m("div", { className: "pager", children: [
|
|
2251
|
+
/* @__PURE__ */ a(
|
|
2252
|
+
"span",
|
|
2253
|
+
{
|
|
2254
|
+
className: "page-nav prev",
|
|
2255
|
+
onClick: () => {
|
|
2256
|
+
this.setState({
|
|
2257
|
+
displayedYear: e - 1
|
|
2258
|
+
});
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
),
|
|
2262
|
+
/* @__PURE__ */ a("span", { className: "page-nav info", children: e }),
|
|
2263
|
+
/* @__PURE__ */ a(
|
|
2264
|
+
"span",
|
|
2265
|
+
{
|
|
2266
|
+
className: "page-nav next",
|
|
2267
|
+
onClick: () => {
|
|
2268
|
+
this.setState({
|
|
2269
|
+
displayedYear: e + 1
|
|
2270
|
+
});
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
)
|
|
2274
|
+
] }),
|
|
2275
|
+
/* @__PURE__ */ a("div", { className: "months", children: /* @__PURE__ */ a(
|
|
2276
|
+
"table",
|
|
2277
|
+
{
|
|
2278
|
+
style: {
|
|
2279
|
+
margin: "auto"
|
|
2280
|
+
},
|
|
2281
|
+
children: /* @__PURE__ */ m("tbody", { children: [
|
|
2282
|
+
/* @__PURE__ */ m("tr", { children: [
|
|
2283
|
+
this.tdMonth(1),
|
|
2284
|
+
this.tdMonth(2),
|
|
2285
|
+
this.tdMonth(3)
|
|
2286
|
+
] }),
|
|
2287
|
+
/* @__PURE__ */ m("tr", { children: [
|
|
2288
|
+
this.tdMonth(4),
|
|
2289
|
+
this.tdMonth(5),
|
|
2290
|
+
this.tdMonth(6)
|
|
2291
|
+
] }),
|
|
2292
|
+
/* @__PURE__ */ m("tr", { children: [
|
|
2293
|
+
this.tdMonth(7),
|
|
2294
|
+
this.tdMonth(8),
|
|
2295
|
+
this.tdMonth(9)
|
|
2296
|
+
] }),
|
|
2297
|
+
/* @__PURE__ */ m("tr", { children: [
|
|
2298
|
+
this.tdMonth(10),
|
|
2299
|
+
this.tdMonth(11),
|
|
2300
|
+
this.tdMonth(12)
|
|
2301
|
+
] })
|
|
2302
|
+
] })
|
|
2303
|
+
}
|
|
2304
|
+
) })
|
|
2305
|
+
] });
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
const Fn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cdefs%3e%3cstyle%3e%20.cls-1%20{%20fill:%20%23fff;%20}%20%3c/style%3e%3c/defs%3e%3cg%3e%3cg%3e%3crect%20class='cls-1'%20x='3.5'%20y='7.5'%20width='2'%20height='2'/%3e%3cpath%20d='M5,8V9H4V8H5M6,7H3v3H6V7Z'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%207%208%207%208%208%209%208%209%207%209%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='10'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='11%207%2010%207%2010%208%2011%208%2011%207%2011%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='12'%20y='7'%20width='1'%20height='1'/%3e%3cpolygon%20points='13%207%2012%207%2012%208%2013%208%2013%207%2013%207'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='9'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%209%208%209%208%2010%209%2010%209%209%209%209'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='8'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='9%2011%208%2011%208%2012%209%2012%209%2011%209%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='6'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='7%2011%206%2011%206%2012%207%2012%207%2011%207%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='4'%20y='11'%20width='1'%20height='1'/%3e%3cpolygon%20points='5%2011%204%2011%204%2012%205%2012%205%2011%205%2011'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-1'%20x='10.5'%20y='9.5'%20width='2'%20height='2'/%3e%3cpath%20d='M12,10v1H11V10h1m1-1H10v3h3V9Z'/%3e%3c/g%3e%3cpath%20d='M15.31,2H.69A.69.69,0,0,0,0,2.69V14.31A.69.69,0,0,0,.69,15H15.31a.69.69,0,0,0,.69-.69V2.69A.69.69,0,0,0,15.31,2ZM14,13H2V6H14Z'/%3e%3c/g%3e%3crect%20x='3'%20width='3'%20height='2'/%3e%3crect%20x='10'%20width='3'%20height='2'/%3e%3c/svg%3e", Bn = "data:image/svg+xml,%3csvg%20id='Layer_1'%20data-name='Layer%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3e%3cpolygon%20points='7.5%2010%204%206%2011%206%207.5%2010'/%3e%3c/svg%3e";
|
|
2309
|
+
b.extend(Ye);
|
|
2310
|
+
b.extend(Ze);
|
|
2311
|
+
function O(t, e) {
|
|
2312
|
+
return t ? b.tz(e, t) : b(e);
|
|
2313
|
+
}
|
|
2314
|
+
function nt(t) {
|
|
2315
|
+
return {
|
|
2316
|
+
tsStart: O(t).startOf("day").valueOf(),
|
|
2317
|
+
tsEnd: O(t).endOf("day").valueOf()
|
|
2318
|
+
};
|
|
2319
|
+
}
|
|
2320
|
+
function it(t) {
|
|
2321
|
+
return {
|
|
2322
|
+
tsStart: O(t).subtract(1, "day").startOf("day").valueOf(),
|
|
2323
|
+
tsEnd: O(t).subtract(1, "day").endOf("day").valueOf()
|
|
2324
|
+
};
|
|
2325
|
+
}
|
|
2326
|
+
function st(t) {
|
|
2327
|
+
return {
|
|
2328
|
+
tsStart: O(t).startOf("week").valueOf(),
|
|
2329
|
+
tsEnd: O(t).endOf("week").valueOf()
|
|
2330
|
+
};
|
|
2331
|
+
}
|
|
2332
|
+
function rt(t) {
|
|
2333
|
+
return {
|
|
2334
|
+
tsStart: O(t).startOf("month").valueOf(),
|
|
2335
|
+
tsEnd: O(t).endOf("month").valueOf()
|
|
2336
|
+
};
|
|
2337
|
+
}
|
|
2338
|
+
function at(t, e) {
|
|
2339
|
+
return {
|
|
2340
|
+
tsStart: O(e, t).startOf("day").valueOf(),
|
|
2341
|
+
tsEnd: O(e, t).endOf("day").valueOf()
|
|
2342
|
+
};
|
|
2343
|
+
}
|
|
2344
|
+
function ot(t, e) {
|
|
2345
|
+
return {
|
|
2346
|
+
tsStart: O(e, t).startOf("month").valueOf(),
|
|
2347
|
+
tsEnd: O(e, t).endOf("month").valueOf()
|
|
2348
|
+
};
|
|
2349
|
+
}
|
|
2350
|
+
function he(t, e) {
|
|
2351
|
+
const n = O(e).subtract(t - 1, "days").startOf("day").valueOf(), i = b().endOf("day").valueOf();
|
|
2352
|
+
return { tsStart: n, tsEnd: i };
|
|
2353
|
+
}
|
|
2354
|
+
const jn = 1e3 * 60 * 60 * 24;
|
|
2355
|
+
function Hn({ tsStart: t, tsEnd: e }) {
|
|
2356
|
+
return Math.round((e - t + 1) / jn);
|
|
2357
|
+
}
|
|
2358
|
+
function Gn({ onChange: t, onShowCustomPeriod: e, periodName: n, timezone: i }) {
|
|
2359
|
+
const [s, r] = N(!1), [o, l] = N(!1), [c, h] = N(!1), [d, u] = N(Date.now());
|
|
2360
|
+
function f(C) {
|
|
2361
|
+
t(C), r(!1), e && e(!1);
|
|
2362
|
+
}
|
|
2363
|
+
function p(C) {
|
|
2364
|
+
f(at(C ?? Date.now(), i)), l(!1), u(C ?? void 0);
|
|
2365
|
+
}
|
|
2366
|
+
function g(C, x) {
|
|
2367
|
+
f(
|
|
2368
|
+
ot(
|
|
2369
|
+
b().year(x).month(C - 1).valueOf(),
|
|
2370
|
+
i
|
|
2371
|
+
)
|
|
2372
|
+
), h(!1);
|
|
2373
|
+
}
|
|
2374
|
+
function v() {
|
|
2375
|
+
l(!o), h(!1);
|
|
2376
|
+
}
|
|
2377
|
+
function w() {
|
|
2378
|
+
h(!c), l(!1);
|
|
2379
|
+
}
|
|
2380
|
+
function y() {
|
|
2381
|
+
r(!1), e && e(!0);
|
|
2382
|
+
}
|
|
2383
|
+
return /* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
2384
|
+
te,
|
|
2385
|
+
{
|
|
2386
|
+
open: s,
|
|
2387
|
+
onOpenChange: r,
|
|
2388
|
+
handler: /* @__PURE__ */ a(
|
|
2389
|
+
F,
|
|
2390
|
+
{
|
|
2391
|
+
"data-testid": "time-period-menu-button",
|
|
2392
|
+
title: {
|
|
2393
|
+
id: "trend.calendarMenu.calendar.timePeriod",
|
|
2394
|
+
defaultValue: "Time Period"
|
|
2395
|
+
},
|
|
2396
|
+
children: /* @__PURE__ */ m(Ve, { children: [
|
|
2397
|
+
/* @__PURE__ */ a("img", { src: Fn, alt: "calendar icon", style: { width: 16, height: 16 } }),
|
|
2398
|
+
" ",
|
|
2399
|
+
!!n && /* @__PURE__ */ m("span", { children: [
|
|
2400
|
+
" ",
|
|
2401
|
+
n,
|
|
2402
|
+
" "
|
|
2403
|
+
] }),
|
|
2404
|
+
/* @__PURE__ */ a("img", { src: Bn, alt: "triangle down", style: { width: 16, height: 16 } })
|
|
2405
|
+
] })
|
|
2406
|
+
}
|
|
2407
|
+
),
|
|
2408
|
+
children: /* @__PURE__ */ a("div", { className: "di multimenu period-picker-multimenu", children: /* @__PURE__ */ m("div", { className: `drop bottom ${s ? "show" : ""}`, children: [
|
|
2409
|
+
/* @__PURE__ */ a("div", { className: `left-box ${o ? "show" : ""}`, children: /* @__PURE__ */ a(et, { inline: !0, value: d, onChange: p }) }),
|
|
2410
|
+
/* @__PURE__ */ a("div", { className: `left-box ${c ? "show" : ""}`, children: /* @__PURE__ */ a(Vn, { onChange: g }) }),
|
|
2411
|
+
/* @__PURE__ */ m("div", { className: "right-box", children: [
|
|
2412
|
+
/* @__PURE__ */ a(
|
|
2413
|
+
"div",
|
|
2414
|
+
{
|
|
2415
|
+
className: "item",
|
|
2416
|
+
"data-testid": "today-button",
|
|
2417
|
+
onClick: () => f(nt(i)),
|
|
2418
|
+
children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.today", children: "Today" }) })
|
|
2419
|
+
}
|
|
2420
|
+
),
|
|
2421
|
+
/* @__PURE__ */ a(
|
|
2422
|
+
"div",
|
|
2423
|
+
{
|
|
2424
|
+
className: "item",
|
|
2425
|
+
"data-testid": "yesterday-button",
|
|
2426
|
+
onClick: () => f(it(i)),
|
|
2427
|
+
children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.yesterday", children: "Yesterday" }) })
|
|
2428
|
+
}
|
|
2429
|
+
),
|
|
2430
|
+
/* @__PURE__ */ m("div", { className: "item", children: [
|
|
2431
|
+
/* @__PURE__ */ a(
|
|
2432
|
+
"div",
|
|
2433
|
+
{
|
|
2434
|
+
"data-testid": "last-7-days-button",
|
|
2435
|
+
className: "item-text",
|
|
2436
|
+
onClick: () => f(he(7, i)),
|
|
2437
|
+
children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.lastSevenDays", children: "Last 7 days" })
|
|
2438
|
+
}
|
|
2439
|
+
),
|
|
2440
|
+
/* @__PURE__ */ a("div", { className: "item-more icon triangle", children: /* @__PURE__ */ a("div", { className: "item-more-submenu", children: [2, 3, 5, 10, 14, 30].map((C) => /* @__PURE__ */ a(
|
|
2441
|
+
"div",
|
|
2442
|
+
{
|
|
2443
|
+
className: "subitem",
|
|
2444
|
+
onClick: () => f(he(C, i)),
|
|
2445
|
+
children: C
|
|
2446
|
+
},
|
|
2447
|
+
C
|
|
2448
|
+
)) }) })
|
|
2449
|
+
] }),
|
|
2450
|
+
/* @__PURE__ */ a(
|
|
2451
|
+
"div",
|
|
2452
|
+
{
|
|
2453
|
+
className: "item",
|
|
2454
|
+
"data-testid": "current-week-button",
|
|
2455
|
+
onClick: () => f(st(i)),
|
|
2456
|
+
children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.currentWeek", children: "Curr. Week" }) })
|
|
2457
|
+
}
|
|
2458
|
+
),
|
|
2459
|
+
/* @__PURE__ */ a(
|
|
2460
|
+
"div",
|
|
2461
|
+
{
|
|
2462
|
+
className: "item",
|
|
2463
|
+
"data-testid": "current-month-button",
|
|
2464
|
+
onClick: () => f(rt(i)),
|
|
2465
|
+
children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.currentMonth", children: "Curr. Month" }) })
|
|
2466
|
+
}
|
|
2467
|
+
),
|
|
2468
|
+
/* @__PURE__ */ a("div", { className: "item", "data-testid": "day-button", onClick: v, children: /* @__PURE__ */ m("div", { className: "item-text", children: [
|
|
2469
|
+
/* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.day", children: "Day" }),
|
|
2470
|
+
/* @__PURE__ */ a("div", { className: "item-more icon dots" })
|
|
2471
|
+
] }) }),
|
|
2472
|
+
/* @__PURE__ */ a("div", { className: "item", "data-testid": "month-button", onClick: w, children: /* @__PURE__ */ m("div", { className: "item-text", children: [
|
|
2473
|
+
/* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.month", children: "Month" }),
|
|
2474
|
+
/* @__PURE__ */ a("div", { className: "item-more icon dots" })
|
|
2475
|
+
] }) }),
|
|
2476
|
+
e !== void 0 && /* @__PURE__ */ a("div", { className: "item", "data-testid": "from-to-button", onClick: y, children: /* @__PURE__ */ a("div", { className: "item-text", children: /* @__PURE__ */ a(A, { i18nKey: "trend.calendarMenu.timePeriod.fromto", children: "From/to" }) }) })
|
|
2477
|
+
] })
|
|
2478
|
+
] }) })
|
|
2479
|
+
}
|
|
2480
|
+
) });
|
|
2481
|
+
}
|
|
2482
|
+
function U(t, e) {
|
|
2483
|
+
return t.tsStart === e.tsStart && t.tsEnd === e.tsEnd;
|
|
2484
|
+
}
|
|
2485
|
+
function Yn(t, e) {
|
|
2486
|
+
const { t: n } = B();
|
|
2487
|
+
if (U(t, nt(e)))
|
|
2488
|
+
return n("trend.calendarMenu.timePeriod.today", { defaultValue: "Today" });
|
|
2489
|
+
if (U(t, it(e)))
|
|
2490
|
+
return n("trend.calendarMenu.timePeriod.yesterday", { defaultValue: "Yesterday" });
|
|
2491
|
+
if (U(t, st(e)))
|
|
2492
|
+
return n("trend.calendarMenu.timePeriod.currentWeek", { defaultValue: "Curr. Week" });
|
|
2493
|
+
if (U(t, rt(e)))
|
|
2494
|
+
return n("trend.calendarMenu.timePeriod.currentMonth", { defaultValue: "Curr. Month" });
|
|
2495
|
+
if (U(t, at((t.tsStart + t.tsEnd) / 2, e)))
|
|
2496
|
+
return n("trend.calendarMenu.timePeriod.day", { defaultValue: "Day" });
|
|
2497
|
+
if (U(t, ot((t.tsStart + t.tsEnd) / 2, e)))
|
|
2498
|
+
return n("trend.calendarMenu.timePeriod.month", { defaultValue: "Month" });
|
|
2499
|
+
const i = Hn(t);
|
|
2500
|
+
if (U(t, he(i, e)))
|
|
2501
|
+
return n("trend.calendarMenu.timePeriod.lastDays", {
|
|
2502
|
+
defaultValue: `Last ${i} days`,
|
|
2503
|
+
days: i
|
|
2504
|
+
});
|
|
2505
|
+
}
|
|
2506
|
+
function Ss({
|
|
2507
|
+
period: t,
|
|
2508
|
+
onChange: e,
|
|
2509
|
+
inputsHiddenByDefault: n,
|
|
2510
|
+
menuHidden: i,
|
|
2511
|
+
readOnly: s,
|
|
2512
|
+
locale: r,
|
|
2513
|
+
defaultPeriodName: o,
|
|
2514
|
+
timezone: l,
|
|
2515
|
+
...c
|
|
2516
|
+
}) {
|
|
2517
|
+
const [h, d] = N(!n), u = Yn(t, l) ?? o;
|
|
2518
|
+
return /* @__PURE__ */ m("div", { className: "di period-picker", "data-testid": c["data-testid"], children: [
|
|
2519
|
+
(!n || h) && /* @__PURE__ */ a(Pn, { period: t, onChange: e, locale: r, readOnly: s, timezone: l }),
|
|
2520
|
+
i || s || /* @__PURE__ */ a(
|
|
2521
|
+
Gn,
|
|
2522
|
+
{
|
|
2523
|
+
periodName: u,
|
|
2524
|
+
onShowCustomPeriod: n ? d : void 0,
|
|
2525
|
+
onChange: e,
|
|
2526
|
+
timezone: l
|
|
2527
|
+
}
|
|
2528
|
+
)
|
|
2529
|
+
] });
|
|
2530
|
+
}
|
|
2531
|
+
const Zn = 500, Ee = (t) => Array.from(t.querySelectorAll("[id]")).map((e) => e.getAttribute("id")).reduce((e, n) => (n && (e[n] = e[n] + 1 || 1), e), {}), Un = (t) => {
|
|
2532
|
+
const e = Ee(document), n = Ee(t);
|
|
2533
|
+
return Object.keys(n).filter((i) => n[i] < e[i]);
|
|
2534
|
+
};
|
|
2535
|
+
function Wn(t, e) {
|
|
2536
|
+
const n = setTimeout(() => {
|
|
2537
|
+
e && e(Un(t));
|
|
2538
|
+
}, Zn);
|
|
2539
|
+
return () => clearTimeout(n);
|
|
2540
|
+
}
|
|
2541
|
+
const lt = "http://www.w3.org/2000/svg";
|
|
2542
|
+
function zn(t, { hoverColor: e, internalLink: n, link: i }, s, r) {
|
|
2543
|
+
const o = Qn(t);
|
|
2544
|
+
if (!o) return;
|
|
2545
|
+
const l = `a${Ht(8)}`;
|
|
2546
|
+
t.classList.add("anchor", l), e && s?.sheet && s.sheet.insertRule(
|
|
2547
|
+
`.di.svg-image .anchor.${l}:hover, .di.svg-image .anchor.${l}:hover * { stroke: ${e} !important; }`
|
|
2548
|
+
), o.setAttributeNS(lt, "xlink:href", "#"), o.addEventListener(
|
|
2549
|
+
"click",
|
|
2550
|
+
() => n && r ? r(i) : window.open(i, "_newtab")
|
|
2551
|
+
);
|
|
2552
|
+
}
|
|
2553
|
+
function Qn(t) {
|
|
2554
|
+
const e = t.parentNode;
|
|
2555
|
+
if (!e)
|
|
2556
|
+
return null;
|
|
2557
|
+
const n = e.childNodes;
|
|
2558
|
+
if (!n)
|
|
2559
|
+
return null;
|
|
2560
|
+
const i = Array.from(n).findIndex((o) => o === t), s = document.createElementNS(lt, "a");
|
|
2561
|
+
s.appendChild(t);
|
|
2562
|
+
const r = n[i] || null;
|
|
2563
|
+
return r ? e.insertBefore(s, r) : e.appendChild(s), s;
|
|
2564
|
+
}
|
|
2565
|
+
const $n = (t) => t.replace(/<svg:svg/g, "<svg").replace(/<\/svg:svg/g, "</svg"), ye = (t) => {
|
|
2566
|
+
const e = new DOMParser(), n = $n(atob(t.replace("data:image/svg+xml;base64,", "")));
|
|
2567
|
+
return e.parseFromString(n, "image/svg+xml");
|
|
2568
|
+
};
|
|
2569
|
+
function ws(t, e) {
|
|
2570
|
+
return ye(t).querySelectorAll(`[id^="${e}"]`);
|
|
2571
|
+
}
|
|
2572
|
+
const Jn = (t) => {
|
|
2573
|
+
const e = t.filter(({ type: s }) => s === "positionX" || s === "positionY"), n = t.filter(({ type: s }) => s !== "positionX" && s !== "positionY"), i = e.reduce(
|
|
2574
|
+
(s, r) => r.type === "positionX" ? { ...s, x: r } : r.type === "positionY" ? { ...s, y: r } : s,
|
|
2575
|
+
{
|
|
2576
|
+
x: null,
|
|
2577
|
+
y: null
|
|
2578
|
+
}
|
|
2579
|
+
);
|
|
2580
|
+
return i.x && i.y ? n.concat([
|
|
2581
|
+
{
|
|
2582
|
+
type: "positionXY",
|
|
2583
|
+
target: i.x.target,
|
|
2584
|
+
positionX: i.x.position,
|
|
2585
|
+
positionY: i.y.position
|
|
2586
|
+
}
|
|
2587
|
+
]) : i.x ? n.concat([i.x]) : i.y ? n.concat([i.y]) : n;
|
|
2588
|
+
}, Kn = (t) => {
|
|
2589
|
+
const e = t.reduce(
|
|
2590
|
+
(n, i) => ({
|
|
2591
|
+
...n,
|
|
2592
|
+
[i.target]: [...n[i.target] || [], i]
|
|
2593
|
+
}),
|
|
2594
|
+
{}
|
|
2595
|
+
);
|
|
2596
|
+
return Object.keys(e).reduce(
|
|
2597
|
+
(n, i) => n.concat(Jn(e[i])),
|
|
2598
|
+
[]
|
|
2599
|
+
);
|
|
2600
|
+
}, X = (t) => Math.max(0, Math.min(100, t));
|
|
2601
|
+
function Xn(t, e, n) {
|
|
2602
|
+
const i = Qe(n), s = t.getAttribute("id") || "", r = i.findOne(`#${s}`), o = i.findOne(`#${s}-boundaries`), l = o ? o.bbox() : i.viewbox();
|
|
2603
|
+
e.type === "positionX" ? r.x(l.x + X(e.position) * l.width / 100) : e.type === "positionY" ? r.y(l.y + X(e.position) * l.height / 100) : (r.x(l.x + X(e.positionX) * l.width / 100), r.y(l.y + X(e.positionY) * l.height / 100));
|
|
2604
|
+
}
|
|
2605
|
+
function qn(t, e, n, i, s) {
|
|
2606
|
+
const o = ye(e).querySelector("svg");
|
|
2607
|
+
return o ? (t.style.height = "100%", t.innerHTML = "", o.style.height = "100%", o.style.width = "100%", o.classList.add("di", "svg-image"), o.getAttribute("viewBox") || o.setAttribute("viewBox", ""), o.getAttribute("preserveAspectRatio") || o.setAttribute("preserveAspectRatio", "xMidYMid"), t.appendChild(o), _n(o, n, i, s), o) : null;
|
|
2608
|
+
}
|
|
2609
|
+
function _n(t, e, n, i) {
|
|
2610
|
+
if (!(!e || !e.length))
|
|
2611
|
+
for (const s of ti(Kn(e))) {
|
|
2612
|
+
const r = t.querySelector(`[id=${s.target}]`);
|
|
2613
|
+
r && ei(r, s, t, n, i);
|
|
2614
|
+
}
|
|
2615
|
+
}
|
|
2616
|
+
function ei(t, e, n, i, s) {
|
|
2617
|
+
switch (e.type) {
|
|
2618
|
+
case "visibility":
|
|
2619
|
+
t.setAttribute("visibility", e.visible ? "visible" : "hidden");
|
|
2620
|
+
break;
|
|
2621
|
+
case "text": {
|
|
2622
|
+
const r = t.querySelector("tspan");
|
|
2623
|
+
r ? r.textContent = e.text : t.textContent = e.text;
|
|
2624
|
+
break;
|
|
2625
|
+
}
|
|
2626
|
+
case "color": {
|
|
2627
|
+
const { color: r } = e, o = (l) => {
|
|
2628
|
+
l.setAttribute("fill", r), l.style.fill = r;
|
|
2629
|
+
};
|
|
2630
|
+
o(t), t.querySelectorAll("g, path").forEach(o);
|
|
2631
|
+
break;
|
|
2632
|
+
}
|
|
2633
|
+
case "hyperlink":
|
|
2634
|
+
zn(t, e, i, s);
|
|
2635
|
+
break;
|
|
2636
|
+
case "eventListener":
|
|
2637
|
+
t.addEventListener(e.eventType, e.listener, e.options);
|
|
2638
|
+
break;
|
|
2639
|
+
case "classNames":
|
|
2640
|
+
t.classList.add(...e.classNames);
|
|
2641
|
+
break;
|
|
2642
|
+
case "positionX":
|
|
2643
|
+
case "positionY":
|
|
2644
|
+
case "positionXY":
|
|
2645
|
+
Xn(t, e, n);
|
|
2646
|
+
break;
|
|
2647
|
+
case "rotation": {
|
|
2648
|
+
Qe(t).rotate(e.degrees);
|
|
2649
|
+
break;
|
|
2650
|
+
}
|
|
2651
|
+
default:
|
|
2652
|
+
throw new Error("Unknown modification");
|
|
2653
|
+
}
|
|
2654
|
+
}
|
|
2655
|
+
function ti(t) {
|
|
2656
|
+
return t.sort(({ type: e }, { type: n }) => e !== n && n === "rotation" ? -1 : 1);
|
|
2657
|
+
}
|
|
2658
|
+
function ni() {
|
|
2659
|
+
const t = D(null);
|
|
2660
|
+
return R(() => {
|
|
2661
|
+
const e = document.createElement("style");
|
|
2662
|
+
return e.appendChild(document.createTextNode("")), document && document.head && document.head.appendChild(e), t.current = e, () => {
|
|
2663
|
+
document && document.head && e && document.head.removeChild(e);
|
|
2664
|
+
};
|
|
2665
|
+
}, []), t.current;
|
|
2666
|
+
}
|
|
2667
|
+
function Cs({ imageData: t, modifications: e, onConflict: n }) {
|
|
2668
|
+
const i = D(null), s = ni(), { push: r } = fe();
|
|
2669
|
+
return R(() => {
|
|
2670
|
+
const { current: o } = i;
|
|
2671
|
+
if (o && t) {
|
|
2672
|
+
const l = qn(o, t, e, s, r);
|
|
2673
|
+
if (l && n)
|
|
2674
|
+
return Wn(l, n);
|
|
2675
|
+
}
|
|
2676
|
+
}, [t, e, n, r, s]), /* @__PURE__ */ a("div", { ref: i });
|
|
2677
|
+
}
|
|
2678
|
+
const ii = (t) => {
|
|
2679
|
+
try {
|
|
2680
|
+
return ye(t).querySelector("svg");
|
|
2681
|
+
} catch {
|
|
2682
|
+
return null;
|
|
2683
|
+
}
|
|
2684
|
+
}, As = (t) => {
|
|
2685
|
+
const e = ii(t);
|
|
2686
|
+
return !!e && !!e.style;
|
|
2687
|
+
};
|
|
2688
|
+
function ue(t, e, n) {
|
|
2689
|
+
return `<div>${t}</div><div>${e}: <strong>${n}</strong></div>`;
|
|
2690
|
+
}
|
|
2691
|
+
const H = {
|
|
2692
|
+
global: {
|
|
2693
|
+
useUTC: !1
|
|
2694
|
+
},
|
|
2695
|
+
chart: {
|
|
2696
|
+
style: {
|
|
2697
|
+
fontFamily: "arial"
|
|
2698
|
+
},
|
|
2699
|
+
plotBackgroundColor: null,
|
|
2700
|
+
plotBorderWidth: 0,
|
|
2701
|
+
plotShadow: !1
|
|
2702
|
+
},
|
|
2703
|
+
credits: {
|
|
2704
|
+
enabled: !1
|
|
2705
|
+
},
|
|
2706
|
+
legend: {
|
|
2707
|
+
align: "right",
|
|
2708
|
+
verticalAlign: "center",
|
|
2709
|
+
layout: "vertical"
|
|
2710
|
+
},
|
|
2711
|
+
title: {
|
|
2712
|
+
useHTML: !0
|
|
2713
|
+
},
|
|
2714
|
+
plotOptions: {
|
|
2715
|
+
pie: {
|
|
2716
|
+
dataLabels: {
|
|
2717
|
+
enabled: !1
|
|
2718
|
+
},
|
|
2719
|
+
showInLegend: !0,
|
|
2720
|
+
startAngle: -90,
|
|
2721
|
+
endAngle: 270
|
|
2722
|
+
}
|
|
2723
|
+
},
|
|
2724
|
+
tooltip: {
|
|
2725
|
+
useHTML: !0,
|
|
2726
|
+
formatter() {
|
|
2727
|
+
return ue("", this.point.name, this.point.y);
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
xAxis: {
|
|
2731
|
+
type: "category"
|
|
2732
|
+
},
|
|
2733
|
+
yAxis: {
|
|
2734
|
+
min: 0,
|
|
2735
|
+
title: {
|
|
2736
|
+
text: ""
|
|
2737
|
+
}
|
|
2738
|
+
},
|
|
2739
|
+
options: {
|
|
2740
|
+
lgo: 123
|
|
2741
|
+
}
|
|
2742
|
+
}, De = (t) => t ? {
|
|
2743
|
+
series: {
|
|
2744
|
+
cursor: "pointer",
|
|
2745
|
+
point: {
|
|
2746
|
+
events: {
|
|
2747
|
+
click: function() {
|
|
2748
|
+
t(this.index);
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
}
|
|
2753
|
+
} : {};
|
|
2754
|
+
class Ns extends V {
|
|
2755
|
+
constructor() {
|
|
2756
|
+
super(...arguments), this.state = {}, this.chart = null, this.ro = null, this.handleChart = (e) => {
|
|
2757
|
+
this.chart = e, this.ro = new ResizeObserver(() => {
|
|
2758
|
+
this.chart?.reflow();
|
|
2759
|
+
}), this.ro.observe(this.chart.renderTo);
|
|
2760
|
+
};
|
|
2761
|
+
}
|
|
2762
|
+
componentDidMount() {
|
|
2763
|
+
const { type: e, title: n, items: i, tooltipTitle: s, valueFormatter: r, onClick: o } = this.props;
|
|
2764
|
+
this.setState({
|
|
2765
|
+
...H,
|
|
2766
|
+
plotOptions: { ...H.plotOptions, ...De(o) },
|
|
2767
|
+
tooltip: {
|
|
2768
|
+
...H.tooltip,
|
|
2769
|
+
formatter() {
|
|
2770
|
+
const l = r || ((c) => c);
|
|
2771
|
+
return ue(s || "", this.point.name, l(this.point.y));
|
|
2772
|
+
}
|
|
2773
|
+
},
|
|
2774
|
+
legend: { ...H.legend, enabled: e === "pie" },
|
|
2775
|
+
yAxis: {
|
|
2776
|
+
...H.yAxis,
|
|
2777
|
+
enabled: e === "column",
|
|
2778
|
+
title: {
|
|
2779
|
+
text: n || ""
|
|
2780
|
+
}
|
|
2781
|
+
},
|
|
2782
|
+
series: [
|
|
2783
|
+
{
|
|
2784
|
+
type: e,
|
|
2785
|
+
innerSize: "50%",
|
|
2786
|
+
data: i.map(({ label: l, value: c }) => [l, c])
|
|
2787
|
+
}
|
|
2788
|
+
]
|
|
2789
|
+
}), setTimeout(() => {
|
|
2790
|
+
this.setState({
|
|
2791
|
+
title: { ...H.title, text: e === "column" ? "" : n || "" }
|
|
2792
|
+
});
|
|
2793
|
+
}, 0);
|
|
2794
|
+
}
|
|
2795
|
+
componentDidUpdate(e) {
|
|
2796
|
+
const { type: n, title: i, items: s, tooltipTitle: r, valueFormatter: o, onClick: l } = this.props;
|
|
2797
|
+
i !== e.title && this.setState({
|
|
2798
|
+
title: { ...this.state.title, text: n === "column" ? "" : i || "" },
|
|
2799
|
+
yAxis: {
|
|
2800
|
+
...this.state.yAxis,
|
|
2801
|
+
title: {
|
|
2802
|
+
text: i || ""
|
|
2803
|
+
}
|
|
2804
|
+
}
|
|
2805
|
+
}), n !== e.type && this.setState({
|
|
2806
|
+
legend: { ...this.state.legend, enabled: n === "pie" },
|
|
2807
|
+
title: {
|
|
2808
|
+
text: n === "column" ? "" : i || ""
|
|
2809
|
+
},
|
|
2810
|
+
yAxis: {
|
|
2811
|
+
...this.state.yAxis,
|
|
2812
|
+
enabled: n === "column",
|
|
2813
|
+
title: {
|
|
2814
|
+
text: n === "column" && i || ""
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
series: [
|
|
2818
|
+
{
|
|
2819
|
+
type: n,
|
|
2820
|
+
innerSize: "50%",
|
|
2821
|
+
data: s.map(({ label: c, value: h }) => [c, h])
|
|
2822
|
+
}
|
|
2823
|
+
]
|
|
2824
|
+
}), z(s, e.items) || this.setState({
|
|
2825
|
+
series: [
|
|
2826
|
+
{
|
|
2827
|
+
type: n,
|
|
2828
|
+
innerSize: "50%",
|
|
2829
|
+
data: s.map(({ label: c, value: h }) => [c, h])
|
|
2830
|
+
}
|
|
2831
|
+
]
|
|
2832
|
+
}), (r !== e.tooltipTitle || o !== e.valueFormatter || l !== e.onClick) && this.setState({
|
|
2833
|
+
tooltip: {
|
|
2834
|
+
...H.tooltip,
|
|
2835
|
+
formatter() {
|
|
2836
|
+
const c = o || ((h) => h);
|
|
2837
|
+
return ue(r || "", this.point.name, c(this.point.y));
|
|
2838
|
+
}
|
|
2839
|
+
},
|
|
2840
|
+
plotOptions: { ...H.plotOptions, ...De(l) }
|
|
2841
|
+
});
|
|
2842
|
+
}
|
|
2843
|
+
componentWillUnmount() {
|
|
2844
|
+
this.ro && this.chart?.renderTo && this.ro.unobserve(this.chart.renderTo), this.chart = null, this.ro = null;
|
|
2845
|
+
}
|
|
2846
|
+
render() {
|
|
2847
|
+
const e = this.props.updateOptions ? this.props.updateOptions(this.state) : this.state;
|
|
2848
|
+
return /* @__PURE__ */ a(
|
|
2849
|
+
Bt,
|
|
2850
|
+
{
|
|
2851
|
+
highcharts: Ft,
|
|
2852
|
+
options: e,
|
|
2853
|
+
containerProps: {
|
|
2854
|
+
className: this.props.className
|
|
2855
|
+
},
|
|
2856
|
+
callback: this.handleChart
|
|
2857
|
+
}
|
|
2858
|
+
);
|
|
2859
|
+
}
|
|
2860
|
+
}
|
|
2861
|
+
function si(t) {
|
|
2862
|
+
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
2863
|
+
}
|
|
2864
|
+
var K = {}, Le;
|
|
2865
|
+
function ri() {
|
|
2866
|
+
if (Le) return K;
|
|
2867
|
+
Le = 1, Object.defineProperty(K, "__esModule", {
|
|
2868
|
+
value: !0
|
|
2869
|
+
}), K.default = void 0;
|
|
2870
|
+
let t = (o) => +setTimeout(o, 16), e = (o) => clearTimeout(o);
|
|
2871
|
+
typeof window < "u" && "requestAnimationFrame" in window && (t = (o) => window.requestAnimationFrame(o), e = (o) => window.cancelAnimationFrame(o));
|
|
2872
|
+
let n = 0;
|
|
2873
|
+
const i = /* @__PURE__ */ new Map();
|
|
2874
|
+
function s(o) {
|
|
2875
|
+
i.delete(o);
|
|
2876
|
+
}
|
|
2877
|
+
const r = (o, l = 1) => {
|
|
2878
|
+
n += 1;
|
|
2879
|
+
const c = n;
|
|
2880
|
+
function h(d) {
|
|
2881
|
+
if (d === 0)
|
|
2882
|
+
s(c), o();
|
|
2883
|
+
else {
|
|
2884
|
+
const u = t(() => {
|
|
2885
|
+
h(d - 1);
|
|
2886
|
+
});
|
|
2887
|
+
i.set(c, u);
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
return h(l), c;
|
|
2891
|
+
};
|
|
2892
|
+
return r.cancel = (o) => {
|
|
2893
|
+
const l = i.get(o);
|
|
2894
|
+
return s(o), e(l);
|
|
2895
|
+
}, process.env.NODE_ENV !== "production" && (r.ids = () => i), K.default = r, K;
|
|
2896
|
+
}
|
|
2897
|
+
var ai = ri();
|
|
2898
|
+
const Pe = /* @__PURE__ */ si(ai), oi = (t) => {
|
|
2899
|
+
const { value: e, children: n, visible: i, tipFormatter: s = (d) => `${d}`, ...r } = t, o = D(null), l = D(null);
|
|
2900
|
+
function c() {
|
|
2901
|
+
l.current && Pe.cancel(l.current);
|
|
2902
|
+
}
|
|
2903
|
+
function h() {
|
|
2904
|
+
l.current = Pe(() => {
|
|
2905
|
+
o.current?.forceAlign();
|
|
2906
|
+
});
|
|
2907
|
+
}
|
|
2908
|
+
return R(() => (i ? h() : c(), c), [e, i]), /* @__PURE__ */ a(
|
|
2909
|
+
jt,
|
|
2910
|
+
{
|
|
2911
|
+
placement: "top",
|
|
2912
|
+
overlay: s(e),
|
|
2913
|
+
ref: o,
|
|
2914
|
+
align: { offset: [0, -10] },
|
|
2915
|
+
visible: i,
|
|
2916
|
+
...r,
|
|
2917
|
+
children: n
|
|
2918
|
+
}
|
|
2919
|
+
);
|
|
2920
|
+
}, li = ({ tipFormatter: t, tipProps: e, ...n }) => /* @__PURE__ */ a($e, { ...n, handleRender: (s, r) => /* @__PURE__ */ a(
|
|
2921
|
+
oi,
|
|
2922
|
+
{
|
|
2923
|
+
value: r.value,
|
|
2924
|
+
visible: r.dragging,
|
|
2925
|
+
tipFormatter: t,
|
|
2926
|
+
...e,
|
|
2927
|
+
children: s
|
|
2928
|
+
}
|
|
2929
|
+
) });
|
|
2930
|
+
function ci(t, e, n) {
|
|
2931
|
+
const [i, s] = N(null);
|
|
2932
|
+
R(() => {
|
|
2933
|
+
if (i) {
|
|
2934
|
+
const o = i.querySelector(".rc-slider-rail");
|
|
2935
|
+
if (!o) throw new Error(".rc-slider-rail element missing");
|
|
2936
|
+
const l = o?.querySelector(".disabled-area-element"), c = o.getBoundingClientRect().width;
|
|
2937
|
+
if (l)
|
|
2938
|
+
if (t == null)
|
|
2939
|
+
l.remove();
|
|
2940
|
+
else {
|
|
2941
|
+
const h = Math.round((n - t) / (n - e) * c);
|
|
2942
|
+
l.style.width = `${h}px`;
|
|
2943
|
+
}
|
|
2944
|
+
else if (t != null) {
|
|
2945
|
+
const h = Math.round((n - t) / (n - e) * c), d = document.createElement("div");
|
|
2946
|
+
d.classList.add("disabled-area-element"), d.style.width = `${h}px`, o.appendChild(d);
|
|
2947
|
+
}
|
|
2948
|
+
}
|
|
2949
|
+
}, [t, i, e, n]);
|
|
2950
|
+
const r = q(() => {
|
|
2951
|
+
if (i && t != null) {
|
|
2952
|
+
const o = i.querySelector(".rc-slider-rail");
|
|
2953
|
+
if (!o) throw new Error(".rc-slider-rail element missing");
|
|
2954
|
+
const l = o?.querySelector(".disabled-area-element"), c = o.getBoundingClientRect().width;
|
|
2955
|
+
if (l) {
|
|
2956
|
+
const h = Math.round((n - t) / (n - e) * c);
|
|
2957
|
+
l.style.width = `${h}px`;
|
|
2958
|
+
}
|
|
2959
|
+
}
|
|
2960
|
+
}, [t, n, e, i]);
|
|
2961
|
+
return R(() => {
|
|
2962
|
+
i && new ResizeObserver(() => r()).observe(i);
|
|
2963
|
+
}, [i, r]), s;
|
|
2964
|
+
}
|
|
2965
|
+
const xs = ({ min: t, max: e, step: n, value: i, tooltip: s = !0, labels: r, format: o, onChange: l, onChangeComplete: c, limit: h }) => {
|
|
2966
|
+
const d = ci(h, t, e), p = {
|
|
2967
|
+
min: t,
|
|
2968
|
+
max: e,
|
|
2969
|
+
step: n,
|
|
2970
|
+
value: i,
|
|
2971
|
+
onChange: (g) => {
|
|
2972
|
+
if (!l) return;
|
|
2973
|
+
const v = typeof g == "number" ? g : g[0], w = h != null ? Math.min(v, h) : v;
|
|
2974
|
+
l(w);
|
|
2975
|
+
},
|
|
2976
|
+
onChangeComplete: () => {
|
|
2977
|
+
c && c(i);
|
|
2978
|
+
},
|
|
2979
|
+
marks: r
|
|
2980
|
+
};
|
|
2981
|
+
return /* @__PURE__ */ a("div", { className: "di slider", ref: d, children: s ? /* @__PURE__ */ a(li, { ...p, className: "di slider with-tooltip", tipFormatter: o }) : /* @__PURE__ */ a($e, { ...p, className: "di slider" }) });
|
|
2982
|
+
};
|
|
2983
|
+
export {
|
|
2984
|
+
Ns as Chart,
|
|
2985
|
+
as as ColorPicker,
|
|
2986
|
+
vs as ContentHeader,
|
|
2987
|
+
et as DateInput,
|
|
2988
|
+
Te as DateTimeInput,
|
|
2989
|
+
de as FileUpload,
|
|
2990
|
+
os as GradientColorPicker,
|
|
2991
|
+
as as GridColorPicker,
|
|
2992
|
+
ms as ImageUpload,
|
|
2993
|
+
us as InfoBox,
|
|
2994
|
+
ns as MessageBoxContainer,
|
|
2995
|
+
gn as MultiMenu,
|
|
2996
|
+
bs as MultiMenuItem,
|
|
2997
|
+
vn as Pagination,
|
|
2998
|
+
Ss as PeriodPicker,
|
|
2999
|
+
En as Reactable,
|
|
3000
|
+
gs as ReactableWithClientSidePagination,
|
|
3001
|
+
hs as RouteLink,
|
|
3002
|
+
ps as RouteTabs,
|
|
3003
|
+
xn as SelectWithSearch,
|
|
3004
|
+
ys as SelectWithSearchAsync,
|
|
3005
|
+
xs as Slider,
|
|
3006
|
+
Cs as SvgImage,
|
|
3007
|
+
fs as TreeView,
|
|
3008
|
+
ls as UrnInput,
|
|
3009
|
+
ee as ValidatedTextInput,
|
|
3010
|
+
ws as getMutableNodeList,
|
|
3011
|
+
ii as getSvgElement,
|
|
3012
|
+
rs as getTreeNodePathById,
|
|
3013
|
+
ss as initializeTranslation,
|
|
3014
|
+
ts as messageBoxDismissAll,
|
|
3015
|
+
es as messageBoxDismissGroup,
|
|
3016
|
+
_i as messageBoxDismissSingle,
|
|
3017
|
+
qi as messageBoxError,
|
|
3018
|
+
Ki as messageBoxInfo,
|
|
3019
|
+
Ji as messageBoxSuccess,
|
|
3020
|
+
Xi as messageBoxWarn,
|
|
3021
|
+
is as nanoid10,
|
|
3022
|
+
$i as setGlobalErrorMessageBoxOptions,
|
|
3023
|
+
Ht as uuidV4,
|
|
3024
|
+
As as validateSvg,
|
|
3025
|
+
ds as withPrompt
|
|
3026
|
+
};
|
|
3027
|
+
//# sourceMappingURL=index.js.map
|