@caspeco/casper-ui-library 10.3.1 → 10.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/_virtual/builtin_esm-external-require-react.js +9 -0
- package/dist/components/accordion/accordion-context.js +5 -6
- package/dist/components/accordion/accordion-item.js +28 -40
- package/dist/components/accordion/accordion-panel.js +17 -14
- package/dist/components/accordion/accordion-recipe.js +85 -120
- package/dist/components/accordion/accordion.js +23 -20
- package/dist/components/alert/alert.js +80 -59
- package/dist/components/alert/helper.js +30 -42
- package/dist/components/alert/types.d.ts.map +1 -1
- package/dist/components/badge/badge-recipe.js +57 -49
- package/dist/components/badge/badge.js +66 -71
- package/dist/components/badge/helper.js +8 -9
- package/dist/components/box/box.js +14 -11
- package/dist/components/breadcrumbs/breadcrumb-item.js +21 -17
- package/dist/components/breadcrumbs/breadcrumb-link.js +21 -20
- package/dist/components/breadcrumbs/breadcrumbs.js +123 -90
- package/dist/components/button/button-recipe.js +280 -315
- package/dist/components/button/button.js +39 -40
- package/dist/components/checkbox/checkbox-icon.js +38 -46
- package/dist/components/checkbox/checkbox-recipe.js +176 -204
- package/dist/components/checkbox/checkbox.js +43 -36
- package/dist/components/checkbox/icons/check.js +5 -5
- package/dist/components/checkbox/icons/minus.js +5 -5
- package/dist/components/checkbox/icons/plus.js +5 -5
- package/dist/components/checkbox-group/checkbox-group.js +17 -16
- package/dist/components/collapsible/collapsible.js +117 -101
- package/dist/components/collapsible/translations.js +29 -29
- package/dist/components/combobox/combobox-button.js +173 -143
- package/dist/components/combobox/combobox-item.js +45 -23
- package/dist/components/combobox/combobox-menu.js +240 -190
- package/dist/components/combobox/combobox-recipe.js +69 -103
- package/dist/components/combobox/combobox.js +243 -273
- package/dist/components/combobox/translations.js +49 -50
- package/dist/components/date-picker/base-date-picker.js +238 -248
- package/dist/components/date-picker/date-cell-recipe.js +149 -179
- package/dist/components/date-picker/date-multi-picker.js +35 -29
- package/dist/components/date-picker/date-picker-date-cell.js +109 -114
- package/dist/components/date-picker/date-picker-header.js +152 -170
- package/dist/components/date-picker/date-picker-week-cell.js +41 -43
- package/dist/components/date-picker/date-picker.js +32 -29
- package/dist/components/date-picker/date-range-picker.js +29 -24
- package/dist/components/date-picker/date-week-picker.js +29 -22
- package/dist/components/date-picker/datepicker-week-recipe.js +75 -91
- package/dist/components/date-picker/helper.js +11 -16
- package/dist/components/divider/divider-recipe.js +9 -11
- package/dist/components/divider/divider.js +19 -18
- package/dist/components/drawer/drawer-recipe.js +21 -50
- package/dist/components/drawer/drawer.js +45 -41
- package/dist/components/drawer/inline-drawer.js +69 -66
- package/dist/components/drawer/use-drawer-key-down.js +20 -20
- package/dist/components/fieldset/fieldset-error-text.js +15 -15
- package/dist/components/fieldset/fieldset-helper-text.js +15 -15
- package/dist/components/fieldset/fieldset-legend.js +15 -15
- package/dist/components/fieldset/fieldset-recipe.js +14 -24
- package/dist/components/fieldset/fieldset.js +17 -17
- package/dist/components/flex/flex.js +15 -15
- package/dist/components/form-control/form-control-recipe.js +42 -46
- package/dist/components/form-control/form-control.js +19 -19
- package/dist/components/form-control/form-error-message.js +15 -15
- package/dist/components/form-control/form-helper-text.js +15 -15
- package/dist/components/form-control/form-label.js +24 -26
- package/dist/components/grid/grid-item.js +15 -15
- package/dist/components/grid/grid.js +15 -15
- package/dist/components/heading/heading.js +24 -23
- package/dist/components/highlight/highlight.js +22 -21
- package/dist/components/icon/create-icon.js +27 -26
- package/dist/components/icon/icons/absence-icon.js +5 -5
- package/dist/components/icon/icons/accessibility-icon.js +5 -5
- package/dist/components/icon/icons/add-absence-icon.js +5 -5
- package/dist/components/icon/icons/add-emoji-icon.js +5 -5
- package/dist/components/icon/icons/add-icon.js +5 -5
- package/dist/components/icon/icons/apple-icon.js +5 -5
- package/dist/components/icon/icons/apps-icon.js +5 -5
- package/dist/components/icon/icons/archive-icon.js +6 -6
- package/dist/components/icon/icons/area-icon.js +5 -5
- package/dist/components/icon/icons/at-icon.js +5 -5
- package/dist/components/icon/icons/attachment-icon.js +5 -5
- package/dist/components/icon/icons/baby-icon.js +5 -5
- package/dist/components/icon/icons/back-icon.js +5 -5
- package/dist/components/icon/icons/backspace-icon.js +5 -5
- package/dist/components/icon/icons/bank-icon.js +5 -5
- package/dist/components/icon/icons/bank-id-icon.js +5 -5
- package/dist/components/icon/icons/barcode-icon.js +5 -5
- package/dist/components/icon/icons/bell-icon.js +5 -5
- package/dist/components/icon/icons/bolt-icon.js +7 -7
- package/dist/components/icon/icons/calendar-icon.js +5 -5
- package/dist/components/icon/icons/camera-icon.js +5 -5
- package/dist/components/icon/icons/cancel-icon.js +5 -5
- package/dist/components/icon/icons/card-icon.js +5 -5
- package/dist/components/icon/icons/cart-icon.js +5 -5
- package/dist/components/icon/icons/caspeco-icon.js +7 -7
- package/dist/components/icon/icons/channels-icon.js +5 -5
- package/dist/components/icon/icons/chart-icon.js +5 -5
- package/dist/components/icon/icons/chart-line-icon.js +5 -5
- package/dist/components/icon/icons/chart-mixed-icon.js +5 -5
- package/dist/components/icon/icons/chart-pie-icon.js +5 -5
- package/dist/components/icon/icons/chart-scatter-icon.js +5 -5
- package/dist/components/icon/icons/check-icon.js +5 -5
- package/dist/components/icon/icons/checkbox-icon.js +5 -5
- package/dist/components/icon/icons/chevron-left-icon.js +5 -5
- package/dist/components/icon/icons/chevron-right-icon.js +5 -5
- package/dist/components/icon/icons/child-icon.js +5 -5
- package/dist/components/icon/icons/circle-info-icon.js +5 -5
- package/dist/components/icon/icons/circle-parking-icon.js +5 -5
- package/dist/components/icon/icons/circle-question-icon.js +5 -5
- package/dist/components/icon/icons/circle-select-icon.js +5 -5
- package/dist/components/icon/icons/circle-success-icon.js +5 -5
- package/dist/components/icon/icons/circle-user-icon.js +5 -5
- package/dist/components/icon/icons/clear-icon.js +5 -5
- package/dist/components/icon/icons/close-icon.js +5 -5
- package/dist/components/icon/icons/closed-icon.js +5 -5
- package/dist/components/icon/icons/collapse-icon.js +5 -5
- package/dist/components/icon/icons/color-icon.js +5 -5
- package/dist/components/icon/icons/columns-icon.js +5 -5
- package/dist/components/icon/icons/comment-add-icon.js +5 -5
- package/dist/components/icon/icons/comment-icon.js +5 -5
- package/dist/components/icon/icons/cookies-icon.js +5 -5
- package/dist/components/icon/icons/copy-icon.js +5 -5
- package/dist/components/icon/icons/date-icon.js +5 -5
- package/dist/components/icon/icons/decrease-icon.js +4 -4
- package/dist/components/icon/icons/delete-icon.js +5 -5
- package/dist/components/icon/icons/deliverect-icon.js +5 -5
- package/dist/components/icon/icons/delivery-icon.js +5 -5
- package/dist/components/icon/icons/description-icon.js +5 -5
- package/dist/components/icon/icons/discount-icon.js +5 -5
- package/dist/components/icon/icons/distribute-evenly-icon.js +5 -5
- package/dist/components/icon/icons/door-closed-icon.js +5 -5
- package/dist/components/icon/icons/door-open-icon.js +5 -5
- package/dist/components/icon/icons/down-icon.js +5 -5
- package/dist/components/icon/icons/eat-in-icon.js +5 -5
- package/dist/components/icon/icons/edit-icon.js +5 -5
- package/dist/components/icon/icons/email-icon.js +5 -5
- package/dist/components/icon/icons/error-icon.js +5 -5
- package/dist/components/icon/icons/expand-icon.js +5 -5
- package/dist/components/icon/icons/export-icon.js +5 -5
- package/dist/components/icon/icons/extract-icon.js +5 -5
- package/dist/components/icon/icons/facebook-icon.js +5 -5
- package/dist/components/icon/icons/failed-print-icon.js +5 -5
- package/dist/components/icon/icons/file-icon.js +5 -5
- package/dist/components/icon/icons/filter-icon.js +5 -5
- package/dist/components/icon/icons/folder-icon.js +5 -5
- package/dist/components/icon/icons/foodora-icon.js +5 -5
- package/dist/components/icon/icons/forward-icon.js +5 -5
- package/dist/components/icon/icons/glovo-icon.js +7 -7
- package/dist/components/icon/icons/goal-icon.js +5 -5
- package/dist/components/icon/icons/google-icon.js +5 -5
- package/dist/components/icon/icons/grip-more-icon.js +5 -5
- package/dist/components/icon/icons/hash-icon.js +5 -5
- package/dist/components/icon/icons/hexagon-error-icon.js +5 -5
- package/dist/components/icon/icons/hide-icon.js +5 -5
- package/dist/components/icon/icons/history-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-anchor-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-asterisk-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-beer-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-bicycle-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-binoculars-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-bomb-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-car-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-cocktail-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-gem-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-heart-full-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-heart-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-magnet-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-money-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-moon-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-music-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-star-full-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-star-half-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-star-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-tint-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-tree-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-utensils-icon.js +5 -5
- package/dist/components/icon/icons/icon-picker-wheelchair-icon.js +5 -5
- package/dist/components/icon/icons/image-icon.js +5 -5
- package/dist/components/icon/icons/import-icon.js +5 -5
- package/dist/components/icon/icons/inbox-icon.js +5 -5
- package/dist/components/icon/icons/increase-icon.js +5 -5
- package/dist/components/icon/icons/indeterminate-icon.js +4 -4
- package/dist/components/icon/icons/index.d.ts +1 -0
- package/dist/components/icon/icons/index.d.ts.map +1 -1
- package/dist/components/icon/icons/info-icon.js +5 -5
- package/dist/components/icon/icons/inheritance-icon.js +5 -5
- package/dist/components/icon/icons/just-eat-icon.js +5 -5
- package/dist/components/icon/icons/karma-icon.js +5 -5
- package/dist/components/icon/icons/key-command-icon.js +5 -5
- package/dist/components/icon/icons/key-enter-icon.js +5 -5
- package/dist/components/icon/icons/key-icon.js +5 -5
- package/dist/components/icon/icons/key-option-icon.js +5 -5
- package/dist/components/icon/icons/language-icon.js +5 -5
- package/dist/components/icon/icons/link-broken-icon.js +5 -5
- package/dist/components/icon/icons/link-external-icon.js +5 -5
- package/dist/components/icon/icons/link-icon.js +5 -5
- package/dist/components/icon/icons/list-ol-icon.js +5 -5
- package/dist/components/icon/icons/list-ul-icon.js +5 -5
- package/dist/components/icon/icons/loading-icon.js +5 -5
- package/dist/components/icon/icons/location-icon.js +5 -5
- package/dist/components/icon/icons/lock-icon.js +5 -5
- package/dist/components/icon/icons/log-in-icon.js +5 -5
- package/dist/components/icon/icons/log-out-icon.js +5 -5
- package/dist/components/icon/icons/map-icon.js +5 -5
- package/dist/components/icon/icons/maximize-icon.js +5 -5
- package/dist/components/icon/icons/members-icon.js +5 -5
- package/dist/components/icon/icons/menu-hide-icon.js +5 -5
- package/dist/components/icon/icons/menu-icon.js +5 -5
- package/dist/components/icon/icons/menu-show-icon.js +5 -5
- package/dist/components/icon/icons/message-add-icon.js +5 -5
- package/dist/components/icon/icons/message-icon.js +5 -5
- package/dist/components/icon/icons/message-lines-icon.js +5 -5
- package/dist/components/icon/icons/minimize-icon.js +5 -5
- package/dist/components/icon/icons/minimize-window-icon.js +5 -5
- package/dist/components/icon/icons/mobile-rotate-icon.js +5 -5
- package/dist/components/icon/icons/module-accounting-icon.js +5 -5
- package/dist/components/icon/icons/module-ai-forecast-icon.js +5 -5
- package/dist/components/icon/icons/module-app-icon.js +5 -5
- package/dist/components/icon/icons/module-articles-icon.js +5 -5
- package/dist/components/icon/icons/module-benchmark-icon.js +5 -5
- package/dist/components/icon/icons/module-booking-icon.js +5 -5
- package/dist/components/icon/icons/module-cai-icon.js +5 -5
- package/dist/components/icon/icons/module-campaigns-icon.js +5 -5
- package/dist/components/icon/icons/module-cashier-icon.js +5 -5
- package/dist/components/icon/icons/module-communication-icon.js +5 -5
- package/dist/components/icon/icons/module-copilot-icon.js +5 -5
- package/dist/components/icon/icons/module-dashboard-icon.js +5 -5
- package/dist/components/icon/icons/module-document-icon.js +5 -5
- package/dist/components/icon/icons/module-employees-icon.js +5 -5
- package/dist/components/icon/icons/module-feed-icon.js +5 -5
- package/dist/components/icon/icons/module-history-icon.js +5 -5
- package/dist/components/icon/icons/module-home-icon.js +5 -5
- package/dist/components/icon/icons/module-insights-icon.js +5 -5
- package/dist/components/icon/icons/module-kds-icon.js +5 -5
- package/dist/components/icon/icons/module-members-icon.js +5 -5
- package/dist/components/icon/icons/module-menus-icon.js +5 -5
- package/dist/components/icon/icons/module-my-city-icon.js +5 -5
- package/dist/components/icon/icons/module-notification-center-icon.js +5 -5
- package/dist/components/icon/icons/module-online-order-icon.js +5 -5
- package/dist/components/icon/icons/module-organisation-icon.js +5 -5
- package/dist/components/icon/icons/module-pos-icon.js +5 -5
- package/dist/components/icon/icons/module-pulse-icon.js +5 -5
- package/dist/components/icon/icons/module-result-icon.js +5 -5
- package/dist/components/icon/icons/module-salary-icon.js +5 -5
- package/dist/components/icon/icons/module-schedule-icon.js +5 -5
- package/dist/components/icon/icons/module-settings-alt-icon.js +5 -5
- package/dist/components/icon/icons/module-settings-icon.js +5 -5
- package/dist/components/icon/icons/module-support-icon.js +5 -5
- package/dist/components/icon/icons/module-survey-icon.js +5 -5
- package/dist/components/icon/icons/module-table-map-icon.js +6 -6
- package/dist/components/icon/icons/module-tablet-icon.js +5 -5
- package/dist/components/icon/icons/module-time-icon.js +5 -5
- package/dist/components/icon/icons/module-timeline-icon.js +5 -5
- package/dist/components/icon/icons/module-tip-icon.js +5 -5
- package/dist/components/icon/icons/module-to-do-icon.js +5 -5
- package/dist/components/icon/icons/module-tools-icon.js +5 -5
- package/dist/components/icon/icons/module-top-list-icon.js +5 -5
- package/dist/components/icon/icons/module-web-charts-icon.js +5 -5
- package/dist/components/icon/icons/module-web-icon.js +5 -5
- package/dist/components/icon/icons/more-horizontal-icon.js +5 -5
- package/dist/components/icon/icons/more-vertical-icon.js +5 -5
- package/dist/components/icon/icons/nfc-icon.js +5 -5
- package/dist/components/icon/icons/no-cart-icon.js +5 -5
- package/dist/components/icon/icons/note-icon.js +5 -5
- package/dist/components/icon/icons/number-icon.js +6 -6
- package/dist/components/icon/icons/open-modal-icon.js +5 -5
- package/dist/components/icon/icons/parking-icon.js +5 -5
- package/dist/components/icon/icons/party-horn-icon.js +5 -5
- package/dist/components/icon/icons/paste-icon.d.ts +2 -0
- package/dist/components/icon/icons/paste-icon.d.ts.map +1 -0
- package/dist/components/icon/icons/paste-icon.js +5 -0
- package/dist/components/icon/icons/pause-icon.js +5 -5
- package/dist/components/icon/icons/payment-card-icon.js +5 -5
- package/dist/components/icon/icons/payment-cash-icon.js +5 -5
- package/dist/components/icon/icons/payment-generic-icon.js +5 -5
- package/dist/components/icon/icons/payment-giftcard-icon.js +5 -5
- package/dist/components/icon/icons/payment-hotel-icon.js +5 -5
- package/dist/components/icon/icons/payment-invoice-icon.js +5 -5
- package/dist/components/icon/icons/percentage-icon.js +5 -5
- package/dist/components/icon/icons/phone-icon.js +5 -5
- package/dist/components/icon/icons/pin-icon.js +5 -5
- package/dist/components/icon/icons/pin-map-icon.js +5 -5
- package/dist/components/icon/icons/play-icon.js +5 -5
- package/dist/components/icon/icons/preview-icon.js +5 -5
- package/dist/components/icon/icons/print-icon.js +5 -5
- package/dist/components/icon/icons/privacy-icon.js +5 -5
- package/dist/components/icon/icons/product-admin-icon.js +5 -5
- package/dist/components/icon/icons/product-analytics-icon.js +5 -5
- package/dist/components/icon/icons/product-booking-icon.js +5 -5
- package/dist/components/icon/icons/product-checkout-icon.js +5 -5
- package/dist/components/icon/icons/product-my-pages-icon.js +5 -5
- package/dist/components/icon/icons/product-staff-icon.js +5 -5
- package/dist/components/icon/icons/puck-icon.js +5 -5
- package/dist/components/icon/icons/qr-code-icon.js +5 -5
- package/dist/components/icon/icons/question-icon.js +5 -5
- package/dist/components/icon/icons/radio-icon.js +5 -5
- package/dist/components/icon/icons/receipt-icon.js +5 -5
- package/dist/components/icon/icons/redo-icon.js +5 -5
- package/dist/components/icon/icons/refund-icon.js +5 -5
- package/dist/components/icon/icons/remove-icon.js +5 -5
- package/dist/components/icon/icons/replace-icon.js +5 -5
- package/dist/components/icon/icons/schedule-icon.js +5 -5
- package/dist/components/icon/icons/search-icon.js +5 -5
- package/dist/components/icon/icons/select-icon.js +4 -4
- package/dist/components/icon/icons/send-icon.js +5 -5
- package/dist/components/icon/icons/share-icon.js +5 -5
- package/dist/components/icon/icons/show-icon.js +5 -5
- package/dist/components/icon/icons/shuffle-icon.js +5 -5
- package/dist/components/icon/icons/sidebar-hide-icon.js +4 -4
- package/dist/components/icon/icons/sidebar-left-icon.js +4 -4
- package/dist/components/icon/icons/sidebar-right-icon.js +5 -5
- package/dist/components/icon/icons/sidebar-show-icon.js +5 -5
- package/dist/components/icon/icons/sliders-icon.js +5 -5
- package/dist/components/icon/icons/slightly-sad-icon.js +5 -5
- package/dist/components/icon/icons/smile-icon.js +5 -5
- package/dist/components/icon/icons/sort-asc-icon.js +5 -5
- package/dist/components/icon/icons/sort-desc-icon.js +5 -5
- package/dist/components/icon/icons/split-icon.js +5 -5
- package/dist/components/icon/icons/status-icon.js +5 -5
- package/dist/components/icon/icons/stop-icon.js +5 -5
- package/dist/components/icon/icons/submenu-icon.js +5 -5
- package/dist/components/icon/icons/success-icon.js +5 -5
- package/dist/components/icon/icons/swap-icon.js +5 -5
- package/dist/components/icon/icons/swatch-icon.js +5 -5
- package/dist/components/icon/icons/sweat-icon.js +5 -5
- package/dist/components/icon/icons/table-icon.js +5 -5
- package/dist/components/icon/icons/table-map-icon.js +5 -5
- package/dist/components/icon/icons/take-away-dot-com-icon.js +5 -5
- package/dist/components/icon/icons/take-away-icon.js +5 -5
- package/dist/components/icon/icons/talk-icon.js +5 -5
- package/dist/components/icon/icons/thumbtack-icon.js +5 -5
- package/dist/components/icon/icons/time-icon.js +5 -5
- package/dist/components/icon/icons/timeline-icon.js +5 -5
- package/dist/components/icon/icons/tip-icon.js +5 -5
- package/dist/components/icon/icons/title-icon.js +5 -5
- package/dist/components/icon/icons/translate-icon.js +5 -5
- package/dist/components/icon/icons/tree-view-collapse-icon.js +4 -4
- package/dist/components/icon/icons/tree-view-expand-icon.js +4 -4
- package/dist/components/icon/icons/tree-view-last-icon.js +4 -4
- package/dist/components/icon/icons/trend-down-icon.js +5 -5
- package/dist/components/icon/icons/trend-up-icon.js +5 -5
- package/dist/components/icon/icons/triangle-warning-icon.js +5 -5
- package/dist/components/icon/icons/trivec-icon.js +6 -6
- package/dist/components/icon/icons/uber-eats-icon.js +5 -5
- package/dist/components/icon/icons/undo-icon.js +5 -5
- package/dist/components/icon/icons/unlock-icon.js +5 -5
- package/dist/components/icon/icons/unwrap-content-icon.js +5 -5
- package/dist/components/icon/icons/up-icon.js +5 -5
- package/dist/components/icon/icons/user-group-icon.js +5 -5
- package/dist/components/icon/icons/user-icon.js +5 -5
- package/dist/components/icon/icons/user-permissions-icon.js +5 -5
- package/dist/components/icon/icons/user-wait-icon.js +5 -5
- package/dist/components/icon/icons/users-icon.js +5 -5
- package/dist/components/icon/icons/version-control-icon.js +5 -5
- package/dist/components/icon/icons/volume-high-icon.js +5 -5
- package/dist/components/icon/icons/volume-icon.js +5 -5
- package/dist/components/icon/icons/volume-low-icon.js +5 -5
- package/dist/components/icon/icons/volume-off-icon.js +5 -5
- package/dist/components/icon/icons/warning-icon.js +5 -5
- package/dist/components/icon/icons/waste-icon.js +5 -5
- package/dist/components/icon/icons/wifi-icon.js +5 -5
- package/dist/components/icon/icons/wifi-off-icon.js +5 -5
- package/dist/components/icon/icons/wolt-icon.js +5 -5
- package/dist/components/icon/icons/wrap-content-icon.js +5 -5
- package/dist/components/icon-button/icon-button.js +37 -39
- package/dist/components/image/image.js +12 -14
- package/dist/components/image-upload/image-cropper.helper.js +74 -82
- package/dist/components/image-upload/image-cropper.js +156 -183
- package/dist/components/image-upload/image-upload-dropzone.js +134 -112
- package/dist/components/image-upload/image-upload-helper.js +15 -19
- package/dist/components/image-upload/image-upload-icons.js +52 -20
- package/dist/components/image-upload/image-upload-modal.js +131 -106
- package/dist/components/image-upload/image-upload.js +96 -86
- package/dist/components/image-upload/translations.js +65 -65
- package/dist/components/image-upload/types.js +6 -4
- package/dist/components/input/helper.js +18 -29
- package/dist/components/input/input-addon-recipe.js +37 -43
- package/dist/components/input/input-recipe.js +124 -133
- package/dist/components/input/input.js +78 -83
- package/dist/components/link/link-recipe.js +18 -22
- package/dist/components/link/link.js +14 -14
- package/dist/components/list/list-item.js +15 -15
- package/dist/components/list/list.js +19 -20
- package/dist/components/menu/helper.js +12 -16
- package/dist/components/menu/menu-box-button.js +22 -18
- package/dist/components/menu/menu-button.js +18 -16
- package/dist/components/menu/menu-divider.js +31 -28
- package/dist/components/menu/menu-group.js +138 -142
- package/dist/components/menu/menu-icon-button.js +13 -11
- package/dist/components/menu/menu-item.js +44 -45
- package/dist/components/menu/menu-list.js +14 -15
- package/dist/components/menu/menu-recipe.js +67 -81
- package/dist/components/menu/menu.js +34 -41
- package/dist/components/message/message.js +52 -38
- package/dist/components/modal/modal-body-context.js +6 -7
- package/dist/components/modal/modal-body.js +17 -17
- package/dist/components/modal/modal-close-button.js +23 -18
- package/dist/components/modal/modal-footer.js +29 -32
- package/dist/components/modal/modal-header.js +17 -17
- package/dist/components/modal/modal-recipe.js +110 -141
- package/dist/components/modal/modal.js +54 -58
- package/dist/components/navigation-list/navigation-list-item.js +76 -88
- package/dist/components/navigation-list/navigation-list.js +23 -17
- package/dist/components/paginator/paginator-recipe.js +34 -40
- package/dist/components/paginator/paginator.js +65 -70
- package/dist/components/paginator/translations.js +35 -35
- package/dist/components/phone-input/country-data.js +31 -36
- package/dist/components/phone-input/country-list.js +45 -25
- package/dist/components/phone-input/country-selector.js +167 -115
- package/dist/components/phone-input/phone-input-helpers.js +91 -119
- package/dist/components/phone-input/phone-input.js +47 -42
- package/dist/components/phone-input/translations.js +53 -53
- package/dist/components/phone-input/use-phone-input.js +110 -137
- package/dist/components/quantity-button/minus-button.js +18 -16
- package/dist/components/quantity-button/plus-button.js +18 -16
- package/dist/components/quantity-button/quantity-button.js +72 -40
- package/dist/components/radio/check-icon.js +5 -5
- package/dist/components/radio/hover-styles.js +21 -36
- package/dist/components/radio/radio-group-context.js +5 -6
- package/dist/components/radio/radio-group-recipe.js +124 -142
- package/dist/components/radio/radio-group.js +30 -28
- package/dist/components/radio/radio.js +72 -55
- package/dist/components/radio-card/hover-styles.js +21 -36
- package/dist/components/radio-card/radio-card-group.js +24 -25
- package/dist/components/radio-card/radio-card.js +87 -67
- package/dist/components/rich-text-editor/boolean-control.js +51 -54
- package/dist/components/rich-text-editor/extensions.js +39 -34
- package/dist/components/rich-text-editor/index.js +26 -22
- package/dist/components/rich-text-editor/rich-text-editor-context.js +9 -11
- package/dist/components/rich-text-editor/rich-text-editor-control.js +290 -284
- package/dist/components/rich-text-editor/rich-text-editor-recipe.js +71 -83
- package/dist/components/rich-text-editor/rich-text-editor.js +72 -69
- package/dist/components/rich-text-editor/rich-text-renderer.js +32 -32
- package/dist/components/rich-text-editor/translations.js +119 -119
- package/dist/components/rich-text-editor/use-rich-text-editor.js +22 -29
- package/dist/components/segmented-control/segmented-control-item.js +24 -25
- package/dist/components/segmented-control/segmented-control.js +49 -40
- package/dist/components/select/select-recipe.js +91 -106
- package/dist/components/select/select.js +27 -29
- package/dist/components/skeleton/skeleton-text.js +18 -19
- package/dist/components/skeleton/skeleton.js +19 -20
- package/dist/components/spinner/spinner.js +44 -28
- package/dist/components/stack/stack.js +18 -18
- package/dist/components/stepper/check-icon.js +5 -5
- package/dist/components/stepper/step-context.js +5 -5
- package/dist/components/stepper/step.js +111 -106
- package/dist/components/stepper/stepper.js +42 -43
- package/dist/components/stepper/times-icon.js +5 -5
- package/dist/components/switch/hover-styles.js +30 -44
- package/dist/components/switch/switch-recipe.js +76 -84
- package/dist/components/switch/switch.d.ts +3 -3
- package/dist/components/switch/switch.d.ts.map +1 -1
- package/dist/components/switch/switch.js +30 -31
- package/dist/components/switch/types.d.ts +4 -2
- package/dist/components/switch/types.d.ts.map +1 -1
- package/dist/components/table/helper.d.ts +6 -0
- package/dist/components/table/helper.d.ts.map +1 -1
- package/dist/components/table/helper.js +29 -9
- package/dist/components/table/index.d.ts +1 -1
- package/dist/components/table/index.d.ts.map +1 -1
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +136 -122
- package/dist/components/table/table-column-resize-handle.d.ts +12 -0
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -0
- package/dist/components/table/table-column-resize-handle.js +69 -0
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +174 -98
- package/dist/components/table/table-context-provider.d.ts +7 -2
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +203 -151
- package/dist/components/table/table-context.d.ts +24 -0
- package/dist/components/table/table-context.d.ts.map +1 -1
- package/dist/components/table/table-context.js +18 -11
- package/dist/components/table/table-filter.js +170 -118
- package/dist/components/table/table-header-dropdown.js +131 -89
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +202 -140
- package/dist/components/table/table-recipe.d.ts.map +1 -1
- package/dist/components/table/table-recipe.js +75 -96
- package/dist/components/table/table-row-expand-toggle-button.js +28 -35
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +51 -41
- package/dist/components/table/table-toolbar-actions.js +19 -19
- package/dist/components/table/table-toolbar-add-button.js +18 -13
- package/dist/components/table/table-toolbar-search.js +17 -12
- package/dist/components/table/table-toolbar-settings.js +180 -133
- package/dist/components/table/table-toolbar.js +72 -51
- package/dist/components/table/table.composition.d.ts +1 -0
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.constants.d.ts +4 -0
- package/dist/components/table/table.constants.d.ts.map +1 -1
- package/dist/components/table/table.constants.js +9 -4
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +41 -37
- package/dist/components/table/translations.d.ts +7 -0
- package/dist/components/table/translations.d.ts.map +1 -1
- package/dist/components/table/translations.js +199 -194
- package/dist/components/table/types.d.ts +33 -2
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +16 -17
- package/dist/components/tabs/tab-panel.js +14 -14
- package/dist/components/tabs/tab-panels.js +15 -15
- package/dist/components/tabs/tab-with-image.js +60 -53
- package/dist/components/tabs/tab.js +26 -22
- package/dist/components/tabs/tabs-recipe.js +96 -116
- package/dist/components/tabs/tabs.js +25 -24
- package/dist/components/tag/tag-recipe.js +225 -252
- package/dist/components/tag/tag.js +121 -62
- package/dist/components/text/text-recipe.js +3 -8
- package/dist/components/text/text.js +26 -27
- package/dist/components/textarea/textarea-recipe.js +90 -96
- package/dist/components/textarea/textarea.js +19 -19
- package/dist/components/toaster/toast-store.d.ts +2 -2
- package/dist/components/toaster/toast-store.d.ts.map +1 -1
- package/dist/components/toaster/toast-store.js +25 -32
- package/dist/components/toaster/toaster.js +39 -34
- package/dist/components/toggle-button/toggle-button.js +23 -25
- package/dist/components/toggle-button/use-button-children.js +36 -35
- package/dist/components/tooltip/tooltip.js +43 -47
- package/dist/hooks/use-color-mode.js +17 -22
- package/dist/hooks/use-disclosure.js +10 -13
- package/dist/hooks/use-measured-width.js +21 -21
- package/dist/hooks/use-remove-attributes.js +25 -24
- package/dist/index.js +395 -799
- package/dist/node_modules/@dnd-kit/abstract/index.js +658 -1185
- package/dist/node_modules/@dnd-kit/collision/dist/index.js +51 -90
- package/dist/node_modules/@dnd-kit/dom/index.js +1256 -1518
- package/dist/node_modules/@dnd-kit/dom/sortable.js +529 -654
- package/dist/node_modules/@dnd-kit/dom/utilities.js +772 -940
- package/dist/node_modules/@dnd-kit/geometry/dist/index.js +228 -196
- package/dist/node_modules/@dnd-kit/react/hooks.js +51 -63
- package/dist/node_modules/@dnd-kit/react/index.js +175 -235
- package/dist/node_modules/@dnd-kit/react/sortable.js +67 -142
- package/dist/node_modules/@dnd-kit/react/utilities.js +7 -9
- package/dist/node_modules/@dnd-kit/state/dist/index.js +157 -172
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +154 -243
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +294 -369
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +95 -133
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +96 -122
- package/dist/node_modules/@preact/signals-core/dist/signals-core.module.js +249 -264
- package/dist/node_modules/@tanstack/react-table/build/lib/index.js +34 -88
- package/dist/node_modules/@tanstack/react-virtual/dist/esm/index.js +74 -88
- package/dist/node_modules/@tanstack/table-core/build/lib/index.js +1463 -1822
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/index.js +633 -768
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +30 -32
- package/dist/node_modules/@tanstack/virtual-core/dist/esm/utils.js +35 -48
- package/dist/node_modules/@tiptap/core/dist/index.js +3433 -3946
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +19 -19
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +73 -1498
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +71 -84
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +65 -70
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +155 -216
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +9 -11
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +48 -60
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +65 -66
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +47 -55
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +68 -82
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +365 -334
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +936 -1105
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +43 -48
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +53 -65
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +12 -12
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +60 -64
- package/dist/node_modules/@tiptap/extensions/dist/index.js +439 -462
- package/dist/node_modules/@tiptap/react/dist/index.js +314 -0
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +23 -24
- package/dist/node_modules/country-flag-icons/modules/countries.json.js +4 -4
- package/dist/node_modules/country-flag-icons/modules/hasFlag.js +6 -6
- package/dist/node_modules/country-flag-icons/modules/react/3x2/index.js +5469 -6298
- package/dist/node_modules/country-flag-icons/react/3x2/index.js +273 -269
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +5 -6
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +6 -6
- package/dist/node_modules/date-fns/_lib/format/formatters.js +385 -544
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +42 -57
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +37 -48
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +7 -17
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +6 -9
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +19 -16
- package/dist/node_modules/date-fns/addDays.js +8 -8
- package/dist/node_modules/date-fns/addMonths.js +11 -18
- package/dist/node_modules/date-fns/addWeeks.js +6 -6
- package/dist/node_modules/date-fns/constants.js +10 -6
- package/dist/node_modules/date-fns/constructFrom.js +6 -6
- package/dist/node_modules/date-fns/constructNow.js +6 -6
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +10 -14
- package/dist/node_modules/date-fns/endOfDay.js +7 -7
- package/dist/node_modules/date-fns/endOfMonth.js +7 -7
- package/dist/node_modules/date-fns/format.js +57 -55
- package/dist/node_modules/date-fns/getDayOfYear.js +9 -9
- package/dist/node_modules/date-fns/getISOWeek.js +10 -10
- package/dist/node_modules/date-fns/getISOWeekYear.js +13 -13
- package/dist/node_modules/date-fns/getWeek.js +10 -10
- package/dist/node_modules/date-fns/getWeekYear.js +14 -14
- package/dist/node_modules/date-fns/isBefore.js +6 -6
- package/dist/node_modules/date-fns/isDate.js +5 -5
- package/dist/node_modules/date-fns/isPast.js +6 -6
- package/dist/node_modules/date-fns/isSameDay.js +8 -12
- package/dist/node_modules/date-fns/isSameMonth.js +7 -11
- package/dist/node_modules/date-fns/isSameWeek.js +8 -12
- package/dist/node_modules/date-fns/isSameYear.js +7 -11
- package/dist/node_modules/date-fns/isToday.js +7 -10
- package/dist/node_modules/date-fns/isValid.js +7 -7
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +8 -8
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +16 -17
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +19 -28
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +17 -14
- package/dist/node_modules/date-fns/locale/da/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/da/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/da/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/da/_lib/localize.js +193 -142
- package/dist/node_modules/date-fns/locale/da/_lib/match.js +123 -109
- package/dist/node_modules/date-fns/locale/da.js +17 -17
- package/dist/node_modules/date-fns/locale/en-GB/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/en-GB.js +18 -18
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +200 -153
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +123 -109
- package/dist/node_modules/date-fns/locale/en-US.js +18 -18
- package/dist/node_modules/date-fns/locale/es/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/es/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/es/_lib/formatRelative.js +18 -18
- package/dist/node_modules/date-fns/locale/es/_lib/localize.js +192 -141
- package/dist/node_modules/date-fns/locale/es/_lib/match.js +127 -114
- package/dist/node_modules/date-fns/locale/es.js +18 -18
- package/dist/node_modules/date-fns/locale/et/_lib/formatDistance.js +161 -162
- package/dist/node_modules/date-fns/locale/et/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/et/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/et/_lib/localize.js +196 -152
- package/dist/node_modules/date-fns/locale/et/_lib/match.js +109 -107
- package/dist/node_modules/date-fns/locale/et.js +19 -19
- package/dist/node_modules/date-fns/locale/fi/_lib/formatDistance.js +101 -101
- package/dist/node_modules/date-fns/locale/fi/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/fi/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/fi/_lib/localize.js +192 -140
- package/dist/node_modules/date-fns/locale/fi/_lib/match.js +122 -108
- package/dist/node_modules/date-fns/locale/fi.js +18 -18
- package/dist/node_modules/date-fns/locale/fr/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/fr/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/fr/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/fr/_lib/localize.js +176 -120
- package/dist/node_modules/date-fns/locale/fr/_lib/match.js +122 -108
- package/dist/node_modules/date-fns/locale/fr.js +18 -18
- package/dist/node_modules/date-fns/locale/lt/_lib/formatDistance.js +93 -109
- package/dist/node_modules/date-fns/locale/lt/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/lt/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/lt/_lib/localize.js +298 -195
- package/dist/node_modules/date-fns/locale/lt/_lib/match.js +154 -121
- package/dist/node_modules/date-fns/locale/lt.js +19 -19
- package/dist/node_modules/date-fns/locale/lv/_lib/formatDistance.js +226 -120
- package/dist/node_modules/date-fns/locale/lv/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/lv/_lib/formatRelative.js +22 -22
- package/dist/node_modules/date-fns/locale/lv/_lib/localize.js +298 -221
- package/dist/node_modules/date-fns/locale/lv/_lib/match.js +138 -112
- package/dist/node_modules/date-fns/locale/lv.js +18 -18
- package/dist/node_modules/date-fns/locale/nb/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/nb/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/nb/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/nb/_lib/localize.js +159 -108
- package/dist/node_modules/date-fns/locale/nb/_lib/match.js +112 -108
- package/dist/node_modules/date-fns/locale/nb.js +18 -18
- package/dist/node_modules/date-fns/locale/nl/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/nl/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/nl/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/nl/_lib/localize.js +160 -109
- package/dist/node_modules/date-fns/locale/nl/_lib/match.js +120 -108
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatDistance.js +68 -69
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/localize.js +160 -109
- package/dist/node_modules/date-fns/locale/nl-BE/_lib/match.js +120 -108
- package/dist/node_modules/date-fns/locale/nl-BE.js +18 -18
- package/dist/node_modules/date-fns/locale/nl.js +18 -18
- package/dist/node_modules/date-fns/locale/sv/_lib/formatDistance.js +82 -86
- package/dist/node_modules/date-fns/locale/sv/_lib/formatLong.js +31 -32
- package/dist/node_modules/date-fns/locale/sv/_lib/formatRelative.js +11 -11
- package/dist/node_modules/date-fns/locale/sv/_lib/localize.js +199 -142
- package/dist/node_modules/date-fns/locale/sv/_lib/match.js +109 -107
- package/dist/node_modules/date-fns/locale/sv.js +18 -18
- package/dist/node_modules/date-fns/startOfDay.js +7 -7
- package/dist/node_modules/date-fns/startOfISOWeek.js +9 -6
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +9 -9
- package/dist/node_modules/date-fns/startOfMonth.js +7 -7
- package/dist/node_modules/date-fns/startOfWeek.js +8 -8
- package/dist/node_modules/date-fns/startOfWeekYear.js +10 -10
- package/dist/node_modules/date-fns/startOfYear.js +7 -7
- package/dist/node_modules/date-fns/subDays.js +6 -6
- package/dist/node_modules/date-fns/subMonths.js +6 -6
- package/dist/node_modules/date-fns/subWeeks.js +6 -6
- package/dist/node_modules/date-fns/toDate.js +6 -6
- package/dist/node_modules/fast-equals/dist/es/index.js +239 -298
- package/dist/node_modules/libphonenumber-js/es6/ParseError.js +116 -89
- package/dist/node_modules/libphonenumber-js/es6/PhoneNumber.js +155 -183
- package/dist/node_modules/libphonenumber-js/es6/constants.js +4 -10
- package/dist/node_modules/libphonenumber-js/es6/format.js +70 -91
- package/dist/node_modules/libphonenumber-js/es6/getCountries.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/RFC3966.js +8 -10
- package/dist/node_modules/libphonenumber-js/es6/helpers/applyInternationalSeparatorStyle.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/checkNumberLength.js +19 -14
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/createExtensionPattern.js +9 -9
- package/dist/node_modules/libphonenumber-js/es6/helpers/extension/extractExtension.js +15 -17
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCode.js +35 -45
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractCountryCallingCodeFromInternationalNumberWithoutPlusSign.js +20 -26
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractFormattedPhoneNumberFromPossibleRfc3966NumberUri.js +17 -22
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumber.js +24 -36
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractNationalNumberFromPossiblyIncompleteNumber.js +26 -30
- package/dist/node_modules/libphonenumber-js/es6/helpers/extractPhoneContext.js +13 -21
- package/dist/node_modules/libphonenumber-js/es6/helpers/formatNationalNumberUsingFormat.js +10 -24
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryAndCallingCodeFromOneOfThem.js +10 -11
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByCallingCode.js +6 -8
- package/dist/node_modules/libphonenumber-js/es6/helpers/getCountryByNationalNumber.js +39 -39
- package/dist/node_modules/libphonenumber-js/es6/helpers/getIddPrefix.js +9 -11
- package/dist/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +56 -47
- package/dist/node_modules/libphonenumber-js/es6/helpers/getPossibleCountriesForNumber.js +12 -12
- package/dist/node_modules/libphonenumber-js/es6/helpers/isCallingCode.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/isCountryCode.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/isObject.js +6 -6
- package/dist/node_modules/libphonenumber-js/es6/helpers/isViablePhoneNumber.js +9 -17
- package/dist/node_modules/libphonenumber-js/es6/helpers/matchesEntirely.js +5 -5
- package/dist/node_modules/libphonenumber-js/es6/helpers/mergeArrays.js +39 -0
- package/dist/node_modules/libphonenumber-js/es6/helpers/parseDigits.js +46 -77
- package/dist/node_modules/libphonenumber-js/es6/helpers/stripIddPrefix.js +17 -18
- package/dist/node_modules/libphonenumber-js/es6/isPossible.js +29 -32
- package/dist/node_modules/libphonenumber-js/es6/isValid.js +12 -13
- package/dist/node_modules/libphonenumber-js/es6/isValidPhoneNumber.js +55 -52
- package/dist/node_modules/libphonenumber-js/es6/metadata.js +462 -482
- package/dist/node_modules/libphonenumber-js/es6/normalizeArguments.js +97 -95
- package/dist/node_modules/libphonenumber-js/es6/parse.js +98 -133
- package/dist/node_modules/libphonenumber-js/es6/parseIncompletePhoneNumber.js +43 -35
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber.js +8 -8
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumberWithError_.js +51 -48
- package/dist/node_modules/libphonenumber-js/es6/parsePhoneNumber_.js +59 -55
- package/dist/node_modules/libphonenumber-js/es6/tools/semver-compare.js +13 -13
- package/dist/node_modules/libphonenumber-js/metadata.min.json.js +7437 -3
- package/dist/node_modules/libphonenumber-js/min/exports/getCountries.js +6 -6
- package/dist/node_modules/libphonenumber-js/min/exports/getCountryCallingCode.js +6 -6
- package/dist/node_modules/libphonenumber-js/min/exports/isSupportedCountry.js +7 -7
- package/dist/node_modules/libphonenumber-js/min/exports/isValidPhoneNumber.js +6 -6
- package/dist/node_modules/libphonenumber-js/min/exports/parsePhoneNumber.js +7 -7
- package/dist/node_modules/libphonenumber-js/min/exports/withMetadataArgument.js +6 -6
- package/dist/node_modules/linkifyjs/dist/linkify.js +486 -679
- package/dist/node_modules/next-themes/dist/index.js +120 -85
- package/dist/node_modules/orderedmap/dist/index.js +64 -100
- package/dist/node_modules/prosemirror-commands/dist/index.js +313 -368
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +109 -84
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +162 -195
- package/dist/node_modules/prosemirror-history/dist/index.js +203 -239
- package/dist/node_modules/prosemirror-keymap/dist/index.js +45 -57
- package/dist/node_modules/prosemirror-model/dist/index.js +1783 -2735
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +66 -81
- package/dist/node_modules/prosemirror-state/dist/index.js +517 -814
- package/dist/node_modules/prosemirror-transform/dist/index.js +1104 -1505
- package/dist/node_modules/prosemirror-view/dist/index.js +3274 -3782
- package/dist/node_modules/react/cjs/react-compiler-runtime.development.js +15 -21
- package/dist/node_modules/react/cjs/react-compiler-runtime.production.js +12 -14
- package/dist/node_modules/react/compiler-runtime.js +10 -10
- package/dist/node_modules/rope-sequence/dist/index.js +82 -99
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +55 -58
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +53 -57
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +53 -58
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +45 -46
- package/dist/node_modules/use-sync-external-store/shim/index.js +10 -10
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +10 -10
- package/dist/node_modules/w3c-keyname/index.js +87 -92
- package/dist/theme/component-recipes.js +52 -53
- package/dist/theme/theme-casper-ui.js +179 -420
- package/dist/theme/theme-helper.js +4 -4
- package/dist/theme/theme-provider.js +33 -34
- package/dist/theme/theme-style-props.d.ts.map +1 -1
- package/dist/theme/theme-tokens.js +22 -12
- package/dist/theme/theme-types.js +22 -12
- package/dist/theme/theme.js +213 -268
- package/package.json +30 -29
- package/dist/_virtual/compiler-runtime.js +0 -5
- package/dist/_virtual/compiler-runtime2.js +0 -4
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/react-compiler-runtime.development.js +0 -4
- package/dist/_virtual/react-compiler-runtime.production.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -4
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -4
- package/dist/_virtual/with-selector.development.js +0 -4
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.production.js +0 -4
- package/dist/_virtual/with-selector2.js +0 -4
- package/dist/packages/casper-ui-library/node_modules/@tiptap/react/dist/index.js +0 -506
|
@@ -1,1871 +1,1512 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
//#region ../../node_modules/@tanstack/table-core/build/lib/index.mjs
|
|
2
|
+
function e() {
|
|
3
|
+
return {
|
|
4
|
+
accessor: (e, t) => typeof e == "function" ? {
|
|
5
|
+
...t,
|
|
6
|
+
accessorFn: e
|
|
7
|
+
} : {
|
|
8
|
+
...t,
|
|
9
|
+
accessorKey: e
|
|
10
|
+
},
|
|
11
|
+
display: (e) => e,
|
|
12
|
+
group: (e) => e
|
|
13
|
+
};
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
15
|
+
function t(e, t) {
|
|
16
|
+
return typeof e == "function" ? e(t) : e;
|
|
16
17
|
}
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
18
|
+
function n(e, n) {
|
|
19
|
+
return (r) => {
|
|
20
|
+
n.setState((n) => ({
|
|
21
|
+
...n,
|
|
22
|
+
[e]: t(r, n[e])
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
-
|
|
26
|
+
function r(e) {
|
|
27
|
+
return e instanceof Function;
|
|
27
28
|
}
|
|
28
|
-
function
|
|
29
|
-
|
|
29
|
+
function i(e) {
|
|
30
|
+
return Array.isArray(e) && e.every((e) => typeof e == "number");
|
|
30
31
|
}
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
function a(e, t) {
|
|
33
|
+
let n = [], r = (e) => {
|
|
34
|
+
e.forEach((e) => {
|
|
35
|
+
n.push(e);
|
|
36
|
+
let i = t(e);
|
|
37
|
+
i != null && i.length && r(i);
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
return r(e), n;
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
};
|
|
57
|
-
console.info(`%c⏱ ${s(m, 5)} /${s(f, 5)} ms`, `
|
|
42
|
+
function o(e, t, n) {
|
|
43
|
+
let r = [], i;
|
|
44
|
+
return (a) => {
|
|
45
|
+
let o;
|
|
46
|
+
n.key && n.debug && (o = Date.now());
|
|
47
|
+
let s = e(a);
|
|
48
|
+
if (!(s.length !== r.length || s.some((e, t) => r[t] !== e))) return i;
|
|
49
|
+
r = s;
|
|
50
|
+
let c;
|
|
51
|
+
if (n.key && n.debug && (c = Date.now()), i = t(...s), n == null || n.onChange == null || n.onChange(i), n.key && n.debug && n != null && n.debug()) {
|
|
52
|
+
let e = Math.round((Date.now() - o) * 100) / 100, t = Math.round((Date.now() - c) * 100) / 100, r = t / 16, i = (e, t) => {
|
|
53
|
+
for (e = String(e); e.length < t;) e = " " + e;
|
|
54
|
+
return e;
|
|
55
|
+
};
|
|
56
|
+
console.info(`%c⏱ ${i(t, 5)} /${i(e, 5)} ms`, `
|
|
58
57
|
font-size: .6rem;
|
|
59
58
|
font-weight: bold;
|
|
60
|
-
color: hsl(${Math.max(0, Math.min(120 - 120 *
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
59
|
+
color: hsl(${Math.max(0, Math.min(120 - 120 * r, 120))}deg 100% 31%);`, n?.key);
|
|
60
|
+
}
|
|
61
|
+
return i;
|
|
62
|
+
};
|
|
64
63
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
key: process.env.NODE_ENV === "development" && t,
|
|
72
|
-
onChange: n
|
|
73
|
-
};
|
|
64
|
+
function s(e, t, n, r) {
|
|
65
|
+
return {
|
|
66
|
+
debug: () => e?.debugAll ?? e[t],
|
|
67
|
+
key: process.env.NODE_ENV === "development" && n,
|
|
68
|
+
onChange: r
|
|
69
|
+
};
|
|
74
70
|
}
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
71
|
+
function c(e, t, n, r) {
|
|
72
|
+
let i = {
|
|
73
|
+
id: `${t.id}_${n.id}`,
|
|
74
|
+
row: t,
|
|
75
|
+
column: n,
|
|
76
|
+
getValue: () => t.getValue(r),
|
|
77
|
+
renderValue: () => i.getValue() ?? e.options.renderFallbackValue,
|
|
78
|
+
getContext: o(() => [
|
|
79
|
+
e,
|
|
80
|
+
n,
|
|
81
|
+
t,
|
|
82
|
+
i
|
|
83
|
+
], (e, t, n, r) => ({
|
|
84
|
+
table: e,
|
|
85
|
+
column: t,
|
|
86
|
+
row: n,
|
|
87
|
+
cell: r,
|
|
88
|
+
getValue: r.getValue,
|
|
89
|
+
renderValue: r.renderValue
|
|
90
|
+
}), s(e.options, "debugCells", "cell.getContext"))
|
|
91
|
+
};
|
|
92
|
+
return e._features.forEach((r) => {
|
|
93
|
+
r.createCell == null || r.createCell(i, n, t, e);
|
|
94
|
+
}, {}), i;
|
|
97
95
|
}
|
|
98
|
-
function
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return [m, ...(d = m.columns) == null ? void 0 : d.flatMap((s) => s.getFlatColumns())];
|
|
124
|
-
}, C(e.options, "debugColumns", "column.getFlatColumns")),
|
|
125
|
-
getLeafColumns: S(() => [e._getOrderColumnsFn()], (d) => {
|
|
126
|
-
var s;
|
|
127
|
-
if ((s = m.columns) != null && s.length) {
|
|
128
|
-
let c = m.columns.flatMap((p) => p.getLeafColumns());
|
|
129
|
-
return d(c);
|
|
130
|
-
}
|
|
131
|
-
return [m];
|
|
132
|
-
}, C(e.options, "debugColumns", "column.getLeafColumns"))
|
|
133
|
-
};
|
|
134
|
-
for (const d of e._features)
|
|
135
|
-
d.createColumn == null || d.createColumn(m, e);
|
|
136
|
-
return m;
|
|
96
|
+
function l(e, t, n, r) {
|
|
97
|
+
let i = {
|
|
98
|
+
...e._getDefaultColumnDef(),
|
|
99
|
+
...t
|
|
100
|
+
}, a = i.accessorKey, c = i.id ?? (a ? typeof String.prototype.replaceAll == "function" ? a.replaceAll(".", "_") : a.replace(/\./g, "_") : void 0) ?? (typeof i.header == "string" ? i.header : void 0), l;
|
|
101
|
+
if (i.accessorFn ? l = i.accessorFn : a && (l = a.includes(".") ? (e) => {
|
|
102
|
+
let t = e;
|
|
103
|
+
for (let e of a.split(".")) t = t?.[e], process.env.NODE_ENV !== "production" && t === void 0 && console.warn(`"${e}" in deeply nested key "${a}" returned undefined.`);
|
|
104
|
+
return t;
|
|
105
|
+
} : (e) => e[i.accessorKey]), !c) throw process.env.NODE_ENV === "production" ? Error() : Error(i.accessorFn ? "Columns require an id when using an accessorFn" : "Columns require an id when using a non-string header");
|
|
106
|
+
let u = {
|
|
107
|
+
id: `${String(c)}`,
|
|
108
|
+
accessorFn: l,
|
|
109
|
+
parent: r,
|
|
110
|
+
depth: n,
|
|
111
|
+
columnDef: i,
|
|
112
|
+
columns: [],
|
|
113
|
+
getFlatColumns: o(() => [!0], () => [u, ...u.columns?.flatMap((e) => e.getFlatColumns())], s(e.options, "debugColumns", "column.getFlatColumns")),
|
|
114
|
+
getLeafColumns: o(() => [e._getOrderColumnsFn()], (e) => {
|
|
115
|
+
var t;
|
|
116
|
+
return (t = u.columns) != null && t.length ? e(u.columns.flatMap((e) => e.getLeafColumns())) : [u];
|
|
117
|
+
}, s(e.options, "debugColumns", "column.getLeafColumns"))
|
|
118
|
+
};
|
|
119
|
+
for (let t of e._features) t.createColumn == null || t.createColumn(u, e);
|
|
120
|
+
return u;
|
|
137
121
|
}
|
|
138
|
-
|
|
139
|
-
function
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}), i;
|
|
122
|
+
var u = "debugHeaders";
|
|
123
|
+
function d(e, t, n) {
|
|
124
|
+
let r = {
|
|
125
|
+
id: n.id ?? t.id,
|
|
126
|
+
column: t,
|
|
127
|
+
index: n.index,
|
|
128
|
+
isPlaceholder: !!n.isPlaceholder,
|
|
129
|
+
placeholderId: n.placeholderId,
|
|
130
|
+
depth: n.depth,
|
|
131
|
+
subHeaders: [],
|
|
132
|
+
colSpan: 0,
|
|
133
|
+
rowSpan: 0,
|
|
134
|
+
headerGroup: null,
|
|
135
|
+
getLeafHeaders: () => {
|
|
136
|
+
let e = [], t = (n) => {
|
|
137
|
+
n.subHeaders && n.subHeaders.length && n.subHeaders.map(t), e.push(n);
|
|
138
|
+
};
|
|
139
|
+
return t(r), e;
|
|
140
|
+
},
|
|
141
|
+
getContext: () => ({
|
|
142
|
+
table: e,
|
|
143
|
+
header: r,
|
|
144
|
+
column: t
|
|
145
|
+
})
|
|
146
|
+
};
|
|
147
|
+
return e._features.forEach((t) => {
|
|
148
|
+
t.createHeader == null || t.createHeader(r, e);
|
|
149
|
+
}), r;
|
|
167
150
|
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
151
|
+
var f = { createTable: (e) => {
|
|
152
|
+
e.getHeaderGroups = o(() => [
|
|
153
|
+
e.getAllColumns(),
|
|
154
|
+
e.getVisibleLeafColumns(),
|
|
155
|
+
e.getState().columnPinning.left,
|
|
156
|
+
e.getState().columnPinning.right
|
|
157
|
+
], (t, n, r, i) => {
|
|
158
|
+
let a = r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], o = i?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], s = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id)));
|
|
159
|
+
return p(t, [
|
|
160
|
+
...a,
|
|
161
|
+
...s,
|
|
162
|
+
...o
|
|
163
|
+
], e);
|
|
164
|
+
}, s(e.options, u, "getHeaderGroups")), e.getCenterHeaderGroups = o(() => [
|
|
165
|
+
e.getAllColumns(),
|
|
166
|
+
e.getVisibleLeafColumns(),
|
|
167
|
+
e.getState().columnPinning.left,
|
|
168
|
+
e.getState().columnPinning.right
|
|
169
|
+
], (t, n, r, i) => (n = n.filter((e) => !(r != null && r.includes(e.id)) && !(i != null && i.includes(e.id))), p(t, n, e, "center")), s(e.options, u, "getCenterHeaderGroups")), e.getLeftHeaderGroups = o(() => [
|
|
170
|
+
e.getAllColumns(),
|
|
171
|
+
e.getVisibleLeafColumns(),
|
|
172
|
+
e.getState().columnPinning.left
|
|
173
|
+
], (t, n, r) => p(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "left"), s(e.options, u, "getLeftHeaderGroups")), e.getRightHeaderGroups = o(() => [
|
|
174
|
+
e.getAllColumns(),
|
|
175
|
+
e.getVisibleLeafColumns(),
|
|
176
|
+
e.getState().columnPinning.right
|
|
177
|
+
], (t, n, r) => p(t, r?.map((e) => n.find((t) => t.id === e)).filter(Boolean) ?? [], e, "right"), s(e.options, u, "getRightHeaderGroups")), e.getFooterGroups = o(() => [e.getHeaderGroups()], (e) => [...e].reverse(), s(e.options, u, "getFooterGroups")), e.getLeftFooterGroups = o(() => [e.getLeftHeaderGroups()], (e) => [...e].reverse(), s(e.options, u, "getLeftFooterGroups")), e.getCenterFooterGroups = o(() => [e.getCenterHeaderGroups()], (e) => [...e].reverse(), s(e.options, u, "getCenterFooterGroups")), e.getRightFooterGroups = o(() => [e.getRightHeaderGroups()], (e) => [...e].reverse(), s(e.options, u, "getRightFooterGroups")), e.getFlatHeaders = o(() => [e.getHeaderGroups()], (e) => e.map((e) => e.headers).flat(), s(e.options, u, "getFlatHeaders")), e.getLeftFlatHeaders = o(() => [e.getLeftHeaderGroups()], (e) => e.map((e) => e.headers).flat(), s(e.options, u, "getLeftFlatHeaders")), e.getCenterFlatHeaders = o(() => [e.getCenterHeaderGroups()], (e) => e.map((e) => e.headers).flat(), s(e.options, u, "getCenterFlatHeaders")), e.getRightFlatHeaders = o(() => [e.getRightHeaderGroups()], (e) => e.map((e) => e.headers).flat(), s(e.options, u, "getRightFlatHeaders")), e.getCenterLeafHeaders = o(() => [e.getCenterFlatHeaders()], (e) => e.filter((e) => {
|
|
178
|
+
var t;
|
|
179
|
+
return !((t = e.subHeaders) != null && t.length);
|
|
180
|
+
}), s(e.options, u, "getCenterLeafHeaders")), e.getLeftLeafHeaders = o(() => [e.getLeftFlatHeaders()], (e) => e.filter((e) => {
|
|
181
|
+
var t;
|
|
182
|
+
return !((t = e.subHeaders) != null && t.length);
|
|
183
|
+
}), s(e.options, u, "getLeftLeafHeaders")), e.getRightLeafHeaders = o(() => [e.getRightFlatHeaders()], (e) => e.filter((e) => {
|
|
184
|
+
var t;
|
|
185
|
+
return !((t = e.subHeaders) != null && t.length);
|
|
186
|
+
}), s(e.options, u, "getRightLeafHeaders")), e.getLeafHeaders = o(() => [
|
|
187
|
+
e.getLeftHeaderGroups(),
|
|
188
|
+
e.getCenterHeaderGroups(),
|
|
189
|
+
e.getRightHeaderGroups()
|
|
190
|
+
], (e, t, n) => [
|
|
191
|
+
...e[0]?.headers ?? [],
|
|
192
|
+
...t[0]?.headers ?? [],
|
|
193
|
+
...n[0]?.headers ?? []
|
|
194
|
+
].map((e) => e.getLeafHeaders()).flat(), s(e.options, u, "getLeafHeaders"));
|
|
195
|
+
} };
|
|
196
|
+
function p(e, t, n, r) {
|
|
197
|
+
let i = 0, a = function(e, t) {
|
|
198
|
+
t === void 0 && (t = 1), i = Math.max(i, t), e.filter((e) => e.getIsVisible()).forEach((e) => {
|
|
199
|
+
var n;
|
|
200
|
+
(n = e.columns) != null && n.length && a(e.columns, t + 1);
|
|
201
|
+
}, 0);
|
|
202
|
+
};
|
|
203
|
+
a(e);
|
|
204
|
+
let o = [], s = (e, t) => {
|
|
205
|
+
let i = {
|
|
206
|
+
depth: t,
|
|
207
|
+
id: [r, `${t}`].filter(Boolean).join("_"),
|
|
208
|
+
headers: []
|
|
209
|
+
}, a = [];
|
|
210
|
+
e.forEach((e) => {
|
|
211
|
+
let o = [...a].reverse()[0], s = e.column.depth === i.depth, c, l = !1;
|
|
212
|
+
if (s && e.column.parent ? c = e.column.parent : (c = e.column, l = !0), o && o?.column === c) o.subHeaders.push(e);
|
|
213
|
+
else {
|
|
214
|
+
let i = d(n, c, {
|
|
215
|
+
id: [
|
|
216
|
+
r,
|
|
217
|
+
t,
|
|
218
|
+
c.id,
|
|
219
|
+
e?.id
|
|
220
|
+
].filter(Boolean).join("_"),
|
|
221
|
+
isPlaceholder: l,
|
|
222
|
+
placeholderId: l ? `${a.filter((e) => e.column === c).length}` : void 0,
|
|
223
|
+
depth: t,
|
|
224
|
+
index: a.length
|
|
225
|
+
});
|
|
226
|
+
i.subHeaders.push(e), a.push(i);
|
|
227
|
+
}
|
|
228
|
+
i.headers.push(e), e.headerGroup = i;
|
|
229
|
+
}), o.push(i), t > 0 && s(a, t - 1);
|
|
230
|
+
};
|
|
231
|
+
s(t.map((e, t) => d(n, e, {
|
|
232
|
+
depth: i,
|
|
233
|
+
index: t
|
|
234
|
+
})), i - 1), o.reverse();
|
|
235
|
+
let c = (e) => e.filter((e) => e.column.getIsVisible()).map((e) => {
|
|
236
|
+
let t = 0, n = 0, r = [0];
|
|
237
|
+
e.subHeaders && e.subHeaders.length ? (r = [], c(e.subHeaders).forEach((e) => {
|
|
238
|
+
let { colSpan: n, rowSpan: i } = e;
|
|
239
|
+
t += n, r.push(i);
|
|
240
|
+
})) : t = 1;
|
|
241
|
+
let i = Math.min(...r);
|
|
242
|
+
return n += i, e.colSpan = t, e.rowSpan = n, {
|
|
243
|
+
colSpan: t,
|
|
244
|
+
rowSpan: n
|
|
245
|
+
};
|
|
246
|
+
});
|
|
247
|
+
return c(o[0]?.headers ?? []), o;
|
|
252
248
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
createColumn: (e, o) => {
|
|
302
|
-
e._getFacetedRowModel = o.options.getFacetedRowModel && o.options.getFacetedRowModel(o, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : o.getPreFilteredRowModel(), e._getFacetedUniqueValues = o.options.getFacetedUniqueValues && o.options.getFacetedUniqueValues(o, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = o.options.getFacetedMinMaxValues && o.options.getFacetedMinMaxValues(o, e.id), e.getFacetedMinMaxValues = () => {
|
|
303
|
-
if (e._getFacetedMinMaxValues)
|
|
304
|
-
return e._getFacetedMinMaxValues();
|
|
305
|
-
};
|
|
306
|
-
}
|
|
307
|
-
}, re = (e, o, t) => {
|
|
308
|
-
var n, r;
|
|
309
|
-
const i = t == null || (n = t.toString()) == null ? void 0 : n.toLowerCase();
|
|
310
|
-
return !!(!((r = e.getValue(o)) == null || (r = r.toString()) == null || (r = r.toLowerCase()) == null) && r.includes(i));
|
|
249
|
+
var m = (e, t, n, r, i, l, u) => {
|
|
250
|
+
let d = {
|
|
251
|
+
id: t,
|
|
252
|
+
index: r,
|
|
253
|
+
original: n,
|
|
254
|
+
depth: i,
|
|
255
|
+
parentId: u,
|
|
256
|
+
_valuesCache: {},
|
|
257
|
+
_uniqueValuesCache: {},
|
|
258
|
+
getValue: (t) => {
|
|
259
|
+
if (d._valuesCache.hasOwnProperty(t)) return d._valuesCache[t];
|
|
260
|
+
let n = e.getColumn(t);
|
|
261
|
+
if (n != null && n.accessorFn) return d._valuesCache[t] = n.accessorFn(d.original, r), d._valuesCache[t];
|
|
262
|
+
},
|
|
263
|
+
getUniqueValues: (t) => {
|
|
264
|
+
if (d._uniqueValuesCache.hasOwnProperty(t)) return d._uniqueValuesCache[t];
|
|
265
|
+
let n = e.getColumn(t);
|
|
266
|
+
if (n != null && n.accessorFn) return n.columnDef.getUniqueValues ? (d._uniqueValuesCache[t] = n.columnDef.getUniqueValues(d.original, r), d._uniqueValuesCache[t]) : (d._uniqueValuesCache[t] = [d.getValue(t)], d._uniqueValuesCache[t]);
|
|
267
|
+
},
|
|
268
|
+
renderValue: (t) => d.getValue(t) ?? e.options.renderFallbackValue,
|
|
269
|
+
subRows: l ?? [],
|
|
270
|
+
getLeafRows: () => a(d.subRows, (e) => e.subRows),
|
|
271
|
+
getParentRow: () => d.parentId ? e.getRow(d.parentId, !0) : void 0,
|
|
272
|
+
getParentRows: () => {
|
|
273
|
+
let e = [], t = d;
|
|
274
|
+
for (;;) {
|
|
275
|
+
let n = t.getParentRow();
|
|
276
|
+
if (!n) break;
|
|
277
|
+
e.push(n), t = n;
|
|
278
|
+
}
|
|
279
|
+
return e.reverse();
|
|
280
|
+
},
|
|
281
|
+
getAllCells: o(() => [e.getAllLeafColumns()], (t) => t.map((t) => c(e, d, t, t.id)), s(e.options, "debugRows", "getAllCells")),
|
|
282
|
+
_getAllCellsByColumnId: o(() => [d.getAllCells()], (e) => e.reduce((e, t) => (e[t.column.id] = t, e), {}), s(e.options, "debugRows", "getAllCellsByColumnId"))
|
|
283
|
+
};
|
|
284
|
+
for (let t = 0; t < e._features.length; t++) {
|
|
285
|
+
let n = e._features[t];
|
|
286
|
+
n == null || n.createRow == null || n.createRow(d, e);
|
|
287
|
+
}
|
|
288
|
+
return d;
|
|
289
|
+
}, h = { createColumn: (e, t) => {
|
|
290
|
+
e._getFacetedRowModel = t.options.getFacetedRowModel && t.options.getFacetedRowModel(t, e.id), e.getFacetedRowModel = () => e._getFacetedRowModel ? e._getFacetedRowModel() : t.getPreFilteredRowModel(), e._getFacetedUniqueValues = t.options.getFacetedUniqueValues && t.options.getFacetedUniqueValues(t, e.id), e.getFacetedUniqueValues = () => e._getFacetedUniqueValues ? e._getFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getFacetedMinMaxValues = t.options.getFacetedMinMaxValues && t.options.getFacetedMinMaxValues(t, e.id), e.getFacetedMinMaxValues = () => {
|
|
291
|
+
if (e._getFacetedMinMaxValues) return e._getFacetedMinMaxValues();
|
|
292
|
+
};
|
|
293
|
+
} }, g = (e, t, n) => {
|
|
294
|
+
var r, i;
|
|
295
|
+
let a = n == null || (r = n.toString()) == null ? void 0 : r.toLowerCase();
|
|
296
|
+
return !!((i = e.getValue(t)) != null && (i = i.toString()) != null && (i = i.toLowerCase()) != null && i.includes(a));
|
|
311
297
|
};
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
298
|
+
g.autoRemove = (e) => S(e);
|
|
299
|
+
var ee = (e, t, n) => {
|
|
300
|
+
var r;
|
|
301
|
+
return !!((r = e.getValue(t)) != null && (r = r.toString()) != null && r.includes(n));
|
|
316
302
|
};
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
303
|
+
ee.autoRemove = (e) => S(e);
|
|
304
|
+
var te = (e, t, n) => {
|
|
305
|
+
var r;
|
|
306
|
+
return ((r = e.getValue(t)) == null || (r = r.toString()) == null ? void 0 : r.toLowerCase()) === n?.toLowerCase();
|
|
321
307
|
};
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
const ue = (e, o, t) => !t.some((n) => {
|
|
329
|
-
var r;
|
|
330
|
-
return !((r = e.getValue(o)) != null && r.includes(n));
|
|
331
|
-
});
|
|
332
|
-
ue.autoRemove = (e) => V(e) || !(e != null && e.length);
|
|
333
|
-
const ge = (e, o, t) => t.some((n) => {
|
|
334
|
-
var r;
|
|
335
|
-
return (r = e.getValue(o)) == null ? void 0 : r.includes(n);
|
|
308
|
+
te.autoRemove = (e) => S(e);
|
|
309
|
+
var ne = (e, t, n) => e.getValue(t)?.includes(n);
|
|
310
|
+
ne.autoRemove = (e) => S(e);
|
|
311
|
+
var _ = (e, t, n) => !n.some((n) => {
|
|
312
|
+
var r;
|
|
313
|
+
return !((r = e.getValue(t)) != null && r.includes(n));
|
|
336
314
|
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
315
|
+
_.autoRemove = (e) => S(e) || !(e != null && e.length);
|
|
316
|
+
var v = (e, t, n) => n.some((n) => e.getValue(t)?.includes(n));
|
|
317
|
+
v.autoRemove = (e) => S(e) || !(e != null && e.length);
|
|
318
|
+
var y = (e, t, n) => e.getValue(t) === n;
|
|
319
|
+
y.autoRemove = (e) => S(e);
|
|
320
|
+
var re = (e, t, n) => e.getValue(t) == n;
|
|
321
|
+
re.autoRemove = (e) => S(e);
|
|
322
|
+
var b = (e, t, n) => {
|
|
323
|
+
let [r, i] = n, a = e.getValue(t);
|
|
324
|
+
return a >= r && a <= i;
|
|
346
325
|
};
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
326
|
+
b.resolveFilterValue = (e) => {
|
|
327
|
+
let [t, n] = e, r = typeof t == "number" ? t : parseFloat(t), i = typeof n == "number" ? n : parseFloat(n), a = t === null || Number.isNaN(r) ? -Infinity : r, o = n === null || Number.isNaN(i) ? Infinity : i;
|
|
328
|
+
if (a > o) {
|
|
329
|
+
let e = a;
|
|
330
|
+
a = o, o = e;
|
|
331
|
+
}
|
|
332
|
+
return [a, o];
|
|
333
|
+
}, b.autoRemove = (e) => S(e) || S(e[0]) && S(e[1]);
|
|
334
|
+
var x = {
|
|
335
|
+
includesString: g,
|
|
336
|
+
includesStringSensitive: ee,
|
|
337
|
+
equalsString: te,
|
|
338
|
+
arrIncludes: ne,
|
|
339
|
+
arrIncludesAll: _,
|
|
340
|
+
arrIncludesSome: v,
|
|
341
|
+
equals: y,
|
|
342
|
+
weakEquals: re,
|
|
343
|
+
inNumberRange: b
|
|
354
344
|
};
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
includesString: re,
|
|
358
|
-
includesStringSensitive: ie,
|
|
359
|
-
equalsString: le,
|
|
360
|
-
arrIncludes: se,
|
|
361
|
-
arrIncludesAll: ue,
|
|
362
|
-
arrIncludesSome: ge,
|
|
363
|
-
equals: ae,
|
|
364
|
-
weakEquals: de,
|
|
365
|
-
inNumberRange: W
|
|
366
|
-
};
|
|
367
|
-
function V(e) {
|
|
368
|
-
return e == null || e === "";
|
|
345
|
+
function S(e) {
|
|
346
|
+
return e == null || e === "";
|
|
369
347
|
}
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
var a;
|
|
415
|
-
return (a = n?.map((f) => f.id === e.id ? g : f)) != null ? a : [];
|
|
416
|
-
}
|
|
417
|
-
return n != null && n.length ? [...n, g] : [g];
|
|
418
|
-
});
|
|
419
|
-
};
|
|
420
|
-
},
|
|
421
|
-
createRow: (e, o) => {
|
|
422
|
-
e.columnFilters = {}, e.columnFiltersMeta = {};
|
|
423
|
-
},
|
|
424
|
-
createTable: (e) => {
|
|
425
|
-
e.setColumnFilters = (o) => {
|
|
426
|
-
const t = e.getAllLeafColumns(), n = (r) => {
|
|
427
|
-
var i;
|
|
428
|
-
return (i = I(o, r)) == null ? void 0 : i.filter((l) => {
|
|
429
|
-
const u = t.find((g) => g.id === l.id);
|
|
430
|
-
if (u) {
|
|
431
|
-
const g = u.getFilterFn();
|
|
432
|
-
if (oe(g, l.value, u))
|
|
433
|
-
return !1;
|
|
434
|
-
}
|
|
435
|
-
return !0;
|
|
436
|
-
});
|
|
437
|
-
};
|
|
438
|
-
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange(n);
|
|
439
|
-
}, e.resetColumnFilters = (o) => {
|
|
440
|
-
var t, n;
|
|
441
|
-
e.setColumnFilters(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.columnFilters) != null ? t : []);
|
|
442
|
-
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
443
|
-
}
|
|
348
|
+
var C = {
|
|
349
|
+
getDefaultColumnDef: () => ({ filterFn: "auto" }),
|
|
350
|
+
getInitialState: (e) => ({
|
|
351
|
+
columnFilters: [],
|
|
352
|
+
...e
|
|
353
|
+
}),
|
|
354
|
+
getDefaultOptions: (e) => ({
|
|
355
|
+
onColumnFiltersChange: n("columnFilters", e),
|
|
356
|
+
filterFromLeafRows: !1,
|
|
357
|
+
maxLeafRowFilterDepth: 100
|
|
358
|
+
}),
|
|
359
|
+
createColumn: (e, n) => {
|
|
360
|
+
e.getAutoFilterFn = () => {
|
|
361
|
+
let t = n.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
362
|
+
return typeof t == "string" ? x.includesString : typeof t == "number" ? x.inNumberRange : typeof t == "boolean" || typeof t == "object" && t ? x.equals : Array.isArray(t) ? x.arrIncludes : x.weakEquals;
|
|
363
|
+
}, e.getFilterFn = () => r(e.columnDef.filterFn) ? e.columnDef.filterFn : e.columnDef.filterFn === "auto" ? e.getAutoFilterFn() : n.options.filterFns?.[e.columnDef.filterFn] ?? x[e.columnDef.filterFn], e.getCanFilter = () => (e.columnDef.enableColumnFilter ?? !0) && (n.options.enableColumnFilters ?? !0) && (n.options.enableFilters ?? !0) && !!e.accessorFn, e.getIsFiltered = () => e.getFilterIndex() > -1, e.getFilterValue = () => {
|
|
364
|
+
var t;
|
|
365
|
+
return (t = n.getState().columnFilters) == null || (t = t.find((t) => t.id === e.id)) == null ? void 0 : t.value;
|
|
366
|
+
}, e.getFilterIndex = () => n.getState().columnFilters?.findIndex((t) => t.id === e.id) ?? -1, e.setFilterValue = (r) => {
|
|
367
|
+
n.setColumnFilters((n) => {
|
|
368
|
+
let i = e.getFilterFn(), a = n?.find((t) => t.id === e.id), o = t(r, a ? a.value : void 0);
|
|
369
|
+
if (w(i, o, e)) return n?.filter((t) => t.id !== e.id) ?? [];
|
|
370
|
+
let s = {
|
|
371
|
+
id: e.id,
|
|
372
|
+
value: o
|
|
373
|
+
};
|
|
374
|
+
return a ? n?.map((t) => t.id === e.id ? s : t) ?? [] : n != null && n.length ? [...n, s] : [s];
|
|
375
|
+
});
|
|
376
|
+
};
|
|
377
|
+
},
|
|
378
|
+
createRow: (e, t) => {
|
|
379
|
+
e.columnFilters = {}, e.columnFiltersMeta = {};
|
|
380
|
+
},
|
|
381
|
+
createTable: (e) => {
|
|
382
|
+
e.setColumnFilters = (n) => {
|
|
383
|
+
let r = e.getAllLeafColumns();
|
|
384
|
+
e.options.onColumnFiltersChange == null || e.options.onColumnFiltersChange((e) => t(n, e)?.filter((e) => {
|
|
385
|
+
let t = r.find((t) => t.id === e.id);
|
|
386
|
+
return !(t && w(t.getFilterFn(), e.value, t));
|
|
387
|
+
}));
|
|
388
|
+
}, e.resetColumnFilters = (t) => {
|
|
389
|
+
e.setColumnFilters(t ? [] : e.initialState?.columnFilters ?? []);
|
|
390
|
+
}, e.getPreFilteredRowModel = () => e.getCoreRowModel(), e.getFilteredRowModel = () => (!e._getFilteredRowModel && e.options.getFilteredRowModel && (e._getFilteredRowModel = e.options.getFilteredRowModel(e)), e.options.manualFiltering || !e._getFilteredRowModel ? e.getPreFilteredRowModel() : e._getFilteredRowModel());
|
|
391
|
+
}
|
|
444
392
|
};
|
|
445
|
-
function
|
|
446
|
-
|
|
393
|
+
function w(e, t, n) {
|
|
394
|
+
return (e && e.autoRemove ? e.autoRemove(t, n) : !1) || t === void 0 || typeof t == "string" && !t;
|
|
447
395
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
var t, n;
|
|
544
|
-
e.setGrouping(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.grouping) != null ? t : []);
|
|
545
|
-
}, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
|
|
546
|
-
},
|
|
547
|
-
createRow: (e, o) => {
|
|
548
|
-
e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (t) => {
|
|
549
|
-
if (e._groupingValuesCache.hasOwnProperty(t))
|
|
550
|
-
return e._groupingValuesCache[t];
|
|
551
|
-
const n = o.getColumn(t);
|
|
552
|
-
return n != null && n.columnDef.getGroupingValue ? (e._groupingValuesCache[t] = n.columnDef.getGroupingValue(e.original), e._groupingValuesCache[t]) : e.getValue(t);
|
|
553
|
-
}, e._groupingValuesCache = {};
|
|
554
|
-
},
|
|
555
|
-
createCell: (e, o, t, n) => {
|
|
556
|
-
e.getIsGrouped = () => o.getIsGrouped() && o.id === t.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && o.getIsGrouped(), e.getIsAggregated = () => {
|
|
557
|
-
var r;
|
|
558
|
-
return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((r = t.subRows) != null && r.length);
|
|
559
|
-
};
|
|
560
|
-
}
|
|
396
|
+
var T = {
|
|
397
|
+
sum: (e, t, n) => n.reduce((t, n) => {
|
|
398
|
+
let r = n.getValue(e);
|
|
399
|
+
return t + (typeof r == "number" ? r : 0);
|
|
400
|
+
}, 0),
|
|
401
|
+
min: (e, t, n) => {
|
|
402
|
+
let r;
|
|
403
|
+
return n.forEach((t) => {
|
|
404
|
+
let n = t.getValue(e);
|
|
405
|
+
n != null && (r > n || r === void 0 && n >= n) && (r = n);
|
|
406
|
+
}), r;
|
|
407
|
+
},
|
|
408
|
+
max: (e, t, n) => {
|
|
409
|
+
let r;
|
|
410
|
+
return n.forEach((t) => {
|
|
411
|
+
let n = t.getValue(e);
|
|
412
|
+
n != null && (r < n || r === void 0 && n >= n) && (r = n);
|
|
413
|
+
}), r;
|
|
414
|
+
},
|
|
415
|
+
extent: (e, t, n) => {
|
|
416
|
+
let r, i;
|
|
417
|
+
return n.forEach((t) => {
|
|
418
|
+
let n = t.getValue(e);
|
|
419
|
+
n != null && (r === void 0 ? n >= n && (r = i = n) : (r > n && (r = n), i < n && (i = n)));
|
|
420
|
+
}), [r, i];
|
|
421
|
+
},
|
|
422
|
+
mean: (e, t) => {
|
|
423
|
+
let n = 0, r = 0;
|
|
424
|
+
if (t.forEach((t) => {
|
|
425
|
+
let i = t.getValue(e);
|
|
426
|
+
i != null && (i = +i) >= i && (++n, r += i);
|
|
427
|
+
}), n) return r / n;
|
|
428
|
+
},
|
|
429
|
+
median: (e, t) => {
|
|
430
|
+
if (!t.length) return;
|
|
431
|
+
let n = t.map((t) => t.getValue(e));
|
|
432
|
+
if (!i(n)) return;
|
|
433
|
+
if (n.length === 1) return n[0];
|
|
434
|
+
let r = Math.floor(n.length / 2), a = n.sort((e, t) => e - t);
|
|
435
|
+
return n.length % 2 == 0 ? (a[r - 1] + a[r]) / 2 : a[r];
|
|
436
|
+
},
|
|
437
|
+
unique: (e, t) => Array.from(new Set(t.map((t) => t.getValue(e))).values()),
|
|
438
|
+
uniqueCount: (e, t) => new Set(t.map((t) => t.getValue(e))).size,
|
|
439
|
+
count: (e, t) => t.length
|
|
440
|
+
}, E = {
|
|
441
|
+
getDefaultColumnDef: () => ({
|
|
442
|
+
aggregatedCell: (e) => {
|
|
443
|
+
var t;
|
|
444
|
+
return ((t = e.getValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;
|
|
445
|
+
},
|
|
446
|
+
aggregationFn: "auto"
|
|
447
|
+
}),
|
|
448
|
+
getInitialState: (e) => ({
|
|
449
|
+
grouping: [],
|
|
450
|
+
...e
|
|
451
|
+
}),
|
|
452
|
+
getDefaultOptions: (e) => ({
|
|
453
|
+
onGroupingChange: n("grouping", e),
|
|
454
|
+
groupedColumnMode: "reorder"
|
|
455
|
+
}),
|
|
456
|
+
createColumn: (e, t) => {
|
|
457
|
+
e.toggleGrouping = () => {
|
|
458
|
+
t.setGrouping((t) => t != null && t.includes(e.id) ? t.filter((t) => t !== e.id) : [...t ?? [], e.id]);
|
|
459
|
+
}, e.getCanGroup = () => (e.columnDef.enableGrouping ?? !0) && (t.options.enableGrouping ?? !0) && (!!e.accessorFn || !!e.columnDef.getGroupingValue), e.getIsGrouped = () => t.getState().grouping?.includes(e.id), e.getGroupedIndex = () => t.getState().grouping?.indexOf(e.id), e.getToggleGroupingHandler = () => {
|
|
460
|
+
let t = e.getCanGroup();
|
|
461
|
+
return () => {
|
|
462
|
+
t && e.toggleGrouping();
|
|
463
|
+
};
|
|
464
|
+
}, e.getAutoAggregationFn = () => {
|
|
465
|
+
let n = t.getCoreRowModel().flatRows[0]?.getValue(e.id);
|
|
466
|
+
if (typeof n == "number") return T.sum;
|
|
467
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return T.extent;
|
|
468
|
+
}, e.getAggregationFn = () => {
|
|
469
|
+
if (!e) throw Error();
|
|
470
|
+
return r(e.columnDef.aggregationFn) ? e.columnDef.aggregationFn : e.columnDef.aggregationFn === "auto" ? e.getAutoAggregationFn() : t.options.aggregationFns?.[e.columnDef.aggregationFn] ?? T[e.columnDef.aggregationFn];
|
|
471
|
+
};
|
|
472
|
+
},
|
|
473
|
+
createTable: (e) => {
|
|
474
|
+
e.setGrouping = (t) => e.options.onGroupingChange == null ? void 0 : e.options.onGroupingChange(t), e.resetGrouping = (t) => {
|
|
475
|
+
e.setGrouping(t ? [] : e.initialState?.grouping ?? []);
|
|
476
|
+
}, e.getPreGroupedRowModel = () => e.getFilteredRowModel(), e.getGroupedRowModel = () => (!e._getGroupedRowModel && e.options.getGroupedRowModel && (e._getGroupedRowModel = e.options.getGroupedRowModel(e)), e.options.manualGrouping || !e._getGroupedRowModel ? e.getPreGroupedRowModel() : e._getGroupedRowModel());
|
|
477
|
+
},
|
|
478
|
+
createRow: (e, t) => {
|
|
479
|
+
e.getIsGrouped = () => !!e.groupingColumnId, e.getGroupingValue = (n) => {
|
|
480
|
+
if (e._groupingValuesCache.hasOwnProperty(n)) return e._groupingValuesCache[n];
|
|
481
|
+
let r = t.getColumn(n);
|
|
482
|
+
return r != null && r.columnDef.getGroupingValue ? (e._groupingValuesCache[n] = r.columnDef.getGroupingValue(e.original), e._groupingValuesCache[n]) : e.getValue(n);
|
|
483
|
+
}, e._groupingValuesCache = {};
|
|
484
|
+
},
|
|
485
|
+
createCell: (e, t, n, r) => {
|
|
486
|
+
e.getIsGrouped = () => t.getIsGrouped() && t.id === n.groupingColumnId, e.getIsPlaceholder = () => !e.getIsGrouped() && t.getIsGrouped(), e.getIsAggregated = () => {
|
|
487
|
+
var t;
|
|
488
|
+
return !e.getIsGrouped() && !e.getIsPlaceholder() && !!((t = n.subRows) != null && t.length);
|
|
489
|
+
};
|
|
490
|
+
}
|
|
561
491
|
};
|
|
562
|
-
function
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
return t === "remove" ? n : [...o.map((i) => e.find((l) => l.id === i)).filter(Boolean), ...n];
|
|
492
|
+
function D(e, t, n) {
|
|
493
|
+
if (!(t != null && t.length) || !n) return e;
|
|
494
|
+
let r = e.filter((e) => !t.includes(e.id));
|
|
495
|
+
return n === "remove" ? r : [...t.map((t) => e.find((e) => e.id === t)).filter(Boolean), ...r];
|
|
567
496
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
}),
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
position: "left"
|
|
662
|
-
})), C(o.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = S(() => [e._getAllVisibleCells(), o.getState().columnPinning.right], (t, n) => (n ?? []).map((i) => t.find((l) => l.column.id === i)).filter(Boolean).map((i) => ({
|
|
663
|
-
...i,
|
|
664
|
-
position: "right"
|
|
665
|
-
})), C(o.options, "debugRows", "getRightVisibleCells"));
|
|
666
|
-
},
|
|
667
|
-
createTable: (e) => {
|
|
668
|
-
e.setColumnPinning = (o) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(o), e.resetColumnPinning = (o) => {
|
|
669
|
-
var t, n;
|
|
670
|
-
return e.setColumnPinning(o ? O() : (t = (n = e.initialState) == null ? void 0 : n.columnPinning) != null ? t : O());
|
|
671
|
-
}, e.getIsSomeColumnsPinned = (o) => {
|
|
672
|
-
var t;
|
|
673
|
-
const n = e.getState().columnPinning;
|
|
674
|
-
if (!o) {
|
|
675
|
-
var r, i;
|
|
676
|
-
return !!((r = n.left) != null && r.length || (i = n.right) != null && i.length);
|
|
677
|
-
}
|
|
678
|
-
return !!((t = n[o]) != null && t.length);
|
|
679
|
-
}, e.getLeftLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (o, t) => (t ?? []).map((n) => o.find((r) => r.id === n)).filter(Boolean), C(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = S(() => [e.getAllLeafColumns(), e.getState().columnPinning.left, e.getState().columnPinning.right], (o, t, n) => {
|
|
680
|
-
const r = [...t ?? [], ...n ?? []];
|
|
681
|
-
return o.filter((i) => !r.includes(i.id));
|
|
682
|
-
}, C(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
683
|
-
}
|
|
497
|
+
var O = {
|
|
498
|
+
getInitialState: (e) => ({
|
|
499
|
+
columnOrder: [],
|
|
500
|
+
...e
|
|
501
|
+
}),
|
|
502
|
+
getDefaultOptions: (e) => ({ onColumnOrderChange: n("columnOrder", e) }),
|
|
503
|
+
createColumn: (e, t) => {
|
|
504
|
+
e.getIndex = o((e) => [F(t, e)], (t) => t.findIndex((t) => t.id === e.id), s(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (n) => F(t, n)[0]?.id === e.id, e.getIsLastColumn = (n) => {
|
|
505
|
+
let r = F(t, n);
|
|
506
|
+
return r[r.length - 1]?.id === e.id;
|
|
507
|
+
};
|
|
508
|
+
},
|
|
509
|
+
createTable: (e) => {
|
|
510
|
+
e.setColumnOrder = (t) => e.options.onColumnOrderChange == null ? void 0 : e.options.onColumnOrderChange(t), e.resetColumnOrder = (t) => {
|
|
511
|
+
e.setColumnOrder(t ? [] : e.initialState.columnOrder ?? []);
|
|
512
|
+
}, e._getOrderColumnsFn = o(() => [
|
|
513
|
+
e.getState().columnOrder,
|
|
514
|
+
e.getState().grouping,
|
|
515
|
+
e.options.groupedColumnMode
|
|
516
|
+
], (e, t, n) => (r) => {
|
|
517
|
+
let i = [];
|
|
518
|
+
if (!(e != null && e.length)) i = r;
|
|
519
|
+
else {
|
|
520
|
+
let t = [...e], n = [...r];
|
|
521
|
+
for (; n.length && t.length;) {
|
|
522
|
+
let e = t.shift(), r = n.findIndex((t) => t.id === e);
|
|
523
|
+
r > -1 && i.push(n.splice(r, 1)[0]);
|
|
524
|
+
}
|
|
525
|
+
i = [...i, ...n];
|
|
526
|
+
}
|
|
527
|
+
return D(i, t, n);
|
|
528
|
+
}, s(e.options, "debugTable", "_getOrderColumnsFn"));
|
|
529
|
+
}
|
|
530
|
+
}, k = () => ({
|
|
531
|
+
left: [],
|
|
532
|
+
right: []
|
|
533
|
+
}), ie = {
|
|
534
|
+
getInitialState: (e) => ({
|
|
535
|
+
columnPinning: k(),
|
|
536
|
+
...e
|
|
537
|
+
}),
|
|
538
|
+
getDefaultOptions: (e) => ({ onColumnPinningChange: n("columnPinning", e) }),
|
|
539
|
+
createColumn: (e, t) => {
|
|
540
|
+
e.pin = (n) => {
|
|
541
|
+
let r = e.getLeafColumns().map((e) => e.id).filter(Boolean);
|
|
542
|
+
t.setColumnPinning((e) => n === "right" ? {
|
|
543
|
+
left: (e?.left ?? []).filter((e) => !(r != null && r.includes(e))),
|
|
544
|
+
right: [...(e?.right ?? []).filter((e) => !(r != null && r.includes(e))), ...r]
|
|
545
|
+
} : n === "left" ? {
|
|
546
|
+
left: [...(e?.left ?? []).filter((e) => !(r != null && r.includes(e))), ...r],
|
|
547
|
+
right: (e?.right ?? []).filter((e) => !(r != null && r.includes(e)))
|
|
548
|
+
} : {
|
|
549
|
+
left: (e?.left ?? []).filter((e) => !(r != null && r.includes(e))),
|
|
550
|
+
right: (e?.right ?? []).filter((e) => !(r != null && r.includes(e)))
|
|
551
|
+
});
|
|
552
|
+
}, e.getCanPin = () => e.getLeafColumns().some((e) => (e.columnDef.enablePinning ?? !0) && (t.options.enableColumnPinning ?? t.options.enablePinning ?? !0)), e.getIsPinned = () => {
|
|
553
|
+
let n = e.getLeafColumns().map((e) => e.id), { left: r, right: i } = t.getState().columnPinning, a = n.some((e) => r?.includes(e)), o = n.some((e) => i?.includes(e));
|
|
554
|
+
return a ? "left" : o ? "right" : !1;
|
|
555
|
+
}, e.getPinnedIndex = () => {
|
|
556
|
+
var n;
|
|
557
|
+
let r = e.getIsPinned();
|
|
558
|
+
return r ? ((n = t.getState().columnPinning) == null || (n = n[r]) == null ? void 0 : n.indexOf(e.id)) ?? -1 : 0;
|
|
559
|
+
};
|
|
560
|
+
},
|
|
561
|
+
createRow: (e, t) => {
|
|
562
|
+
e.getCenterVisibleCells = o(() => [
|
|
563
|
+
e._getAllVisibleCells(),
|
|
564
|
+
t.getState().columnPinning.left,
|
|
565
|
+
t.getState().columnPinning.right
|
|
566
|
+
], (e, t, n) => {
|
|
567
|
+
let r = [...t ?? [], ...n ?? []];
|
|
568
|
+
return e.filter((e) => !r.includes(e.column.id));
|
|
569
|
+
}, s(t.options, "debugRows", "getCenterVisibleCells")), e.getLeftVisibleCells = o(() => [e._getAllVisibleCells(), t.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
|
|
570
|
+
...e,
|
|
571
|
+
position: "left"
|
|
572
|
+
})), s(t.options, "debugRows", "getLeftVisibleCells")), e.getRightVisibleCells = o(() => [e._getAllVisibleCells(), t.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.column.id === t)).filter(Boolean).map((e) => ({
|
|
573
|
+
...e,
|
|
574
|
+
position: "right"
|
|
575
|
+
})), s(t.options, "debugRows", "getRightVisibleCells"));
|
|
576
|
+
},
|
|
577
|
+
createTable: (e) => {
|
|
578
|
+
e.setColumnPinning = (t) => e.options.onColumnPinningChange == null ? void 0 : e.options.onColumnPinningChange(t), e.resetColumnPinning = (t) => e.setColumnPinning(t ? k() : e.initialState?.columnPinning ?? k()), e.getIsSomeColumnsPinned = (t) => {
|
|
579
|
+
let n = e.getState().columnPinning;
|
|
580
|
+
return t ? !!n[t]?.length : !!(n.left?.length || n.right?.length);
|
|
581
|
+
}, e.getLeftLeafColumns = o(() => [e.getAllLeafColumns(), e.getState().columnPinning.left], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), s(e.options, "debugColumns", "getLeftLeafColumns")), e.getRightLeafColumns = o(() => [e.getAllLeafColumns(), e.getState().columnPinning.right], (e, t) => (t ?? []).map((t) => e.find((e) => e.id === t)).filter(Boolean), s(e.options, "debugColumns", "getRightLeafColumns")), e.getCenterLeafColumns = o(() => [
|
|
582
|
+
e.getAllLeafColumns(),
|
|
583
|
+
e.getState().columnPinning.left,
|
|
584
|
+
e.getState().columnPinning.right
|
|
585
|
+
], (e, t, n) => {
|
|
586
|
+
let r = [...t ?? [], ...n ?? []];
|
|
587
|
+
return e.filter((e) => !r.includes(e.id));
|
|
588
|
+
}, s(e.options, "debugColumns", "getCenterLeafColumns"));
|
|
589
|
+
}
|
|
684
590
|
};
|
|
685
|
-
function
|
|
686
|
-
|
|
591
|
+
function ae(e) {
|
|
592
|
+
return e || (typeof document < "u" ? document : null);
|
|
687
593
|
}
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
},
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
}),
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
}, e.getLeftTotalSize = () => {
|
|
816
|
-
var o, t;
|
|
817
|
-
return (o = (t = e.getLeftHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
818
|
-
}, e.getCenterTotalSize = () => {
|
|
819
|
-
var o, t;
|
|
820
|
-
return (o = (t = e.getCenterHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
821
|
-
}, e.getRightTotalSize = () => {
|
|
822
|
-
var o, t;
|
|
823
|
-
return (o = (t = e.getRightHeaderGroups()[0]) == null ? void 0 : t.headers.reduce((n, r) => n + r.getSize(), 0)) != null ? o : 0;
|
|
824
|
-
};
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
|
-
let L = null;
|
|
828
|
-
function ze() {
|
|
829
|
-
if (typeof L == "boolean") return L;
|
|
830
|
-
let e = !1;
|
|
831
|
-
try {
|
|
832
|
-
const o = {
|
|
833
|
-
get passive() {
|
|
834
|
-
return e = !0, !1;
|
|
835
|
-
}
|
|
836
|
-
}, t = () => {
|
|
837
|
-
};
|
|
838
|
-
window.addEventListener("test", t, o), window.removeEventListener("test", t);
|
|
839
|
-
} catch {
|
|
840
|
-
e = !1;
|
|
841
|
-
}
|
|
842
|
-
return L = e, L;
|
|
594
|
+
var A = {
|
|
595
|
+
size: 150,
|
|
596
|
+
minSize: 20,
|
|
597
|
+
maxSize: 2 ** 53 - 1
|
|
598
|
+
}, j = () => ({
|
|
599
|
+
startOffset: null,
|
|
600
|
+
startSize: null,
|
|
601
|
+
deltaOffset: null,
|
|
602
|
+
deltaPercentage: null,
|
|
603
|
+
isResizingColumn: !1,
|
|
604
|
+
columnSizingStart: []
|
|
605
|
+
}), oe = {
|
|
606
|
+
getDefaultColumnDef: () => A,
|
|
607
|
+
getInitialState: (e) => ({
|
|
608
|
+
columnSizing: {},
|
|
609
|
+
columnSizingInfo: j(),
|
|
610
|
+
...e
|
|
611
|
+
}),
|
|
612
|
+
getDefaultOptions: (e) => ({
|
|
613
|
+
columnResizeMode: "onEnd",
|
|
614
|
+
columnResizeDirection: "ltr",
|
|
615
|
+
onColumnSizingChange: n("columnSizing", e),
|
|
616
|
+
onColumnSizingInfoChange: n("columnSizingInfo", e)
|
|
617
|
+
}),
|
|
618
|
+
createColumn: (e, t) => {
|
|
619
|
+
e.getSize = () => {
|
|
620
|
+
let n = t.getState().columnSizing[e.id];
|
|
621
|
+
return Math.min(Math.max(e.columnDef.minSize ?? A.minSize, n ?? e.columnDef.size ?? A.size), e.columnDef.maxSize ?? A.maxSize);
|
|
622
|
+
}, e.getStart = o((e) => [
|
|
623
|
+
e,
|
|
624
|
+
F(t, e),
|
|
625
|
+
t.getState().columnSizing
|
|
626
|
+
], (t, n) => n.slice(0, e.getIndex(t)).reduce((e, t) => e + t.getSize(), 0), s(t.options, "debugColumns", "getStart")), e.getAfter = o((e) => [
|
|
627
|
+
e,
|
|
628
|
+
F(t, e),
|
|
629
|
+
t.getState().columnSizing
|
|
630
|
+
], (t, n) => n.slice(e.getIndex(t) + 1).reduce((e, t) => e + t.getSize(), 0), s(t.options, "debugColumns", "getAfter")), e.resetSize = () => {
|
|
631
|
+
t.setColumnSizing((t) => {
|
|
632
|
+
let { [e.id]: n, ...r } = t;
|
|
633
|
+
return r;
|
|
634
|
+
});
|
|
635
|
+
}, e.getCanResize = () => (e.columnDef.enableResizing ?? !0) && (t.options.enableColumnResizing ?? !0), e.getIsResizing = () => t.getState().columnSizingInfo.isResizingColumn === e.id;
|
|
636
|
+
},
|
|
637
|
+
createHeader: (e, t) => {
|
|
638
|
+
e.getSize = () => {
|
|
639
|
+
let t = 0, n = (e) => {
|
|
640
|
+
e.subHeaders.length ? e.subHeaders.forEach(n) : t += e.column.getSize() ?? 0;
|
|
641
|
+
};
|
|
642
|
+
return n(e), t;
|
|
643
|
+
}, e.getStart = () => {
|
|
644
|
+
if (e.index > 0) {
|
|
645
|
+
let t = e.headerGroup.headers[e.index - 1];
|
|
646
|
+
return t.getStart() + t.getSize();
|
|
647
|
+
}
|
|
648
|
+
return 0;
|
|
649
|
+
}, e.getResizeHandler = (n) => {
|
|
650
|
+
let r = t.getColumn(e.column.id), i = r?.getCanResize();
|
|
651
|
+
return (a) => {
|
|
652
|
+
if (!r || !i || (a.persist == null || a.persist(), N(a) && a.touches && a.touches.length > 1)) return;
|
|
653
|
+
let o = e.getSize(), s = e ? e.getLeafHeaders().map((e) => [e.column.id, e.column.getSize()]) : [[r.id, r.getSize()]], c = N(a) ? Math.round(a.touches[0].clientX) : a.clientX, l = {}, u = (e, n) => {
|
|
654
|
+
typeof n == "number" && (t.setColumnSizingInfo((e) => {
|
|
655
|
+
let r = t.options.columnResizeDirection === "rtl" ? -1 : 1, i = (n - (e?.startOffset ?? 0)) * r, a = Math.max(i / (e?.startSize ?? 0), -.999999);
|
|
656
|
+
return e.columnSizingStart.forEach((e) => {
|
|
657
|
+
let [t, n] = e;
|
|
658
|
+
l[t] = Math.round(Math.max(n + n * a, 0) * 100) / 100;
|
|
659
|
+
}), {
|
|
660
|
+
...e,
|
|
661
|
+
deltaOffset: i,
|
|
662
|
+
deltaPercentage: a
|
|
663
|
+
};
|
|
664
|
+
}), (t.options.columnResizeMode === "onChange" || e === "end") && t.setColumnSizing((e) => ({
|
|
665
|
+
...e,
|
|
666
|
+
...l
|
|
667
|
+
})));
|
|
668
|
+
}, d = (e) => u("move", e), f = (e) => {
|
|
669
|
+
u("end", e), t.setColumnSizingInfo((e) => ({
|
|
670
|
+
...e,
|
|
671
|
+
isResizingColumn: !1,
|
|
672
|
+
startOffset: null,
|
|
673
|
+
startSize: null,
|
|
674
|
+
deltaOffset: null,
|
|
675
|
+
deltaPercentage: null,
|
|
676
|
+
columnSizingStart: []
|
|
677
|
+
}));
|
|
678
|
+
}, p = ae(n), m = {
|
|
679
|
+
moveHandler: (e) => d(e.clientX),
|
|
680
|
+
upHandler: (e) => {
|
|
681
|
+
p?.removeEventListener("mousemove", m.moveHandler), p?.removeEventListener("mouseup", m.upHandler), f(e.clientX);
|
|
682
|
+
}
|
|
683
|
+
}, h = {
|
|
684
|
+
moveHandler: (e) => (e.cancelable && (e.preventDefault(), e.stopPropagation()), d(e.touches[0].clientX), !1),
|
|
685
|
+
upHandler: (e) => {
|
|
686
|
+
p?.removeEventListener("touchmove", h.moveHandler), p?.removeEventListener("touchend", h.upHandler), e.cancelable && (e.preventDefault(), e.stopPropagation()), f(e.touches[0]?.clientX);
|
|
687
|
+
}
|
|
688
|
+
}, g = se() ? { passive: !1 } : !1;
|
|
689
|
+
N(a) ? (p?.addEventListener("touchmove", h.moveHandler, g), p?.addEventListener("touchend", h.upHandler, g)) : (p?.addEventListener("mousemove", m.moveHandler, g), p?.addEventListener("mouseup", m.upHandler, g)), t.setColumnSizingInfo((e) => ({
|
|
690
|
+
...e,
|
|
691
|
+
startOffset: c,
|
|
692
|
+
startSize: o,
|
|
693
|
+
deltaOffset: 0,
|
|
694
|
+
deltaPercentage: 0,
|
|
695
|
+
columnSizingStart: s,
|
|
696
|
+
isResizingColumn: r.id
|
|
697
|
+
}));
|
|
698
|
+
};
|
|
699
|
+
};
|
|
700
|
+
},
|
|
701
|
+
createTable: (e) => {
|
|
702
|
+
e.setColumnSizing = (t) => e.options.onColumnSizingChange == null ? void 0 : e.options.onColumnSizingChange(t), e.setColumnSizingInfo = (t) => e.options.onColumnSizingInfoChange == null ? void 0 : e.options.onColumnSizingInfoChange(t), e.resetColumnSizing = (t) => {
|
|
703
|
+
e.setColumnSizing(t ? {} : e.initialState.columnSizing ?? {});
|
|
704
|
+
}, e.resetHeaderSizeInfo = (t) => {
|
|
705
|
+
e.setColumnSizingInfo(t ? j() : e.initialState.columnSizingInfo ?? j());
|
|
706
|
+
}, e.getTotalSize = () => e.getHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getLeftTotalSize = () => e.getLeftHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getCenterTotalSize = () => e.getCenterHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0, e.getRightTotalSize = () => e.getRightHeaderGroups()[0]?.headers.reduce((e, t) => e + t.getSize(), 0) ?? 0;
|
|
707
|
+
}
|
|
708
|
+
}, M = null;
|
|
709
|
+
function se() {
|
|
710
|
+
if (typeof M == "boolean") return M;
|
|
711
|
+
let e = !1;
|
|
712
|
+
try {
|
|
713
|
+
let t = { get passive() {
|
|
714
|
+
return e = !0, !1;
|
|
715
|
+
} }, n = () => {};
|
|
716
|
+
window.addEventListener("test", n, t), window.removeEventListener("test", n);
|
|
717
|
+
} catch {
|
|
718
|
+
e = !1;
|
|
719
|
+
}
|
|
720
|
+
return M = e, M;
|
|
843
721
|
}
|
|
844
|
-
function
|
|
845
|
-
|
|
722
|
+
function N(e) {
|
|
723
|
+
return e.type === "touchstart";
|
|
846
724
|
}
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}
|
|
725
|
+
var P = {
|
|
726
|
+
getInitialState: (e) => ({
|
|
727
|
+
columnVisibility: {},
|
|
728
|
+
...e
|
|
729
|
+
}),
|
|
730
|
+
getDefaultOptions: (e) => ({ onColumnVisibilityChange: n("columnVisibility", e) }),
|
|
731
|
+
createColumn: (e, t) => {
|
|
732
|
+
e.toggleVisibility = (n) => {
|
|
733
|
+
e.getCanHide() && t.setColumnVisibility((t) => ({
|
|
734
|
+
...t,
|
|
735
|
+
[e.id]: n ?? !e.getIsVisible()
|
|
736
|
+
}));
|
|
737
|
+
}, e.getIsVisible = () => {
|
|
738
|
+
let n = e.columns;
|
|
739
|
+
return (n.length ? n.some((e) => e.getIsVisible()) : t.getState().columnVisibility?.[e.id]) ?? !0;
|
|
740
|
+
}, e.getCanHide = () => (e.columnDef.enableHiding ?? !0) && (t.options.enableHiding ?? !0), e.getToggleVisibilityHandler = () => (t) => {
|
|
741
|
+
e.toggleVisibility == null || e.toggleVisibility(t.target.checked);
|
|
742
|
+
};
|
|
743
|
+
},
|
|
744
|
+
createRow: (e, t) => {
|
|
745
|
+
e._getAllVisibleCells = o(() => [e.getAllCells(), t.getState().columnVisibility], (e) => e.filter((e) => e.column.getIsVisible()), s(t.options, "debugRows", "_getAllVisibleCells")), e.getVisibleCells = o(() => [
|
|
746
|
+
e.getLeftVisibleCells(),
|
|
747
|
+
e.getCenterVisibleCells(),
|
|
748
|
+
e.getRightVisibleCells()
|
|
749
|
+
], (e, t, n) => [
|
|
750
|
+
...e,
|
|
751
|
+
...t,
|
|
752
|
+
...n
|
|
753
|
+
], s(t.options, "debugRows", "getVisibleCells"));
|
|
754
|
+
},
|
|
755
|
+
createTable: (e) => {
|
|
756
|
+
let t = (t, n) => o(() => [n(), n().filter((e) => e.getIsVisible()).map((e) => e.id).join("_")], (e) => e.filter((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), s(e.options, "debugColumns", t));
|
|
757
|
+
e.getVisibleFlatColumns = t("getVisibleFlatColumns", () => e.getAllFlatColumns()), e.getVisibleLeafColumns = t("getVisibleLeafColumns", () => e.getAllLeafColumns()), e.getLeftVisibleLeafColumns = t("getLeftVisibleLeafColumns", () => e.getLeftLeafColumns()), e.getRightVisibleLeafColumns = t("getRightVisibleLeafColumns", () => e.getRightLeafColumns()), e.getCenterVisibleLeafColumns = t("getCenterVisibleLeafColumns", () => e.getCenterLeafColumns()), e.setColumnVisibility = (t) => e.options.onColumnVisibilityChange == null ? void 0 : e.options.onColumnVisibilityChange(t), e.resetColumnVisibility = (t) => {
|
|
758
|
+
e.setColumnVisibility(t ? {} : e.initialState.columnVisibility ?? {});
|
|
759
|
+
}, e.toggleAllColumnsVisible = (t) => {
|
|
760
|
+
t ??= !e.getIsAllColumnsVisible(), e.setColumnVisibility(e.getAllLeafColumns().reduce((e, n) => ({
|
|
761
|
+
...e,
|
|
762
|
+
[n.id]: t || !(n.getCanHide != null && n.getCanHide())
|
|
763
|
+
}), {}));
|
|
764
|
+
}, e.getIsAllColumnsVisible = () => !e.getAllLeafColumns().some((e) => !(e.getIsVisible != null && e.getIsVisible())), e.getIsSomeColumnsVisible = () => e.getAllLeafColumns().some((e) => e.getIsVisible == null ? void 0 : e.getIsVisible()), e.getToggleAllColumnsVisibilityHandler = () => (t) => {
|
|
765
|
+
e.toggleAllColumnsVisible(t.target?.checked);
|
|
766
|
+
};
|
|
767
|
+
}
|
|
891
768
|
};
|
|
892
|
-
function
|
|
893
|
-
|
|
769
|
+
function F(e, t) {
|
|
770
|
+
return t ? t === "center" ? e.getCenterVisibleLeafColumns() : t === "left" ? e.getLeftVisibleLeafColumns() : e.getRightVisibleLeafColumns() : e.getVisibleLeafColumns();
|
|
894
771
|
}
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
},
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
// enableGroupingRowSelection: false,
|
|
1220
|
-
// isAdditiveSelectEvent: (e: unknown) => !!e.metaKey,
|
|
1221
|
-
// isInclusiveSelectEvent: (e: unknown) => !!e.shiftKey,
|
|
1222
|
-
}),
|
|
1223
|
-
createTable: (e) => {
|
|
1224
|
-
e.setRowSelection = (o) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(o), e.resetRowSelection = (o) => {
|
|
1225
|
-
var t;
|
|
1226
|
-
return e.setRowSelection(o ? {} : (t = e.initialState.rowSelection) != null ? t : {});
|
|
1227
|
-
}, e.toggleAllRowsSelected = (o) => {
|
|
1228
|
-
e.setRowSelection((t) => {
|
|
1229
|
-
o = typeof o < "u" ? o : !e.getIsAllRowsSelected();
|
|
1230
|
-
const n = {
|
|
1231
|
-
...t
|
|
1232
|
-
}, r = e.getPreGroupedRowModel().flatRows;
|
|
1233
|
-
return o ? r.forEach((i) => {
|
|
1234
|
-
i.getCanSelect() && (n[i.id] = !0);
|
|
1235
|
-
}) : r.forEach((i) => {
|
|
1236
|
-
delete n[i.id];
|
|
1237
|
-
}), n;
|
|
1238
|
-
});
|
|
1239
|
-
}, e.toggleAllPageRowsSelected = (o) => e.setRowSelection((t) => {
|
|
1240
|
-
const n = typeof o < "u" ? o : !e.getIsAllPageRowsSelected(), r = {
|
|
1241
|
-
...t
|
|
1242
|
-
};
|
|
1243
|
-
return e.getRowModel().rows.forEach((i) => {
|
|
1244
|
-
X(r, i.id, n, !0, e);
|
|
1245
|
-
}), r;
|
|
1246
|
-
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = S(() => [e.getState().rowSelection, e.getCoreRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1247
|
-
rows: [],
|
|
1248
|
-
flatRows: [],
|
|
1249
|
-
rowsById: {}
|
|
1250
|
-
}, C(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = S(() => [e.getState().rowSelection, e.getFilteredRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1251
|
-
rows: [],
|
|
1252
|
-
flatRows: [],
|
|
1253
|
-
rowsById: {}
|
|
1254
|
-
}, C(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = S(() => [e.getState().rowSelection, e.getSortedRowModel()], (o, t) => Object.keys(o).length ? k(e, t) : {
|
|
1255
|
-
rows: [],
|
|
1256
|
-
flatRows: [],
|
|
1257
|
-
rowsById: {}
|
|
1258
|
-
}, C(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1259
|
-
const o = e.getFilteredRowModel().flatRows, {
|
|
1260
|
-
rowSelection: t
|
|
1261
|
-
} = e.getState();
|
|
1262
|
-
let n = !!(o.length && Object.keys(t).length);
|
|
1263
|
-
return n && o.some((r) => r.getCanSelect() && !t[r.id]) && (n = !1), n;
|
|
1264
|
-
}, e.getIsAllPageRowsSelected = () => {
|
|
1265
|
-
const o = e.getPaginationRowModel().flatRows.filter((r) => r.getCanSelect()), {
|
|
1266
|
-
rowSelection: t
|
|
1267
|
-
} = e.getState();
|
|
1268
|
-
let n = !!o.length;
|
|
1269
|
-
return n && o.some((r) => !t[r.id]) && (n = !1), n;
|
|
1270
|
-
}, e.getIsSomeRowsSelected = () => {
|
|
1271
|
-
var o;
|
|
1272
|
-
const t = Object.keys((o = e.getState().rowSelection) != null ? o : {}).length;
|
|
1273
|
-
return t > 0 && t < e.getFilteredRowModel().flatRows.length;
|
|
1274
|
-
}, e.getIsSomePageRowsSelected = () => {
|
|
1275
|
-
const o = e.getPaginationRowModel().flatRows;
|
|
1276
|
-
return e.getIsAllPageRowsSelected() ? !1 : o.filter((t) => t.getCanSelect()).some((t) => t.getIsSelected() || t.getIsSomeSelected());
|
|
1277
|
-
}, e.getToggleAllRowsSelectedHandler = () => (o) => {
|
|
1278
|
-
e.toggleAllRowsSelected(o.target.checked);
|
|
1279
|
-
}, e.getToggleAllPageRowsSelectedHandler = () => (o) => {
|
|
1280
|
-
e.toggleAllPageRowsSelected(o.target.checked);
|
|
1281
|
-
};
|
|
1282
|
-
},
|
|
1283
|
-
createRow: (e, o) => {
|
|
1284
|
-
e.toggleSelected = (t, n) => {
|
|
1285
|
-
const r = e.getIsSelected();
|
|
1286
|
-
o.setRowSelection((i) => {
|
|
1287
|
-
var l;
|
|
1288
|
-
if (t = typeof t < "u" ? t : !r, e.getCanSelect() && r === t)
|
|
1289
|
-
return i;
|
|
1290
|
-
const u = {
|
|
1291
|
-
...i
|
|
1292
|
-
};
|
|
1293
|
-
return X(u, e.id, t, (l = n?.selectChildren) != null ? l : !0, o), u;
|
|
1294
|
-
});
|
|
1295
|
-
}, e.getIsSelected = () => {
|
|
1296
|
-
const {
|
|
1297
|
-
rowSelection: t
|
|
1298
|
-
} = o.getState();
|
|
1299
|
-
return Y(e, t);
|
|
1300
|
-
}, e.getIsSomeSelected = () => {
|
|
1301
|
-
const {
|
|
1302
|
-
rowSelection: t
|
|
1303
|
-
} = o.getState();
|
|
1304
|
-
return K(e, t) === "some";
|
|
1305
|
-
}, e.getIsAllSubRowsSelected = () => {
|
|
1306
|
-
const {
|
|
1307
|
-
rowSelection: t
|
|
1308
|
-
} = o.getState();
|
|
1309
|
-
return K(e, t) === "all";
|
|
1310
|
-
}, e.getCanSelect = () => {
|
|
1311
|
-
var t;
|
|
1312
|
-
return typeof o.options.enableRowSelection == "function" ? o.options.enableRowSelection(e) : (t = o.options.enableRowSelection) != null ? t : !0;
|
|
1313
|
-
}, e.getCanSelectSubRows = () => {
|
|
1314
|
-
var t;
|
|
1315
|
-
return typeof o.options.enableSubRowSelection == "function" ? o.options.enableSubRowSelection(e) : (t = o.options.enableSubRowSelection) != null ? t : !0;
|
|
1316
|
-
}, e.getCanMultiSelect = () => {
|
|
1317
|
-
var t;
|
|
1318
|
-
return typeof o.options.enableMultiRowSelection == "function" ? o.options.enableMultiRowSelection(e) : (t = o.options.enableMultiRowSelection) != null ? t : !0;
|
|
1319
|
-
}, e.getToggleSelectedHandler = () => {
|
|
1320
|
-
const t = e.getCanSelect();
|
|
1321
|
-
return (n) => {
|
|
1322
|
-
var r;
|
|
1323
|
-
t && e.toggleSelected((r = n.target) == null ? void 0 : r.checked);
|
|
1324
|
-
};
|
|
1325
|
-
};
|
|
1326
|
-
}
|
|
1327
|
-
}, X = (e, o, t, n, r) => {
|
|
1328
|
-
var i;
|
|
1329
|
-
const l = r.getRow(o, !0);
|
|
1330
|
-
t ? (l.getCanMultiSelect() || Object.keys(e).forEach((u) => delete e[u]), l.getCanSelect() && (e[o] = !0)) : delete e[o], n && (i = l.subRows) != null && i.length && l.getCanSelectSubRows() && l.subRows.forEach((u) => X(e, u.id, t, n, r));
|
|
772
|
+
var I = { createTable: (e) => {
|
|
773
|
+
e._getGlobalFacetedRowModel = e.options.getFacetedRowModel && e.options.getFacetedRowModel(e, "__global__"), e.getGlobalFacetedRowModel = () => e.options.manualFiltering || !e._getGlobalFacetedRowModel ? e.getPreFilteredRowModel() : e._getGlobalFacetedRowModel(), e._getGlobalFacetedUniqueValues = e.options.getFacetedUniqueValues && e.options.getFacetedUniqueValues(e, "__global__"), e.getGlobalFacetedUniqueValues = () => e._getGlobalFacetedUniqueValues ? e._getGlobalFacetedUniqueValues() : /* @__PURE__ */ new Map(), e._getGlobalFacetedMinMaxValues = e.options.getFacetedMinMaxValues && e.options.getFacetedMinMaxValues(e, "__global__"), e.getGlobalFacetedMinMaxValues = () => {
|
|
774
|
+
if (e._getGlobalFacetedMinMaxValues) return e._getGlobalFacetedMinMaxValues();
|
|
775
|
+
};
|
|
776
|
+
} }, L = {
|
|
777
|
+
getInitialState: (e) => ({
|
|
778
|
+
globalFilter: void 0,
|
|
779
|
+
...e
|
|
780
|
+
}),
|
|
781
|
+
getDefaultOptions: (e) => ({
|
|
782
|
+
onGlobalFilterChange: n("globalFilter", e),
|
|
783
|
+
globalFilterFn: "auto",
|
|
784
|
+
getColumnCanGlobalFilter: (t) => {
|
|
785
|
+
var n;
|
|
786
|
+
let r = (n = e.getCoreRowModel().flatRows[0]) == null || (n = n._getAllCellsByColumnId()[t.id]) == null ? void 0 : n.getValue();
|
|
787
|
+
return typeof r == "string" || typeof r == "number";
|
|
788
|
+
}
|
|
789
|
+
}),
|
|
790
|
+
createColumn: (e, t) => {
|
|
791
|
+
e.getCanGlobalFilter = () => (e.columnDef.enableGlobalFilter ?? !0) && (t.options.enableGlobalFilter ?? !0) && (t.options.enableFilters ?? !0) && ((t.options.getColumnCanGlobalFilter == null ? void 0 : t.options.getColumnCanGlobalFilter(e)) ?? !0) && !!e.accessorFn;
|
|
792
|
+
},
|
|
793
|
+
createTable: (e) => {
|
|
794
|
+
e.getGlobalAutoFilterFn = () => x.includesString, e.getGlobalFilterFn = () => {
|
|
795
|
+
let { globalFilterFn: t } = e.options;
|
|
796
|
+
return r(t) ? t : t === "auto" ? e.getGlobalAutoFilterFn() : e.options.filterFns?.[t] ?? x[t];
|
|
797
|
+
}, e.setGlobalFilter = (t) => {
|
|
798
|
+
e.options.onGlobalFilterChange == null || e.options.onGlobalFilterChange(t);
|
|
799
|
+
}, e.resetGlobalFilter = (t) => {
|
|
800
|
+
e.setGlobalFilter(t ? void 0 : e.initialState.globalFilter);
|
|
801
|
+
};
|
|
802
|
+
}
|
|
803
|
+
}, R = {
|
|
804
|
+
getInitialState: (e) => ({
|
|
805
|
+
expanded: {},
|
|
806
|
+
...e
|
|
807
|
+
}),
|
|
808
|
+
getDefaultOptions: (e) => ({
|
|
809
|
+
onExpandedChange: n("expanded", e),
|
|
810
|
+
paginateExpandedRows: !0
|
|
811
|
+
}),
|
|
812
|
+
createTable: (e) => {
|
|
813
|
+
let t = !1, n = !1;
|
|
814
|
+
e._autoResetExpanded = () => {
|
|
815
|
+
if (!t) {
|
|
816
|
+
e._queue(() => {
|
|
817
|
+
t = !0;
|
|
818
|
+
});
|
|
819
|
+
return;
|
|
820
|
+
}
|
|
821
|
+
if (e.options.autoResetAll ?? e.options.autoResetExpanded ?? !e.options.manualExpanding) {
|
|
822
|
+
if (n) return;
|
|
823
|
+
n = !0, e._queue(() => {
|
|
824
|
+
e.resetExpanded(), n = !1;
|
|
825
|
+
});
|
|
826
|
+
}
|
|
827
|
+
}, e.setExpanded = (t) => e.options.onExpandedChange == null ? void 0 : e.options.onExpandedChange(t), e.toggleAllRowsExpanded = (t) => {
|
|
828
|
+
t ?? !e.getIsAllRowsExpanded() ? e.setExpanded(!0) : e.setExpanded({});
|
|
829
|
+
}, e.resetExpanded = (t) => {
|
|
830
|
+
e.setExpanded(t ? {} : e.initialState?.expanded ?? {});
|
|
831
|
+
}, e.getCanSomeRowsExpand = () => e.getPrePaginationRowModel().flatRows.some((e) => e.getCanExpand()), e.getToggleAllRowsExpandedHandler = () => (t) => {
|
|
832
|
+
t.persist == null || t.persist(), e.toggleAllRowsExpanded();
|
|
833
|
+
}, e.getIsSomeRowsExpanded = () => {
|
|
834
|
+
let t = e.getState().expanded;
|
|
835
|
+
return t === !0 || Object.values(t).some(Boolean);
|
|
836
|
+
}, e.getIsAllRowsExpanded = () => {
|
|
837
|
+
let t = e.getState().expanded;
|
|
838
|
+
return typeof t == "boolean" ? t === !0 : !(!Object.keys(t).length || e.getRowModel().flatRows.some((e) => !e.getIsExpanded()));
|
|
839
|
+
}, e.getExpandedDepth = () => {
|
|
840
|
+
let t = 0;
|
|
841
|
+
return (e.getState().expanded === !0 ? Object.keys(e.getRowModel().rowsById) : Object.keys(e.getState().expanded)).forEach((e) => {
|
|
842
|
+
let n = e.split(".");
|
|
843
|
+
t = Math.max(t, n.length);
|
|
844
|
+
}), t;
|
|
845
|
+
}, e.getPreExpandedRowModel = () => e.getSortedRowModel(), e.getExpandedRowModel = () => (!e._getExpandedRowModel && e.options.getExpandedRowModel && (e._getExpandedRowModel = e.options.getExpandedRowModel(e)), e.options.manualExpanding || !e._getExpandedRowModel ? e.getPreExpandedRowModel() : e._getExpandedRowModel());
|
|
846
|
+
},
|
|
847
|
+
createRow: (e, t) => {
|
|
848
|
+
e.toggleExpanded = (n) => {
|
|
849
|
+
t.setExpanded((r) => {
|
|
850
|
+
let i = r === !0 || !!(r != null && r[e.id]), a = {};
|
|
851
|
+
if (r === !0 ? Object.keys(t.getRowModel().rowsById).forEach((e) => {
|
|
852
|
+
a[e] = !0;
|
|
853
|
+
}) : a = r, n ??= !i, !i && n) return {
|
|
854
|
+
...a,
|
|
855
|
+
[e.id]: !0
|
|
856
|
+
};
|
|
857
|
+
if (i && !n) {
|
|
858
|
+
let { [e.id]: t, ...n } = a;
|
|
859
|
+
return n;
|
|
860
|
+
}
|
|
861
|
+
return r;
|
|
862
|
+
});
|
|
863
|
+
}, e.getIsExpanded = () => {
|
|
864
|
+
let n = t.getState().expanded;
|
|
865
|
+
return !!((t.options.getIsRowExpanded == null ? void 0 : t.options.getIsRowExpanded(e)) ?? (n === !0 || n?.[e.id]));
|
|
866
|
+
}, e.getCanExpand = () => {
|
|
867
|
+
var n;
|
|
868
|
+
return (t.options.getRowCanExpand == null ? void 0 : t.options.getRowCanExpand(e)) ?? ((t.options.enableExpanding ?? !0) && !!((n = e.subRows) != null && n.length));
|
|
869
|
+
}, e.getIsAllParentsExpanded = () => {
|
|
870
|
+
let n = !0, r = e;
|
|
871
|
+
for (; n && r.parentId;) r = t.getRow(r.parentId, !0), n = r.getIsExpanded();
|
|
872
|
+
return n;
|
|
873
|
+
}, e.getToggleExpandedHandler = () => {
|
|
874
|
+
let t = e.getCanExpand();
|
|
875
|
+
return () => {
|
|
876
|
+
t && e.toggleExpanded();
|
|
877
|
+
};
|
|
878
|
+
};
|
|
879
|
+
}
|
|
880
|
+
}, z = 0, B = 10, V = () => ({
|
|
881
|
+
pageIndex: z,
|
|
882
|
+
pageSize: B
|
|
883
|
+
}), H = {
|
|
884
|
+
getInitialState: (e) => ({
|
|
885
|
+
...e,
|
|
886
|
+
pagination: {
|
|
887
|
+
...V(),
|
|
888
|
+
...e?.pagination
|
|
889
|
+
}
|
|
890
|
+
}),
|
|
891
|
+
getDefaultOptions: (e) => ({ onPaginationChange: n("pagination", e) }),
|
|
892
|
+
createTable: (e) => {
|
|
893
|
+
let n = !1, r = !1;
|
|
894
|
+
e._autoResetPageIndex = () => {
|
|
895
|
+
if (!n) {
|
|
896
|
+
e._queue(() => {
|
|
897
|
+
n = !0;
|
|
898
|
+
});
|
|
899
|
+
return;
|
|
900
|
+
}
|
|
901
|
+
if (e.options.autoResetAll ?? e.options.autoResetPageIndex ?? !e.options.manualPagination) {
|
|
902
|
+
if (r) return;
|
|
903
|
+
r = !0, e._queue(() => {
|
|
904
|
+
e.resetPageIndex(), r = !1;
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
}, e.setPagination = (n) => e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange((e) => t(n, e)), e.resetPagination = (t) => {
|
|
908
|
+
e.setPagination(t ? V() : e.initialState.pagination ?? V());
|
|
909
|
+
}, e.setPageIndex = (n) => {
|
|
910
|
+
e.setPagination((r) => {
|
|
911
|
+
let i = t(n, r.pageIndex), a = e.options.pageCount === void 0 || e.options.pageCount === -1 ? 2 ** 53 - 1 : e.options.pageCount - 1;
|
|
912
|
+
return i = Math.max(0, Math.min(i, a)), {
|
|
913
|
+
...r,
|
|
914
|
+
pageIndex: i
|
|
915
|
+
};
|
|
916
|
+
});
|
|
917
|
+
}, e.resetPageIndex = (t) => {
|
|
918
|
+
var n;
|
|
919
|
+
e.setPageIndex(t ? z : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageIndex) ?? z);
|
|
920
|
+
}, e.resetPageSize = (t) => {
|
|
921
|
+
var n;
|
|
922
|
+
e.setPageSize(t ? B : ((n = e.initialState) == null || (n = n.pagination) == null ? void 0 : n.pageSize) ?? B);
|
|
923
|
+
}, e.setPageSize = (n) => {
|
|
924
|
+
e.setPagination((e) => {
|
|
925
|
+
let r = Math.max(1, t(n, e.pageSize)), i = e.pageSize * e.pageIndex, a = Math.floor(i / r);
|
|
926
|
+
return {
|
|
927
|
+
...e,
|
|
928
|
+
pageIndex: a,
|
|
929
|
+
pageSize: r
|
|
930
|
+
};
|
|
931
|
+
});
|
|
932
|
+
}, e.setPageCount = (n) => e.setPagination((r) => {
|
|
933
|
+
let i = t(n, e.options.pageCount ?? -1);
|
|
934
|
+
return typeof i == "number" && (i = Math.max(-1, i)), {
|
|
935
|
+
...r,
|
|
936
|
+
pageCount: i
|
|
937
|
+
};
|
|
938
|
+
}), e.getPageOptions = o(() => [e.getPageCount()], (e) => {
|
|
939
|
+
let t = [];
|
|
940
|
+
return e && e > 0 && (t = [...Array(e)].fill(null).map((e, t) => t)), t;
|
|
941
|
+
}, s(e.options, "debugTable", "getPageOptions")), e.getCanPreviousPage = () => e.getState().pagination.pageIndex > 0, e.getCanNextPage = () => {
|
|
942
|
+
let { pageIndex: t } = e.getState().pagination, n = e.getPageCount();
|
|
943
|
+
return n === -1 || n !== 0 && t < n - 1;
|
|
944
|
+
}, e.previousPage = () => e.setPageIndex((e) => e - 1), e.nextPage = () => e.setPageIndex((e) => e + 1), e.firstPage = () => e.setPageIndex(0), e.lastPage = () => e.setPageIndex(e.getPageCount() - 1), e.getPrePaginationRowModel = () => e.getExpandedRowModel(), e.getPaginationRowModel = () => (!e._getPaginationRowModel && e.options.getPaginationRowModel && (e._getPaginationRowModel = e.options.getPaginationRowModel(e)), e.options.manualPagination || !e._getPaginationRowModel ? e.getPrePaginationRowModel() : e._getPaginationRowModel()), e.getPageCount = () => e.options.pageCount ?? Math.ceil(e.getRowCount() / e.getState().pagination.pageSize), e.getRowCount = () => e.options.rowCount ?? e.getPrePaginationRowModel().rows.length;
|
|
945
|
+
}
|
|
946
|
+
}, U = () => ({
|
|
947
|
+
top: [],
|
|
948
|
+
bottom: []
|
|
949
|
+
}), W = {
|
|
950
|
+
getInitialState: (e) => ({
|
|
951
|
+
rowPinning: U(),
|
|
952
|
+
...e
|
|
953
|
+
}),
|
|
954
|
+
getDefaultOptions: (e) => ({ onRowPinningChange: n("rowPinning", e) }),
|
|
955
|
+
createRow: (e, t) => {
|
|
956
|
+
e.pin = (n, r, i) => {
|
|
957
|
+
let a = r ? e.getLeafRows().map((e) => {
|
|
958
|
+
let { id: t } = e;
|
|
959
|
+
return t;
|
|
960
|
+
}) : [], o = i ? e.getParentRows().map((e) => {
|
|
961
|
+
let { id: t } = e;
|
|
962
|
+
return t;
|
|
963
|
+
}) : [], s = /* @__PURE__ */ new Set([
|
|
964
|
+
...o,
|
|
965
|
+
e.id,
|
|
966
|
+
...a
|
|
967
|
+
]);
|
|
968
|
+
t.setRowPinning((e) => n === "bottom" ? {
|
|
969
|
+
top: (e?.top ?? []).filter((e) => !(s != null && s.has(e))),
|
|
970
|
+
bottom: [...(e?.bottom ?? []).filter((e) => !(s != null && s.has(e))), ...Array.from(s)]
|
|
971
|
+
} : n === "top" ? {
|
|
972
|
+
top: [...(e?.top ?? []).filter((e) => !(s != null && s.has(e))), ...Array.from(s)],
|
|
973
|
+
bottom: (e?.bottom ?? []).filter((e) => !(s != null && s.has(e)))
|
|
974
|
+
} : {
|
|
975
|
+
top: (e?.top ?? []).filter((e) => !(s != null && s.has(e))),
|
|
976
|
+
bottom: (e?.bottom ?? []).filter((e) => !(s != null && s.has(e)))
|
|
977
|
+
});
|
|
978
|
+
}, e.getCanPin = () => {
|
|
979
|
+
let { enableRowPinning: n, enablePinning: r } = t.options;
|
|
980
|
+
return typeof n == "function" ? n(e) : n ?? r ?? !0;
|
|
981
|
+
}, e.getIsPinned = () => {
|
|
982
|
+
let n = [e.id], { top: r, bottom: i } = t.getState().rowPinning, a = n.some((e) => r?.includes(e)), o = n.some((e) => i?.includes(e));
|
|
983
|
+
return a ? "top" : o ? "bottom" : !1;
|
|
984
|
+
}, e.getPinnedIndex = () => {
|
|
985
|
+
let n = e.getIsPinned();
|
|
986
|
+
return n ? ((n === "top" ? t.getTopRows() : t.getBottomRows())?.map((e) => {
|
|
987
|
+
let { id: t } = e;
|
|
988
|
+
return t;
|
|
989
|
+
}))?.indexOf(e.id) ?? -1 : -1;
|
|
990
|
+
};
|
|
991
|
+
},
|
|
992
|
+
createTable: (e) => {
|
|
993
|
+
e.setRowPinning = (t) => e.options.onRowPinningChange == null ? void 0 : e.options.onRowPinningChange(t), e.resetRowPinning = (t) => e.setRowPinning(t ? U() : e.initialState?.rowPinning ?? U()), e.getIsSomeRowsPinned = (t) => {
|
|
994
|
+
let n = e.getState().rowPinning;
|
|
995
|
+
return t ? !!n[t]?.length : !!(n.top?.length || n.bottom?.length);
|
|
996
|
+
}, e._getPinnedRows = (t, n, r) => (e.options.keepPinnedRows ?? !0 ? (n ?? []).map((t) => {
|
|
997
|
+
let n = e.getRow(t, !0);
|
|
998
|
+
return n.getIsAllParentsExpanded() ? n : null;
|
|
999
|
+
}) : (n ?? []).map((e) => t.find((t) => t.id === e))).filter(Boolean).map((e) => ({
|
|
1000
|
+
...e,
|
|
1001
|
+
position: r
|
|
1002
|
+
})), e.getTopRows = o(() => [e.getRowModel().rows, e.getState().rowPinning.top], (t, n) => e._getPinnedRows(t, n, "top"), s(e.options, "debugRows", "getTopRows")), e.getBottomRows = o(() => [e.getRowModel().rows, e.getState().rowPinning.bottom], (t, n) => e._getPinnedRows(t, n, "bottom"), s(e.options, "debugRows", "getBottomRows")), e.getCenterRows = o(() => [
|
|
1003
|
+
e.getRowModel().rows,
|
|
1004
|
+
e.getState().rowPinning.top,
|
|
1005
|
+
e.getState().rowPinning.bottom
|
|
1006
|
+
], (e, t, n) => {
|
|
1007
|
+
let r = /* @__PURE__ */ new Set([...t ?? [], ...n ?? []]);
|
|
1008
|
+
return e.filter((e) => !r.has(e.id));
|
|
1009
|
+
}, s(e.options, "debugRows", "getCenterRows"));
|
|
1010
|
+
}
|
|
1011
|
+
}, G = {
|
|
1012
|
+
getInitialState: (e) => ({
|
|
1013
|
+
rowSelection: {},
|
|
1014
|
+
...e
|
|
1015
|
+
}),
|
|
1016
|
+
getDefaultOptions: (e) => ({
|
|
1017
|
+
onRowSelectionChange: n("rowSelection", e),
|
|
1018
|
+
enableRowSelection: !0,
|
|
1019
|
+
enableMultiRowSelection: !0,
|
|
1020
|
+
enableSubRowSelection: !0
|
|
1021
|
+
}),
|
|
1022
|
+
createTable: (e) => {
|
|
1023
|
+
e.setRowSelection = (t) => e.options.onRowSelectionChange == null ? void 0 : e.options.onRowSelectionChange(t), e.resetRowSelection = (t) => e.setRowSelection(t ? {} : e.initialState.rowSelection ?? {}), e.toggleAllRowsSelected = (t) => {
|
|
1024
|
+
e.setRowSelection((n) => {
|
|
1025
|
+
t = t === void 0 ? !e.getIsAllRowsSelected() : t;
|
|
1026
|
+
let r = { ...n }, i = e.getPreGroupedRowModel().flatRows;
|
|
1027
|
+
return t ? i.forEach((e) => {
|
|
1028
|
+
e.getCanSelect() && (r[e.id] = !0);
|
|
1029
|
+
}) : i.forEach((e) => {
|
|
1030
|
+
delete r[e.id];
|
|
1031
|
+
}), r;
|
|
1032
|
+
});
|
|
1033
|
+
}, e.toggleAllPageRowsSelected = (t) => e.setRowSelection((n) => {
|
|
1034
|
+
let r = t === void 0 ? !e.getIsAllPageRowsSelected() : t, i = { ...n };
|
|
1035
|
+
return e.getRowModel().rows.forEach((t) => {
|
|
1036
|
+
K(i, t.id, r, !0, e);
|
|
1037
|
+
}), i;
|
|
1038
|
+
}), e.getPreSelectedRowModel = () => e.getCoreRowModel(), e.getSelectedRowModel = o(() => [e.getState().rowSelection, e.getCoreRowModel()], (t, n) => Object.keys(t).length ? q(e, n) : {
|
|
1039
|
+
rows: [],
|
|
1040
|
+
flatRows: [],
|
|
1041
|
+
rowsById: {}
|
|
1042
|
+
}, s(e.options, "debugTable", "getSelectedRowModel")), e.getFilteredSelectedRowModel = o(() => [e.getState().rowSelection, e.getFilteredRowModel()], (t, n) => Object.keys(t).length ? q(e, n) : {
|
|
1043
|
+
rows: [],
|
|
1044
|
+
flatRows: [],
|
|
1045
|
+
rowsById: {}
|
|
1046
|
+
}, s(e.options, "debugTable", "getFilteredSelectedRowModel")), e.getGroupedSelectedRowModel = o(() => [e.getState().rowSelection, e.getSortedRowModel()], (t, n) => Object.keys(t).length ? q(e, n) : {
|
|
1047
|
+
rows: [],
|
|
1048
|
+
flatRows: [],
|
|
1049
|
+
rowsById: {}
|
|
1050
|
+
}, s(e.options, "debugTable", "getGroupedSelectedRowModel")), e.getIsAllRowsSelected = () => {
|
|
1051
|
+
let t = e.getFilteredRowModel().flatRows, { rowSelection: n } = e.getState(), r = !!(t.length && Object.keys(n).length);
|
|
1052
|
+
return r && t.some((e) => e.getCanSelect() && !n[e.id]) && (r = !1), r;
|
|
1053
|
+
}, e.getIsAllPageRowsSelected = () => {
|
|
1054
|
+
let t = e.getPaginationRowModel().flatRows.filter((e) => e.getCanSelect()), { rowSelection: n } = e.getState(), r = !!t.length;
|
|
1055
|
+
return r && t.some((e) => !n[e.id]) && (r = !1), r;
|
|
1056
|
+
}, e.getIsSomeRowsSelected = () => {
|
|
1057
|
+
let t = Object.keys(e.getState().rowSelection ?? {}).length;
|
|
1058
|
+
return t > 0 && t < e.getFilteredRowModel().flatRows.length;
|
|
1059
|
+
}, e.getIsSomePageRowsSelected = () => {
|
|
1060
|
+
let t = e.getPaginationRowModel().flatRows;
|
|
1061
|
+
return !e.getIsAllPageRowsSelected() && t.filter((e) => e.getCanSelect()).some((e) => e.getIsSelected() || e.getIsSomeSelected());
|
|
1062
|
+
}, e.getToggleAllRowsSelectedHandler = () => (t) => {
|
|
1063
|
+
e.toggleAllRowsSelected(t.target.checked);
|
|
1064
|
+
}, e.getToggleAllPageRowsSelectedHandler = () => (t) => {
|
|
1065
|
+
e.toggleAllPageRowsSelected(t.target.checked);
|
|
1066
|
+
};
|
|
1067
|
+
},
|
|
1068
|
+
createRow: (e, t) => {
|
|
1069
|
+
e.toggleSelected = (n, r) => {
|
|
1070
|
+
let i = e.getIsSelected();
|
|
1071
|
+
t.setRowSelection((a) => {
|
|
1072
|
+
if (n = n === void 0 ? !i : n, e.getCanSelect() && i === n) return a;
|
|
1073
|
+
let o = { ...a };
|
|
1074
|
+
return K(o, e.id, n, r?.selectChildren ?? !0, t), o;
|
|
1075
|
+
});
|
|
1076
|
+
}, e.getIsSelected = () => {
|
|
1077
|
+
let { rowSelection: n } = t.getState();
|
|
1078
|
+
return J(e, n);
|
|
1079
|
+
}, e.getIsSomeSelected = () => {
|
|
1080
|
+
let { rowSelection: n } = t.getState();
|
|
1081
|
+
return Y(e, n) === "some";
|
|
1082
|
+
}, e.getIsAllSubRowsSelected = () => {
|
|
1083
|
+
let { rowSelection: n } = t.getState();
|
|
1084
|
+
return Y(e, n) === "all";
|
|
1085
|
+
}, e.getCanSelect = () => typeof t.options.enableRowSelection == "function" ? t.options.enableRowSelection(e) : t.options.enableRowSelection ?? !0, e.getCanSelectSubRows = () => typeof t.options.enableSubRowSelection == "function" ? t.options.enableSubRowSelection(e) : t.options.enableSubRowSelection ?? !0, e.getCanMultiSelect = () => typeof t.options.enableMultiRowSelection == "function" ? t.options.enableMultiRowSelection(e) : t.options.enableMultiRowSelection ?? !0, e.getToggleSelectedHandler = () => {
|
|
1086
|
+
let t = e.getCanSelect();
|
|
1087
|
+
return (n) => {
|
|
1088
|
+
t && e.toggleSelected(n.target?.checked);
|
|
1089
|
+
};
|
|
1090
|
+
};
|
|
1091
|
+
}
|
|
1092
|
+
}, K = (e, t, n, r, i) => {
|
|
1093
|
+
var a;
|
|
1094
|
+
let o = i.getRow(t, !0);
|
|
1095
|
+
n ? (o.getCanMultiSelect() || Object.keys(e).forEach((t) => delete e[t]), o.getCanSelect() && (e[t] = !0)) : delete e[t], r && (a = o.subRows) != null && a.length && o.getCanSelectSubRows() && o.subRows.forEach((t) => K(e, t.id, n, r, i));
|
|
1331
1096
|
};
|
|
1332
|
-
function
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
};
|
|
1097
|
+
function q(e, t) {
|
|
1098
|
+
let n = e.getState().rowSelection, r = [], i = {}, a = function(e, t) {
|
|
1099
|
+
return e.map((e) => {
|
|
1100
|
+
var t;
|
|
1101
|
+
let o = J(e, n);
|
|
1102
|
+
if (o && (r.push(e), i[e.id] = e), (t = e.subRows) != null && t.length && (e = {
|
|
1103
|
+
...e,
|
|
1104
|
+
subRows: a(e.subRows)
|
|
1105
|
+
}), o) return e;
|
|
1106
|
+
}).filter(Boolean);
|
|
1107
|
+
};
|
|
1108
|
+
return {
|
|
1109
|
+
rows: a(t.rows),
|
|
1110
|
+
flatRows: r,
|
|
1111
|
+
rowsById: i
|
|
1112
|
+
};
|
|
1349
1113
|
}
|
|
1350
|
-
function
|
|
1351
|
-
|
|
1352
|
-
return (t = o[e.id]) != null ? t : !1;
|
|
1114
|
+
function J(e, t) {
|
|
1115
|
+
return t[e.id] ?? !1;
|
|
1353
1116
|
}
|
|
1354
|
-
function
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1117
|
+
function Y(e, t, n) {
|
|
1118
|
+
var r;
|
|
1119
|
+
if (!((r = e.subRows) != null && r.length)) return !1;
|
|
1120
|
+
let i = !0, a = !1;
|
|
1121
|
+
return e.subRows.forEach((e) => {
|
|
1122
|
+
if (!(a && !i) && (e.getCanSelect() && (J(e, t) ? a = !0 : i = !1), e.subRows && e.subRows.length)) {
|
|
1123
|
+
let n = Y(e, t);
|
|
1124
|
+
n === "all" ? a = !0 : (n === "some" && (a = !0), i = !1);
|
|
1125
|
+
}
|
|
1126
|
+
}), i ? "all" : a ? "some" : !1;
|
|
1364
1127
|
}
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
},
|
|
1369
|
-
function Z(e,
|
|
1370
|
-
|
|
1128
|
+
var X = /([0-9]+)/gm, ce = (e, t, n) => me(Q(e.getValue(n)).toLowerCase(), Q(t.getValue(n)).toLowerCase()), le = (e, t, n) => me(Q(e.getValue(n)), Q(t.getValue(n))), ue = (e, t, n) => Z(Q(e.getValue(n)).toLowerCase(), Q(t.getValue(n)).toLowerCase()), de = (e, t, n) => Z(Q(e.getValue(n)), Q(t.getValue(n))), fe = (e, t, n) => {
|
|
1129
|
+
let r = e.getValue(n), i = t.getValue(n);
|
|
1130
|
+
return r > i ? 1 : r < i ? -1 : 0;
|
|
1131
|
+
}, pe = (e, t, n) => Z(e.getValue(n), t.getValue(n));
|
|
1132
|
+
function Z(e, t) {
|
|
1133
|
+
return e === t ? 0 : e > t ? 1 : -1;
|
|
1371
1134
|
}
|
|
1372
|
-
function
|
|
1373
|
-
|
|
1135
|
+
function Q(e) {
|
|
1136
|
+
return typeof e == "number" ? isNaN(e) || e === Infinity || e === -Infinity ? "" : String(e) : typeof e == "string" ? e : "";
|
|
1374
1137
|
}
|
|
1375
|
-
function
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
return 1;
|
|
1390
|
-
if (u > l)
|
|
1391
|
-
return -1;
|
|
1392
|
-
}
|
|
1393
|
-
return t.length - n.length;
|
|
1138
|
+
function me(e, t) {
|
|
1139
|
+
let n = e.split(X).filter(Boolean), r = t.split(X).filter(Boolean);
|
|
1140
|
+
for (; n.length && r.length;) {
|
|
1141
|
+
let e = n.shift(), t = r.shift(), i = parseInt(e, 10), a = parseInt(t, 10), o = [i, a].sort();
|
|
1142
|
+
if (isNaN(o[0])) {
|
|
1143
|
+
if (e > t) return 1;
|
|
1144
|
+
if (t > e) return -1;
|
|
1145
|
+
continue;
|
|
1146
|
+
}
|
|
1147
|
+
if (isNaN(o[1])) return isNaN(i) ? -1 : 1;
|
|
1148
|
+
if (i > a) return 1;
|
|
1149
|
+
if (a > i) return -1;
|
|
1150
|
+
}
|
|
1151
|
+
return n.length - r.length;
|
|
1394
1152
|
}
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
},
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
}, e.getToggleSortingHandler = () => {
|
|
1479
|
-
const t = e.getCanSort();
|
|
1480
|
-
return (n) => {
|
|
1481
|
-
t && (n.persist == null || n.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? o.options.isMultiSortEvent == null ? void 0 : o.options.isMultiSortEvent(n) : !1));
|
|
1482
|
-
};
|
|
1483
|
-
};
|
|
1484
|
-
},
|
|
1485
|
-
createTable: (e) => {
|
|
1486
|
-
e.setSorting = (o) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(o), e.resetSorting = (o) => {
|
|
1487
|
-
var t, n;
|
|
1488
|
-
e.setSorting(o ? [] : (t = (n = e.initialState) == null ? void 0 : n.sorting) != null ? t : []);
|
|
1489
|
-
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
1490
|
-
}
|
|
1491
|
-
}, Ze = [
|
|
1492
|
-
we,
|
|
1493
|
-
Oe,
|
|
1494
|
-
Ge,
|
|
1495
|
-
He,
|
|
1496
|
-
he,
|
|
1497
|
-
ve,
|
|
1498
|
-
Be,
|
|
1499
|
-
//depends on ColumnFaceting
|
|
1500
|
-
Te,
|
|
1501
|
-
//depends on ColumnFiltering
|
|
1502
|
-
Ye,
|
|
1503
|
-
ye,
|
|
1504
|
-
//depends on RowSorting
|
|
1505
|
-
qe,
|
|
1506
|
-
Ne,
|
|
1507
|
-
ke,
|
|
1508
|
-
je,
|
|
1509
|
-
Ae
|
|
1153
|
+
var $ = {
|
|
1154
|
+
alphanumeric: ce,
|
|
1155
|
+
alphanumericCaseSensitive: le,
|
|
1156
|
+
text: ue,
|
|
1157
|
+
textCaseSensitive: de,
|
|
1158
|
+
datetime: fe,
|
|
1159
|
+
basic: pe
|
|
1160
|
+
}, he = {
|
|
1161
|
+
getInitialState: (e) => ({
|
|
1162
|
+
sorting: [],
|
|
1163
|
+
...e
|
|
1164
|
+
}),
|
|
1165
|
+
getDefaultColumnDef: () => ({
|
|
1166
|
+
sortingFn: "auto",
|
|
1167
|
+
sortUndefined: 1
|
|
1168
|
+
}),
|
|
1169
|
+
getDefaultOptions: (e) => ({
|
|
1170
|
+
onSortingChange: n("sorting", e),
|
|
1171
|
+
isMultiSortEvent: (e) => e.shiftKey
|
|
1172
|
+
}),
|
|
1173
|
+
createColumn: (e, t) => {
|
|
1174
|
+
e.getAutoSortingFn = () => {
|
|
1175
|
+
let n = t.getFilteredRowModel().flatRows.slice(10), r = !1;
|
|
1176
|
+
for (let t of n) {
|
|
1177
|
+
let n = t?.getValue(e.id);
|
|
1178
|
+
if (Object.prototype.toString.call(n) === "[object Date]") return $.datetime;
|
|
1179
|
+
if (typeof n == "string" && (r = !0, n.split(X).length > 1)) return $.alphanumeric;
|
|
1180
|
+
}
|
|
1181
|
+
return r ? $.text : $.basic;
|
|
1182
|
+
}, e.getAutoSortDir = () => typeof t.getFilteredRowModel().flatRows[0]?.getValue(e.id) == "string" ? "asc" : "desc", e.getSortingFn = () => {
|
|
1183
|
+
if (!e) throw Error();
|
|
1184
|
+
return r(e.columnDef.sortingFn) ? e.columnDef.sortingFn : e.columnDef.sortingFn === "auto" ? e.getAutoSortingFn() : t.options.sortingFns?.[e.columnDef.sortingFn] ?? $[e.columnDef.sortingFn];
|
|
1185
|
+
}, e.toggleSorting = (n, r) => {
|
|
1186
|
+
let i = e.getNextSortingOrder(), a = n != null;
|
|
1187
|
+
t.setSorting((o) => {
|
|
1188
|
+
let s = o?.find((t) => t.id === e.id), c = o?.findIndex((t) => t.id === e.id), l = [], u, d = a ? n : i === "desc";
|
|
1189
|
+
return u = o != null && o.length && e.getCanMultiSort() && r ? s ? "toggle" : "add" : o != null && o.length && c !== o.length - 1 ? "replace" : s ? "toggle" : "replace", u === "toggle" && (a || i || (u = "remove")), u === "add" ? (l = [...o, {
|
|
1190
|
+
id: e.id,
|
|
1191
|
+
desc: d
|
|
1192
|
+
}], l.splice(0, l.length - (t.options.maxMultiSortColCount ?? 2 ** 53 - 1))) : l = u === "toggle" ? o.map((t) => t.id === e.id ? {
|
|
1193
|
+
...t,
|
|
1194
|
+
desc: d
|
|
1195
|
+
} : t) : u === "remove" ? o.filter((t) => t.id !== e.id) : [{
|
|
1196
|
+
id: e.id,
|
|
1197
|
+
desc: d
|
|
1198
|
+
}], l;
|
|
1199
|
+
});
|
|
1200
|
+
}, e.getFirstSortDir = () => e.columnDef.sortDescFirst ?? t.options.sortDescFirst ?? e.getAutoSortDir() === "desc" ? "desc" : "asc", e.getNextSortingOrder = (n) => {
|
|
1201
|
+
let r = e.getFirstSortDir(), i = e.getIsSorted();
|
|
1202
|
+
return i ? i !== r && (t.options.enableSortingRemoval ?? !0) && (!n || (t.options.enableMultiRemove ?? !0)) ? !1 : i === "desc" ? "asc" : "desc" : r;
|
|
1203
|
+
}, e.getCanSort = () => (e.columnDef.enableSorting ?? !0) && (t.options.enableSorting ?? !0) && !!e.accessorFn, e.getCanMultiSort = () => e.columnDef.enableMultiSort ?? t.options.enableMultiSort ?? !!e.accessorFn, e.getIsSorted = () => {
|
|
1204
|
+
let n = t.getState().sorting?.find((t) => t.id === e.id);
|
|
1205
|
+
return n ? n.desc ? "desc" : "asc" : !1;
|
|
1206
|
+
}, e.getSortIndex = () => t.getState().sorting?.findIndex((t) => t.id === e.id) ?? -1, e.clearSorting = () => {
|
|
1207
|
+
t.setSorting((t) => t != null && t.length ? t.filter((t) => t.id !== e.id) : []);
|
|
1208
|
+
}, e.getToggleSortingHandler = () => {
|
|
1209
|
+
let n = e.getCanSort();
|
|
1210
|
+
return (r) => {
|
|
1211
|
+
n && (r.persist == null || r.persist(), e.toggleSorting == null || e.toggleSorting(void 0, e.getCanMultiSort() ? t.options.isMultiSortEvent == null ? void 0 : t.options.isMultiSortEvent(r) : !1));
|
|
1212
|
+
};
|
|
1213
|
+
};
|
|
1214
|
+
},
|
|
1215
|
+
createTable: (e) => {
|
|
1216
|
+
e.setSorting = (t) => e.options.onSortingChange == null ? void 0 : e.options.onSortingChange(t), e.resetSorting = (t) => {
|
|
1217
|
+
e.setSorting(t ? [] : e.initialState?.sorting ?? []);
|
|
1218
|
+
}, e.getPreSortedRowModel = () => e.getGroupedRowModel(), e.getSortedRowModel = () => (!e._getSortedRowModel && e.options.getSortedRowModel && (e._getSortedRowModel = e.options.getSortedRowModel(e)), e.options.manualSorting || !e._getSortedRowModel ? e.getPreSortedRowModel() : e._getSortedRowModel());
|
|
1219
|
+
}
|
|
1220
|
+
}, ge = [
|
|
1221
|
+
f,
|
|
1222
|
+
P,
|
|
1223
|
+
O,
|
|
1224
|
+
ie,
|
|
1225
|
+
h,
|
|
1226
|
+
C,
|
|
1227
|
+
I,
|
|
1228
|
+
L,
|
|
1229
|
+
he,
|
|
1230
|
+
E,
|
|
1231
|
+
R,
|
|
1232
|
+
H,
|
|
1233
|
+
W,
|
|
1234
|
+
G,
|
|
1235
|
+
oe
|
|
1510
1236
|
];
|
|
1511
|
-
function
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
_getColumnDefs: () => r.options.columns,
|
|
1591
|
-
getAllColumns: S(() => [r._getColumnDefs()], (d) => {
|
|
1592
|
-
const s = function(c, p, R) {
|
|
1593
|
-
return R === void 0 && (R = 0), c.map((w) => {
|
|
1594
|
-
const h = Re(r, w, R, p), v = w;
|
|
1595
|
-
return h.columns = v.columns ? s(v.columns, h, R + 1) : [], h;
|
|
1596
|
-
});
|
|
1597
|
-
};
|
|
1598
|
-
return s(d);
|
|
1599
|
-
}, C(e, "debugColumns", "getAllColumns")),
|
|
1600
|
-
getAllFlatColumns: S(() => [r.getAllColumns()], (d) => d.flatMap((s) => s.getFlatColumns()), C(e, "debugColumns", "getAllFlatColumns")),
|
|
1601
|
-
_getAllFlatColumnsById: S(() => [r.getAllFlatColumns()], (d) => d.reduce((s, c) => (s[c.id] = c, s), {}), C(e, "debugColumns", "getAllFlatColumnsById")),
|
|
1602
|
-
getAllLeafColumns: S(() => [r.getAllColumns(), r._getOrderColumnsFn()], (d, s) => {
|
|
1603
|
-
let c = d.flatMap((p) => p.getLeafColumns());
|
|
1604
|
-
return s(c);
|
|
1605
|
-
}, C(e, "debugColumns", "getAllLeafColumns")),
|
|
1606
|
-
getColumn: (d) => {
|
|
1607
|
-
const s = r._getAllFlatColumnsById()[d];
|
|
1608
|
-
return process.env.NODE_ENV !== "production" && !s && console.error(`[Table] Column with id '${d}' does not exist.`), s;
|
|
1609
|
-
}
|
|
1610
|
-
};
|
|
1611
|
-
Object.assign(r, m);
|
|
1612
|
-
for (let d = 0; d < r._features.length; d++) {
|
|
1613
|
-
const s = r._features[d];
|
|
1614
|
-
s == null || s.createTable == null || s.createTable(r);
|
|
1615
|
-
}
|
|
1616
|
-
return r;
|
|
1237
|
+
function _e(e) {
|
|
1238
|
+
process.env.NODE_ENV !== "production" && (e.debugAll || e.debugTable) && console.info("Creating Table Instance...");
|
|
1239
|
+
let n = [...ge, ...e._features ?? []], r = { _features: n }, i = r._features.reduce((e, t) => Object.assign(e, t.getDefaultOptions == null ? void 0 : t.getDefaultOptions(r)), {}), a = (e) => r.options.mergeOptions ? r.options.mergeOptions(i, e) : {
|
|
1240
|
+
...i,
|
|
1241
|
+
...e
|
|
1242
|
+
}, c = { ...e.initialState ?? {} };
|
|
1243
|
+
r._features.forEach((e) => {
|
|
1244
|
+
c = (e.getInitialState == null ? void 0 : e.getInitialState(c)) ?? c;
|
|
1245
|
+
});
|
|
1246
|
+
let u = [], d = !1, f = {
|
|
1247
|
+
_features: n,
|
|
1248
|
+
options: {
|
|
1249
|
+
...i,
|
|
1250
|
+
...e
|
|
1251
|
+
},
|
|
1252
|
+
initialState: c,
|
|
1253
|
+
_queue: (e) => {
|
|
1254
|
+
u.push(e), d || (d = !0, Promise.resolve().then(() => {
|
|
1255
|
+
for (; u.length;) u.shift()();
|
|
1256
|
+
d = !1;
|
|
1257
|
+
}).catch((e) => setTimeout(() => {
|
|
1258
|
+
throw e;
|
|
1259
|
+
})));
|
|
1260
|
+
},
|
|
1261
|
+
reset: () => {
|
|
1262
|
+
r.setState(r.initialState);
|
|
1263
|
+
},
|
|
1264
|
+
setOptions: (e) => {
|
|
1265
|
+
let n = t(e, r.options);
|
|
1266
|
+
r.options = a(n);
|
|
1267
|
+
},
|
|
1268
|
+
getState: () => r.options.state,
|
|
1269
|
+
setState: (e) => {
|
|
1270
|
+
r.options.onStateChange == null || r.options.onStateChange(e);
|
|
1271
|
+
},
|
|
1272
|
+
_getRowId: (e, t, n) => (r.options.getRowId == null ? void 0 : r.options.getRowId(e, t, n)) ?? `${n ? [n.id, t].join(".") : t}`,
|
|
1273
|
+
getCoreRowModel: () => (r._getCoreRowModel ||= r.options.getCoreRowModel(r), r._getCoreRowModel()),
|
|
1274
|
+
getRowModel: () => r.getPaginationRowModel(),
|
|
1275
|
+
getRow: (e, t) => {
|
|
1276
|
+
let n = (t ? r.getPrePaginationRowModel() : r.getRowModel()).rowsById[e];
|
|
1277
|
+
if (!n && (n = r.getCoreRowModel().rowsById[e], !n)) throw process.env.NODE_ENV === "production" ? Error() : Error(`getRow could not find row with ID: ${e}`);
|
|
1278
|
+
return n;
|
|
1279
|
+
},
|
|
1280
|
+
_getDefaultColumnDef: o(() => [r.options.defaultColumn], (e) => (e ??= {}, {
|
|
1281
|
+
header: (e) => {
|
|
1282
|
+
let t = e.header.column.columnDef;
|
|
1283
|
+
return t.accessorKey ? t.accessorKey : t.accessorFn ? t.id : null;
|
|
1284
|
+
},
|
|
1285
|
+
cell: (e) => {
|
|
1286
|
+
var t;
|
|
1287
|
+
return ((t = e.renderValue()) == null || t.toString == null ? void 0 : t.toString()) ?? null;
|
|
1288
|
+
},
|
|
1289
|
+
...r._features.reduce((e, t) => Object.assign(e, t.getDefaultColumnDef == null ? void 0 : t.getDefaultColumnDef()), {}),
|
|
1290
|
+
...e
|
|
1291
|
+
}), s(e, "debugColumns", "_getDefaultColumnDef")),
|
|
1292
|
+
_getColumnDefs: () => r.options.columns,
|
|
1293
|
+
getAllColumns: o(() => [r._getColumnDefs()], (e) => {
|
|
1294
|
+
let t = function(e, n, i) {
|
|
1295
|
+
return i === void 0 && (i = 0), e.map((e) => {
|
|
1296
|
+
let a = l(r, e, i, n), o = e;
|
|
1297
|
+
return a.columns = o.columns ? t(o.columns, a, i + 1) : [], a;
|
|
1298
|
+
});
|
|
1299
|
+
};
|
|
1300
|
+
return t(e);
|
|
1301
|
+
}, s(e, "debugColumns", "getAllColumns")),
|
|
1302
|
+
getAllFlatColumns: o(() => [r.getAllColumns()], (e) => e.flatMap((e) => e.getFlatColumns()), s(e, "debugColumns", "getAllFlatColumns")),
|
|
1303
|
+
_getAllFlatColumnsById: o(() => [r.getAllFlatColumns()], (e) => e.reduce((e, t) => (e[t.id] = t, e), {}), s(e, "debugColumns", "getAllFlatColumnsById")),
|
|
1304
|
+
getAllLeafColumns: o(() => [r.getAllColumns(), r._getOrderColumnsFn()], (e, t) => t(e.flatMap((e) => e.getLeafColumns())), s(e, "debugColumns", "getAllLeafColumns")),
|
|
1305
|
+
getColumn: (e) => {
|
|
1306
|
+
let t = r._getAllFlatColumnsById()[e];
|
|
1307
|
+
return process.env.NODE_ENV !== "production" && !t && console.error(`[Table] Column with id '${e}' does not exist.`), t;
|
|
1308
|
+
}
|
|
1309
|
+
};
|
|
1310
|
+
Object.assign(r, f);
|
|
1311
|
+
for (let e = 0; e < r._features.length; e++) {
|
|
1312
|
+
let t = r._features[e];
|
|
1313
|
+
t == null || t.createTable == null || t.createTable(r);
|
|
1314
|
+
}
|
|
1315
|
+
return r;
|
|
1617
1316
|
}
|
|
1618
|
-
function
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1317
|
+
function ve() {
|
|
1318
|
+
return (e) => o(() => [e.options.data], (t) => {
|
|
1319
|
+
let n = {
|
|
1320
|
+
rows: [],
|
|
1321
|
+
flatRows: [],
|
|
1322
|
+
rowsById: {}
|
|
1323
|
+
}, r = function(t, i, a) {
|
|
1324
|
+
i === void 0 && (i = 0);
|
|
1325
|
+
let o = [];
|
|
1326
|
+
for (let c = 0; c < t.length; c++) {
|
|
1327
|
+
let l = m(e, e._getRowId(t[c], c, a), t[c], c, i, void 0, a?.id);
|
|
1328
|
+
if (n.flatRows.push(l), n.rowsById[l.id] = l, o.push(l), e.options.getSubRows) {
|
|
1329
|
+
var s;
|
|
1330
|
+
l.originalSubRows = e.options.getSubRows(t[c], c), (s = l.originalSubRows) != null && s.length && (l.subRows = r(l.originalSubRows, i + 1, l));
|
|
1331
|
+
}
|
|
1332
|
+
}
|
|
1333
|
+
return o;
|
|
1334
|
+
};
|
|
1335
|
+
return n.rows = r(t), n;
|
|
1336
|
+
}, s(e.options, "debugTable", "getRowModel", () => e._autoResetPageIndex()));
|
|
1638
1337
|
}
|
|
1639
|
-
function
|
|
1640
|
-
|
|
1338
|
+
function ye() {
|
|
1339
|
+
return (e) => o(() => [
|
|
1340
|
+
e.getState().expanded,
|
|
1341
|
+
e.getPreExpandedRowModel(),
|
|
1342
|
+
e.options.paginateExpandedRows
|
|
1343
|
+
], (e, t, n) => !t.rows.length || e !== !0 && !Object.keys(e ?? {}).length || !n ? t : be(t), s(e.options, "debugTable", "getExpandedRowModel"));
|
|
1641
1344
|
}
|
|
1642
1345
|
function be(e) {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1346
|
+
let t = [], n = (e) => {
|
|
1347
|
+
var r;
|
|
1348
|
+
t.push(e), (r = e.subRows) != null && r.length && e.getIsExpanded() && e.subRows.forEach(n);
|
|
1349
|
+
};
|
|
1350
|
+
return e.rows.forEach(n), {
|
|
1351
|
+
rows: t,
|
|
1352
|
+
flatRows: e.flatRows,
|
|
1353
|
+
rowsById: e.rowsById
|
|
1354
|
+
};
|
|
1652
1355
|
}
|
|
1653
|
-
function
|
|
1654
|
-
|
|
1356
|
+
function xe(e, t, n) {
|
|
1357
|
+
return n.options.filterFromLeafRows ? Se(e, t, n) : Ce(e, t, n);
|
|
1655
1358
|
}
|
|
1656
|
-
function
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
flatRows: r,
|
|
1682
|
-
rowsById: i
|
|
1683
|
-
};
|
|
1359
|
+
function Se(e, t, n) {
|
|
1360
|
+
let r = [], i = {}, a = n.options.maxLeafRowFilterDepth ?? 100, o = function(e, s) {
|
|
1361
|
+
s === void 0 && (s = 0);
|
|
1362
|
+
let c = [];
|
|
1363
|
+
for (let u = 0; u < e.length; u++) {
|
|
1364
|
+
var l;
|
|
1365
|
+
let d = e[u], f = m(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
|
|
1366
|
+
if (f.columnFilters = d.columnFilters, (l = d.subRows) != null && l.length && s < a) {
|
|
1367
|
+
if (f.subRows = o(d.subRows, s + 1), d = f, t(d) && !f.subRows.length) {
|
|
1368
|
+
c.push(d), i[d.id] = d, r.push(d);
|
|
1369
|
+
continue;
|
|
1370
|
+
}
|
|
1371
|
+
if (t(d) || f.subRows.length) {
|
|
1372
|
+
c.push(d), i[d.id] = d, r.push(d);
|
|
1373
|
+
continue;
|
|
1374
|
+
}
|
|
1375
|
+
} else d = f, t(d) && (c.push(d), i[d.id] = d, r.push(d));
|
|
1376
|
+
}
|
|
1377
|
+
return c;
|
|
1378
|
+
};
|
|
1379
|
+
return {
|
|
1380
|
+
rows: o(e),
|
|
1381
|
+
flatRows: r,
|
|
1382
|
+
rowsById: i
|
|
1383
|
+
};
|
|
1684
1384
|
}
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
};
|
|
1385
|
+
function Ce(e, t, n) {
|
|
1386
|
+
let r = [], i = {}, a = n.options.maxLeafRowFilterDepth ?? 100, o = function(e, s) {
|
|
1387
|
+
s === void 0 && (s = 0);
|
|
1388
|
+
let c = [];
|
|
1389
|
+
for (let u = 0; u < e.length; u++) {
|
|
1390
|
+
let d = e[u];
|
|
1391
|
+
if (t(d)) {
|
|
1392
|
+
var l;
|
|
1393
|
+
if ((l = d.subRows) != null && l.length && s < a) {
|
|
1394
|
+
let e = m(n, d.id, d.original, d.index, d.depth, void 0, d.parentId);
|
|
1395
|
+
e.subRows = o(d.subRows, s + 1), d = e;
|
|
1396
|
+
}
|
|
1397
|
+
c.push(d), r.push(d), i[d.id] = d;
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
return c;
|
|
1401
|
+
};
|
|
1402
|
+
return {
|
|
1403
|
+
rows: o(e),
|
|
1404
|
+
flatRows: r,
|
|
1405
|
+
rowsById: i
|
|
1406
|
+
};
|
|
1708
1407
|
}
|
|
1709
|
-
function
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
return !0;
|
|
1772
|
-
};
|
|
1773
|
-
return et(o.rows, m, e);
|
|
1774
|
-
}, C(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
1408
|
+
function we() {
|
|
1409
|
+
return (e) => o(() => [
|
|
1410
|
+
e.getPreFilteredRowModel(),
|
|
1411
|
+
e.getState().columnFilters,
|
|
1412
|
+
e.getState().globalFilter
|
|
1413
|
+
], (t, n, r) => {
|
|
1414
|
+
if (!t.rows.length || !(n != null && n.length) && !r) {
|
|
1415
|
+
for (let e = 0; e < t.flatRows.length; e++) t.flatRows[e].columnFilters = {}, t.flatRows[e].columnFiltersMeta = {};
|
|
1416
|
+
return t;
|
|
1417
|
+
}
|
|
1418
|
+
let i = [], a = [];
|
|
1419
|
+
(n ?? []).forEach((t) => {
|
|
1420
|
+
let n = e.getColumn(t.id);
|
|
1421
|
+
if (!n) return;
|
|
1422
|
+
let r = n.getFilterFn();
|
|
1423
|
+
if (!r) {
|
|
1424
|
+
process.env.NODE_ENV !== "production" && console.warn(`Could not find a valid 'column.filterFn' for column with the ID: ${n.id}.`);
|
|
1425
|
+
return;
|
|
1426
|
+
}
|
|
1427
|
+
i.push({
|
|
1428
|
+
id: t.id,
|
|
1429
|
+
filterFn: r,
|
|
1430
|
+
resolvedValue: (r.resolveFilterValue == null ? void 0 : r.resolveFilterValue(t.value)) ?? t.value
|
|
1431
|
+
});
|
|
1432
|
+
});
|
|
1433
|
+
let o = (n ?? []).map((e) => e.id), s = e.getGlobalFilterFn(), c = e.getAllLeafColumns().filter((e) => e.getCanGlobalFilter());
|
|
1434
|
+
r && s && c.length && (o.push("__global__"), c.forEach((e) => {
|
|
1435
|
+
a.push({
|
|
1436
|
+
id: e.id,
|
|
1437
|
+
filterFn: s,
|
|
1438
|
+
resolvedValue: (s.resolveFilterValue == null ? void 0 : s.resolveFilterValue(r)) ?? r
|
|
1439
|
+
});
|
|
1440
|
+
}));
|
|
1441
|
+
let l, u;
|
|
1442
|
+
for (let e = 0; e < t.flatRows.length; e++) {
|
|
1443
|
+
let n = t.flatRows[e];
|
|
1444
|
+
if (n.columnFilters = {}, i.length) for (let e = 0; e < i.length; e++) {
|
|
1445
|
+
l = i[e];
|
|
1446
|
+
let t = l.id;
|
|
1447
|
+
n.columnFilters[t] = l.filterFn(n, t, l.resolvedValue, (e) => {
|
|
1448
|
+
n.columnFiltersMeta[t] = e;
|
|
1449
|
+
});
|
|
1450
|
+
}
|
|
1451
|
+
if (a.length) {
|
|
1452
|
+
for (let e = 0; e < a.length; e++) {
|
|
1453
|
+
u = a[e];
|
|
1454
|
+
let t = u.id;
|
|
1455
|
+
if (u.filterFn(n, t, u.resolvedValue, (e) => {
|
|
1456
|
+
n.columnFiltersMeta[t] = e;
|
|
1457
|
+
})) {
|
|
1458
|
+
n.columnFilters.__global__ = !0;
|
|
1459
|
+
break;
|
|
1460
|
+
}
|
|
1461
|
+
}
|
|
1462
|
+
n.columnFilters.__global__ !== !0 && (n.columnFilters.__global__ = !1);
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
return xe(t.rows, (e) => {
|
|
1466
|
+
for (let t = 0; t < o.length; t++) if (e.columnFilters[o[t]] === !1) return !1;
|
|
1467
|
+
return !0;
|
|
1468
|
+
}, e);
|
|
1469
|
+
}, s(e.options, "debugTable", "getFilteredRowModel", () => e._autoResetPageIndex()));
|
|
1775
1470
|
}
|
|
1776
|
-
function
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
r.push(f), (m = f.subRows) != null && m.length && (f.subRows = u(f.subRows));
|
|
1816
|
-
}), a;
|
|
1817
|
-
};
|
|
1818
|
-
return {
|
|
1819
|
-
rows: u(t.rows),
|
|
1820
|
-
flatRows: r,
|
|
1821
|
-
rowsById: t.rowsById
|
|
1822
|
-
};
|
|
1823
|
-
}, C(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1471
|
+
function Te() {
|
|
1472
|
+
return (e) => o(() => [e.getState().sorting, e.getPreSortedRowModel()], (t, n) => {
|
|
1473
|
+
if (!n.rows.length || !(t != null && t.length)) return n;
|
|
1474
|
+
let r = e.getState().sorting, i = [], a = r.filter((t) => e.getColumn(t.id)?.getCanSort()), o = {};
|
|
1475
|
+
a.forEach((t) => {
|
|
1476
|
+
let n = e.getColumn(t.id);
|
|
1477
|
+
n && (o[t.id] = {
|
|
1478
|
+
sortUndefined: n.columnDef.sortUndefined,
|
|
1479
|
+
invertSorting: n.columnDef.invertSorting,
|
|
1480
|
+
sortingFn: n.getSortingFn()
|
|
1481
|
+
});
|
|
1482
|
+
});
|
|
1483
|
+
let s = (e) => {
|
|
1484
|
+
let t = e.map((e) => ({ ...e }));
|
|
1485
|
+
return t.sort((e, t) => {
|
|
1486
|
+
for (let n = 0; n < a.length; n += 1) {
|
|
1487
|
+
let r = a[n], i = o[r.id], s = i.sortUndefined, c = r?.desc ?? !1, l = 0;
|
|
1488
|
+
if (s) {
|
|
1489
|
+
let n = e.getValue(r.id), i = t.getValue(r.id), a = n === void 0, o = i === void 0;
|
|
1490
|
+
if (a || o) {
|
|
1491
|
+
if (s === "first") return a ? -1 : 1;
|
|
1492
|
+
if (s === "last") return a ? 1 : -1;
|
|
1493
|
+
l = a && o ? 0 : a ? s : -s;
|
|
1494
|
+
}
|
|
1495
|
+
}
|
|
1496
|
+
if (l === 0 && (l = i.sortingFn(e, t, r.id)), l !== 0) return c && (l *= -1), i.invertSorting && (l *= -1), l;
|
|
1497
|
+
}
|
|
1498
|
+
return e.index - t.index;
|
|
1499
|
+
}), t.forEach((e) => {
|
|
1500
|
+
var t;
|
|
1501
|
+
i.push(e), (t = e.subRows) != null && t.length && (e.subRows = s(e.subRows));
|
|
1502
|
+
}), t;
|
|
1503
|
+
};
|
|
1504
|
+
return {
|
|
1505
|
+
rows: s(n.rows),
|
|
1506
|
+
flatRows: i,
|
|
1507
|
+
rowsById: n.rowsById
|
|
1508
|
+
};
|
|
1509
|
+
}, s(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
1824
1510
|
}
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
ve as ColumnFiltering,
|
|
1828
|
-
ye as ColumnGrouping,
|
|
1829
|
-
Ge as ColumnOrdering,
|
|
1830
|
-
He as ColumnPinning,
|
|
1831
|
-
Ae as ColumnSizing,
|
|
1832
|
-
Oe as ColumnVisibility,
|
|
1833
|
-
Be as GlobalFaceting,
|
|
1834
|
-
Te as GlobalFiltering,
|
|
1835
|
-
we as Headers,
|
|
1836
|
-
qe as RowExpanding,
|
|
1837
|
-
Ne as RowPagination,
|
|
1838
|
-
ke as RowPinning,
|
|
1839
|
-
je as RowSelection,
|
|
1840
|
-
Ye as RowSorting,
|
|
1841
|
-
D as _getVisibleLeafColumns,
|
|
1842
|
-
z as aggregationFns,
|
|
1843
|
-
G as buildHeaderGroups,
|
|
1844
|
-
Ce as createCell,
|
|
1845
|
-
Re as createColumn,
|
|
1846
|
-
ot as createColumnHelper,
|
|
1847
|
-
Q as createRow,
|
|
1848
|
-
rt as createTable,
|
|
1849
|
-
H as defaultColumnSizing,
|
|
1850
|
-
be as expandRows,
|
|
1851
|
-
P as filterFns,
|
|
1852
|
-
Se as flattenBy,
|
|
1853
|
-
I as functionalUpdate,
|
|
1854
|
-
it as getCoreRowModel,
|
|
1855
|
-
lt as getExpandedRowModel,
|
|
1856
|
-
st as getFilteredRowModel,
|
|
1857
|
-
C as getMemoOptions,
|
|
1858
|
-
ut as getSortedRowModel,
|
|
1859
|
-
A as isFunction,
|
|
1860
|
-
me as isNumberArray,
|
|
1861
|
-
Y as isRowSelected,
|
|
1862
|
-
K as isSubRowSelected,
|
|
1863
|
-
$ as makeStateUpdater,
|
|
1864
|
-
S as memo,
|
|
1865
|
-
De as orderColumns,
|
|
1866
|
-
ze as passiveEventSupported,
|
|
1867
|
-
J as reSplitAlphaNumeric,
|
|
1868
|
-
k as selectRowsFn,
|
|
1869
|
-
oe as shouldAutoRemoveFilter,
|
|
1870
|
-
y as sortingFns
|
|
1871
|
-
};
|
|
1511
|
+
//#endregion
|
|
1512
|
+
export { h as ColumnFaceting, C as ColumnFiltering, E as ColumnGrouping, O as ColumnOrdering, ie as ColumnPinning, oe as ColumnSizing, P as ColumnVisibility, I as GlobalFaceting, L as GlobalFiltering, f as Headers, R as RowExpanding, H as RowPagination, W as RowPinning, G as RowSelection, he as RowSorting, F as _getVisibleLeafColumns, T as aggregationFns, p as buildHeaderGroups, c as createCell, l as createColumn, e as createColumnHelper, m as createRow, _e as createTable, A as defaultColumnSizing, be as expandRows, x as filterFns, a as flattenBy, t as functionalUpdate, ve as getCoreRowModel, ye as getExpandedRowModel, we as getFilteredRowModel, s as getMemoOptions, Te as getSortedRowModel, r as isFunction, i as isNumberArray, J as isRowSelected, Y as isSubRowSelected, n as makeStateUpdater, o as memo, D as orderColumns, se as passiveEventSupported, X as reSplitAlphaNumeric, q as selectRowsFn, w as shouldAutoRemoveFilter, $ as sortingFns };
|