@economic/taco 1.1.7 → 1.1.9-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +42 -0
- package/dist/components/Backdrop/Backdrop.d.ts +3 -0
- package/dist/components/Badge/Badge.d.ts +23 -0
- package/dist/components/Banner/Banner.d.ts +16 -0
- package/dist/components/Banner/util.d.ts +3 -0
- package/dist/components/Button/Button.d.ts +60 -0
- package/dist/components/Button/util.d.ts +5 -0
- package/dist/components/Calendar/Calendar.d.ts +33 -0
- package/dist/components/Card/Card.d.ts +14 -0
- package/dist/components/Checkbox/Checkbox.d.ts +26 -0
- package/dist/components/Combobox/Combobox.d.ts +51 -0
- package/dist/components/Combobox/useCombobox.d.ts +19 -0
- package/dist/components/Datepicker/Datepicker.d.ts +46 -0
- package/dist/components/Datepicker/useDatepicker.d.ts +12 -0
- package/dist/components/Dialog/Context.d.ts +21 -0
- package/dist/components/Dialog/Dialog.d.ts +47 -0
- package/dist/components/Dialog/components/Content.d.ts +23 -0
- package/dist/components/Dialog/components/Drawer.d.ts +10 -0
- package/dist/components/Dialog/components/Extra.d.ts +4 -0
- package/dist/components/Dialog/components/Trigger.d.ts +3 -0
- package/dist/components/Dialog/types.d.ts +1 -0
- package/dist/components/Field/Field.d.ts +26 -0
- package/dist/components/Form/Form.d.ts +14 -0
- package/dist/components/Group/Group.d.ts +20 -0
- package/dist/components/Hanger/Hanger.d.ts +31 -0
- package/dist/components/HoverCard/HoverCard.d.ts +16 -0
- package/dist/components/Icon/Icon.d.ts +12 -0
- package/dist/components/Icon/components/AccountPreview.d.ts +3 -0
- package/dist/components/Icon/components/Accounting.d.ts +3 -0
- package/dist/components/Icon/components/AccountingYear.d.ts +3 -0
- package/dist/components/Icon/components/AccountingYearCancel.d.ts +3 -0
- package/dist/components/Icon/components/ArrowBottom.d.ts +3 -0
- package/dist/components/Icon/components/ArrowDown.d.ts +3 -0
- package/dist/components/Icon/components/ArrowEnd.d.ts +3 -0
- package/dist/components/Icon/components/ArrowLeft.d.ts +3 -0
- package/dist/components/Icon/components/ArrowRight.d.ts +3 -0
- package/dist/components/Icon/components/ArrowStart.d.ts +3 -0
- package/dist/components/Icon/components/ArrowTop.d.ts +3 -0
- package/dist/components/Icon/components/ArrowUp.d.ts +3 -0
- package/dist/components/Icon/components/Attach.d.ts +3 -0
- package/dist/components/Icon/components/AttachAuto.d.ts +3 -0
- package/dist/components/Icon/components/AttachCancel.d.ts +3 -0
- package/dist/components/Icon/components/Autotext.d.ts +3 -0
- package/dist/components/Icon/components/AutotextInsert.d.ts +3 -0
- package/dist/components/Icon/components/Basic.d.ts +3 -0
- package/dist/components/Icon/components/BasicTabs.d.ts +3 -0
- package/dist/components/Icon/components/BellSolid.d.ts +3 -0
- package/dist/components/Icon/components/Book.d.ts +3 -0
- package/dist/components/Icon/components/Booking.d.ts +3 -0
- package/dist/components/Icon/components/Budget.d.ts +3 -0
- package/dist/components/Icon/components/Calendar.d.ts +3 -0
- package/dist/components/Icon/components/CashAccount.d.ts +3 -0
- package/dist/components/Icon/components/CashReports.d.ts +3 -0
- package/dist/components/Icon/components/Chat.d.ts +3 -0
- package/dist/components/Icon/components/ChatSolid.d.ts +3 -0
- package/dist/components/Icon/components/ChevronDown.d.ts +3 -0
- package/dist/components/Icon/components/ChevronDownDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronDownSolid.d.ts +3 -0
- package/dist/components/Icon/components/ChevronLeft.d.ts +3 -0
- package/dist/components/Icon/components/ChevronLeftDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronRight.d.ts +3 -0
- package/dist/components/Icon/components/ChevronRightDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronUp.d.ts +3 -0
- package/dist/components/Icon/components/ChevronUpDouble.d.ts +3 -0
- package/dist/components/Icon/components/ChevronUpSolid.d.ts +3 -0
- package/dist/components/Icon/components/CircleClose.d.ts +3 -0
- package/dist/components/Icon/components/CircleMinus.d.ts +3 -0
- package/dist/components/Icon/components/CirclePlus.d.ts +3 -0
- package/dist/components/Icon/components/CircleTick.d.ts +3 -0
- package/dist/components/Icon/components/Clamp.d.ts +3 -0
- package/dist/components/Icon/components/ClampOpen.d.ts +3 -0
- package/dist/components/Icon/components/Close.d.ts +3 -0
- package/dist/components/Icon/components/ConnectionEnable.d.ts +3 -0
- package/dist/components/Icon/components/ConnectionRevoke.d.ts +3 -0
- package/dist/components/Icon/components/Contacts.d.ts +3 -0
- package/dist/components/Icon/components/Copy.d.ts +3 -0
- package/dist/components/Icon/components/Courses.d.ts +3 -0
- package/dist/components/Icon/components/Credit.d.ts +3 -0
- package/dist/components/Icon/components/Delete.d.ts +3 -0
- package/dist/components/Icon/components/DeletePermanently.d.ts +3 -0
- package/dist/components/Icon/components/Depecriate.d.ts +3 -0
- package/dist/components/Icon/components/Developer.d.ts +3 -0
- package/dist/components/Icon/components/DistributionTemplate.d.ts +3 -0
- package/dist/components/Icon/components/Document.d.ts +3 -0
- package/dist/components/Icon/components/DocumentApprove.d.ts +3 -0
- package/dist/components/Icon/components/DocumentCreateEntry.d.ts +3 -0
- package/dist/components/Icon/components/DocumentCut.d.ts +3 -0
- package/dist/components/Icon/components/DocumentError.d.ts +3 -0
- package/dist/components/Icon/components/DocumentIsolatePage.d.ts +3 -0
- package/dist/components/Icon/components/DocumentMerge.d.ts +3 -0
- package/dist/components/Icon/components/DocumentMove.d.ts +3 -0
- package/dist/components/Icon/components/DocumentPreview.d.ts +3 -0
- package/dist/components/Icon/components/DocumentReceived.d.ts +3 -0
- package/dist/components/Icon/components/DocumentRejectedRequest.d.ts +3 -0
- package/dist/components/Icon/components/DocumentSplit.d.ts +3 -0
- package/dist/components/Icon/components/DocumentTime.d.ts +3 -0
- package/dist/components/Icon/components/Download.d.ts +3 -0
- package/dist/components/Icon/components/Drag.d.ts +3 -0
- package/dist/components/Icon/components/ECopedia.d.ts +3 -0
- package/dist/components/Icon/components/ESignature.d.ts +3 -0
- package/dist/components/Icon/components/Edit.d.ts +3 -0
- package/dist/components/Icon/components/EllipsisHorizontal.d.ts +3 -0
- package/dist/components/Icon/components/EllipsisVertical.d.ts +3 -0
- package/dist/components/Icon/components/EntriesOnAccount.d.ts +3 -0
- package/dist/components/Icon/components/EntriesOpen.d.ts +3 -0
- package/dist/components/Icon/components/EntriesWarning.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeCustomerInvoice.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeCustomerPayment.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeJournalEntry.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeManualCustomerInvoice.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeSupplierInvoice.d.ts +3 -0
- package/dist/components/Icon/components/EntryTypeSupplierPayment.d.ts +3 -0
- package/dist/components/Icon/components/Envelope.d.ts +3 -0
- package/dist/components/Icon/components/EnvelopeApproved.d.ts +3 -0
- package/dist/components/Icon/components/ExpandView.d.ts +3 -0
- package/dist/components/Icon/components/Expenses.d.ts +3 -0
- package/dist/components/Icon/components/Export.d.ts +3 -0
- package/dist/components/Icon/components/ExportToExcel.d.ts +3 -0
- package/dist/components/Icon/components/ExportToPdf.d.ts +3 -0
- package/dist/components/Icon/components/Filter.d.ts +3 -0
- package/dist/components/Icon/components/FilterSolid.d.ts +3 -0
- package/dist/components/Icon/components/GraphSolid.d.ts +3 -0
- package/dist/components/Icon/components/Hash.d.ts +3 -0
- package/dist/components/Icon/components/Home.d.ts +3 -0
- package/dist/components/Icon/components/Images.d.ts +3 -0
- package/dist/components/Icon/components/Import.d.ts +3 -0
- package/dist/components/Icon/components/Inbox.d.ts +3 -0
- package/dist/components/Icon/components/InboxEinvoicing.d.ts +3 -0
- package/dist/components/Icon/components/InboxScanning.d.ts +3 -0
- package/dist/components/Icon/components/InboxSmart.d.ts +3 -0
- package/dist/components/Icon/components/Info.d.ts +3 -0
- package/dist/components/Icon/components/Inventory.d.ts +3 -0
- package/dist/components/Icon/components/InventoryMatrix.d.ts +3 -0
- package/dist/components/Icon/components/JournalPro.d.ts +3 -0
- package/dist/components/Icon/components/Layout.d.ts +3 -0
- package/dist/components/Icon/components/LayoutBoth.d.ts +3 -0
- package/dist/components/Icon/components/LayoutFirst.d.ts +3 -0
- package/dist/components/Icon/components/LayoutLast.d.ts +3 -0
- package/dist/components/Icon/components/LayoutNone.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCard.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardCustomerReminder.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardManualCustomerInvoice.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardObsoleteStock.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardOpeningEntry.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardReservedEntry.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardShrinkagePilferage.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardStockAdjustment.d.ts +3 -0
- package/dist/components/Icon/components/LedgerCardTransferredOpeningEntry.d.ts +3 -0
- package/dist/components/Icon/components/Lightbulb.d.ts +3 -0
- package/dist/components/Icon/components/Line.d.ts +3 -0
- package/dist/components/Icon/components/List.d.ts +3 -0
- package/dist/components/Icon/components/ListBulleted.d.ts +3 -0
- package/dist/components/Icon/components/ListSearch.d.ts +3 -0
- package/dist/components/Icon/components/LockOpen.d.ts +3 -0
- package/dist/components/Icon/components/Log.d.ts +3 -0
- package/dist/components/Icon/components/LogOut.d.ts +3 -0
- package/dist/components/Icon/components/Market.d.ts +3 -0
- package/dist/components/Icon/components/MatchAmount.d.ts +3 -0
- package/dist/components/Icon/components/MatchEntries.d.ts +3 -0
- package/dist/components/Icon/components/Menu.d.ts +3 -0
- package/dist/components/Icon/components/Mileage.d.ts +3 -0
- package/dist/components/Icon/components/ModalResize.d.ts +3 -0
- package/dist/components/Icon/components/ModalShrink.d.ts +3 -0
- package/dist/components/Icon/components/More.d.ts +3 -0
- package/dist/components/Icon/components/MoreSolid.d.ts +3 -0
- package/dist/components/Icon/components/Move.d.ts +3 -0
- package/dist/components/Icon/components/NavigationList.d.ts +3 -0
- package/dist/components/Icon/components/Note.d.ts +3 -0
- package/dist/components/Icon/components/NoteFollowUp.d.ts +3 -0
- package/dist/components/Icon/components/NoteRead.d.ts +3 -0
- package/dist/components/Icon/components/PartnerApi.d.ts +3 -0
- package/dist/components/Icon/components/Period.d.ts +3 -0
- package/dist/components/Icon/components/PersonChange.d.ts +3 -0
- package/dist/components/Icon/components/PersonMinus.d.ts +3 -0
- package/dist/components/Icon/components/PersonPlus.d.ts +3 -0
- package/dist/components/Icon/components/PersonTick.d.ts +3 -0
- package/dist/components/Icon/components/Play.d.ts +3 -0
- package/dist/components/Icon/components/PlusMinus.d.ts +3 -0
- package/dist/components/Icon/components/Print.d.ts +3 -0
- package/dist/components/Icon/components/ProcessPayment.d.ts +3 -0
- package/dist/components/Icon/components/ProductLedgerCard.d.ts +3 -0
- package/dist/components/Icon/components/Profile.d.ts +3 -0
- package/dist/components/Icon/components/ProjectCards.d.ts +3 -0
- package/dist/components/Icon/components/Projects.d.ts +3 -0
- package/dist/components/Icon/components/Quicklinks.d.ts +3 -0
- package/dist/components/Icon/components/RatingBankruptcy.d.ts +3 -0
- package/dist/components/Icon/components/RatingPaymentProblems.d.ts +3 -0
- package/dist/components/Icon/components/Reconciled.d.ts +3 -0
- package/dist/components/Icon/components/Refresh.d.ts +3 -0
- package/dist/components/Icon/components/Report.d.ts +3 -0
- package/dist/components/Icon/components/ReportSolid.d.ts +3 -0
- package/dist/components/Icon/components/Restore.d.ts +3 -0
- package/dist/components/Icon/components/RotateLeft.d.ts +3 -0
- package/dist/components/Icon/components/RotateRight.d.ts +3 -0
- package/dist/components/Icon/components/Sales.d.ts +3 -0
- package/dist/components/Icon/components/Search.d.ts +3 -0
- package/dist/components/Icon/components/SearchBold.d.ts +3 -0
- package/dist/components/Icon/components/Secure.d.ts +3 -0
- package/dist/components/Icon/components/SecureTick.d.ts +3 -0
- package/dist/components/Icon/components/Settings.d.ts +3 -0
- package/dist/components/Icon/components/SettingsSolid.d.ts +3 -0
- package/dist/components/Icon/components/Shortcuts.d.ts +3 -0
- package/dist/components/Icon/components/ShowAll.d.ts +3 -0
- package/dist/components/Icon/components/ShowLess.d.ts +3 -0
- package/dist/components/Icon/components/ShowMore.d.ts +3 -0
- package/dist/components/Icon/components/ShowTemplate.d.ts +3 -0
- package/dist/components/Icon/components/Sliders.d.ts +3 -0
- package/dist/components/Icon/components/Smartpay.d.ts +3 -0
- package/dist/components/Icon/components/SortBy.d.ts +3 -0
- package/dist/components/Icon/components/Spinner.d.ts +3 -0
- package/dist/components/Icon/components/Star.d.ts +3 -0
- package/dist/components/Icon/components/StarSolid.d.ts +3 -0
- package/dist/components/Icon/components/Subscriptions.d.ts +3 -0
- package/dist/components/Icon/components/SystemEntries.d.ts +3 -0
- package/dist/components/Icon/components/Tag.d.ts +3 -0
- package/dist/components/Icon/components/TemplateOverride.d.ts +3 -0
- package/dist/components/Icon/components/Templates.d.ts +3 -0
- package/dist/components/Icon/components/ThumbBoth.d.ts +3 -0
- package/dist/components/Icon/components/ThumbDown.d.ts +3 -0
- package/dist/components/Icon/components/ThumbDownSolid.d.ts +3 -0
- package/dist/components/Icon/components/ThumbUp.d.ts +3 -0
- package/dist/components/Icon/components/ThumbUpSolid.d.ts +3 -0
- package/dist/components/Icon/components/Tick.d.ts +3 -0
- package/dist/components/Icon/components/Time.d.ts +3 -0
- package/dist/components/Icon/components/Transfer.d.ts +3 -0
- package/dist/components/Icon/components/TransferCancel.d.ts +3 -0
- package/dist/components/Icon/components/TransferLocked.d.ts +3 -0
- package/dist/components/Icon/components/Undock.d.ts +3 -0
- package/dist/components/Icon/components/Unreconciled.d.ts +3 -0
- package/dist/components/Icon/components/Warning.d.ts +3 -0
- package/dist/components/Icon/components/Webshop.d.ts +3 -0
- package/dist/components/Icon/components/Website.d.ts +3 -0
- package/dist/components/Icon/components/Workflow.d.ts +3 -0
- package/dist/components/Icon/components/Zoom.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +3 -0
- package/dist/components/IconButton/IconButton.d.ts +63 -0
- package/dist/components/Input/Input.d.ts +20 -0
- package/dist/components/Input/util.d.ts +2 -0
- package/dist/components/Listbox/Listbox.d.ts +96 -0
- package/dist/components/Listbox/ScrollableList.d.ts +120 -0
- package/dist/components/Listbox/useListbox.d.ts +9 -0
- package/dist/components/Listbox/useMultiListbox.d.ts +9 -0
- package/dist/components/Listbox/useTypeahead.d.ts +10 -0
- package/dist/components/Listbox/util.d.ts +25 -0
- package/dist/components/Menu/Context.d.ts +15 -0
- package/dist/components/Menu/Menu.d.ts +38 -0
- package/dist/components/Menu/components/Checkbox.d.ts +7 -0
- package/dist/components/Menu/components/Content.d.ts +13 -0
- package/dist/components/Menu/components/Header.d.ts +3 -0
- package/dist/components/Menu/components/Item.d.ts +26 -0
- package/dist/components/Menu/components/Link.d.ts +14 -0
- package/dist/components/Menu/components/RadioGroup.d.ts +9 -0
- package/dist/components/Menu/components/Separator.d.ts +2 -0
- package/dist/components/Menu/components/Trigger.d.ts +7 -0
- package/dist/components/Navigation/Navigation.d.ts +50 -0
- package/dist/components/Pagination/PageNumbers.d.ts +8 -0
- package/dist/components/Pagination/Pagination.d.ts +100 -0
- package/dist/components/Pagination/usePagination.d.ts +11 -0
- package/dist/components/Pagination/usePaginationShortcuts.d.ts +8 -0
- package/dist/components/Popover/Popover.d.ts +22 -0
- package/dist/components/Popover/Primitives.d.ts +12 -0
- package/dist/components/Progress/Progress.d.ts +10 -0
- package/dist/components/Provider/Provider.d.ts +142 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +52 -0
- package/dist/components/SearchInput/SearchInput.d.ts +16 -0
- package/dist/components/Select/Select.d.ts +40 -0
- package/dist/components/Select/useSelect.d.ts +21 -0
- package/dist/components/Spinner/Spinner.d.ts +20 -0
- package/dist/components/Switch/Switch.d.ts +19 -0
- package/dist/components/Table/Table.d.ts +14 -0
- package/dist/components/Table/Table.storyexample.d.ts +9 -0
- package/dist/components/Table/components/BaseTable.d.ts +8 -0
- package/dist/components/Table/components/PaginatedTable.d.ts +2 -0
- package/dist/components/Table/components/Table.d.ts +2 -0
- package/dist/components/Table/components/WindowedTable.d.ts +2 -0
- package/dist/components/Table/hooks/plugins/useRowActions.d.ts +4 -0
- package/dist/components/Table/hooks/plugins/useRowDraggable.d.ts +3 -0
- package/dist/components/Table/hooks/plugins/useRowEditing.d.ts +2 -0
- package/dist/components/Table/hooks/plugins/useRowSelect.d.ts +3 -0
- package/dist/components/Table/hooks/useRowCreation.d.ts +11 -0
- package/dist/components/Table/hooks/useTable.d.ts +38 -0
- package/dist/components/Table/hooks/useTableKeyboardNavigation.d.ts +3 -0
- package/dist/components/Table/types.d.ts +284 -0
- package/dist/components/Table/util/renderColumn.d.ts +1 -0
- package/dist/components/Table/util/renderRow.d.ts +2 -0
- package/dist/components/Table/util/rowIndexPath.d.ts +5 -0
- package/dist/components/Table/util/sortTypes.d.ts +4 -0
- package/dist/components/Table/util.d.ts +12 -0
- package/dist/components/Tabs/Tabs.d.ts +55 -0
- package/dist/components/Textarea/Textarea.d.ts +15 -0
- package/dist/components/Toast/Toast.d.ts +36 -0
- package/dist/components/Toast/Toaster.d.ts +35 -0
- package/dist/components/Toast/util.d.ts +3 -0
- package/dist/components/Tooltip/Tooltip.d.ts +23 -0
- package/dist/components/Tour/Tour.d.ts +72 -0
- package/dist/components/Treeview/Treeview.d.ts +25 -0
- package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +4 -0
- package/dist/esm/_virtual/_rollupPluginBabelHelpers.js +34 -0
- package/dist/esm/_virtual/_rollupPluginBabelHelpers.js.map +1 -0
- package/dist/esm/components/Accordion/Accordion.js +93 -0
- package/dist/esm/components/Accordion/Accordion.js.map +1 -0
- package/dist/esm/components/Backdrop/Backdrop.js +13 -0
- package/dist/esm/components/Backdrop/Backdrop.js.map +1 -0
- package/dist/esm/components/Badge/Badge.js +32 -0
- package/dist/esm/components/Badge/Badge.js.map +1 -0
- package/dist/esm/components/Banner/Banner.js +24 -0
- package/dist/esm/components/Banner/Banner.js.map +1 -0
- package/dist/esm/components/Banner/util.js +36 -0
- package/dist/esm/components/Banner/util.js.map +1 -0
- package/dist/esm/components/Button/Button.js +36 -0
- package/dist/esm/components/Button/Button.js.map +1 -0
- package/dist/esm/components/Button/util.js +77 -0
- package/dist/esm/components/Button/util.js.map +1 -0
- package/dist/esm/components/Calendar/Calendar.js +152 -0
- package/dist/esm/components/Calendar/Calendar.js.map +1 -0
- package/dist/esm/components/Card/Card.js +91 -0
- package/dist/esm/components/Card/Card.js.map +1 -0
- package/dist/esm/components/Checkbox/Checkbox.js +58 -0
- package/dist/esm/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/esm/components/Combobox/Combobox.js +89 -0
- package/dist/esm/components/Combobox/Combobox.js.map +1 -0
- package/dist/esm/components/Combobox/useCombobox.js +285 -0
- package/dist/esm/components/Combobox/useCombobox.js.map +1 -0
- package/dist/esm/components/Datepicker/Datepicker.js +75 -0
- package/dist/esm/components/Datepicker/Datepicker.js.map +1 -0
- package/dist/esm/components/Datepicker/useDatepicker.js +88 -0
- package/dist/esm/components/Datepicker/useDatepicker.js.map +1 -0
- package/dist/esm/components/Dialog/Context.js +26 -0
- package/dist/esm/components/Dialog/Context.js.map +1 -0
- package/dist/esm/components/Dialog/Dialog.js +98 -0
- package/dist/esm/components/Dialog/Dialog.js.map +1 -0
- package/dist/esm/components/Dialog/components/Content.js +135 -0
- package/dist/esm/components/Dialog/components/Content.js.map +1 -0
- package/dist/esm/components/Dialog/components/Drawer.js +42 -0
- package/dist/esm/components/Dialog/components/Drawer.js.map +1 -0
- package/dist/esm/components/Dialog/components/Extra.js +15 -0
- package/dist/esm/components/Dialog/components/Extra.js.map +1 -0
- package/dist/esm/components/Dialog/components/Trigger.js +15 -0
- package/dist/esm/components/Dialog/components/Trigger.js.map +1 -0
- package/dist/esm/components/Field/Field.js +33 -0
- package/dist/esm/components/Field/Field.js.map +1 -0
- package/dist/esm/components/Form/Form.js +22 -0
- package/dist/esm/components/Form/Form.js.map +1 -0
- package/dist/esm/components/Group/Group.js +20 -0
- package/dist/esm/components/Group/Group.js.map +1 -0
- package/dist/esm/components/Hanger/Hanger.js +104 -0
- package/dist/esm/components/Hanger/Hanger.js.map +1 -0
- package/dist/esm/components/HoverCard/HoverCard.js +32 -0
- package/dist/esm/components/HoverCard/HoverCard.js.map +1 -0
- package/dist/esm/components/Icon/Icon.js +29 -0
- package/dist/esm/components/Icon/Icon.js.map +1 -0
- package/dist/esm/components/Icon/components/AccountPreview.js +18 -0
- package/dist/esm/components/Icon/components/AccountPreview.js.map +1 -0
- package/dist/esm/components/Icon/components/Accounting.js +18 -0
- package/dist/esm/components/Icon/components/Accounting.js.map +1 -0
- package/dist/esm/components/Icon/components/AccountingYear.js +18 -0
- package/dist/esm/components/Icon/components/AccountingYear.js.map +1 -0
- package/dist/esm/components/Icon/components/AccountingYearCancel.js +18 -0
- package/dist/esm/components/Icon/components/AccountingYearCancel.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowBottom.js +18 -0
- package/dist/esm/components/Icon/components/ArrowBottom.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowDown.js +18 -0
- package/dist/esm/components/Icon/components/ArrowDown.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowEnd.js +18 -0
- package/dist/esm/components/Icon/components/ArrowEnd.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowLeft.js +18 -0
- package/dist/esm/components/Icon/components/ArrowLeft.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowRight.js +18 -0
- package/dist/esm/components/Icon/components/ArrowRight.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowStart.js +18 -0
- package/dist/esm/components/Icon/components/ArrowStart.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowTop.js +18 -0
- package/dist/esm/components/Icon/components/ArrowTop.js.map +1 -0
- package/dist/esm/components/Icon/components/ArrowUp.js +18 -0
- package/dist/esm/components/Icon/components/ArrowUp.js.map +1 -0
- package/dist/esm/components/Icon/components/Attach.js +18 -0
- package/dist/esm/components/Icon/components/Attach.js.map +1 -0
- package/dist/esm/components/Icon/components/AttachAuto.js +18 -0
- package/dist/esm/components/Icon/components/AttachAuto.js.map +1 -0
- package/dist/esm/components/Icon/components/AttachCancel.js +18 -0
- package/dist/esm/components/Icon/components/AttachCancel.js.map +1 -0
- package/dist/esm/components/Icon/components/Autotext.js +18 -0
- package/dist/esm/components/Icon/components/Autotext.js.map +1 -0
- package/dist/esm/components/Icon/components/AutotextInsert.js +18 -0
- package/dist/esm/components/Icon/components/AutotextInsert.js.map +1 -0
- package/dist/esm/components/Icon/components/Basic.js +18 -0
- package/dist/esm/components/Icon/components/Basic.js.map +1 -0
- package/dist/esm/components/Icon/components/BasicTabs.js +18 -0
- package/dist/esm/components/Icon/components/BasicTabs.js.map +1 -0
- package/dist/esm/components/Icon/components/BellSolid.js +18 -0
- package/dist/esm/components/Icon/components/BellSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Book.js +18 -0
- package/dist/esm/components/Icon/components/Book.js.map +1 -0
- package/dist/esm/components/Icon/components/Booking.js +18 -0
- package/dist/esm/components/Icon/components/Booking.js.map +1 -0
- package/dist/esm/components/Icon/components/Budget.js +18 -0
- package/dist/esm/components/Icon/components/Budget.js.map +1 -0
- package/dist/esm/components/Icon/components/Calendar.js +18 -0
- package/dist/esm/components/Icon/components/Calendar.js.map +1 -0
- package/dist/esm/components/Icon/components/CashAccount.js +17 -0
- package/dist/esm/components/Icon/components/CashAccount.js.map +1 -0
- package/dist/esm/components/Icon/components/CashReports.js +18 -0
- package/dist/esm/components/Icon/components/CashReports.js.map +1 -0
- package/dist/esm/components/Icon/components/Chat.js +18 -0
- package/dist/esm/components/Icon/components/Chat.js.map +1 -0
- package/dist/esm/components/Icon/components/ChatSolid.js +18 -0
- package/dist/esm/components/Icon/components/ChatSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronDown.js +18 -0
- package/dist/esm/components/Icon/components/ChevronDown.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronDownDouble.js +18 -0
- package/dist/esm/components/Icon/components/ChevronDownDouble.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronDownSolid.js +18 -0
- package/dist/esm/components/Icon/components/ChevronDownSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronLeft.js +18 -0
- package/dist/esm/components/Icon/components/ChevronLeft.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronLeftDouble.js +18 -0
- package/dist/esm/components/Icon/components/ChevronLeftDouble.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronRight.js +18 -0
- package/dist/esm/components/Icon/components/ChevronRight.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronRightDouble.js +18 -0
- package/dist/esm/components/Icon/components/ChevronRightDouble.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronUp.js +18 -0
- package/dist/esm/components/Icon/components/ChevronUp.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronUpDouble.js +18 -0
- package/dist/esm/components/Icon/components/ChevronUpDouble.js.map +1 -0
- package/dist/esm/components/Icon/components/ChevronUpSolid.js +18 -0
- package/dist/esm/components/Icon/components/ChevronUpSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/CircleClose.js +19 -0
- package/dist/esm/components/Icon/components/CircleClose.js.map +1 -0
- package/dist/esm/components/Icon/components/CircleMinus.js +18 -0
- package/dist/esm/components/Icon/components/CircleMinus.js.map +1 -0
- package/dist/esm/components/Icon/components/CirclePlus.js +18 -0
- package/dist/esm/components/Icon/components/CirclePlus.js.map +1 -0
- package/dist/esm/components/Icon/components/CircleTick.js +18 -0
- package/dist/esm/components/Icon/components/CircleTick.js.map +1 -0
- package/dist/esm/components/Icon/components/Clamp.js +18 -0
- package/dist/esm/components/Icon/components/Clamp.js.map +1 -0
- package/dist/esm/components/Icon/components/ClampOpen.js +18 -0
- package/dist/esm/components/Icon/components/ClampOpen.js.map +1 -0
- package/dist/esm/components/Icon/components/Close.js +18 -0
- package/dist/esm/components/Icon/components/Close.js.map +1 -0
- package/dist/esm/components/Icon/components/ConnectionEnable.js +17 -0
- package/dist/esm/components/Icon/components/ConnectionEnable.js.map +1 -0
- package/dist/esm/components/Icon/components/ConnectionRevoke.js +17 -0
- package/dist/esm/components/Icon/components/ConnectionRevoke.js.map +1 -0
- package/dist/esm/components/Icon/components/Contacts.js +18 -0
- package/dist/esm/components/Icon/components/Contacts.js.map +1 -0
- package/dist/esm/components/Icon/components/Copy.js +18 -0
- package/dist/esm/components/Icon/components/Copy.js.map +1 -0
- package/dist/esm/components/Icon/components/Courses.js +17 -0
- package/dist/esm/components/Icon/components/Courses.js.map +1 -0
- package/dist/esm/components/Icon/components/Credit.js +18 -0
- package/dist/esm/components/Icon/components/Credit.js.map +1 -0
- package/dist/esm/components/Icon/components/Delete.js +18 -0
- package/dist/esm/components/Icon/components/Delete.js.map +1 -0
- package/dist/esm/components/Icon/components/DeletePermanently.js +18 -0
- package/dist/esm/components/Icon/components/DeletePermanently.js.map +1 -0
- package/dist/esm/components/Icon/components/Depecriate.js +18 -0
- package/dist/esm/components/Icon/components/Depecriate.js.map +1 -0
- package/dist/esm/components/Icon/components/Developer.js +18 -0
- package/dist/esm/components/Icon/components/Developer.js.map +1 -0
- package/dist/esm/components/Icon/components/DistributionTemplate.js +18 -0
- package/dist/esm/components/Icon/components/DistributionTemplate.js.map +1 -0
- package/dist/esm/components/Icon/components/Document.js +17 -0
- package/dist/esm/components/Icon/components/Document.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentApprove.js +18 -0
- package/dist/esm/components/Icon/components/DocumentApprove.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentCreateEntry.js +18 -0
- package/dist/esm/components/Icon/components/DocumentCreateEntry.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentCut.js +18 -0
- package/dist/esm/components/Icon/components/DocumentCut.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentError.js +18 -0
- package/dist/esm/components/Icon/components/DocumentError.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentIsolatePage.js +18 -0
- package/dist/esm/components/Icon/components/DocumentIsolatePage.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentMerge.js +18 -0
- package/dist/esm/components/Icon/components/DocumentMerge.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentMove.js +18 -0
- package/dist/esm/components/Icon/components/DocumentMove.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentPreview.js +18 -0
- package/dist/esm/components/Icon/components/DocumentPreview.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentReceived.js +17 -0
- package/dist/esm/components/Icon/components/DocumentReceived.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentRejectedRequest.js +17 -0
- package/dist/esm/components/Icon/components/DocumentRejectedRequest.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentSplit.js +18 -0
- package/dist/esm/components/Icon/components/DocumentSplit.js.map +1 -0
- package/dist/esm/components/Icon/components/DocumentTime.js +18 -0
- package/dist/esm/components/Icon/components/DocumentTime.js.map +1 -0
- package/dist/esm/components/Icon/components/Download.js +18 -0
- package/dist/esm/components/Icon/components/Download.js.map +1 -0
- package/dist/esm/components/Icon/components/Drag.js +18 -0
- package/dist/esm/components/Icon/components/Drag.js.map +1 -0
- package/dist/esm/components/Icon/components/ECopedia.js +18 -0
- package/dist/esm/components/Icon/components/ECopedia.js.map +1 -0
- package/dist/esm/components/Icon/components/ESignature.js +18 -0
- package/dist/esm/components/Icon/components/ESignature.js.map +1 -0
- package/dist/esm/components/Icon/components/Edit.js +18 -0
- package/dist/esm/components/Icon/components/Edit.js.map +1 -0
- package/dist/esm/components/Icon/components/EllipsisHorizontal.js +18 -0
- package/dist/esm/components/Icon/components/EllipsisHorizontal.js.map +1 -0
- package/dist/esm/components/Icon/components/EllipsisVertical.js +18 -0
- package/dist/esm/components/Icon/components/EllipsisVertical.js.map +1 -0
- package/dist/esm/components/Icon/components/EntriesOnAccount.js +18 -0
- package/dist/esm/components/Icon/components/EntriesOnAccount.js.map +1 -0
- package/dist/esm/components/Icon/components/EntriesOpen.js +18 -0
- package/dist/esm/components/Icon/components/EntriesOpen.js.map +1 -0
- package/dist/esm/components/Icon/components/EntriesWarning.js +18 -0
- package/dist/esm/components/Icon/components/EntriesWarning.js.map +1 -0
- package/dist/esm/components/Icon/components/EntryTypeCustomerInvoice.js +18 -0
- package/dist/esm/components/Icon/components/EntryTypeCustomerInvoice.js.map +1 -0
- package/dist/esm/components/Icon/components/EntryTypeCustomerPayment.js +18 -0
- package/dist/esm/components/Icon/components/EntryTypeCustomerPayment.js.map +1 -0
- package/dist/esm/components/Icon/components/EntryTypeJournalEntry.js +18 -0
- package/dist/esm/components/Icon/components/EntryTypeJournalEntry.js.map +1 -0
- package/dist/esm/components/Icon/components/EntryTypeManualCustomerInvoice.js +18 -0
- package/dist/esm/components/Icon/components/EntryTypeManualCustomerInvoice.js.map +1 -0
- package/dist/esm/components/Icon/components/EntryTypeSupplierInvoice.js +18 -0
- package/dist/esm/components/Icon/components/EntryTypeSupplierInvoice.js.map +1 -0
- package/dist/esm/components/Icon/components/EntryTypeSupplierPayment.js +18 -0
- package/dist/esm/components/Icon/components/EntryTypeSupplierPayment.js.map +1 -0
- package/dist/esm/components/Icon/components/Envelope.js +18 -0
- package/dist/esm/components/Icon/components/Envelope.js.map +1 -0
- package/dist/esm/components/Icon/components/EnvelopeApproved.js +18 -0
- package/dist/esm/components/Icon/components/EnvelopeApproved.js.map +1 -0
- package/dist/esm/components/Icon/components/ExpandView.js +18 -0
- package/dist/esm/components/Icon/components/ExpandView.js.map +1 -0
- package/dist/esm/components/Icon/components/Expenses.js +18 -0
- package/dist/esm/components/Icon/components/Expenses.js.map +1 -0
- package/dist/esm/components/Icon/components/Export.js +18 -0
- package/dist/esm/components/Icon/components/Export.js.map +1 -0
- package/dist/esm/components/Icon/components/ExportToExcel.js +18 -0
- package/dist/esm/components/Icon/components/ExportToExcel.js.map +1 -0
- package/dist/esm/components/Icon/components/ExportToPdf.js +18 -0
- package/dist/esm/components/Icon/components/ExportToPdf.js.map +1 -0
- package/dist/esm/components/Icon/components/Filter.js +18 -0
- package/dist/esm/components/Icon/components/Filter.js.map +1 -0
- package/dist/esm/components/Icon/components/FilterSolid.js +18 -0
- package/dist/esm/components/Icon/components/FilterSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/GraphSolid.js +18 -0
- package/dist/esm/components/Icon/components/GraphSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Hash.js +18 -0
- package/dist/esm/components/Icon/components/Hash.js.map +1 -0
- package/dist/esm/components/Icon/components/Home.js +18 -0
- package/dist/esm/components/Icon/components/Home.js.map +1 -0
- package/dist/esm/components/Icon/components/Images.js +18 -0
- package/dist/esm/components/Icon/components/Images.js.map +1 -0
- package/dist/esm/components/Icon/components/Import.js +18 -0
- package/dist/esm/components/Icon/components/Import.js.map +1 -0
- package/dist/esm/components/Icon/components/Inbox.js +20 -0
- package/dist/esm/components/Icon/components/Inbox.js.map +1 -0
- package/dist/esm/components/Icon/components/InboxEinvoicing.js +20 -0
- package/dist/esm/components/Icon/components/InboxEinvoicing.js.map +1 -0
- package/dist/esm/components/Icon/components/InboxScanning.js +20 -0
- package/dist/esm/components/Icon/components/InboxScanning.js.map +1 -0
- package/dist/esm/components/Icon/components/InboxSmart.js +20 -0
- package/dist/esm/components/Icon/components/InboxSmart.js.map +1 -0
- package/dist/esm/components/Icon/components/Info.js +18 -0
- package/dist/esm/components/Icon/components/Info.js.map +1 -0
- package/dist/esm/components/Icon/components/Inventory.js +18 -0
- package/dist/esm/components/Icon/components/Inventory.js.map +1 -0
- package/dist/esm/components/Icon/components/InventoryMatrix.js +18 -0
- package/dist/esm/components/Icon/components/InventoryMatrix.js.map +1 -0
- package/dist/esm/components/Icon/components/JournalPro.js +18 -0
- package/dist/esm/components/Icon/components/JournalPro.js.map +1 -0
- package/dist/esm/components/Icon/components/Layout.js +18 -0
- package/dist/esm/components/Icon/components/Layout.js.map +1 -0
- package/dist/esm/components/Icon/components/LayoutBoth.js +18 -0
- package/dist/esm/components/Icon/components/LayoutBoth.js.map +1 -0
- package/dist/esm/components/Icon/components/LayoutFirst.js +18 -0
- package/dist/esm/components/Icon/components/LayoutFirst.js.map +1 -0
- package/dist/esm/components/Icon/components/LayoutLast.js +18 -0
- package/dist/esm/components/Icon/components/LayoutLast.js.map +1 -0
- package/dist/esm/components/Icon/components/LayoutNone.js +18 -0
- package/dist/esm/components/Icon/components/LayoutNone.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCard.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCard.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardCustomerReminder.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardCustomerReminder.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardManualCustomerInvoice.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardManualCustomerInvoice.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardObsoleteStock.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardObsoleteStock.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardOpeningEntry.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardOpeningEntry.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardReservedEntry.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardReservedEntry.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardShrinkagePilferage.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardShrinkagePilferage.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardStockAdjustment.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardStockAdjustment.js.map +1 -0
- package/dist/esm/components/Icon/components/LedgerCardTransferredOpeningEntry.js +18 -0
- package/dist/esm/components/Icon/components/LedgerCardTransferredOpeningEntry.js.map +1 -0
- package/dist/esm/components/Icon/components/Lightbulb.js +18 -0
- package/dist/esm/components/Icon/components/Lightbulb.js.map +1 -0
- package/dist/esm/components/Icon/components/Line.js +18 -0
- package/dist/esm/components/Icon/components/Line.js.map +1 -0
- package/dist/esm/components/Icon/components/List.js +18 -0
- package/dist/esm/components/Icon/components/List.js.map +1 -0
- package/dist/esm/components/Icon/components/ListBulleted.js +18 -0
- package/dist/esm/components/Icon/components/ListBulleted.js.map +1 -0
- package/dist/esm/components/Icon/components/ListSearch.js +18 -0
- package/dist/esm/components/Icon/components/ListSearch.js.map +1 -0
- package/dist/esm/components/Icon/components/LockOpen.js +18 -0
- package/dist/esm/components/Icon/components/LockOpen.js.map +1 -0
- package/dist/esm/components/Icon/components/Log.js +18 -0
- package/dist/esm/components/Icon/components/Log.js.map +1 -0
- package/dist/esm/components/Icon/components/LogOut.js +20 -0
- package/dist/esm/components/Icon/components/LogOut.js.map +1 -0
- package/dist/esm/components/Icon/components/Market.js +18 -0
- package/dist/esm/components/Icon/components/Market.js.map +1 -0
- package/dist/esm/components/Icon/components/MatchAmount.js +18 -0
- package/dist/esm/components/Icon/components/MatchAmount.js.map +1 -0
- package/dist/esm/components/Icon/components/MatchEntries.js +18 -0
- package/dist/esm/components/Icon/components/MatchEntries.js.map +1 -0
- package/dist/esm/components/Icon/components/Menu.js +18 -0
- package/dist/esm/components/Icon/components/Menu.js.map +1 -0
- package/dist/esm/components/Icon/components/Mileage.js +18 -0
- package/dist/esm/components/Icon/components/Mileage.js.map +1 -0
- package/dist/esm/components/Icon/components/ModalResize.js +18 -0
- package/dist/esm/components/Icon/components/ModalResize.js.map +1 -0
- package/dist/esm/components/Icon/components/ModalShrink.js +18 -0
- package/dist/esm/components/Icon/components/ModalShrink.js.map +1 -0
- package/dist/esm/components/Icon/components/More.js +18 -0
- package/dist/esm/components/Icon/components/More.js.map +1 -0
- package/dist/esm/components/Icon/components/MoreSolid.js +18 -0
- package/dist/esm/components/Icon/components/MoreSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Move.js +18 -0
- package/dist/esm/components/Icon/components/Move.js.map +1 -0
- package/dist/esm/components/Icon/components/NavigationList.js +18 -0
- package/dist/esm/components/Icon/components/NavigationList.js.map +1 -0
- package/dist/esm/components/Icon/components/Note.js +18 -0
- package/dist/esm/components/Icon/components/Note.js.map +1 -0
- package/dist/esm/components/Icon/components/NoteFollowUp.js +18 -0
- package/dist/esm/components/Icon/components/NoteFollowUp.js.map +1 -0
- package/dist/esm/components/Icon/components/NoteRead.js +18 -0
- package/dist/esm/components/Icon/components/NoteRead.js.map +1 -0
- package/dist/esm/components/Icon/components/PartnerApi.js +18 -0
- package/dist/esm/components/Icon/components/PartnerApi.js.map +1 -0
- package/dist/esm/components/Icon/components/Period.js +18 -0
- package/dist/esm/components/Icon/components/Period.js.map +1 -0
- package/dist/esm/components/Icon/components/PersonChange.js +18 -0
- package/dist/esm/components/Icon/components/PersonChange.js.map +1 -0
- package/dist/esm/components/Icon/components/PersonMinus.js +18 -0
- package/dist/esm/components/Icon/components/PersonMinus.js.map +1 -0
- package/dist/esm/components/Icon/components/PersonPlus.js +18 -0
- package/dist/esm/components/Icon/components/PersonPlus.js.map +1 -0
- package/dist/esm/components/Icon/components/PersonTick.js +18 -0
- package/dist/esm/components/Icon/components/PersonTick.js.map +1 -0
- package/dist/esm/components/Icon/components/Play.js +18 -0
- package/dist/esm/components/Icon/components/Play.js.map +1 -0
- package/dist/esm/components/Icon/components/PlusMinus.js +18 -0
- package/dist/esm/components/Icon/components/PlusMinus.js.map +1 -0
- package/dist/esm/components/Icon/components/Print.js +18 -0
- package/dist/esm/components/Icon/components/Print.js.map +1 -0
- package/dist/esm/components/Icon/components/ProcessPayment.js +18 -0
- package/dist/esm/components/Icon/components/ProcessPayment.js.map +1 -0
- package/dist/esm/components/Icon/components/ProductLedgerCard.js +18 -0
- package/dist/esm/components/Icon/components/ProductLedgerCard.js.map +1 -0
- package/dist/esm/components/Icon/components/Profile.js +20 -0
- package/dist/esm/components/Icon/components/Profile.js.map +1 -0
- package/dist/esm/components/Icon/components/ProjectCards.js +18 -0
- package/dist/esm/components/Icon/components/ProjectCards.js.map +1 -0
- package/dist/esm/components/Icon/components/Projects.js +18 -0
- package/dist/esm/components/Icon/components/Projects.js.map +1 -0
- package/dist/esm/components/Icon/components/Quicklinks.js +18 -0
- package/dist/esm/components/Icon/components/Quicklinks.js.map +1 -0
- package/dist/esm/components/Icon/components/RatingBankruptcy.js +18 -0
- package/dist/esm/components/Icon/components/RatingBankruptcy.js.map +1 -0
- package/dist/esm/components/Icon/components/RatingPaymentProblems.js +18 -0
- package/dist/esm/components/Icon/components/RatingPaymentProblems.js.map +1 -0
- package/dist/esm/components/Icon/components/Reconciled.js +18 -0
- package/dist/esm/components/Icon/components/Reconciled.js.map +1 -0
- package/dist/esm/components/Icon/components/Refresh.js +17 -0
- package/dist/esm/components/Icon/components/Refresh.js.map +1 -0
- package/dist/esm/components/Icon/components/Report.js +18 -0
- package/dist/esm/components/Icon/components/Report.js.map +1 -0
- package/dist/esm/components/Icon/components/ReportSolid.js +18 -0
- package/dist/esm/components/Icon/components/ReportSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Restore.js +18 -0
- package/dist/esm/components/Icon/components/Restore.js.map +1 -0
- package/dist/esm/components/Icon/components/RotateLeft.js +17 -0
- package/dist/esm/components/Icon/components/RotateLeft.js.map +1 -0
- package/dist/esm/components/Icon/components/RotateRight.js +17 -0
- package/dist/esm/components/Icon/components/RotateRight.js.map +1 -0
- package/dist/esm/components/Icon/components/Sales.js +18 -0
- package/dist/esm/components/Icon/components/Sales.js.map +1 -0
- package/dist/esm/components/Icon/components/Search.js +18 -0
- package/dist/esm/components/Icon/components/Search.js.map +1 -0
- package/dist/esm/components/Icon/components/SearchBold.js +18 -0
- package/dist/esm/components/Icon/components/SearchBold.js.map +1 -0
- package/dist/esm/components/Icon/components/Secure.js +18 -0
- package/dist/esm/components/Icon/components/Secure.js.map +1 -0
- package/dist/esm/components/Icon/components/SecureTick.js +18 -0
- package/dist/esm/components/Icon/components/SecureTick.js.map +1 -0
- package/dist/esm/components/Icon/components/Settings.js +18 -0
- package/dist/esm/components/Icon/components/Settings.js.map +1 -0
- package/dist/esm/components/Icon/components/SettingsSolid.js +18 -0
- package/dist/esm/components/Icon/components/SettingsSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Shortcuts.js +18 -0
- package/dist/esm/components/Icon/components/Shortcuts.js.map +1 -0
- package/dist/esm/components/Icon/components/ShowAll.js +18 -0
- package/dist/esm/components/Icon/components/ShowAll.js.map +1 -0
- package/dist/esm/components/Icon/components/ShowLess.js +18 -0
- package/dist/esm/components/Icon/components/ShowLess.js.map +1 -0
- package/dist/esm/components/Icon/components/ShowMore.js +18 -0
- package/dist/esm/components/Icon/components/ShowMore.js.map +1 -0
- package/dist/esm/components/Icon/components/ShowTemplate.js +18 -0
- package/dist/esm/components/Icon/components/ShowTemplate.js.map +1 -0
- package/dist/esm/components/Icon/components/Sliders.js +18 -0
- package/dist/esm/components/Icon/components/Sliders.js.map +1 -0
- package/dist/esm/components/Icon/components/Smartpay.js +18 -0
- package/dist/esm/components/Icon/components/Smartpay.js.map +1 -0
- package/dist/esm/components/Icon/components/SortBy.js +18 -0
- package/dist/esm/components/Icon/components/SortBy.js.map +1 -0
- package/dist/esm/components/Icon/components/Spinner.js +21 -0
- package/dist/esm/components/Icon/components/Spinner.js.map +1 -0
- package/dist/esm/components/Icon/components/Star.js +18 -0
- package/dist/esm/components/Icon/components/Star.js.map +1 -0
- package/dist/esm/components/Icon/components/StarSolid.js +18 -0
- package/dist/esm/components/Icon/components/StarSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Subscriptions.js +18 -0
- package/dist/esm/components/Icon/components/Subscriptions.js.map +1 -0
- package/dist/esm/components/Icon/components/SystemEntries.js +18 -0
- package/dist/esm/components/Icon/components/SystemEntries.js.map +1 -0
- package/dist/esm/components/Icon/components/Tag.js +18 -0
- package/dist/esm/components/Icon/components/Tag.js.map +1 -0
- package/dist/esm/components/Icon/components/TemplateOverride.js +18 -0
- package/dist/esm/components/Icon/components/TemplateOverride.js.map +1 -0
- package/dist/esm/components/Icon/components/Templates.js +18 -0
- package/dist/esm/components/Icon/components/Templates.js.map +1 -0
- package/dist/esm/components/Icon/components/ThumbBoth.js +18 -0
- package/dist/esm/components/Icon/components/ThumbBoth.js.map +1 -0
- package/dist/esm/components/Icon/components/ThumbDown.js +18 -0
- package/dist/esm/components/Icon/components/ThumbDown.js.map +1 -0
- package/dist/esm/components/Icon/components/ThumbDownSolid.js +18 -0
- package/dist/esm/components/Icon/components/ThumbDownSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/ThumbUp.js +18 -0
- package/dist/esm/components/Icon/components/ThumbUp.js.map +1 -0
- package/dist/esm/components/Icon/components/ThumbUpSolid.js +18 -0
- package/dist/esm/components/Icon/components/ThumbUpSolid.js.map +1 -0
- package/dist/esm/components/Icon/components/Tick.js +18 -0
- package/dist/esm/components/Icon/components/Tick.js.map +1 -0
- package/dist/esm/components/Icon/components/Time.js +18 -0
- package/dist/esm/components/Icon/components/Time.js.map +1 -0
- package/dist/esm/components/Icon/components/Transfer.js +18 -0
- package/dist/esm/components/Icon/components/Transfer.js.map +1 -0
- package/dist/esm/components/Icon/components/TransferCancel.js +24 -0
- package/dist/esm/components/Icon/components/TransferCancel.js.map +1 -0
- package/dist/esm/components/Icon/components/TransferLocked.js +18 -0
- package/dist/esm/components/Icon/components/TransferLocked.js.map +1 -0
- package/dist/esm/components/Icon/components/Undock.js +18 -0
- package/dist/esm/components/Icon/components/Undock.js.map +1 -0
- package/dist/esm/components/Icon/components/Unreconciled.js +18 -0
- package/dist/esm/components/Icon/components/Unreconciled.js.map +1 -0
- package/dist/esm/components/Icon/components/Warning.js +17 -0
- package/dist/esm/components/Icon/components/Warning.js.map +1 -0
- package/dist/esm/components/Icon/components/Webshop.js +18 -0
- package/dist/esm/components/Icon/components/Webshop.js.map +1 -0
- package/dist/esm/components/Icon/components/Website.js +18 -0
- package/dist/esm/components/Icon/components/Website.js.map +1 -0
- package/dist/esm/components/Icon/components/Workflow.js +17 -0
- package/dist/esm/components/Icon/components/Workflow.js.map +1 -0
- package/dist/esm/components/Icon/components/Zoom.js +18 -0
- package/dist/esm/components/Icon/components/Zoom.js.map +1 -0
- package/dist/esm/components/Icon/components/index.js +420 -0
- package/dist/esm/components/Icon/components/index.js.map +1 -0
- package/dist/esm/components/IconButton/IconButton.js +33 -0
- package/dist/esm/components/IconButton/IconButton.js.map +1 -0
- package/dist/esm/components/Input/Input.js +85 -0
- package/dist/esm/components/Input/Input.js.map +1 -0
- package/dist/esm/components/Input/util.js +22 -0
- package/dist/esm/components/Input/util.js.map +1 -0
- package/dist/esm/components/Listbox/Listbox.js +57 -0
- package/dist/esm/components/Listbox/Listbox.js.map +1 -0
- package/dist/esm/components/Listbox/ScrollableList.js +174 -0
- package/dist/esm/components/Listbox/ScrollableList.js.map +1 -0
- package/dist/esm/components/Listbox/useListbox.js +145 -0
- package/dist/esm/components/Listbox/useListbox.js.map +1 -0
- package/dist/esm/components/Listbox/useMultiListbox.js +196 -0
- package/dist/esm/components/Listbox/useMultiListbox.js.map +1 -0
- package/dist/esm/components/Listbox/useTypeahead.js +28 -0
- package/dist/esm/components/Listbox/useTypeahead.js.map +1 -0
- package/dist/esm/components/Listbox/util.js +150 -0
- package/dist/esm/components/Listbox/util.js.map +1 -0
- package/dist/esm/components/Menu/Context.js +9 -0
- package/dist/esm/components/Menu/Context.js.map +1 -0
- package/dist/esm/components/Menu/Menu.js +47 -0
- package/dist/esm/components/Menu/Menu.js.map +1 -0
- package/dist/esm/components/Menu/components/Checkbox.js +31 -0
- package/dist/esm/components/Menu/components/Checkbox.js.map +1 -0
- package/dist/esm/components/Menu/components/Content.js +30 -0
- package/dist/esm/components/Menu/components/Content.js.map +1 -0
- package/dist/esm/components/Menu/components/Header.js +18 -0
- package/dist/esm/components/Menu/components/Header.js.map +1 -0
- package/dist/esm/components/Menu/components/Item.js +92 -0
- package/dist/esm/components/Menu/components/Item.js.map +1 -0
- package/dist/esm/components/Menu/components/Link.js +39 -0
- package/dist/esm/components/Menu/components/Link.js.map +1 -0
- package/dist/esm/components/Menu/components/RadioGroup.js +48 -0
- package/dist/esm/components/Menu/components/RadioGroup.js.map +1 -0
- package/dist/esm/components/Menu/components/Separator.js +11 -0
- package/dist/esm/components/Menu/components/Separator.js.map +1 -0
- package/dist/esm/components/Menu/components/Trigger.js +21 -0
- package/dist/esm/components/Menu/components/Trigger.js.map +1 -0
- package/dist/esm/components/Navigation/Navigation.js +125 -0
- package/dist/esm/components/Navigation/Navigation.js.map +1 -0
- package/dist/esm/components/Pagination/PageNumbers.js +50 -0
- package/dist/esm/components/Pagination/PageNumbers.js.map +1 -0
- package/dist/esm/components/Pagination/Pagination.js +103 -0
- package/dist/esm/components/Pagination/Pagination.js.map +1 -0
- package/dist/esm/components/Pagination/usePagination.js +15 -0
- package/dist/esm/components/Pagination/usePagination.js.map +1 -0
- package/dist/esm/components/Pagination/usePaginationShortcuts.js +50 -0
- package/dist/esm/components/Pagination/usePaginationShortcuts.js.map +1 -0
- package/dist/esm/components/Popover/Popover.js +84 -0
- package/dist/esm/components/Popover/Popover.js.map +1 -0
- package/dist/esm/components/Popover/Primitives.js +41 -0
- package/dist/esm/components/Popover/Primitives.js.map +1 -0
- package/dist/esm/components/Progress/Progress.js +32 -0
- package/dist/esm/components/Progress/Progress.js.map +1 -0
- package/dist/esm/components/Provider/Provider.js +105 -0
- package/dist/esm/components/Provider/Provider.js.map +1 -0
- package/dist/esm/components/RadioGroup/RadioGroup.js +107 -0
- package/dist/esm/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/esm/components/SearchInput/SearchInput.js +96 -0
- package/dist/esm/components/SearchInput/SearchInput.js.map +1 -0
- package/dist/esm/components/Select/Select.js +100 -0
- package/dist/esm/components/Select/Select.js.map +1 -0
- package/dist/esm/components/Select/useSelect.js +212 -0
- package/dist/esm/components/Select/useSelect.js.map +1 -0
- package/dist/esm/components/Spinner/Spinner.js +48 -0
- package/dist/esm/components/Spinner/Spinner.js.map +1 -0
- package/dist/esm/components/Switch/Switch.js +37 -0
- package/dist/esm/components/Switch/Switch.js.map +1 -0
- package/dist/esm/components/Table/components/BaseTable.js +48 -0
- package/dist/esm/components/Table/components/BaseTable.js.map +1 -0
- package/dist/esm/components/Table/components/PaginatedTable.js +16 -0
- package/dist/esm/components/Table/components/PaginatedTable.js.map +1 -0
- package/dist/esm/components/Table/components/Table.js +56 -0
- package/dist/esm/components/Table/components/Table.js.map +1 -0
- package/dist/esm/components/Table/components/WindowedTable.js +188 -0
- package/dist/esm/components/Table/components/WindowedTable.js.map +1 -0
- package/dist/esm/components/Table/hooks/plugins/useRowActions.js +236 -0
- package/dist/esm/components/Table/hooks/plugins/useRowActions.js.map +1 -0
- package/dist/esm/components/Table/hooks/plugins/useRowDraggable.js +129 -0
- package/dist/esm/components/Table/hooks/plugins/useRowDraggable.js.map +1 -0
- package/dist/esm/components/Table/hooks/plugins/useRowEditing.js +100 -0
- package/dist/esm/components/Table/hooks/plugins/useRowEditing.js.map +1 -0
- package/dist/esm/components/Table/hooks/plugins/useRowSelect.js +108 -0
- package/dist/esm/components/Table/hooks/plugins/useRowSelect.js.map +1 -0
- package/dist/esm/components/Table/hooks/useRowCreation.js +106 -0
- package/dist/esm/components/Table/hooks/useRowCreation.js.map +1 -0
- package/dist/esm/components/Table/hooks/useTable.js +217 -0
- package/dist/esm/components/Table/hooks/useTable.js.map +1 -0
- package/dist/esm/components/Table/hooks/useTableKeyboardNavigation.js +137 -0
- package/dist/esm/components/Table/hooks/useTableKeyboardNavigation.js.map +1 -0
- package/dist/esm/components/Table/util/renderColumn.js +40 -0
- package/dist/esm/components/Table/util/renderColumn.js.map +1 -0
- package/dist/esm/components/Table/util/renderRow.js +101 -0
- package/dist/esm/components/Table/util/renderRow.js.map +1 -0
- package/dist/esm/components/Table/util/rowIndexPath.js +57 -0
- package/dist/esm/components/Table/util/rowIndexPath.js.map +1 -0
- package/dist/esm/components/Table/util/sortTypes.js +82 -0
- package/dist/esm/components/Table/util/sortTypes.js.map +1 -0
- package/dist/esm/components/Table/util.js +99 -0
- package/dist/esm/components/Table/util.js.map +1 -0
- package/dist/esm/components/Tabs/Tabs.js +69 -0
- package/dist/esm/components/Tabs/Tabs.js.map +1 -0
- package/dist/esm/components/Textarea/Textarea.js +39 -0
- package/dist/esm/components/Textarea/Textarea.js.map +1 -0
- package/dist/esm/components/Toast/Toast.js +79 -0
- package/dist/esm/components/Toast/Toast.js.map +1 -0
- package/dist/esm/components/Toast/Toaster.js +163 -0
- package/dist/esm/components/Toast/Toaster.js.map +1 -0
- package/dist/esm/components/Toast/util.js +46 -0
- package/dist/esm/components/Toast/util.js.map +1 -0
- package/dist/esm/components/Tooltip/Tooltip.js +32 -0
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/esm/components/Tour/Tour.js +144 -0
- package/dist/esm/components/Tour/Tour.js.map +1 -0
- package/dist/esm/components/Treeview/Treeview.js +73 -0
- package/dist/esm/components/Treeview/Treeview.js.map +1 -0
- package/dist/esm/components/VisuallyHidden/VisuallyHidden.js +11 -0
- package/dist/esm/components/VisuallyHidden/VisuallyHidden.js.map +1 -0
- package/dist/esm/index.css +661 -0
- package/dist/esm/index.js +52 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/primitives/Button.js +21 -0
- package/dist/esm/primitives/Button.js.map +1 -0
- package/dist/esm/utils/date.js +98 -0
- package/dist/esm/utils/date.js.map +1 -0
- package/dist/esm/utils/hooks/useBoundingClientRectListener.js +50 -0
- package/dist/esm/utils/hooks/useBoundingClientRectListener.js.map +1 -0
- package/dist/esm/utils/hooks/useDraggable.js +42 -0
- package/dist/esm/utils/hooks/useDraggable.js.map +1 -0
- package/dist/esm/utils/hooks/useDropTarget.js +38 -0
- package/dist/esm/utils/hooks/useDropTarget.js.map +1 -0
- package/dist/esm/utils/hooks/useListKeyboardNavigation.js +58 -0
- package/dist/esm/utils/hooks/useListKeyboardNavigation.js.map +1 -0
- package/dist/esm/utils/hooks/useListScrollTo.js +38 -0
- package/dist/esm/utils/hooks/useListScrollTo.js.map +1 -0
- package/dist/esm/utils/hooks/useOnClickOutside.js +27 -0
- package/dist/esm/utils/hooks/useOnClickOutside.js.map +1 -0
- package/dist/esm/utils/hooks/useProxiedRef.js +18 -0
- package/dist/esm/utils/hooks/useProxiedRef.js.map +1 -0
- package/dist/esm/utils/hooks/useTimer.js +50 -0
- package/dist/esm/utils/hooks/useTimer.js.map +1 -0
- package/dist/esm/utils/input.js +49 -0
- package/dist/esm/utils/input.js.map +1 -0
- package/dist/esm/utils/mergeRefs.js +14 -0
- package/dist/esm/utils/mergeRefs.js.map +1 -0
- package/dist/esm/utils/taillwind.js +41 -0
- package/dist/esm/utils/taillwind.js.map +1 -0
- package/dist/index.css +661 -0
- package/dist/index.d.ts +47 -0
- package/dist/index.js +8 -0
- package/dist/primitives/Button.d.ts +18 -0
- package/dist/taco.cjs.development.js +9565 -0
- package/dist/taco.cjs.development.js.map +1 -0
- package/dist/taco.cjs.production.min.js +2 -0
- package/dist/taco.cjs.production.min.js.map +1 -0
- package/dist/types.d.ts +5 -0
- package/dist/utils/date.d.ts +3 -0
- package/dist/utils/hooks/useBoundingClientRectListener.d.ts +2 -0
- package/dist/utils/hooks/useDraggable.d.ts +2 -0
- package/dist/utils/hooks/useDropTarget.d.ts +8 -0
- package/dist/utils/hooks/useListKeyboardNavigation.d.ts +8 -0
- package/dist/utils/hooks/useListScrollTo.d.ts +1 -0
- package/dist/utils/hooks/useOnClickOutside.d.ts +2 -0
- package/dist/utils/hooks/useProxiedRef.d.ts +2 -0
- package/dist/utils/hooks/useRefState.d.ts +1 -0
- package/dist/utils/hooks/useTimer.d.ts +7 -0
- package/dist/utils/input.d.ts +3 -0
- package/dist/utils/mergeRefs.d.ts +2 -0
- package/dist/utils/storyutils.d.ts +7 -0
- package/dist/utils/taillwind.d.ts +4 -0
- package/dist/utils/tailwind.d.ts +1 -0
- package/package.json +130 -132
- package/tailwind.config.js +5 -0
- package/types.json +7 -1
@@ -0,0 +1,100 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { actions } from 'react-table';
|
3
|
+
|
4
|
+
const pluginName = 'useRowEditing';
|
5
|
+
actions.resetRowEditing = 'resetRowEditing';
|
6
|
+
actions.toggleRowEditing = 'toggleRowEditing';
|
7
|
+
actions.toggleEditing = 'toggleEditing';
|
8
|
+
|
9
|
+
function reducer(state, action) {
|
10
|
+
if (action.type === actions.init) {
|
11
|
+
return {
|
12
|
+
allowEditing: true,
|
13
|
+
editingRowUniqueId: null,
|
14
|
+
...state
|
15
|
+
};
|
16
|
+
}
|
17
|
+
|
18
|
+
if (action.type === actions.resetRowEditing || action.type === actions.resetPage || action.type === actions.gotoPage) {
|
19
|
+
return { ...state,
|
20
|
+
editingRowUniqueId: null
|
21
|
+
};
|
22
|
+
}
|
23
|
+
|
24
|
+
if (action.type === actions.toggleRowEditing) {
|
25
|
+
const {
|
26
|
+
id
|
27
|
+
} = action;
|
28
|
+
return { ...state,
|
29
|
+
editingRowUniqueId: id
|
30
|
+
};
|
31
|
+
}
|
32
|
+
|
33
|
+
if (action.type === actions.toggleEditing) {
|
34
|
+
return { ...state,
|
35
|
+
allowEditing: !state.allowEditing
|
36
|
+
};
|
37
|
+
}
|
38
|
+
|
39
|
+
return state;
|
40
|
+
}
|
41
|
+
|
42
|
+
function useInstance(instance) {
|
43
|
+
const {
|
44
|
+
dispatch
|
45
|
+
} = instance;
|
46
|
+
const resetRowEditing = React__default.useCallback(() => {
|
47
|
+
dispatch({
|
48
|
+
type: actions.resetRowEditing
|
49
|
+
});
|
50
|
+
}, [dispatch]);
|
51
|
+
const toggleRowEditing = React__default.useCallback(id => {
|
52
|
+
dispatch({
|
53
|
+
type: actions.toggleRowEditing,
|
54
|
+
id
|
55
|
+
});
|
56
|
+
}, [dispatch]);
|
57
|
+
const toggleEditing = React__default.useCallback(() => {
|
58
|
+
dispatch({
|
59
|
+
type: actions.toggleEditing
|
60
|
+
});
|
61
|
+
}, [dispatch]);
|
62
|
+
Object.assign(instance, {
|
63
|
+
resetRowEditing,
|
64
|
+
toggleRowEditing,
|
65
|
+
toggleEditing
|
66
|
+
});
|
67
|
+
}
|
68
|
+
|
69
|
+
const prepareRow = uniqueId => (row, {
|
70
|
+
instance
|
71
|
+
}) => {
|
72
|
+
const id = row.original[uniqueId];
|
73
|
+
|
74
|
+
row.toggleRowEditing = () => {
|
75
|
+
if (instance.state.editingRowUniqueId === id) {
|
76
|
+
instance.resetRowEditing();
|
77
|
+
} else {
|
78
|
+
instance.toggleRowEditing(id);
|
79
|
+
}
|
80
|
+
};
|
81
|
+
|
82
|
+
row.isEditing = row.original._createKey ? instance.state.editingRowUniqueId === row.original._createKey : instance.state.editingRowUniqueId === id;
|
83
|
+
row.canEdit = instance.state.allowEditing && (row.isEditing || !instance.state.editingRowUniqueId);
|
84
|
+
};
|
85
|
+
|
86
|
+
const useRowEditing = uniqueId => {
|
87
|
+
const plugin = hooks => {
|
88
|
+
if (uniqueId) {
|
89
|
+
hooks.stateReducers.push(reducer);
|
90
|
+
hooks.useInstance.push(useInstance);
|
91
|
+
hooks.prepareRow.push(prepareRow(uniqueId));
|
92
|
+
}
|
93
|
+
};
|
94
|
+
|
95
|
+
plugin.pluginName = pluginName;
|
96
|
+
return plugin;
|
97
|
+
};
|
98
|
+
|
99
|
+
export { useRowEditing };
|
100
|
+
//# sourceMappingURL=useRowEditing.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useRowEditing.js","sources":["../../../../../../src/components/Table/hooks/plugins/useRowEditing.tsx"],"sourcesContent":["import React from 'react';\r\nimport { actions, PluginHook } from 'react-table';\r\n\r\nconst pluginName = 'useRowEditing';\r\n\r\nactions.resetRowEditing = 'resetRowEditing';\r\nactions.toggleRowEditing = 'toggleRowEditing';\r\nactions.toggleEditing = 'toggleEditing';\r\n\r\nfunction reducer(state: any, action: any): object {\r\n if (action.type === actions.init) {\r\n return {\r\n allowEditing: true,\r\n editingRowUniqueId: null,\r\n ...state,\r\n };\r\n }\r\n\r\n if (action.type === actions.resetRowEditing || action.type === actions.resetPage || action.type === actions.gotoPage) {\r\n return {\r\n ...state,\r\n editingRowUniqueId: null,\r\n };\r\n }\r\n\r\n if (action.type === actions.toggleRowEditing) {\r\n const { id } = action;\r\n return {\r\n ...state,\r\n editingRowUniqueId: id,\r\n };\r\n }\r\n\r\n if (action.type === actions.toggleEditing) {\r\n return {\r\n ...state,\r\n allowEditing: !state.allowEditing,\r\n };\r\n }\r\n\r\n return state;\r\n}\r\n\r\nfunction useInstance(instance: any): void {\r\n const { dispatch } = instance;\r\n\r\n const resetRowEditing = React.useCallback(() => {\r\n dispatch({ type: actions.resetRowEditing });\r\n }, [dispatch]);\r\n\r\n const toggleRowEditing = React.useCallback(\r\n id => {\r\n dispatch({ type: actions.toggleRowEditing, id });\r\n },\r\n [dispatch]\r\n );\r\n\r\n const toggleEditing = React.useCallback(() => {\r\n dispatch({ type: actions.toggleEditing });\r\n }, [dispatch]);\r\n\r\n Object.assign(instance, {\r\n resetRowEditing,\r\n toggleRowEditing,\r\n toggleEditing,\r\n });\r\n}\r\n\r\nconst prepareRow =\r\n <T extends {}>(uniqueId: keyof T) =>\r\n (row: any, { instance }: any): void => {\r\n const id = row.original[uniqueId];\r\n\r\n row.toggleRowEditing = () => {\r\n if (instance.state.editingRowUniqueId === id) {\r\n instance.resetRowEditing();\r\n } else {\r\n instance.toggleRowEditing(id);\r\n }\r\n };\r\n\r\n row.isEditing = row.original._createKey\r\n ? instance.state.editingRowUniqueId === row.original._createKey\r\n : instance.state.editingRowUniqueId === id;\r\n row.canEdit = instance.state.allowEditing && (row.isEditing || !instance.state.editingRowUniqueId);\r\n };\r\n\r\nexport const useRowEditing = <T extends {}>(uniqueId: keyof T | undefined): PluginHook<{}> => {\r\n const plugin = (hooks: any): void => {\r\n if (uniqueId) {\r\n hooks.stateReducers.push(reducer);\r\n hooks.useInstance.push(useInstance);\r\n hooks.prepareRow.push(prepareRow<T>(uniqueId));\r\n }\r\n };\r\n plugin.pluginName = pluginName;\r\n\r\n return plugin;\r\n};\r\n"],"names":["pluginName","actions","resetRowEditing","toggleRowEditing","toggleEditing","reducer","state","action","type","init","allowEditing","editingRowUniqueId","resetPage","gotoPage","id","useInstance","instance","dispatch","React","useCallback","Object","assign","prepareRow","uniqueId","row","original","isEditing","_createKey","canEdit","useRowEditing","plugin","hooks","stateReducers","push"],"mappings":";;;AAGA,MAAMA,UAAU,GAAG,eAAnB;AAEAC,OAAO,CAACC,eAAR,GAA0B,iBAA1B;AACAD,OAAO,CAACE,gBAAR,GAA2B,kBAA3B;AACAF,OAAO,CAACG,aAAR,GAAwB,eAAxB;;AAEA,SAASC,OAAT,CAAiBC,KAAjB,EAA6BC,MAA7B;EACI,IAAIA,MAAM,CAACC,IAAP,KAAgBP,OAAO,CAACQ,IAA5B,EAAkC;IAC9B,OAAO;MACHC,YAAY,EAAE,IADX;MAEHC,kBAAkB,EAAE,IAFjB;MAGH,GAAGL;KAHP;;;EAOJ,IAAIC,MAAM,CAACC,IAAP,KAAgBP,OAAO,CAACC,eAAxB,IAA2CK,MAAM,CAACC,IAAP,KAAgBP,OAAO,CAACW,SAAnE,IAAgFL,MAAM,CAACC,IAAP,KAAgBP,OAAO,CAACY,QAA5G,EAAsH;IAClH,OAAO,EACH,GAAGP,KADA;MAEHK,kBAAkB,EAAE;KAFxB;;;EAMJ,IAAIJ,MAAM,CAACC,IAAP,KAAgBP,OAAO,CAACE,gBAA5B,EAA8C;IAC1C,MAAM;MAAEW;QAAOP,MAAf;IACA,OAAO,EACH,GAAGD,KADA;MAEHK,kBAAkB,EAAEG;KAFxB;;;EAMJ,IAAIP,MAAM,CAACC,IAAP,KAAgBP,OAAO,CAACG,aAA5B,EAA2C;IACvC,OAAO,EACH,GAAGE,KADA;MAEHI,YAAY,EAAE,CAACJ,KAAK,C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5C;EAGAU,GAAG,CAACI,OAAJ,GAAcZ,QAAQ,CAACV,KAAT,CAAeI,YAAf,KAAgCc,GAAG,CAACE,SAAJ,IAAiB,CAACV,QAAQ,CAACV,KAAT,CAAeK,kBAAjE,CAAd;AACH,CAjBL;;MAmBakB,aAAa,GAAkBN,QAAf;EACzB,MAAMO,MAAM,GAAIC,KAAD;IACX,IAAIR,QAAJ,EAAc;MACVQ,KAAK,CAACC,aAAN,CAAoBC,IAApB,CAAyB5B,OAAzB;MACA0B,KAAK,CAAChB,WAAN,CAAkBkB,IAAlB,CAAuBlB,WAAvB;MACAgB,KAAK,CAACT,UAAN,CAAiBW,IAAjB,CAAsBX,UAAU,CAAIC,QAAJ,CAAhC;;GAJR;;EAOAO,MAAM,CAAC9B,UAAP,GAAoBA,UAApB;EAEA,OAAO8B,MAAP;AACH;;;;"}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { Checkbox } from '../../../Checkbox/Checkbox.js';
|
3
|
+
import { useRowSelect as useRowSelect$1 } from 'react-table';
|
4
|
+
|
5
|
+
// this wraps react-table's internal useRowSelect hook
|
6
|
+
|
7
|
+
const toggleBetween = (fromRowIndex, toRowIndex) => {
|
8
|
+
const fromIndex = toRowIndex < fromRowIndex ? toRowIndex : fromRowIndex;
|
9
|
+
const toIndex = toRowIndex > fromRowIndex ? toRowIndex : fromRowIndex;
|
10
|
+
return [fromIndex, toIndex];
|
11
|
+
}; // react-table calls "index paths" row ids. we named them indexPaths to reduce confusion with natural ids
|
12
|
+
// the selection hook usess react-table's row selection, so this hok references row.id - it is the index path
|
13
|
+
|
14
|
+
|
15
|
+
const useRowSelect = onSelectedRows => {
|
16
|
+
const plugin = hooks => {
|
17
|
+
// eslint-disable-next-line react-hooks/rules-of-hooks
|
18
|
+
useRowSelect$1(hooks);
|
19
|
+
|
20
|
+
if (onSelectedRows) {
|
21
|
+
const toggleRowSelected = (indexPath, checked) => onSelectedRows(state => {
|
22
|
+
const nextState = { ...state
|
23
|
+
};
|
24
|
+
|
25
|
+
if (checked) {
|
26
|
+
nextState[indexPath] = true;
|
27
|
+
} else {
|
28
|
+
delete nextState[indexPath];
|
29
|
+
}
|
30
|
+
|
31
|
+
return nextState;
|
32
|
+
});
|
33
|
+
|
34
|
+
const prepareRow = row => {
|
35
|
+
row.toggleRowSelected = () => toggleRowSelected(row.id, !row.isSelected);
|
36
|
+
};
|
37
|
+
|
38
|
+
hooks.prepareRow.push(prepareRow); // eslint-disable-next-line react-hooks/rules-of-hooks
|
39
|
+
|
40
|
+
const lastSelectedSortedIndex = React__default.useRef();
|
41
|
+
hooks.visibleColumns.push(columns => [{
|
42
|
+
id: 'selection',
|
43
|
+
Header: ({
|
44
|
+
getToggleAllRowsSelectedProps,
|
45
|
+
rows
|
46
|
+
}) => {
|
47
|
+
const {
|
48
|
+
onChange: _,
|
49
|
+
...props
|
50
|
+
} = getToggleAllRowsSelectedProps();
|
51
|
+
|
52
|
+
const onChange = checked => {
|
53
|
+
if (checked) {
|
54
|
+
// this intentionally only selects top level rows - sub rows add too much complexity
|
55
|
+
onSelectedRows(Object.assign({}, Array(rows.length).fill(true)));
|
56
|
+
} else {
|
57
|
+
onSelectedRows({});
|
58
|
+
}
|
59
|
+
};
|
60
|
+
|
61
|
+
return React__default.createElement(Checkbox, Object.assign({}, props, {
|
62
|
+
onChange: onChange
|
63
|
+
}));
|
64
|
+
},
|
65
|
+
Cell: ({
|
66
|
+
row,
|
67
|
+
rows
|
68
|
+
}) => {
|
69
|
+
const {
|
70
|
+
onChange: _,
|
71
|
+
...props
|
72
|
+
} = row.getToggleRowSelectedProps(); // row.index refers to the index in the original data, not the current index
|
73
|
+
|
74
|
+
const sortedIndex = rows.findIndex(r => r.index === row.index);
|
75
|
+
|
76
|
+
const onClick = event => {
|
77
|
+
if (event.shiftKey) {
|
78
|
+
const [fromIndex, toIndex] = toggleBetween(lastSelectedSortedIndex.current || 0, sortedIndex);
|
79
|
+
|
80
|
+
for (let i = fromIndex; i <= toIndex; i++) {
|
81
|
+
toggleRowSelected(rows[i].id, true);
|
82
|
+
}
|
83
|
+
} else {
|
84
|
+
toggleRowSelected(row.id, !props.checked);
|
85
|
+
}
|
86
|
+
|
87
|
+
lastSelectedSortedIndex.current = sortedIndex;
|
88
|
+
};
|
89
|
+
|
90
|
+
return React__default.createElement(Checkbox, Object.assign({}, props, {
|
91
|
+
className: "mt-2.5",
|
92
|
+
onClick: onClick,
|
93
|
+
// this is necessary to remove console spam from eslint
|
94
|
+
onChange: () => false
|
95
|
+
}));
|
96
|
+
},
|
97
|
+
flex: '0 0 36px',
|
98
|
+
className: 'flex-col justify-start !py-0'
|
99
|
+
}, ...columns]);
|
100
|
+
}
|
101
|
+
};
|
102
|
+
|
103
|
+
plugin.pluginName = 'useRowSelect';
|
104
|
+
return plugin;
|
105
|
+
};
|
106
|
+
|
107
|
+
export { useRowSelect };
|
108
|
+
//# sourceMappingURL=useRowSelect.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useRowSelect.js","sources":["../../../../../../src/components/Table/hooks/plugins/useRowSelect.tsx"],"sourcesContent":["// this wraps react-table's internal useRowSelect hook\r\nimport React from 'react';\r\nimport { useRowSelect as useBaseRowSelect, Row, PluginHook } from 'react-table';\r\nimport { Checkbox } from '../../../Checkbox/Checkbox';\r\nimport { SelectedRowsHandler } from '../../types';\r\n\r\nconst toggleBetween = (fromRowIndex: number, toRowIndex: number): [number, number] => {\r\n const fromIndex = toRowIndex < fromRowIndex ? toRowIndex : fromRowIndex;\r\n const toIndex = toRowIndex > fromRowIndex ? toRowIndex : fromRowIndex;\r\n\r\n return [fromIndex, toIndex];\r\n};\r\n\r\n// react-table calls \"index paths\" row ids. we named them indexPaths to reduce confusion with natural ids\r\n// the selection hook usess react-table's row selection, so this hok references row.id - it is the index path\r\n\r\nexport const useRowSelect = (onSelectedRows: SelectedRowsHandler | undefined): PluginHook<{}> => {\r\n const plugin = (hooks: any): void => {\r\n // eslint-disable-next-line react-hooks/rules-of-hooks\r\n useBaseRowSelect(hooks);\r\n\r\n if (onSelectedRows) {\r\n const toggleRowSelected = (indexPath: string, checked: boolean): void =>\r\n onSelectedRows(state => {\r\n const nextState = { ...state };\r\n\r\n if (checked) {\r\n nextState[indexPath] = true;\r\n } else {\r\n delete nextState[indexPath];\r\n }\r\n\r\n return nextState;\r\n });\r\n\r\n const prepareRow = (row: any) => {\r\n row.toggleRowSelected = () => toggleRowSelected(row.id, !row.isSelected);\r\n };\r\n\r\n hooks.prepareRow.push(prepareRow);\r\n\r\n // eslint-disable-next-line react-hooks/rules-of-hooks\r\n const lastSelectedSortedIndex = React.useRef();\r\n\r\n hooks.visibleColumns.push((columns: any) => [\r\n {\r\n id: 'selection',\r\n Header: ({ getToggleAllRowsSelectedProps, rows }: any) => {\r\n const { onChange: _, ...props } = getToggleAllRowsSelectedProps();\r\n\r\n const onChange = (checked): void => {\r\n if (checked) {\r\n // this intentionally only selects top level rows - sub rows add too much complexity\r\n onSelectedRows(Object.assign({}, Array(rows.length).fill(true)));\r\n } else {\r\n onSelectedRows({});\r\n }\r\n };\r\n\r\n return <Checkbox {...props} onChange={onChange} />;\r\n },\r\n Cell: ({ row, rows }: any) => {\r\n const { onChange: _, ...props } = row.getToggleRowSelectedProps();\r\n // row.index refers to the index in the original data, not the current index\r\n const sortedIndex = rows.findIndex((r: Row) => r.index === row.index);\r\n\r\n const onClick = (event: React.MouseEvent): void => {\r\n if (event.shiftKey) {\r\n const [fromIndex, toIndex] = toggleBetween(lastSelectedSortedIndex.current || 0, sortedIndex);\r\n\r\n for (let i = fromIndex; i <= toIndex; i++) {\r\n toggleRowSelected(rows[i].id, true);\r\n }\r\n } else {\r\n toggleRowSelected(row.id, !props.checked);\r\n }\r\n\r\n lastSelectedSortedIndex.current = sortedIndex;\r\n };\r\n\r\n return (\r\n <Checkbox\r\n {...props}\r\n className=\"mt-2.5\"\r\n onClick={onClick}\r\n // this is necessary to remove console spam from eslint\r\n onChange={() => false}\r\n />\r\n );\r\n },\r\n flex: '0 0 36px',\r\n className: 'flex-col justify-start !py-0',\r\n },\r\n ...columns,\r\n ]);\r\n }\r\n };\r\n plugin.pluginName = 'useRowSelect';\r\n return plugin;\r\n};\r\n"],"names":["toggleBetween","fromRowIndex","toRowIndex","fromIndex","toIndex","useRowSelect","onSelectedRows","plugin","hooks","useBaseRowSelect","toggleRowSelected","indexPath","checked","state","nextState","prepareRow","row","id","isSelected","push","lastSelectedSortedIndex","React","useRef","visibleColumns","columns","Header","getToggleAllRowsSelectedProps","rows","onChange","_","props","Object","assign","Array","length","fill","Checkbox","Cell","getToggleRowSelectedProps","sortedIndex","findIndex","r","index","onClick","event","shiftKey","current","i","className","flex","pluginName"],"mappings":";;;;AAAA;;AAMA,MAAMA,aAAa,GAAG,CAACC,YAAD,EAAuBC,UAAvB;EAClB,MAAMC,SAAS,GAAGD,UAAU,GAAGD,YAAb,GAA4BC,UAA5B,GAAyCD,YAA3D;EACA,MAAMG,OAAO,GAAGF,UAAU,GAAGD,YAAb,GAA4BC,UAA5B,GAAyCD,YAAzD;EAEA,OAAO,CAACE,SAAD,EAAYC,OAAZ,CAAP;AACH,CALD;AAQA;;;MAEaC,YAAY,GAAIC,cAAD;EACxB,MAAMC,MAAM,GAAIC,KAAD;;IAEXC,cAAgB,CAACD,KAAD,CAAhB;;IAEA,IAAIF,cAAJ,EAAoB;MAChB,MAAMI,iBAAiB,GAAG,CAACC,SAAD,EAAoBC,OAApB,KACtBN,cAAc,CAACO,KAAK;QAChB,MAAMC,SAAS,GAAG,EAAE,GAAGD;SAAvB;;QAEA,IAAID,OAAJ,EAAa;UACTE,SAAS,CAACH,SAAD,CAAT,GAAuB,IAAvB;SADJ,MAEO;UACH,OAAOG,SAAS,CAACH,SAAD,CAAhB;;;QAGJ,OAAOG,SAAP;OATU,CADlB;;MAaA,MAAMC,UAAU,GAAIC,GAAD;QACfA,GAAG,CAACN,iBAAJ,GAAwB,MAAMA,iBAAiB,CAACM,GAAG,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GAAG5C,SAAb,EAAwB4C,CAAC,IAAI3C,OAA7B,EAAsC2C,CAAC,EAAvC,EAA2C;gBACvCrC,iBAAiB,CAACiB,IAAI,CAACoB,CAAD,CAAJ,CAAQ9B,EAAT,EAAa,IAAb,CAAjB;;aAJR,MAMO;cACHP,iBAAiB,CAACM,GAAG,CAACC,EAAL,EAAS,CAACa,KAAK,CAAClB,OAAhB,CAAjB;;;YAGJQ,uBAAuB,CAAC0B,OAAxB,GAAkCP,WAAlC;WAXJ;;UAcA,OACIlB,4BAAA,CAACe,QAAD,oBACQN;YACJkB,SAAS,EAAC;YACVL,OAAO,EAAEA;;YAETf,QAAQ,EAAE,MAAM;YALpB,CADJ;SAnCR;QA6CIqB,IAAI,EAAE,UA7CV;QA8CID,SAAS,EAAE;OA/CyB,EAiDxC,GAAGxB,OAjDqC,CAA5C;;GA3BR;;EAgFAjB,MAAM,CAAC2C,UAAP,GAAoB,cAApB;EACA,OAAO3C,MAAP;AACH;;;;"}
|
@@ -0,0 +1,106 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { v4 } from 'uuid';
|
3
|
+
import set from 'lodash-es/set';
|
4
|
+
import { convertRowIndexPathToNumberArray, getByRowIndexPath, getParentRowIndexPath } from '../util/rowIndexPath.js';
|
5
|
+
import unset from 'lodash-es/unset';
|
6
|
+
import get from 'lodash-es/get';
|
7
|
+
import compact from 'lodash-es/compact';
|
8
|
+
import pullAt from 'lodash-es/pullAt';
|
9
|
+
|
10
|
+
const insertChildTableRow = (data, rowIndexPath = undefined, values = {}) => {
|
11
|
+
const nexTRow = JSON.parse(JSON.stringify(data));
|
12
|
+
let childRowIndexPath;
|
13
|
+
|
14
|
+
if (rowIndexPath) {
|
15
|
+
var _currentRow$subRows;
|
16
|
+
|
17
|
+
const rowIndexes = convertRowIndexPathToNumberArray(rowIndexPath);
|
18
|
+
const currentRow = getByRowIndexPath(nexTRow, rowIndexes.join('.'));
|
19
|
+
const nextSubRows = (_currentRow$subRows = currentRow === null || currentRow === void 0 ? void 0 : currentRow.subRows) !== null && _currentRow$subRows !== void 0 ? _currentRow$subRows : [];
|
20
|
+
const path = rowIndexes.map(i => `[${i}]`).join('.subRows') + '.subRows';
|
21
|
+
nextSubRows.unshift(values);
|
22
|
+
set(nexTRow, path, nextSubRows); // rebuild the new id
|
23
|
+
|
24
|
+
rowIndexes.push(0);
|
25
|
+
childRowIndexPath = rowIndexes.join('.');
|
26
|
+
} else {
|
27
|
+
nexTRow.unshift(values);
|
28
|
+
childRowIndexPath = '0';
|
29
|
+
}
|
30
|
+
|
31
|
+
return [nexTRow, childRowIndexPath];
|
32
|
+
};
|
33
|
+
const removeChildTableRow = (data, rowIndexPath) => {
|
34
|
+
const nexTRow = JSON.parse(JSON.stringify(data));
|
35
|
+
const rowIndexes = convertRowIndexPathToNumberArray(rowIndexPath);
|
36
|
+
const rootIndex = Number(rowIndexes.shift());
|
37
|
+
|
38
|
+
if (rowIndexes.length) {
|
39
|
+
// unset
|
40
|
+
const unsetPath = rowIndexes.map(index => `subRows[${index}]`).join('.');
|
41
|
+
unset(nexTRow[rootIndex], unsetPath); // remove empty value from subRows
|
42
|
+
|
43
|
+
rowIndexes.pop();
|
44
|
+
const setPath = rowIndexes.length ? rowIndexes.map(index => `subRows[${index}]`).join('.') + '.subRows' : 'subRows';
|
45
|
+
set(nexTRow[rootIndex], setPath, compact(get(nexTRow[rootIndex], setPath)));
|
46
|
+
} else {
|
47
|
+
pullAt(nexTRow, rootIndex);
|
48
|
+
}
|
49
|
+
|
50
|
+
return nexTRow;
|
51
|
+
};
|
52
|
+
const useTableRowCreation = (data, tableRef) => {
|
53
|
+
const [internalData, setInternalData] = React__default.useState(JSON.parse(JSON.stringify(data)));
|
54
|
+
const [activeRowIndexPath, setActiveRowIndexPath] = React__default.useState(undefined);
|
55
|
+
React__default.useEffect(() => {
|
56
|
+
if (activeRowIndexPath !== undefined) {
|
57
|
+
// keep the same edit key, so that we don't remount the row/form
|
58
|
+
const currentRow = getByRowIndexPath(internalData, activeRowIndexPath); // get the active creation rows parent
|
59
|
+
|
60
|
+
const parentId = getParentRowIndexPath(activeRowIndexPath); // insert a new empty row in the external data (with the same key)
|
61
|
+
|
62
|
+
const [nexTRow, newRowIndexPath] = insertChildTableRow(JSON.parse(JSON.stringify(data)), parentId, currentRow); // update and set that row as active, we basically just changed it's position in our internal data
|
63
|
+
|
64
|
+
setActiveRowIndexPath(newRowIndexPath);
|
65
|
+
setInternalData(nexTRow);
|
66
|
+
|
67
|
+
if (tableRef !== null && tableRef !== void 0 && tableRef.current) {
|
68
|
+
tableRef.current.instance.toggleRowEditing(currentRow === null || currentRow === void 0 ? void 0 : currentRow._createKey);
|
69
|
+
}
|
70
|
+
} else {
|
71
|
+
setInternalData(data);
|
72
|
+
}
|
73
|
+
}, [JSON.stringify(data)]);
|
74
|
+
|
75
|
+
const create = (rowIndexPath = undefined, values = {}) => {
|
76
|
+
const _createKey = v4();
|
77
|
+
|
78
|
+
const [nexTRow, newRowIndexPath] = insertChildTableRow(internalData, rowIndexPath, { ...values,
|
79
|
+
_createKey
|
80
|
+
});
|
81
|
+
setActiveRowIndexPath(newRowIndexPath);
|
82
|
+
setInternalData(nexTRow);
|
83
|
+
|
84
|
+
if (tableRef !== null && tableRef !== void 0 && tableRef.current) {
|
85
|
+
tableRef.current.instance.toggleRowEditing(_createKey);
|
86
|
+
}
|
87
|
+
|
88
|
+
return newRowIndexPath;
|
89
|
+
};
|
90
|
+
|
91
|
+
const remove = rowIndexPath => {
|
92
|
+
const nexTRow = removeChildTableRow(internalData, rowIndexPath);
|
93
|
+
setInternalData(nexTRow);
|
94
|
+
setActiveRowIndexPath(undefined);
|
95
|
+
};
|
96
|
+
|
97
|
+
return {
|
98
|
+
data: internalData,
|
99
|
+
create,
|
100
|
+
remove,
|
101
|
+
isCreating: activeRowIndexPath !== undefined
|
102
|
+
};
|
103
|
+
};
|
104
|
+
|
105
|
+
export { insertChildTableRow, removeChildTableRow, useTableRowCreation };
|
106
|
+
//# sourceMappingURL=useRowCreation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useRowCreation.js","sources":["../../../../../src/components/Table/hooks/useRowCreation.tsx"],"sourcesContent":["import React from 'react';\r\nimport { v4 as uuid } from 'uuid';\r\nimport set from 'lodash/set';\r\nimport unset from 'lodash/unset';\r\nimport get from 'lodash/get';\r\nimport compact from 'lodash/compact';\r\nimport pullAt from 'lodash/pullAt';\r\n\r\nimport { convertRowIndexPathToNumberArray, getByRowIndexPath, getParentRowIndexPath } from '../util/rowIndexPath';\r\nimport { Row, RowIndexPath, TableRef } from '../types';\r\n\r\nexport const insertChildTableRow = <TRow,>(\r\n data: Row<TRow>[],\r\n rowIndexPath: RowIndexPath = undefined,\r\n values: any = {}\r\n): [Row<TRow>[], RowIndexPath] => {\r\n const nexTRow: Row<TRow>[] = JSON.parse(JSON.stringify(data));\r\n\r\n let childRowIndexPath;\r\n\r\n if (rowIndexPath) {\r\n const rowIndexes = convertRowIndexPathToNumberArray(rowIndexPath);\r\n const currentRow = getByRowIndexPath(nexTRow, rowIndexes.join('.'));\r\n const nextSubRows = currentRow?.subRows ?? [];\r\n\r\n const path = rowIndexes.map(i => `[${i}]`).join('.subRows') + '.subRows';\r\n nextSubRows.unshift(values);\r\n set(nexTRow, path, nextSubRows);\r\n\r\n // rebuild the new id\r\n rowIndexes.push(0);\r\n childRowIndexPath = rowIndexes.join('.');\r\n } else {\r\n nexTRow.unshift(values);\r\n childRowIndexPath = '0';\r\n }\r\n\r\n return [nexTRow, childRowIndexPath];\r\n};\r\n\r\nexport const removeChildTableRow = <TRow,>(data: Row<TRow>[], rowIndexPath: RowIndexPath): Row<TRow>[] => {\r\n const nexTRow = JSON.parse(JSON.stringify(data));\r\n\r\n const rowIndexes = convertRowIndexPathToNumberArray(rowIndexPath);\r\n const rootIndex = Number(rowIndexes.shift());\r\n\r\n if (rowIndexes.length) {\r\n // unset\r\n const unsetPath = rowIndexes.map(index => `subRows[${index}]`).join('.');\r\n unset(nexTRow[rootIndex], unsetPath);\r\n\r\n // remove empty value from subRows\r\n rowIndexes.pop();\r\n const setPath = rowIndexes.length ? rowIndexes.map(index => `subRows[${index}]`).join('.') + '.subRows' : 'subRows';\r\n set(nexTRow[rootIndex], setPath, compact(get(nexTRow[rootIndex], setPath)));\r\n } else {\r\n pullAt(nexTRow, rootIndex);\r\n }\r\n\r\n return nexTRow;\r\n};\r\n\r\nexport type useTableRowCreation<TRow> = {\r\n data: Row<TRow>[];\r\n create: (rowIndexPath: RowIndexPath, values?: object | undefined) => RowIndexPath;\r\n remove: (rowIndexPath: RowIndexPath) => void;\r\n isCreating: boolean;\r\n};\r\n\r\nexport const useTableRowCreation = <TRow,>(data: Row<TRow>[], tableRef: React.RefObject<TableRef>): useTableRowCreation<TRow> => {\r\n const [internalData, setInternalData] = React.useState(JSON.parse(JSON.stringify(data)));\r\n const [activeRowIndexPath, setActiveRowIndexPath] = React.useState<string | undefined>(undefined);\r\n\r\n React.useEffect(() => {\r\n if (activeRowIndexPath !== undefined) {\r\n // keep the same edit key, so that we don't remount the row/form\r\n const currentRow: any = getByRowIndexPath(internalData, activeRowIndexPath);\r\n\r\n // get the active creation rows parent\r\n const parentId = getParentRowIndexPath(activeRowIndexPath);\r\n\r\n // insert a new empty row in the external data (with the same key)\r\n const [nexTRow, newRowIndexPath] = insertChildTableRow(JSON.parse(JSON.stringify(data)), parentId, currentRow);\r\n\r\n // update and set that row as active, we basically just changed it's position in our internal data\r\n setActiveRowIndexPath(newRowIndexPath);\r\n setInternalData(nexTRow);\r\n\r\n if (tableRef?.current) {\r\n tableRef.current.instance.toggleRowEditing(currentRow?._createKey);\r\n }\r\n } else {\r\n setInternalData(data);\r\n }\r\n }, [JSON.stringify(data)]);\r\n\r\n const create = (rowIndexPath: RowIndexPath = undefined, values: object | undefined = {}): RowIndexPath => {\r\n const _createKey = uuid();\r\n const [nexTRow, newRowIndexPath] = insertChildTableRow(internalData, rowIndexPath, { ...values, _createKey });\r\n setActiveRowIndexPath(newRowIndexPath);\r\n setInternalData(nexTRow);\r\n\r\n if (tableRef?.current) {\r\n tableRef.current.instance.toggleRowEditing(_createKey);\r\n }\r\n\r\n return newRowIndexPath;\r\n };\r\n\r\n const remove = (rowIndexPath: any): void => {\r\n const nexTRow = removeChildTableRow(internalData, rowIndexPath);\r\n setInternalData(nexTRow);\r\n setActiveRowIndexPath(undefined);\r\n };\r\n\r\n return {\r\n data: internalData,\r\n create,\r\n remove,\r\n isCreating: activeRowIndexPath !== undefined,\r\n };\r\n};\r\n"],"names":["insertChildTableRow","data","rowIndexPath","undefined","values","nexTRow","JSON","parse","stringify","childRowIndexPath","rowIndexes","convertRowIndexPathToNumberArray","currentRow","getByRowIndexPath","join","nextSubRows","subRows","path","map","i","unshift","set","push","removeChildTableRow","rootIndex","Number","shift","length","unsetPath","index","unset","pop","setPath","compact","get","pullAt","useTableRowCreation","tableRef","internalData","setInternalData","React","useState","activeRowIndexPath","setActiveRowIndexPath","useEffect","parentId","getParentRowIndexPath","newRowIndexPath","current","instance","toggleRowEditing","_createKey","create","uuid","remove","isCreating"],"mappings":";;;;;;;;;MAWaA,mBAAmB,GAAG,CAC/BC,IAD+B,EAE/BC,eAA6BC,SAFE,EAG/BC,SAAc,EAHiB;EAK/B,MAAMC,OAAO,GAAgBC,IAAI,CAACC,KAAL,CAAWD,IAAI,CAACE,SAAL,CAAeP,IAAf,CAAX,CAA7B;EAEA,IAAIQ,iBAAJ;;EAEA,IAAIP,YAAJ,EAAkB;IAAA;;IACd,MAAMQ,UAAU,GAAGC,gCAAgC,CAACT,YAAD,CAAnD;IACA,MAAMU,UAAU,GAAGC,iBAAiB,CAACR,OAAD,EAAUK,UAAU,CAACI,IAAX,CAAgB,GAAhB,CAAV,CAApC;IACA,MAAMC,WAAW,0BAAGH,UAAH,aAAGA,UAAH,uBAAGA,UAAU,CAAEI,OAAf,qEAA0B,EAA3C;IAEA,MAAMC,IAAI,GAAGP,UAAU,CAACQ,GAAX,CAAeC,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SAA9B,EAAyCC,SAA6B,EAAtE;IACX,MAAM+C,UAAU,GAAGE,EAAI,EAAvB;;IACA,MAAM,CAAChD,OAAD,EAAU0C,eAAV,IAA6B/C,mBAAmB,CAACsC,YAAD,EAAepC,YAAf,EAA6B,EAAE,GAAGE,MAAL;MAAa+C;KAA1C,CAAtD;IACAR,qBAAqB,CAACI,eAAD,CAArB;IACAR,eAAe,CAAClC,OAAD,CAAf;;IAEA,IAAIgC,QAAJ,aAAIA,QAAJ,eAAIA,QAAQ,CAAEW,OAAd,EAAuB;MACnBX,QAAQ,CAACW,OAAT,CAAiBC,QAAjB,CAA0BC,gBAA1B,CAA2CC,UAA3C;;;IAGJ,OAAOJ,eAAP;GAVJ;;EAaA,MAAMO,MAAM,GAAIpD,YAAD;IACX,MAAMG,OAAO,GAAGkB,mBAAmB,CAACe,YAAD,EAAepC,YAAf,CAAnC;IACAqC,eAAe,CAAClC,OAAD,CAAf;IACAsC,qBAAqB,CAACxC,SAAD,CAArB;GAHJ;;EAMA,OAAO;IACHF,IAAI,EAAEqC,YADH;IAEHc,MAFG;IAGHE,MAHG;IAIHC,UAAU,EAAEb,kBAAkB,KAAKvC;GAJvC;AAMH;;;;"}
|
@@ -0,0 +1,217 @@
|
|
1
|
+
import React__default from 'react';
|
2
|
+
import { useLocalization } from '../../Provider/Provider.js';
|
3
|
+
import { useTable as useTable$1, useRowState, useSortBy, useExpanded, usePagination } from 'react-table';
|
4
|
+
import { getColumnsFromChildren, getInternalSortRules, sanitizeRowProps } from '../util.js';
|
5
|
+
import { sortTypes } from '../util/sortTypes.js';
|
6
|
+
import { useRowEditing } from './plugins/useRowEditing.js';
|
7
|
+
import { useRowActions } from './plugins/useRowActions.js';
|
8
|
+
import { useRowSelect } from './plugins/useRowSelect.js';
|
9
|
+
import { useTableKeyboardNavigation } from './useTableKeyboardNavigation.js';
|
10
|
+
import { useRowDraggable } from './plugins/useRowDraggable.js';
|
11
|
+
|
12
|
+
const useTableRowActive = (activeIndex, rows, rowExpansionRenderer, handleonRowActive) => {
|
13
|
+
React__default.useEffect(() => {
|
14
|
+
if (activeIndex !== undefined && rows.length && handleonRowActive) {
|
15
|
+
const focusedRow = rows[activeIndex];
|
16
|
+
|
17
|
+
if (focusedRow) {
|
18
|
+
const sanitizedFocusedRow = sanitizeRowProps(focusedRow, rowExpansionRenderer);
|
19
|
+
handleonRowActive(sanitizedFocusedRow);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}, [activeIndex, rows]);
|
23
|
+
};
|
24
|
+
|
25
|
+
const useTableInstance = (instance, ref) => {
|
26
|
+
const sanitizedInstance = React__default.useMemo(() => ({
|
27
|
+
toggleAllRowsExpanded: instance.toggleAllRowsExpanded,
|
28
|
+
toggleHideAllColumns: instance.toggleHideAllColumns,
|
29
|
+
toggleHideColumn: instance.toggleHideColumn,
|
30
|
+
toggleEditing: instance.toggleEditing,
|
31
|
+
toggleRowEditing: instance.toggleRowEditing,
|
32
|
+
resetRowEditing: instance.resetRowEditing,
|
33
|
+
toggleRowExpanded: instance.toggleRowExpanded,
|
34
|
+
toggleSortBy: instance.toggleSortBy
|
35
|
+
}), []);
|
36
|
+
React__default.useEffect(() => {
|
37
|
+
if (ref !== null && ref !== void 0 && ref.current) {
|
38
|
+
ref.current.instance = sanitizedInstance;
|
39
|
+
}
|
40
|
+
}, [ref]);
|
41
|
+
return sanitizedInstance;
|
42
|
+
};
|
43
|
+
|
44
|
+
const useTablePaginationListener = (disablePagination, onPaginate, state) => {
|
45
|
+
React__default.useEffect(() => {
|
46
|
+
if (!disablePagination && onPaginate) {
|
47
|
+
onPaginate(state.pageIndex, state.pageSize);
|
48
|
+
}
|
49
|
+
}, [state.pageIndex, state.pageSize]);
|
50
|
+
};
|
51
|
+
|
52
|
+
const useTableSortingListener = (data, sortedRows, onSort, manualSorting, state) => {
|
53
|
+
React__default.useEffect(() => {
|
54
|
+
if (onSort) {
|
55
|
+
const sortRules = state.sortBy.map(rule => ({
|
56
|
+
accessor: rule.id,
|
57
|
+
desc: rule.desc
|
58
|
+
}));
|
59
|
+
|
60
|
+
if (manualSorting) {
|
61
|
+
onSort(sortRules);
|
62
|
+
} else {
|
63
|
+
let sortedData;
|
64
|
+
|
65
|
+
if (sortRules.length && sortedRows !== null && sortedRows !== void 0 && sortedRows.length) {
|
66
|
+
sortedData = sortedRows.map(row => row.original);
|
67
|
+
}
|
68
|
+
|
69
|
+
onSort(sortRules, sortedData || data);
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}, [onSort && JSON.stringify(state.sortBy), manualSorting]);
|
73
|
+
};
|
74
|
+
|
75
|
+
const DEFAULT_PAGE_SIZE = 10;
|
76
|
+
const useTable = (props, ref) => {
|
77
|
+
var _otherProps$tabIndex;
|
78
|
+
|
79
|
+
const {
|
80
|
+
children,
|
81
|
+
data,
|
82
|
+
dangerouslyHijackGlobalKeyboardNavigation: _1,
|
83
|
+
onRowClick,
|
84
|
+
onRowDrag,
|
85
|
+
onSelectedRows,
|
86
|
+
rowClassName,
|
87
|
+
rowExpansionRenderer,
|
88
|
+
rowHeight,
|
89
|
+
selectedRows,
|
90
|
+
// sorting
|
91
|
+
disableSorting,
|
92
|
+
manualSorting,
|
93
|
+
onSort,
|
94
|
+
sortRules,
|
95
|
+
// pagination
|
96
|
+
disablePagination = true,
|
97
|
+
length,
|
98
|
+
onPaginate,
|
99
|
+
pageSize = DEFAULT_PAGE_SIZE,
|
100
|
+
pageIndex = 0,
|
101
|
+
// row editing
|
102
|
+
inlineEditingUniqueId = undefined,
|
103
|
+
onRowCreate,
|
104
|
+
// actions
|
105
|
+
actions,
|
106
|
+
onRowEdit,
|
107
|
+
onRowCopy,
|
108
|
+
onRowDelete,
|
109
|
+
onRowActive,
|
110
|
+
windowed = false,
|
111
|
+
...otherProps
|
112
|
+
} = props;
|
113
|
+
|
114
|
+
if (onSelectedRows && !selectedRows || !onSelectedRows && selectedRows) {
|
115
|
+
throw new Error('Selected rows in a Table component are fully controlled - you must pass both the `onSelectedRows` and `selectedRows` props when using row selection');
|
116
|
+
}
|
117
|
+
|
118
|
+
const {
|
119
|
+
texts
|
120
|
+
} = useLocalization();
|
121
|
+
const {
|
122
|
+
columns,
|
123
|
+
sortRules: defaultSortRules
|
124
|
+
} = React__default.useMemo(() => getColumnsFromChildren(children, rowExpansionRenderer), [children, rowExpansionRenderer]);
|
125
|
+
const manualPagination = !disablePagination && !!onPaginate && !!length;
|
126
|
+
const {
|
127
|
+
headerGroups,
|
128
|
+
rows,
|
129
|
+
sortedRows,
|
130
|
+
prepareRow: prepareBaseRow,
|
131
|
+
state,
|
132
|
+
// pagination
|
133
|
+
page,
|
134
|
+
gotoPage,
|
135
|
+
setPageSize,
|
136
|
+
...instance
|
137
|
+
} = useTable$1({
|
138
|
+
columns,
|
139
|
+
data,
|
140
|
+
initialState: {
|
141
|
+
// eslint-disable-next-line
|
142
|
+
// @ts-ignore: not sure how to type this correctly right now
|
143
|
+
sortBy: getInternalSortRules(sortRules) || defaultSortRules,
|
144
|
+
pageSize: !disablePagination ? pageSize : undefined,
|
145
|
+
pageIndex: !disablePagination ? pageIndex : undefined
|
146
|
+
},
|
147
|
+
manualPagination,
|
148
|
+
pageCount: manualPagination && length ? Math.ceil(length / pageSize) : -1,
|
149
|
+
manualSortBy: manualSorting,
|
150
|
+
disableSortBy: disableSorting,
|
151
|
+
// most of these resets preventions are needed for editing mode
|
152
|
+
autoResetExpanded: false,
|
153
|
+
autoResetSelectedRows: false,
|
154
|
+
autoResetSortBy: false,
|
155
|
+
autoResetPage: false,
|
156
|
+
sortTypes: React__default.useMemo(() => sortTypes, []),
|
157
|
+
useControlledState: currentState => {
|
158
|
+
return React__default.useMemo(() => ({ ...currentState,
|
159
|
+
selectedRowIds: selectedRows || []
|
160
|
+
}), [currentState, selectedRows]);
|
161
|
+
}
|
162
|
+
}, useRowState, useSortBy, useExpanded, usePagination, useRowSelect(onSelectedRows), useRowDraggable(onRowDrag), useRowEditing(inlineEditingUniqueId), useRowActions(inlineEditingUniqueId, {
|
163
|
+
onRowCreate,
|
164
|
+
onRowEdit,
|
165
|
+
onRowCopy,
|
166
|
+
onRowDelete
|
167
|
+
}, actions, rowExpansionRenderer, texts, windowed));
|
168
|
+
useTablePaginationListener(disablePagination, onPaginate, state);
|
169
|
+
useTableSortingListener(data, sortedRows, onSort, !!manualSorting, state);
|
170
|
+
const sanitizedInstance = useTableInstance(instance, ref);
|
171
|
+
const visibleRows = !disablePagination && !manualPagination ? page : rows;
|
172
|
+
const [activeIndex, setActiveIndex, handleKeyDown, handleFocus] = useTableKeyboardNavigation(props, visibleRows, {
|
173
|
+
onRowClick,
|
174
|
+
onRowCreate,
|
175
|
+
onRowEdit,
|
176
|
+
onRowCopy,
|
177
|
+
onRowDelete,
|
178
|
+
rowExpansionRenderer
|
179
|
+
}, ref);
|
180
|
+
useTableRowActive(activeIndex, rows, rowExpansionRenderer, onRowActive);
|
181
|
+
const prepareRow = React__default.useCallback((row, index) => {
|
182
|
+
prepareBaseRow(row);
|
183
|
+
|
184
|
+
row.setActive = () => setActiveIndex(index);
|
185
|
+
}, [prepareBaseRow, setActiveIndex]);
|
186
|
+
return {
|
187
|
+
rowProps: {
|
188
|
+
activeIndex,
|
189
|
+
setActiveIndex,
|
190
|
+
onRowClick,
|
191
|
+
rowClassName,
|
192
|
+
rowExpansionRenderer,
|
193
|
+
rowHeight,
|
194
|
+
inlineEditingUniqueId
|
195
|
+
},
|
196
|
+
tableProps: { ...otherProps,
|
197
|
+
headerGroups,
|
198
|
+
onFocus: handleFocus,
|
199
|
+
onKeyDown: handleKeyDown,
|
200
|
+
tabIndex: (_otherProps$tabIndex = otherProps.tabIndex) !== null && _otherProps$tabIndex !== void 0 ? _otherProps$tabIndex : 0
|
201
|
+
},
|
202
|
+
state,
|
203
|
+
pagination: !disablePagination ? {
|
204
|
+
length: manualPagination && length ? length : data.length,
|
205
|
+
pageIndex: state.pageIndex,
|
206
|
+
pageSize: state.pageSize,
|
207
|
+
setPageIndex: gotoPage,
|
208
|
+
setPageSize: setPageSize
|
209
|
+
} : null,
|
210
|
+
rows: visibleRows,
|
211
|
+
prepareRow,
|
212
|
+
instance: sanitizedInstance
|
213
|
+
};
|
214
|
+
};
|
215
|
+
|
216
|
+
export { useTable };
|
217
|
+
//# sourceMappingURL=useTable.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useTable.js","sources":["../../../../../src/components/Table/hooks/useTable.tsx"],"sourcesContent":["import React from 'react';\r\nimport { useTable as useReactTable, useExpanded, useSortBy, usePagination, useRowState } from 'react-table';\r\nimport { getColumnsFromChildren, getInternalSortRules } from '../util';\r\nimport { sortTypes } from '../util/sortTypes';\r\nimport { useRowEditing } from './plugins/useRowEditing';\r\nimport { useRowActions } from './plugins/useRowActions';\r\nimport { useRowSelect } from './plugins/useRowSelect';\r\nimport {\r\n InternalTable,\r\n InternalTableRow,\r\n PaginationHandler,\r\n RowActiveHandler,\r\n SortHandler,\r\n TableProps,\r\n TableRef,\r\n} from '../types';\r\nimport { useTableKeyboardNavigation } from './useTableKeyboardNavigation';\r\nimport { useLocalization } from '../../Provider/Provider';\r\nimport { useRowDraggable } from './plugins/useRowDraggable';\r\nimport { sanitizeRowProps } from '../util';\r\n\r\nconst useTableRowActive = (\r\n activeIndex: number | undefined,\r\n rows: InternalTableRow[],\r\n rowExpansionRenderer: TableProps<any>['rowExpansionRenderer'],\r\n handleonRowActive: RowActiveHandler<any> | undefined\r\n) => {\r\n React.useEffect(() => {\r\n if (activeIndex !== undefined && rows.length && handleonRowActive) {\r\n const focusedRow = rows[activeIndex];\r\n if (focusedRow) {\r\n const sanitizedFocusedRow = sanitizeRowProps(focusedRow, rowExpansionRenderer);\r\n handleonRowActive(sanitizedFocusedRow);\r\n }\r\n }\r\n }, [activeIndex, rows]);\r\n};\r\n\r\nconst useTableInstance = (instance: any, ref: React.RefObject<TableRef>): object => {\r\n const sanitizedInstance = React.useMemo(\r\n () => ({\r\n toggleAllRowsExpanded: instance.toggleAllRowsExpanded,\r\n toggleHideAllColumns: instance.toggleHideAllColumns,\r\n toggleHideColumn: instance.toggleHideColumn,\r\n toggleEditing: instance.toggleEditing,\r\n toggleRowEditing: instance.toggleRowEditing,\r\n resetRowEditing: instance.resetRowEditing,\r\n toggleRowExpanded: instance.toggleRowExpanded,\r\n toggleSortBy: instance.toggleSortBy,\r\n }),\r\n []\r\n );\r\n\r\n React.useEffect(() => {\r\n if (ref?.current) {\r\n ref.current.instance = sanitizedInstance;\r\n }\r\n }, [ref]);\r\n\r\n return sanitizedInstance;\r\n};\r\n\r\nconst useTablePaginationListener = (disablePagination: boolean, onPaginate: PaginationHandler | undefined, state: any): void => {\r\n React.useEffect(() => {\r\n if (!disablePagination && onPaginate) {\r\n onPaginate(state.pageIndex, state.pageSize);\r\n }\r\n }, [state.pageIndex, state.pageSize]);\r\n};\r\n\r\nconst useTableSortingListener = (\r\n data: any[],\r\n sortedRows: any[],\r\n onSort: SortHandler<any> | undefined,\r\n manualSorting: boolean,\r\n state: any\r\n): void => {\r\n React.useEffect(() => {\r\n if (onSort) {\r\n const sortRules = state.sortBy.map((rule: any) => ({ accessor: rule.id, desc: rule.desc }));\r\n\r\n if (manualSorting) {\r\n onSort(sortRules);\r\n } else {\r\n let sortedData;\r\n\r\n if (sortRules.length && sortedRows?.length) {\r\n sortedData = sortedRows.map((row: any) => row.original);\r\n }\r\n\r\n onSort(sortRules, sortedData || data);\r\n }\r\n }\r\n }, [onSort && JSON.stringify(state.sortBy), manualSorting]);\r\n};\r\n\r\nconst DEFAULT_PAGE_SIZE = 10;\r\n\r\nexport const useTable = <T extends {}>(\r\n props: TableProps<T> & { windowed?: boolean },\r\n ref: React.RefObject<TableRef>\r\n): InternalTable => {\r\n const {\r\n children,\r\n data,\r\n dangerouslyHijackGlobalKeyboardNavigation: _1,\r\n onRowClick,\r\n onRowDrag,\r\n onSelectedRows,\r\n rowClassName,\r\n rowExpansionRenderer,\r\n rowHeight,\r\n selectedRows,\r\n\r\n // sorting\r\n disableSorting,\r\n manualSorting,\r\n onSort,\r\n sortRules,\r\n\r\n // pagination\r\n disablePagination = true,\r\n length,\r\n onPaginate,\r\n pageSize = DEFAULT_PAGE_SIZE,\r\n pageIndex = 0,\r\n\r\n // row editing\r\n inlineEditingUniqueId = undefined,\r\n onRowCreate,\r\n\r\n // actions\r\n actions,\r\n onRowEdit,\r\n onRowCopy,\r\n onRowDelete,\r\n onRowActive,\r\n\r\n windowed = false,\r\n\r\n ...otherProps\r\n } = props;\r\n\r\n if ((onSelectedRows && !selectedRows) || (!onSelectedRows && selectedRows)) {\r\n throw new Error(\r\n 'Selected rows in a Table component are fully controlled - you must pass both the `onSelectedRows` and `selectedRows` props when using row selection'\r\n );\r\n }\r\n\r\n const { texts } = useLocalization();\r\n const { columns, sortRules: defaultSortRules } = React.useMemo(\r\n () => getColumnsFromChildren(children, rowExpansionRenderer),\r\n [children, rowExpansionRenderer]\r\n );\r\n\r\n const manualPagination = !disablePagination && !!onPaginate && !!length;\r\n\r\n const {\r\n headerGroups,\r\n rows,\r\n sortedRows,\r\n prepareRow: prepareBaseRow,\r\n state,\r\n // pagination\r\n page,\r\n gotoPage,\r\n setPageSize,\r\n ...instance\r\n }: any = useReactTable(\r\n {\r\n columns,\r\n data,\r\n initialState: {\r\n // eslint-disable-next-line\r\n // @ts-ignore: not sure how to type this correctly right now\r\n sortBy: getInternalSortRules(sortRules) || defaultSortRules,\r\n pageSize: !disablePagination ? pageSize : undefined,\r\n pageIndex: !disablePagination ? pageIndex : undefined,\r\n },\r\n manualPagination,\r\n pageCount: manualPagination && length ? Math.ceil(length / pageSize) : -1,\r\n manualSortBy: manualSorting,\r\n disableSortBy: disableSorting,\r\n // most of these resets preventions are needed for editing mode\r\n autoResetExpanded: false,\r\n autoResetSelectedRows: false,\r\n autoResetSortBy: false,\r\n autoResetPage: false,\r\n sortTypes: React.useMemo(() => sortTypes, []),\r\n useControlledState: currentState => {\r\n return React.useMemo(\r\n () => ({\r\n ...currentState,\r\n selectedRowIds: selectedRows || [],\r\n }),\r\n [currentState, selectedRows]\r\n );\r\n },\r\n },\r\n useRowState,\r\n useSortBy,\r\n useExpanded,\r\n usePagination,\r\n useRowSelect(onSelectedRows),\r\n useRowDraggable(onRowDrag),\r\n useRowEditing(inlineEditingUniqueId),\r\n useRowActions(\r\n inlineEditingUniqueId,\r\n { onRowCreate, onRowEdit, onRowCopy, onRowDelete },\r\n actions,\r\n rowExpansionRenderer,\r\n texts,\r\n windowed\r\n )\r\n );\r\n\r\n useTablePaginationListener(disablePagination, onPaginate, state);\r\n useTableSortingListener(data, sortedRows, onSort, !!manualSorting, state);\r\n\r\n const sanitizedInstance = useTableInstance(instance, ref);\r\n\r\n const visibleRows = !disablePagination && !manualPagination ? page : rows;\r\n\r\n const [activeIndex, setActiveIndex, handleKeyDown, handleFocus] = useTableKeyboardNavigation<T>(\r\n props,\r\n visibleRows,\r\n { onRowClick, onRowCreate, onRowEdit, onRowCopy, onRowDelete, rowExpansionRenderer },\r\n ref\r\n );\r\n\r\n useTableRowActive(activeIndex, rows, rowExpansionRenderer, onRowActive);\r\n\r\n const prepareRow = React.useCallback(\r\n (row: any, index: number) => {\r\n prepareBaseRow(row);\r\n row.setActive = () => setActiveIndex(index);\r\n },\r\n [prepareBaseRow, setActiveIndex]\r\n );\r\n\r\n return {\r\n rowProps: {\r\n activeIndex,\r\n setActiveIndex,\r\n onRowClick,\r\n rowClassName,\r\n rowExpansionRenderer,\r\n rowHeight,\r\n inlineEditingUniqueId,\r\n },\r\n tableProps: {\r\n ...otherProps,\r\n headerGroups,\r\n onFocus: handleFocus,\r\n onKeyDown: handleKeyDown,\r\n tabIndex: otherProps.tabIndex ?? 0,\r\n },\r\n state,\r\n pagination: !disablePagination\r\n ? {\r\n length: manualPagination && length ? length : data.length,\r\n pageIndex: state.pageIndex,\r\n pageSize: state.pageSize,\r\n setPageIndex: gotoPage,\r\n setPageSize: setPageSize,\r\n }\r\n : null,\r\n rows: visibleRows,\r\n prepareRow,\r\n instance: sanitizedInstance,\r\n };\r\n};\r\n"],"names":["useTableRowActive","activeIndex","rows","rowExpansionRenderer","handleonRowActive","React","useEffect","undefined","length","focusedRow","sanitizedFocusedRow","sanitizeRowProps","useTableInstance","instance","ref","sanitizedInstance","useMemo","toggleAllRowsExpanded","toggleHideAllColumns","toggleHideColumn","toggleEditing","toggleRowEditing","resetRowEditing","toggleRowExpanded","toggleSortBy","current","useTablePaginationListener","disablePagination","onPaginate","state","pageIndex","pageSize","useTableSortingListener","data","sortedRows","onSort","manualSorting","sortRules","sortBy","map","rule","accessor","id","desc","sortedData","row","original","JSON","stringify","DEFAULT_PAGE_SIZE","useTable","props","children","dangerouslyHijackGlobalKeyboardNavigation","_1","onRowClick","onRowDrag","onSelectedRows","rowClassName","rowHeight","selectedRows","disableSorting","inlineEditingUniqueId","onRowCreate","actions","onRowEdit","onRowCopy","onRowDelete","onRowActive","windowed","otherProps","Error","texts","useLocalization","columns","defaultSortRules","getColumnsFromChildren","manualPagination","headerGroups","prepareRow","prepareBaseRow","page","gotoPage","setPageSize","useReactTable","initialState","getInternalSortRules","pageCount","Math","ceil","manualSortBy","disableSortBy","autoResetExpanded","autoResetSelectedRows","autoResetSortBy","autoResetPage","sortTypes","useControlledState","currentState","selectedRowIds","useRowState","useSortBy","useExpanded","usePagination","useRowSelect","useRowDraggable","useRowEditing","useRowActions","visibleRows","setActiveIndex","handleKeyDown","handleFocus","useTableKeyboardNavigation","useCallback","index","setActive","rowProps","tableProps","onFocus","onKeyDown","tabIndex","pagination","setPageIndex"],"mappings":";;;;;;;;;;;AAqBA,MAAMA,iBAAiB,GAAG,CACtBC,WADsB,EAEtBC,IAFsB,EAGtBC,oBAHsB,EAItBC,iBAJsB;EAMtBC,cAAK,CAACC,SAAN,CAAgB;IACZ,IAAIL,WAAW,KAAKM,SAAhB,IAA6BL,IAAI,CAACM,MAAlC,IAA4CJ,iBAAhD,EAAmE;MAC/D,MAAMK,UAAU,GAAGP,IAAI,CAACD,WAAD,CAAvB;;MACA,IAAIQ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