@worknice/whiteboard 0.60.1 → 0.62.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/controls/Action.js +5 -7
- package/dist/controls/Action.stories.d.ts +1 -1
- package/dist/controls/Action.stories.js +5 -7
- package/dist/controls/Button.stories.d.ts +1 -1
- package/dist/controls/Button.stories.js +5 -7
- package/dist/controls/ButtonCard.js +6 -7
- package/dist/controls/ButtonCard.stories.d.ts +1 -1
- package/dist/controls/ButtonLink.stories.js +6 -10
- package/dist/controls/Disclosure.stories.js +6 -10
- package/dist/controls/FilterModal.js +4 -7
- package/dist/controls/LinkCard.js +2 -3
- package/dist/controls/MenuButton.js +3 -4
- package/dist/controls/MenuButton.stories.d.ts +1 -1
- package/dist/controls/MenuButton.stories.js +4 -7
- package/dist/controls/PageTabSet.js +3 -4
- package/dist/controls/Sortable.stories.d.ts +1 -1
- package/dist/controls/Sortable.stories.js +4 -10
- package/dist/controls/SortableItem.js +2 -4
- package/dist/controls/TabSet.stories.d.ts +1 -1
- package/dist/controls/TabSetLink.stories.js +11 -19
- package/dist/fields/CheckboxSetField.stories.d.ts +1 -1
- package/dist/fields/ColorPickerField.stories.d.ts +1 -1
- package/dist/fields/OrgLogoField.stories.d.ts +1 -1
- package/dist/fields/PaletteColorPickerField.stories.d.ts +1 -1
- package/dist/fields/TimezoneField.stories.d.ts +1 -1
- package/dist/forms/FormErrorList.js +2 -4
- package/dist/forms/FormStatusIndicator.js +7 -10
- package/dist/hud/NavSection.js +3 -4
- package/dist/icons/IconGallery.js +5 -11
- package/dist/icons/components/Approval.d.ts +5 -0
- package/dist/icons/components/Approval.js +14 -0
- package/dist/icons/components/Apps.d.ts +5 -0
- package/dist/icons/{AppsIcon.js → components/Apps.js} +7 -4
- package/dist/icons/components/Archive.d.ts +5 -0
- package/dist/icons/{ArchiveIcon.js → components/Archive.js} +7 -4
- package/dist/icons/components/ArrowLeft.d.ts +5 -0
- package/dist/icons/{ArrowLeftIcon.js → components/ArrowLeft.js} +7 -4
- package/dist/icons/components/ArrowRight.d.ts +5 -0
- package/dist/icons/{ArrowRightIcon.js → components/ArrowRight.js} +7 -4
- package/dist/icons/components/ArrowTurnLeftUp.d.ts +5 -0
- package/dist/icons/{ArrowTurnLeftUpIcon.js → components/ArrowTurnLeftUp.js} +7 -4
- package/dist/icons/components/ArrowsCompress.d.ts +5 -0
- package/dist/icons/components/ArrowsCompress.js +14 -0
- package/dist/icons/components/ArrowsExpand.d.ts +5 -0
- package/dist/icons/components/ArrowsExpand.js +14 -0
- package/dist/icons/components/ArrowsUpDown.d.ts +5 -0
- package/dist/icons/{ArrowsUpDownIcon.js → components/ArrowsUpDown.js} +7 -4
- package/dist/icons/components/Assign.d.ts +5 -0
- package/dist/icons/{AssignIcon.js → components/Assign.js} +7 -6
- package/dist/icons/components/AssignmentCertificate.d.ts +5 -0
- package/dist/icons/components/AssignmentCertificate.js +14 -0
- package/dist/icons/components/AssignmentDocument.d.ts +5 -0
- package/dist/icons/components/AssignmentDocument.js +14 -0
- package/dist/icons/components/AssignmentQuestionnaire.d.ts +5 -0
- package/dist/icons/components/AssignmentQuestionnaire.js +14 -0
- package/dist/icons/components/BankAccount.d.ts +5 -0
- package/dist/icons/{BankAccountIcon.js → components/BankAccount.js} +7 -4
- package/dist/icons/components/BookOpenLines.d.ts +5 -0
- package/dist/icons/{BookOpenLinesIcon.js → components/BookOpenLines.js} +7 -4
- package/dist/icons/components/Bug.d.ts +5 -0
- package/dist/icons/{BugIcon.js → components/Bug.js} +7 -4
- package/dist/icons/components/Calendar.d.ts +5 -0
- package/dist/icons/{CalendarIcon.js → components/Calendar.js} +7 -4
- package/dist/icons/components/Cancel.d.ts +5 -0
- package/dist/icons/{CancelIcon.js → components/Cancel.js} +7 -4
- package/dist/icons/components/CaratDown.d.ts +5 -0
- package/dist/icons/{CaratDownIcon.js → components/CaratDown.js} +7 -4
- package/dist/icons/components/CaratLeft.d.ts +5 -0
- package/dist/icons/{CaratLeftIcon.js → components/CaratLeft.js} +7 -4
- package/dist/icons/components/CaratRight.d.ts +5 -0
- package/dist/icons/{CaratRightIcon.js → components/CaratRight.js} +7 -4
- package/dist/icons/components/CaratUp.d.ts +5 -0
- package/dist/icons/{CaratUpIcon.js → components/CaratUp.js} +7 -4
- package/dist/icons/components/CheckMark.d.ts +5 -0
- package/dist/icons/{CheckmarkIcon.js → components/CheckMark.js} +7 -4
- package/dist/icons/components/ChevronDown.d.ts +5 -0
- package/dist/icons/{ChevronDownIcon.js → components/ChevronDown.js} +7 -4
- package/dist/icons/components/ChevronLeft.d.ts +5 -0
- package/dist/icons/{ChevronLeftIcon.js → components/ChevronLeft.js} +7 -4
- package/dist/icons/components/ChevronRight.d.ts +5 -0
- package/dist/icons/{ChevronRightIcon.js → components/ChevronRight.js} +7 -4
- package/dist/icons/components/ChevronUp.d.ts +5 -0
- package/dist/icons/{ChevronUpIcon.js → components/ChevronUp.js} +7 -4
- package/dist/icons/components/Close.d.ts +5 -0
- package/dist/icons/{CloseIcon.js → components/Close.js} +7 -4
- package/dist/icons/components/Columns.d.ts +5 -0
- package/dist/icons/{ColumnsIcon.js → components/Columns.js} +7 -4
- package/dist/icons/components/Comment.d.ts +5 -0
- package/dist/icons/{CommentIcon.js → components/Comment.js} +7 -4
- package/dist/icons/components/Copy.d.ts +5 -0
- package/dist/icons/components/Copy.js +14 -0
- package/dist/icons/components/Dash.d.ts +5 -0
- package/dist/icons/{DashIcon.js → components/Dash.js} +7 -4
- package/dist/icons/components/Delete.d.ts +5 -0
- package/dist/icons/{DeleteIcon.js → components/Delete.js} +7 -4
- package/dist/icons/components/Directory.d.ts +5 -0
- package/dist/icons/{DirectoryIcon.js → components/Directory.js} +7 -4
- package/dist/icons/components/DocumentProcessingFailed.d.ts +5 -0
- package/dist/icons/{DocumentProcessingFailedIcon.js → components/DocumentProcessingFailed.js} +7 -4
- package/dist/icons/components/Download.d.ts +5 -0
- package/dist/icons/{DownloadIcon.js → components/Download.js} +7 -4
- package/dist/icons/components/Edit.d.ts +5 -0
- package/dist/icons/{EditIcon.js → components/Edit.js} +7 -4
- package/dist/icons/components/Email.d.ts +5 -0
- package/dist/icons/{EmailIcon.js → components/Email.js} +7 -4
- package/dist/icons/components/EmergencyContact.d.ts +5 -0
- package/dist/icons/{EmergencyContactIcon.js → components/EmergencyContact.js} +7 -4
- package/dist/icons/components/Events.d.ts +5 -0
- package/dist/icons/components/Events.js +14 -0
- package/dist/icons/components/External.d.ts +5 -0
- package/dist/icons/components/External.js +14 -0
- package/dist/icons/components/FileExport.d.ts +5 -0
- package/dist/icons/{FileExportIcon.js → components/FileExport.js} +7 -4
- package/dist/icons/components/Filter.d.ts +5 -0
- package/dist/icons/{FilterIcon.js → components/Filter.js} +7 -4
- package/dist/icons/components/FilterList.d.ts +5 -0
- package/dist/icons/{FilterListIcon.js → components/FilterList.js} +7 -4
- package/dist/icons/components/FitView.d.ts +5 -0
- package/dist/icons/components/FitView.js +14 -0
- package/dist/icons/components/Globe.d.ts +5 -0
- package/dist/icons/{GlobeIcon.js → components/Globe.js} +7 -4
- package/dist/icons/components/GripLines.d.ts +5 -0
- package/dist/icons/{GripLinesIcon.js → components/GripLines.js} +7 -4
- package/dist/icons/components/Help.d.ts +5 -0
- package/dist/icons/{HelpIcon.js → components/Help.js} +7 -4
- package/dist/icons/components/Hidden.d.ts +5 -0
- package/dist/icons/{HiddenIcon.js → components/Hidden.js} +7 -4
- package/dist/icons/components/Inbox.d.ts +5 -0
- package/dist/icons/{InboxIcon.js → components/Inbox.js} +7 -4
- package/dist/icons/components/Info.d.ts +5 -0
- package/dist/icons/{InfoIcon.js → components/Info.js} +7 -4
- package/dist/icons/components/Insights.d.ts +5 -0
- package/dist/icons/{InsightsIcon.js → components/Insights.js} +7 -4
- package/dist/icons/components/Job.d.ts +5 -0
- package/dist/icons/{JobIcon.js → components/Job.js} +7 -4
- package/dist/icons/components/Leave.d.ts +5 -0
- package/dist/icons/{LeaveIcon.js → components/Leave.js} +7 -4
- package/dist/icons/components/Lightbulb.d.ts +5 -0
- package/dist/icons/{LightbulbIcon.js → components/Lightbulb.js} +7 -4
- package/dist/icons/components/Loading.d.ts +5 -0
- package/dist/icons/{LoadingIcon.js → components/Loading.js} +7 -16
- package/dist/icons/components/LocationCheck.d.ts +5 -0
- package/dist/icons/components/LocationCheck.js +14 -0
- package/dist/icons/components/Logout.d.ts +5 -0
- package/dist/icons/{LogoutIcon.js → components/Logout.js} +7 -4
- package/dist/icons/components/Messages.d.ts +5 -0
- package/dist/icons/{MessagesIcon.js → components/Messages.js} +7 -4
- package/dist/icons/components/Microsoft.d.ts +5 -0
- package/dist/icons/{MicrosoftIcon.js → components/Microsoft.js} +7 -4
- package/dist/icons/components/Minus.d.ts +5 -0
- package/dist/icons/{MinusIcon.js → components/Minus.js} +7 -4
- package/dist/icons/components/Newspaper.d.ts +5 -0
- package/dist/icons/{NewspaperIcon.js → components/Newspaper.js} +7 -4
- package/dist/icons/components/Overflow.d.ts +5 -0
- package/dist/icons/components/Overflow.js +14 -0
- package/dist/icons/components/Paperwork.d.ts +5 -0
- package/dist/icons/{PaperworkIcon.js → components/Paperwork.js} +7 -4
- package/dist/icons/components/PaperworkAssigned.d.ts +5 -0
- package/dist/icons/components/PaperworkAssigned.js +14 -0
- package/dist/icons/components/PaperworkDraft.d.ts +5 -0
- package/dist/icons/components/PaperworkDraft.js +14 -0
- package/dist/icons/components/PaperworkExpired.d.ts +5 -0
- package/dist/icons/components/PaperworkExpired.js +14 -0
- package/dist/icons/components/PaperworkExpiringSoon.d.ts +5 -0
- package/dist/icons/components/PaperworkExpiringSoon.js +14 -0
- package/dist/icons/components/PaperworkMissing.d.ts +5 -0
- package/dist/icons/components/PaperworkMissing.js +14 -0
- package/dist/icons/components/PaperworkProcessed.d.ts +5 -0
- package/dist/icons/components/PaperworkProcessed.js +14 -0
- package/dist/icons/components/PaperworkSubmitted.d.ts +5 -0
- package/dist/icons/components/PaperworkSubmitted.js +14 -0
- package/dist/icons/components/People.d.ts +5 -0
- package/dist/icons/{PeopleIcon.js → components/People.js} +11 -8
- package/dist/icons/components/Phone.d.ts +5 -0
- package/dist/icons/{PhoneIcon.js → components/Phone.js} +7 -4
- package/dist/icons/components/Plus.d.ts +5 -0
- package/dist/icons/{PlusIcon.js → components/Plus.js} +7 -4
- package/dist/icons/components/Positions.d.ts +5 -0
- package/dist/icons/{PositionsIcon.js → components/Positions.js} +23 -20
- package/dist/icons/components/Profile.d.ts +5 -0
- package/dist/icons/{ProfileIcon.js → components/Profile.js} +11 -8
- package/dist/icons/components/ProfileFemale.d.ts +5 -0
- package/dist/icons/{ProfileFemaleIcon.js → components/ProfileFemale.js} +7 -4
- package/dist/icons/components/ProfileMale.d.ts +5 -0
- package/dist/icons/{ProfileMaleIcon.js → components/ProfileMale.js} +7 -4
- package/dist/icons/components/Remuneration.d.ts +5 -0
- package/dist/icons/{RemunerationIcon.js → components/Remuneration.js} +7 -4
- package/dist/icons/components/Reschedule.d.ts +5 -0
- package/dist/icons/{RescheduleIcon.js → components/Reschedule.js} +7 -6
- package/dist/icons/components/Restore.d.ts +5 -0
- package/dist/icons/{RestoreIcon.js → components/Restore.js} +7 -4
- package/dist/icons/components/Review.d.ts +5 -0
- package/dist/icons/{ReviewIcon.js → components/Review.js} +8 -5
- package/dist/icons/components/Schedule.d.ts +5 -0
- package/dist/icons/{ScheduleIcon.js → components/Schedule.js} +7 -6
- package/dist/icons/components/Search.d.ts +5 -0
- package/dist/icons/{SearchIcon.js → components/Search.js} +7 -4
- package/dist/icons/components/Settings.d.ts +5 -0
- package/dist/icons/{SettingsIcon.js → components/Settings.js} +7 -4
- package/dist/icons/components/Sidebar.d.ts +5 -0
- package/dist/icons/{SidebarIcon.js → components/Sidebar.js} +7 -4
- package/dist/icons/components/Sliders.d.ts +5 -0
- package/dist/icons/{SlidersIcon.js → components/Sliders.js} +7 -4
- package/dist/icons/components/SortAsc.d.ts +5 -0
- package/dist/icons/{SortAscIcon.js → components/SortAsc.js} +7 -4
- package/dist/icons/components/SortDefault.d.ts +5 -0
- package/dist/icons/{SortDefaultIcon.js → components/SortDefault.js} +7 -4
- package/dist/icons/components/SortDes.d.ts +5 -0
- package/dist/icons/{SortDesIcon.js → components/SortDes.js} +7 -4
- package/dist/icons/components/StepsComplete.d.ts +5 -0
- package/dist/icons/{StepsCompleteIcon.js → components/StepsComplete.js} +7 -4
- package/dist/icons/components/StepsCurrent.d.ts +5 -0
- package/dist/icons/{StepsCurrentIcon.js → components/StepsCurrent.js} +7 -4
- package/dist/icons/components/StepsIncomplete.d.ts +5 -0
- package/dist/icons/{StepsIncompleteIcon.js → components/StepsIncomplete.js} +7 -4
- package/dist/icons/components/Submit.d.ts +5 -0
- package/dist/icons/{SubmitIcon.js → components/Submit.js} +7 -6
- package/dist/icons/components/Success.d.ts +5 -0
- package/dist/icons/{SuccessIcon.js → components/Success.js} +7 -6
- package/dist/icons/components/SuperFund.d.ts +5 -0
- package/dist/icons/{SuperFundIcon.js → components/SuperFund.js} +7 -4
- package/dist/icons/components/Sync.d.ts +5 -0
- package/dist/icons/{SyncIcon.js → components/Sync.js} +7 -4
- package/dist/icons/components/Table.d.ts +5 -0
- package/dist/icons/{TableIcon.js → components/Table.js} +7 -4
- package/dist/icons/components/Task.d.ts +5 -0
- package/dist/icons/{TaskIcon.js → components/Task.js} +7 -4
- package/dist/icons/components/Tax.d.ts +5 -0
- package/dist/icons/{TaxIcon.js → components/Tax.js} +7 -4
- package/dist/icons/components/Tenure.d.ts +5 -0
- package/dist/icons/{TenureIcon.js → components/Tenure.js} +7 -4
- package/dist/icons/components/Visible.d.ts +5 -0
- package/dist/icons/{VisibleIcon.js → components/Visible.js} +7 -4
- package/dist/icons/components/Warning.d.ts +5 -0
- package/dist/icons/{WarningIcon.js → components/Warning.js} +7 -4
- package/dist/icons/components/Workflows.d.ts +5 -0
- package/dist/icons/{WorkflowsIcon.js → components/Workflows.js} +14 -11
- package/dist/icons/components/index.d.ts +104 -0
- package/dist/icons/components/index.js +209 -0
- package/dist/icons/createIcon.d.ts +6 -0
- package/dist/icons/createIcon.js +16 -0
- package/dist/icons/createIcon.module.js +5 -0
- package/dist/icons/createIcon_module.css +15 -0
- package/dist/icons/svgs/Approval.js +2 -0
- package/dist/icons/svgs/Apps.js +2 -0
- package/dist/icons/svgs/Archive.js +2 -0
- package/dist/icons/svgs/ArrowLeft.js +2 -0
- package/dist/icons/svgs/ArrowRight.js +2 -0
- package/dist/icons/svgs/ArrowTurnLeftUp.js +2 -0
- package/dist/icons/svgs/ArrowsCompress.js +2 -0
- package/dist/icons/svgs/ArrowsExpand.js +2 -0
- package/dist/icons/svgs/ArrowsUpDown.js +2 -0
- package/dist/icons/svgs/Assign.js +2 -0
- package/dist/icons/svgs/AssignmentCertificate.js +2 -0
- package/dist/icons/svgs/AssignmentDocument.js +2 -0
- package/dist/icons/svgs/AssignmentQuestionnaire.js +2 -0
- package/dist/icons/svgs/BankAccount.js +2 -0
- package/dist/icons/svgs/BookOpenLines.js +2 -0
- package/dist/icons/svgs/Bug.js +2 -0
- package/dist/icons/svgs/Calendar.js +2 -0
- package/dist/icons/svgs/Cancel.js +2 -0
- package/dist/icons/svgs/CaratDown.js +2 -0
- package/dist/icons/svgs/CaratLeft.js +2 -0
- package/dist/icons/svgs/CaratRight.js +2 -0
- package/dist/icons/svgs/CaratUp.js +2 -0
- package/dist/icons/svgs/CheckMark.js +2 -0
- package/dist/icons/svgs/ChevronDown.js +2 -0
- package/dist/icons/svgs/ChevronLeft.js +2 -0
- package/dist/icons/svgs/ChevronRight.js +2 -0
- package/dist/icons/svgs/ChevronUp.js +2 -0
- package/dist/icons/svgs/Close.js +2 -0
- package/dist/icons/svgs/Columns.js +2 -0
- package/dist/icons/svgs/Comment.js +2 -0
- package/dist/icons/svgs/Copy.js +2 -0
- package/dist/icons/svgs/Dash.js +2 -0
- package/dist/icons/svgs/Delete.js +2 -0
- package/dist/icons/svgs/Directory.js +2 -0
- package/dist/icons/svgs/DocumentProcessingFailed.js +2 -0
- package/dist/icons/svgs/Download.js +2 -0
- package/dist/icons/svgs/Edit.js +2 -0
- package/dist/icons/svgs/Email.js +2 -0
- package/dist/icons/svgs/EmergencyContact.js +2 -0
- package/dist/icons/svgs/Events.js +2 -0
- package/dist/icons/svgs/External.js +2 -0
- package/dist/icons/svgs/FileExport.js +2 -0
- package/dist/icons/svgs/Filter.js +2 -0
- package/dist/icons/svgs/FilterList.js +2 -0
- package/dist/icons/svgs/FitView.js +2 -0
- package/dist/icons/svgs/Globe.js +2 -0
- package/dist/icons/svgs/GripLines.js +2 -0
- package/dist/icons/svgs/Help.js +2 -0
- package/dist/icons/svgs/Hidden.js +2 -0
- package/dist/icons/svgs/Inbox.js +2 -0
- package/dist/icons/svgs/Info.js +2 -0
- package/dist/icons/svgs/Insights.js +2 -0
- package/dist/icons/svgs/Job.js +2 -0
- package/dist/icons/svgs/Leave.js +2 -0
- package/dist/icons/svgs/Lightbulb.js +2 -0
- package/dist/icons/svgs/Loading.js +2 -0
- package/dist/icons/svgs/LocationCheck.js +2 -0
- package/dist/icons/svgs/Logout.js +2 -0
- package/dist/icons/svgs/Messages.js +2 -0
- package/dist/icons/svgs/Microsoft.js +2 -0
- package/dist/icons/svgs/Minus.js +2 -0
- package/dist/icons/svgs/Newspaper.js +2 -0
- package/dist/icons/svgs/Overflow.js +2 -0
- package/dist/icons/svgs/Paperwork.js +2 -0
- package/dist/icons/svgs/PaperworkAssigned.js +2 -0
- package/dist/icons/svgs/PaperworkDraft.js +2 -0
- package/dist/icons/svgs/PaperworkExpired.js +2 -0
- package/dist/icons/svgs/PaperworkExpiringSoon.js +2 -0
- package/dist/icons/svgs/PaperworkMissing.js +2 -0
- package/dist/icons/svgs/PaperworkProcessed.js +2 -0
- package/dist/icons/svgs/PaperworkSubmitted.js +2 -0
- package/dist/icons/svgs/People.js +2 -0
- package/dist/icons/svgs/Phone.js +2 -0
- package/dist/icons/svgs/Plus.js +2 -0
- package/dist/icons/svgs/Positions.js +2 -0
- package/dist/icons/svgs/Profile.js +2 -0
- package/dist/icons/svgs/ProfileFemale.js +2 -0
- package/dist/icons/svgs/ProfileMale.js +2 -0
- package/dist/icons/svgs/Remuneration.js +2 -0
- package/dist/icons/svgs/Reschedule.js +2 -0
- package/dist/icons/svgs/Restore.js +2 -0
- package/dist/icons/svgs/Review.js +2 -0
- package/dist/icons/svgs/Schedule.js +2 -0
- package/dist/icons/svgs/Search.js +2 -0
- package/dist/icons/svgs/Settings.js +2 -0
- package/dist/icons/svgs/Sidebar.js +2 -0
- package/dist/icons/svgs/Sliders.js +2 -0
- package/dist/icons/svgs/SortAsc.js +2 -0
- package/dist/icons/svgs/SortDefault.js +2 -0
- package/dist/icons/svgs/SortDes.js +2 -0
- package/dist/icons/svgs/StepsComplete.js +2 -0
- package/dist/icons/svgs/StepsCurrent.js +2 -0
- package/dist/icons/svgs/StepsIncomplete.js +2 -0
- package/dist/icons/svgs/Submit.js +2 -0
- package/dist/icons/svgs/Success.js +2 -0
- package/dist/icons/svgs/SuperFund.js +2 -0
- package/dist/icons/svgs/Sync.js +2 -0
- package/dist/icons/svgs/Table.js +2 -0
- package/dist/icons/svgs/Task.js +2 -0
- package/dist/icons/svgs/Tax.js +2 -0
- package/dist/icons/svgs/Tenure.js +2 -0
- package/dist/icons/svgs/Visible.js +2 -0
- package/dist/icons/svgs/Warning.js +2 -0
- package/dist/icons/svgs/Workflows.js +2 -0
- package/dist/icons/types.d.ts +12 -0
- package/dist/icons/types.js +8 -0
- package/dist/inputs/CheckboxInput.js +6 -7
- package/dist/inputs/ColorInput.stories.d.ts +1 -1
- package/dist/inputs/FileSlotInput.js +2 -4
- package/dist/inputs/MultipleFileInput.js +2 -4
- package/dist/inputs/PaletteColorInput.js +2 -4
- package/dist/inputs/PaletteColorInput.stories.d.ts +1 -1
- package/dist/inputs/SelectInput.js +5 -9
- package/dist/inputs/SingleSelectComboboxInput.js +7 -12
- package/dist/layouts/FullLayout.js +74 -77
- package/dist/layouts/MinimalLayout.js +1 -2
- package/dist/presentation/Avatar.d.ts +5 -6
- package/dist/presentation/Avatar.js +8 -12
- package/dist/presentation/Avatar.stories.d.ts +7 -7
- package/dist/presentation/Avatar.stories.js +7 -4
- package/dist/presentation/Card.js +2 -4
- package/dist/presentation/ConfirmationModal.js +2 -4
- package/dist/presentation/CustomizableTable/CustomizableTable.js +24 -35
- package/dist/presentation/CustomizableTable/CustomizableTable.module.js +0 -1
- package/dist/presentation/CustomizableTable/CustomizableTable_module.css +1 -1
- package/dist/presentation/File.js +2 -4
- package/dist/presentation/IconBadge.d.ts +4 -4
- package/dist/presentation/IconBadge.js +2 -6
- package/dist/presentation/LightweightTable.js +2 -4
- package/dist/presentation/ListCard.js +2 -4
- package/dist/presentation/ObscuredText.js +6 -4
- package/dist/presentation/PersonCover.stories.d.ts +9 -9
- package/dist/presentation/RichList/RichList.d.ts +6 -7
- package/dist/presentation/RichList/RichList.js +26 -35
- package/dist/presentation/RichList/RichList.stories.js +5 -28
- package/dist/presentation/RichList/RichListBulkActionBar.js +6 -9
- package/dist/presentation/RichList/RichListDisplayModal.js +3 -5
- package/dist/presentation/RichList/RichListRow.d.ts +2 -3
- package/dist/presentation/RichList/RichListRow.js +53 -65
- package/dist/presentation/RichList/RichListRow.module.js +0 -1
- package/dist/presentation/RichList/RichListRow_module.css +0 -6
- package/dist/presentation/RichList/RichListToolbar.js +11 -16
- package/dist/presentation/RichList/helpers.d.ts +3 -1
- package/dist/presentation/RichList/helpers.js +33 -3
- package/dist/presentation/RichList/stories/ComplianceGroups.js +8 -12
- package/dist/presentation/RichList/stories/CustomFields.js +2 -5
- package/dist/presentation/RichList/stories/EmployeeCompliance.d.ts +1 -1
- package/dist/presentation/RichList/stories/EmployeeCompliance.js +8 -10
- package/dist/presentation/RichList/stories/EmployeePaperwork.d.ts +3 -5
- package/dist/presentation/RichList/stories/EmployeePaperwork.js +26 -25
- package/dist/presentation/RichList/stories/EmployeePeople.d.ts +3 -1
- package/dist/presentation/RichList/stories/EmployeePeople.js +58 -28
- package/dist/presentation/RichList/stories/Leave.d.ts +1 -1
- package/dist/presentation/RichList/stories/Leave.js +9 -7
- package/dist/presentation/RichList/stories/Paperwork.d.ts +3 -5
- package/dist/presentation/RichList/stories/Paperwork.js +18 -18
- package/dist/presentation/RichList/stories/PaperworkApprovals.d.ts +3 -5
- package/dist/presentation/RichList/stories/PaperworkApprovals.js +14 -12
- package/dist/presentation/RichList/stories/PeopleList.d.ts +1 -1
- package/dist/presentation/RichList/stories/PeopleList.js +6 -2
- package/dist/presentation/RichList/stories/PeopleTags.js +4 -7
- package/dist/presentation/RichList/stories/Positions.d.ts +1 -1
- package/dist/presentation/RichList/stories/Positions.js +15 -11
- package/dist/presentation/RichList/stories/Reviews.d.ts +1 -1
- package/dist/presentation/RichList/stories/Reviews.js +2 -2
- package/dist/presentation/RichList/stories/SavedQuestions.js +4 -7
- package/dist/presentation/RichList/stories/Tables.d.ts +1 -1
- package/dist/presentation/RichList/stories/Tables.js +43 -29
- package/dist/presentation/RichList/stories/Tasks.d.ts +1 -1
- package/dist/presentation/RichList/stories/Tasks.js +16 -12
- package/dist/presentation/RichList/stories/shared/bulkActionStubs.js +8 -9
- package/dist/presentation/RichList/stories/shared.d.ts +0 -1
- package/dist/presentation/RichList/types.d.ts +38 -2
- package/dist/presentation/Slot.js +2 -4
- package/dist/presentation/Table.js +21 -33
- package/dist/presentation/Table.module.js +0 -1
- package/dist/presentation/Table_module.css +1 -1
- package/dist/static/svg/Approval.svg +3 -0
- package/dist/static/svg/Apps.svg +3 -0
- package/dist/static/svg/Archive.svg +3 -0
- package/dist/static/svg/ArrowLeft.svg +3 -0
- package/dist/static/svg/ArrowRight.svg +3 -0
- package/dist/static/svg/ArrowTurnLeftUp.svg +6 -0
- package/dist/static/svg/ArrowsCompress.svg +3 -0
- package/dist/static/svg/ArrowsExpand.svg +3 -0
- package/dist/static/svg/ArrowsUpDown.svg +3 -0
- package/dist/static/svg/Assign.svg +3 -0
- package/dist/static/svg/AssignmentCertificate.svg +3 -0
- package/dist/static/svg/AssignmentDocument.svg +3 -0
- package/dist/static/svg/AssignmentQuestionnaire.svg +3 -0
- package/dist/static/svg/BankAccount.svg +3 -0
- package/dist/static/svg/BookOpenLines.svg +3 -0
- package/dist/static/svg/Bug.svg +3 -0
- package/dist/static/svg/Calendar.svg +3 -0
- package/dist/static/svg/Cancel.svg +3 -0
- package/dist/static/svg/CaratDown.svg +3 -0
- package/dist/static/svg/CaratLeft.svg +3 -0
- package/dist/static/svg/CaratRight.svg +3 -0
- package/dist/static/svg/CaratUp.svg +3 -0
- package/dist/static/svg/CheckMark.svg +3 -0
- package/dist/static/svg/ChevronDown.svg +3 -0
- package/dist/static/svg/ChevronLeft.svg +3 -0
- package/dist/static/svg/ChevronRight.svg +3 -0
- package/dist/static/svg/ChevronUp.svg +3 -0
- package/dist/static/svg/Close.svg +3 -0
- package/dist/static/svg/Columns.svg +3 -0
- package/dist/static/svg/Comment.svg +3 -0
- package/dist/static/svg/Copy.svg +3 -0
- package/dist/static/svg/Dash.svg +3 -0
- package/dist/static/svg/Delete.svg +3 -0
- package/dist/static/svg/Directory.svg +3 -0
- package/dist/static/svg/DocumentProcessingFailed.svg +3 -0
- package/dist/static/svg/Download.svg +3 -0
- package/dist/static/svg/Edit.svg +3 -0
- package/dist/static/svg/Email.svg +3 -0
- package/dist/static/svg/EmergencyContact.svg +3 -0
- package/dist/static/svg/Events.svg +1 -0
- package/dist/static/svg/External.svg +3 -0
- package/dist/static/svg/FileExport.svg +3 -0
- package/dist/static/svg/Filter.svg +3 -0
- package/dist/static/svg/FilterList.svg +3 -0
- package/dist/static/svg/FitView.svg +3 -0
- package/dist/static/svg/Globe.svg +3 -0
- package/dist/static/svg/GripLines.svg +3 -0
- package/dist/static/svg/Help.svg +3 -0
- package/dist/static/svg/Hidden.svg +3 -0
- package/dist/static/svg/Inbox.svg +3 -0
- package/dist/static/svg/Info.svg +3 -0
- package/dist/static/svg/Insights.svg +5 -0
- package/dist/static/svg/Job.svg +3 -0
- package/dist/static/svg/Leave.svg +3 -0
- package/dist/static/svg/Lightbulb.svg +3 -0
- package/dist/static/svg/Loading.svg +3 -0
- package/dist/static/svg/LocationCheck.svg +3 -0
- package/dist/static/svg/Logout.svg +3 -0
- package/dist/static/svg/Messages.svg +3 -0
- package/dist/static/svg/Microsoft.svg +6 -0
- package/dist/static/svg/Minus.svg +3 -0
- package/dist/static/svg/Newspaper.svg +3 -0
- package/dist/static/svg/Overflow.svg +3 -0
- package/dist/static/svg/Paperwork.svg +5 -0
- package/dist/static/svg/PaperworkAssigned.svg +3 -0
- package/dist/static/svg/PaperworkDraft.svg +3 -0
- package/dist/static/svg/PaperworkExpired.svg +3 -0
- package/dist/static/svg/PaperworkExpiringSoon.svg +3 -0
- package/dist/static/svg/PaperworkMissing.svg +3 -0
- package/dist/static/svg/PaperworkProcessed.svg +3 -0
- package/dist/static/svg/PaperworkSubmitted.svg +3 -0
- package/dist/static/svg/People.svg +7 -0
- package/dist/static/svg/Phone.svg +3 -0
- package/dist/static/svg/Plus.svg +3 -0
- package/dist/static/svg/Positions.svg +9 -0
- package/dist/static/svg/Profile.svg +6 -0
- package/dist/static/svg/ProfileFemale.svg +3 -0
- package/dist/static/svg/ProfileMale.svg +3 -0
- package/dist/static/svg/Remuneration.svg +3 -0
- package/dist/static/svg/Reschedule.svg +3 -0
- package/dist/static/svg/Restore.svg +3 -0
- package/dist/static/svg/Review.svg +6 -0
- package/dist/static/svg/Schedule.svg +3 -0
- package/dist/static/svg/Search.svg +3 -0
- package/dist/static/svg/Settings.svg +3 -0
- package/dist/static/svg/Sidebar.svg +3 -0
- package/dist/static/svg/Sliders.svg +6 -0
- package/dist/static/svg/SortAsc.svg +3 -0
- package/dist/static/svg/SortDefault.svg +3 -0
- package/dist/static/svg/SortDes.svg +3 -0
- package/dist/static/svg/StepsComplete.svg +3 -0
- package/dist/static/svg/StepsCurrent.svg +3 -0
- package/dist/static/svg/StepsIncomplete.svg +3 -0
- package/dist/static/svg/Submit.svg +3 -0
- package/dist/static/svg/Success.svg +3 -0
- package/dist/static/svg/SuperFund.svg +3 -0
- package/dist/static/svg/Sync.svg +3 -0
- package/dist/static/svg/Table.svg +3 -0
- package/dist/static/svg/Task.svg +3 -0
- package/dist/static/svg/Tax.svg +3 -0
- package/dist/static/svg/Tenure.svg +3 -0
- package/dist/static/svg/Visible.svg +3 -0
- package/dist/static/svg/Warning.svg +6 -0
- package/dist/static/svg/Workflows.svg +7 -0
- package/dist/utils/storybook.js +7 -7
- package/package.json +8 -3
- package/dist/icons/ApprovalIcon.d.ts +0 -3
- package/dist/icons/ApprovalIcon.js +0 -14
- package/dist/icons/AppsIcon.d.ts +0 -3
- package/dist/icons/ArchiveIcon.d.ts +0 -3
- package/dist/icons/ArrowLeftIcon.d.ts +0 -3
- package/dist/icons/ArrowRightIcon.d.ts +0 -3
- package/dist/icons/ArrowTurnLeftUpIcon.d.ts +0 -3
- package/dist/icons/ArrowsUpDownIcon.d.ts +0 -3
- package/dist/icons/AssignIcon.d.ts +0 -3
- package/dist/icons/AssignmentCertificateIcon.d.ts +0 -3
- package/dist/icons/AssignmentCertificateIcon.js +0 -14
- package/dist/icons/AssignmentDocumentIcon.d.ts +0 -3
- package/dist/icons/AssignmentDocumentIcon.js +0 -14
- package/dist/icons/AssignmentQuestionnaireIcon.d.ts +0 -3
- package/dist/icons/AssignmentQuestionnaireIcon.js +0 -14
- package/dist/icons/BankAccountIcon.d.ts +0 -3
- package/dist/icons/BookOpenLinesIcon.d.ts +0 -3
- package/dist/icons/BugIcon.d.ts +0 -3
- package/dist/icons/CalendarIcon.d.ts +0 -3
- package/dist/icons/CancelIcon.d.ts +0 -3
- package/dist/icons/CaratDownIcon.d.ts +0 -3
- package/dist/icons/CaratLeftIcon.d.ts +0 -3
- package/dist/icons/CaratRightIcon.d.ts +0 -3
- package/dist/icons/CaratUpIcon.d.ts +0 -3
- package/dist/icons/CheckmarkIcon.d.ts +0 -3
- package/dist/icons/ChevronDownIcon.d.ts +0 -3
- package/dist/icons/ChevronLeftIcon.d.ts +0 -3
- package/dist/icons/ChevronRightIcon.d.ts +0 -3
- package/dist/icons/ChevronUpIcon.d.ts +0 -3
- package/dist/icons/CloseIcon.d.ts +0 -3
- package/dist/icons/ColumnsIcon.d.ts +0 -3
- package/dist/icons/CommentIcon.d.ts +0 -3
- package/dist/icons/CopyIcon.d.ts +0 -3
- package/dist/icons/CopyIcon.js +0 -14
- package/dist/icons/DashIcon.d.ts +0 -3
- package/dist/icons/DeleteIcon.d.ts +0 -3
- package/dist/icons/DirectoryIcon.d.ts +0 -3
- package/dist/icons/DocumentProcessingFailedIcon.d.ts +0 -3
- package/dist/icons/DownloadIcon.d.ts +0 -3
- package/dist/icons/EditIcon.d.ts +0 -3
- package/dist/icons/EmailIcon.d.ts +0 -3
- package/dist/icons/EmergencyContactIcon.d.ts +0 -3
- package/dist/icons/ExternalIcon.d.ts +0 -3
- package/dist/icons/ExternalIcon.js +0 -14
- package/dist/icons/FileExportIcon.d.ts +0 -3
- package/dist/icons/FilterIcon.d.ts +0 -3
- package/dist/icons/FilterListIcon.d.ts +0 -3
- package/dist/icons/GlobeIcon.d.ts +0 -3
- package/dist/icons/GripLinesIcon.d.ts +0 -3
- package/dist/icons/HelpIcon.d.ts +0 -3
- package/dist/icons/HiddenIcon.d.ts +0 -3
- package/dist/icons/InboxIcon.d.ts +0 -3
- package/dist/icons/InfoIcon.d.ts +0 -3
- package/dist/icons/InsightsIcon.d.ts +0 -3
- package/dist/icons/JobIcon.d.ts +0 -3
- package/dist/icons/LeaveIcon.d.ts +0 -3
- package/dist/icons/LightbulbIcon.d.ts +0 -3
- package/dist/icons/LoadingIcon.d.ts +0 -4
- package/dist/icons/LogoutIcon.d.ts +0 -3
- package/dist/icons/MessagesIcon.d.ts +0 -3
- package/dist/icons/MicrosoftIcon.d.ts +0 -3
- package/dist/icons/MinusIcon.d.ts +0 -3
- package/dist/icons/NewspaperIcon.d.ts +0 -3
- package/dist/icons/OverflowIcon.d.ts +0 -3
- package/dist/icons/OverflowIcon.js +0 -11
- package/dist/icons/PaperworkAssignedIcon.d.ts +0 -3
- package/dist/icons/PaperworkAssignedIcon.js +0 -14
- package/dist/icons/PaperworkDraftIcon.d.ts +0 -3
- package/dist/icons/PaperworkDraftIcon.js +0 -14
- package/dist/icons/PaperworkExpiredIcon.d.ts +0 -3
- package/dist/icons/PaperworkExpiredIcon.js +0 -14
- package/dist/icons/PaperworkExpiringSoonIcon.d.ts +0 -3
- package/dist/icons/PaperworkExpiringSoonIcon.js +0 -14
- package/dist/icons/PaperworkIcon.d.ts +0 -3
- package/dist/icons/PaperworkMissingIcon.d.ts +0 -3
- package/dist/icons/PaperworkMissingIcon.js +0 -14
- package/dist/icons/PaperworkProcessedIcon.d.ts +0 -3
- package/dist/icons/PaperworkProcessedIcon.js +0 -14
- package/dist/icons/PaperworkSubmittedIcon.d.ts +0 -3
- package/dist/icons/PaperworkSubmittedIcon.js +0 -14
- package/dist/icons/PeopleIcon.d.ts +0 -3
- package/dist/icons/PhoneIcon.d.ts +0 -3
- package/dist/icons/PlusIcon.d.ts +0 -3
- package/dist/icons/PositionsIcon.d.ts +0 -3
- package/dist/icons/ProfileFemaleIcon.d.ts +0 -3
- package/dist/icons/ProfileIcon.d.ts +0 -3
- package/dist/icons/ProfileMaleIcon.d.ts +0 -3
- package/dist/icons/RemunerationIcon.d.ts +0 -3
- package/dist/icons/RescheduleIcon.d.ts +0 -3
- package/dist/icons/RestoreIcon.d.ts +0 -3
- package/dist/icons/ReviewIcon.d.ts +0 -3
- package/dist/icons/ScheduleIcon.d.ts +0 -3
- package/dist/icons/SearchIcon.d.ts +0 -3
- package/dist/icons/SettingsIcon.d.ts +0 -3
- package/dist/icons/SidebarIcon.d.ts +0 -3
- package/dist/icons/SlidersIcon.d.ts +0 -3
- package/dist/icons/SortAscIcon.d.ts +0 -3
- package/dist/icons/SortDefaultIcon.d.ts +0 -3
- package/dist/icons/SortDesIcon.d.ts +0 -3
- package/dist/icons/StepsCompleteIcon.d.ts +0 -3
- package/dist/icons/StepsCurrentIcon.d.ts +0 -3
- package/dist/icons/StepsIncompleteIcon.d.ts +0 -3
- package/dist/icons/SubmitIcon.d.ts +0 -3
- package/dist/icons/SuccessIcon.d.ts +0 -3
- package/dist/icons/SuperFundIcon.d.ts +0 -3
- package/dist/icons/SyncIcon.d.ts +0 -3
- package/dist/icons/TableIcon.d.ts +0 -3
- package/dist/icons/TaskIcon.d.ts +0 -3
- package/dist/icons/TaxIcon.d.ts +0 -3
- package/dist/icons/TenureIcon.d.ts +0 -3
- package/dist/icons/VisibleIcon.d.ts +0 -3
- package/dist/icons/WarningIcon.d.ts +0 -3
- package/dist/icons/WorkflowsIcon.d.ts +0 -3
- package/dist/icons/_types.d.ts +0 -4
- package/dist/icons/_types.js +0 -0
- package/dist/icons/index.d.ts +0 -99
- package/dist/icons/index.js +0 -100
- package/dist/layouts/BaseLayout.d.ts +0 -6
- package/dist/layouts/BaseLayout.js +0 -10
- package/dist/presentation/Icon.d.ts +0 -21
- package/dist/presentation/Icon.js +0 -28
- package/dist/presentation/Icon.stories.d.ts +0 -20
- package/dist/presentation/Icon.stories.js +0 -24
- package/dist/presentation/IconSymbolSet.d.ts +0 -6
- package/dist/presentation/IconSymbolSet.js +0 -16
|
@@ -8,6 +8,7 @@ type Props<Type> = {
|
|
|
8
8
|
/** When the list has bulk actions, rows can be selected via the checkbox lane. */
|
|
9
9
|
enableRowSelection: boolean;
|
|
10
10
|
href: ((row: Type) => string) | undefined;
|
|
11
|
+
onClick: ((row: Type) => void) | undefined;
|
|
11
12
|
normalizedLeadingSlots: Array<NormalizedSlot<Type>>;
|
|
12
13
|
normalizedPrimary: NormalizedTextField<Type>;
|
|
13
14
|
normalizedSecondary: NormalizedTextField<Type> | null;
|
|
@@ -31,9 +32,7 @@ type Props<Type> = {
|
|
|
31
32
|
/** Flex `justify-content` for `.contentSlots`. */
|
|
32
33
|
contentSlotsJustifyContent: NonNullable<CSSProperties["justifyContent"]>;
|
|
33
34
|
actionsForRow: Array<RichListRowAction<Type>>;
|
|
34
|
-
maxAlwaysVisibleActions: number;
|
|
35
|
-
anyRowHasOverflowAction: boolean;
|
|
36
35
|
lastSelectedRowRef: MutableRefObject<Row<Type> | undefined>;
|
|
37
36
|
};
|
|
38
|
-
declare const RichListRow: <Type>({ row, table, enableRowSelection, href, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow,
|
|
37
|
+
declare const RichListRow: <Type>({ row, table, enableRowSelection, href, onClick, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow, lastSelectedRowRef, }: Props<Type>) => import("react/jsx-runtime").JSX.Element;
|
|
39
38
|
export default RichListRow;
|
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
3
3
|
import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__ from "../../controls/Button.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__controls_ButtonLink_js_4cb13ec4__ from "../../controls/ButtonLink.js";
|
|
5
6
|
import * as __WEBPACK_EXTERNAL_MODULE__controls_Disclosure_js_07249afc__ from "../../controls/Disclosure.js";
|
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE__controls_MenuButton_js_fa7c5c89__ from "../../controls/MenuButton.js";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Overflow_js_e85d27d7__ from "../../icons/components/Overflow.js";
|
|
7
9
|
import * as __WEBPACK_EXTERNAL_MODULE__inputs_CheckboxInput_js_0c849015__ from "../../inputs/CheckboxInput.js";
|
|
8
10
|
import * as __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_c6ca8eb1__ from "../../utils/useNextContext.js";
|
|
9
|
-
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_e5f9af80__ from "../Icon.js";
|
|
10
11
|
import * as __WEBPACK_EXTERNAL_MODULE__helpers_js_87289b43__ from "./helpers.js";
|
|
11
12
|
import * as __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__ from "./RichListRow.module.js";
|
|
12
13
|
function contentSlotAlignClass(align) {
|
|
@@ -19,13 +20,12 @@ function contentSlotAlignClass(align) {
|
|
|
19
20
|
return __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].contentSlotStart;
|
|
20
21
|
}
|
|
21
22
|
}
|
|
22
|
-
const RichListRow = ({ row, table, enableRowSelection, href, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow,
|
|
23
|
+
const RichListRow = ({ row, table, enableRowSelection, href, onClick, normalizedLeadingSlots, normalizedPrimary, normalizedSecondary, mainSlotMaxWidthPx, normalizedContentSlots, normalizedTrailingSlots, isCompactContentSlots, rowMainHidesContentSlotColumns, contentSlotsJustifyContent, actionsForRow, lastSelectedRowRef })=>{
|
|
23
24
|
const { Link } = (0, __WEBPACK_EXTERNAL_MODULE__utils_useNextContext_js_c6ca8eb1__["default"])();
|
|
24
25
|
const rowOriginal = row.original;
|
|
25
26
|
const hrefValue = href ? href(rowOriginal) : void 0;
|
|
26
27
|
const alwaysVisibleActions = actionsForRow.filter((action)=>action.alwaysVisible);
|
|
27
28
|
const overflowActions = actionsForRow.filter((action)=>!action.alwaysVisible);
|
|
28
|
-
const alwaysVisiblePlaceholderCount = Math.max(0, maxAlwaysVisibleActions - alwaysVisibleActions.length);
|
|
29
29
|
const isSlotVisible = (slot)=>(table.getColumn(slot.id)?.getIsVisible() ?? true) && (0, __WEBPACK_EXTERNAL_MODULE__helpers_js_87289b43__.isVisibleAtBreakpoint)(slot.layoutVisibility, isCompactContentSlots);
|
|
30
30
|
const visibleContentSlots = normalizedContentSlots.filter(isSlotVisible);
|
|
31
31
|
const visibleLeadingSlots = normalizedLeadingSlots.filter(isSlotVisible);
|
|
@@ -33,8 +33,9 @@ const RichListRow = ({ row, table, enableRowSelection, href, normalizedLeadingSl
|
|
|
33
33
|
const showPrimary = (0, __WEBPACK_EXTERNAL_MODULE__helpers_js_87289b43__.isVisibleAtBreakpoint)(normalizedPrimary.layoutVisibility, isCompactContentSlots);
|
|
34
34
|
const showSecondary = null !== normalizedSecondary && (0, __WEBPACK_EXTERNAL_MODULE__helpers_js_87289b43__.isVisibleAtBreakpoint)(normalizedSecondary.layoutVisibility, isCompactContentSlots);
|
|
35
35
|
const isLinkable = Boolean(hrefValue);
|
|
36
|
-
const
|
|
37
|
-
const
|
|
36
|
+
const hasRowClick = Boolean(onClick);
|
|
37
|
+
const bulkClickToSelect = enableRowSelection && !isLinkable && !hasRowClick && row.getCanSelect();
|
|
38
|
+
const isClickable = isLinkable || bulkClickToSelect || hasRowClick;
|
|
38
39
|
const applyShiftSelection = ()=>{
|
|
39
40
|
if (!lastSelectedRowRef.current) return false;
|
|
40
41
|
const visibleRows = table.getRowModel().rows;
|
|
@@ -50,11 +51,21 @@ const RichListRow = ({ row, table, enableRowSelection, href, normalizedLeadingSl
|
|
|
50
51
|
return true;
|
|
51
52
|
};
|
|
52
53
|
const handleClickableZoneClick = (event)=>{
|
|
54
|
+
if (onClick) {
|
|
55
|
+
onClick(rowOriginal);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
53
58
|
if (!bulkClickToSelect) return;
|
|
54
59
|
if (event.shiftKey && applyShiftSelection()) return;
|
|
55
60
|
lastSelectedRowRef.current = row;
|
|
56
61
|
row.toggleSelected(!row.getIsSelected());
|
|
57
62
|
};
|
|
63
|
+
const handleClickableZoneKeyDown = (event)=>{
|
|
64
|
+
if (!onClick) return;
|
|
65
|
+
if ("Enter" !== event.key && " " !== event.key) return;
|
|
66
|
+
event.preventDefault();
|
|
67
|
+
onClick(rowOriginal);
|
|
68
|
+
};
|
|
58
69
|
const contentSlotStyle = (slot)=>{
|
|
59
70
|
const isFixed = "fixed" === slot.columnWidthMode;
|
|
60
71
|
if (void 0 === slot.size) {
|
|
@@ -144,7 +155,10 @@ const RichListRow = ({ row, table, enableRowSelection, href, normalizedLeadingSl
|
|
|
144
155
|
}) : null,
|
|
145
156
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
146
157
|
className: (0, __WEBPACK_EXTERNAL_MODULE_clsx__["default"])(__WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].clickableZone, isClickable && __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].clickableZoneActive),
|
|
147
|
-
onClick: bulkClickToSelect ? handleClickableZoneClick : void 0,
|
|
158
|
+
onClick: hasRowClick || bulkClickToSelect ? handleClickableZoneClick : void 0,
|
|
159
|
+
onKeyDown: hasRowClick ? handleClickableZoneKeyDown : void 0,
|
|
160
|
+
role: hasRowClick ? "button" : void 0,
|
|
161
|
+
tabIndex: hasRowClick ? 0 : void 0,
|
|
148
162
|
children: [
|
|
149
163
|
rowOverlay,
|
|
150
164
|
visibleLeadingSlots.map((slot)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
@@ -215,72 +229,46 @@ const RichListRow = ({ row, table, enableRowSelection, href, normalizedLeadingSl
|
|
|
215
229
|
}, slot.id))
|
|
216
230
|
]
|
|
217
231
|
}),
|
|
218
|
-
|
|
232
|
+
alwaysVisibleActions.length > 0 ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
219
233
|
className: __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].actionsLane,
|
|
220
234
|
onClick: (event)=>event.stopPropagation(),
|
|
221
|
-
children:
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
})
|
|
249
|
-
}, `placeholder-${index}`))
|
|
250
|
-
]
|
|
235
|
+
children: alwaysVisibleActions.map((action)=>{
|
|
236
|
+
if ("link" === action.type) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_ButtonLink_js_4cb13ec4__["default"], {
|
|
237
|
+
id: action.id,
|
|
238
|
+
type: "ghost",
|
|
239
|
+
size: "normal",
|
|
240
|
+
icon: action.icon,
|
|
241
|
+
tooltip: action.label,
|
|
242
|
+
href: action.href(rowOriginal),
|
|
243
|
+
external: action.external
|
|
244
|
+
}, action.id);
|
|
245
|
+
if ("onClick" === action.type) return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__["default"], {
|
|
246
|
+
id: action.id,
|
|
247
|
+
type: "ghost",
|
|
248
|
+
size: "normal",
|
|
249
|
+
icon: action.icon,
|
|
250
|
+
tooltip: action.label,
|
|
251
|
+
onClick: ()=>action.onClick(rowOriginal)
|
|
252
|
+
}, action.id);
|
|
253
|
+
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Disclosure_js_07249afc__["default"], {
|
|
254
|
+
id: action.id,
|
|
255
|
+
type: "ghost",
|
|
256
|
+
size: "normal",
|
|
257
|
+
icon: action.icon,
|
|
258
|
+
tooltip: action.label,
|
|
259
|
+
render: (onClose)=>action.render(onClose)
|
|
260
|
+
}, action.id);
|
|
261
|
+
})
|
|
251
262
|
}) : null,
|
|
252
|
-
|
|
263
|
+
overflowActions.length > 0 ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
253
264
|
className: __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].overflowLane,
|
|
254
265
|
onClick: (event)=>event.stopPropagation(),
|
|
255
|
-
children:
|
|
266
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_MenuButton_js_fa7c5c89__["default"], {
|
|
256
267
|
type: "ghost",
|
|
257
|
-
size: "
|
|
268
|
+
size: "normal",
|
|
258
269
|
ariaLabel: "More actions",
|
|
259
|
-
options: overflowActions.map((action)=>(
|
|
260
|
-
|
|
261
|
-
label: action.label,
|
|
262
|
-
icon: action.icon,
|
|
263
|
-
..."onClick" === action.type ? {
|
|
264
|
-
onClick: ()=>action.onClick(rowOriginal),
|
|
265
|
-
type: "onClick"
|
|
266
|
-
} : {
|
|
267
|
-
render: (onClose)=>action.render(onClose),
|
|
268
|
-
type: "render"
|
|
269
|
-
}
|
|
270
|
-
})),
|
|
271
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_e5f9af80__["default"], {
|
|
272
|
-
symbol: "Overflow"
|
|
273
|
-
})
|
|
274
|
-
}) : /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
275
|
-
"aria-hidden": true,
|
|
276
|
-
className: __WEBPACK_EXTERNAL_MODULE__RichListRow_module_js_3bb1d324__["default"].actionPlaceholder,
|
|
277
|
-
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__["default"], {
|
|
278
|
-
type: "ghost",
|
|
279
|
-
size: "small",
|
|
280
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Icon_js_e5f9af80__["default"], {
|
|
281
|
-
symbol: "Overflow"
|
|
282
|
-
})
|
|
283
|
-
})
|
|
270
|
+
options: overflowActions.map((action)=>(0, __WEBPACK_EXTERNAL_MODULE__helpers_js_87289b43__.richListRowActionToMenuOption)(action, rowOriginal)),
|
|
271
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Overflow_js_e85d27d7__["default"], {})
|
|
284
272
|
})
|
|
285
273
|
}) : null
|
|
286
274
|
]
|
|
@@ -27,7 +27,6 @@ const RichListRow_module_rslib_entry_ = {
|
|
|
27
27
|
primaryText: "primaryText-vd9ry0",
|
|
28
28
|
secondaryText: "secondaryText-DmPdJ2",
|
|
29
29
|
mainSlotAdornment: "mainSlotAdornment-IQslEw",
|
|
30
|
-
actionPlaceholder: "actionPlaceholder-yugzJR",
|
|
31
30
|
rowListAtCompactBreakpoint: "rowListAtCompactBreakpoint-g6EL_A",
|
|
32
31
|
textFieldAdornment: "textFieldAdornment-LP2CuE"
|
|
33
32
|
};
|
|
@@ -4,8 +4,12 @@ import * as __WEBPACK_EXTERNAL_MODULE_clsx__ from "clsx";
|
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE_react__ from "react";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__ from "../../controls/Button.js";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE__controls_MenuButton_js_fa7c5c89__ from "../../controls/MenuButton.js";
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_ChevronDown_js_18f696fa__ from "../../icons/components/ChevronDown.js";
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Download_js_486a4eac__ from "../../icons/components/Download.js";
|
|
9
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Filter_js_7e0f51a7__ from "../../icons/components/Filter.js";
|
|
10
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Search_js_cc9f4c8e__ from "../../icons/components/Search.js";
|
|
11
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Sliders_js_1483374f__ from "../../icons/components/Sliders.js";
|
|
7
12
|
import * as __WEBPACK_EXTERNAL_MODULE__inputs_CheckboxInput_js_0c849015__ from "../../inputs/CheckboxInput.js";
|
|
8
|
-
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_e5f9af80__ from "../Icon.js";
|
|
9
13
|
import * as __WEBPACK_EXTERNAL_MODULE__RichListToolbar_module_js_e529a068__ from "./RichListToolbar.module.js";
|
|
10
14
|
const RichListToolbar = ({ hasGlobalSearch, searchTerm, onSearchTermChange, hasFilters, activeFilterCount, onOpenFilterModal, inlineSingleSelectFilter, showDisplay, onOpenDisplayModal, displayActiveCount, showCsvExport, onDownloadCsv, showSelectAll, selectAllAllSelected, selectAllSomeSelected, selectAllDisabled, onSelectAllChange })=>{
|
|
11
15
|
const selectAllRevealed = selectAllAllSelected || selectAllSomeSelected;
|
|
@@ -45,9 +49,7 @@ const RichListToolbar = ({ hasGlobalSearch, searchTerm, onSearchTermChange, hasF
|
|
|
45
49
|
children: [
|
|
46
50
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("div", {
|
|
47
51
|
className: __WEBPACK_EXTERNAL_MODULE__RichListToolbar_module_js_e529a068__["default"].toolbarSearchIcon,
|
|
48
|
-
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
49
|
-
symbol: "Search"
|
|
50
|
-
})
|
|
52
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Search_js_cc9f4c8e__["default"], {})
|
|
51
53
|
}),
|
|
52
54
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)("input", {
|
|
53
55
|
type: "text",
|
|
@@ -63,9 +65,8 @@ const RichListToolbar = ({ hasGlobalSearch, searchTerm, onSearchTermChange, hasF
|
|
|
63
65
|
children: [
|
|
64
66
|
inlineSingleSelectFilter ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_MenuButton_js_fa7c5c89__["default"], {
|
|
65
67
|
ariaLabel: inlineFilterAriaLabel,
|
|
66
|
-
iconRight: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
67
|
-
size: "small"
|
|
68
|
-
symbol: "ChevronDown"
|
|
68
|
+
iconRight: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_ChevronDown_js_18f696fa__["default"], {
|
|
69
|
+
size: "small"
|
|
69
70
|
}),
|
|
70
71
|
id: "richListToolbarInlineFilter",
|
|
71
72
|
options: inlineFilterMenuOptions,
|
|
@@ -78,9 +79,7 @@ const RichListToolbar = ({ hasGlobalSearch, searchTerm, onSearchTermChange, hasF
|
|
|
78
79
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__["default"], {
|
|
79
80
|
type: "ghost",
|
|
80
81
|
onClick: onOpenFilterModal,
|
|
81
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
82
|
-
symbol: "Filter"
|
|
83
|
-
}),
|
|
82
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Filter_js_7e0f51a7__["default"], {}),
|
|
84
83
|
id: "richListFilters",
|
|
85
84
|
tooltip: "Filters",
|
|
86
85
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
|
|
@@ -97,9 +96,7 @@ const RichListToolbar = ({ hasGlobalSearch, searchTerm, onSearchTermChange, hasF
|
|
|
97
96
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__["default"], {
|
|
98
97
|
type: "ghost",
|
|
99
98
|
onClick: onOpenDisplayModal,
|
|
100
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
101
|
-
symbol: "Sliders"
|
|
102
|
-
}),
|
|
99
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Sliders_js_1483374f__["default"], {}),
|
|
103
100
|
id: "richListDisplay",
|
|
104
101
|
tooltip: "Display",
|
|
105
102
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("span", {
|
|
@@ -113,9 +110,7 @@ const RichListToolbar = ({ hasGlobalSearch, searchTerm, onSearchTermChange, hasF
|
|
|
113
110
|
}) : null,
|
|
114
111
|
showCsvExport ? /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_2f50b64a__["default"], {
|
|
115
112
|
type: "ghost",
|
|
116
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
117
|
-
symbol: "Download"
|
|
118
|
-
}),
|
|
113
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Download_js_486a4eac__["default"], {}),
|
|
119
114
|
onClick: onDownloadCsv,
|
|
120
115
|
tooltip: "Download all rows as CSV",
|
|
121
116
|
id: "richListDownloadCsv"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Row } from "@tanstack/react-table";
|
|
2
|
-
import
|
|
2
|
+
import type { MenuButtonOption } from "../../controls/MenuButton";
|
|
3
|
+
import { type NormalizedSlot, type NormalizedTextField, type RichListContentSlot, type RichListRowAction, type RichListSlotSize, type RichListTextField } from "./types";
|
|
3
4
|
export declare const isToggleableContentColumn: <Type>(entry: NormalizedTextField<Type> | NormalizedSlot<Type> | null) => entry is NormalizedSlot<Type>;
|
|
4
5
|
/**
|
|
5
6
|
* Whether this column’s visibility is stored (toggleable content, or `hiddenByDefault`
|
|
@@ -74,4 +75,5 @@ type CsvColumn = {
|
|
|
74
75
|
* `handleDownloadCsv` in `utils/tables` for regression stability.
|
|
75
76
|
*/
|
|
76
77
|
export declare const handleDownloadCsv: <Type>(csvFilename: string | undefined, columns: CsvColumn[], rows: Row<Type>[]) => void;
|
|
78
|
+
export declare const richListRowActionToMenuOption: <Type>(action: RichListRowAction<Type>, row: Type) => MenuButtonOption;
|
|
77
79
|
export {};
|
|
@@ -35,6 +35,7 @@ const normalizeTextField = (field, position)=>{
|
|
|
35
35
|
render: field,
|
|
36
36
|
globalFiltering: false,
|
|
37
37
|
csvExport: false,
|
|
38
|
+
enableSorting: false,
|
|
38
39
|
layoutVisibility: "always"
|
|
39
40
|
};
|
|
40
41
|
return {
|
|
@@ -48,6 +49,8 @@ const normalizeTextField = (field, position)=>{
|
|
|
48
49
|
filter: field.filter,
|
|
49
50
|
globalFiltering: field.globalFiltering ?? void 0 !== field.value,
|
|
50
51
|
csvExport: field.csvExport ?? false,
|
|
52
|
+
enableSorting: field.enableSorting ?? false,
|
|
53
|
+
sortingFn: field.sortingFn,
|
|
51
54
|
layoutVisibility: field.layoutVisibility ?? "always"
|
|
52
55
|
};
|
|
53
56
|
};
|
|
@@ -65,7 +68,8 @@ const normalizeSlot = (slot, position, positionIndex)=>{
|
|
|
65
68
|
globalFiltering: false,
|
|
66
69
|
canToggleVisibility: false,
|
|
67
70
|
hiddenByDefault: false,
|
|
68
|
-
csvExport: false
|
|
71
|
+
csvExport: false,
|
|
72
|
+
enableSorting: false
|
|
69
73
|
};
|
|
70
74
|
}
|
|
71
75
|
return {
|
|
@@ -84,7 +88,9 @@ const normalizeSlot = (slot, position, positionIndex)=>{
|
|
|
84
88
|
globalFiltering: slot.globalFiltering ?? void 0 !== slot.value,
|
|
85
89
|
canToggleVisibility: "content" === position && true === slot.canToggleVisibility,
|
|
86
90
|
hiddenByDefault: slot.hiddenByDefault ?? false,
|
|
87
|
-
csvExport: slot.csvExport ?? false
|
|
91
|
+
csvExport: slot.csvExport ?? false,
|
|
92
|
+
enableSorting: slot.enableSorting ?? false,
|
|
93
|
+
sortingFn: slot.sortingFn
|
|
88
94
|
};
|
|
89
95
|
};
|
|
90
96
|
const isVisibleAtBreakpoint = (layoutVisibility, isCompactContentSlots)=>{
|
|
@@ -118,4 +124,28 @@ const handleDownloadCsv = (csvFilename, columns, rows)=>{
|
|
|
118
124
|
document.body.removeChild(a);
|
|
119
125
|
URL.revokeObjectURL(objectUrl);
|
|
120
126
|
};
|
|
121
|
-
|
|
127
|
+
const richListRowActionToMenuOption = (action, row)=>{
|
|
128
|
+
if ("link" === action.type) return {
|
|
129
|
+
id: action.id,
|
|
130
|
+
label: action.label,
|
|
131
|
+
icon: action.icon,
|
|
132
|
+
type: "link",
|
|
133
|
+
href: action.href(row),
|
|
134
|
+
external: action.external
|
|
135
|
+
};
|
|
136
|
+
if ("onClick" === action.type) return {
|
|
137
|
+
id: action.id,
|
|
138
|
+
label: action.label,
|
|
139
|
+
icon: action.icon,
|
|
140
|
+
type: "onClick",
|
|
141
|
+
onClick: ()=>action.onClick(row)
|
|
142
|
+
};
|
|
143
|
+
return {
|
|
144
|
+
id: action.id,
|
|
145
|
+
label: action.label,
|
|
146
|
+
icon: action.icon,
|
|
147
|
+
type: "render",
|
|
148
|
+
render: action.render
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
export { RICH_LIST_CONTENT_COMPACT_MAX_PX, RICH_LIST_INLINE_PAD_PRESET_PX, ROW_HEIGHT_PRESETS, SELECT_COLUMN_ID, formatSlotSize, handleDownloadCsv, isColumnWithVisibilityState, isToggleableContentColumn, isVisibleAtBreakpoint, normalizeSlot, normalizeTextField, richListInlinePaddingPx, richListRowActionToMenuOption };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentDocument_js_0e5cad31__ from "../../../icons/components/AssignmentDocument.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Edit_js_1595b5f9__ from "../../../icons/components/Edit.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_People_js_eb6cef46__ from "../../../icons/components/People.js";
|
|
5
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Visible_js_9104e1a5__ from "../../../icons/components/Visible.js";
|
|
2
6
|
import * as __WEBPACK_EXTERNAL_MODULE__Card_js_30fa518e__ from "../../Card.js";
|
|
3
7
|
import * as __WEBPACK_EXTERNAL_MODULE__CardContent_js_a2c43d68__ from "../../CardContent.js";
|
|
4
8
|
import * as __WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__ from "../../HStack.js";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__ from "../../Icon.js";
|
|
6
9
|
import * as __WEBPACK_EXTERNAL_MODULE__Modal_js_ddbcc46a__ from "../../Modal.js";
|
|
7
10
|
import * as __WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__ from "../../PlainText.js";
|
|
8
11
|
import * as __WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__ from "../RichList.js";
|
|
@@ -72,9 +75,7 @@ const rowActions = ()=>[
|
|
|
72
75
|
{
|
|
73
76
|
id: "view",
|
|
74
77
|
label: "View group",
|
|
75
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
76
|
-
symbol: "Visible"
|
|
77
|
-
}),
|
|
78
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Visible_js_9104e1a5__["default"], {}),
|
|
78
79
|
alwaysVisible: false,
|
|
79
80
|
type: "render",
|
|
80
81
|
render: (onClose)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__Modal_js_ddbcc46a__["default"], {
|
|
@@ -97,9 +98,7 @@ const rowActions = ()=>[
|
|
|
97
98
|
{
|
|
98
99
|
id: "edit",
|
|
99
100
|
label: "Edit",
|
|
100
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
101
|
-
symbol: "Edit"
|
|
102
|
-
}),
|
|
101
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Edit_js_1595b5f9__["default"], {}),
|
|
103
102
|
alwaysVisible: false,
|
|
104
103
|
type: "onClick",
|
|
105
104
|
onClick: ()=>void 0
|
|
@@ -109,7 +108,6 @@ const ComplianceGroupsList = ({ compactBreakpoint, contentAlignment, rowHeight }
|
|
|
109
108
|
compactBreakpoint: compactBreakpoint,
|
|
110
109
|
contentAlignment: contentAlignment,
|
|
111
110
|
data: groups,
|
|
112
|
-
enableSorting: false,
|
|
113
111
|
fillContainerHeight: true,
|
|
114
112
|
getRowId: (r)=>r.id,
|
|
115
113
|
href: ()=>"#",
|
|
@@ -125,8 +123,7 @@ const ComplianceGroupsList = ({ compactBreakpoint, contentAlignment, rowHeight }
|
|
|
125
123
|
align: "center",
|
|
126
124
|
tagName: "div",
|
|
127
125
|
children: [
|
|
128
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
129
|
-
symbol: "AssignmentDocument",
|
|
126
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_AssignmentDocument_js_0e5cad31__["default"], {
|
|
130
127
|
size: "small",
|
|
131
128
|
tone: "muted"
|
|
132
129
|
}),
|
|
@@ -144,8 +141,7 @@ const ComplianceGroupsList = ({ compactBreakpoint, contentAlignment, rowHeight }
|
|
|
144
141
|
justify: "end",
|
|
145
142
|
tagName: "div",
|
|
146
143
|
children: [
|
|
147
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
148
|
-
symbol: "People",
|
|
144
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_People_js_eb6cef46__["default"], {
|
|
149
145
|
size: "small",
|
|
150
146
|
tone: "muted"
|
|
151
147
|
}),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Edit_js_1595b5f9__ from "../../../icons/components/Edit.js";
|
|
2
3
|
import * as __WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__ from "../../Badge.js";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__ from "../../Icon.js";
|
|
4
4
|
import * as __WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__ from "../../PlainText.js";
|
|
5
5
|
import * as __WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__ from "../RichList.js";
|
|
6
6
|
const fields = [
|
|
@@ -37,9 +37,7 @@ const rowActions = ()=>[
|
|
|
37
37
|
{
|
|
38
38
|
id: "more",
|
|
39
39
|
label: "Field actions",
|
|
40
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
41
|
-
symbol: "Edit"
|
|
42
|
-
}),
|
|
40
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Edit_js_1595b5f9__["default"], {}),
|
|
43
41
|
alwaysVisible: false,
|
|
44
42
|
type: "onClick",
|
|
45
43
|
onClick: ()=>void 0
|
|
@@ -49,7 +47,6 @@ const CustomFieldsList = ({ compactBreakpoint, contentAlignment, rowHeight })=>/
|
|
|
49
47
|
compactBreakpoint: compactBreakpoint,
|
|
50
48
|
contentAlignment: contentAlignment,
|
|
51
49
|
data: fields,
|
|
52
|
-
enableSorting: false,
|
|
53
50
|
fillContainerHeight: true,
|
|
54
51
|
getRowId: (r)=>r.id,
|
|
55
52
|
rowActions: rowActions,
|
|
@@ -11,5 +11,5 @@ export type EmployeeComplianceRow = {
|
|
|
11
11
|
};
|
|
12
12
|
statusDetail: string;
|
|
13
13
|
};
|
|
14
|
-
declare const EmployeeComplianceList: ({ compactBreakpoint, contentAlignment, rowHeight,
|
|
14
|
+
declare const EmployeeComplianceList: ({ compactBreakpoint, contentAlignment, rowHeight, }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
15
|
export default EmployeeComplianceList;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__ from "react/jsx-runtime";
|
|
2
2
|
import * as __WEBPACK_EXTERNAL_MODULE__controls_Button_js_237a92ad__ from "../../../controls/Button.js";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Email_js_c0058dca__ from "../../../icons/components/Email.js";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__icons_components_Warning_js_100033e0__ from "../../../icons/components/Warning.js";
|
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE__Badge_js_56d6dba9__ from "../../Badge.js";
|
|
4
6
|
import * as __WEBPACK_EXTERNAL_MODULE__HStack_js_d2f77bae__ from "../../HStack.js";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__Icon_js_b85e52f7__ from "../../Icon.js";
|
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__ from "../../PlainText.js";
|
|
7
8
|
import * as __WEBPACK_EXTERNAL_MODULE__VStack_js_c336f579__ from "../../VStack.js";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE__RichList_js_64f3f04c__ from "../RichList.js";
|
|
@@ -79,8 +80,7 @@ const leadingSlot = {
|
|
|
79
80
|
minWidth: "var(--size-p1)",
|
|
80
81
|
padding: "var(--size-n2)"
|
|
81
82
|
},
|
|
82
|
-
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
83
|
-
symbol: "Warning",
|
|
83
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Warning_js_100033e0__["default"], {
|
|
84
84
|
size: "default",
|
|
85
85
|
tone: "danger"
|
|
86
86
|
})
|
|
@@ -95,8 +95,7 @@ const complianceStatusHeader = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_r
|
|
|
95
95
|
align: "center",
|
|
96
96
|
spacing: "n2",
|
|
97
97
|
children: [
|
|
98
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
99
|
-
symbol: "Warning",
|
|
98
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Warning_js_100033e0__["default"], {
|
|
100
99
|
tone: "danger"
|
|
101
100
|
}),
|
|
102
101
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
@@ -126,8 +125,7 @@ const complianceStatusHeader = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_r
|
|
|
126
125
|
},
|
|
127
126
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__controls_Button_js_237a92ad__["default"], {
|
|
128
127
|
id: "compliance-send-reminder-all",
|
|
129
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(
|
|
130
|
-
symbol: "Email",
|
|
128
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__icons_components_Email_js_c0058dca__["default"], {
|
|
131
129
|
size: "small"
|
|
132
130
|
}),
|
|
133
131
|
onClick: ()=>{},
|
|
@@ -137,10 +135,11 @@ const complianceStatusHeader = ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_r
|
|
|
137
135
|
})
|
|
138
136
|
]
|
|
139
137
|
});
|
|
140
|
-
const EmployeeComplianceList = ({ compactBreakpoint, contentAlignment, rowHeight
|
|
138
|
+
const EmployeeComplianceList = ({ compactBreakpoint, contentAlignment, rowHeight })=>{
|
|
141
139
|
const titleField = {
|
|
142
140
|
label: "Policy",
|
|
143
141
|
value: (r)=>r.title,
|
|
142
|
+
enableSorting: true,
|
|
144
143
|
globalFiltering: false,
|
|
145
144
|
render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
146
145
|
font: "regular-bold",
|
|
@@ -156,6 +155,7 @@ const EmployeeComplianceList = ({ compactBreakpoint, contentAlignment, rowHeight
|
|
|
156
155
|
id: "compliance",
|
|
157
156
|
label: "Status",
|
|
158
157
|
value: (r)=>`${r.statusBadge.text} ${r.statusDetail}`,
|
|
158
|
+
enableSorting: true,
|
|
159
159
|
globalFiltering: false,
|
|
160
160
|
render: (r)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsxs)("div", {
|
|
161
161
|
style: {
|
|
@@ -253,7 +253,6 @@ const EmployeeComplianceList = ({ compactBreakpoint, contentAlignment, rowHeight
|
|
|
253
253
|
fillContainerHeight: true,
|
|
254
254
|
compactBreakpoint: compactBreakpoint,
|
|
255
255
|
contentAlignment: contentAlignment,
|
|
256
|
-
enableSorting: enableSorting,
|
|
257
256
|
href: ()=>"#",
|
|
258
257
|
getRowId: (r)=>r.id,
|
|
259
258
|
header: ()=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime_225474f2__.jsx)(__WEBPACK_EXTERNAL_MODULE__PlainText_js_acfb96d1__["default"], {
|
|
@@ -282,7 +281,6 @@ const EmployeeComplianceList = ({ compactBreakpoint, contentAlignment, rowHeight
|
|
|
282
281
|
fillContainerHeight: true,
|
|
283
282
|
compactBreakpoint: compactBreakpoint,
|
|
284
283
|
contentAlignment: contentAlignment,
|
|
285
|
-
enableSorting: false,
|
|
286
284
|
getRowId: (r)=>r.id,
|
|
287
285
|
header: complianceStatusHeader,
|
|
288
286
|
rowHeight: rowHeight,
|
|
@@ -1,13 +1,11 @@
|
|
|
1
|
-
import type { ComponentProps } from "react";
|
|
1
|
+
import type { ComponentProps, ReactNode } from "react";
|
|
2
2
|
import Badge from "../../Badge";
|
|
3
|
-
import Icon from "../../Icon";
|
|
4
3
|
import { type CommonProps } from "./shared";
|
|
5
4
|
type NameBadgeColor = NonNullable<ComponentProps<typeof Badge>["color"]>;
|
|
6
|
-
type IconSymbol = ComponentProps<typeof Icon>["symbol"];
|
|
7
5
|
export type EmployeePaperworkRow = {
|
|
8
6
|
id: string;
|
|
9
7
|
title: string;
|
|
10
|
-
|
|
8
|
+
leadingIcon: ReactNode;
|
|
11
9
|
statusBadge: {
|
|
12
10
|
id: string;
|
|
13
11
|
text: string;
|
|
@@ -17,5 +15,5 @@ export type EmployeePaperworkRow = {
|
|
|
17
15
|
statusTone: "danger" | "muted" | "warning";
|
|
18
16
|
statusLine: string;
|
|
19
17
|
};
|
|
20
|
-
declare const EmployeePaperworkList: ({ compactBreakpoint, contentAlignment,
|
|
18
|
+
declare const EmployeePaperworkList: ({ compactBreakpoint, contentAlignment, rowHeight }: CommonProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
19
|
export default EmployeePaperworkList;
|