@devtron-labs/devtron-fe-common-lib 0.0.55-beta-7 → 0.0.56
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/.eslintrc.js +41 -0
- package/.github/workflows/release-package.yml +49 -0
- package/.prettierrc.js +7 -0
- package/dist/Common/AddCDButton/AddCDButton.d.ts +3 -3
- package/dist/Common/AddCDButton/index.d.ts +2 -2
- package/dist/Common/AddCDButton/types.d.ts +26 -26
- package/dist/Common/AddCDButton/utils.d.ts +2 -2
- package/dist/Common/Api.d.ts +5 -5
- package/dist/Common/AppStatus/AppStatus.d.ts +3 -3
- package/dist/Common/AppStatus/constants.d.ts +51 -51
- package/dist/Common/AppStatus/index.d.ts +1 -1
- package/dist/Common/AppStatus/types.d.ts +12 -12
- package/dist/Common/AppStatus/utils.d.ts +1 -1
- package/dist/Common/BreadCrumb/BreadCrumb.d.ts +5 -5
- package/dist/Common/BreadCrumb/BreadcrumbStore.d.ts +17 -17
- package/dist/Common/BreadCrumb/Types.d.ts +28 -28
- package/dist/Common/CIPipeline.Types.d.ts +265 -265
- package/dist/Common/ChartVersionAndTypeSelector.d.ts +4 -3
- package/dist/Common/Checkbox.d.ts +5 -5
- package/dist/Common/ClipboardButton/ClipboardButton.d.ts +10 -10
- package/dist/Common/ClipboardButton/types.d.ts +8 -8
- package/dist/Common/Common.service.d.ts +20 -20
- package/dist/Common/Constants.d.ts +75 -73
- package/dist/Common/CustomInput/CustomInput.d.ts +3 -3
- package/dist/Common/CustomInput/Types.d.ts +30 -29
- package/dist/Common/CustomInput/index.d.ts +2 -2
- package/dist/Common/CustomTagSelector/PropagateTagInfo.d.ts +4 -4
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +3 -3
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +3 -2
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +3 -2
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.d.ts +3 -2
- package/dist/Common/CustomTagSelector/TagSelector.utils.d.ts +12 -12
- package/dist/Common/CustomTagSelector/Types.d.ts +68 -68
- package/dist/Common/CustomTagSelector/ValidationRules.d.ts +10 -10
- package/dist/Common/CustomTagSelector/index.d.ts +6 -6
- package/dist/Common/DebouncedSearch/DebouncedSearch.d.ts +15 -17
- package/dist/Common/DebouncedSearch/Types.d.ts +14 -14
- package/dist/Common/DebouncedSearch/Utils.d.ts +1 -1
- package/dist/Common/DeleteComponentModal/DeleteComponent.d.ts +4 -4
- package/dist/Common/DeleteComponentModal/types.d.ts +15 -15
- package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +3 -3
- package/dist/Common/DevtronProgressing/index.d.ts +1 -1
- package/dist/Common/DevtronProgressing/types.d.ts +4 -4
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +9 -9
- package/dist/Common/Dialogs/DeleteDialog.d.ts +5 -5
- package/dist/Common/Dialogs/DialogForm.d.ts +14 -14
- package/dist/Common/Dialogs/ForceDeleteDialog.d.ts +3 -3
- package/dist/Common/Dialogs/Types.d.ts +45 -45
- package/dist/Common/Dialogs/index.d.ts +4 -4
- package/dist/Common/DraggableWrapper/DraggableButton.d.ts +3 -3
- package/dist/Common/DraggableWrapper/DraggableWrapper.d.ts +9 -9
- package/dist/Common/DraggableWrapper/index.d.ts +3 -3
- package/dist/Common/DraggableWrapper/types.d.ts +23 -23
- package/dist/Common/Drawer/Drawer.d.ts +16 -14
- package/dist/Common/EmptyState/EmptyState.d.ts +25 -28
- package/dist/Common/EmptyState/GenericEmptyState.d.ts +5 -4
- package/dist/Common/Error.d.ts +17 -17
- package/dist/Common/ErrorScreenNotFound.d.ts +3 -3
- package/dist/Common/Grid/Grid.d.ts +3 -3
- package/dist/Common/Grid/types.d.ts +10 -10
- package/dist/Common/Helper.d.ts +60 -65
- package/dist/Common/Hooks/UseClickOutside/UseClickOutside.d.ts +1 -1
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +6 -6
- package/dist/Common/Hooks/UseSuperAdmin/types.d.ts +3 -3
- package/dist/Common/Hooks/UseWindowSize/UseWindowSize.d.ts +4 -4
- package/dist/Common/Hooks/index.d.ts +3 -3
- package/dist/Common/ImageTags.Types.d.ts +40 -40
- package/dist/Common/ImageTags.d.ts +4 -3
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +5 -4
- package/dist/Common/Modals/Modal.d.ts +3 -3
- package/dist/Common/Modals/OpaqueModal.d.ts +12 -12
- package/dist/Common/Modals/VisibleModal.d.ts +15 -15
- package/dist/Common/Modals/VisibleModal2.d.ts +12 -12
- package/dist/Common/MultiSelectCustomization.d.ts +37 -37
- package/dist/Common/Policy.Types.d.ts +56 -56
- package/dist/Common/PopupMenu.d.ts +8 -8
- package/dist/Common/Progressing.d.ts +4 -4
- package/dist/Common/RJSF/Form.d.ts +4 -2
- package/dist/Common/RJSF/common/FieldRow.d.ts +6 -5
- package/dist/Common/RJSF/common/types.d.ts +8 -8
- package/dist/Common/RJSF/config.d.ts +4 -4
- package/dist/Common/RJSF/constants.d.ts +7 -7
- package/dist/Common/RJSF/index.d.ts +3 -3
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.d.ts +3 -2
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.d.ts +3 -2
- package/dist/Common/RJSF/templates/BaseInput.d.ts +3 -2
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +3 -2
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.d.ts +3 -2
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.d.ts +3 -2
- package/dist/Common/RJSF/templates/ButtonTemplates/index.d.ts +3 -3
- package/dist/Common/RJSF/templates/Description.d.ts +3 -2
- package/dist/Common/RJSF/templates/Field.d.ts +3 -2
- package/dist/Common/RJSF/templates/FieldErrorTemplate.d.ts +3 -2
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.d.ts +3 -2
- package/dist/Common/RJSF/templates/TitleField.d.ts +3 -2
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.d.ts +3 -2
- package/dist/Common/RJSF/templates/index.d.ts +10 -10
- package/dist/Common/RJSF/types.d.ts +3 -3
- package/dist/Common/RJSF/utils.d.ts +26 -25
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +3 -2
- package/dist/Common/RJSF/widgets/Select.d.ts +3 -2
- package/dist/Common/RJSF/widgets/index.d.ts +2 -2
- package/dist/Common/RadioGroup/RadioGroup.d.ts +17 -16
- package/dist/Common/RadioGroup.d.ts +8 -8
- package/dist/Common/Reload.d.ts +3 -3
- package/dist/Common/ResizableTextarea.d.ts +3 -3
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +4 -3
- package/dist/Common/ServerError.d.ts +15 -15
- package/dist/Common/TippyCustomized.d.ts +4 -3
- package/dist/Common/ToastBody.d.ts +23 -23
- package/dist/Common/Toggle/Toggle.d.ts +14 -12
- package/dist/Common/Types.d.ts +678 -690
- package/dist/Common/index.d.ts +48 -51
- package/dist/index.d.ts +1 -1
- package/dist/index.js +28649 -223
- package/package.json +19 -48
- package/rollup.config.js +31 -0
- package/src/Assets/Icon/ic-add.svg +3 -0
- package/src/Assets/Icon/ic-appstatus-cancelled.svg +6 -0
- package/src/Assets/Icon/ic-arrow-counter-clockwise.svg +5 -0
- package/src/Assets/Icon/ic-check.svg +5 -0
- package/src/Assets/Icon/ic-chevron-down.svg +5 -0
- package/src/Assets/Icon/ic-copy.svg +3 -0
- package/src/Assets/Icon/ic-cross.svg +3 -0
- package/src/Assets/Icon/ic-drag.svg +8 -0
- package/src/Assets/Icon/ic-enter.svg +3 -0
- package/src/Assets/Icon/ic-error-cross.svg +8 -0
- package/src/Assets/Icon/ic-error-exclamation.svg +6 -0
- package/src/Assets/Icon/ic-error-medium.svg +6 -0
- package/src/Assets/Icon/ic-help-outline.svg +3 -0
- package/src/Assets/Icon/ic-help.svg +3 -0
- package/src/Assets/Icon/ic-info-filled.svg +7 -0
- package/src/Assets/Icon/ic-info-outlined.svg +13 -0
- package/src/Assets/Icon/ic-minus.svg +3 -0
- package/src/Assets/Icon/ic-pencil.svg +3 -0
- package/src/Assets/Icon/ic-progressing.svg +6 -0
- package/src/Assets/Icon/ic-rotate-devtron.svg +103 -0
- package/src/Assets/Icon/ic-warning.svg +7 -0
- package/src/Assets/Icon/inject-tag.svg +5 -0
- package/src/Assets/Img/app-not-deployed.png +0 -0
- package/src/Assets/Img/delete-medium.svg +15 -0
- package/src/Assets/Img/ic-empty-error@2x.png +0 -0
- package/src/Assets/Img/ic-loading-failure.png +0 -0
- package/src/Assets/Img/ic-not-authorized.svg +62 -0
- package/src/Common/AddCDButton/AddCDButton.tsx +68 -0
- package/src/Common/AddCDButton/index.ts +2 -0
- package/src/Common/AddCDButton/types.ts +38 -0
- package/src/Common/AddCDButton/utils.tsx +35 -0
- package/src/Common/Api.ts +230 -0
- package/src/Common/AppStatus/AppStatus.tsx +64 -0
- package/src/Common/AppStatus/constants.ts +53 -0
- package/src/Common/AppStatus/index.ts +1 -0
- package/src/Common/AppStatus/types.ts +12 -0
- package/src/Common/AppStatus/utils.ts +14 -0
- package/src/Common/BreadCrumb/BreadCrumb.tsx +105 -0
- package/src/Common/BreadCrumb/BreadcrumbStore.tsx +25 -0
- package/src/Common/BreadCrumb/Types.ts +30 -0
- package/src/Common/CIPipeline.Types.ts +277 -0
- package/src/Common/ChartVersionAndTypeSelector.tsx +78 -0
- package/src/Common/Checkbox.tsx +36 -0
- package/src/Common/ClipboardButton/ClipboardButton.tsx +61 -0
- package/src/Common/ClipboardButton/__tests__/ClipboardButton.test.tsx +43 -0
- package/src/Common/ClipboardButton/types.ts +7 -0
- package/src/Common/Common.service.ts +315 -0
- package/src/Common/Constants.ts +254 -0
- package/src/Common/CustomInput/CustomInput.tsx +132 -0
- package/src/Common/CustomInput/Types.ts +31 -0
- package/src/Common/CustomInput/index.ts +2 -0
- package/src/Common/CustomTagSelector/PropagateTagInfo.tsx +46 -0
- package/src/Common/CustomTagSelector/ResizableTagTextArea.tsx +84 -0
- package/src/Common/CustomTagSelector/TagDetails.tsx +76 -0
- package/src/Common/CustomTagSelector/TagLabelSelect.tsx +61 -0
- package/src/Common/CustomTagSelector/TagLabelValueSelector.tsx +198 -0
- package/src/Common/CustomTagSelector/TagSelector.utils.ts +71 -0
- package/src/Common/CustomTagSelector/Types.ts +72 -0
- package/src/Common/CustomTagSelector/ValidationRules.ts +58 -0
- package/src/Common/CustomTagSelector/index.ts +6 -0
- package/src/Common/DebouncedSearch/DebouncedSearch.tsx +76 -0
- package/src/Common/DebouncedSearch/Types.ts +13 -0
- package/src/Common/DebouncedSearch/Utils.ts +19 -0
- package/src/Common/DebouncedSearch/__tests__/DebouncedSearch.test.tsx +61 -0
- package/src/Common/DeleteComponentModal/DeleteComponent.tsx +95 -0
- package/src/Common/DeleteComponentModal/types.ts +15 -0
- package/src/Common/DevtronProgressing/DevtronProgressing.tsx +11 -0
- package/src/Common/DevtronProgressing/index.ts +1 -0
- package/src/Common/DevtronProgressing/types.ts +4 -0
- package/src/Common/Dialogs/ConfirmationDialog.tsx +34 -0
- package/src/Common/Dialogs/DeleteDialog.tsx +69 -0
- package/src/Common/Dialogs/DialogForm.tsx +86 -0
- package/src/Common/Dialogs/ForceDeleteDialog.tsx +19 -0
- package/src/Common/Dialogs/Types.ts +47 -0
- package/src/Common/Dialogs/index.ts +4 -0
- package/src/Common/DraggableWrapper/DraggableButton.tsx +14 -0
- package/src/Common/DraggableWrapper/DraggableWrapper.tsx +116 -0
- package/src/Common/DraggableWrapper/index.ts +3 -0
- package/src/Common/DraggableWrapper/types.ts +27 -0
- package/src/Common/Drawer/Drawer.scss +40 -0
- package/src/Common/Drawer/Drawer.tsx +49 -0
- package/src/Common/EmptyState/EmptyState.tsx +42 -0
- package/src/Common/EmptyState/GenericEmptyState.tsx +81 -0
- package/src/Common/EmptyState/emptyState.scss +74 -0
- package/src/Common/Error.tsx +61 -0
- package/src/Common/ErrorScreenNotFound.tsx +31 -0
- package/src/Common/Grid/Grid.tsx +44 -0
- package/src/Common/Grid/types.ts +11 -0
- package/src/Common/Helper.tsx +561 -0
- package/src/Common/Hooks/UseClickOutside/UseClickOutside.tsx +15 -0
- package/src/Common/Hooks/UseSuperAdmin/UseSuperAdmin.tsx +24 -0
- package/src/Common/Hooks/UseSuperAdmin/types.ts +3 -0
- package/src/Common/Hooks/UseWindowSize/UseWindowSize.tsx +31 -0
- package/src/Common/Hooks/index.ts +3 -0
- package/src/Common/ImageTags.Types.ts +44 -0
- package/src/Common/ImageTags.tsx +586 -0
- package/src/Common/InfoColorBar/InfoColourbar.tsx +80 -0
- package/src/Common/InfoColorBar/infoColourBar.scss +28 -0
- package/src/Common/Modals/Modal.tsx +68 -0
- package/src/Common/Modals/OpaqueModal.tsx +36 -0
- package/src/Common/Modals/VisibleModal.tsx +55 -0
- package/src/Common/Modals/VisibleModal2.tsx +35 -0
- package/src/Common/MultiSelectCustomization.tsx +148 -0
- package/src/Common/Policy.Types.ts +63 -0
- package/src/Common/PopupMenu.tsx +199 -0
- package/src/Common/Progressing.tsx +53 -0
- package/src/Common/RJSF/Form.tsx +29 -0
- package/src/Common/RJSF/common/FieldRow.tsx +35 -0
- package/src/Common/RJSF/common/types.ts +9 -0
- package/src/Common/RJSF/config.ts +37 -0
- package/src/Common/RJSF/constants.ts +10 -0
- package/src/Common/RJSF/index.ts +3 -0
- package/src/Common/RJSF/rjsfForm.scss +18 -0
- package/src/Common/RJSF/templates/ArrayFieldItemTemplate.tsx +31 -0
- package/src/Common/RJSF/templates/ArrayFieldTemplate.tsx +78 -0
- package/src/Common/RJSF/templates/BaseInput.tsx +16 -0
- package/src/Common/RJSF/templates/ButtonTemplates/AddButton.tsx +18 -0
- package/src/Common/RJSF/templates/ButtonTemplates/RemoveButton.tsx +10 -0
- package/src/Common/RJSF/templates/ButtonTemplates/SubmitButton.tsx +18 -0
- package/src/Common/RJSF/templates/ButtonTemplates/index.ts +3 -0
- package/src/Common/RJSF/templates/Description.tsx +12 -0
- package/src/Common/RJSF/templates/Field.tsx +30 -0
- package/src/Common/RJSF/templates/FieldErrorTemplate.tsx +25 -0
- package/src/Common/RJSF/templates/ObjectFieldTemplate.tsx +105 -0
- package/src/Common/RJSF/templates/TitleField.tsx +9 -0
- package/src/Common/RJSF/templates/WrapIfAdditionalTemplate.tsx +51 -0
- package/src/Common/RJSF/templates/index.ts +10 -0
- package/src/Common/RJSF/types.ts +4 -0
- package/src/Common/RJSF/utils.ts +123 -0
- package/src/Common/RJSF/widgets/Checkbox.tsx +44 -0
- package/src/Common/RJSF/widgets/Select.tsx +77 -0
- package/src/Common/RJSF/widgets/index.ts +2 -0
- package/src/Common/RadioGroup/RadioGroup.tsx +105 -0
- package/src/Common/RadioGroup/radioGroup.scss +46 -0
- package/src/Common/RadioGroup.tsx +53 -0
- package/src/Common/Reload.tsx +23 -0
- package/src/Common/ResizableTextarea.tsx +73 -0
- package/src/Common/Security/ScanVulnerabilitiesTable.tsx +55 -0
- package/src/Common/Security/scanVulnerabilities.css +69 -0
- package/src/Common/ServerError.ts +31 -0
- package/src/Common/TippyCustomized.tsx +172 -0
- package/src/Common/ToastBody.tsx +62 -0
- package/src/Common/Toggle/Toggle.scss +78 -0
- package/src/Common/Toggle/Toggle.tsx +50 -0
- package/src/Common/Types.ts +751 -0
- package/src/Common/index.ts +48 -0
- package/src/custom.d.ts +13 -0
- package/src/index.ts +1 -0
- package/tsconfig.json +40 -0
- package/dist/CodeEditor-3c2aaef5.js +0 -103695
- package/dist/Common/AddCDButton/AddCDButton.js +0 -61
- package/dist/Common/AddCDButton/index.js +0 -6
- package/dist/Common/AddCDButton/types.js +0 -1
- package/dist/Common/AddCDButton/utils.js +0 -19
- package/dist/Common/Api.js +0 -167
- package/dist/Common/AppStatus/AppStatus.js +0 -37
- package/dist/Common/AppStatus/constants.js +0 -37
- package/dist/Common/AppStatus/index.js +0 -4
- package/dist/Common/AppStatus/types.js +0 -1
- package/dist/Common/AppStatus/utils.js +0 -8
- package/dist/Common/BreadCrumb/BreadCrumb.js +0 -71
- package/dist/Common/BreadCrumb/BreadcrumbStore.js +0 -22
- package/dist/Common/BreadCrumb/Types.js +0 -1
- package/dist/Common/CIPipeline.Types.js +0 -10
- package/dist/Common/ChartVersionAndTypeSelector.js +0 -61
- package/dist/Common/Checkbox.js +0 -28
- package/dist/Common/ClipboardButton/ClipboardButton.js +0 -40
- package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.d.ts +0 -1
- package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +0 -27
- package/dist/Common/ClipboardButton/types.js +0 -1
- package/dist/Common/CodeEditor/CodeEditor.d.ts +0 -47
- package/dist/Common/CodeEditor/CodeEditor.js +0 -15
- package/dist/Common/Common.service.js +0 -191
- package/dist/Common/Constants.js +0 -234
- package/dist/Common/CustomInput/CustomInput.js +0 -80
- package/dist/Common/CustomInput/Types.js +0 -1
- package/dist/Common/CustomInput/index.js +0 -4
- package/dist/Common/CustomTagSelector/PropagateTagInfo.js +0 -43
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +0 -58
- package/dist/Common/CustomTagSelector/TagDetails.js +0 -65
- package/dist/Common/CustomTagSelector/TagLabelSelect.js +0 -50
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +0 -121
- package/dist/Common/CustomTagSelector/TagSelector.utils.js +0 -61
- package/dist/Common/CustomTagSelector/Types.js +0 -1
- package/dist/Common/CustomTagSelector/ValidationRules.js +0 -35
- package/dist/Common/CustomTagSelector/index.js +0 -12
- package/dist/Common/DebouncedSearch/DebouncedSearch.js +0 -56
- package/dist/Common/DebouncedSearch/Types.js +0 -1
- package/dist/Common/DebouncedSearch/Utils.js +0 -19
- package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.d.ts +0 -1
- package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +0 -34
- package/dist/Common/DeleteComponentModal/DeleteComponent.js +0 -63
- package/dist/Common/DeleteComponentModal/types.js +0 -1
- package/dist/Common/DevtronProgressing/DevtronProgressing.js +0 -98
- package/dist/Common/DevtronProgressing/index.js +0 -4
- package/dist/Common/DevtronProgressing/types.js +0 -1
- package/dist/Common/Dialogs/ConfirmationDialog.js +0 -24
- package/dist/Common/Dialogs/DeleteDialog.js +0 -49
- package/dist/Common/Dialogs/DialogForm.js +0 -63
- package/dist/Common/Dialogs/ForceDeleteDialog.js +0 -23
- package/dist/Common/Dialogs/Types.js +0 -1
- package/dist/Common/Dialogs/index.js +0 -11
- package/dist/Common/DraggableWrapper/DraggableButton.js +0 -16
- package/dist/Common/DraggableWrapper/DraggableWrapper.js +0 -73
- package/dist/Common/DraggableWrapper/index.js +0 -8
- package/dist/Common/DraggableWrapper/types.js +0 -4
- package/dist/Common/Drawer/Drawer.js +0 -22
- package/dist/Common/EmptyState/EmptyState.js +0 -32
- package/dist/Common/EmptyState/GenericEmptyState.js +0 -53
- package/dist/Common/Error.js +0 -49
- package/dist/Common/ErrorScreenNotFound.js +0 -23
- package/dist/Common/Grid/Grid.js +0 -31
- package/dist/Common/Grid/types.js +0 -1
- package/dist/Common/Helper.js +0 -39
- package/dist/Common/Hooks/UseClickOutside/UseClickOutside.js +0 -14
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +0 -16
- package/dist/Common/Hooks/UseSuperAdmin/types.js +0 -1
- package/dist/Common/Hooks/UseWindowSize/UseWindowSize.js +0 -17
- package/dist/Common/Hooks/index.js +0 -8
- package/dist/Common/ImageTags.Types.js +0 -1
- package/dist/Common/ImageTags.js +0 -384
- package/dist/Common/InfoColorBar/InfoColourbar.js +0 -65
- package/dist/Common/Modals/Modal.js +0 -48
- package/dist/Common/Modals/OpaqueModal.js +0 -32
- package/dist/Common/Modals/VisibleModal.js +0 -31
- package/dist/Common/Modals/VisibleModal2.js +0 -31
- package/dist/Common/MultiSelectCustomization.js +0 -97
- package/dist/Common/Pagination/PageSizeSelector.d.ts +0 -3
- package/dist/Common/Pagination/PageSizeSelector.js +0 -52
- package/dist/Common/Pagination/Pagination.d.ts +0 -3
- package/dist/Common/Pagination/Pagination.js +0 -98
- package/dist/Common/Pagination/constants.d.ts +0 -5
- package/dist/Common/Pagination/constants.js +0 -9
- package/dist/Common/Pagination/index.d.ts +0 -1
- package/dist/Common/Pagination/index.js +0 -4
- package/dist/Common/Pagination/types.d.ts +0 -51
- package/dist/Common/Pagination/types.js +0 -1
- package/dist/Common/Pagination/utils.d.ts +0 -6
- package/dist/Common/Pagination/utils.js +0 -15
- package/dist/Common/Policy.Types.js +0 -6
- package/dist/Common/PopupMenu.js +0 -148
- package/dist/Common/Progressing.js +0 -52
- package/dist/Common/RJSF/Form.js +0 -25
- package/dist/Common/RJSF/common/FieldRow.js +0 -25
- package/dist/Common/RJSF/common/types.js +0 -1
- package/dist/Common/RJSF/config.js +0 -33
- package/dist/Common/RJSF/constants.js +0 -10
- package/dist/Common/RJSF/index.js +0 -7
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.js +0 -30
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.js +0 -60
- package/dist/Common/RJSF/templates/BaseInput.js +0 -16
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.js +0 -18
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.js +0 -6
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.js +0 -17
- package/dist/Common/RJSF/templates/ButtonTemplates/index.js +0 -8
- package/dist/Common/RJSF/templates/Description.js +0 -9
- package/dist/Common/RJSF/templates/Field.js +0 -18
- package/dist/Common/RJSF/templates/FieldErrorTemplate.js +0 -13
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.js +0 -71
- package/dist/Common/RJSF/templates/TitleField.js +0 -8
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.js +0 -43
- package/dist/Common/RJSF/templates/index.js +0 -26
- package/dist/Common/RJSF/types.js +0 -1
- package/dist/Common/RJSF/utils.js +0 -95
- package/dist/Common/RJSF/widgets/Checkbox.js +0 -39
- package/dist/Common/RJSF/widgets/Select.js +0 -625
- package/dist/Common/RJSF/widgets/index.js +0 -6
- package/dist/Common/RadioGroup/RadioGroup.js +0 -76
- package/dist/Common/RadioGroup.js +0 -47
- package/dist/Common/Reload.js +0 -16
- package/dist/Common/ResizableTextarea.js +0 -60
- package/dist/Common/SearchBar/SearchBar.component.d.ts +0 -37
- package/dist/Common/SearchBar/SearchBar.component.js +0 -66
- package/dist/Common/SearchBar/index.d.ts +0 -2
- package/dist/Common/SearchBar/index.js +0 -4
- package/dist/Common/SearchBar/types.d.ts +0 -35
- package/dist/Common/SearchBar/types.js +0 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.js +0 -49
- package/dist/Common/Select/Select.d.ts +0 -4
- package/dist/Common/Select/Select.js +0 -193
- package/dist/Common/Select/types.d.ts +0 -29
- package/dist/Common/Select/types.js +0 -1
- package/dist/Common/ServerError.js +0 -26
- package/dist/Common/TippyCustomized.js +0 -10
- package/dist/Common/ToastBody.js +0 -41
- package/dist/Common/Toggle/Toggle.js +0 -40
- package/dist/Common/Types.js +0 -24
- package/dist/Common/index.js +0 -224
- package/dist/Helper-a0caa238.js +0 -9834
- package/dist/TippyCustomized-7b9b46b9.js +0 -124
- package/dist/_commonjsHelpers-aeeeeb92.js +0 -30
- package/dist/abap-9f67f57a.js +0 -1314
- package/dist/apex-ff62e532.js +0 -315
- package/dist/assets/CodeEditor.css +0 -1
- package/dist/assets/Drawer.css +0 -1
- package/dist/assets/Form.css +0 -1
- package/dist/assets/GenericEmptyState.css +0 -1
- package/dist/assets/InfoColourbar.css +0 -1
- package/dist/assets/Pagination.css +0 -1
- package/dist/assets/RadioGroup.css +0 -1
- package/dist/assets/ScanVulnerabilitiesTable.css +0 -1
- package/dist/assets/SearchBar.component.css +0 -1
- package/dist/assets/Select.css +0 -1
- package/dist/assets/TippyCustomized.css +0 -1
- package/dist/assets/Toggle.css +0 -1
- package/dist/assets/editor.worker-d26000ef.js +0 -9
- package/dist/assets/json.worker-f23a4654.js +0 -40
- package/dist/assets/yaml.worker-64fecd27.js +0 -463
- package/dist/azcli-31e64a7f.js +0 -74
- package/dist/bat-0ffe897e.js +0 -95
- package/dist/bicep-3414a2b1.js +0 -108
- package/dist/cameligo-df1f3f25.js +0 -168
- package/dist/clojure-65b0f010.js +0 -754
- package/dist/coffee-437f0fba.js +0 -228
- package/dist/cpp-66843dd5.js +0 -390
- package/dist/csharp-621d9a49.js +0 -320
- package/dist/csp-de0d5244.js +0 -57
- package/dist/css-7cd5ed4c.js +0 -186
- package/dist/cssMode-c5cae484.js +0 -1446
- package/dist/cypher-70ad96fe.js +0 -262
- package/dist/dart-33ae3739.js +0 -270
- package/dist/dockerfile-f2274a50.js +0 -132
- package/dist/ecl-3b8294a3.js +0 -454
- package/dist/elixir-b9dcc73a.js +0 -489
- package/dist/extends-70f3d2a3.js +0 -13
- package/dist/flow9-bdde8316.js +0 -141
- package/dist/freemarker2-b9a8615c.js +0 -643
- package/dist/fsharp-eac2e449.js +0 -210
- package/dist/go-d12ed8d4.js +0 -208
- package/dist/graphql-c7356b69.js +0 -141
- package/dist/handlebars-3803af36.js +0 -391
- package/dist/hcl-e883a0d4.js +0 -177
- package/dist/html-498f0150.js +0 -281
- package/dist/htmlMode-a8ae8cc5.js +0 -1456
- package/dist/ic-add-4787ded5.js +0 -5
- package/dist/ic-chevron-down-eb7fd953.js +0 -6
- package/dist/ic-copy-118b83dc.js +0 -5
- package/dist/ic-cross-0e71861d.js +0 -6
- package/dist/ic-error-cross-2760059a.js +0 -5
- package/dist/ic-error-exclamation-5f9af461.js +0 -5
- package/dist/ic-info-filled-31a15add.js +0 -6
- package/dist/ic-info-outlined-8fa45e87.js +0 -5
- package/dist/ic-warning-42534af1.js +0 -5
- package/dist/ini-425ab711.js +0 -68
- package/dist/inject-tag-824bf92c.js +0 -5
- package/dist/java-2bc0fd68.js +0 -221
- package/dist/javascript-4363ced3.js +0 -75
- package/dist/jsonMode-80290b9e.js +0 -1867
- package/dist/jsx-runtime-0dcb030c.js +0 -667
- package/dist/julia-1c932615.js +0 -496
- package/dist/kotlin-1ab839c8.js +0 -245
- package/dist/less-6fe856f5.js +0 -168
- package/dist/lexon-4955ac52.js +0 -151
- package/dist/liquid-1398df0a.js +0 -238
- package/dist/lua-3cca0047.js +0 -157
- package/dist/m3-132e9cb6.js +0 -210
- package/dist/markdown-ea59a0c1.js +0 -202
- package/dist/mips-19811f4b.js +0 -194
- package/dist/msdax-69954a10.js +0 -377
- package/dist/mysql-82088e5d.js +0 -876
- package/dist/objective-c-1976eccc.js +0 -188
- package/dist/pascal-8ef177cb.js +0 -245
- package/dist/pascaligo-bc517b9e.js +0 -158
- package/dist/perl-8b93582c.js +0 -599
- package/dist/pgsql-00c11a6d.js +0 -847
- package/dist/php-4c8c276f.js +0 -471
- package/dist/pla-e9b4ffb1.js +0 -131
- package/dist/postiats-2071af8c.js +0 -544
- package/dist/powerquery-8e388ceb.js +0 -890
- package/dist/powershell-e35db398.js +0 -233
- package/dist/protobuf-a24b9176.js +0 -422
- package/dist/pug-2c94d9b8.js +0 -393
- package/dist/python-dd2d43e8.js +0 -259
- package/dist/qsharp-d730d7fe.js +0 -282
- package/dist/r-be193556.js +0 -245
- package/dist/razor-20a66096.js +0 -512
- package/dist/react-select.esm-97f26847.js +0 -4160
- package/dist/react-toastify.esm-1042de65.js +0 -792
- package/dist/react.esm-2c92920f.js +0 -13727
- package/dist/redis-9690c6ac.js +0 -298
- package/dist/redshift-6bdcdeaa.js +0 -806
- package/dist/restructuredtext-a08c1d20.js +0 -162
- package/dist/ruby-2247692b.js +0 -444
- package/dist/rust-1dffb4d5.js +0 -337
- package/dist/sb-136598e9.js +0 -110
- package/dist/scala-b1100fed.js +0 -353
- package/dist/scheme-038c8094.js +0 -114
- package/dist/scss-700d1b52.js +0 -244
- package/dist/shell-86c16e0f.js +0 -224
- package/dist/solidity-c05fdf3c.js +0 -1351
- package/dist/sophia-cd645d71.js +0 -190
- package/dist/sparql-01d9ec9c.js +0 -193
- package/dist/sql-4c33df41.js +0 -818
- package/dist/st-52cf1408.js +0 -414
- package/dist/swift-13c792ba.js +0 -315
- package/dist/systemverilog-0bd8b730.js +0 -556
- package/dist/tcl-463d7c75.js +0 -232
- package/dist/tippy-react.esm-8dc66a75.js +0 -2018
- package/dist/tsMode-3fa4eb6a.js +0 -811
- package/dist/twig-0d98f5ec.js +0 -323
- package/dist/typescript-1bbaf605.js +0 -328
- package/dist/vb-3a2b0a51.js +0 -364
- package/dist/wgsl-b2ddb3e4.js +0 -420
- package/dist/xml-a2693dbd.js +0 -95
- package/dist/yaml-01ce4fdd.js +0 -184
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import "../../assets/InfoColourbar.css";
|
|
2
|
-
import { j as r } from "../../jsx-runtime-0dcb030c.js";
|
|
3
|
-
import { Link as u } from "react-router-dom";
|
|
4
|
-
function j({
|
|
5
|
-
message: i,
|
|
6
|
-
classname: c,
|
|
7
|
-
Icon: l,
|
|
8
|
-
iconClass: d,
|
|
9
|
-
iconSize: o,
|
|
10
|
-
renderActionButton: n,
|
|
11
|
-
linkText: s,
|
|
12
|
-
redirectLink: e,
|
|
13
|
-
linkOnClick: a,
|
|
14
|
-
linkClass: t,
|
|
15
|
-
internalLink: m,
|
|
16
|
-
styles: f
|
|
17
|
-
}) {
|
|
18
|
-
const p = () => {
|
|
19
|
-
if (s) {
|
|
20
|
-
if (e)
|
|
21
|
-
return m ? /* @__PURE__ */ r.jsx(
|
|
22
|
-
u,
|
|
23
|
-
{
|
|
24
|
-
to: e,
|
|
25
|
-
onClick: a,
|
|
26
|
-
"data-testid": "info-bar-internal-link",
|
|
27
|
-
className: "cursor dc__link dc__underline-onhover mr-5",
|
|
28
|
-
children: s
|
|
29
|
-
}
|
|
30
|
-
) : /* @__PURE__ */ r.jsx(
|
|
31
|
-
"a",
|
|
32
|
-
{
|
|
33
|
-
href: e,
|
|
34
|
-
target: "_blank",
|
|
35
|
-
onClick: a,
|
|
36
|
-
"data-testid": "info-bar-redirectLink",
|
|
37
|
-
className: "cursor dc__link dc__underline-onhover mr-5",
|
|
38
|
-
children: s
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
} else
|
|
42
|
-
return null;
|
|
43
|
-
return a && /* @__PURE__ */ r.jsx("div", { onClick: a, className: "cursor dc__link dc__underline-onhover", "data-testid": "info-bar-linkText", children: s });
|
|
44
|
-
};
|
|
45
|
-
return /* @__PURE__ */ r.jsx("div", { className: "info-bar-container", children: /* @__PURE__ */ r.jsxs(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
className: `${c} info_text flex dc__content-space pt-8 pb-8 pl-12 pr-12 br-4 top fs-13 fw-4`,
|
|
49
|
-
style: f,
|
|
50
|
-
children: [
|
|
51
|
-
/* @__PURE__ */ r.jsxs("div", { className: `flex top ${typeof n == "function" ? "mr-5" : ""}`, children: [
|
|
52
|
-
/* @__PURE__ */ r.jsx("div", { className: `icon-dim-${o ?? "20"} mr-10`, children: /* @__PURE__ */ r.jsx(l, { className: `icon-dim-${o ?? "20"} ${d || ""} mr-8` }) }),
|
|
53
|
-
/* @__PURE__ */ r.jsxs("div", { className: `info-bar-message-wrapper ${t || ""}`, children: [
|
|
54
|
-
/* @__PURE__ */ r.jsx("span", { className: s && e ? "mr-5" : "", children: i }),
|
|
55
|
-
p()
|
|
56
|
-
] })
|
|
57
|
-
] }),
|
|
58
|
-
typeof n == "function" && n()
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
) });
|
|
62
|
-
}
|
|
63
|
-
export {
|
|
64
|
-
j as default
|
|
65
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { j as u } from "../../jsx-runtime-0dcb030c.js";
|
|
2
|
-
import m, { useEffect as p } from "react";
|
|
3
|
-
import v from "react-dom";
|
|
4
|
-
const g = ({
|
|
5
|
-
style: d = {},
|
|
6
|
-
children: l,
|
|
7
|
-
modal: c = !1,
|
|
8
|
-
rootClassName: f = "",
|
|
9
|
-
onClick: n = null,
|
|
10
|
-
callbackRef: i = null,
|
|
11
|
-
preventWheelDisable: o = !1,
|
|
12
|
-
noBackDrop: s
|
|
13
|
-
}) => {
|
|
14
|
-
const t = m.useRef(null);
|
|
15
|
-
function r(e) {
|
|
16
|
-
typeof n == "function" && (t && t.current?.contains(e.target) ? n(e, "in") : n(e, "out"));
|
|
17
|
-
}
|
|
18
|
-
function a(e) {
|
|
19
|
-
o || (t?.current.contains(e.target) ? t.current.clientHeight === t.current.scrollHeight && e.preventDefault() : e.preventDefault());
|
|
20
|
-
}
|
|
21
|
-
return p(() => {
|
|
22
|
-
document.addEventListener("click", r);
|
|
23
|
-
let e = document.getElementById("visible-modal");
|
|
24
|
-
return e && e.classList.add("show"), s && e.classList.add("no-back-drop"), o || document.body.addEventListener("wheel", a, { passive: !1 }), () => {
|
|
25
|
-
o || document.body.removeEventListener("wheel", a), document.removeEventListener("click", r), e && e.classList.remove("show"), s && e.classList.remove("no-back-drop");
|
|
26
|
-
};
|
|
27
|
-
}, []), v.createPortal(
|
|
28
|
-
/* @__PURE__ */ u.jsx(
|
|
29
|
-
"div",
|
|
30
|
-
{
|
|
31
|
-
tabIndex: 0,
|
|
32
|
-
onClick: n,
|
|
33
|
-
"data-testid": "common-modal",
|
|
34
|
-
ref: (e) => {
|
|
35
|
-
typeof i == "function" && i(e), t.current = e;
|
|
36
|
-
},
|
|
37
|
-
id: "popup",
|
|
38
|
-
className: `${f} popup ${c ? "modal" : ""}`,
|
|
39
|
-
style: { ...d },
|
|
40
|
-
children: l
|
|
41
|
-
}
|
|
42
|
-
),
|
|
43
|
-
document.getElementById("visible-modal")
|
|
44
|
-
);
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
g as Modal
|
|
48
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
var c = Object.defineProperty;
|
|
2
|
-
var i = (o, e, s) => e in o ? c(o, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[e] = s;
|
|
3
|
-
var a = (o, e, s) => (i(o, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { j as t } from "../../jsx-runtime-0dcb030c.js";
|
|
5
|
-
import m from "react";
|
|
6
|
-
import n from "react-dom";
|
|
7
|
-
import { c as d } from "../../ic-cross-0e71861d.js";
|
|
8
|
-
class g extends m.Component {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
a(this, "modalRef", document.getElementById("full-screen-modal"));
|
|
12
|
-
}
|
|
13
|
-
componentDidMount() {
|
|
14
|
-
this.props.noBackground ? this.modalRef.classList.add("show") : this.modalRef.classList.add("show-with-bg");
|
|
15
|
-
}
|
|
16
|
-
componentWillUnmount() {
|
|
17
|
-
this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg");
|
|
18
|
-
}
|
|
19
|
-
render() {
|
|
20
|
-
const { className: s = "", onHide: l = null } = { ...this.props };
|
|
21
|
-
return n.createPortal(
|
|
22
|
-
/* @__PURE__ */ t.jsxs("div", { className: `full-screen-modal__body-container ${s}`, children: [
|
|
23
|
-
this.props.children,
|
|
24
|
-
typeof l == "function" && /* @__PURE__ */ t.jsx("div", { className: "close-btn icon-dim-24", onClick: (r) => l(!1), "data-testid": "opaque-modal-close", children: /* @__PURE__ */ t.jsx("img", { className: "close-img", src: d, alt: "close" }) })
|
|
25
|
-
] }),
|
|
26
|
-
document.getElementById("full-screen-modal")
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
export {
|
|
31
|
-
g as OpaqueModal
|
|
32
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var i = Object.defineProperty;
|
|
2
|
-
var a = (o, e, s) => e in o ? i(o, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[e] = s;
|
|
3
|
-
var t = (o, e, s) => (a(o, typeof e != "symbol" ? e + "" : e, s), s);
|
|
4
|
-
import { j as n } from "../../jsx-runtime-0dcb030c.js";
|
|
5
|
-
import l from "react";
|
|
6
|
-
import r from "react-dom";
|
|
7
|
-
class h extends l.Component {
|
|
8
|
-
constructor(s) {
|
|
9
|
-
super(s);
|
|
10
|
-
t(this, "modalRef", document.getElementById("visible-modal"));
|
|
11
|
-
this.escFunction = this.escFunction.bind(this);
|
|
12
|
-
}
|
|
13
|
-
escFunction(s) {
|
|
14
|
-
(s.keyCode === 27 || s.key === "Escape") && (this.props.onEscape ? this.props.onEscape(s) : this.props.close && this.props.close(s));
|
|
15
|
-
}
|
|
16
|
-
componentDidMount() {
|
|
17
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add(this.props.noBackground ? "show" : "show-with-bg"), this.props.parentClassName && this.modalRef.classList.add(this.props.parentClassName);
|
|
18
|
-
}
|
|
19
|
-
componentWillUnmount() {
|
|
20
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show"), this.modalRef.classList.remove("show-with-bg"), this.props.parentClassName && this.modalRef.classList.remove(this.props.parentClassName);
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return r.createPortal(
|
|
24
|
-
/* @__PURE__ */ n.jsx("div", { className: `visible-modal__body ${this.props.className}`, onClick: this.props?.close, "data-testid": "visible-modal-close", children: this.props.children }),
|
|
25
|
-
document.getElementById("visible-modal")
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
h as VisibleModal
|
|
31
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
var i = Object.defineProperty;
|
|
2
|
-
var n = (t, s, e) => s in t ? i(t, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[s] = e;
|
|
3
|
-
var o = (t, s, e) => (n(t, typeof s != "symbol" ? s + "" : s, e), e);
|
|
4
|
-
import { j as c } from "../../jsx-runtime-0dcb030c.js";
|
|
5
|
-
import d from "react";
|
|
6
|
-
import l from "react-dom";
|
|
7
|
-
class h extends d.Component {
|
|
8
|
-
constructor(e) {
|
|
9
|
-
super(e);
|
|
10
|
-
o(this, "modalRef", document.getElementById("visible-modal-2"));
|
|
11
|
-
this.escFunction = this.escFunction.bind(this);
|
|
12
|
-
}
|
|
13
|
-
escFunction(e) {
|
|
14
|
-
e.keyCode === 27 && this.props.close && this.props.close(e);
|
|
15
|
-
}
|
|
16
|
-
componentDidMount() {
|
|
17
|
-
document.addEventListener("keydown", this.escFunction), this.modalRef.classList.add("show-with-bg");
|
|
18
|
-
}
|
|
19
|
-
componentWillUnmount() {
|
|
20
|
-
document.removeEventListener("keydown", this.escFunction), this.modalRef.classList.remove("show-with-bg");
|
|
21
|
-
}
|
|
22
|
-
render() {
|
|
23
|
-
return l.createPortal(
|
|
24
|
-
/* @__PURE__ */ c.jsx("div", { className: `visible-modal__body ${this.props.className}`, onClick: this.props?.close, "data-testid": "visible-modal2-close", children: this.props.children }),
|
|
25
|
-
document.getElementById("visible-modal-2")
|
|
26
|
-
);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
export {
|
|
30
|
-
h as VisibleModal2
|
|
31
|
-
};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { j as l } from "../jsx-runtime-0dcb030c.js";
|
|
2
|
-
import { c, R as x } from "../react-select.esm-97f26847.js";
|
|
3
|
-
import * as i from "react";
|
|
4
|
-
const h = (e) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 28 28", width: 24, height: 24, ...e }, /* @__PURE__ */ i.createElement("g", { fill: "none", fillRule: "evenodd", transform: "translate(2 2)" }, /* @__PURE__ */ i.createElement("rect", { width: 20, height: 20, fill: "#B1B7BC", rx: 10 }), /* @__PURE__ */ i.createElement("path", { fill: "#FFF", fillRule: "nonzero", d: "M6.464 6.464a1 1 0 0 1 1.415 0l2.12 2.12 2.122-2.12a1 1 0 0 1 1.32-.083l.095.083a1 1 0 0 1 0 1.415l-2.122 2.12 2.122 2.122a1 1 0 0 1 .083 1.32l-.083.095a1 1 0 0 1-1.415 0L10 11.414l-2.121 2.122a1 1 0 0 1-1.32.083l-.095-.083a1 1 0 0 1 0-1.415L8.584 10l-2.12-2.121a1 1 0 0 1-.083-1.32z" }))), p = (e) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...e }, /* @__PURE__ */ i.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ i.createElement("path", { stroke: "#06C", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M3.898 12.564l4.95 4.95L19.455 6.906" }))), f = (e) => /* @__PURE__ */ i.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 20, height: 21, viewBox: "0 0 20 21", ...e }, /* @__PURE__ */ i.createElement("g", { fill: "none", fillRule: "evenodd" }, /* @__PURE__ */ i.createElement("path", { fill: "#FDE7E7", stroke: "#F33E3E", strokeLinejoin: "round", strokeWidth: 2, d: "M10 1.667C5.4 1.667 1.667 5.4 1.667 10S5.4 18.333 10 18.333 18.333 14.6 18.333 10 14.6 1.667 10 1.667z" }), /* @__PURE__ */ i.createElement("path", { fill: "#F33E3E", d: "M10 10.833c.46 0 .833-.373.833-.833V6.667c0-.46-.373-.834-.833-.834-.46 0-.833.373-.833.834V10c0 .46.373.833.833.833zm0 3.334c.46 0 .833-.373.833-.834 0-.46-.373-.833-.833-.833-.46 0-.833.373-.833.833 0 .46.373.834.833.834z" }))), w = (e) => {
|
|
5
|
-
const { selectOption: t, data: n } = e;
|
|
6
|
-
return /* @__PURE__ */ l.jsxs("div", { className: "flex left pl-12", style: { background: e.isFocused ? "var(--N100)" : "transparent" }, children: [
|
|
7
|
-
/* @__PURE__ */ l.jsx(
|
|
8
|
-
"input",
|
|
9
|
-
{
|
|
10
|
-
checked: e.isSelected,
|
|
11
|
-
disabled: e.isDisabled,
|
|
12
|
-
onChange: (s) => t(n),
|
|
13
|
-
type: "checkbox",
|
|
14
|
-
style: { height: "16px", width: "16px", flex: "0 0 16px" },
|
|
15
|
-
className: "mr-8"
|
|
16
|
-
}
|
|
17
|
-
),
|
|
18
|
-
/* @__PURE__ */ l.jsx(c.Option, { ...e })
|
|
19
|
-
] });
|
|
20
|
-
}, j = (e) => {
|
|
21
|
-
const { selectOption: t, data: n } = e, s = { height: "16px", width: "16px", flex: "0 0 16px" }, r = (o) => t(n);
|
|
22
|
-
return /* @__PURE__ */ l.jsxs("div", { className: "flex left pl-12", style: { background: e.isFocused ? "var(--N100)" : "transparent" }, children: [
|
|
23
|
-
e.isSelected ? /* @__PURE__ */ l.jsx(p, { onClick: r, className: "mr-8 icon-dim-16", style: s }) : /* @__PURE__ */ l.jsx("span", { onClick: r, className: "mr-8", style: s }),
|
|
24
|
-
/* @__PURE__ */ l.jsx(c.Option, { ...e })
|
|
25
|
-
] });
|
|
26
|
-
}, E = (e) => {
|
|
27
|
-
const { children: t, data: n, innerProps: s, selectProps: r } = e, { label: o, value: a } = n;
|
|
28
|
-
return /* @__PURE__ */ l.jsxs(c.MultiValueContainer, { data: n, innerProps: s, selectProps: r, children: [
|
|
29
|
-
/* @__PURE__ */ l.jsx("div", { className: "flex fs-12 ml-4 cn-9", children: o }),
|
|
30
|
-
t[1]
|
|
31
|
-
] });
|
|
32
|
-
}, C = (e) => {
|
|
33
|
-
const {
|
|
34
|
-
children: t = /* @__PURE__ */ l.jsx(h, { className: "icon-dim-24" }),
|
|
35
|
-
getStyles: n,
|
|
36
|
-
innerProps: { ref: s, ...r }
|
|
37
|
-
} = e;
|
|
38
|
-
return /* @__PURE__ */ l.jsx("div", { ...r, ref: s, style: n("clearIndicator", e), children: /* @__PURE__ */ l.jsx("div", { className: "flex pointer", children: t }) });
|
|
39
|
-
}, k = (e) => {
|
|
40
|
-
const {
|
|
41
|
-
data: t,
|
|
42
|
-
innerProps: { onClick: n, onMouseDown: s },
|
|
43
|
-
selectProps: r
|
|
44
|
-
} = e;
|
|
45
|
-
return /* @__PURE__ */ l.jsx(c.MultiValueRemove, { ...e, children: /* @__PURE__ */ l.jsx(
|
|
46
|
-
h,
|
|
47
|
-
{
|
|
48
|
-
onClick: n,
|
|
49
|
-
onMouseDown: s,
|
|
50
|
-
onClick: (o) => n(t),
|
|
51
|
-
style: { height: "18px", width: "18px" }
|
|
52
|
-
}
|
|
53
|
-
) });
|
|
54
|
-
}, N = ({ validator: e, isAllSelected: t = !1, ...n }) => {
|
|
55
|
-
const { children: s, data: r, innerProps: o, selectProps: a } = n, { label: u, value: d } = r, m = e ? e(d) : !0;
|
|
56
|
-
return t && d !== "*" ? null : /* @__PURE__ */ l.jsxs(c.MultiValueContainer, { data: r, innerProps: o, selectProps: a, children: [
|
|
57
|
-
/* @__PURE__ */ l.jsxs("div", { className: "flex left fs-12 pl-4 pr-4 dc__ellipsis-right", children: [
|
|
58
|
-
!m && /* @__PURE__ */ l.jsx(f, { className: "mr-4 icon-dim-16" }),
|
|
59
|
-
/* @__PURE__ */ l.jsx("div", { className: `dc__ellipsis-right ${m ? "cn-9" : "cr-5"}`, children: u })
|
|
60
|
-
] }),
|
|
61
|
-
s[1]
|
|
62
|
-
] });
|
|
63
|
-
}, S = {
|
|
64
|
-
control: (e, t) => ({
|
|
65
|
-
...e,
|
|
66
|
-
cursor: t.isDisabled ? "not-allowed" : "normal",
|
|
67
|
-
border: t.isFocused ? "1px solid #06c" : "1px solid #d6dbdf",
|
|
68
|
-
boxShadow: "none"
|
|
69
|
-
}),
|
|
70
|
-
menu: (e, t) => ({
|
|
71
|
-
...e
|
|
72
|
-
}),
|
|
73
|
-
option: (e, t) => ({
|
|
74
|
-
...e,
|
|
75
|
-
backgroundColor: t.isFocused ? "var(--N100)" : "white",
|
|
76
|
-
color: "var(--N900)",
|
|
77
|
-
padding: "8px 12px"
|
|
78
|
-
}),
|
|
79
|
-
container: (e, t) => ({
|
|
80
|
-
...e,
|
|
81
|
-
cursor: t.isDisabled ? "not-allowed" : "pointer"
|
|
82
|
-
}),
|
|
83
|
-
valueContainer: (e, t) => ({
|
|
84
|
-
...e,
|
|
85
|
-
color: t.selectProps.menuIsOpen ? "var(--N500)" : e.color
|
|
86
|
-
})
|
|
87
|
-
}, b = (e) => /* @__PURE__ */ l.jsx(x, { ...e });
|
|
88
|
-
export {
|
|
89
|
-
C as ClearIndicator,
|
|
90
|
-
b as CustomSelect,
|
|
91
|
-
N as MultiValueChipContainer,
|
|
92
|
-
E as MultiValueContainer,
|
|
93
|
-
k as MultiValueRemove,
|
|
94
|
-
w as Option,
|
|
95
|
-
j as SingleSelectOption,
|
|
96
|
-
S as multiSelectStyles
|
|
97
|
-
};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { j as e } from "../../jsx-runtime-0dcb030c.js";
|
|
2
|
-
import { useState as m, useRef as x } from "react";
|
|
3
|
-
import "../../Helper-a0caa238.js";
|
|
4
|
-
import "../Constants.js";
|
|
5
|
-
import { useClickOutside as j } from "../Hooks/UseClickOutside/UseClickOutside.js";
|
|
6
|
-
import { getDefaultPageValueOptions as h } from "./utils.js";
|
|
7
|
-
const g = ({
|
|
8
|
-
optionValue: s,
|
|
9
|
-
options: c,
|
|
10
|
-
setOptions: i,
|
|
11
|
-
handleCloseDropdown: r,
|
|
12
|
-
changePageSize: n
|
|
13
|
-
}) => {
|
|
14
|
-
const o = () => {
|
|
15
|
-
const a = c.map((l) => ({
|
|
16
|
-
value: l.value,
|
|
17
|
-
selected: l.value === s
|
|
18
|
-
}));
|
|
19
|
-
i([...a]), r(), n(s);
|
|
20
|
-
};
|
|
21
|
-
return /* @__PURE__ */ e.jsx("div", { className: "select__item", onClick: o, children: s }, s);
|
|
22
|
-
}, C = ({ pageSizeOptions: s, pageSize: c, changePageSize: i }) => {
|
|
23
|
-
const r = h(s).map((t) => ({
|
|
24
|
-
value: t.value,
|
|
25
|
-
selected: t.value === c
|
|
26
|
-
})), [n, o] = m(!1), [a, l] = m(r), d = () => {
|
|
27
|
-
o(!1);
|
|
28
|
-
}, f = () => {
|
|
29
|
-
o(!n);
|
|
30
|
-
}, p = x(null);
|
|
31
|
-
j(p, d);
|
|
32
|
-
const u = a.find((t) => t.selected), v = n ? "fa fa-caret-up" : "fa fa-caret-down";
|
|
33
|
-
return /* @__PURE__ */ e.jsxs("div", { ref: p, children: [
|
|
34
|
-
n && /* @__PURE__ */ e.jsx("div", { className: "pagination__select-menu", children: a.map((t) => /* @__PURE__ */ e.jsx(
|
|
35
|
-
g,
|
|
36
|
-
{
|
|
37
|
-
optionValue: t.value,
|
|
38
|
-
options: a,
|
|
39
|
-
setOptions: l,
|
|
40
|
-
handleCloseDropdown: d,
|
|
41
|
-
changePageSize: i
|
|
42
|
-
}
|
|
43
|
-
)) }),
|
|
44
|
-
/* @__PURE__ */ e.jsxs("button", { type: "button", className: "select__button", onClick: f, children: [
|
|
45
|
-
/* @__PURE__ */ e.jsx("span", { children: u ? u.value : "" }),
|
|
46
|
-
/* @__PURE__ */ e.jsx("span", { className: "select__icon", children: /* @__PURE__ */ e.jsx("i", { className: v }) })
|
|
47
|
-
] })
|
|
48
|
-
] });
|
|
49
|
-
};
|
|
50
|
-
export {
|
|
51
|
-
C as default
|
|
52
|
-
};
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import "../../assets/Pagination.css";
|
|
2
|
-
import { j as e } from "../../jsx-runtime-0dcb030c.js";
|
|
3
|
-
import { useState as f, useEffect as p } from "react";
|
|
4
|
-
import v from "./PageSizeSelector.js";
|
|
5
|
-
import { createPageArr as u } from "./utils.js";
|
|
6
|
-
const k = ({ value: a, isSelected: t, selectPage: c }) => {
|
|
7
|
-
const o = t ? "page__button page__button--selected" : "page__button", r = () => {
|
|
8
|
-
c(a);
|
|
9
|
-
};
|
|
10
|
-
return /* @__PURE__ */ e.jsx("li", { className: "page", children: /* @__PURE__ */ e.jsx("button", { className: o, onClick: r, type: "button", children: a }) });
|
|
11
|
-
}, V = ({
|
|
12
|
-
size: a,
|
|
13
|
-
pageSize: t,
|
|
14
|
-
offset: c,
|
|
15
|
-
changePage: o,
|
|
16
|
-
changePageSize: r,
|
|
17
|
-
isPageSizeFix: x,
|
|
18
|
-
pageSizeOptions: N,
|
|
19
|
-
rootClassName: b
|
|
20
|
-
}) => {
|
|
21
|
-
const [n, i] = f([]);
|
|
22
|
-
p(() => {
|
|
23
|
-
const s = u({ size: a, pageSize: t, selectedPageNo: 1 });
|
|
24
|
-
i(s);
|
|
25
|
-
}, [a, t]), p(() => {
|
|
26
|
-
const s = 1 + Math.floor(c / t), l = u({ size: a, pageSize: t, selectedPageNo: s });
|
|
27
|
-
i(l);
|
|
28
|
-
}, [c]);
|
|
29
|
-
const d = (s) => {
|
|
30
|
-
const l = u({ size: a, pageSize: t, selectedPageNo: s });
|
|
31
|
-
i(l), o(s);
|
|
32
|
-
}, h = () => {
|
|
33
|
-
const l = n.find((g) => g.selected).value - 1;
|
|
34
|
-
d(l);
|
|
35
|
-
}, P = () => {
|
|
36
|
-
const l = n.find((g) => g.selected).value + 1;
|
|
37
|
-
d(l);
|
|
38
|
-
}, j = c + t < a ? c + t : a, m = n.findIndex((s) => s.selected), _ = n.filter((s) => s.isVisible);
|
|
39
|
-
return (
|
|
40
|
-
// TODO: Remove pagination-wrapper from dashboard
|
|
41
|
-
/* @__PURE__ */ e.jsxs("div", { className: b || "", children: [
|
|
42
|
-
/* @__PURE__ */ e.jsxs("div", { className: "page-number", children: [
|
|
43
|
-
c + 1,
|
|
44
|
-
" - ",
|
|
45
|
-
j,
|
|
46
|
-
" of ",
|
|
47
|
-
a
|
|
48
|
-
] }),
|
|
49
|
-
/* @__PURE__ */ e.jsxs("ul", { className: "pagination", children: [
|
|
50
|
-
/* @__PURE__ */ e.jsx("li", { className: "page", children: /* @__PURE__ */ e.jsx(
|
|
51
|
-
"button",
|
|
52
|
-
{
|
|
53
|
-
className: "page__button page__button--icon",
|
|
54
|
-
disabled: !m,
|
|
55
|
-
onClick: h,
|
|
56
|
-
type: "button",
|
|
57
|
-
"aria-label": "Previous page",
|
|
58
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "left-icon", children: /* @__PURE__ */ e.jsx("i", { className: "fa fa-chevron-left" }) })
|
|
59
|
-
}
|
|
60
|
-
) }),
|
|
61
|
-
_.map((s) => /* @__PURE__ */ e.jsx(
|
|
62
|
-
k,
|
|
63
|
-
{
|
|
64
|
-
value: s.value,
|
|
65
|
-
isSelected: s.selected,
|
|
66
|
-
selectPage: d
|
|
67
|
-
},
|
|
68
|
-
s.value
|
|
69
|
-
)),
|
|
70
|
-
/* @__PURE__ */ e.jsx("li", { className: "page", children: /* @__PURE__ */ e.jsx(
|
|
71
|
-
"button",
|
|
72
|
-
{
|
|
73
|
-
className: "page__button page__button--icon",
|
|
74
|
-
disabled: m === n.length - 1,
|
|
75
|
-
onClick: P,
|
|
76
|
-
type: "button",
|
|
77
|
-
"aria-label": "Next page",
|
|
78
|
-
children: /* @__PURE__ */ e.jsx("span", { className: "left-icon", children: /* @__PURE__ */ e.jsx("i", { className: "fa fa-chevron-right" }) })
|
|
79
|
-
}
|
|
80
|
-
) })
|
|
81
|
-
] }),
|
|
82
|
-
!x && /* @__PURE__ */ e.jsxs("div", { className: "select", children: [
|
|
83
|
-
/* @__PURE__ */ e.jsx("span", { className: "select__placeholder", children: "Rows per page" }),
|
|
84
|
-
/* @__PURE__ */ e.jsx(
|
|
85
|
-
v,
|
|
86
|
-
{
|
|
87
|
-
pageSizeOptions: N,
|
|
88
|
-
pageSize: t,
|
|
89
|
-
changePageSize: r
|
|
90
|
-
}
|
|
91
|
-
)
|
|
92
|
-
] })
|
|
93
|
-
] })
|
|
94
|
-
);
|
|
95
|
-
};
|
|
96
|
-
export {
|
|
97
|
-
V as default
|
|
98
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Pagination } from './Pagination';
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export interface PageSizeOption {
|
|
3
|
-
value: number;
|
|
4
|
-
selected: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface PaginationProps {
|
|
7
|
-
/**
|
|
8
|
-
* number of items
|
|
9
|
-
*/
|
|
10
|
-
size: number;
|
|
11
|
-
/**
|
|
12
|
-
* pageSize
|
|
13
|
-
*/
|
|
14
|
-
pageSize: number;
|
|
15
|
-
offset: number;
|
|
16
|
-
changePage: (pageNo: number) => void;
|
|
17
|
-
changePageSize?: (pageSize: number) => void;
|
|
18
|
-
/**
|
|
19
|
-
* If true will not show page size selector
|
|
20
|
-
*/
|
|
21
|
-
isPageSizeFix?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* If given would show these options in page size selector else [20,40,50] with 20 as selected
|
|
24
|
-
*/
|
|
25
|
-
pageSizeOptions?: PageSizeOption[];
|
|
26
|
-
/**
|
|
27
|
-
* class for wrapper
|
|
28
|
-
*/
|
|
29
|
-
rootClassName?: string;
|
|
30
|
-
}
|
|
31
|
-
export interface Page {
|
|
32
|
-
value: number;
|
|
33
|
-
selected: boolean;
|
|
34
|
-
isVisible: boolean;
|
|
35
|
-
}
|
|
36
|
-
export interface CreatePageArrType extends Pick<PaginationProps, 'size' | 'pageSize'> {
|
|
37
|
-
selectedPageNo: number;
|
|
38
|
-
}
|
|
39
|
-
export interface PageSizeSelectorProps extends Pick<PaginationProps, 'pageSizeOptions' | 'pageSize' | 'changePageSize'> {
|
|
40
|
-
}
|
|
41
|
-
export interface PageSizeItemsProps extends Pick<PageSizeSelectorProps, 'changePageSize'> {
|
|
42
|
-
optionValue: PageSizeOption['value'];
|
|
43
|
-
options: PageSizeOption[];
|
|
44
|
-
setOptions: React.Dispatch<React.SetStateAction<PageSizeOption[]>>;
|
|
45
|
-
handleCloseDropdown: () => void;
|
|
46
|
-
}
|
|
47
|
-
export interface PageValueItemProps {
|
|
48
|
-
value: PageSizeOption['value'];
|
|
49
|
-
isSelected: PageSizeOption['selected'];
|
|
50
|
-
selectPage: (selectedPageNo: number) => void;
|
|
51
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { CreatePageArrType, Page, PageSizeOption } from './types';
|
|
2
|
-
/**
|
|
3
|
-
* Returns an array of pages numbers and whether they are selected, visible or not
|
|
4
|
-
*/
|
|
5
|
-
export declare const createPageArr: ({ size, pageSize, selectedPageNo }: CreatePageArrType) => Page[];
|
|
6
|
-
export declare const getDefaultPageValueOptions: (pageSizeOptions: PageSizeOption[]) => PageSizeOption[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { VISIBLE_PAGES_LIMIT as s, FALLBACK_PAGE_SIZE_OPTIONS as l } from "./constants.js";
|
|
2
|
-
const _ = ({ size: n, pageSize: I, selectedPageNo: t }) => {
|
|
3
|
-
const u = [], o = Math.ceil(n / I), c = t - 2 < 1 ? 1 : t - 2, i = t + 2 > o ? o : t + 2;
|
|
4
|
-
for (let r = 1; r <= o; r++)
|
|
5
|
-
u.push({
|
|
6
|
-
value: r,
|
|
7
|
-
selected: r === t,
|
|
8
|
-
isVisible: i - s < r && r < c + s
|
|
9
|
-
});
|
|
10
|
-
return u;
|
|
11
|
-
}, a = (n) => n?.length ? n : l;
|
|
12
|
-
export {
|
|
13
|
-
_ as createPageArr,
|
|
14
|
-
a as getDefaultPageValueOptions
|
|
15
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
var O = /* @__PURE__ */ ((_) => (_.PRE_CI = "PRE_CI", _.POST_CI = "POST_CI", _.PRE_OR_POST_CI = "PRE_OR_POST_CI", _))(O || {}), I = /* @__PURE__ */ ((_) => (_.PRE_CI = "preBuildStage", _.POST_CI = "postBuildStage", _.PRE_OR_POST_CI = "PRE_OR_POST_CI", _))(I || {}), E = /* @__PURE__ */ ((_) => (_.BLOCK = "BLOCK", _.ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME", _.ALLOW_FOREVER = "ALLOW_FOREVER", _))(E || {});
|
|
2
|
-
export {
|
|
3
|
-
O as ApplyPolicyToStage,
|
|
4
|
-
E as ConsequenceAction,
|
|
5
|
-
I as PluginRequiredStage
|
|
6
|
-
};
|