react-core-ts 2.1.38 → 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/dist/AutoComplete.d.ts +1 -1
- package/dist/AutoComplete.js +104 -158
- package/dist/AutoComplete.js.map +1 -1
- package/dist/AutoCompleteWithSelectedList.d.ts +1 -1
- package/dist/AutoCompleteWithSelectedList.js +245 -326
- package/dist/AutoCompleteWithSelectedList.js.map +1 -1
- package/dist/AutoCompleteWithTabFilter.d.ts +1 -1
- package/dist/AutoCompleteWithTabFilter.js +266 -343
- package/dist/AutoCompleteWithTabFilter.js.map +1 -1
- package/dist/AutoCompleteWithTreeStructure.d.ts +1 -1
- package/dist/AutoCompleteWithTreeStructure.js +177 -248
- package/dist/AutoCompleteWithTreeStructure.js.map +1 -1
- package/dist/ExpandableAutoComplete.d.ts +1 -1
- package/dist/ExpandableAutoComplete.js +180 -259
- package/dist/ExpandableAutoComplete.js.map +1 -1
- package/dist/ReactAutoComplete.js +190 -259
- package/dist/ReactAutoComplete.js.map +1 -1
- package/dist/ReactAutoCompleteDropdown.js +186 -254
- package/dist/ReactAutoCompleteDropdown.js.map +1 -1
- package/dist/ReactAutoCompleteSuggections.js +123 -181
- package/dist/ReactAutoCompleteSuggections.js.map +1 -1
- package/dist/ReactAutoCompleteTableView.js +269 -350
- 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 +244 -315
- package/dist/dropdownFilterTabs.js.map +1 -1
- package/dist/dummyAutoCompleteWithSelectedList.d.ts +1 -1
- package/dist/dummyAutoCompleteWithSelectedList.js +143 -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 +1 -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 +1 -1
- package/dist/styles/{styles/global.css → library-entry.css} +1 -2
- package/dist/utilities/NewTooltip.js +53 -65
- package/dist/utilities/NewTooltip.js.map +1 -1
- package/dist/utilities/autosuggestions.js +28 -93
- package/dist/utilities/autosuggestions.js.map +1 -1
- package/dist/utilities/convertFlatArraytoTreeStructure.js +10 -22
- 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.js +10 -11
- 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 +29 -7
- package/.babel.config.js +0 -7
- package/.npmingnore +0 -3
- package/dist/styles/styles/components/autocomplete.css +0 -836
- package/dist/styles/styles/components/selectedautocomplete.css +0 -221
- package/dist/styles/styles/components/tooltip.css +0 -556
- package/dist/styles/styles/components/treedropdown.css +0 -97
- package/docs/App.tsx +0 -822
- 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 -562
- package/src/AutoCompleteWithSelectedList.tsx +0 -1382
- package/src/AutoCompleteWithTabFilter.tsx +0 -1549
- package/src/AutoCompleteWithTreeStructure.tsx +0 -870
- package/src/ExpandableAutoComplete.tsx +0 -935
- package/src/ReactAutoComplete.tsx +0 -1075
- package/src/ReactAutoCompleteDropdown.tsx +0 -1101
- package/src/ReactAutoCompleteSuggections.tsx +0 -725
- package/src/ReactAutoCompleteTableView.tsx +0 -1508
- 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 -1286
- package/src/dummyAutoCompleteWithSelectedList.tsx +0 -773
- package/src/index.html +0 -1
- package/src/index.tsx +0 -28
- package/src/styles/components/autocomplete.css +0 -836
- package/src/styles/components/selectedautocomplete.css +0 -221
- package/src/styles/components/tooltip.css +0 -556
- package/src/styles/components/treedropdown.css +0 -97
- package/src/styles/global.css +0 -8
- package/src/utilities/NewTooltip.tsx +0 -185
- package/src/utilities/autosuggestions.ts +0 -108
- package/src/utilities/convertFlatArraytoTreeStructure.ts +0 -32
- 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 -48
- 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,111 +1,54 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
29
|
-
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;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
50
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
51
|
-
if (ar || !(i in from)) {
|
|
52
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
53
|
-
ar[i] = from[i];
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
57
|
-
};
|
|
58
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
59
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
60
4
|
};
|
|
61
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
var
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
var showSearchOnButtonChrome = searchOnButtonOnly &&
|
|
6
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
const customIcons_1 = __importDefault(require("./components/customIcons"));
|
|
9
|
+
const Spinner_1 = __importDefault(require("./components/loader/Spinner"));
|
|
10
|
+
const portal_1 = __importDefault(require("./components/portal"));
|
|
11
|
+
const debounce_1 = require("./utilities/debounce");
|
|
12
|
+
const getPosition_1 = require("./utilities/getPosition");
|
|
13
|
+
const icons_1 = require("./utilities/icons");
|
|
14
|
+
const ReactAutoCompleteTableView = ({ label, onChange, getData, data, errors, required = false, autoFocus, name, fullWidth, placeholder, id, className: propsClassName, type = 'custom_select', readOnly, disabled = false, value, autoFilter = false, autoDropdown = true, insideOpen = false, isClose = true, noLocalFilter = false, isStaticList = false, isCustomPlaceholder = false, checkParams, width, hasParentError, fromPrefix, labelTitle, isModern = true, size = "md", dropdownMinWidth = 200, tableView = false, additionalColumns = [], columnHeader = [], dropdownTheme = 'default', dropdownThemeConfig, searchOnButtonOnly = false, }) => {
|
|
15
|
+
var _a;
|
|
16
|
+
const splitDetailOptions = dropdownThemeConfig === null || dropdownThemeConfig === void 0 ? void 0 : dropdownThemeConfig.splitDetail;
|
|
17
|
+
const showSearchOnButtonChrome = searchOnButtonOnly &&
|
|
75
18
|
(type === 'auto_complete' || type === 'custom_search_select') &&
|
|
76
19
|
!disabled &&
|
|
77
20
|
!readOnly;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
21
|
+
const [inputValue, setInputValue] = (0, react_1.useState)((_a = value === null || value === void 0 ? void 0 : value.name) !== null && _a !== void 0 ? _a : "");
|
|
22
|
+
const [isHovered, setIsHovered] = (0, react_1.useState)(false);
|
|
23
|
+
const [isLoading, setIsLoading] = (0, react_1.useState)(false);
|
|
24
|
+
const [dropOpen, setDropOpen] = (0, react_1.useState)(false);
|
|
25
|
+
const [isDisabled, setIsDisabled] = (0, react_1.useState)(disabled);
|
|
26
|
+
const [showClose, setShowClose] = (0, react_1.useState)(false);
|
|
27
|
+
const [showToolTip, setShowTooltip] = (0, react_1.useState)(false);
|
|
28
|
+
const [tooltipIsHovered, setTooltipIsHovered] = (0, react_1.useState)(false);
|
|
29
|
+
const [tooltipPosition, setTooltipPosition] = (0, react_1.useState)(null);
|
|
30
|
+
const [errorTooltipPosition, setErrorTooltipPosition] = (0, react_1.useState)(null);
|
|
31
|
+
const [suggestions, setSuggestions] = (0, react_1.useState)([]);
|
|
32
|
+
const inputRef = (0, react_1.useRef)(null);
|
|
33
|
+
const adorementRef = (0, react_1.useRef)(null);
|
|
34
|
+
const dropdownref = (0, react_1.useRef)(null);
|
|
35
|
+
const dropdownContentRef = (0, react_1.useRef)(null);
|
|
36
|
+
const dropBtnRef = (0, react_1.useRef)(null);
|
|
37
|
+
const errorIconRef = (0, react_1.useRef)(null);
|
|
38
|
+
const timerRef = (0, react_1.useRef)(0); // To fix the no results found issue on second type
|
|
39
|
+
const [selectedIndex, setSelectedIndex] = (0, react_1.useState)(0);
|
|
40
|
+
const itemRefs = (0, react_1.useRef)([]);
|
|
41
|
+
const scrollContainerRef = (0, react_1.useRef)(null);
|
|
42
|
+
const [refetchData, setRefetchData] = (0, react_1.useState)(false);
|
|
43
|
+
const [dropPosition, setDropPosition] = (0, react_1.useState)({
|
|
101
44
|
top: 0,
|
|
102
45
|
left: 0,
|
|
103
46
|
bottom: 0,
|
|
104
47
|
right: 0,
|
|
105
48
|
maxHeight: '60vh',
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
|
|
49
|
+
});
|
|
50
|
+
const checkIncludes = (mainString, subString, param1, param2, param3, param4) => {
|
|
51
|
+
const checkIncludesIfExists = (mainString, substring) => {
|
|
109
52
|
return substring &&
|
|
110
53
|
mainString &&
|
|
111
54
|
typeof mainString === 'string' &&
|
|
@@ -116,7 +59,7 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
116
59
|
.startsWith(substring.toString().toLowerCase())
|
|
117
60
|
: false;
|
|
118
61
|
};
|
|
119
|
-
|
|
62
|
+
const checkArrayContains = (strArray, param) => { var _a; return (_a = strArray === null || strArray === void 0 ? void 0 : strArray.includes(param)) !== null && _a !== void 0 ? _a : false; };
|
|
120
63
|
return (checkIncludesIfExists(mainString, subString) ||
|
|
121
64
|
(!!checkParams &&
|
|
122
65
|
((checkArrayContains(checkParams, 'param1') &&
|
|
@@ -128,7 +71,7 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
128
71
|
(checkArrayContains(checkParams, 'param4') &&
|
|
129
72
|
checkIncludesIfExists(param4, subString)))));
|
|
130
73
|
};
|
|
131
|
-
|
|
74
|
+
const getHeight = () => {
|
|
132
75
|
switch (size) {
|
|
133
76
|
case 'sm':
|
|
134
77
|
return ' h-[34px] ';
|
|
@@ -136,8 +79,8 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
136
79
|
return ' ';
|
|
137
80
|
}
|
|
138
81
|
};
|
|
139
|
-
|
|
140
|
-
|
|
82
|
+
const handleChange = (event) => {
|
|
83
|
+
const { value } = event.target;
|
|
141
84
|
timerRef.current = 0;
|
|
142
85
|
setInputValue(value);
|
|
143
86
|
if (!searchOnButtonOnly) {
|
|
@@ -148,7 +91,7 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
148
91
|
onChange({ id: undefined, name: '', from: 2 });
|
|
149
92
|
}
|
|
150
93
|
};
|
|
151
|
-
|
|
94
|
+
const runSearchFromInput = (value) => {
|
|
152
95
|
setDropOpen(true);
|
|
153
96
|
onChange({ id: undefined, name: '', from: 1 });
|
|
154
97
|
if (value.trim() === '' && type === 'auto_complete') {
|
|
@@ -163,32 +106,32 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
163
106
|
else {
|
|
164
107
|
handleDropData(value);
|
|
165
108
|
}
|
|
166
|
-
setTimeout(
|
|
109
|
+
setTimeout(() => {
|
|
167
110
|
timerRef.current = 1;
|
|
168
111
|
}, 200);
|
|
169
112
|
};
|
|
170
|
-
|
|
113
|
+
const handleSearchButtonClick = (e) => {
|
|
171
114
|
var _a, _b, _c;
|
|
172
115
|
e.preventDefault();
|
|
173
116
|
e.stopPropagation();
|
|
174
117
|
if (disabled || readOnly)
|
|
175
118
|
return;
|
|
176
119
|
timerRef.current = 0;
|
|
177
|
-
|
|
120
|
+
const q = (_c = (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : inputValue) !== null && _c !== void 0 ? _c : '';
|
|
178
121
|
runSearchFromInput(q);
|
|
179
122
|
};
|
|
180
|
-
|
|
123
|
+
const handleSearchInputKeyDown = (e) => {
|
|
181
124
|
var _a, _b, _c;
|
|
182
125
|
if (!searchOnButtonOnly || disabled || readOnly)
|
|
183
126
|
return;
|
|
184
127
|
if (e.key === 'Enter') {
|
|
185
128
|
e.preventDefault();
|
|
186
129
|
timerRef.current = 0;
|
|
187
|
-
|
|
130
|
+
const q = (_c = (_b = (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : inputValue) !== null && _c !== void 0 ? _c : '';
|
|
188
131
|
runSearchFromInput(q);
|
|
189
132
|
}
|
|
190
133
|
};
|
|
191
|
-
|
|
134
|
+
const handleValChange = (0, react_1.useCallback)((0, debounce_1.debounce)((value) => {
|
|
192
135
|
setDropOpen(true);
|
|
193
136
|
onChange({ id: undefined, name: '', from: 1 });
|
|
194
137
|
if (value.trim() === '' && type === 'auto_complete') {
|
|
@@ -203,20 +146,18 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
203
146
|
else {
|
|
204
147
|
handleDropData(value);
|
|
205
148
|
}
|
|
206
|
-
setTimeout(
|
|
149
|
+
setTimeout(() => {
|
|
207
150
|
timerRef.current = 1;
|
|
208
151
|
}, 200);
|
|
209
152
|
}, isStaticList ? 0 : 1000), []);
|
|
210
|
-
|
|
153
|
+
const handleDropData = (value) => {
|
|
211
154
|
if (type === 'auto_complete') {
|
|
212
155
|
if (isStaticList) {
|
|
213
156
|
loadStaticData();
|
|
214
|
-
|
|
215
|
-
? data === null || data === void 0 ? void 0 : data.filter(
|
|
216
|
-
return checkIncludes(item.name, value, item.param1, item.param2, item.param3);
|
|
217
|
-
})
|
|
157
|
+
const filteredData = value && value !== '*'
|
|
158
|
+
? data === null || data === void 0 ? void 0 : data.filter((item) => checkIncludes(item.name, value, item.param1, item.param2, item.param3))
|
|
218
159
|
: data;
|
|
219
|
-
setSuggestions(
|
|
160
|
+
setSuggestions(filteredData);
|
|
220
161
|
}
|
|
221
162
|
else {
|
|
222
163
|
handlePickSuggestions(value);
|
|
@@ -227,42 +168,29 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
227
168
|
handlePickSuggestions();
|
|
228
169
|
}
|
|
229
170
|
else if (type === 'custom_search_select' && data && (data === null || data === void 0 ? void 0 : data.length) > 0) {
|
|
230
|
-
|
|
231
|
-
? data.filter(
|
|
232
|
-
return checkIncludes(item.name, value, item.param1, item.param2, item.param3);
|
|
233
|
-
})
|
|
171
|
+
const filteredData = value && value !== '*'
|
|
172
|
+
? data.filter((item) => checkIncludes(item.name, value, item.param1, item.param2, item.param3))
|
|
234
173
|
: data;
|
|
235
|
-
setSuggestions(
|
|
174
|
+
setSuggestions(filteredData);
|
|
236
175
|
}
|
|
237
176
|
};
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
return [4 /*yield*/, (getData === null || getData === void 0 ? void 0 : getData(value))];
|
|
249
|
-
case 2:
|
|
250
|
-
fetchedSuggestions = _a.sent();
|
|
251
|
-
setSuggestions(fetchedSuggestions);
|
|
252
|
-
setIsLoading(false);
|
|
253
|
-
if (autoDropdown) {
|
|
254
|
-
setRefetchData(true);
|
|
255
|
-
}
|
|
256
|
-
return [3 /*break*/, 4];
|
|
257
|
-
case 3:
|
|
258
|
-
error_1 = _a.sent();
|
|
259
|
-
setIsLoading(false);
|
|
260
|
-
return [3 /*break*/, 4];
|
|
261
|
-
case 4: return [2 /*return*/];
|
|
177
|
+
const handlePickSuggestions = async (value) => {
|
|
178
|
+
if (getData) {
|
|
179
|
+
setIsLoading(true);
|
|
180
|
+
try {
|
|
181
|
+
const fetchedSuggestions = await (getData === null || getData === void 0 ? void 0 : getData(value));
|
|
182
|
+
setSuggestions(fetchedSuggestions);
|
|
183
|
+
setIsLoading(false);
|
|
184
|
+
if (autoDropdown) {
|
|
185
|
+
setRefetchData(true);
|
|
186
|
+
}
|
|
262
187
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
188
|
+
catch (error) {
|
|
189
|
+
setIsLoading(false);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
const onLabelClick = () => {
|
|
266
194
|
var _a;
|
|
267
195
|
if (!isDisabled) {
|
|
268
196
|
(_a = inputRef === null || inputRef === void 0 ? void 0 : inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -280,35 +208,28 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
280
208
|
}
|
|
281
209
|
}
|
|
282
210
|
};
|
|
283
|
-
|
|
211
|
+
const handleClickOutside = (event) => {
|
|
284
212
|
if (dropdownref.current &&
|
|
285
213
|
!dropdownref.current.contains(event.target)) {
|
|
286
214
|
setDropOpen(false);
|
|
287
215
|
}
|
|
288
216
|
};
|
|
289
|
-
|
|
217
|
+
const checkIsEmptyField = () => {
|
|
290
218
|
var _a;
|
|
291
219
|
if (inputValue === undefined)
|
|
292
220
|
return true;
|
|
293
221
|
else
|
|
294
222
|
return ((_a = inputValue === null || inputValue === void 0 ? void 0 : inputValue.toString().length) !== null && _a !== void 0 ? _a : 0) <= 0 ? true : false;
|
|
295
223
|
};
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
if (!(!data || (refetchData && autoDropdown && !isStaticList))) return [3 /*break*/, 4];
|
|
302
|
-
data = [];
|
|
303
|
-
if (!getData) return [3 /*break*/, 4];
|
|
304
|
-
_a.label = 1;
|
|
305
|
-
case 1:
|
|
306
|
-
_a.trys.push([1, 3, , 4]);
|
|
224
|
+
const loadStaticData = async () => {
|
|
225
|
+
if (!data || (refetchData && autoDropdown && !isStaticList)) {
|
|
226
|
+
data = [];
|
|
227
|
+
if (getData) {
|
|
228
|
+
try {
|
|
307
229
|
setIsLoading(true);
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
fetchedSuggestions
|
|
311
|
-
fetchedSuggestions === null || fetchedSuggestions === void 0 ? void 0 : fetchedSuggestions.forEach(function (element) {
|
|
230
|
+
//handlePickSuggestions('*');
|
|
231
|
+
const fetchedSuggestions = await (getData === null || getData === void 0 ? void 0 : getData('*'));
|
|
232
|
+
fetchedSuggestions === null || fetchedSuggestions === void 0 ? void 0 : fetchedSuggestions.forEach((element) => {
|
|
312
233
|
data === null || data === void 0 ? void 0 : data.push(element);
|
|
313
234
|
});
|
|
314
235
|
setSuggestions(fetchedSuggestions);
|
|
@@ -317,27 +238,25 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
317
238
|
setRefetchData(false);
|
|
318
239
|
timerRef.current = 1;
|
|
319
240
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
error_2 = _a.sent();
|
|
241
|
+
}
|
|
242
|
+
catch (error) {
|
|
323
243
|
setIsLoading(false);
|
|
324
|
-
|
|
325
|
-
case 4: return [2 /*return*/];
|
|
244
|
+
}
|
|
326
245
|
}
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
(0, react_1.useEffect)(
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
(0, react_1.useEffect)(() => {
|
|
330
249
|
document.addEventListener('click', handleClickOutside);
|
|
331
|
-
return
|
|
250
|
+
return () => {
|
|
332
251
|
document.removeEventListener('click', handleClickOutside);
|
|
333
252
|
};
|
|
334
253
|
}, []);
|
|
335
|
-
(0, react_1.useEffect)(
|
|
254
|
+
(0, react_1.useEffect)(() => {
|
|
336
255
|
if (autoFocus) {
|
|
337
256
|
onLabelClick();
|
|
338
257
|
}
|
|
339
258
|
}, [autoFocus]);
|
|
340
|
-
|
|
259
|
+
const onInputFocus = () => {
|
|
341
260
|
if (!isDisabled) {
|
|
342
261
|
if (searchOnButtonOnly) {
|
|
343
262
|
return;
|
|
@@ -353,17 +272,17 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
353
272
|
}
|
|
354
273
|
}
|
|
355
274
|
};
|
|
356
|
-
(0, react_1.useEffect)(
|
|
275
|
+
(0, react_1.useEffect)(() => {
|
|
357
276
|
setIsDisabled(disabled);
|
|
358
277
|
}, [disabled]);
|
|
359
|
-
|
|
360
|
-
onChange(
|
|
278
|
+
const handleSuggestionClick = (suggestion, index) => {
|
|
279
|
+
onChange(Object.assign(Object.assign(Object.assign({}, suggestion), { id: suggestion === null || suggestion === void 0 ? void 0 : suggestion.id, name: suggestion.name }), ((suggestion === null || suggestion === void 0 ? void 0 : suggestion.label) ? { label: suggestion === null || suggestion === void 0 ? void 0 : suggestion.label } : {})));
|
|
361
280
|
if (type !== 'custom_select')
|
|
362
281
|
setInputValue(suggestion.name);
|
|
363
282
|
setDropOpen(false);
|
|
364
283
|
setSelectedIndex(index);
|
|
365
284
|
};
|
|
366
|
-
|
|
285
|
+
const handleOpen = (e) => {
|
|
367
286
|
if (!suggestions || (suggestions === null || suggestions === void 0 ? void 0 : suggestions.length) === 0)
|
|
368
287
|
handleDropData();
|
|
369
288
|
if (!isLoading) {
|
|
@@ -372,10 +291,10 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
372
291
|
setInputValue('');
|
|
373
292
|
}
|
|
374
293
|
};
|
|
375
|
-
|
|
294
|
+
const handleOpenDropdown = (e) => {
|
|
376
295
|
if (searchOnButtonOnly) {
|
|
377
296
|
if (suggestions && suggestions.length > 0 && !isLoading) {
|
|
378
|
-
setDropOpen(
|
|
297
|
+
setDropOpen((open) => !open);
|
|
379
298
|
}
|
|
380
299
|
return;
|
|
381
300
|
}
|
|
@@ -392,8 +311,8 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
392
311
|
setDropOpen(!dropOpen);
|
|
393
312
|
}
|
|
394
313
|
};
|
|
395
|
-
|
|
396
|
-
|
|
314
|
+
const handleScroll = (event) => {
|
|
315
|
+
const scrollTarget = event.target;
|
|
397
316
|
// Ignore scrolls that originate from inside the autocomplete container
|
|
398
317
|
// or inside the dropdown content itself.
|
|
399
318
|
if (scrollTarget &&
|
|
@@ -406,31 +325,31 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
406
325
|
setDropOpen(false);
|
|
407
326
|
}
|
|
408
327
|
};
|
|
409
|
-
(0, react_1.useEffect)(
|
|
328
|
+
(0, react_1.useEffect)(() => {
|
|
410
329
|
// Only attach scroll listeners when dropdown is open and rendered in portal
|
|
411
330
|
if (insideOpen || !dropOpen) {
|
|
412
331
|
return;
|
|
413
332
|
}
|
|
414
333
|
setSelectedIndex(0);
|
|
415
|
-
|
|
334
|
+
const scrollableDivs = document.querySelectorAll('div[style*="overflow"], .overflow-auto, .overflow-y-auto, .overflow-x-auto');
|
|
416
335
|
// Listen to window/document scrolls, plus any scrollable divs
|
|
417
336
|
window.addEventListener('scroll', handleScroll);
|
|
418
337
|
document.addEventListener('scroll', handleScroll, true);
|
|
419
|
-
scrollableDivs.forEach(
|
|
338
|
+
scrollableDivs.forEach((div) => {
|
|
420
339
|
div.addEventListener('scroll', handleScroll);
|
|
421
340
|
});
|
|
422
341
|
window.addEventListener('resize', getDropPosition);
|
|
423
342
|
getDropPosition();
|
|
424
|
-
return
|
|
343
|
+
return () => {
|
|
425
344
|
window.removeEventListener('scroll', handleScroll);
|
|
426
345
|
document.removeEventListener('scroll', handleScroll, true);
|
|
427
|
-
scrollableDivs.forEach(
|
|
346
|
+
scrollableDivs.forEach((div) => {
|
|
428
347
|
div.removeEventListener('scroll', handleScroll);
|
|
429
348
|
});
|
|
430
349
|
window.removeEventListener('resize', getDropPosition);
|
|
431
350
|
};
|
|
432
351
|
}, [dropOpen, insideOpen]);
|
|
433
|
-
|
|
352
|
+
const handleClear = () => {
|
|
434
353
|
setDropOpen(false);
|
|
435
354
|
setInputValue('');
|
|
436
355
|
onChange({ id: undefined, name: '', from: 3 });
|
|
@@ -439,16 +358,16 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
439
358
|
setRefetchData(true);
|
|
440
359
|
}
|
|
441
360
|
};
|
|
442
|
-
(0, react_1.useEffect)(
|
|
361
|
+
(0, react_1.useEffect)(() => {
|
|
443
362
|
var _a;
|
|
444
363
|
setInputValue((_a = value === null || value === void 0 ? void 0 : value.name) !== null && _a !== void 0 ? _a : '');
|
|
445
364
|
}, [value === null || value === void 0 ? void 0 : value.name]);
|
|
446
|
-
(0, react_1.useEffect)(
|
|
365
|
+
(0, react_1.useEffect)(() => {
|
|
447
366
|
setSuggestions(data);
|
|
448
367
|
}, [data]);
|
|
449
|
-
|
|
368
|
+
const getErrors = (err) => {
|
|
450
369
|
var _a, _b, _c, _d;
|
|
451
|
-
|
|
370
|
+
let errMsg = '';
|
|
452
371
|
if (err.message) {
|
|
453
372
|
errMsg = err === null || err === void 0 ? void 0 : err.message;
|
|
454
373
|
}
|
|
@@ -460,13 +379,13 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
460
379
|
}
|
|
461
380
|
return errMsg;
|
|
462
381
|
};
|
|
463
|
-
|
|
464
|
-
|
|
382
|
+
const generateClassName = (type) => {
|
|
383
|
+
let className = propsClassName;
|
|
465
384
|
switch (type) {
|
|
466
385
|
case 'input':
|
|
467
|
-
className +=
|
|
386
|
+
className += ` block text-common text-input-text font-normal px-3.5 w-full text-sm text-gray-900 bg-transparent border appearance-none peer h-10 rounded-[4px] disabled:text-input-disabled bg-white disabled:bg-disabled ${label && isModern
|
|
468
387
|
? 'placeholder-transparent'
|
|
469
|
-
: 'focus:placeholder-grey-secondary placeholder-input-label'
|
|
388
|
+
: 'focus:placeholder-grey-secondary placeholder-input-label'} focus:placeholder-grey-secondary`;
|
|
470
389
|
if (errors && errors[name]) {
|
|
471
390
|
className +=
|
|
472
391
|
' border-[#FDA29B] focus:border-error-[#FDA29B] focus:ring-[#FDA29B] focus:ring-3 focus:outline-[#FDA29B] input-outline';
|
|
@@ -478,17 +397,19 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
478
397
|
className += getHeight();
|
|
479
398
|
break;
|
|
480
399
|
case 'label':
|
|
481
|
-
className +=
|
|
400
|
+
className += ` flex modern-input-label-truncate peer-focus:modern-input-peer-focus-label-size
|
|
401
|
+
${isDisabled
|
|
482
402
|
? 'cursor-pointer'
|
|
483
|
-
: 'cursor-text peer-focus:cursor-pointer'
|
|
403
|
+
: 'cursor-text peer-focus:cursor-pointer'} ${isDisabled && !checkIsEmptyField()
|
|
484
404
|
? 'disabled-input-label-bg'
|
|
485
405
|
: !isDisabled || !checkIsEmptyField()
|
|
486
406
|
? 'active-input-label-bg'
|
|
487
|
-
: ''
|
|
407
|
+
: ''} absolute duration-300 transform -translate-y-4 top-2 z-1 origin-[0] px-0 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:-translate-y-4 start-[14px] rtl:peer-focus:translate-x-1/4 rtl:peer-focus:left-auto ${isDisabled
|
|
488
408
|
? 'cursor-pointer'
|
|
489
|
-
: 'cursor-text peer-focus:cursor-pointer'
|
|
409
|
+
: 'cursor-text peer-focus:cursor-pointer'}
|
|
410
|
+
${checkIsEmptyField()
|
|
490
411
|
? 'modern-input-label-size'
|
|
491
|
-
: 'modern-input-peer-focus-label-size'
|
|
412
|
+
: 'modern-input-peer-focus-label-size'}`;
|
|
492
413
|
if (errors && errors[name]) {
|
|
493
414
|
className += ' text-error-light ';
|
|
494
415
|
}
|
|
@@ -507,16 +428,16 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
507
428
|
}
|
|
508
429
|
return className;
|
|
509
430
|
};
|
|
510
|
-
|
|
511
|
-
setTimeout(
|
|
431
|
+
const handleClose = () => {
|
|
432
|
+
setTimeout(() => {
|
|
512
433
|
setDropOpen(false);
|
|
513
434
|
}, 500);
|
|
514
435
|
};
|
|
515
|
-
|
|
436
|
+
const handleClearInputValue = () => {
|
|
516
437
|
// setInputValue(value?.name ?? '')
|
|
517
438
|
};
|
|
518
|
-
|
|
519
|
-
|
|
439
|
+
const getInnerWidth = () => {
|
|
440
|
+
const innerwidth = adorementRef.current
|
|
520
441
|
? adorementRef.current.offsetWidth
|
|
521
442
|
: 0;
|
|
522
443
|
return innerwidth;
|
|
@@ -524,20 +445,18 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
524
445
|
// const getPosition = () => {
|
|
525
446
|
// return 'bottom'
|
|
526
447
|
// }
|
|
527
|
-
|
|
448
|
+
const itemMatchesLocalFilter = (item) => {
|
|
528
449
|
var _a, _b, _c, _d;
|
|
529
|
-
|
|
450
|
+
const baseMatch = checkIncludes(item.name, inputValue, (_a = item.param1) !== null && _a !== void 0 ? _a : '', (_b = item.param2) !== null && _b !== void 0 ? _b : '', (_c = item.param3) !== null && _c !== void 0 ? _c : '', (_d = item.param4) !== null && _d !== void 0 ? _d : '');
|
|
530
451
|
if (dropdownTheme !== 'splitDetail' ||
|
|
531
452
|
!splitDetailOptions ||
|
|
532
453
|
!inputValue) {
|
|
533
454
|
return baseMatch;
|
|
534
455
|
}
|
|
535
|
-
|
|
456
|
+
const q = inputValue.trim().toLowerCase();
|
|
536
457
|
if (!q)
|
|
537
458
|
return baseMatch;
|
|
538
|
-
|
|
539
|
-
return v != null && String(v).toLowerCase().includes(q);
|
|
540
|
-
};
|
|
459
|
+
const hay = (v) => v != null && String(v).toLowerCase().includes(q);
|
|
541
460
|
if (item.label != null && hay(item.label))
|
|
542
461
|
return true;
|
|
543
462
|
if (splitDetailOptions.subtitleKey &&
|
|
@@ -550,35 +469,35 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
550
469
|
}
|
|
551
470
|
return baseMatch;
|
|
552
471
|
};
|
|
553
|
-
|
|
472
|
+
const filteredData = inputValue !== '*' &&
|
|
554
473
|
inputValue !== '' &&
|
|
555
474
|
type !== 'custom_select' &&
|
|
556
475
|
!noLocalFilter
|
|
557
|
-
? suggestions === null || suggestions === void 0 ? void 0 : suggestions.filter(
|
|
476
|
+
? suggestions === null || suggestions === void 0 ? void 0 : suggestions.filter((item) => itemMatchesLocalFilter(item))
|
|
558
477
|
: suggestions;
|
|
559
|
-
|
|
478
|
+
const handleError = (data) => {
|
|
560
479
|
var _a;
|
|
561
480
|
if (getErrors(data[name]) === 'required' ||
|
|
562
481
|
getErrors(data[name]) === 'Required') {
|
|
563
|
-
return
|
|
482
|
+
return `${label !== null && label !== void 0 ? label : labelTitle} is ${getErrors(data[name])}`;
|
|
564
483
|
}
|
|
565
484
|
else {
|
|
566
485
|
return (_a = getErrors(data[name])) !== null && _a !== void 0 ? _a : '';
|
|
567
486
|
}
|
|
568
487
|
};
|
|
569
|
-
|
|
488
|
+
const getDropPosition = () => {
|
|
570
489
|
if (!insideOpen && (inputRef === null || inputRef === void 0 ? void 0 : inputRef.current)) {
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
490
|
+
const minDropdownHeight = 200;
|
|
491
|
+
const padding = 24; // gap + margin so dropdown doesn't touch viewport edge
|
|
492
|
+
const isMobile = window.innerWidth < 768; // Mobile breakpoint
|
|
493
|
+
const inputRect = inputRef.current.getBoundingClientRect();
|
|
494
|
+
const maxHeightLimit = window.innerHeight * 0.6;
|
|
495
|
+
const spaceBelow = Math.max(0, window.innerHeight - inputRect.bottom - padding);
|
|
496
|
+
const spaceAbove = Math.max(0, inputRect.top - padding);
|
|
497
|
+
const availableSpace = Math.max(spaceAbove, spaceBelow);
|
|
498
|
+
const maxHeightPx = Math.min(Math.max(minDropdownHeight, availableSpace), maxHeightLimit);
|
|
499
|
+
let top;
|
|
500
|
+
let bottom;
|
|
582
501
|
// Open above if there's more space above, or if there's not enough space below
|
|
583
502
|
if (spaceAbove > spaceBelow || (spaceBelow < minDropdownHeight && spaceAbove >= minDropdownHeight)) {
|
|
584
503
|
// Open above: position above input
|
|
@@ -586,81 +505,81 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
586
505
|
}
|
|
587
506
|
else {
|
|
588
507
|
// Open below: position below input
|
|
589
|
-
|
|
508
|
+
top = inputRect.top + window.scrollY + inputRect.height + 2;
|
|
590
509
|
}
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
510
|
+
let left = inputRect.left + window.scrollX;
|
|
511
|
+
let width = inputRect.width + dropdownMinWidth;
|
|
512
|
+
const viewportWidth = window.innerWidth;
|
|
513
|
+
const viewportRight = window.scrollX + viewportWidth;
|
|
514
|
+
const inputRight = inputRect.right + window.scrollX;
|
|
596
515
|
// Check if dropdown would overflow on the right side
|
|
597
|
-
|
|
598
|
-
|
|
516
|
+
const dropdownRight = left + width;
|
|
517
|
+
const wouldOverflowRight = dropdownRight > viewportRight;
|
|
599
518
|
// If dropdown would overflow on the right (last column scenario), align from right to left
|
|
600
519
|
if (wouldOverflowRight) {
|
|
601
520
|
// Align right edge of dropdown with right edge of input
|
|
602
521
|
// Dropdown extends to the left from the input's right edge
|
|
603
|
-
|
|
604
|
-
left = inputRight -
|
|
522
|
+
const padding = isMobile ? 8 : 0;
|
|
523
|
+
left = inputRight - width;
|
|
605
524
|
// Ensure dropdown doesn't go off the left edge
|
|
606
|
-
|
|
525
|
+
const viewportLeft = window.scrollX + (isMobile ? 8 : 0);
|
|
607
526
|
if (left < viewportLeft) {
|
|
608
527
|
left = viewportLeft;
|
|
609
528
|
// Adjust width to fit within viewport
|
|
610
|
-
|
|
529
|
+
width = Math.min(width, inputRight - left - padding);
|
|
611
530
|
}
|
|
612
531
|
}
|
|
613
532
|
// Handle mobile view - additional constraints
|
|
614
533
|
if (isMobile) {
|
|
615
534
|
// On mobile, constrain width to viewport with some padding
|
|
616
|
-
|
|
617
|
-
|
|
535
|
+
const mobilePadding = 16; // 8px padding on each side
|
|
536
|
+
const maxWidth = viewportWidth - mobilePadding;
|
|
618
537
|
// Use the smaller of: calculated width or max mobile width
|
|
619
|
-
|
|
538
|
+
width = Math.min(width, maxWidth);
|
|
620
539
|
// Adjust left position to prevent overflow
|
|
621
|
-
|
|
622
|
-
|
|
540
|
+
const rightEdge = left + width;
|
|
541
|
+
const mobileViewportRight = window.scrollX + viewportWidth - mobilePadding / 2;
|
|
623
542
|
if (rightEdge > mobileViewportRight) {
|
|
624
543
|
// Align to right edge with padding
|
|
625
|
-
left = mobileViewportRight -
|
|
544
|
+
left = mobileViewportRight - width;
|
|
626
545
|
}
|
|
627
546
|
// Ensure dropdown doesn't go off the left edge
|
|
628
|
-
|
|
547
|
+
const viewportLeft = window.scrollX + mobilePadding / 2;
|
|
629
548
|
if (left < viewportLeft) {
|
|
630
549
|
left = viewportLeft;
|
|
631
550
|
// Adjust width if needed to fit
|
|
632
|
-
|
|
551
|
+
width = Math.min(width, mobileViewportRight - left);
|
|
633
552
|
}
|
|
634
553
|
}
|
|
635
554
|
setDropPosition({
|
|
636
|
-
left
|
|
637
|
-
top
|
|
638
|
-
bottom
|
|
639
|
-
width
|
|
640
|
-
maxHeight:
|
|
555
|
+
left,
|
|
556
|
+
top,
|
|
557
|
+
bottom,
|
|
558
|
+
width,
|
|
559
|
+
maxHeight: `${maxHeightPx}px`,
|
|
641
560
|
});
|
|
642
561
|
}
|
|
643
562
|
return undefined;
|
|
644
563
|
};
|
|
645
|
-
|
|
646
|
-
(0, react_1.useEffect)(
|
|
564
|
+
const [showNoResults, setShowNoResults] = (0, react_1.useState)(false);
|
|
565
|
+
(0, react_1.useEffect)(() => {
|
|
647
566
|
if ((inputValue || autoDropdown) &&
|
|
648
567
|
(filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) === 0 &&
|
|
649
568
|
!isLoading &&
|
|
650
569
|
timerRef.current === 1) {
|
|
651
|
-
|
|
570
|
+
const timer = setTimeout(() => {
|
|
652
571
|
setShowNoResults(true);
|
|
653
572
|
}, 500); // Delay in milliseconds
|
|
654
|
-
return
|
|
573
|
+
return () => clearTimeout(timer);
|
|
655
574
|
}
|
|
656
575
|
else {
|
|
657
576
|
setShowNoResults(false);
|
|
658
577
|
}
|
|
659
578
|
// Handle keyboard navigation
|
|
660
|
-
|
|
579
|
+
const handleKeyDown = (e) => {
|
|
661
580
|
if (!dropOpen)
|
|
662
581
|
return;
|
|
663
|
-
|
|
582
|
+
const nextIndex = e.key === 'ArrowDown'
|
|
664
583
|
? (selectedIndex + 1) % filteredData.length
|
|
665
584
|
: e.key === 'ArrowUp'
|
|
666
585
|
? (selectedIndex - 1 + filteredData.length) % filteredData.length
|
|
@@ -672,14 +591,14 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
672
591
|
// Update index first
|
|
673
592
|
setSelectedIndex(nextIndex);
|
|
674
593
|
// Wait for DOM update before scrolling
|
|
675
|
-
requestAnimationFrame(
|
|
676
|
-
|
|
677
|
-
|
|
594
|
+
requestAnimationFrame(() => {
|
|
595
|
+
const el = itemRefs.current[nextIndex];
|
|
596
|
+
const container = scrollContainerRef.current;
|
|
678
597
|
if (el && container) {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
598
|
+
const elTop = el.offsetTop;
|
|
599
|
+
const elBottom = elTop + el.offsetHeight;
|
|
600
|
+
const containerTop = container.scrollTop;
|
|
601
|
+
const containerBottom = containerTop + container.clientHeight;
|
|
683
602
|
if (elBottom > containerBottom) {
|
|
684
603
|
container.scrollTop = elBottom - container.clientHeight;
|
|
685
604
|
}
|
|
@@ -703,7 +622,7 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
703
622
|
};
|
|
704
623
|
if ((filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 && !isLoading) {
|
|
705
624
|
window.addEventListener('keydown', handleKeyDown);
|
|
706
|
-
return
|
|
625
|
+
return () => {
|
|
707
626
|
window.removeEventListener('keydown', handleKeyDown);
|
|
708
627
|
};
|
|
709
628
|
}
|
|
@@ -715,90 +634,90 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
715
634
|
selectedIndex,
|
|
716
635
|
dropOpen,
|
|
717
636
|
]);
|
|
718
|
-
|
|
719
|
-
return (((filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 || showNoResults) && ((0, jsx_runtime_1.jsx)("div",
|
|
637
|
+
const setDropDown = () => {
|
|
638
|
+
return (((filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 || showNoResults) && ((0, jsx_runtime_1.jsx)("div", { ref: dropdownContentRef, style: Object.assign(Object.assign({}, dropPosition), { overflow: 'hidden' }), className: `autocomplete-suggections autocomplete-suggections-tableview absolute bg-white shadow-gray-300 shadow-md border border-grey-light z-50 mt-9${dropdownTheme === 'splitDetail'
|
|
720
639
|
? ' autocomplete-suggections--split-detail'
|
|
721
|
-
: ''
|
|
640
|
+
: ''}`, children: (0, jsx_runtime_1.jsx)("ul", { className: `h-auto overflow-auto w-full ${tableView ? '' : 'py-1.5'}`, ref: scrollContainerRef, style: { maxHeight: dropPosition.maxHeight ? `calc(${dropPosition.maxHeight} - 2rem)` : undefined }, children: (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0 ? ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [dropdownTheme === 'default' &&
|
|
722
641
|
columnHeader &&
|
|
723
|
-
columnHeader.length > 0 && ((0, jsx_runtime_1.jsx)("li",
|
|
642
|
+
columnHeader.length > 0 && ((0, jsx_runtime_1.jsx)("li", { className: "sticky top-0 auto-suggections-tableview-header z-10 bg-gray-100 border-b border-grey-light", children: (0, jsx_runtime_1.jsx)("ul", { className: "flex items-stretch w-full list-none p-0 m-0", children: (() => {
|
|
724
643
|
// Sort columns by order if specified, otherwise maintain array order
|
|
725
|
-
|
|
726
|
-
?
|
|
727
|
-
|
|
728
|
-
|
|
644
|
+
const sortedColumns = additionalColumns
|
|
645
|
+
? [...additionalColumns].sort((a, b) => {
|
|
646
|
+
const orderA = a.order !== undefined ? a.order : Infinity;
|
|
647
|
+
const orderB = b.order !== undefined ? b.order : Infinity;
|
|
729
648
|
return orderA - orderB;
|
|
730
649
|
})
|
|
731
650
|
: [];
|
|
732
651
|
// Separate columns before first column (order < 0) and after (order >= 0 or undefined)
|
|
733
|
-
|
|
734
|
-
|
|
652
|
+
const columnsBefore = sortedColumns.filter(col => col.order !== undefined && col.order < 0);
|
|
653
|
+
const columnsAfter = sortedColumns.filter(col => col.order === undefined || col.order >= 0);
|
|
735
654
|
// Determine if first column needs a separator
|
|
736
|
-
|
|
655
|
+
const hasColumnsAfter = columnsAfter.length > 0;
|
|
737
656
|
// Find header for first column (name/label)
|
|
738
|
-
|
|
739
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [columnsBefore.map(
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
return header ? ((0, jsx_runtime_1.jsx)("li",
|
|
743
|
-
}), nameHeader && ((0, jsx_runtime_1.jsx)("li",
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
return header ? ((0, jsx_runtime_1.jsx)("li",
|
|
657
|
+
const nameHeader = columnHeader.find(h => h.key === 'name' || h.key === 'label');
|
|
658
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [columnsBefore.map((column, colIndex) => {
|
|
659
|
+
const header = columnHeader.find(h => h.key === column.key);
|
|
660
|
+
const isLastBefore = false;
|
|
661
|
+
return header ? ((0, jsx_runtime_1.jsx)("li", { className: `${column.width ? 'flex-shrink-0' : 'flex-1'} min-w-0 px-3 py-2 ${!isLastBefore ? 'border-r border-grey-light' : ''} break-words flex flex-col`, style: column.width ? { width: `${column.width}px` } : undefined, children: (0, jsx_runtime_1.jsx)("span", { className: "block whitespace-normal text-xs font-semibold text-gray-700", children: header.label }) }, column.key)) : null;
|
|
662
|
+
}), nameHeader && ((0, jsx_runtime_1.jsx)("li", { className: `flex-1 min-w-0 px-3 py-2 ${hasColumnsAfter ? 'border-r border-grey-light' : ''} break-words flex flex-col`, children: (0, jsx_runtime_1.jsx)("span", { className: "block whitespace-normal text-xs font-semibold text-gray-700", children: nameHeader.label }) })), columnsAfter.map((column, colIndex) => {
|
|
663
|
+
const header = columnHeader.find(h => h.key === column.key);
|
|
664
|
+
const isLastColumn = colIndex === columnsAfter.length - 1;
|
|
665
|
+
return header ? ((0, jsx_runtime_1.jsx)("li", { className: `${column.width ? 'flex-shrink-0' : 'flex-1'} min-w-0 px-3 py-2 ${!isLastColumn ? 'border-r border-grey-light' : ''} break-words flex flex-col`, style: column.width ? { width: `${column.width}px` } : undefined, children: (0, jsx_runtime_1.jsx)("span", { className: "block whitespace-normal text-xs font-semibold text-gray-700", children: header.label }) }, column.key)) : null;
|
|
747
666
|
})] }));
|
|
748
|
-
})() })
|
|
667
|
+
})() }) })), filteredData.map((suggestion, index) => {
|
|
749
668
|
var _a;
|
|
750
|
-
return ((0, jsx_runtime_1.jsx)("li",
|
|
669
|
+
return ((0, jsx_runtime_1.jsx)("li", { className: `${(value === null || value === void 0 ? void 0 : value.id) === (suggestion === null || suggestion === void 0 ? void 0 : suggestion.id)
|
|
751
670
|
? 'bg-blue-navy text-white'
|
|
752
|
-
:
|
|
671
|
+
: `${index === selectedIndex ? 'is-selected' : ''} hover:bg-table-hover`} cursor-pointer text-xxs qbs-autocomplete-suggections-items ${dropdownTheme === 'splitDetail' || tableView
|
|
753
672
|
? 'border-b border-grey-light last:border-b-0'
|
|
754
|
-
: 'p-1 ps-3.5 pl-[10px]'
|
|
673
|
+
: 'p-1 ps-3.5 pl-[10px]'}`, "data-testid": suggestion.name, onClick: () => handleSuggestionClick(suggestion, index), tabIndex: index, ref: (el) => {
|
|
674
|
+
itemRefs.current[index] = el;
|
|
675
|
+
}, children: dropdownTheme === 'splitDetail' ? ((0, jsx_runtime_1.jsxs)("div", { className: "qbs-split-detail-row", children: [(0, jsx_runtime_1.jsxs)("div", { className: "qbs-split-detail-main", children: [(0, jsx_runtime_1.jsx)("div", { className: "qbs-split-detail-title", children: (suggestion === null || suggestion === void 0 ? void 0 : suggestion.label) ? suggestion === null || suggestion === void 0 ? void 0 : suggestion.label : suggestion.name }), (splitDetailOptions === null || splitDetailOptions === void 0 ? void 0 : splitDetailOptions.subtitleKey) &&
|
|
755
676
|
(suggestion === null || suggestion === void 0 ? void 0 : suggestion[splitDetailOptions.subtitleKey]) != null &&
|
|
756
|
-
String(suggestion[splitDetailOptions.subtitleKey]).trim() !== '' && ((0, jsx_runtime_1.jsx)("div",
|
|
677
|
+
String(suggestion[splitDetailOptions.subtitleKey]).trim() !== '' && ((0, jsx_runtime_1.jsx)("div", { className: "qbs-split-detail-subtitle", children: String(suggestion[splitDetailOptions.subtitleKey]) }))] }), (splitDetailOptions === null || splitDetailOptions === void 0 ? void 0 : splitDetailOptions.badgeKey) &&
|
|
757
678
|
(suggestion === null || suggestion === void 0 ? void 0 : suggestion[splitDetailOptions.badgeKey]) != null &&
|
|
758
679
|
String(suggestion[splitDetailOptions.badgeKey]).trim() !==
|
|
759
|
-
'' && ((0, jsx_runtime_1.jsx)("div",
|
|
680
|
+
'' && ((0, jsx_runtime_1.jsx)("div", { className: "qbs-split-detail-badge-wrap", children: (0, jsx_runtime_1.jsxs)("span", { className: "qbs-split-detail-badge", children: [(_a = splitDetailOptions.badgePrefix) !== null && _a !== void 0 ? _a : '', String(suggestion[splitDetailOptions.badgeKey])] }) }))] })) : ((0, jsx_runtime_1.jsx)("ul", { className: "flex items-stretch w-full list-none p-0 m-0", children: (() => {
|
|
760
681
|
// Sort columns by order if specified, otherwise maintain array order
|
|
761
|
-
|
|
762
|
-
?
|
|
763
|
-
|
|
764
|
-
|
|
682
|
+
const sortedColumns = additionalColumns
|
|
683
|
+
? [...additionalColumns].sort((a, b) => {
|
|
684
|
+
const orderA = a.order !== undefined ? a.order : Infinity;
|
|
685
|
+
const orderB = b.order !== undefined ? b.order : Infinity;
|
|
765
686
|
return orderA - orderB;
|
|
766
687
|
})
|
|
767
688
|
: [];
|
|
768
689
|
// Separate columns before first column (order < 0) and after (order >= 0 or undefined)
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
return col.order === undefined || col.order >= 0;
|
|
772
|
-
});
|
|
690
|
+
const columnsBefore = sortedColumns.filter((col) => col.order !== undefined && col.order < 0);
|
|
691
|
+
const columnsAfter = sortedColumns.filter((col) => col.order === undefined || col.order >= 0);
|
|
773
692
|
// Determine if first column needs a separator
|
|
774
|
-
|
|
775
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [columnsBefore.map(
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
return hasValue ? ((0, jsx_runtime_1.jsx)("li",
|
|
693
|
+
const hasColumnsAfter = columnsAfter.length > 0;
|
|
694
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [columnsBefore.map((column, colIndex) => {
|
|
695
|
+
const hasValue = suggestion === null || suggestion === void 0 ? void 0 : suggestion[column.key];
|
|
696
|
+
const isLastBefore = false;
|
|
697
|
+
return hasValue ? ((0, jsx_runtime_1.jsx)("li", { className: `${column.width ? 'flex-shrink-0' : 'flex-1'} min-w-0 px-3 ${tableView ? 'py-2' : ''} ${!isLastBefore
|
|
779
698
|
? 'border-r border-grey-light'
|
|
780
|
-
: ''
|
|
781
|
-
? { width:
|
|
782
|
-
: undefined
|
|
783
|
-
}), (0, jsx_runtime_1.jsx)("li",
|
|
699
|
+
: ''} break-words flex flex-col`, style: column.width
|
|
700
|
+
? { width: `${column.width}px` }
|
|
701
|
+
: undefined, children: (0, jsx_runtime_1.jsx)("span", { className: "block whitespace-normal", children: suggestion === null || suggestion === void 0 ? void 0 : suggestion[column.key] }) }, column.key)) : null;
|
|
702
|
+
}), (0, jsx_runtime_1.jsx)("li", { className: `flex-1 min-w-0 px-3 ${tableView ? 'py-2' : ''} ${hasColumnsAfter
|
|
784
703
|
? 'border-r border-grey-light'
|
|
785
|
-
: ''
|
|
704
|
+
: ''} break-words flex flex-col`, children: (0, jsx_runtime_1.jsx)("span", { className: "block whitespace-normal", children: (suggestion === null || suggestion === void 0 ? void 0 : suggestion.label)
|
|
786
705
|
? suggestion === null || suggestion === void 0 ? void 0 : suggestion.label
|
|
787
|
-
: suggestion.name })
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
return hasValue ? ((0, jsx_runtime_1.jsx)("li",
|
|
706
|
+
: suggestion.name }) }), columnsAfter.map((column, colIndex) => {
|
|
707
|
+
const hasValue = suggestion === null || suggestion === void 0 ? void 0 : suggestion[column.key];
|
|
708
|
+
const isLastColumn = colIndex === columnsAfter.length - 1;
|
|
709
|
+
return hasValue ? ((0, jsx_runtime_1.jsx)("li", { className: `${column.width ? 'flex-shrink-0' : 'flex-1'} min-w-0 px-3 ${tableView ? 'py-2' : ''} ${!isLastColumn
|
|
791
710
|
? 'border-r border-grey-light'
|
|
792
|
-
: ''
|
|
793
|
-
? { width:
|
|
794
|
-
: undefined
|
|
711
|
+
: ''} break-words flex flex-col`, style: column.width
|
|
712
|
+
? { width: `${column.width}px` }
|
|
713
|
+
: undefined, children: (0, jsx_runtime_1.jsx)("span", { className: "block whitespace-normal", children: suggestion === null || suggestion === void 0 ? void 0 : suggestion[column.key] }) }, column.key)) : null;
|
|
795
714
|
})] }));
|
|
796
|
-
})() }))
|
|
715
|
+
})() })) }, suggestion === null || suggestion === void 0 ? void 0 : suggestion.id));
|
|
797
716
|
})] })) : (showNoResults &&
|
|
798
717
|
!isLoading &&
|
|
799
|
-
timerRef.current === 1 && ((0, jsx_runtime_1.jsx)("li",
|
|
718
|
+
timerRef.current === 1 && ((0, jsx_runtime_1.jsx)("li", { className: `$ cursor-pointer p-1 rounded-sm text-xxs`, onClick: handleClose, children: "No Results Found" }))) }) })));
|
|
800
719
|
};
|
|
801
|
-
|
|
720
|
+
const getBorderRight = () => {
|
|
802
721
|
if (fromPrefix) {
|
|
803
722
|
if ((hasParentError && Boolean(errors && errors[name])) ||
|
|
804
723
|
hasParentError) {
|
|
@@ -810,12 +729,12 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
810
729
|
}
|
|
811
730
|
return 0;
|
|
812
731
|
};
|
|
813
|
-
(0, react_1.useEffect)(
|
|
732
|
+
(0, react_1.useEffect)(() => {
|
|
814
733
|
(0, getPosition_1.applyPositionClass)(dropdownref, isHovered);
|
|
815
734
|
setDropOpen(false);
|
|
816
735
|
}, [isHovered]);
|
|
817
|
-
(0, react_1.useEffect)(
|
|
818
|
-
|
|
736
|
+
(0, react_1.useEffect)(() => {
|
|
737
|
+
const shouldShowClose = (value === null || value === void 0 ? void 0 : value.name) &&
|
|
819
738
|
((value === null || value === void 0 ? void 0 : value.id) || String(value === null || value === void 0 ? void 0 : value.id) === '0') &&
|
|
820
739
|
!disabled &&
|
|
821
740
|
!readOnly &&
|
|
@@ -824,13 +743,13 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
824
743
|
setShowClose(shouldShowClose);
|
|
825
744
|
}
|
|
826
745
|
}, [value, disabled, readOnly]);
|
|
827
|
-
(0, react_1.useEffect)(
|
|
746
|
+
(0, react_1.useEffect)(() => {
|
|
828
747
|
// Check if input content overflows
|
|
829
|
-
|
|
748
|
+
const checkOverflow = () => {
|
|
830
749
|
if (inputRef.current) {
|
|
831
|
-
|
|
750
|
+
const { scrollWidth, clientWidth, value } = inputRef.current;
|
|
832
751
|
// Check for overflow only when there's content
|
|
833
|
-
if (
|
|
752
|
+
if (value.trim() !== '') {
|
|
834
753
|
setShowTooltip(scrollWidth > clientWidth + 2);
|
|
835
754
|
}
|
|
836
755
|
else {
|
|
@@ -842,24 +761,24 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
842
761
|
inputRef.current.addEventListener('input', checkOverflow);
|
|
843
762
|
checkOverflow(); // Initial check
|
|
844
763
|
}
|
|
845
|
-
return
|
|
764
|
+
return () => {
|
|
846
765
|
if (inputRef.current) {
|
|
847
766
|
inputRef.current.removeEventListener('input', checkOverflow);
|
|
848
767
|
}
|
|
849
768
|
};
|
|
850
769
|
}, [inputValue]);
|
|
851
|
-
|
|
770
|
+
const handleMouseEnter = () => {
|
|
852
771
|
setTooltipIsHovered(true);
|
|
853
772
|
};
|
|
854
|
-
|
|
773
|
+
const handleMouseLeave = () => {
|
|
855
774
|
setTooltipIsHovered(false);
|
|
856
775
|
};
|
|
857
|
-
|
|
776
|
+
const updateTooltipPosition = (0, react_1.useCallback)(() => {
|
|
858
777
|
if (!inputRef.current)
|
|
859
778
|
return;
|
|
860
|
-
|
|
861
|
-
setTooltipPosition(
|
|
862
|
-
|
|
779
|
+
const rect = inputRef.current.getBoundingClientRect();
|
|
780
|
+
setTooltipPosition((prev) => {
|
|
781
|
+
const next = {
|
|
863
782
|
top: rect.bottom + 6,
|
|
864
783
|
left: rect.right,
|
|
865
784
|
width: rect.width,
|
|
@@ -873,7 +792,7 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
873
792
|
return next;
|
|
874
793
|
});
|
|
875
794
|
}, []);
|
|
876
|
-
(0, react_1.useLayoutEffect)(
|
|
795
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
877
796
|
if (!(tooltipIsHovered && showToolTip && !dropOpen && inputValue)) {
|
|
878
797
|
setTooltipPosition(null);
|
|
879
798
|
return;
|
|
@@ -881,17 +800,17 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
881
800
|
updateTooltipPosition();
|
|
882
801
|
window.addEventListener('scroll', updateTooltipPosition, true);
|
|
883
802
|
window.addEventListener('resize', updateTooltipPosition);
|
|
884
|
-
return
|
|
803
|
+
return () => {
|
|
885
804
|
window.removeEventListener('scroll', updateTooltipPosition, true);
|
|
886
805
|
window.removeEventListener('resize', updateTooltipPosition);
|
|
887
806
|
};
|
|
888
807
|
}, [tooltipIsHovered, showToolTip, dropOpen, inputValue, updateTooltipPosition]);
|
|
889
|
-
|
|
808
|
+
const updateErrorTooltipPosition = (0, react_1.useCallback)(() => {
|
|
890
809
|
if (!errorIconRef.current)
|
|
891
810
|
return;
|
|
892
|
-
|
|
893
|
-
setErrorTooltipPosition(
|
|
894
|
-
|
|
811
|
+
const rect = errorIconRef.current.getBoundingClientRect();
|
|
812
|
+
setErrorTooltipPosition((prev) => {
|
|
813
|
+
const next = {
|
|
895
814
|
top: rect.bottom + 6,
|
|
896
815
|
left: rect.right,
|
|
897
816
|
};
|
|
@@ -901,7 +820,7 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
901
820
|
return next;
|
|
902
821
|
});
|
|
903
822
|
}, []);
|
|
904
|
-
(0, react_1.useLayoutEffect)(
|
|
823
|
+
(0, react_1.useLayoutEffect)(() => {
|
|
905
824
|
if (!(isHovered && errors && errors[name])) {
|
|
906
825
|
setErrorTooltipPosition(null);
|
|
907
826
|
return;
|
|
@@ -909,39 +828,39 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
909
828
|
updateErrorTooltipPosition();
|
|
910
829
|
window.addEventListener('scroll', updateErrorTooltipPosition, true);
|
|
911
830
|
window.addEventListener('resize', updateErrorTooltipPosition);
|
|
912
|
-
return
|
|
831
|
+
return () => {
|
|
913
832
|
window.removeEventListener('scroll', updateErrorTooltipPosition, true);
|
|
914
833
|
window.removeEventListener('resize', updateErrorTooltipPosition);
|
|
915
834
|
};
|
|
916
835
|
}, [isHovered, errors, name, updateErrorTooltipPosition]);
|
|
917
|
-
return ((0, jsx_runtime_1.jsxs)("div",
|
|
836
|
+
return ((0, jsx_runtime_1.jsxs)("div", { id: id ? `autocomplete-container-${id}` : `autocomplete-container-${name}`, className: `autocomplete-container-table-view flex-grow ${fullWidth ? 'w-full' : 'w-auto'}`, ref: dropdownref, children: [label && !isModern && ((0, jsx_runtime_1.jsx)("div", { className: "mb-3", children: (0, jsx_runtime_1.jsxs)("label", { className: `text-xs font-medium`, children: [label, required ? (0, jsx_runtime_1.jsx)("span", { className: "text-error", children: " *" }) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})] }) })), (0, jsx_runtime_1.jsxs)("div", { className: "tooltip-container", children: [isHovered && errors && errors[name] && errorTooltipPosition && ((0, jsx_runtime_1.jsx)(portal_1.default, { children: (0, jsx_runtime_1.jsx)("span", { className: "tooltip tooltip-portal-error", style: {
|
|
918
837
|
position: 'fixed',
|
|
919
838
|
top: errorTooltipPosition.top,
|
|
920
839
|
left: errorTooltipPosition.left,
|
|
921
840
|
transform: 'translateX(-100%)',
|
|
922
841
|
zIndex: 9999,
|
|
923
|
-
}
|
|
842
|
+
}, children: handleError(errors) }) })), tooltipIsHovered &&
|
|
924
843
|
showToolTip &&
|
|
925
844
|
!dropOpen &&
|
|
926
845
|
inputValue &&
|
|
927
|
-
tooltipPosition && ((0, jsx_runtime_1.jsx)(portal_1.default, { children: (0, jsx_runtime_1.jsx)("div",
|
|
846
|
+
tooltipPosition && ((0, jsx_runtime_1.jsx)(portal_1.default, { children: (0, jsx_runtime_1.jsx)("div", { className: "tooltip-info tooltip-info-portal", style: {
|
|
928
847
|
position: 'fixed',
|
|
929
848
|
top: tooltipPosition.top,
|
|
930
849
|
left: tooltipPosition.left,
|
|
931
850
|
maxWidth: tooltipPosition.width,
|
|
932
851
|
transform: 'translateX(-100%)',
|
|
933
852
|
zIndex: 9999,
|
|
934
|
-
}
|
|
853
|
+
}, children: inputValue }) })), (0, jsx_runtime_1.jsxs)("div", { className: `flex relative ${fullWidth ? 'w-full' : 'w-auto'}`, style: { width: width }, children: [(0, jsx_runtime_1.jsxs)("div", { className: "relative w-full", onMouseEnter: () => handleMouseEnter(), onMouseLeave: () => handleMouseLeave(), children: [(0, jsx_runtime_1.jsx)("input", { type: "text", readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : type === 'custom_select', value: inputValue ? inputValue : '', onBlur: handleClearInputValue, autoComplete: "off", disabled: disabled, ref: inputRef, id: id ? `custom-autocomplete-${id}` : `custom-autocomplete-${name}`, "data-testid": "custom-autocomplete", "aria-describedby": id, style: Object.assign({ paddingRight: getInnerWidth() }, (fromPrefix
|
|
935
854
|
? {
|
|
936
855
|
borderRight: getBorderRight(),
|
|
937
856
|
borderTopRightRadius: 0,
|
|
938
857
|
borderBottomRightRadius: 0,
|
|
939
858
|
}
|
|
940
|
-
: {})), className:
|
|
859
|
+
: {})), className: ` ${generateClassName('input')}`, onChange: handleChange, placeholder: type === 'auto_complete'
|
|
941
860
|
? placeholder && isCustomPlaceholder
|
|
942
861
|
? placeholder
|
|
943
862
|
: 'Type to search'
|
|
944
|
-
: placeholder !== null && placeholder !== void 0 ? placeholder : '--Select--', onFocus: onInputFocus, onKeyDown: handleSearchInputKeyDown, onClick:
|
|
863
|
+
: placeholder !== null && placeholder !== void 0 ? placeholder : '--Select--', onFocus: onInputFocus, onKeyDown: handleSearchInputKeyDown, onClick: (e) => {
|
|
945
864
|
if (type === 'custom_select') {
|
|
946
865
|
setDropOpen(!dropOpen);
|
|
947
866
|
handleOpen(e);
|
|
@@ -953,9 +872,9 @@ var ReactAutoCompleteTableView = function (_a) {
|
|
|
953
872
|
if (dropOpen || (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0)
|
|
954
873
|
setDropOpen(!dropOpen);
|
|
955
874
|
}
|
|
956
|
-
} }), isModern && ((0, jsx_runtime_1.jsxs)("label",
|
|
875
|
+
} }), isModern && ((0, jsx_runtime_1.jsxs)("label", { htmlFor: id, onClick: () => onLabelClick(), className: generateClassName('label'), children: [label ? (0, jsx_runtime_1.jsx)("span", { className: "truncate", children: label }) : '', required ? (0, jsx_runtime_1.jsx)("span", { className: "text-error", children: " *" }) : (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {})] }))] }), (0, jsx_runtime_1.jsx)("div", { className: "flex items-center justify-center autocomplete-adorement-wrapper", children: (0, jsx_runtime_1.jsxs)("div", { ref: adorementRef, className: `${generateClassName('adorement')} qbs-autocomplete-adorement auto-dorpdown-adorement mr-[1px] ${isLoading ? 'bg-white' : ''}`, children: [showClose && ((0, jsx_runtime_1.jsx)("button", { onClick: () => handleClear(), className: " text-table-bodyColor text-[#667085]", "aria-label": "close", type: "button", id: "autocomplete-close-icon", children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "close", type: "large-m" }) })), showSearchOnButtonChrome && ((0, jsx_runtime_1.jsx)("button", { type: "button", "aria-label": isLoading ? 'Loading' : 'Search', "aria-busy": isLoading, "data-testid": "autocomplete-search-button", onClick: handleSearchButtonClick, disabled: isLoading, className: "btn-search-on text-table-bodyColor text-[#667085] focus-visible:outline-slate-100 p-0.5 inline-flex items-center justify-center min-w-[28px] min-h-[28px] disabled:opacity-70", children: isLoading ? ((0, jsx_runtime_1.jsx)("span", { className: "inline-flex items-center justify-center [&_svg]:mr-0 [&_svg]:h-5 [&_svg]:w-5", children: (0, jsx_runtime_1.jsx)(Spinner_1.default, {}) })) : ((0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "search", type: "medium" })) })), isLoading && !showSearchOnButtonChrome && (0, jsx_runtime_1.jsx)(Spinner_1.default, {}), (type !== 'auto_complete' || autoDropdown) &&
|
|
957
876
|
!disabled &&
|
|
958
|
-
!readOnly && ((0, jsx_runtime_1.jsx)("button",
|
|
877
|
+
!readOnly && ((0, jsx_runtime_1.jsx)("button", { disabled: disabled !== null && disabled !== void 0 ? disabled : readOnly, onClick: (e) => handleOpenDropdown(e), onBlur: handleClose, className: " text-[#667085] focus-visible:outline-slate-100", "data-testid": "drop-arrow", type: "button", id: "autocomplete-drop-icon", ref: dropBtnRef, children: !dropOpen ? (autoDropdown ? ((0, jsx_runtime_1.jsx)(icons_1.AllDropArrow, { type: "down", uniqueId: "all-dropdow-arrow-icon", className: "all-dropdow-arrow-icon" })) : ((0, jsx_runtime_1.jsx)(icons_1.DropArrow, { uniqueDropArrowId: "drop-arrow-icon" }))) : autoDropdown ? ((0, jsx_runtime_1.jsx)(icons_1.AllDropArrow, { type: "up", uniqueId: "all-dropdow-arrow-icon", className: "all-dropdow-arrow-icon" })) : ((0, jsx_runtime_1.jsx)(icons_1.DropArrow, { className: "rotate-180", uniqueDropArrowId: "drop-arrow-icon" })) })), errors && errors[name] && ((0, jsx_runtime_1.jsx)("div", { ref: errorIconRef, className: ` text-error-label relative cursor-pointer ${generateClassName('message')}`, onMouseEnter: () => setIsHovered(true), onMouseLeave: () => setIsHovered(false), children: (0, jsx_runtime_1.jsx)(customIcons_1.default, { name: "alert", type: "medium" }) }))] }) }), dropOpen && (!isLoading || (filteredData === null || filteredData === void 0 ? void 0 : filteredData.length) > 0) && ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: insideOpen ? setDropDown() : (0, jsx_runtime_1.jsx)(portal_1.default, { children: setDropDown() }) }))] })] })] }));
|
|
959
878
|
};
|
|
960
879
|
exports.default = ReactAutoCompleteTableView;
|
|
961
880
|
//# sourceMappingURL=ReactAutoCompleteTableView.js.map
|