react-core-ts 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +59 -0
- package/dist/AutoComplete.d.ts +1 -1
- package/dist/AutoComplete.js +141 -150
- package/dist/AutoComplete.js.map +1 -1
- package/dist/AutoCompleteWithSelectedList.d.ts +1 -1
- package/dist/AutoCompleteWithSelectedList.js +294 -338
- package/dist/AutoCompleteWithSelectedList.js.map +1 -1
- package/dist/AutoCompleteWithTabFilter.d.ts +1 -1
- package/dist/AutoCompleteWithTabFilter.js +313 -345
- package/dist/AutoCompleteWithTabFilter.js.map +1 -1
- package/dist/AutoCompleteWithTreeStructure.d.ts +1 -1
- package/dist/AutoCompleteWithTreeStructure.js +213 -253
- package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
- package/dist/ExpandableAutoComplete.d.ts +1 -1
- package/dist/ExpandableAutoComplete.js +266 -261
- package/dist/ExpandableAutoComplete.js.map +1 -1
- package/dist/ReactAutoComplete.js +323 -254
- package/dist/ReactAutoComplete.js.map +1 -1
- package/dist/ReactAutoCompleteDropdown.js +312 -250
- package/dist/ReactAutoCompleteDropdown.js.map +1 -1
- package/dist/ReactAutoCompleteSuggections.d.ts +1 -0
- package/dist/ReactAutoCompleteSuggections.js +245 -181
- package/dist/ReactAutoCompleteSuggections.js.map +1 -1
- package/dist/ReactAutoCompleteTableView.d.ts +23 -0
- package/dist/ReactAutoCompleteTableView.js +460 -329
- package/dist/ReactAutoCompleteTableView.js.map +1 -1
- package/dist/ReactCheckbox.js +5 -17
- package/dist/ReactCheckbox.js.map +1 -1
- package/dist/ReactOTPInput.js +35 -54
- package/dist/ReactOTPInput.js.map +1 -1
- package/dist/ReactRadioButton.js +7 -19
- package/dist/ReactRadioButton.js.map +1 -1
- package/dist/ReactTextArea.js +31 -41
- package/dist/ReactTextArea.js.map +1 -1
- package/dist/ReactTextField.js +68 -76
- package/dist/ReactTextField.js.map +1 -1
- package/dist/commontypes.d.ts +2 -2
- package/dist/components/DropdownList.js +5 -15
- package/dist/components/DropdownList.js.map +1 -1
- package/dist/components/Icons.js +5 -16
- package/dist/components/Icons.js.map +1 -1
- package/dist/components/InputActions.js +7 -19
- package/dist/components/InputActions.js.map +1 -1
- package/dist/components/TreeNode.js +10 -22
- package/dist/components/TreeNode.js.map +1 -1
- package/dist/components/customIcons/Attachments.js +2 -3
- package/dist/components/customIcons/Attachments.js.map +1 -1
- package/dist/components/customIcons/CommentIcon.js +2 -3
- package/dist/components/customIcons/CommentIcon.js.map +1 -1
- package/dist/components/customIcons/IconList.js +230 -241
- package/dist/components/customIcons/IconList.js.map +1 -1
- package/dist/components/customIcons/QuestionIcon.js +3 -15
- package/dist/components/customIcons/QuestionIcon.js.map +1 -1
- package/dist/components/customIcons/Settings.js +3 -15
- package/dist/components/customIcons/Settings.js.map +1 -1
- package/dist/components/customIcons/Ship.js +2 -3
- package/dist/components/customIcons/Ship.js.map +1 -1
- package/dist/components/customIcons/ShipIconList.js +16 -16
- package/dist/components/customIcons/ShipIconList.js.map +1 -1
- package/dist/components/customIcons/ToolIcon.d.ts +1 -1
- package/dist/components/customIcons/ToolIcon.js +2 -2
- package/dist/components/customIcons/ToolIcon.js.map +1 -1
- package/dist/components/customIcons/closeRoundedIcon.d.ts +1 -1
- package/dist/components/customIcons/closeRoundedIcon.js +2 -2
- package/dist/components/customIcons/closeRoundedIcon.js.map +1 -1
- package/dist/components/customIcons/downTreeArrowIcon.d.ts +1 -1
- package/dist/components/customIcons/downTreeArrowIcon.js +2 -2
- package/dist/components/customIcons/downTreeArrowIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ActionRoleIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ActionRoleIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ActionRoleIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ActionRoleRoleIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ActionRoleRoleIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ActionRoleRoleIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Activate.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Activate.js +2 -2
- package/dist/components/customIcons/iconslibrary/Activate.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Alert2.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Alert2.js +2 -2
- package/dist/components/customIcons/iconslibrary/Alert2.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/AlertIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/AlertIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ApprovedIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ApprovedIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/ApprovedIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Archieve.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Archieve.js +2 -2
- package/dist/components/customIcons/iconslibrary/Archieve.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ArchieveList.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ArchieveList.js +2 -2
- package/dist/components/customIcons/iconslibrary/ArchieveList.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Audit.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Audit.js +2 -2
- package/dist/components/customIcons/iconslibrary/Audit.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Authorize.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Authorize.js +2 -2
- package/dist/components/customIcons/iconslibrary/Authorize.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/AwardIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/AwardIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/AwardIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Back.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Back.js +2 -2
- package/dist/components/customIcons/iconslibrary/Back.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BackToSearch.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/BackToSearch.js +2 -2
- package/dist/components/customIcons/iconslibrary/BackToSearch.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Bank.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Bank.js +2 -2
- package/dist/components/customIcons/iconslibrary/Bank.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BankIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/BankIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/BankIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BellIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/BellIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/BellIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BookmarkCheck.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/BookmarkCheck.js +2 -2
- package/dist/components/customIcons/iconslibrary/BookmarkCheck.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetChart.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetChart.js +3 -14
- package/dist/components/customIcons/iconslibrary/BudgetChart.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetCustom.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetCustom.js +3 -14
- package/dist/components/customIcons/iconslibrary/BudgetCustom.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetExisting.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetExisting.js +3 -14
- package/dist/components/customIcons/iconslibrary/BudgetExisting.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BudgetItemIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/BudgetItemIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/BusinessUnitIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/BusinessUnitIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CalendarIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CalendarIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CalendarIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CalenderUserIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CalenderUserIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CalenderUserIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CapacityIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CapacityIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/CapacityIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CaptionIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CaptionIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CaptionIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CardCheck.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CardCheck.js +3 -14
- package/dist/components/customIcons/iconslibrary/CardCheck.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CardListIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CardListIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CardListIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Certificate.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Certificate.js +2 -2
- package/dist/components/customIcons/iconslibrary/Certificate.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Check.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Check.js +2 -2
- package/dist/components/customIcons/iconslibrary/Check.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxCheck.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxCheck.js +3 -14
- package/dist/components/customIcons/iconslibrary/CheckBoxCheck.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxCheckDisabled.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxCheckDisabled.js +3 -14
- package/dist/components/customIcons/iconslibrary/CheckBoxCheckDisabled.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxInterMediate.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxInterMediate.js +3 -14
- package/dist/components/customIcons/iconslibrary/CheckBoxInterMediate.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxInterMediateDisabled.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxInterMediateDisabled.js +3 -14
- package/dist/components/customIcons/iconslibrary/CheckBoxInterMediateDisabled.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxUnchecked.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxUnchecked.js +3 -14
- package/dist/components/customIcons/iconslibrary/CheckBoxUnchecked.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxUncheckedDisabled.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckBoxUncheckedDisabled.js +3 -14
- package/dist/components/customIcons/iconslibrary/CheckBoxUncheckedDisabled.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckCircleIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckCircleIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CheckCircleIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckFilledIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckFilledIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CheckFilledIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CheckIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckIndeterminateIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckIndeterminateIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CheckIndeterminateIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckMenu.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CheckMenu.js +2 -2
- package/dist/components/customIcons/iconslibrary/CheckMenu.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CheckSwitchIcon.js +6 -18
- package/dist/components/customIcons/iconslibrary/CheckSwitchIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Clock.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Clock.js +2 -2
- package/dist/components/customIcons/iconslibrary/Clock.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CloseIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CloseIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ConfigIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ConfigIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/ConfigIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ConfirmCancel.js +3 -14
- package/dist/components/customIcons/iconslibrary/ConfirmCancel.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ConfirmInfo.js +3 -14
- package/dist/components/customIcons/iconslibrary/ConfirmInfo.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ConfirmSuccess.js +3 -14
- package/dist/components/customIcons/iconslibrary/ConfirmSuccess.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ConfirmVerify.js +3 -14
- package/dist/components/customIcons/iconslibrary/ConfirmVerify.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ConfirmWarning.js +3 -14
- package/dist/components/customIcons/iconslibrary/ConfirmWarning.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Copy.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Copy.js +2 -2
- package/dist/components/customIcons/iconslibrary/Copy.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CostCenterIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CostCenterIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/CsvIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/CsvIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/CsvIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DashFolderIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DashFolderIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DashFolderIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DashTileIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DashTileIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DashTileIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Default.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Default.js +2 -2
- package/dist/components/customIcons/iconslibrary/Default.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DeleteIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DeleteIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DeleteIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Details.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Details.js +2 -2
- package/dist/components/customIcons/iconslibrary/Details.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DimentionIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DimentionIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DimentionIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DivisionIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DivisionIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DivisionIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DivisonIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/DivisonIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DocxDoc.js +2 -2
- package/dist/components/customIcons/iconslibrary/DocxDoc.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Doller.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Doller.js +2 -2
- package/dist/components/customIcons/iconslibrary/Doller.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DownArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DownArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/DownArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DownArrowRounded.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DownArrowRounded.js +3 -14
- package/dist/components/customIcons/iconslibrary/DownArrowRounded.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DownloadIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DownloadIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DraftIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DraftIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/DraftIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/DueIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/DueIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/DueIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/EditIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/EditIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/EmpListIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/EmpListIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/EmpListIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Employee.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Employee.js +2 -2
- package/dist/components/customIcons/iconslibrary/Employee.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Employment.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Employment.js +2 -2
- package/dist/components/customIcons/iconslibrary/Employment.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ErrorCircle.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ErrorCircle.js +2 -2
- package/dist/components/customIcons/iconslibrary/ErrorCircle.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Excel.js +2 -2
- package/dist/components/customIcons/iconslibrary/Excel.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Expand.js +2 -3
- package/dist/components/customIcons/iconslibrary/Expand.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ExpandFileIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ExpandFileIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ExpandFileIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ExpandIconDash.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ExpandIconDash.js +2 -2
- package/dist/components/customIcons/iconslibrary/ExpandIconDash.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Expired.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Expired.js +3 -14
- package/dist/components/customIcons/iconslibrary/Expired.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ExplorerIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ExplorerIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ExplorerIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Export.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Export.js +2 -2
- package/dist/components/customIcons/iconslibrary/Export.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ExternalLinkIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ExternalLinkIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ExternalLinkIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Eye.js +2 -2
- package/dist/components/customIcons/iconslibrary/Eye.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/EyeClose.js +2 -3
- package/dist/components/customIcons/iconslibrary/EyeClose.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FavouriteIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/FavouriteIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/FavouriteIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FavouriteIconFilled.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/FavouriteIconFilled.js +2 -2
- package/dist/components/customIcons/iconslibrary/FavouriteIconFilled.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FavouritedIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/FavouritedIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/FavouritedIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FileIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/FileIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FileReport.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/FileReport.js +2 -2
- package/dist/components/customIcons/iconslibrary/FileReport.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Fill-Info-Icon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Fill-Info-Icon.js +2 -2
- package/dist/components/customIcons/iconslibrary/Fill-Info-Icon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FilterIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/FilterIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/FilterIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Finalise.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Finalise.js +2 -2
- package/dist/components/customIcons/iconslibrary/Finalise.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FindFile.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/FindFile.js +2 -2
- package/dist/components/customIcons/iconslibrary/FindFile.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FleetIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/FleetIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FolderIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/FolderIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/FolderIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ForwardArrowIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ForwardArrowIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ForwardArrowIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/FunctionIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/FunctionIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/FunctionIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/GmailIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/GmailIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/GmailIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/GraphViewDash.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/GraphViewDash.js +2 -2
- package/dist/components/customIcons/iconslibrary/GraphViewDash.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/GroupIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/GroupIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/HamburgerIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/HamburgerIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/HeadOffice.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/HeadOffice.js +2 -2
- package/dist/components/customIcons/iconslibrary/HeadOffice.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/HelpDocument.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/HelpDocument.js +2 -2
- package/dist/components/customIcons/iconslibrary/HelpDocument.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/HelpIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/HelpIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/HelpIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/HistoryIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/HistoryIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/HomeIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/HomeIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/HomeIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/IdleIcon.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/IdleIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/IdleIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/InfoCircle.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/InfoCircle.js +2 -2
- package/dist/components/customIcons/iconslibrary/InfoCircle.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/InfoIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/InfoIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/InfoIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Inspection.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Inspection.js +2 -2
- package/dist/components/customIcons/iconslibrary/Inspection.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/JpgDoc.js +2 -2
- package/dist/components/customIcons/iconslibrary/JpgDoc.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Layer.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Layer.js +2 -2
- package/dist/components/customIcons/iconslibrary/Layer.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/LayerIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/LayerIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/LayerIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/LeftBackArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/LeftBackArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/LeftBackArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/LeftDouble.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/LeftDouble.js +2 -2
- package/dist/components/customIcons/iconslibrary/LeftDouble.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/LiveFeetIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/LiveFeetIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/LiveFeetIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/LoadLineIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/LoadLineIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/LoadLineIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/LogoutIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/LogoutIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/LogoutIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ManningAgentIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ManningAgentIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ManningAgentIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Menu.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Menu.js +2 -2
- package/dist/components/customIcons/iconslibrary/Menu.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/MenuDownArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/MenuDownArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/MenuDownArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/MenuFavouriteFilled.js +2 -2
- package/dist/components/customIcons/iconslibrary/MenuFavouriteFilled.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/MenuFavouriteIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/MenuFavouriteIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/MenuFavouriteIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/MenuList.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/MenuList.js +2 -2
- package/dist/components/customIcons/iconslibrary/MenuList.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/MenuSectionIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/MenuSectionIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/MenuSectionIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/MenuUpArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/MenuUpArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/MenuUpArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Minus.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Minus.js +2 -2
- package/dist/components/customIcons/iconslibrary/Minus.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ModuleIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ModuleIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ModuleIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/NextArrowicon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/NextArrowicon.js +2 -2
- package/dist/components/customIcons/iconslibrary/NextArrowicon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/NextMostIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/NextMostIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/NextMostIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/NoAction.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/NoAction.js +2 -2
- package/dist/components/customIcons/iconslibrary/NoAction.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/NoActionForYou.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/NoActionForYou.js +2 -2
- package/dist/components/customIcons/iconslibrary/NoActionForYou.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Notes.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Notes.js +2 -2
- package/dist/components/customIcons/iconslibrary/Notes.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Others.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Others.js +2 -2
- package/dist/components/customIcons/iconslibrary/Others.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Overview.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Overview.js +3 -14
- package/dist/components/customIcons/iconslibrary/Overview.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Page.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Page.js +3 -14
- package/dist/components/customIcons/iconslibrary/Page.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PaperClip.js +2 -2
- package/dist/components/customIcons/iconslibrary/PaperClip.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PassKey.js +2 -2
- package/dist/components/customIcons/iconslibrary/PassKey.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Payroll.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Payroll.js +2 -2
- package/dist/components/customIcons/iconslibrary/Payroll.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Pdf.js +2 -2
- package/dist/components/customIcons/iconslibrary/Pdf.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PdfDoc.js +2 -2
- package/dist/components/customIcons/iconslibrary/PdfDoc.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Person.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Person.js +2 -2
- package/dist/components/customIcons/iconslibrary/Person.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Plane.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Plane.js +2 -2
- package/dist/components/customIcons/iconslibrary/Plane.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PlusIcon.js +3 -4
- package/dist/components/customIcons/iconslibrary/PlusIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PngDoc.js +2 -2
- package/dist/components/customIcons/iconslibrary/PngDoc.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Power.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Power.js +2 -2
- package/dist/components/customIcons/iconslibrary/Power.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PreviousArrowIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/PreviousArrowIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/PreviousArrowIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PreviousMostIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/PreviousMostIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/PreviousMostIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PrinterIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/PrinterIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PrivilegeGroupIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/PrivilegeGroupIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/PrivilegeGroupIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/PrivilegeIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/PrivilegeIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/PrivilegeIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ProfileIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ProfileIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ProfileIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Rank.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Rank.js +2 -2
- package/dist/components/customIcons/iconslibrary/Rank.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RatedPowerIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RatedPowerIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/RatedPowerIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RejectedIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RejectedIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/RejectedIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ReloadIconDash.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ReloadIconDash.js +2 -2
- package/dist/components/customIcons/iconslibrary/ReloadIconDash.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Remove.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Remove.js +2 -2
- package/dist/components/customIcons/iconslibrary/Remove.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Repeat.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Repeat.js +2 -2
- package/dist/components/customIcons/iconslibrary/Repeat.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ReportGroupIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ReportGroupIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/ReportGroupIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RetrayIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RetrayIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/RetrayIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Revert.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Revert.js +2 -2
- package/dist/components/customIcons/iconslibrary/Revert.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RevertStatusIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RevertStatusIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/RevertStatusIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RevertedIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RevertedIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/RevertedIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RightArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RightArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/RightArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/RightDouble.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/RightDouble.js +2 -2
- package/dist/components/customIcons/iconslibrary/RightDouble.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SeaRecord.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SeaRecord.js +3 -14
- package/dist/components/customIcons/iconslibrary/SeaRecord.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SeaServiceIcon.js +2 -3
- package/dist/components/customIcons/iconslibrary/SeaServiceIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SeafarerIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SeafarerIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SeafarerIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SearchIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SearchIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SearchIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Section.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Section.js +3 -14
- package/dist/components/customIcons/iconslibrary/Section.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SendIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SendIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SettingIcon.js +2 -3
- package/dist/components/customIcons/iconslibrary/SettingIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SettingsSpanner.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SettingsSpanner.js +2 -2
- package/dist/components/customIcons/iconslibrary/SettingsSpanner.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ShpIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ShpIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ShpIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ShpSmallIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ShpSmallIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ShpSmallIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SideMenuLogoutIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SideMenuLogoutIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SideMenuLogoutIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SignOffIcon.js +2 -3
- package/dist/components/customIcons/iconslibrary/SignOffIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SignOnIcon.js +2 -3
- package/dist/components/customIcons/iconslibrary/SignOnIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Slash.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Slash.js +2 -2
- package/dist/components/customIcons/iconslibrary/Slash.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SortArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SortArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/SortArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SortAscIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SortAscIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SortAscIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SortDescIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SortDescIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SortDescIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SortDown.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SortDown.js +2 -2
- package/dist/components/customIcons/iconslibrary/SortDown.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/StaredVerifiedIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/StaredVerifiedIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/StaredVerifiedIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/StepperCheckIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/StepperCheckIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/StepperCheckIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/StepperCheckSmall.js +3 -14
- package/dist/components/customIcons/iconslibrary/StepperCheckSmall.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/StepperSuccess.js +3 -14
- package/dist/components/customIcons/iconslibrary/StepperSuccess.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SubFunctionsIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SubFunctionsIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/SubFunctionsIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SubMenuList.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SubMenuList.js +2 -2
- package/dist/components/customIcons/iconslibrary/SubMenuList.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SuccessIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/SuccessIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/SuccessIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/SwitchVertical.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/SwitchVertical.js +2 -2
- package/dist/components/customIcons/iconslibrary/SwitchVertical.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/TableViewDash.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/TableViewDash.js +2 -2
- package/dist/components/customIcons/iconslibrary/TableViewDash.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ThreeDotIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ThreeDotIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ThreeDotIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ThreeDotIconHorizontal.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ThreeDotIconHorizontal.js +2 -2
- package/dist/components/customIcons/iconslibrary/ThreeDotIconHorizontal.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ThreeDotLineIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ThreeDotLineIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/ThreeDotLineIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Tonnage.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Tonnage.js +2 -2
- package/dist/components/customIcons/iconslibrary/Tonnage.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/TreeColapseicon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/TreeColapseicon.js +2 -2
- package/dist/components/customIcons/iconslibrary/TreeColapseicon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/TreeExpandIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/TreeExpandIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/TreeExpandIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Unlock.js +3 -4
- package/dist/components/customIcons/iconslibrary/Unlock.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/UpArrow.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/UpArrow.js +2 -2
- package/dist/components/customIcons/iconslibrary/UpArrow.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/UpArrowRounded.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/UpArrowRounded.js +3 -14
- package/dist/components/customIcons/iconslibrary/UpArrowRounded.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/UploadPhoto.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/UploadPhoto.js +2 -2
- package/dist/components/customIcons/iconslibrary/UploadPhoto.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/User.js +2 -2
- package/dist/components/customIcons/iconslibrary/User.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/UserCheck.js +3 -4
- package/dist/components/customIcons/iconslibrary/UserCheck.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/UserClose.js +3 -4
- package/dist/components/customIcons/iconslibrary/UserClose.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/UserEdit.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/UserEdit.js +2 -2
- package/dist/components/customIcons/iconslibrary/UserEdit.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ValidationRuleIcon.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/ValidationRuleIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/ValidationRuleIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/VendorIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/VendorIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/VendorIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Verified.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Verified.js +2 -2
- package/dist/components/customIcons/iconslibrary/Verified.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/VerifiedIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/VerifiedIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/VerifiedIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Verify.js +2 -2
- package/dist/components/customIcons/iconslibrary/Verify.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/VesselIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/VesselIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/VesselScheduleShip.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/VesselScheduleShip.js +2 -2
- package/dist/components/customIcons/iconslibrary/VesselScheduleShip.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/VesselWheel.js +2 -2
- package/dist/components/customIcons/iconslibrary/VesselWheel.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ViewLargeIcon.js +2 -3
- package/dist/components/customIcons/iconslibrary/ViewLargeIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/VolumeIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/VolumeIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/VolumeIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Wallet.d.ts +2 -1
- package/dist/components/customIcons/iconslibrary/Wallet.js +2 -2
- package/dist/components/customIcons/iconslibrary/Wallet.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/Warning.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/Warning.js +2 -2
- package/dist/components/customIcons/iconslibrary/Warning.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/WarningFilledIcon.js +3 -14
- package/dist/components/customIcons/iconslibrary/WarningFilledIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/WorkflowIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/WorkflowIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/WorkflowIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/WorkflowStatusIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/WorkflowStatusIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/WorkflowStatusIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/collapseIconDash.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/collapseIconDash.js +2 -2
- package/dist/components/customIcons/iconslibrary/collapseIconDash.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon1.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon1.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon1.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon10.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon10.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon10.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon11.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon11.js +3 -14
- package/dist/components/customIcons/iconslibrary/ship/Icon11.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon12.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon12.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon12.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon13.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon13.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon13.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon14.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon14.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon14.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon15.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon15.js +3 -14
- package/dist/components/customIcons/iconslibrary/ship/Icon15.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon16.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon16.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon16.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon2.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon2.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon2.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon3.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon3.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon3.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon4.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon4.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon4.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon5.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon5.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon5.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon6.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon6.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon6.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon7.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon7.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon7.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon8.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon8.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon8.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon9.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/ship/Icon9.js +2 -2
- package/dist/components/customIcons/iconslibrary/ship/Icon9.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/uploadButtonIcon.d.ts +1 -1
- package/dist/components/customIcons/iconslibrary/uploadButtonIcon.js +2 -2
- package/dist/components/customIcons/iconslibrary/uploadButtonIcon.js.map +1 -1
- package/dist/components/customIcons/iconslibrary/verify-icon.js +2 -2
- package/dist/components/customIcons/iconslibrary/verify-icon.js.map +1 -1
- package/dist/components/customIcons/index.js +8 -20
- package/dist/components/customIcons/index.js.map +1 -1
- package/dist/components/customIcons/lock-button.js +2 -3
- package/dist/components/customIcons/lock-button.js.map +1 -1
- package/dist/components/customIcons/upTreeArrowIcon.d.ts +1 -1
- package/dist/components/customIcons/upTreeArrowIcon.js +2 -2
- package/dist/components/customIcons/upTreeArrowIcon.js.map +1 -1
- package/dist/components/loader/Spinner.js +3 -15
- package/dist/components/loader/Spinner.js.map +1 -1
- package/dist/components/portal/index.d.ts +2 -10
- package/dist/components/portal/index.js +16 -24
- package/dist/components/portal/index.js.map +1 -1
- package/dist/dropdownFilterTabs.d.ts +2 -2
- package/dist/dropdownFilterTabs.js +265 -325
- package/dist/dropdownFilterTabs.js.map +1 -1
- package/dist/dummyAutoCompleteWithSelectedList.d.ts +1 -1
- package/dist/dummyAutoCompleteWithSelectedList.js +144 -203
- package/dist/dummyAutoCompleteWithSelectedList.js.map +1 -1
- package/dist/generated/stylesContent.d.ts +2 -0
- package/dist/generated/stylesContent.js +6 -0
- package/dist/generated/stylesContent.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/injectStyles.d.ts +1 -0
- package/dist/injectStyles.js +16 -0
- package/dist/injectStyles.js.map +1 -0
- package/dist/react-core-ts.css +2486 -0
- package/dist/styles/components/autocomplete.css +95 -3
- package/dist/styles/components/tooltip.css +59 -0
- package/{src/styles/global.css → dist/styles/library-entry.css} +1 -2
- package/dist/utilities/NewTooltip.js +53 -65
- package/dist/utilities/NewTooltip.js.map +1 -1
- package/dist/utilities/autosuggestions.d.ts +4 -2
- package/dist/utilities/autosuggestions.js +41 -102
- package/dist/utilities/autosuggestions.js.map +1 -1
- package/dist/utilities/convertFlatArraytoTreeStructure.js +15 -30
- package/dist/utilities/convertFlatArraytoTreeStructure.js.map +1 -1
- package/dist/utilities/debounce.js +5 -10
- package/dist/utilities/debounce.js.map +1 -1
- package/dist/utilities/deepDebounce.js +5 -10
- package/dist/utilities/deepDebounce.js.map +1 -1
- package/dist/utilities/deepEqual.js +5 -7
- package/dist/utilities/deepEqual.js.map +1 -1
- package/dist/utilities/expandableTootltip.js +44 -54
- package/dist/utilities/expandableTootltip.js.map +1 -1
- package/dist/utilities/filterSuggestions.d.ts +4 -1
- package/dist/utilities/filterSuggestions.js +11 -22
- package/dist/utilities/filterSuggestions.js.map +1 -1
- package/dist/utilities/generateInnerWidth.js +2 -3
- package/dist/utilities/generateInnerWidth.js.map +1 -1
- package/dist/utilities/getKeyValue.d.ts +4 -0
- package/dist/utilities/getKeyValue.js +24 -5
- package/dist/utilities/getKeyValue.js.map +1 -1
- package/dist/utilities/getPosition.js +14 -14
- package/dist/utilities/getPosition.js.map +1 -1
- package/dist/utilities/icons.js +13 -30
- package/dist/utilities/icons.js.map +1 -1
- package/dist/utilities/measureTabListNaturalWidth.js +28 -28
- package/dist/utilities/measureTabListNaturalWidth.js.map +1 -1
- package/dist/utilities/tooltip.js +13 -25
- package/dist/utilities/tooltip.js.map +1 -1
- package/dist/utilities/useDynamicHeight.js +13 -13
- package/dist/utilities/useDynamicHeight.js.map +1 -1
- package/package.json +31 -8
- package/.babel.config.js +0 -7
- package/.npmingnore +0 -3
- package/docs/App.tsx +0 -750
- package/docs/index.html +0 -40
- package/docs/index.tsx +0 -12
- package/docs/store.ts +0 -67
- package/docs/style.css +0 -4
- package/postcss.config.js +0 -6
- package/src/AutoComplete.tsx +0 -500
- package/src/AutoCompleteWithSelectedList.tsx +0 -1331
- package/src/AutoCompleteWithTabFilter.tsx +0 -1499
- package/src/AutoCompleteWithTreeStructure.tsx +0 -819
- package/src/ExpandableAutoComplete.tsx +0 -834
- package/src/ReactAutoComplete.tsx +0 -913
- package/src/ReactAutoCompleteDropdown.tsx +0 -953
- package/src/ReactAutoCompleteSuggections.tsx +0 -559
- package/src/ReactAutoCompleteTableView.tsx +0 -1145
- package/src/ReactCheckbox.tsx +0 -71
- package/src/ReactOTPInput.tsx +0 -199
- package/src/ReactRadioButton.tsx +0 -65
- package/src/ReactTextArea.tsx +0 -238
- package/src/ReactTextField.tsx +0 -477
- package/src/commontypes.ts +0 -242
- package/src/components/DropdownList.tsx +0 -85
- package/src/components/Icons.tsx +0 -38
- package/src/components/InputActions.tsx +0 -89
- package/src/components/TreeNode.tsx +0 -136
- package/src/components/customIcons/Attachments.tsx +0 -17
- package/src/components/customIcons/CommentIcon.tsx +0 -14
- package/src/components/customIcons/IconList.tsx +0 -469
- package/src/components/customIcons/QuestionIcon.tsx +0 -28
- package/src/components/customIcons/Settings.tsx +0 -59
- package/src/components/customIcons/Ship.tsx +0 -17
- package/src/components/customIcons/ShipIconList.tsx +0 -35
- package/src/components/customIcons/ToolIcon.tsx +0 -12
- package/src/components/customIcons/closeRoundedIcon.tsx +0 -11
- package/src/components/customIcons/downTreeArrowIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/ActionRoleIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ActionRoleRoleIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Activate.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Alert2.tsx +0 -17
- package/src/components/customIcons/iconslibrary/AlertIcon.tsx +0 -22
- package/src/components/customIcons/iconslibrary/ApprovedIcon.tsx +0 -34
- package/src/components/customIcons/iconslibrary/Archieve.tsx +0 -26
- package/src/components/customIcons/iconslibrary/ArchieveList.tsx +0 -18
- package/src/components/customIcons/iconslibrary/Audit.tsx +0 -20
- package/src/components/customIcons/iconslibrary/Authorize.tsx +0 -17
- package/src/components/customIcons/iconslibrary/AwardIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Back.tsx +0 -15
- package/src/components/customIcons/iconslibrary/BackToSearch.tsx +0 -16
- package/src/components/customIcons/iconslibrary/Bank.tsx +0 -12
- package/src/components/customIcons/iconslibrary/BankIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/BellIcon.tsx +0 -15
- package/src/components/customIcons/iconslibrary/BookmarkCheck.tsx +0 -17
- package/src/components/customIcons/iconslibrary/BudgetChart.tsx +0 -36
- package/src/components/customIcons/iconslibrary/BudgetCustom.tsx +0 -47
- package/src/components/customIcons/iconslibrary/BudgetExisting.tsx +0 -33
- package/src/components/customIcons/iconslibrary/BudgetItemIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/BusinessUnitIcon.tsx +0 -19
- package/src/components/customIcons/iconslibrary/CalendarIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/CalenderUserIcon.tsx +0 -10
- package/src/components/customIcons/iconslibrary/CapacityIcon.tsx +0 -20
- package/src/components/customIcons/iconslibrary/CaptionIcon.tsx +0 -27
- package/src/components/customIcons/iconslibrary/CardCheck.tsx +0 -20
- package/src/components/customIcons/iconslibrary/CardListIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Certificate.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Check.tsx +0 -12
- package/src/components/customIcons/iconslibrary/CheckBoxCheck.tsx +0 -21
- package/src/components/customIcons/iconslibrary/CheckBoxCheckDisabled.tsx +0 -29
- package/src/components/customIcons/iconslibrary/CheckBoxInterMediate.tsx +0 -21
- package/src/components/customIcons/iconslibrary/CheckBoxInterMediateDisabled.tsx +0 -29
- package/src/components/customIcons/iconslibrary/CheckBoxUnchecked.tsx +0 -22
- package/src/components/customIcons/iconslibrary/CheckBoxUncheckedDisabled.tsx +0 -15
- package/src/components/customIcons/iconslibrary/CheckCircleIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/CheckFilledIcon.tsx +0 -21
- package/src/components/customIcons/iconslibrary/CheckIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/CheckIndeterminateIcon.tsx +0 -19
- package/src/components/customIcons/iconslibrary/CheckMenu.tsx +0 -15
- package/src/components/customIcons/iconslibrary/CheckSwitchIcon.tsx +0 -87
- package/src/components/customIcons/iconslibrary/Clock.tsx +0 -17
- package/src/components/customIcons/iconslibrary/CloseIcon.tsx +0 -14
- package/src/components/customIcons/iconslibrary/ConfigIcon.tsx +0 -23
- package/src/components/customIcons/iconslibrary/ConfirmCancel.tsx +0 -20
- package/src/components/customIcons/iconslibrary/ConfirmInfo.tsx +0 -20
- package/src/components/customIcons/iconslibrary/ConfirmSuccess.tsx +0 -50
- package/src/components/customIcons/iconslibrary/ConfirmVerify.tsx +0 -23
- package/src/components/customIcons/iconslibrary/ConfirmWarning.tsx +0 -24
- package/src/components/customIcons/iconslibrary/Copy.tsx +0 -13
- package/src/components/customIcons/iconslibrary/CostCenterIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/CsvIcon.tsx +0 -15
- package/src/components/customIcons/iconslibrary/DashFolderIcon.tsx +0 -11
- package/src/components/customIcons/iconslibrary/DashTileIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Default.tsx +0 -13
- package/src/components/customIcons/iconslibrary/DeleteIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Details.tsx +0 -17
- package/src/components/customIcons/iconslibrary/DimentionIcon.tsx +0 -15
- package/src/components/customIcons/iconslibrary/DivisionIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/DivisonIcon.tsx +0 -21
- package/src/components/customIcons/iconslibrary/DocxDoc.tsx +0 -35
- package/src/components/customIcons/iconslibrary/Doller.tsx +0 -12
- package/src/components/customIcons/iconslibrary/DownArrow.tsx +0 -12
- package/src/components/customIcons/iconslibrary/DownArrowRounded.tsx +0 -21
- package/src/components/customIcons/iconslibrary/DownloadIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/DraftIcon.tsx +0 -35
- package/src/components/customIcons/iconslibrary/DueIcon.tsx +0 -11
- package/src/components/customIcons/iconslibrary/EditIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/EmpListIcon.tsx +0 -20
- package/src/components/customIcons/iconslibrary/Employee.tsx +0 -13
- package/src/components/customIcons/iconslibrary/Employment.tsx +0 -9
- package/src/components/customIcons/iconslibrary/ErrorCircle.tsx +0 -10
- package/src/components/customIcons/iconslibrary/Excel.tsx +0 -13
- package/src/components/customIcons/iconslibrary/Expand.tsx +0 -14
- package/src/components/customIcons/iconslibrary/ExpandFileIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ExpandIconDash.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Expired.tsx +0 -17
- package/src/components/customIcons/iconslibrary/ExplorerIcon.tsx +0 -40
- package/src/components/customIcons/iconslibrary/Export.tsx +0 -17
- package/src/components/customIcons/iconslibrary/ExternalLinkIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/Eye.tsx +0 -22
- package/src/components/customIcons/iconslibrary/EyeClose.tsx +0 -17
- package/src/components/customIcons/iconslibrary/FavouriteIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/FavouriteIconFilled.tsx +0 -14
- package/src/components/customIcons/iconslibrary/FavouritedIcon.tsx +0 -10
- package/src/components/customIcons/iconslibrary/FileIcon.tsx +0 -21
- package/src/components/customIcons/iconslibrary/FileReport.tsx +0 -17
- package/src/components/customIcons/iconslibrary/Fill-Info-Icon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/FilterIcon.tsx +0 -20
- package/src/components/customIcons/iconslibrary/Finalise.tsx +0 -12
- package/src/components/customIcons/iconslibrary/FindFile.tsx +0 -17
- package/src/components/customIcons/iconslibrary/FleetIcon.tsx +0 -19
- package/src/components/customIcons/iconslibrary/FolderIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ForwardArrowIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/FunctionIcon.tsx +0 -21
- package/src/components/customIcons/iconslibrary/GmailIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/GraphViewDash.tsx +0 -9
- package/src/components/customIcons/iconslibrary/GroupIcon.tsx +0 -30
- package/src/components/customIcons/iconslibrary/HamburgerIcon.tsx +0 -14
- package/src/components/customIcons/iconslibrary/HeadOffice.tsx +0 -13
- package/src/components/customIcons/iconslibrary/HelpDocument.tsx +0 -22
- package/src/components/customIcons/iconslibrary/HelpIcon.tsx +0 -14
- package/src/components/customIcons/iconslibrary/HistoryIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/HomeIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/IdleIcon.tsx +0 -30
- package/src/components/customIcons/iconslibrary/InfoCircle.tsx +0 -17
- package/src/components/customIcons/iconslibrary/InfoIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/Inspection.tsx +0 -41
- package/src/components/customIcons/iconslibrary/JpgDoc.tsx +0 -35
- package/src/components/customIcons/iconslibrary/Layer.tsx +0 -17
- package/src/components/customIcons/iconslibrary/LayerIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/LeftBackArrow.tsx +0 -15
- package/src/components/customIcons/iconslibrary/LeftDouble.tsx +0 -12
- package/src/components/customIcons/iconslibrary/LiveFeetIcon.tsx +0 -22
- package/src/components/customIcons/iconslibrary/LoadLineIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/LogoutIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/ManningAgentIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Menu.tsx +0 -42
- package/src/components/customIcons/iconslibrary/MenuDownArrow.tsx +0 -13
- package/src/components/customIcons/iconslibrary/MenuFavouriteFilled.tsx +0 -16
- package/src/components/customIcons/iconslibrary/MenuFavouriteIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/MenuList.tsx +0 -26
- package/src/components/customIcons/iconslibrary/MenuSectionIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/MenuUpArrow.tsx +0 -13
- package/src/components/customIcons/iconslibrary/Minus.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ModuleIcon.tsx +0 -25
- package/src/components/customIcons/iconslibrary/NextArrowicon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/NextMostIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/NoAction.tsx +0 -17
- package/src/components/customIcons/iconslibrary/NoActionForYou.tsx +0 -17
- package/src/components/customIcons/iconslibrary/Notes.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Others.tsx +0 -15
- package/src/components/customIcons/iconslibrary/Overview.tsx +0 -21
- package/src/components/customIcons/iconslibrary/Page.tsx +0 -22
- package/src/components/customIcons/iconslibrary/PaperClip.tsx +0 -14
- package/src/components/customIcons/iconslibrary/PassKey.tsx +0 -14
- package/src/components/customIcons/iconslibrary/Payroll.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Pdf.tsx +0 -11
- package/src/components/customIcons/iconslibrary/PdfDoc.tsx +0 -35
- package/src/components/customIcons/iconslibrary/Person.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Plane.tsx +0 -12
- package/src/components/customIcons/iconslibrary/PlusIcon.tsx +0 -41
- package/src/components/customIcons/iconslibrary/PngDoc.tsx +0 -35
- package/src/components/customIcons/iconslibrary/Power.tsx +0 -12
- package/src/components/customIcons/iconslibrary/PreviousArrowIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/PreviousMostIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/PrinterIcon.tsx +0 -15
- package/src/components/customIcons/iconslibrary/PrivilegeGroupIcon.tsx +0 -11
- package/src/components/customIcons/iconslibrary/PrivilegeIcon.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ProfileIcon.tsx +0 -15
- package/src/components/customIcons/iconslibrary/Rank.tsx +0 -26
- package/src/components/customIcons/iconslibrary/RatedPowerIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/RejectedIcon.tsx +0 -34
- package/src/components/customIcons/iconslibrary/ReloadIconDash.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Remove.tsx +0 -13
- package/src/components/customIcons/iconslibrary/Repeat.tsx +0 -24
- package/src/components/customIcons/iconslibrary/ReportGroupIcon.tsx +0 -33
- package/src/components/customIcons/iconslibrary/RetrayIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Revert.tsx +0 -12
- package/src/components/customIcons/iconslibrary/RevertStatusIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/RevertedIcon.tsx +0 -34
- package/src/components/customIcons/iconslibrary/RightArrow.tsx +0 -12
- package/src/components/customIcons/iconslibrary/RightDouble.tsx +0 -12
- package/src/components/customIcons/iconslibrary/SeaRecord.tsx +0 -18
- package/src/components/customIcons/iconslibrary/SeaServiceIcon.tsx +0 -18
- package/src/components/customIcons/iconslibrary/SeafarerIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/SearchIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/Section.tsx +0 -31
- package/src/components/customIcons/iconslibrary/SendIcon.tsx +0 -15
- package/src/components/customIcons/iconslibrary/SettingIcon.tsx +0 -26
- package/src/components/customIcons/iconslibrary/SettingsSpanner.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ShpIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/ShpSmallIcon.tsx +0 -10
- package/src/components/customIcons/iconslibrary/SideMenuLogoutIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/SignOffIcon.tsx +0 -16
- package/src/components/customIcons/iconslibrary/SignOnIcon.tsx +0 -16
- package/src/components/customIcons/iconslibrary/Slash.tsx +0 -15
- package/src/components/customIcons/iconslibrary/SortArrow.tsx +0 -15
- package/src/components/customIcons/iconslibrary/SortAscIcon.tsx +0 -10
- package/src/components/customIcons/iconslibrary/SortDescIcon.tsx +0 -10
- package/src/components/customIcons/iconslibrary/SortDown.tsx +0 -15
- package/src/components/customIcons/iconslibrary/StaredVerifiedIcon.tsx +0 -11
- package/src/components/customIcons/iconslibrary/StepperCheckIcon.tsx +0 -13
- package/src/components/customIcons/iconslibrary/StepperCheckSmall.tsx +0 -23
- package/src/components/customIcons/iconslibrary/StepperSuccess.tsx +0 -43
- package/src/components/customIcons/iconslibrary/SubFunctionsIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/SubMenuList.tsx +0 -22
- package/src/components/customIcons/iconslibrary/SuccessIcon.tsx +0 -42
- package/src/components/customIcons/iconslibrary/SwitchVertical.tsx +0 -17
- package/src/components/customIcons/iconslibrary/TableViewDash.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ThreeDotIcon.tsx +0 -40
- package/src/components/customIcons/iconslibrary/ThreeDotIconHorizontal.tsx +0 -28
- package/src/components/customIcons/iconslibrary/ThreeDotLineIcon.tsx +0 -28
- package/src/components/customIcons/iconslibrary/Tonnage.tsx +0 -15
- package/src/components/customIcons/iconslibrary/TreeColapseicon.tsx +0 -10
- package/src/components/customIcons/iconslibrary/TreeExpandIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Unlock.tsx +0 -41
- package/src/components/customIcons/iconslibrary/UpArrow.tsx +0 -12
- package/src/components/customIcons/iconslibrary/UpArrowRounded.tsx +0 -21
- package/src/components/customIcons/iconslibrary/UploadPhoto.tsx +0 -21
- package/src/components/customIcons/iconslibrary/User.tsx +0 -13
- package/src/components/customIcons/iconslibrary/UserCheck.tsx +0 -41
- package/src/components/customIcons/iconslibrary/UserClose.tsx +0 -41
- package/src/components/customIcons/iconslibrary/UserEdit.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ValidationRuleIcon.tsx +0 -23
- package/src/components/customIcons/iconslibrary/VendorIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Verified.tsx +0 -16
- package/src/components/customIcons/iconslibrary/VerifiedIcon.tsx +0 -19
- package/src/components/customIcons/iconslibrary/Verify.tsx +0 -17
- package/src/components/customIcons/iconslibrary/VesselIcon.tsx +0 -56
- package/src/components/customIcons/iconslibrary/VesselScheduleShip.tsx +0 -9
- package/src/components/customIcons/iconslibrary/VesselWheel.tsx +0 -31
- package/src/components/customIcons/iconslibrary/ViewLargeIcon.tsx +0 -18
- package/src/components/customIcons/iconslibrary/VolumeIcon.tsx +0 -9
- package/src/components/customIcons/iconslibrary/Wallet.tsx +0 -17
- package/src/components/customIcons/iconslibrary/Warning.tsx +0 -12
- package/src/components/customIcons/iconslibrary/WarningFilledIcon.tsx +0 -21
- package/src/components/customIcons/iconslibrary/WorkflowIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/WorkflowStatusIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/collapseIconDash.tsx +0 -23
- package/src/components/customIcons/iconslibrary/ship/Icon1.tsx +0 -12
- package/src/components/customIcons/iconslibrary/ship/Icon10.tsx +0 -14
- package/src/components/customIcons/iconslibrary/ship/Icon11.tsx +0 -21
- package/src/components/customIcons/iconslibrary/ship/Icon12.tsx +0 -27
- package/src/components/customIcons/iconslibrary/ship/Icon13.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ship/Icon14.tsx +0 -20
- package/src/components/customIcons/iconslibrary/ship/Icon15.tsx +0 -37
- package/src/components/customIcons/iconslibrary/ship/Icon16.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ship/Icon2.tsx +0 -14
- package/src/components/customIcons/iconslibrary/ship/Icon3.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ship/Icon4.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ship/Icon5.tsx +0 -28
- package/src/components/customIcons/iconslibrary/ship/Icon6.tsx +0 -28
- package/src/components/customIcons/iconslibrary/ship/Icon7.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ship/Icon8.tsx +0 -11
- package/src/components/customIcons/iconslibrary/ship/Icon9.tsx +0 -11
- package/src/components/customIcons/iconslibrary/uploadButtonIcon.tsx +0 -12
- package/src/components/customIcons/iconslibrary/verify-icon.tsx +0 -14
- package/src/components/customIcons/index.tsx +0 -76
- package/src/components/customIcons/lock-button.tsx +0 -16
- package/src/components/customIcons/upTreeArrowIcon.tsx +0 -9
- package/src/components/loader/Spinner.tsx +0 -27
- package/src/components/portal/index.tsx +0 -38
- package/src/dropdownFilterTabs.tsx +0 -1275
- package/src/dummyAutoCompleteWithSelectedList.tsx +0 -772
- package/src/index.html +0 -1
- package/src/index.tsx +0 -23
- package/src/styles/components/autocomplete.css +0 -744
- package/src/styles/components/selectedautocomplete.css +0 -221
- package/src/styles/components/tooltip.css +0 -497
- package/src/styles/components/treedropdown.css +0 -97
- package/src/utilities/NewTooltip.tsx +0 -185
- package/src/utilities/autosuggestions.ts +0 -99
- package/src/utilities/convertFlatArraytoTreeStructure.ts +0 -27
- package/src/utilities/debounce.ts +0 -15
- package/src/utilities/deepDebounce.ts +0 -15
- package/src/utilities/deepEqual.ts +0 -54
- package/src/utilities/expandableTootltip.tsx +0 -147
- package/src/utilities/filterSuggestions.ts +0 -54
- package/src/utilities/generateInnerWidth.ts +0 -5
- package/src/utilities/getKeyValue.ts +0 -14
- package/src/utilities/getPosition.ts +0 -61
- package/src/utilities/icons.tsx +0 -189
- package/src/utilities/measureTabListNaturalWidth.ts +0 -117
- package/src/utilities/tooltip.tsx +0 -51
- package/src/utilities/useDynamicHeight.ts +0 -72
- package/tailwind.config.js +0 -16
- package/tsconfig.json +0 -14
- package/webpack.config.js +0 -80
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
3
|
if (k2 === undefined) k2 = k;
|
|
15
4
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -26,149 +15,113 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
26
15
|
}) : function(o, v) {
|
|
27
16
|
o["default"] = v;
|
|
28
17
|
});
|
|
29
|
-
var __importStar = (this && this.__importStar) || function (
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
return
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
47
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
48
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
49
|
-
function step(op) {
|
|
50
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
51
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
52
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
53
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
54
|
-
switch (op[0]) {
|
|
55
|
-
case 0: case 1: t = op; break;
|
|
56
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
57
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
58
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
59
|
-
default:
|
|
60
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
61
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
62
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
63
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
64
|
-
if (t[2]) _.ops.pop();
|
|
65
|
-
_.trys.pop(); continue;
|
|
66
|
-
}
|
|
67
|
-
op = body.call(thisArg, _);
|
|
68
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
69
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
73
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
74
|
-
if (ar || !(i in from)) {
|
|
75
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
76
|
-
ar[i] = from[i];
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
80
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
81
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
82
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
83
37
|
};
|
|
84
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
var dropdownSelectedRef = (0, react_1.useRef)(null);
|
|
106
|
-
var tabRef = (0, react_1.useRef)(null);
|
|
107
|
-
var dropLevelRef = (0, react_1.useRef)('bottom');
|
|
39
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
40
|
+
const react_1 = __importStar(require("react"));
|
|
41
|
+
const react_dom_1 = __importDefault(require("react-dom"));
|
|
42
|
+
const DropdownList_1 = __importDefault(require("./components/DropdownList"));
|
|
43
|
+
const InputActions_1 = __importDefault(require("./components/InputActions"));
|
|
44
|
+
const autosuggestions_1 = require("./utilities/autosuggestions");
|
|
45
|
+
const debounce_1 = require("./utilities/debounce");
|
|
46
|
+
const deepEqual_1 = require("./utilities/deepEqual");
|
|
47
|
+
const filterSuggestions_1 = require("./utilities/filterSuggestions");
|
|
48
|
+
const icons_1 = require("./utilities/icons");
|
|
49
|
+
const NewTooltip_1 = __importDefault(require("./utilities/NewTooltip"));
|
|
50
|
+
const getKeyValue_1 = require("./utilities/getKeyValue");
|
|
51
|
+
const measureTabListNaturalWidth_1 = require("./utilities/measureTabListNaturalWidth");
|
|
52
|
+
const AutoCompleteWithSelectedList = (0, react_1.forwardRef)(({ label, onChange, getData = async () => [], data = [], errors, required = false, name, fullWidth = false, placeholder, id, type = 'custom_select', selectedItems: propsSeelctedItems = [], readOnly = false, disabled = false, value, searchValue: propsSearchValue = '', isMultiple = false, desc = 'name', descId = 'id', singleSelect, className, async = false, paginationEnabled, initialLoad = false, actionLabel, handleAction, nextBlock, notDataMessage, initialDataMessage, onFocus, onSearchValueChange, expandable = false, textCount = 10, itemCount = 1, scrollRef, countOnly = true, typeOnlyFetch = false, tab = [], clearTabSwitch = false, selectedRowLimit = 2, topMargin = 0, currentTab = 0, selectedLabel = '', viewMode = false, handleUpdateParent, shortCode = '', labelCode = '', tabInlineSearch = true, matchFromStart = false, autoDropdown = false, enableSelectAll = false, }, ref) => {
|
|
53
|
+
const dropdownRef = (0, react_1.useRef)(null);
|
|
54
|
+
const selItemRef = (0, react_1.useRef)(null);
|
|
55
|
+
const itemsRef = (0, react_1.useRef)(null);
|
|
56
|
+
const dropdownSelectedRef = (0, react_1.useRef)(null);
|
|
57
|
+
const tabRef = (0, react_1.useRef)(null);
|
|
58
|
+
const dropLevelRef = (0, react_1.useRef)('bottom');
|
|
108
59
|
// State Hooks Section
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
60
|
+
const [isInitialRender, setIsInitialRender] = (0, react_1.useState)(true);
|
|
61
|
+
const [inputValue, setInputValue] = (0, react_1.useState)(value);
|
|
62
|
+
const [searchValue, setSearchValue] = (0, react_1.useState)(propsSearchValue);
|
|
63
|
+
const [searchOldValue, setSearchOldValue] = (0, react_1.useState)('');
|
|
64
|
+
const [nextPage, setNextPage] = (0, react_1.useState)(1);
|
|
65
|
+
const [dropOpen, setDropOpen] = (0, react_1.useState)(false);
|
|
66
|
+
const [selectedItems, setSelectedItems] = (0, react_1.useState)([]);
|
|
67
|
+
const [searchLoaded, setSearchLoaded] = (0, react_1.useState)(propsSearchValue ? false : true);
|
|
68
|
+
const [showAllSelected, setShowAllSelected] = (0, react_1.useState)(false);
|
|
69
|
+
const [selHeight, setSelHeight] = (0, react_1.useState)(184);
|
|
70
|
+
const [expandArrowClick, setExpandArrowClick] = (0, react_1.useState)(1);
|
|
71
|
+
const [visible, setVisible] = (0, react_1.useState)(false);
|
|
72
|
+
const [activeTab, setActiveTab] = (0, react_1.useState)(currentTab);
|
|
73
|
+
const [focusedIndex, setFocusedIndex] = (0, react_1.useState)(0);
|
|
74
|
+
const itemRefs = (0, react_1.useRef)([]);
|
|
124
75
|
// API call for suggestions through a custom hook
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
(0, react_1.useImperativeHandle)(ref,
|
|
130
|
-
|
|
76
|
+
const inputRef = (0, react_1.useRef)(null);
|
|
77
|
+
const dropRef = (0, react_1.useRef)(null);
|
|
78
|
+
const inputSearchRef = (0, react_1.useRef)(null);
|
|
79
|
+
const dropBtnRef = (0, react_1.useRef)(null);
|
|
80
|
+
(0, react_1.useImperativeHandle)(ref, () => inputRef.current);
|
|
81
|
+
const [dropdownStyle, setDropdownStyle] = (0, react_1.useState)({
|
|
131
82
|
top: 0,
|
|
132
83
|
left: 0,
|
|
133
84
|
width: 200,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
85
|
+
transform: '',
|
|
86
|
+
});
|
|
87
|
+
const [selectAll, setSelectAll] = (0, react_1.useState)(false);
|
|
88
|
+
const [refetchData, setRefetchData] = (0, react_1.useState)(false);
|
|
89
|
+
const [allDataLoaded, setAllDataLoaded] = (0, react_1.useState)(false);
|
|
90
|
+
const [isKeyboardOpen, setIsKeyboardOpen] = (0, react_1.useState)(false);
|
|
91
|
+
const [tabsScrollable, setTabsScrollable] = (0, react_1.useState)(false);
|
|
92
|
+
const lastReportedDropStateRef = (0, react_1.useRef)(null);
|
|
93
|
+
let originalOverflow = '';
|
|
94
|
+
let hasScrollbar = false;
|
|
95
|
+
const adjustDropdownPosition = () => {
|
|
143
96
|
var _a, _b;
|
|
144
97
|
if (dropdownRef.current) {
|
|
145
|
-
|
|
146
|
-
|
|
98
|
+
const inputRect = dropdownRef.current.getBoundingClientRect();
|
|
99
|
+
const dropdownPosition = {
|
|
147
100
|
left: inputRect.left + window.scrollX,
|
|
148
101
|
width: inputRect.width,
|
|
149
102
|
top: 0,
|
|
150
103
|
};
|
|
151
|
-
|
|
104
|
+
const tabsNaturalWidth = tabRef.current
|
|
152
105
|
? (0, measureTabListNaturalWidth_1.measureTabListNaturalWidth)(tabRef.current)
|
|
153
106
|
: null;
|
|
154
|
-
|
|
155
|
-
? Math.max(measureTabListNaturalWidth_1.MAX_DROPDOWN_WIDTH_WITH_TABS_PX,
|
|
107
|
+
const maxWidthCap = tab.length > 0
|
|
108
|
+
? Math.max(measureTabListNaturalWidth_1.MAX_DROPDOWN_WIDTH_WITH_TABS_PX, dropdownPosition.width)
|
|
156
109
|
: Number.POSITIVE_INFINITY;
|
|
157
|
-
|
|
158
|
-
|
|
110
|
+
const widthBeforeClamp = Math.min(Math.max(dropdownPosition.width, tabsNaturalWidth !== null && tabsNaturalWidth !== void 0 ? tabsNaturalWidth : 0, measureTabListNaturalWidth_1.MIN_DROPDOWN_WIDTH_PX), maxWidthCap);
|
|
111
|
+
const { width: desiredWidth, left: desiredLeft } = (0, measureTabListNaturalWidth_1.clampDropdownToViewportPreferRightAlign)({
|
|
159
112
|
desiredWidth: widthBeforeClamp,
|
|
160
|
-
desiredLeft:
|
|
113
|
+
desiredLeft: dropdownPosition.left,
|
|
161
114
|
anchorRight: inputRect.right + window.scrollX,
|
|
162
|
-
})
|
|
163
|
-
setTabsScrollable(
|
|
164
|
-
|
|
115
|
+
});
|
|
116
|
+
setTabsScrollable((prev) => {
|
|
117
|
+
const next = tab.length > 0 && (tabsNaturalWidth !== null && tabsNaturalWidth !== void 0 ? tabsNaturalWidth : 0) > desiredWidth;
|
|
165
118
|
return prev === next ? prev : next;
|
|
166
119
|
});
|
|
167
120
|
// Check if there's enough space below the input for the dropdown
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
121
|
+
const spaceBelow = window.innerHeight - inputRect.bottom;
|
|
122
|
+
const spaceAbove = inputRect.top + window.scrollY;
|
|
123
|
+
let dropdownHeight = viewMode ? 160 : 300; // Assume a fixed height or calculate based on content
|
|
124
|
+
const defaultHeight = 184;
|
|
172
125
|
if (countOnly) {
|
|
173
126
|
if (dropdownSelectedRef === null || dropdownSelectedRef === void 0 ? void 0 : dropdownSelectedRef.current)
|
|
174
127
|
dropdownHeight += (_a = dropdownSelectedRef === null || dropdownSelectedRef === void 0 ? void 0 : dropdownSelectedRef.current) === null || _a === void 0 ? void 0 : _a.clientHeight;
|
|
@@ -179,19 +132,19 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
179
132
|
}
|
|
180
133
|
if (spaceBelow >= dropdownHeight) {
|
|
181
134
|
dropLevelRef.current = 'bottom';
|
|
182
|
-
|
|
135
|
+
dropdownPosition.top =
|
|
183
136
|
inputRect.top + window.scrollY + inputRect.height;
|
|
184
137
|
setSelHeight(defaultHeight);
|
|
185
138
|
}
|
|
186
139
|
else if (spaceAbove >= dropdownHeight) {
|
|
187
|
-
|
|
140
|
+
let sHeight = tabInlineSearch ? 73 : 113;
|
|
188
141
|
sHeight =
|
|
189
142
|
sHeight -
|
|
190
143
|
((filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 && enableSelectAll && isMultiple
|
|
191
144
|
? 32
|
|
192
145
|
: 0);
|
|
193
146
|
dropLevelRef.current = 'top';
|
|
194
|
-
|
|
147
|
+
dropdownPosition.top =
|
|
195
148
|
inputRect.top +
|
|
196
149
|
window.scrollY -
|
|
197
150
|
dropdownHeight +
|
|
@@ -201,67 +154,71 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
201
154
|
}
|
|
202
155
|
else {
|
|
203
156
|
dropLevelRef.current = 'bottom';
|
|
204
|
-
|
|
157
|
+
dropdownPosition.top =
|
|
205
158
|
inputRect.top + window.scrollY + inputRect.height;
|
|
206
159
|
if (itemsRef === null || itemsRef === void 0 ? void 0 : itemsRef.current) {
|
|
207
|
-
|
|
208
|
-
|
|
160
|
+
const totalH = showAllSelected ? 148 : defaultHeight;
|
|
161
|
+
const selH = totalH - (dropdownHeight - spaceBelow);
|
|
209
162
|
setSelHeight(selH < 50 ? 50 : selH);
|
|
210
163
|
}
|
|
211
164
|
}
|
|
212
165
|
// setDropdownStyle({
|
|
213
166
|
// ...dropdownPosition,
|
|
214
167
|
// });
|
|
215
|
-
setDropdownStyle(
|
|
168
|
+
setDropdownStyle((prevStyle) => {
|
|
169
|
+
const nextTransform = `translateY(${dropdownPosition.top}px)`;
|
|
170
|
+
if (prevStyle.transform === nextTransform &&
|
|
171
|
+
prevStyle.left === desiredLeft &&
|
|
172
|
+
prevStyle.width === desiredWidth) {
|
|
173
|
+
return prevStyle;
|
|
174
|
+
}
|
|
175
|
+
return Object.assign(Object.assign({}, prevStyle), { transform: nextTransform, left: desiredLeft, width: desiredWidth });
|
|
176
|
+
});
|
|
216
177
|
}
|
|
217
178
|
};
|
|
218
|
-
(0, react_1.useEffect)(
|
|
179
|
+
(0, react_1.useEffect)(() => {
|
|
219
180
|
window.addEventListener('resize', adjustDropdownPosition);
|
|
220
181
|
adjustDropdownPosition();
|
|
221
|
-
return
|
|
182
|
+
return () => {
|
|
222
183
|
window.removeEventListener('resize', adjustDropdownPosition);
|
|
223
184
|
};
|
|
224
185
|
}, [dropOpen, expandArrowClick]);
|
|
225
186
|
// Detect keyboard open on mobile using Visual Viewport API
|
|
226
|
-
(0, react_1.useEffect)(
|
|
227
|
-
|
|
187
|
+
(0, react_1.useEffect)(() => {
|
|
188
|
+
const vv = window.visualViewport;
|
|
228
189
|
if (!vv)
|
|
229
190
|
return;
|
|
230
|
-
|
|
191
|
+
const onResize = () => {
|
|
231
192
|
// Heuristic: if visual viewport height shrinks a lot, keyboard is likely open
|
|
232
|
-
|
|
193
|
+
const open = vv.height < window.innerHeight - 100;
|
|
233
194
|
setIsKeyboardOpen(open);
|
|
234
195
|
};
|
|
235
196
|
vv.addEventListener("resize", onResize);
|
|
236
197
|
vv.addEventListener("scroll", onResize); // iOS sometimes fires scroll instead
|
|
237
198
|
onResize();
|
|
238
|
-
return
|
|
199
|
+
return () => {
|
|
239
200
|
vv.removeEventListener("resize", onResize);
|
|
240
201
|
vv.removeEventListener("scroll", onResize);
|
|
241
202
|
};
|
|
242
203
|
}, []);
|
|
243
|
-
|
|
204
|
+
const { suggestions, isLoading, handlePickSuggestions, resetSuggections } = (0, autosuggestions_1.useSuggestions)(getData, data, dropOpen, async, paginationEnabled, initialLoad, String(searchValue || inputValue || ''), isMultiple, setNextPage, selectedItems, typeOnlyFetch
|
|
244
205
|
// nextBlock
|
|
245
|
-
)
|
|
206
|
+
);
|
|
246
207
|
// Handling the selection of a suggestion
|
|
247
|
-
|
|
208
|
+
const handleSuggestionClick = (0, react_1.useCallback)((suggestion, idx) => {
|
|
248
209
|
if (isMultiple) {
|
|
249
210
|
setFocusedIndex(idx);
|
|
250
|
-
setSelectedItems(
|
|
251
|
-
|
|
252
|
-
? prev.some(
|
|
253
|
-
|
|
254
|
-
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id');
|
|
255
|
-
})
|
|
211
|
+
setSelectedItems((prev) => {
|
|
212
|
+
const isAdded = prev && prev.length > 0
|
|
213
|
+
? prev.some((item) => (0, getKeyValue_1.getKeyValue)(item, descId, 'id') ===
|
|
214
|
+
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id'))
|
|
256
215
|
: false;
|
|
257
216
|
if (isAdded) {
|
|
258
|
-
return prev.filter(
|
|
259
|
-
|
|
260
|
-
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id');
|
|
261
|
-
});
|
|
217
|
+
return prev.filter((item) => (0, getKeyValue_1.getKeyValue)(item, descId, 'id') !==
|
|
218
|
+
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id'));
|
|
262
219
|
}
|
|
263
220
|
else {
|
|
264
|
-
return
|
|
221
|
+
return [...prev, suggestion];
|
|
265
222
|
}
|
|
266
223
|
});
|
|
267
224
|
}
|
|
@@ -274,28 +231,26 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
274
231
|
}
|
|
275
232
|
}, []);
|
|
276
233
|
// Adding debounce to avoid making API calls on every keystroke
|
|
277
|
-
|
|
234
|
+
const debouncedUpdate = (0, react_1.useCallback)((0, debounce_1.debounce)((value, tabVal) => {
|
|
278
235
|
setSearchOldValue(value);
|
|
279
236
|
handlePickSuggestions(value, 1, false, tabVal);
|
|
280
237
|
}, 500), []);
|
|
281
|
-
|
|
238
|
+
const handleChangeWithDebounce = (value) => {
|
|
282
239
|
if ((type === 'auto_complete' || type === 'auto_suggestion') && async) {
|
|
283
|
-
|
|
240
|
+
const activeTabVal = tab.length > 0 ? tab === null || tab === void 0 ? void 0 : tab[activeTab].id : undefined;
|
|
284
241
|
debouncedUpdate(value, activeTabVal);
|
|
285
242
|
}
|
|
286
243
|
};
|
|
287
|
-
|
|
288
|
-
|
|
244
|
+
const handleMultiSelect = (e, suggestion) => {
|
|
245
|
+
const { checked } = e.target;
|
|
289
246
|
if (isMultiple) {
|
|
290
247
|
if (checked) {
|
|
291
|
-
setSelectedItems(
|
|
248
|
+
setSelectedItems((prev) => [...prev, suggestion]);
|
|
292
249
|
}
|
|
293
250
|
else {
|
|
294
|
-
setSelectedItems(
|
|
295
|
-
return prev.filter(
|
|
296
|
-
|
|
297
|
-
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id');
|
|
298
|
-
});
|
|
251
|
+
setSelectedItems((prev) => {
|
|
252
|
+
return prev.filter((item, i) => (0, getKeyValue_1.getKeyValue)(item, descId, 'id') !==
|
|
253
|
+
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id'));
|
|
299
254
|
});
|
|
300
255
|
}
|
|
301
256
|
}
|
|
@@ -309,7 +264,7 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
309
264
|
}
|
|
310
265
|
}
|
|
311
266
|
};
|
|
312
|
-
(0, react_1.useEffect)(
|
|
267
|
+
(0, react_1.useEffect)(() => {
|
|
313
268
|
// Only update if different
|
|
314
269
|
if (!(0, deepEqual_1.deepEqual)(selectedItems, propsSeelctedItems)) {
|
|
315
270
|
setSelectedItems(propsSeelctedItems);
|
|
@@ -317,11 +272,11 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
317
272
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
318
273
|
}, [propsSeelctedItems]);
|
|
319
274
|
// Effect to set the input value whenever `value` prop changes
|
|
320
|
-
(0, react_1.useEffect)(
|
|
275
|
+
(0, react_1.useEffect)(() => {
|
|
321
276
|
setInputValue(value !== null && value !== void 0 ? value : '');
|
|
322
277
|
}, [value]);
|
|
323
|
-
|
|
324
|
-
|
|
278
|
+
const handleChange = (e) => {
|
|
279
|
+
const { value } = e.target;
|
|
325
280
|
//setVisibleDrop();
|
|
326
281
|
setSearchValue(value);
|
|
327
282
|
handleChangeWithDebounce(value);
|
|
@@ -337,16 +292,17 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
337
292
|
setDropOpen(true);
|
|
338
293
|
}
|
|
339
294
|
};
|
|
340
|
-
|
|
341
|
-
|
|
295
|
+
const handleSuggestionChange = (e) => {
|
|
296
|
+
const { value } = e.target;
|
|
342
297
|
//setVisibleDrop();
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
298
|
+
const trimStart = value.trimStart();
|
|
299
|
+
if (trimStart !== searchValue) {
|
|
300
|
+
setSearchValue(trimStart);
|
|
301
|
+
handleChangeWithDebounce(trimStart);
|
|
302
|
+
}
|
|
346
303
|
setAllDataLoaded(false);
|
|
347
304
|
};
|
|
348
|
-
|
|
349
|
-
var _a;
|
|
305
|
+
const handleClear = () => {
|
|
350
306
|
if (searchValue) {
|
|
351
307
|
setSearchValue('');
|
|
352
308
|
setDropOpen(false);
|
|
@@ -356,43 +312,46 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
356
312
|
if (isMultiple)
|
|
357
313
|
onChange([]);
|
|
358
314
|
else
|
|
359
|
-
onChange(
|
|
315
|
+
onChange({ [descId]: '', [desc]: '' });
|
|
360
316
|
setDropOpen(false);
|
|
361
317
|
}
|
|
362
318
|
};
|
|
363
|
-
|
|
364
|
-
|
|
319
|
+
const handleClearSelected = (preserveSearchOrEvent) => {
|
|
320
|
+
const preserveSearch = typeof preserveSearchOrEvent === 'boolean' ? preserveSearchOrEvent : false;
|
|
365
321
|
setSelectedItems([]);
|
|
366
322
|
setShowAllSelected(false);
|
|
367
|
-
if (searchValue && type === 'auto_suggestion'
|
|
323
|
+
if (!preserveSearch && searchValue && type === 'auto_suggestion') {
|
|
368
324
|
setSearchValue('');
|
|
325
|
+
if (!tabInlineSearch) {
|
|
326
|
+
onSearchValueChange === null || onSearchValueChange === void 0 ? void 0 : onSearchValueChange('');
|
|
327
|
+
}
|
|
369
328
|
}
|
|
370
329
|
if (isMultiple)
|
|
371
330
|
onChange([]);
|
|
372
331
|
else
|
|
373
|
-
onChange(
|
|
374
|
-
if (async && type === 'auto_suggestion'
|
|
332
|
+
onChange({ [descId]: '', [desc]: '' });
|
|
333
|
+
if (async && type === 'auto_suggestion')
|
|
375
334
|
resetSuggections === null || resetSuggections === void 0 ? void 0 : resetSuggections();
|
|
376
335
|
};
|
|
377
|
-
|
|
378
|
-
return
|
|
336
|
+
const generateClassName = (0, react_1.useCallback)(() => {
|
|
337
|
+
return `qbs-textfield-default ${className} ${errors && (errors === null || errors === void 0 ? void 0 : errors.message) ? 'textfield-error' : 'textfield'} ${expandable ? 'expandable' : ''}`;
|
|
379
338
|
}, [errors, name]);
|
|
380
|
-
|
|
381
|
-
setSelectedItems(
|
|
382
|
-
return prev.filter(
|
|
339
|
+
const handleRemoveSelectedItem = (index) => {
|
|
340
|
+
setSelectedItems((prev) => {
|
|
341
|
+
return prev.filter((_, i) => i !== index);
|
|
383
342
|
});
|
|
384
343
|
};
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
344
|
+
const uniqueDropArrowId = `${name}-drop-arrow-selected-list-icon`;
|
|
345
|
+
const isKeyboardOpenRef = (0, react_1.useRef)(false);
|
|
346
|
+
const closeOnScrollTimeoutRef = (0, react_1.useRef)(null);
|
|
388
347
|
// Keep ref in sync with state for use in event handlers
|
|
389
|
-
(0, react_1.useEffect)(
|
|
348
|
+
(0, react_1.useEffect)(() => {
|
|
390
349
|
isKeyboardOpenRef.current = isKeyboardOpen;
|
|
391
350
|
}, [isKeyboardOpen]);
|
|
392
|
-
(0, react_1.useEffect)(
|
|
393
|
-
|
|
351
|
+
(0, react_1.useEffect)(() => {
|
|
352
|
+
const handleScroll = (event) => {
|
|
394
353
|
// Don't close if the user is scrolling inside the dropdown itself.
|
|
395
|
-
|
|
354
|
+
const scrollTarget = event.target;
|
|
396
355
|
if (dropRef.current && scrollTarget instanceof Node && dropRef.current.contains(scrollTarget)) {
|
|
397
356
|
return;
|
|
398
357
|
}
|
|
@@ -401,7 +360,7 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
401
360
|
if (isKeyboardOpenRef.current) {
|
|
402
361
|
// Only prevent closing if keyboard is actually open (mobile scenario)
|
|
403
362
|
// Also check if input is focused to avoid closing while typing
|
|
404
|
-
|
|
363
|
+
const activeElement = document.activeElement;
|
|
405
364
|
if (activeElement && (activeElement === inputRef.current ||
|
|
406
365
|
activeElement === inputSearchRef.current ||
|
|
407
366
|
(dropRef.current && dropRef.current.contains(activeElement)))) {
|
|
@@ -413,18 +372,17 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
413
372
|
if (closeOnScrollTimeoutRef.current) {
|
|
414
373
|
window.clearTimeout(closeOnScrollTimeoutRef.current);
|
|
415
374
|
}
|
|
416
|
-
closeOnScrollTimeoutRef.current = window.setTimeout(
|
|
375
|
+
closeOnScrollTimeoutRef.current = window.setTimeout(() => {
|
|
417
376
|
setDropOpen(false);
|
|
418
|
-
if (!typeOnlyFetch)
|
|
419
|
-
|
|
420
|
-
}, 200);
|
|
377
|
+
//if (!typeOnlyFetch) setSearchValue('');
|
|
378
|
+
}, 0);
|
|
421
379
|
}
|
|
422
380
|
};
|
|
423
|
-
|
|
381
|
+
const handleClickOutside = (event) => {
|
|
424
382
|
var _a;
|
|
425
383
|
// When keyboard is open, be more lenient - only close on clear outside clicks
|
|
426
384
|
if (isKeyboardOpenRef.current) {
|
|
427
|
-
|
|
385
|
+
const target = event.target;
|
|
428
386
|
// Only close if it's a clear click outside, not on input/textarea elements
|
|
429
387
|
if (dropRef.current &&
|
|
430
388
|
target instanceof Node &&
|
|
@@ -434,11 +392,10 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
434
392
|
target.closest &&
|
|
435
393
|
!target.closest('input') &&
|
|
436
394
|
!target.closest('textarea')) {
|
|
437
|
-
setTimeout(
|
|
395
|
+
setTimeout(() => {
|
|
438
396
|
setDropOpen(false);
|
|
439
|
-
if (!typeOnlyFetch)
|
|
440
|
-
|
|
441
|
-
}, 200);
|
|
397
|
+
// if (!typeOnlyFetch) setSearchValue('');
|
|
398
|
+
}, 0);
|
|
442
399
|
}
|
|
443
400
|
return;
|
|
444
401
|
}
|
|
@@ -447,31 +404,26 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
447
404
|
event.target instanceof Node &&
|
|
448
405
|
!dropRef.current.contains(event.target) &&
|
|
449
406
|
((_a = event.target) === null || _a === void 0 ? void 0 : _a.id) !== uniqueDropArrowId) {
|
|
450
|
-
setTimeout(
|
|
407
|
+
setTimeout(() => {
|
|
451
408
|
setDropOpen(false);
|
|
452
|
-
if (!typeOnlyFetch)
|
|
453
|
-
|
|
454
|
-
}, 200);
|
|
409
|
+
//if (!typeOnlyFetch) setSearchValue('');
|
|
410
|
+
}, 0);
|
|
455
411
|
}
|
|
456
412
|
};
|
|
457
413
|
document.addEventListener('mousedown', handleClickOutside);
|
|
458
414
|
window.addEventListener('scroll', handleScroll);
|
|
459
415
|
// Capture-phase scroll catches scrolls from any scroll container (scroll doesn't bubble).
|
|
460
416
|
document.addEventListener('scroll', handleScroll, true);
|
|
461
|
-
|
|
462
|
-
scrollableDivs.forEach(
|
|
463
|
-
return div.addEventListener('scroll', handleScroll);
|
|
464
|
-
});
|
|
417
|
+
const scrollableDivs = document.querySelectorAll('div[style*="overflow"], .overflow-auto, .overflow-y-auto, .overflow-x-auto');
|
|
418
|
+
scrollableDivs.forEach((div) => div.addEventListener('scroll', handleScroll));
|
|
465
419
|
if (scrollRef && scrollRef.current && scrollRef.current !== null) {
|
|
466
420
|
scrollRef.current.addEventListener('scroll', handleScroll);
|
|
467
421
|
}
|
|
468
|
-
return
|
|
422
|
+
return () => {
|
|
469
423
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
470
424
|
window.removeEventListener('scroll', handleScroll);
|
|
471
425
|
document.removeEventListener('scroll', handleScroll, true);
|
|
472
|
-
scrollableDivs.forEach(
|
|
473
|
-
return div.removeEventListener('scroll', handleScroll);
|
|
474
|
-
});
|
|
426
|
+
scrollableDivs.forEach((div) => div.removeEventListener('scroll', handleScroll));
|
|
475
427
|
if (closeOnScrollTimeoutRef.current) {
|
|
476
428
|
window.clearTimeout(closeOnScrollTimeoutRef.current);
|
|
477
429
|
closeOnScrollTimeoutRef.current = null;
|
|
@@ -482,9 +434,9 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
482
434
|
};
|
|
483
435
|
}, [dropOpen, typeOnlyFetch, uniqueDropArrowId]);
|
|
484
436
|
// Filtering suggestions based on type and search value
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
(0, react_1.useEffect)(
|
|
437
|
+
const selected = isMultiple ? selectedItems : inputValue;
|
|
438
|
+
const filteredData = (0, react_1.useMemo)(() => (0, filterSuggestions_1.filterSuggestions)(suggestions, searchValue, type, desc, selected, async, false, true, matchFromStart), [suggestions, searchValue, type, desc, selected, async, matchFromStart]);
|
|
439
|
+
(0, react_1.useEffect)(() => {
|
|
488
440
|
if (isInitialRender) {
|
|
489
441
|
setIsInitialRender(false);
|
|
490
442
|
}
|
|
@@ -492,26 +444,26 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
492
444
|
onChange(selectedItems);
|
|
493
445
|
}
|
|
494
446
|
adjustDropdownPosition();
|
|
495
|
-
setTimeout(
|
|
447
|
+
setTimeout(() => {
|
|
496
448
|
adjustDropdownPosition();
|
|
497
449
|
}, 200);
|
|
498
450
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
499
451
|
}, [selectedItems]);
|
|
500
|
-
(0, react_1.useEffect)(
|
|
452
|
+
(0, react_1.useEffect)(() => {
|
|
501
453
|
adjustDropdownPosition();
|
|
502
|
-
setTimeout(
|
|
454
|
+
setTimeout(() => {
|
|
503
455
|
adjustDropdownPosition();
|
|
504
456
|
}, 200);
|
|
505
457
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
506
458
|
}, [filteredData]);
|
|
507
|
-
(0, react_1.useEffect)(
|
|
459
|
+
(0, react_1.useEffect)(() => {
|
|
508
460
|
// Handle keyboard navigation
|
|
509
|
-
|
|
461
|
+
const handleKeyDown = (e) => {
|
|
510
462
|
var _a, _b;
|
|
511
463
|
if (!dropOpen)
|
|
512
464
|
return;
|
|
513
|
-
|
|
514
|
-
|
|
465
|
+
const atBottom = focusedIndex === filteredData.length - 1;
|
|
466
|
+
const atTop = focusedIndex === 0;
|
|
515
467
|
switch (e.key) {
|
|
516
468
|
case 'ArrowDown':
|
|
517
469
|
e.preventDefault();
|
|
@@ -524,7 +476,7 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
524
476
|
itemsRef.current.scrollTop = 0;
|
|
525
477
|
}
|
|
526
478
|
}
|
|
527
|
-
setFocusedIndex(
|
|
479
|
+
setFocusedIndex((prev) => (prev + 1) % (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length));
|
|
528
480
|
break;
|
|
529
481
|
case 'ArrowUp':
|
|
530
482
|
e.preventDefault();
|
|
@@ -537,7 +489,7 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
537
489
|
itemsRef.current.scrollTop = 0;
|
|
538
490
|
}
|
|
539
491
|
}
|
|
540
|
-
setFocusedIndex(
|
|
492
|
+
setFocusedIndex((prev) => (prev - 1 + (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length)) % (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length));
|
|
541
493
|
break;
|
|
542
494
|
case 'Enter':
|
|
543
495
|
e.preventDefault();
|
|
@@ -553,37 +505,31 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
553
505
|
}
|
|
554
506
|
};
|
|
555
507
|
window.addEventListener('keydown', handleKeyDown);
|
|
556
|
-
return
|
|
508
|
+
return () => {
|
|
557
509
|
window.removeEventListener('keydown', handleKeyDown);
|
|
558
510
|
};
|
|
559
511
|
}, [filteredData, dropOpen, isLoading, focusedIndex]);
|
|
560
|
-
|
|
512
|
+
const isSelected = (item, selectedItems) => {
|
|
561
513
|
if (Array.isArray(selectedItems)) {
|
|
562
|
-
return selectedItems.some(
|
|
563
|
-
return (0, getKeyValue_1.getKeyValue)(selectedItem, desc, 'name') === (0, getKeyValue_1.getKeyValue)(item, desc, 'name') ||
|
|
564
|
-
(0, getKeyValue_1.getKeyValue)(selectedItem, descId, 'id') === (0, getKeyValue_1.getKeyValue)(item, descId, 'id');
|
|
565
|
-
});
|
|
566
|
-
}
|
|
567
|
-
else {
|
|
568
|
-
return ((0, getKeyValue_1.getKeyValue)(item, desc, 'name') === (0, getKeyValue_1.safeToLowerString)(selectedItems) ||
|
|
569
|
-
(0, getKeyValue_1.getKeyValue)(item, descId, 'id') === (0, getKeyValue_1.safeToLowerString)(selectedItems));
|
|
514
|
+
return selectedItems.some((selectedItem) => (0, getKeyValue_1.isSelectionMatch)(selectedItem, item, desc, descId));
|
|
570
515
|
}
|
|
516
|
+
return (0, getKeyValue_1.isSelectionMatchValue)(item, selectedItems, desc, descId);
|
|
571
517
|
};
|
|
572
|
-
|
|
518
|
+
const handleLoadMore = () => {
|
|
573
519
|
if (paginationEnabled) {
|
|
574
520
|
handlePickSuggestions(searchValue, nextPage + 1, true);
|
|
575
521
|
setNextPage(nextPage + 1);
|
|
576
522
|
}
|
|
577
523
|
};
|
|
578
|
-
|
|
524
|
+
const handleOnClick = () => {
|
|
579
525
|
(!disabled && !readOnly && !expandable && !dropOpen) || viewMode
|
|
580
526
|
? setVisibleDrop()
|
|
581
527
|
: '';
|
|
582
528
|
};
|
|
583
|
-
|
|
529
|
+
const onInputFocus = () => {
|
|
584
530
|
if (!dropOpen) {
|
|
585
531
|
if (countOnly) {
|
|
586
|
-
setTimeout(
|
|
532
|
+
setTimeout(() => {
|
|
587
533
|
if (inputSearchRef.current)
|
|
588
534
|
inputSearchRef.current.focus();
|
|
589
535
|
}, 10);
|
|
@@ -595,7 +541,7 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
595
541
|
// handleOnClick();
|
|
596
542
|
}
|
|
597
543
|
};
|
|
598
|
-
|
|
544
|
+
const handleShowAllSelected = (enabled) => {
|
|
599
545
|
setExpandArrowClick(expandArrowClick + 1);
|
|
600
546
|
if (enabled) {
|
|
601
547
|
setShowAllSelected(true);
|
|
@@ -604,20 +550,20 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
604
550
|
setShowAllSelected(false);
|
|
605
551
|
}
|
|
606
552
|
};
|
|
607
|
-
|
|
553
|
+
const handleCollapseArrowClick = () => {
|
|
608
554
|
setExpandArrowClick(expandArrowClick + 1);
|
|
609
555
|
setShowAllSelected(false);
|
|
610
556
|
};
|
|
611
|
-
|
|
612
|
-
? selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.slice(itemCount).map(
|
|
557
|
+
const tooltipContent = (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > itemCount
|
|
558
|
+
? selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.slice(itemCount).map((item) => item[desc]).join(', ')
|
|
613
559
|
: '';
|
|
614
|
-
|
|
615
|
-
? selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map(
|
|
560
|
+
const allSelectedTooltipContent = (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0
|
|
561
|
+
? selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.map((item) => item[desc]).join(', ')
|
|
616
562
|
: '';
|
|
617
|
-
|
|
563
|
+
const handleDropOpen = (e) => {
|
|
618
564
|
setVisibleDrop();
|
|
619
565
|
};
|
|
620
|
-
|
|
566
|
+
const setVisibleDrop = () => {
|
|
621
567
|
hasScrollbar = document.body.scrollHeight > window.innerHeight;
|
|
622
568
|
if (!originalOverflow && !hasScrollbar) {
|
|
623
569
|
originalOverflow = document.body.style.overflow;
|
|
@@ -627,7 +573,7 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
627
573
|
if (!dropOpen)
|
|
628
574
|
setDropOpen(true);
|
|
629
575
|
setFocusedIndex(0);
|
|
630
|
-
setTimeout(
|
|
576
|
+
setTimeout(() => {
|
|
631
577
|
setVisible(true);
|
|
632
578
|
if (!hasScrollbar) {
|
|
633
579
|
document.body.style.overflow = originalOverflow || '';
|
|
@@ -635,92 +581,95 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
635
581
|
originalOverflow = '';
|
|
636
582
|
}, 200);
|
|
637
583
|
};
|
|
638
|
-
|
|
584
|
+
const handleDropClose = (e) => {
|
|
639
585
|
if (dropOpen)
|
|
640
586
|
setDropOpen(false);
|
|
641
587
|
};
|
|
642
|
-
|
|
588
|
+
const handleTabClick = (index) => {
|
|
643
589
|
if (activeTab !== index) {
|
|
644
590
|
if (clearTabSwitch) {
|
|
645
|
-
handleClearSelected();
|
|
591
|
+
handleClearSelected(!tabInlineSearch);
|
|
646
592
|
if (tabInlineSearch) {
|
|
647
593
|
setSearchValue('');
|
|
648
594
|
setInputValue('');
|
|
649
595
|
handlePickSuggestions('', 1);
|
|
596
|
+
setAllDataLoaded(false);
|
|
650
597
|
}
|
|
651
598
|
else {
|
|
652
599
|
resetSuggections === null || resetSuggections === void 0 ? void 0 : resetSuggections();
|
|
653
|
-
|
|
654
|
-
|
|
600
|
+
const activeTabVal = tab.length > 0 ? tab === null || tab === void 0 ? void 0 : tab[index].id : undefined;
|
|
601
|
+
const normalizedSearchValue = searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim();
|
|
602
|
+
const tabSearchValue = !tabInlineSearch && allDataLoaded && !normalizedSearchValue
|
|
603
|
+
? '*'
|
|
604
|
+
: searchValue;
|
|
605
|
+
handlePickSuggestions(tabSearchValue, 1, false, activeTabVal);
|
|
655
606
|
}
|
|
656
|
-
setAllDataLoaded(false);
|
|
657
607
|
}
|
|
658
608
|
else if (!tabInlineSearch) {
|
|
659
609
|
resetSuggections === null || resetSuggections === void 0 ? void 0 : resetSuggections();
|
|
660
|
-
|
|
661
|
-
|
|
610
|
+
const activeTabVal = tab.length > 0 ? tab === null || tab === void 0 ? void 0 : tab[index].id : undefined;
|
|
611
|
+
const normalizedSearchValue = searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim();
|
|
612
|
+
const tabSearchValue = !tabInlineSearch && allDataLoaded && !normalizedSearchValue
|
|
613
|
+
? '*'
|
|
614
|
+
: searchValue;
|
|
615
|
+
handlePickSuggestions(tabSearchValue, 1, false, activeTabVal);
|
|
662
616
|
}
|
|
663
617
|
setActiveTab(index);
|
|
664
618
|
}
|
|
665
619
|
};
|
|
666
|
-
|
|
667
|
-
|
|
620
|
+
const getSelectedRowLimit = () => {
|
|
621
|
+
let maxHeight = 36;
|
|
668
622
|
if ((selItemRef === null || selItemRef === void 0 ? void 0 : selItemRef.current) && (selItemRef === null || selItemRef === void 0 ? void 0 : selItemRef.current.clientWidth) < 300) {
|
|
669
623
|
maxHeight = 24;
|
|
670
624
|
}
|
|
671
625
|
return selectedRowLimit * maxHeight + 5;
|
|
672
626
|
};
|
|
673
|
-
|
|
674
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
627
|
+
const getSelectedItems = (dropdown) => {
|
|
628
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: selItemRef, className: "selected-items-outer-container", style: { maxHeight: `${getSelectedRowLimit()}px` }, children: [selectedItems
|
|
675
629
|
.slice(0, (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > itemCount
|
|
676
630
|
? showAllSelected
|
|
677
631
|
? selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length
|
|
678
632
|
: itemCount
|
|
679
633
|
: selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length)
|
|
680
|
-
.map(
|
|
634
|
+
.map((item, index) => {
|
|
681
635
|
var _a, _b;
|
|
682
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
683
|
-
?
|
|
684
|
-
: item === null || item === void 0 ? void 0 : item[desc], !viewMode && ((0, jsx_runtime_1.jsx)("button",
|
|
685
|
-
}), (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > itemCount && !showAllSelected && ((0, jsx_runtime_1.jsx)("div",
|
|
636
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "selected-items-container", children: (0, jsx_runtime_1.jsx)(NewTooltip_1.default, { title: item === null || item === void 0 ? void 0 : item[desc], enabled: ((_a = item === null || item === void 0 ? void 0 : item[desc]) === null || _a === void 0 ? void 0 : _a.length) > textCount, children: (0, jsx_runtime_1.jsxs)("div", { className: "selected-item", children: [((_b = item === null || item === void 0 ? void 0 : item[desc]) === null || _b === void 0 ? void 0 : _b.length) > textCount
|
|
637
|
+
? `${item === null || item === void 0 ? void 0 : item[desc].substring(0, textCount)}...`
|
|
638
|
+
: item === null || item === void 0 ? void 0 : item[desc], !viewMode && ((0, jsx_runtime_1.jsx)("button", { onClick: () => handleRemoveSelectedItem(index), className: "remove-item-btn", "aria-label": `Remove ${item === null || item === void 0 ? void 0 : item[desc]}`, children: "X" }))] }, item.id) }) }, index));
|
|
639
|
+
}), (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > itemCount && !showAllSelected && ((0, jsx_runtime_1.jsx)("div", { className: "selected-items-container", children: (0, jsx_runtime_1.jsx)(NewTooltip_1.default, { title: tooltipContent, enabled: true, children: (0, jsx_runtime_1.jsxs)("div", { className: `selected-item-more qbs-rounded-full qbs-min-h-6 qbs-min-w-6 qbs-p-1 ${dropdown ? 'qbs-cursor-pointer' : ''}`, onClick: () => {
|
|
686
640
|
handleShowAllSelected(dropdown);
|
|
687
|
-
}
|
|
641
|
+
}, children: ["+", (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) - itemCount, ' ', (0, jsx_runtime_1.jsx)("span", { className: "qbs-hidden", children: "more" })] }) }) }))] }));
|
|
688
642
|
};
|
|
689
|
-
|
|
690
|
-
return ((0, jsx_runtime_1.jsx)("ul",
|
|
643
|
+
const getTabItems = () => {
|
|
644
|
+
return ((0, jsx_runtime_1.jsx)("ul", { className: `qbs-flex qbs-flex-wrap qbs-w-full qbs-tab qbs-mb-2 -qbs-mt-2 ${tabsScrollable ? 'qbs-tab-scroll' : ''}`, ref: tabRef, children: tab.map((item, idx) => ((0, jsx_runtime_1.jsx)("li", { className: "qbs-flex-1 qbs-tab-items", children: (0, jsx_runtime_1.jsx)("span", { className: `qbs-inline-block qbs-tab-item qbs-text-sm qbs-cursor-pointer qbs-w-full qbs-text-center qbs-p-1 qbs-border-b-2 ${activeTab === idx ? 'qbs-tab-active-item' : ''}`, onClick: () => {
|
|
691
645
|
handleTabClick(idx);
|
|
692
|
-
}
|
|
646
|
+
}, children: item.label }) }, `tab-${idx}`))) }));
|
|
693
647
|
};
|
|
694
|
-
|
|
648
|
+
const handleSelectAll = () => {
|
|
695
649
|
if (isMultiple) {
|
|
696
650
|
if (selectAll) {
|
|
697
|
-
setSelectedItems(
|
|
698
|
-
return prev.filter(function (item) {
|
|
699
|
-
return !filteredData.some(function (f) {
|
|
700
|
-
return (0, getKeyValue_1.getKeyValue)(f, descId, 'id') === (0, getKeyValue_1.getKeyValue)(item, descId, 'id');
|
|
701
|
-
});
|
|
702
|
-
});
|
|
703
|
-
});
|
|
651
|
+
setSelectedItems((prev) => prev.filter((item) => !filteredData.some((f) => (0, getKeyValue_1.getKeyValue)(f, descId, 'id') === (0, getKeyValue_1.getKeyValue)(item, descId, 'id'))));
|
|
704
652
|
}
|
|
705
653
|
else {
|
|
706
|
-
filteredData.map(
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
return __spreadArray(__spreadArray([], prev, true), [suggestion], false);
|
|
717
|
-
}
|
|
718
|
-
});
|
|
719
|
-
});
|
|
654
|
+
filteredData.map((suggestion) => setSelectedItems((prev) => {
|
|
655
|
+
const isAdded = prev.some((item) => (0, getKeyValue_1.getKeyValue)(item, descId, 'id') ===
|
|
656
|
+
(0, getKeyValue_1.getKeyValue)(suggestion, descId, 'id'));
|
|
657
|
+
if (isAdded) {
|
|
658
|
+
return prev;
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
return [...prev, suggestion];
|
|
662
|
+
}
|
|
663
|
+
}));
|
|
720
664
|
}
|
|
721
665
|
}
|
|
722
666
|
};
|
|
723
|
-
|
|
667
|
+
const handleOpenDropdown = (e) => {
|
|
668
|
+
const normalizedSearchValue = searchValue === null || searchValue === void 0 ? void 0 : searchValue.trim();
|
|
669
|
+
const effectiveSearchValue = tabInlineSearch
|
|
670
|
+
? normalizedSearchValue
|
|
671
|
+
: inputValue === null || inputValue === void 0 ? void 0 : inputValue.trim();
|
|
672
|
+
const shouldRefetchForInlineSearch = tabInlineSearch && Boolean(normalizedSearchValue);
|
|
724
673
|
if (!tabInlineSearch) {
|
|
725
674
|
// Toggle the main dropdown when not using inline search
|
|
726
675
|
if (dropOpen && visible && allDataLoaded) {
|
|
@@ -739,9 +688,12 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
739
688
|
setVisible(true);
|
|
740
689
|
}
|
|
741
690
|
}
|
|
742
|
-
if (!suggestions ||
|
|
743
|
-
|
|
744
|
-
|
|
691
|
+
if (!suggestions ||
|
|
692
|
+
(suggestions === null || suggestions === void 0 ? void 0 : suggestions.length) === 0 ||
|
|
693
|
+
refetchData ||
|
|
694
|
+
shouldRefetchForInlineSearch) {
|
|
695
|
+
if (autoDropdown && !effectiveSearchValue) {
|
|
696
|
+
const activeTabVal = tab.length > 0 ? tab === null || tab === void 0 ? void 0 : tab[activeTab].id : undefined;
|
|
745
697
|
if (tabInlineSearch && tab.length > 0) {
|
|
746
698
|
handlePickSuggestions('*', 1, false, activeTabVal);
|
|
747
699
|
}
|
|
@@ -756,50 +708,56 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
756
708
|
setRefetchData(false);
|
|
757
709
|
setAllDataLoaded(true);
|
|
758
710
|
}
|
|
759
|
-
else if (
|
|
711
|
+
else if (effectiveSearchValue) {
|
|
760
712
|
if (tabInlineSearch && tab.length > 0) {
|
|
761
|
-
|
|
762
|
-
handlePickSuggestions(
|
|
713
|
+
const activeTabVal = tab.length > 0 ? tab === null || tab === void 0 ? void 0 : tab[activeTab].id : undefined;
|
|
714
|
+
handlePickSuggestions(effectiveSearchValue, 1, false, activeTabVal);
|
|
763
715
|
}
|
|
764
716
|
else {
|
|
765
|
-
handlePickSuggestions(
|
|
717
|
+
handlePickSuggestions(effectiveSearchValue, 1);
|
|
766
718
|
}
|
|
767
719
|
setRefetchData(true);
|
|
768
720
|
setAllDataLoaded(false);
|
|
769
721
|
}
|
|
770
722
|
}
|
|
771
723
|
};
|
|
772
|
-
(0, react_1.useEffect)(
|
|
773
|
-
|
|
774
|
-
filteredData.every(
|
|
775
|
-
return selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.some(function (s) {
|
|
776
|
-
return (0, getKeyValue_1.getKeyValue)(s, descId, 'id') === (0, getKeyValue_1.getKeyValue)(item, descId, 'id');
|
|
777
|
-
});
|
|
778
|
-
});
|
|
724
|
+
(0, react_1.useEffect)(() => {
|
|
725
|
+
const allSelected = (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 && (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 &&
|
|
726
|
+
filteredData.every((item) => selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.some((s) => (0, getKeyValue_1.getKeyValue)(s, descId, 'id') === (0, getKeyValue_1.getKeyValue)(item, descId, 'id')));
|
|
779
727
|
setSelectAll(allSelected);
|
|
780
728
|
}, [filteredData, selectedItems, descId]);
|
|
781
|
-
(0, react_1.useEffect)(
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
729
|
+
(0, react_1.useEffect)(() => {
|
|
730
|
+
if (!handleUpdateParent)
|
|
731
|
+
return;
|
|
732
|
+
const current = {
|
|
733
|
+
open: dropOpen,
|
|
734
|
+
level: dropLevelRef.current,
|
|
735
|
+
};
|
|
736
|
+
const last = lastReportedDropStateRef.current;
|
|
737
|
+
if (!last || last.open !== current.open || last.level !== current.level) {
|
|
738
|
+
handleUpdateParent(current.open, current.level);
|
|
739
|
+
lastReportedDropStateRef.current = current;
|
|
740
|
+
}
|
|
741
|
+
}, [dropOpen, handleUpdateParent]);
|
|
742
|
+
return ((0, jsx_runtime_1.jsxs)("div", { id: id ? `selected-list-${id}` : `selected-list-${name}`, className: fullWidth ? 'fullWidth' : 'autoWidth', ref: dropdownRef, children: [label && ((0, jsx_runtime_1.jsxs)("div", { style: {
|
|
785
743
|
marginBottom: 5,
|
|
786
744
|
display: 'flex',
|
|
787
745
|
justifyContent: 'space-between',
|
|
788
|
-
}
|
|
746
|
+
}, children: [(0, jsx_runtime_1.jsxs)("label", { className: `labels label-text`, children: [label, required && (0, jsx_runtime_1.jsx)("span", { className: "text-error", children: " *" })] }), (0, jsx_runtime_1.jsx)("span", { onClick: () => handleAction === null || handleAction === void 0 ? void 0 : handleAction(), className: `action_label`, children: actionLabel })] })), (0, jsx_runtime_1.jsxs)("div", { className: `qbs-relative qbs-autocomplete-selected-comp ${expandable ? 'qbs-expandable-container' : 'qbs-container'}`, children: [((selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 || !tabInlineSearch) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: !countOnly ? (getSelectedItems(false)) : !tabInlineSearch ? ((0, jsx_runtime_1.jsx)("div", { className: `selected-items-counter-container ${disabled ? 'selected-item-inline-counter-disabled' : ''} qbs-text-sm qbs-gap-1 ${!tabInlineSearch && autoDropdown && !disabled ? 'selected-item-nontool-direct-counter' : ''}`, children: (0, jsx_runtime_1.jsx)(NewTooltip_1.default, { title: allSelectedTooltipContent, enabled: (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 ? true : false, children: (0, jsx_runtime_1.jsx)("span", { className: "badge qbs-rounded-full qbs-text-xs qbs-inline-flex qbs-items-center qbs-justify-center qbs-px-2 qbs-py-1 qbs-leading-none qbs-min-w-6 qbs-min-h-6", children: selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length }) }) })) : ((0, jsx_runtime_1.jsxs)("div", { className: "selected-items-container qbs-text-sm qbs-gap-1", onClick: () => onInputFocus(), children: [(0, jsx_runtime_1.jsx)("span", { className: `badge qbs-rounded-full qbs-text-xs qbs-inline-flex qbs-items-center qbs-justify-center qbs-px-2 qbs-py-1 qbs-leading-none qbs-min-w-6 qbs-min-h-6 ${(selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 99 ? 'qbs-text-hundred-plus' : ''}`, children: (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 99 ? '99+' : selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length }), (0, jsx_runtime_1.jsx)("span", { className: "selected-label-text", children: selectedLabel && selectedLabel !== '' ? (selectedLabel) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["Item", (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 1 && 's', " Selected"] })) })] })) })), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: autoDropdown && !tabInlineSearch && !disabled && !readOnly && ((0, jsx_runtime_1.jsx)("div", { className: `qbs-inline-all-dropdown-btn ${!tabInlineSearch && autoDropdown ? 'qbs-inline-all-direct-dropdown-btn' : ''}`, children: (0, jsx_runtime_1.jsx)("button", { disabled: disabled !== null && disabled !== void 0 ? disabled : readOnly, onClick: (e) => handleOpenDropdown(e), className: "text-[#667085] focus-visible:outline-slate-100 absolute right-2 qbs-all-dropdown-btn", "data-testid": "drop-arrow", type: "button", id: "autocomplete-drop-icon", ref: dropBtnRef, children: (0, jsx_runtime_1.jsx)(icons_1.AllDropArrow, { type: !allDataLoaded ? 'down' : 'up', uniqueId: "all-dropdow-arrow-icon", className: "all-dropdow-arrow-icon" }) }) })) }), (0, jsx_runtime_1.jsx)("div", { className: `qbs-textfield-expandable ${!expandable ? 'qbs-normal' : ''}`, "data-value": (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 || searchValue
|
|
789
747
|
? !tabInlineSearch && searchValue
|
|
790
748
|
? searchValue
|
|
791
749
|
: placeholder !== null && placeholder !== void 0 ? placeholder : ''
|
|
792
|
-
: placeholder !== null && placeholder !== void 0 ? placeholder : '', onClick:
|
|
750
|
+
: placeholder !== null && placeholder !== void 0 ? placeholder : '', onClick: () => onInputFocus(), children: (0, jsx_runtime_1.jsx)("input", { id: id, ref: inputRef, autoComplete: "off", type: "text", value: type === 'auto_suggestion' && !expandable && tabInlineSearch
|
|
793
751
|
? inputValue
|
|
794
752
|
: searchValue || inputValue, onChange: handleChange,
|
|
795
753
|
// onBlur={handleBlur}
|
|
796
|
-
onFocus:
|
|
754
|
+
onFocus: (e) => {
|
|
797
755
|
onFocus === null || onFocus === void 0 ? void 0 : onFocus(e);
|
|
798
756
|
if (!searchLoaded && searchValue && searchValue !== '') {
|
|
799
757
|
handleChangeWithDebounce(searchValue);
|
|
800
758
|
setSearchLoaded(true);
|
|
801
759
|
}
|
|
802
|
-
}, onClick:
|
|
760
|
+
}, onClick: () => handleOnClick(), className: generateClassName(), placeholder: (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 || searchValue
|
|
803
761
|
? !tabInlineSearch && searchValue
|
|
804
762
|
? searchValue
|
|
805
763
|
: !tabInlineSearch
|
|
@@ -807,30 +765,28 @@ var AutoCompleteWithSelectedList = (0, react_1.forwardRef)(function (_a, ref) {
|
|
|
807
765
|
: ''
|
|
808
766
|
: placeholder !== null && placeholder !== void 0 ? placeholder : '', readOnly: readOnly ||
|
|
809
767
|
type === 'custom_select' ||
|
|
810
|
-
(type === 'auto_suggestion' && !expandable && tabInlineSearch), disabled: disabled, "data-testid": "custom-autocomplete" }) })
|
|
811
|
-
react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)("div",
|
|
768
|
+
(type === 'auto_suggestion' && !expandable && tabInlineSearch), disabled: disabled, "data-testid": "custom-autocomplete" }) }), (0, jsx_runtime_1.jsx)(InputActions_1.default, { inputValue: inputValue, searchValue: searchValue, dropOpen: dropOpen, handleDropOpen: handleDropOpen, handleDropClose: handleDropClose, disabled: disabled, readOnly: readOnly, expandable: expandable, handleClear: handleClear, countOnly: countOnly, uniqueDropArrowId: uniqueDropArrowId, viewMode: viewMode, autoDropdown: autoDropdown && !tabInlineSearch ? true : false }), dropOpen &&
|
|
769
|
+
react_dom_1.default.createPortal((0, jsx_runtime_1.jsxs)("div", { ref: dropRef, style: Object.assign(Object.assign({}, dropdownStyle), { minHeight: viewMode ? 100 : 192, visibility: visible ? 'visible' : 'hidden', opacity: visible ? 1 : 0, transition: 'opacity 0.2s ease-in-out' }), className: `qbs-autocomplete-suggestions qbs-autocomplete-selected-suggestions ${viewMode ? 'qbs-dropdown-selected-preview' : ''} ${viewMode && (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) === 0 ? 'hidden' : ''}`, children: [!viewMode && ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: tab.length > 0 && getTabItems() }), type === 'auto_suggestion' &&
|
|
812
770
|
!expandable &&
|
|
813
|
-
tabInlineSearch && ((0, jsx_runtime_1.jsxs)("div",
|
|
814
|
-
maxHeight:
|
|
815
|
-
minHeight:
|
|
816
|
-
}
|
|
817
|
-
return handleSuggestionClick(suggestion, idx);
|
|
818
|
-
}, handleMultiSelect: handleMultiSelect, selected: selected, isMultiple: isMultiple, singleSelect: singleSelect, desc: desc, shortCode: shortCode, labelCode: labelCode, focusedIndex: focusedIndex, setItemRef: function (index, ref) {
|
|
771
|
+
tabInlineSearch && ((0, jsx_runtime_1.jsxs)("div", { style: { position: 'relative' }, className: "react-core-ts-search-container qbs-autocomplete-selected-suggestions-outer", children: [(0, jsx_runtime_1.jsx)("span", { className: "dropdown-search-icon", children: (0, jsx_runtime_1.jsx)(icons_1.Search, {}) }), (0, jsx_runtime_1.jsx)("input", { className: "dropdown-search-input", onChange: handleSuggestionChange, value: searchValue, placeholder: "Type to search", autoComplete: "off", ref: inputSearchRef }), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: autoDropdown && !disabled && !readOnly && ((0, jsx_runtime_1.jsx)("button", { disabled: disabled !== null && disabled !== void 0 ? disabled : readOnly, onClick: (e) => handleOpenDropdown(e), className: "text-[#667085] focus-visible:outline-slate-100 absolute right-2 qbs-all-dropdown-btn", "data-testid": "drop-arrow", type: "button", id: "autocomplete-drop-icon", ref: dropBtnRef, children: (0, jsx_runtime_1.jsx)(icons_1.AllDropArrow, { type: !allDataLoaded ? 'down' : 'up', uniqueId: "all-dropdow-arrow-icon", className: "all-dropdow-arrow-icon" }) })) })] }))] })), (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 && enableSelectAll && isMultiple && ((0, jsx_runtime_1.jsx)("div", { id: "select-all", className: `qbs-select-all-link qbs-cursor-pointer qbs-text-xs`, onClick: handleSelectAll, children: (0, jsx_runtime_1.jsxs)("div", { className: `qbs-autocomplete-listitem-container qbs-autocomplete-checkbox-container`, children: [(0, jsx_runtime_1.jsxs)("div", { className: "qbs-autocomplete-checkbox", children: [(0, jsx_runtime_1.jsx)("input", { type: "checkbox", checked: selectAll, onChange: handleSelectAll, id: `qbs-checkbox-all` }), (0, jsx_runtime_1.jsx)("label", { htmlFor: `qbs-checkbox-all`, children: (0, jsx_runtime_1.jsx)("svg", { width: "8", height: "6", viewBox: "0 0 8 6", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M0 3.21739L2.89883 6L8 1.06994L6.89494 0L2.89883 3.86768L1.09728 2.14745L0 3.21739Z", fill: "white" }) }) })] }), (0, jsx_runtime_1.jsx)("div", { className: `qbs-autocomplete-suggestions-item`, children: "Select All" })] }) })), (0, jsx_runtime_1.jsxs)("div", { className: `qbs-autocomplete-suggestions-sub qbs-autocomplete-selected-suggestions-outer ${viewMode ? 'hidden' : ''}`, ref: itemsRef, style: {
|
|
772
|
+
maxHeight: `${selHeight}px`,
|
|
773
|
+
minHeight: `${selHeight}px`,
|
|
774
|
+
}, children: [(filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 ? (filteredData.map((suggestion, idx) => ((0, jsx_runtime_1.jsx)(DropdownList_1.default, { idx: idx, suggestion: suggestion, isSelected: isSelected, handleSuggestionClick: () => handleSuggestionClick(suggestion, idx), handleMultiSelect: handleMultiSelect, selected: selected, isMultiple: isMultiple, singleSelect: singleSelect, desc: desc, shortCode: shortCode, labelCode: labelCode, focusedIndex: focusedIndex, setItemRef: (index, ref) => {
|
|
819
775
|
itemRefs.current[index] = ref; // Store each ref properly
|
|
820
|
-
} }, suggestion[descId]))
|
|
776
|
+
} }, suggestion[descId])))) : ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: isLoading ||
|
|
821
777
|
(searchValue !== searchOldValue &&
|
|
822
778
|
searchValue !== '' &&
|
|
823
|
-
async) ? ((0, jsx_runtime_1.jsx)("div",
|
|
779
|
+
async) ? ((0, jsx_runtime_1.jsx)("div", { className: "qbs-flex qbs-align-middle qbs-justify-center qbs-min-emp-h", children: (0, jsx_runtime_1.jsx)("div", { className: "qbs-pt-16 qbs-autocomplete-loader", children: (0, jsx_runtime_1.jsx)(icons_1.Spinner, {}) }) })) : ((0, jsx_runtime_1.jsx)("div", { className: "qbs-autocomplete-notfound qbs-text-center qbs-justify-center qbs-align-middle qbs-min-emp-h", children: searchValue !== ''
|
|
824
780
|
? notDataMessage !== null && notDataMessage !== void 0 ? notDataMessage : 'No Results Found'
|
|
825
|
-
: initialDataMessage !== null && initialDataMessage !== void 0 ? initialDataMessage : 'Type to search' }))
|
|
781
|
+
: initialDataMessage !== null && initialDataMessage !== void 0 ? initialDataMessage : 'Type to search' })) })), paginationEnabled &&
|
|
826
782
|
nextBlock !== 0 &&
|
|
827
783
|
nextBlock !== undefined &&
|
|
828
|
-
(filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 && ((0, jsx_runtime_1.jsx)("div",
|
|
784
|
+
(filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 && ((0, jsx_runtime_1.jsx)("div", { className: "loadMoreSection", onClick: () => handleLoadMore(), children: (0, jsx_runtime_1.jsx)("p", { style: { margin: 2 }, children: "Load More" }) }))] }), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: countOnly && (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > 0 && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", { className: `qbs-expandable-container qbs-dropdown-selected-container`, ref: dropdownSelectedRef, children: [(0, jsx_runtime_1.jsxs)("div", { className: `qbs-flex qbs-w-full qbs-text-xs`, children: [(0, jsx_runtime_1.jsx)("div", { className: "qbs-selected-lbs qbs-flex-grow", children: "Selected Items" }), (0, jsx_runtime_1.jsx)("div", { className: `qbs-clear-link qbs-text-right qbs-cursor-pointer ${viewMode ? 'hidden' : ''}`, onClick: handleClearSelected, children: "Clear all" }), (0, jsx_runtime_1.jsx)("div", { className: `qbs-done-link qbs-text-right qbs-cursor-pointer ${viewMode ? 'hidden' : ''}`, onClick: () => {
|
|
829
785
|
setDropOpen(false);
|
|
830
|
-
}
|
|
831
|
-
showAllSelected && ((0, jsx_runtime_1.jsx)("div",
|
|
786
|
+
}, children: "Done" })] }), getSelectedItems(true), (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (selectedItems === null || selectedItems === void 0 ? void 0 : selectedItems.length) > itemCount &&
|
|
787
|
+
showAllSelected && ((0, jsx_runtime_1.jsx)("div", { className: "qbs-readmore-collapse", children: (0, jsx_runtime_1.jsx)("div", { className: "qbs-more-collapse", onClick: () => {
|
|
832
788
|
handleCollapseArrowClick();
|
|
833
|
-
}
|
|
789
|
+
}, children: (0, jsx_runtime_1.jsx)(icons_1.DropArrow, { className: `icon-button-rotate`, uniqueDropArrowId: uniqueDropArrowId }) }) })) })] }) })) })] }), document.body)] }), errors && ((0, jsx_runtime_1.jsx)("div", { className: "text-error text-error-label mt-[1px]", "data-testid": "autocomplete-error", children: errors.message }))] }));
|
|
834
790
|
});
|
|
835
791
|
exports.default = react_1.default.memo(AutoCompleteWithSelectedList);
|
|
836
792
|
//# sourceMappingURL=AutoCompleteWithSelectedList.js.map
|