iguazio.dashboard-react-controls 2.2.25 → 3.0.1
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/components/Backdrop/Backdrop.d.ts +14 -0
- package/dist/components/Backdrop/Backdrop.d.ts.map +1 -0
- package/dist/components/Backdrop/Backdrop.mjs +29 -0
- package/dist/components/Backdrop/Backdrop.mjs.map +1 -0
- package/dist/components/Button/Button.d.ts +28 -0
- package/dist/components/Button/Button.d.ts.map +1 -0
- package/dist/components/Button/Button.mjs +43 -0
- package/dist/components/Button/Button.mjs.map +1 -0
- package/dist/components/Button/Button.stories.d.ts +14 -0
- package/dist/components/Button/Button.stories.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts +33 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.mjs +83 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.mjs.map +1 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts +8 -0
- package/dist/components/ConfirmDialog/ConfirmDialog.stories.d.ts.map +1 -0
- package/dist/components/FormCheckBox/FormCheckBox.d.ts +21 -0
- package/dist/components/FormCheckBox/FormCheckBox.d.ts.map +1 -0
- package/dist/components/FormCheckBox/FormCheckBox.mjs +54 -0
- package/dist/components/FormCheckBox/FormCheckBox.mjs.map +1 -0
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts +7 -0
- package/dist/components/FormCheckBox/FormCheckbox.stories.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts +45 -0
- package/dist/components/FormChipCell/FormChip/FormChip.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChip/FormChip.mjs +78 -0
- package/dist/components/FormChipCell/FormChip/FormChip.mjs.map +1 -0
- package/dist/components/FormChipCell/FormChipCell.d.ts +44 -0
- package/dist/components/FormChipCell/FormChipCell.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChipCell.mjs +239 -0
- package/dist/components/FormChipCell/FormChipCell.mjs.map +1 -0
- package/dist/components/FormChipCell/FormChipCellView.d.ts +56 -0
- package/dist/components/FormChipCell/FormChipCellView.d.ts.map +1 -0
- package/dist/components/FormChipCell/FormChipCellView.mjs +169 -0
- package/dist/components/FormChipCell/FormChipCellView.mjs.map +1 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts +22 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.d.ts.map +1 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs +72 -0
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.mjs.map +1 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts +35 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.d.ts.map +1 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs +270 -0
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.mjs.map +1 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts +16 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.d.ts.map +1 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs +36 -0
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.mjs.map +1 -0
- package/dist/components/FormChipCell/formChipCell.util.d.ts +6 -0
- package/dist/components/FormChipCell/formChipCell.util.d.ts.map +1 -0
- package/dist/components/FormChipCell/formChipCell.util.mjs +24 -0
- package/dist/components/FormChipCell/formChipCell.util.mjs.map +1 -0
- package/dist/components/FormCombobox/FormCombobox.d.ts +56 -0
- package/dist/components/FormCombobox/FormCombobox.d.ts.map +1 -0
- package/dist/components/FormCombobox/FormCombobox.mjs +278 -0
- package/dist/components/FormCombobox/FormCombobox.mjs.map +1 -0
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts +12 -0
- package/dist/components/FormCombobox/FormCombobox.stories.d.ts.map +1 -0
- package/dist/components/FormInput/FormInput.d.ts +3 -0
- package/dist/components/FormInput/FormInput.d.ts.map +1 -0
- package/dist/components/FormInput/FormInput.mjs +272 -0
- package/dist/components/FormInput/FormInput.mjs.map +1 -0
- package/dist/components/FormInput/FormInput.stories.d.ts +14 -0
- package/dist/components/FormInput/FormInput.stories.d.ts.map +1 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts +20 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.d.ts.map +1 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs +61 -0
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.mjs.map +1 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts +49 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.d.ts.map +1 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs +202 -0
- package/dist/components/FormKeyValueTable/FormKeyValueTable.mjs.map +1 -0
- package/dist/components/FormOnChange/FormOnChange.d.ts +12 -0
- package/dist/components/FormOnChange/FormOnChange.d.ts.map +1 -0
- package/dist/components/FormOnChange/FormOnChange.mjs +33 -0
- package/dist/components/FormOnChange/FormOnChange.mjs.map +1 -0
- package/dist/components/FormRadio/FormRadio.d.ts +19 -0
- package/dist/components/FormRadio/FormRadio.d.ts.map +1 -0
- package/dist/components/FormRadio/FormRadio.mjs +57 -0
- package/dist/components/FormRadio/FormRadio.mjs.map +1 -0
- package/dist/components/FormRadio/FormRadio.stories.d.ts +7 -0
- package/dist/components/FormRadio/FormRadio.stories.d.ts.map +1 -0
- package/dist/components/FormSelect/FormSelect.d.ts +43 -0
- package/dist/components/FormSelect/FormSelect.d.ts.map +1 -0
- package/dist/components/FormSelect/FormSelect.mjs +257 -0
- package/dist/components/FormSelect/FormSelect.mjs.map +1 -0
- package/dist/components/FormSelect/FormSelect.stories.d.ts +10 -0
- package/dist/components/FormSelect/FormSelect.stories.d.ts.map +1 -0
- package/dist/components/FormTextarea/FormTextarea.d.ts +40 -0
- package/dist/components/FormTextarea/FormTextarea.d.ts.map +1 -0
- package/dist/components/FormTextarea/FormTextarea.mjs +122 -0
- package/dist/components/FormTextarea/FormTextarea.mjs.map +1 -0
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts +9 -0
- package/dist/components/FormTextarea/FormTextarea.stories.d.ts.map +1 -0
- package/dist/components/FormToggle/FormToggle.d.ts +18 -0
- package/dist/components/FormToggle/FormToggle.d.ts.map +1 -0
- package/dist/components/FormToggle/FormToggle.mjs +48 -0
- package/dist/components/FormToggle/FormToggle.mjs.map +1 -0
- package/dist/components/Modal/Modal.d.ts +29 -0
- package/dist/components/Modal/Modal.d.ts.map +1 -0
- package/dist/components/Modal/Modal.mjs +71 -0
- package/dist/components/Modal/Modal.mjs.map +1 -0
- package/dist/components/PopUpDialog/PopUpDialog.d.ts +28 -0
- package/dist/components/PopUpDialog/PopUpDialog.d.ts.map +1 -0
- package/dist/components/PopUpDialog/PopUpDialog.mjs +90 -0
- package/dist/components/PopUpDialog/PopUpDialog.mjs.map +1 -0
- package/dist/components/RoundedIcon/RoundedIcon.d.ts +23 -0
- package/dist/components/RoundedIcon/RoundedIcon.d.ts.map +1 -0
- package/dist/components/RoundedIcon/RoundedIcon.mjs +40 -0
- package/dist/components/RoundedIcon/RoundedIcon.mjs.map +1 -0
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts +9 -0
- package/dist/components/RoundedIcon/RoundedIcon.stories.d.ts.map +1 -0
- package/dist/components/Tip/Tip.d.ts +14 -0
- package/dist/components/Tip/Tip.d.ts.map +1 -0
- package/dist/components/Tip/Tip.mjs +67 -0
- package/dist/components/Tip/Tip.mjs.map +1 -0
- package/dist/components/Tip/Tip.stories.d.ts +7 -0
- package/dist/components/Tip/Tip.stories.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/Tooltip/Tooltip.mjs +136 -0
- package/dist/components/Tooltip/Tooltip.mjs.map +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts +8 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -0
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts +12 -0
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.d.ts.map +1 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts +12 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.d.ts.map +1 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs +21 -0
- package/dist/components/TooltipTemplate/TextTooltipTemplate.mjs.map +1 -0
- package/dist/components/Wizard/Wizard.d.ts +33 -0
- package/dist/components/Wizard/Wizard.d.ts.map +1 -0
- package/dist/components/Wizard/Wizard.mjs +129 -0
- package/dist/components/Wizard/Wizard.mjs.map +1 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts +16 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.d.ts.map +1 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.mjs +41 -0
- package/dist/components/Wizard/WizardSteps/WizardSteps.mjs.map +1 -0
- package/dist/components/index.d.ts +21 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.mjs +41 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/constants.d.ts +114 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.mjs +44 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/elements/FormActionButton/FormActionButton.d.ts +23 -0
- package/dist/elements/FormActionButton/FormActionButton.d.ts.map +1 -0
- package/dist/elements/FormActionButton/FormActionButton.mjs +43 -0
- package/dist/elements/FormActionButton/FormActionButton.mjs.map +1 -0
- package/dist/elements/FormRowActions/FormRowActions.d.ts +27 -0
- package/dist/elements/FormRowActions/FormRowActions.d.ts.map +1 -0
- package/dist/elements/FormRowActions/FormRowActions.mjs +87 -0
- package/dist/elements/FormRowActions/FormRowActions.mjs.map +1 -0
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts +18 -0
- package/dist/elements/OptionsMenu/OptionsMenu.d.ts.map +1 -0
- package/dist/elements/OptionsMenu/OptionsMenu.mjs +47 -0
- package/dist/elements/OptionsMenu/OptionsMenu.mjs.map +1 -0
- package/dist/elements/SelectOption/SelectOption.d.ts +20 -0
- package/dist/elements/SelectOption/SelectOption.d.ts.map +1 -0
- package/dist/elements/SelectOption/SelectOption.mjs +84 -0
- package/dist/elements/SelectOption/SelectOption.mjs.map +1 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts +12 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.d.ts.map +1 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.mjs +22 -0
- package/dist/elements/ValidationTemplate/ValidationTemplate.mjs.map +1 -0
- package/dist/elements/index.d.ts +7 -0
- package/dist/elements/index.d.ts.map +1 -0
- package/dist/elements/index.mjs +13 -0
- package/dist/elements/index.mjs.map +1 -0
- package/dist/hooks/index.d.ts +6 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.mjs +13 -0
- package/dist/hooks/index.mjs.map +1 -0
- package/dist/hooks/useChipCell.hook.d.ts +13 -0
- package/dist/hooks/useChipCell.hook.d.ts.map +1 -0
- package/dist/hooks/useChipCell.hook.mjs +58 -0
- package/dist/hooks/useChipCell.hook.mjs.map +1 -0
- package/dist/hooks/useDebounce.hook.d.ts +2 -0
- package/dist/hooks/useDebounce.hook.d.ts.map +1 -0
- package/dist/hooks/useDebounce.hook.mjs +19 -0
- package/dist/hooks/useDebounce.hook.mjs.map +1 -0
- package/dist/hooks/useDetectOutsideClick.hook.d.ts +2 -0
- package/dist/hooks/useDetectOutsideClick.hook.d.ts.map +1 -0
- package/dist/hooks/useDetectOutsideClick.hook.mjs +15 -0
- package/dist/hooks/useDetectOutsideClick.hook.mjs.map +1 -0
- package/dist/hooks/useFormTable.hook.d.ts +16 -0
- package/dist/hooks/useFormTable.hook.d.ts.map +1 -0
- package/dist/hooks/useFormTable.hook.mjs +128 -0
- package/dist/hooks/useFormTable.hook.mjs.map +1 -0
- package/dist/hooks/useHiddenChipsBlock.hook.d.ts +4 -0
- package/dist/hooks/useHiddenChipsBlock.hook.d.ts.map +1 -0
- package/dist/hooks/useHiddenChipsBlock.hook.mjs +51 -0
- package/dist/hooks/useHiddenChipsBlock.hook.mjs.map +1 -0
- package/dist/images/add.svg.mjs +6 -0
- package/dist/images/add.svg.mjs.map +1 -0
- package/dist/images/alerts-icon.svg +3 -0
- package/dist/images/arrow.svg.mjs +6 -0
- package/dist/images/arrow.svg.mjs.map +1 -0
- package/dist/images/back-arrow.svg.mjs +6 -0
- package/dist/images/back-arrow.svg.mjs.map +1 -0
- package/dist/images/checkmark.svg.mjs +6 -0
- package/dist/images/checkmark.svg.mjs.map +1 -0
- package/dist/images/checkmark2.svg.mjs +6 -0
- package/dist/images/checkmark2.svg.mjs.map +1 -0
- package/dist/images/close.svg.mjs +6 -0
- package/dist/images/close.svg.mjs.map +1 -0
- package/dist/images/delete.svg.mjs +6 -0
- package/dist/images/delete.svg.mjs.map +1 -0
- package/dist/images/documents-icon.svg +3 -0
- package/dist/images/dropdown.svg.mjs +6 -0
- package/dist/images/dropdown.svg.mjs.map +1 -0
- package/dist/images/edit.svg.mjs +6 -0
- package/dist/images/edit.svg.mjs.map +1 -0
- package/dist/images/exclamation-mark.svg.mjs +6 -0
- package/dist/images/exclamation-mark.svg.mjs.map +1 -0
- package/dist/images/llm-prompt-icon.svg +3 -0
- package/dist/images/mlrun-api-gateways.svg +8 -0
- package/dist/images/mlrun-artifacts.svg +11 -0
- package/dist/images/mlrun-datasets.svg +5 -0
- package/dist/images/mlrun-feature-store.svg +10 -0
- package/dist/images/mlrun-jobs-and-workflows.svg +5 -0
- package/dist/images/mlrun-ml-functions.svg +8 -0
- package/dist/images/mlrun-models.svg +5 -0
- package/dist/images/mlrun-project-home.svg +5 -0
- package/dist/images/mlrun-project-monitoring.svg +9 -0
- package/dist/images/mlrun-project-settings.svg +5 -0
- package/dist/images/mlrun-realtime-functions.svg +8 -0
- package/dist/images/model-monitoring.svg +3 -0
- package/dist/images/plus.svg.mjs +6 -0
- package/dist/images/plus.svg.mjs.map +1 -0
- package/dist/images/popout.svg.mjs +6 -0
- package/dist/images/popout.svg.mjs.map +1 -0
- package/dist/images/question-mark.svg.mjs +6 -0
- package/dist/images/question-mark.svg.mjs.map +1 -0
- package/dist/images/range-arrow-small.svg.mjs +6 -0
- package/dist/images/range-arrow-small.svg.mjs.map +1 -0
- package/dist/images/search.svg.mjs +6 -0
- package/dist/images/search.svg.mjs.map +1 -0
- package/dist/images/success_done.svg.mjs +6 -0
- package/dist/images/success_done.svg.mjs.map +1 -0
- package/dist/images/warning.svg.mjs +6 -0
- package/dist/images/warning.svg.mjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +15 -0
- package/dist/index.mjs.map +1 -0
- package/dist/robots.txt +3 -0
- package/dist/scss/borders.scss +22 -22
- package/dist/scss/colors.scss +0 -11
- package/dist/scss/common.scss +48 -33
- package/dist/scss/fonts.scss +6 -0
- package/dist/scss/mixins.scss +117 -106
- package/dist/scss/shadows.scss +12 -12
- package/dist/scss/variables.scss +3 -3
- package/dist/types.d.ts +25 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.mjs +143 -0
- package/dist/types.mjs.map +1 -0
- package/dist/utils/common.util.d.ts +10 -0
- package/dist/utils/common.util.d.ts.map +1 -0
- package/dist/utils/common.util.mjs +60 -0
- package/dist/utils/common.util.mjs.map +1 -0
- package/dist/utils/form.util.d.ts +11 -0
- package/dist/utils/form.util.d.ts.map +1 -0
- package/dist/utils/form.util.mjs +26 -0
- package/dist/utils/form.util.mjs.map +1 -0
- package/dist/utils/generateChipsList.util.d.ts +10 -0
- package/dist/utils/generateChipsList.util.d.ts.map +1 -0
- package/dist/utils/generateChipsList.util.mjs +19 -0
- package/dist/utils/generateChipsList.util.mjs.map +1 -0
- package/dist/utils/getFirstScrollableParent.util.d.ts +2 -0
- package/dist/utils/getFirstScrollableParent.util.d.ts.map +1 -0
- package/dist/utils/getFirstScrollableParent.util.mjs +5 -0
- package/dist/utils/getFirstScrollableParent.util.mjs.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.mjs +15 -0
- package/dist/utils/index.mjs.map +1 -0
- package/dist/utils/math.util.d.ts +2 -0
- package/dist/utils/math.util.d.ts.map +1 -0
- package/dist/utils/math.util.mjs +18 -0
- package/dist/utils/math.util.mjs.map +1 -0
- package/dist/utils/validation.util.d.ts +6 -0
- package/dist/utils/validation.util.d.ts.map +1 -0
- package/dist/utils/validation.util.mjs +306 -0
- package/dist/utils/validation.util.mjs.map +1 -0
- package/package.json +48 -38
- package/dist/components/Backdrop/Backdrop.js +0 -56
- package/dist/components/Backdrop/Backdrop.scss +0 -32
- package/dist/components/Button/Button.js +0 -73
- package/dist/components/Button/Button.scss +0 -171
- package/dist/components/ConfirmDialog/ConfirmDialog.js +0 -101
- package/dist/components/ConfirmDialog/confirmDialog.scss +0 -23
- package/dist/components/FormCheckBox/FormCheckBox.js +0 -82
- package/dist/components/FormCheckBox/formCheckBox.scss +0 -91
- package/dist/components/FormChipCell/FormChip/FormChip.js +0 -103
- package/dist/components/FormChipCell/FormChip/formChip.scss +0 -68
- package/dist/components/FormChipCell/FormChipCell.js +0 -339
- package/dist/components/FormChipCell/FormChipCellView.js +0 -190
- package/dist/components/FormChipCell/HiddenChipsBlock/HiddenChipsBlock.js +0 -107
- package/dist/components/FormChipCell/NewChipForm/NewChipForm.js +0 -353
- package/dist/components/FormChipCell/NewChipForm/newChipForm.scss +0 -81
- package/dist/components/FormChipCell/NewChipInput/NewChipInput.js +0 -71
- package/dist/components/FormChipCell/formChipCell.scss +0 -64
- package/dist/components/FormChipCell/formChipCell.util.js +0 -52
- package/dist/components/FormCombobox/FormCombobox.js +0 -432
- package/dist/components/FormCombobox/formCombobox.scss +0 -134
- package/dist/components/FormInput/FormInput.js +0 -408
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.js +0 -91
- package/dist/components/FormInput/InputNumberButtons/InputNumberButtons.scss +0 -123
- package/dist/components/FormInput/formInput.scss +0 -76
- package/dist/components/FormKeyValueTable/FormKeyValueTable.js +0 -221
- package/dist/components/FormOnChange/FormOnChange.js +0 -69
- package/dist/components/FormRadio/FormRadio.js +0 -85
- package/dist/components/FormRadio/FormRadio.scss +0 -41
- package/dist/components/FormSelect/FormSelect.js +0 -353
- package/dist/components/FormSelect/FormSelect.test.js +0 -138
- package/dist/components/FormSelect/formSelect.scss +0 -97
- package/dist/components/FormTextarea/FormTextarea.js +0 -184
- package/dist/components/FormTextarea/formTextarea.scss +0 -32
- package/dist/components/FormToggle/FormToggle.js +0 -82
- package/dist/components/FormToggle/formToggle.scss +0 -58
- package/dist/components/Modal/Modal.js +0 -116
- package/dist/components/Modal/Modal.scss +0 -149
- package/dist/components/PopUpDialog/PopUpDialog.js +0 -171
- package/dist/components/PopUpDialog/popUpDialog.scss +0 -83
- package/dist/components/RoundedIcon/RoundedIcon.js +0 -72
- package/dist/components/RoundedIcon/roundedIcon.scss +0 -57
- package/dist/components/Tip/Tip.js +0 -116
- package/dist/components/Tip/Tip.test.js +0 -64
- package/dist/components/Tip/tip.scss +0 -94
- package/dist/components/Tooltip/Tooltip.js +0 -180
- package/dist/components/Tooltip/Tooltip.test.js +0 -155
- package/dist/components/Tooltip/tooltip.scss +0 -29
- package/dist/components/TooltipTemplate/ProducerTooltipTemplate.js +0 -53
- package/dist/components/TooltipTemplate/TextTooltipTemplate.js +0 -53
- package/dist/components/TooltipTemplate/producerTooltipTemplate.scss +0 -23
- package/dist/components/TooltipTemplate/textTooltipTemplate.scss +0 -21
- package/dist/components/Wizard/Wizard.js +0 -192
- package/dist/components/Wizard/Wizard.scss +0 -53
- package/dist/components/Wizard/WizardSteps/WizardSteps.js +0 -74
- package/dist/components/Wizard/WizardSteps/WizardSteps.scss +0 -108
- package/dist/components/index.js +0 -139
- package/dist/constants.js +0 -120
- package/dist/elements/FormActionButton/FormActionButton.js +0 -64
- package/dist/elements/FormRowActions/FormRowActions.js +0 -99
- package/dist/elements/OptionsMenu/OptionsMenu.js +0 -75
- package/dist/elements/OptionsMenu/optionsMenu.scss +0 -45
- package/dist/elements/SelectOption/SelectOption.js +0 -107
- package/dist/elements/SelectOption/SelectOption.test.js +0 -98
- package/dist/elements/SelectOption/selectOption.scss +0 -98
- package/dist/elements/ValidationTemplate/ValidationTemplate.js +0 -56
- package/dist/elements/ValidationTemplate/ValidationTemplate.scss +0 -36
- package/dist/elements/index.js +0 -41
- package/dist/hooks/index.js +0 -40
- package/dist/hooks/useChipCell.hook.js +0 -129
- package/dist/hooks/useDebounce.hook.js +0 -52
- package/dist/hooks/useDetectOutsideClick.hook.js +0 -47
- package/dist/hooks/useFormTable.hook.js +0 -224
- package/dist/hooks/useHiddenChipsBlock.hook.js +0 -102
- package/dist/index.js +0 -18
- package/dist/types.js +0 -127
- package/dist/utils/common.util.js +0 -130
- package/dist/utils/form.util.js +0 -70
- package/dist/utils/generateChipsList.util.js +0 -39
- package/dist/utils/getFirstScrollableParent.util.js +0 -49
- package/dist/utils/math.util.js +0 -44
- package/dist/utils/validation.util.js +0 -401
package/dist/types.js
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.WIZARD_STEPS_CONFIG = exports.SORT_PROPS = exports.SELECT_OPTIONS = exports.SELECT_OPTION = exports.POP_UP_CUSTOM_POSITION = exports.MODAL_SIZES = exports.INPUT_VALIDATION_RULES = exports.INPUT_LINK = exports.FORM_TABLE_EDITING_ITEM = exports.EXCLUDE_SORT_BY = exports.DEFAULT_SORT_BY = exports.CONFIRM_DIALOG_SUBMIT_BUTTON = exports.CONFIRM_DIALOG_MESSAGE = exports.CONFIRM_DIALOG_CANCEL_BUTTON = exports.COMBOBOX_VALIDATION_RULES = exports.COMBOBOX_SUGGESTION_LIST = exports.COMBOBOX_SELECT_OPTIONS = exports.CHIP_OPTIONS = exports.CHIP_INPUT_LIST = exports.CHIPS = exports.CHIP = exports.BUTTON_VARIANTS = exports.ALLOW_SORT_BY = void 0;
|
|
7
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
|
-
var _constants = require("./constants");
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
/*
|
|
11
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
12
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
13
|
-
an addition restriction as set forth herein. You may not use this
|
|
14
|
-
file except in compliance with the License. You may obtain a copy of
|
|
15
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
16
|
-
Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
19
|
-
implied. See the License for the specific language governing
|
|
20
|
-
permissions and limitations under the License.
|
|
21
|
-
In addition, you may not use the software for any purposes that are
|
|
22
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
23
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
24
|
-
such restriction.
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
const BUTTON_VARIANTS = exports.BUTTON_VARIANTS = _propTypes.default.oneOf([_constants.DANGER_BUTTON, _constants.LABEL_BUTTON, _constants.PRIMARY_BUTTON, _constants.SECONDARY_BUTTON, _constants.TERTIARY_BUTTON]);
|
|
28
|
-
const CHIP = exports.CHIP = _propTypes.default.shape({
|
|
29
|
-
delimiter: _propTypes.default.element,
|
|
30
|
-
id: _propTypes.default.string,
|
|
31
|
-
value: _propTypes.default.string.isRequired
|
|
32
|
-
});
|
|
33
|
-
const CHIP_INPUT_LIST = exports.CHIP_INPUT_LIST = _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
34
|
-
disabled: _propTypes.default.bool,
|
|
35
|
-
icon: _propTypes.default.element,
|
|
36
|
-
id: _propTypes.default.string.isRequired,
|
|
37
|
-
label: _propTypes.default.string.isRequired,
|
|
38
|
-
subLabel: _propTypes.default.string,
|
|
39
|
-
ui: _propTypes.default.shape({})
|
|
40
|
-
}));
|
|
41
|
-
const CHIP_OPTIONS = exports.CHIP_OPTIONS = _propTypes.default.shape({
|
|
42
|
-
background: _propTypes.default.oneOf(['amethyst', 'green', 'grey', 'java', 'none', 'orange', 'purple', 'sorbus']),
|
|
43
|
-
boldValue: _propTypes.default.bool,
|
|
44
|
-
borderColor: _propTypes.default.oneOf(['transparent', 'orange', 'green', 'purple', 'grey']),
|
|
45
|
-
density: _propTypes.default.oneOf(['dense', 'normal', 'medium']),
|
|
46
|
-
font: _propTypes.default.oneOf(['primary', 'white', 'green', 'purple', 'orange']),
|
|
47
|
-
borderRadius: _propTypes.default.oneOf(['primary', 'secondary'])
|
|
48
|
-
});
|
|
49
|
-
const CHIPS = exports.CHIPS = _propTypes.default.arrayOf(CHIP);
|
|
50
|
-
const POP_UP_CUSTOM_POSITION = exports.POP_UP_CUSTOM_POSITION = _propTypes.default.shape({
|
|
51
|
-
element: _propTypes.default.shape({}),
|
|
52
|
-
position: _propTypes.default.oneOf(['top-left', 'top-right', 'bottom-left', 'bottom-right']),
|
|
53
|
-
autoHorizontalPosition: _propTypes.default.bool,
|
|
54
|
-
autoVerticalPosition: _propTypes.default.bool
|
|
55
|
-
});
|
|
56
|
-
const MODAL_SIZES = exports.MODAL_SIZES = _propTypes.default.oneOf([_constants.MODAL_SM, _constants.MODAL_MD, _constants.MODAL_LG, _constants.MODAL_MIN, _constants.MODAL_MAX]);
|
|
57
|
-
const CONFIRM_DIALOG_CANCEL_BUTTON = exports.CONFIRM_DIALOG_CANCEL_BUTTON = _propTypes.default.shape({
|
|
58
|
-
handler: _propTypes.default.func,
|
|
59
|
-
label: _propTypes.default.string.isRequired,
|
|
60
|
-
variant: _propTypes.default.string.isRequired
|
|
61
|
-
});
|
|
62
|
-
const CONFIRM_DIALOG_MESSAGE = exports.CONFIRM_DIALOG_MESSAGE = _propTypes.default.oneOfType([_propTypes.default.element, _propTypes.default.string]);
|
|
63
|
-
const CONFIRM_DIALOG_SUBMIT_BUTTON = exports.CONFIRM_DIALOG_SUBMIT_BUTTON = _propTypes.default.shape({
|
|
64
|
-
handler: _propTypes.default.func.isRequired,
|
|
65
|
-
label: _propTypes.default.string.isRequired,
|
|
66
|
-
variant: _propTypes.default.string.isRequired
|
|
67
|
-
});
|
|
68
|
-
const WIZARD_STEPS_CONFIG = exports.WIZARD_STEPS_CONFIG = _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
69
|
-
id: _propTypes.default.string.isRequired,
|
|
70
|
-
label: _propTypes.default.string.isRequired,
|
|
71
|
-
hidden: _propTypes.default.bool,
|
|
72
|
-
disabled: _propTypes.default.bool,
|
|
73
|
-
nextIsDisabled: _propTypes.default.bool
|
|
74
|
-
}));
|
|
75
|
-
const INPUT_LINK = exports.INPUT_LINK = _propTypes.default.shape({
|
|
76
|
-
show: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string]),
|
|
77
|
-
url: _propTypes.default.string
|
|
78
|
-
});
|
|
79
|
-
const SELECT_OPTION = exports.SELECT_OPTION = _propTypes.default.shape({
|
|
80
|
-
disabled: _propTypes.default.bool,
|
|
81
|
-
hidden: _propTypes.default.bool,
|
|
82
|
-
icon: _propTypes.default.element,
|
|
83
|
-
id: _propTypes.default.string.isRequired,
|
|
84
|
-
label: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.element]).isRequired,
|
|
85
|
-
labelHtml: _propTypes.default.string,
|
|
86
|
-
status: _propTypes.default.string,
|
|
87
|
-
subLabel: _propTypes.default.string
|
|
88
|
-
});
|
|
89
|
-
const SELECT_OPTIONS = exports.SELECT_OPTIONS = _propTypes.default.arrayOf(SELECT_OPTION);
|
|
90
|
-
const INPUT_VALIDATION_RULES = exports.INPUT_VALIDATION_RULES = _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
91
|
-
name: _propTypes.default.string.isRequired,
|
|
92
|
-
label: _propTypes.default.string.isRequired,
|
|
93
|
-
pattern: _propTypes.default.oneOfType([_propTypes.default.instanceOf(RegExp), _propTypes.default.func]).isRequired,
|
|
94
|
-
isValid: _propTypes.default.bool
|
|
95
|
-
}));
|
|
96
|
-
const COMBOBOX_SUGGESTION_LIST = exports.COMBOBOX_SUGGESTION_LIST = _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
97
|
-
customDelimiter: _propTypes.default.string,
|
|
98
|
-
id: _propTypes.default.string.isRequired,
|
|
99
|
-
label: _propTypes.default.string.isRequired
|
|
100
|
-
}));
|
|
101
|
-
const COMBOBOX_VALIDATION_RULES = exports.COMBOBOX_VALIDATION_RULES = _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
102
|
-
name: _propTypes.default.string.isRequired,
|
|
103
|
-
label: _propTypes.default.string.isRequired,
|
|
104
|
-
isValid: _propTypes.default.bool
|
|
105
|
-
}));
|
|
106
|
-
const COMBOBOX_SELECT_OPTIONS = exports.COMBOBOX_SELECT_OPTIONS = _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
107
|
-
className: _propTypes.default.string,
|
|
108
|
-
id: _propTypes.default.string.isRequired,
|
|
109
|
-
label: _propTypes.default.string.isRequired
|
|
110
|
-
}));
|
|
111
|
-
const FORM_TABLE_EDITING_ITEM = exports.FORM_TABLE_EDITING_ITEM = _propTypes.default.shape({
|
|
112
|
-
data: _propTypes.default.shape({}).isRequired,
|
|
113
|
-
ui: _propTypes.default.shape({
|
|
114
|
-
isNew: _propTypes.default.bool,
|
|
115
|
-
index: _propTypes.default.number.isRequired,
|
|
116
|
-
fieldsPath: _propTypes.default.string.isRequired
|
|
117
|
-
}).isRequired,
|
|
118
|
-
[_propTypes.default.string]: _propTypes.default.any
|
|
119
|
-
});
|
|
120
|
-
const SORT_PROPS = exports.SORT_PROPS = _propTypes.default.shape({
|
|
121
|
-
selectedColumnName: _propTypes.default.string.isRequired,
|
|
122
|
-
getSortingIcon: _propTypes.default.func.isRequired,
|
|
123
|
-
sortTable: _propTypes.default.func.isRequired
|
|
124
|
-
});
|
|
125
|
-
const ALLOW_SORT_BY = exports.ALLOW_SORT_BY = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.string, _propTypes.default.number)]);
|
|
126
|
-
const DEFAULT_SORT_BY = exports.DEFAULT_SORT_BY = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]);
|
|
127
|
-
const EXCLUDE_SORT_BY = exports.EXCLUDE_SORT_BY = _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number, _propTypes.default.arrayOf(_propTypes.default.string, _propTypes.default.number)]);
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.openPopUp = exports.openDeleteConfirmPopUp = exports.openConfirmPopUp = exports.isEveryObjectValueEmpty = exports.getTransitionEndEventName = exports.getErrorMsg = exports.getErrorDetail = exports.areArraysEqual = void 0;
|
|
7
|
-
var _reactModalPromise = require("react-modal-promise");
|
|
8
|
-
var _lodash = require("lodash");
|
|
9
|
-
var _components = require("../components");
|
|
10
|
-
var _constants = require("../constants");
|
|
11
|
-
/*
|
|
12
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
13
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
14
|
-
an addition restriction as set forth herein. You may not use this
|
|
15
|
-
file except in compliance with the License. You may obtain a copy of
|
|
16
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
17
|
-
Unless required by applicable law or agreed to in writing, software
|
|
18
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
19
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
20
|
-
implied. See the License for the specific language governing
|
|
21
|
-
permissions and limitations under the License.
|
|
22
|
-
In addition, you may not use the software for any purposes that are
|
|
23
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
24
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
25
|
-
such restriction.
|
|
26
|
-
*/
|
|
27
|
-
|
|
28
|
-
const openPopUp = (element, props) => {
|
|
29
|
-
return (0, _reactModalPromise.create)(element)(props);
|
|
30
|
-
};
|
|
31
|
-
exports.openPopUp = openPopUp;
|
|
32
|
-
const openConfirmPopUp = (message, confirmHandler) => {
|
|
33
|
-
return openPopUp(_components.ConfirmDialog, {
|
|
34
|
-
cancelButton: {
|
|
35
|
-
label: 'Cancel',
|
|
36
|
-
variant: _constants.TERTIARY_BUTTON
|
|
37
|
-
},
|
|
38
|
-
confirmButton: {
|
|
39
|
-
label: 'OK',
|
|
40
|
-
variant: _constants.PRIMARY_BUTTON,
|
|
41
|
-
handler: confirmHandler
|
|
42
|
-
},
|
|
43
|
-
header: 'Are you sure?',
|
|
44
|
-
message
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
exports.openConfirmPopUp = openConfirmPopUp;
|
|
48
|
-
const openDeleteConfirmPopUp = (header, message, confirmHandler) => {
|
|
49
|
-
return openPopUp(_components.ConfirmDialog, {
|
|
50
|
-
cancelButton: {
|
|
51
|
-
label: 'Cancel',
|
|
52
|
-
variant: _constants.TERTIARY_BUTTON
|
|
53
|
-
},
|
|
54
|
-
confirmButton: {
|
|
55
|
-
label: 'Delete',
|
|
56
|
-
variant: _constants.DANGER_BUTTON,
|
|
57
|
-
handler: confirmHandler
|
|
58
|
-
},
|
|
59
|
-
header,
|
|
60
|
-
message
|
|
61
|
-
});
|
|
62
|
-
};
|
|
63
|
-
exports.openDeleteConfirmPopUp = openDeleteConfirmPopUp;
|
|
64
|
-
const isEveryObjectValueEmpty = obj => Object.values(obj).every(item => !item || item.length === 0);
|
|
65
|
-
|
|
66
|
-
// Checks, whether two arrays of objects are equal, can omit some keys if their comparison is not necessary
|
|
67
|
-
exports.isEveryObjectValueEmpty = isEveryObjectValueEmpty;
|
|
68
|
-
const areArraysEqual = function (firstArray, secondArray) {
|
|
69
|
-
let omitBy = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
|
|
70
|
-
if (firstArray.length !== secondArray.length) return false;
|
|
71
|
-
return (0, _lodash.isEmpty)((0, _lodash.differenceWith)(firstArray, secondArray, (a, b) => {
|
|
72
|
-
return (0, _lodash.isEqual)((0, _lodash.omit)(a, omitBy), (0, _lodash.omit)(b, omitBy));
|
|
73
|
-
}));
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Get error information from the error object.
|
|
78
|
-
*
|
|
79
|
-
* @param {Error} error - The error object.
|
|
80
|
-
* @returns {string} - The detailed error information.
|
|
81
|
-
*/
|
|
82
|
-
exports.areArraysEqual = areArraysEqual;
|
|
83
|
-
const getErrorDetail = error => {
|
|
84
|
-
const errorDetail = (0, _lodash.get)(error, 'response.data.detail', null);
|
|
85
|
-
if (typeof errorDetail === 'string') {
|
|
86
|
-
return errorDetail;
|
|
87
|
-
} else {
|
|
88
|
-
return (0, _lodash.get)(errorDetail, 'reason', '');
|
|
89
|
-
}
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Get the error message from the error object or a default error message.
|
|
94
|
-
*
|
|
95
|
-
* @param {Error} error - The error object.
|
|
96
|
-
* @param {string} defaultError - The default error message.
|
|
97
|
-
* @returns {string} - The error message.
|
|
98
|
-
*/
|
|
99
|
-
exports.getErrorDetail = getErrorDetail;
|
|
100
|
-
const getErrorMsg = (error, defaultError) => {
|
|
101
|
-
const errorDetail = getErrorDetail(error);
|
|
102
|
-
const errorMsg = errorDetail || error.message;
|
|
103
|
-
if ((!errorMsg || errorMsg === 'Not Found' || errorMsg.startsWith('Request failed with status code')) && defaultError) {
|
|
104
|
-
return defaultError;
|
|
105
|
-
} else {
|
|
106
|
-
return errorMsg || '';
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Retrieves the appropriate transition end event name based on the browser.
|
|
112
|
-
*
|
|
113
|
-
* @returns {string} The transition end event name.
|
|
114
|
-
*/
|
|
115
|
-
exports.getErrorMsg = getErrorMsg;
|
|
116
|
-
const getTransitionEndEventName = () => {
|
|
117
|
-
const transitions = {
|
|
118
|
-
transition: 'transitionend',
|
|
119
|
-
OTransition: 'oTransitionEnd',
|
|
120
|
-
MozTransition: 'transitionend',
|
|
121
|
-
WebkitTransition: 'webkitTransitionEnd'
|
|
122
|
-
};
|
|
123
|
-
let bodyStyle = document.body.style;
|
|
124
|
-
for (let transition in transitions) {
|
|
125
|
-
if (bodyStyle[transition] !== undefined) {
|
|
126
|
-
return transitions[transition];
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
exports.getTransitionEndEventName = getTransitionEndEventName;
|
package/dist/utils/form.util.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.setFieldState = exports.parseObjectToKeyValue = exports.isSubmitDisabled = exports.generateObjectFromKeyValue = exports.areFormValuesChanged = void 0;
|
|
7
|
-
var _lodash = require("lodash");
|
|
8
|
-
/*
|
|
9
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
10
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
11
|
-
an addition restriction as set forth herein. You may not use this
|
|
12
|
-
file except in compliance with the License. You may obtain a copy of
|
|
13
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
14
|
-
Unless required by applicable law or agreed to in writing, software
|
|
15
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
16
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
17
|
-
implied. See the License for the specific language governing
|
|
18
|
-
permissions and limitations under the License.
|
|
19
|
-
In addition, you may not use the software for any purposes that are
|
|
20
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
21
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
22
|
-
such restriction.
|
|
23
|
-
*/
|
|
24
|
-
|
|
25
|
-
const setFieldState = (args, state) => {
|
|
26
|
-
let fieldName = args[0];
|
|
27
|
-
let states = args[1];
|
|
28
|
-
let field = state.fields[fieldName];
|
|
29
|
-
if (field) {
|
|
30
|
-
for (let stateName in states) {
|
|
31
|
-
(0, _lodash.set)(field, stateName, states[stateName]);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
exports.setFieldState = setFieldState;
|
|
36
|
-
const areFormValuesChanged = (initialValues, values) => {
|
|
37
|
-
const replacer = (key, value) => {
|
|
38
|
-
if (value === '') {
|
|
39
|
-
return undefined;
|
|
40
|
-
}
|
|
41
|
-
return value;
|
|
42
|
-
};
|
|
43
|
-
return !(0, _lodash.isEqual)(JSON.stringify(initialValues, replacer), JSON.stringify(values, replacer));
|
|
44
|
-
};
|
|
45
|
-
exports.areFormValuesChanged = areFormValuesChanged;
|
|
46
|
-
const generateObjectFromKeyValue = function () {
|
|
47
|
-
let keyValueList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
48
|
-
return keyValueList.reduce((acc, keyValue) => {
|
|
49
|
-
acc[keyValue.data.key] = keyValue.data.value;
|
|
50
|
-
return acc;
|
|
51
|
-
}, {});
|
|
52
|
-
};
|
|
53
|
-
exports.generateObjectFromKeyValue = generateObjectFromKeyValue;
|
|
54
|
-
const parseObjectToKeyValue = function () {
|
|
55
|
-
let object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
56
|
-
return Object.entries(object).map(_ref => {
|
|
57
|
-
let [key, value] = _ref;
|
|
58
|
-
return {
|
|
59
|
-
data: {
|
|
60
|
-
key,
|
|
61
|
-
value
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
});
|
|
65
|
-
};
|
|
66
|
-
exports.parseObjectToKeyValue = parseObjectToKeyValue;
|
|
67
|
-
const isSubmitDisabled = formState => {
|
|
68
|
-
return formState.submitting || formState.invalid && formState.submitFailed;
|
|
69
|
-
};
|
|
70
|
-
exports.isSubmitDisabled = isSubmitDisabled;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.generateChipsList = void 0;
|
|
7
|
-
/*
|
|
8
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
10
|
-
an addition restriction as set forth herein. You may not use this
|
|
11
|
-
file except in compliance with the License. You may obtain a copy of
|
|
12
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
13
|
-
Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
16
|
-
implied. See the License for the specific language governing
|
|
17
|
-
permissions and limitations under the License.
|
|
18
|
-
In addition, you may not use the software for any purposes that are
|
|
19
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
20
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
21
|
-
such restriction.
|
|
22
|
-
*/
|
|
23
|
-
const generateChipsList = (chips, maxLength) => {
|
|
24
|
-
if (chips.length > maxLength) {
|
|
25
|
-
let hiddenChipsNumber = `+ ${chips.length - maxLength}`;
|
|
26
|
-
const hiddenChips = chips.slice(maxLength);
|
|
27
|
-
const visibleChips = chips.slice(0, maxLength);
|
|
28
|
-
return {
|
|
29
|
-
visibleChips,
|
|
30
|
-
hiddenChips,
|
|
31
|
-
hiddenChipsNumber
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
return {
|
|
35
|
-
visibleChips: chips,
|
|
36
|
-
hiddenChips: []
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
exports.generateChipsList = generateChipsList;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getFirstScrollableParent = void 0;
|
|
7
|
-
/*
|
|
8
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
10
|
-
an addition restriction as set forth herein. You may not use this
|
|
11
|
-
file except in compliance with the License. You may obtain a copy of
|
|
12
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
13
|
-
Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
16
|
-
implied. See the License for the specific language governing
|
|
17
|
-
permissions and limitations under the License.
|
|
18
|
-
In addition, you may not use the software for any purposes that are
|
|
19
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
20
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
21
|
-
such restriction.
|
|
22
|
-
*/
|
|
23
|
-
const regex = /(auto|scroll|hidden)/;
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Retrieves the computed style of a node for the specified CSS property.
|
|
27
|
-
*
|
|
28
|
-
* @param {Node} node - The DOM node.
|
|
29
|
-
* @param {string} prop - The CSS property to retrieve.
|
|
30
|
-
* @returns {string} The computed style value.
|
|
31
|
-
*/
|
|
32
|
-
const style = (node, prop) => getComputedStyle(node, null).getPropertyValue(prop);
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Checks if the given node has a scrollable overflow.
|
|
36
|
-
*
|
|
37
|
-
* @param {Node} node - The DOM node.
|
|
38
|
-
* @returns {boolean} Returns true if the node has a scrollable overflow, false otherwise.
|
|
39
|
-
*/
|
|
40
|
-
const scroll = node => regex.test(style(node, 'overflow') + style(node, 'overflow-y') + style(node, 'overflow-x'));
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* Finds the first scrollable parent node of the given node.
|
|
44
|
-
*
|
|
45
|
-
* @param {Node} node - The DOM node.
|
|
46
|
-
* @returns {Node} The first scrollable parent node.
|
|
47
|
-
*/
|
|
48
|
-
const getFirstScrollableParent = node => !node || node === document.body ? document.body : scroll(node) ? node : getFirstScrollableParent(node.parentNode);
|
|
49
|
-
exports.getFirstScrollableParent = getFirstScrollableParent;
|
package/dist/utils/math.util.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.performFloatOperation = void 0;
|
|
7
|
-
/*
|
|
8
|
-
Copyright 2022 Iguazio Systems Ltd.
|
|
9
|
-
Licensed under the Apache License, Version 2.0 (the "License") with
|
|
10
|
-
an addition restriction as set forth herein. You may not use this
|
|
11
|
-
file except in compliance with the License. You may obtain a copy of
|
|
12
|
-
the License at http://www.apache.org/licenses/LICENSE-2.0.
|
|
13
|
-
Unless required by applicable law or agreed to in writing, software
|
|
14
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
15
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
16
|
-
implied. See the License for the specific language governing
|
|
17
|
-
permissions and limitations under the License.
|
|
18
|
-
In addition, you may not use the software for any purposes that are
|
|
19
|
-
illegal under applicable law, and the grant of the foregoing license
|
|
20
|
-
under the Apache 2.0 license is conditioned upon your compliance with
|
|
21
|
-
such restriction.
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Performs a floating-point arithmetic operation on two numbers.
|
|
26
|
-
*
|
|
27
|
-
* @param {number} num1 - The first operand.
|
|
28
|
-
* @param {number} num2 - The second operand.
|
|
29
|
-
* @param {string} operator - The operator to use for the operation. Supported operators are '+', and '-'.
|
|
30
|
-
* @returns {number} The result of the arithmetic operation.
|
|
31
|
-
*/
|
|
32
|
-
const performFloatOperation = (num1, num2, operator) => {
|
|
33
|
-
const precision = Math.max((num1.toString().split('.')[1] || '').length, (num2.toString().split('.')[1] || '').length);
|
|
34
|
-
const multiplier = Math.pow(10, precision);
|
|
35
|
-
switch (operator) {
|
|
36
|
-
case '+':
|
|
37
|
-
return (Math.round(num1 * multiplier) + Math.round(num2 * multiplier)) / multiplier;
|
|
38
|
-
case '-':
|
|
39
|
-
return (Math.round(num1 * multiplier) - Math.round(num2 * multiplier)) / multiplier;
|
|
40
|
-
default:
|
|
41
|
-
return 0;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.performFloatOperation = performFloatOperation;
|