@caspeco/casper-ui-library 10.4.0 → 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/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.js +5 -5
- 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 +396 -802
- 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,770 +1,635 @@
|
|
|
1
|
-
import { createLazyMeasurementsView as
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
},
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
|
|
167
|
-
|
|
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
|
-
|
|
252
|
-
|
|
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
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
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
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
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
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
stableFrames: 0
|
|
590
|
-
}, this._scrollToOffset(i, { adjustments: void 0, behavior: s }), this.scheduleScrollReconcile();
|
|
591
|
-
}, this.scrollToIndex = (t, {
|
|
592
|
-
align: e = "auto",
|
|
593
|
-
behavior: s = "auto"
|
|
594
|
-
} = {}) => {
|
|
595
|
-
t = Math.max(0, Math.min(t, this.options.count - 1));
|
|
596
|
-
const i = this.getOffsetForIndex(t, e);
|
|
597
|
-
if (!i)
|
|
598
|
-
return;
|
|
599
|
-
const [n, o] = i, l = this.now();
|
|
600
|
-
this.scrollState = {
|
|
601
|
-
index: t,
|
|
602
|
-
align: o,
|
|
603
|
-
behavior: s,
|
|
604
|
-
startedAt: l,
|
|
605
|
-
lastTargetOffset: n,
|
|
606
|
-
stableFrames: 0
|
|
607
|
-
}, this._scrollToOffset(n, { adjustments: void 0, behavior: s }), this.scheduleScrollReconcile();
|
|
608
|
-
}, this.scrollBy = (t, { behavior: e = "auto" } = {}) => {
|
|
609
|
-
const s = this.getScrollOffset() + t, i = this.now();
|
|
610
|
-
this.scrollState = {
|
|
611
|
-
index: null,
|
|
612
|
-
align: "start",
|
|
613
|
-
behavior: e,
|
|
614
|
-
startedAt: i,
|
|
615
|
-
lastTargetOffset: s,
|
|
616
|
-
stableFrames: 0
|
|
617
|
-
}, this._scrollToOffset(s, { adjustments: void 0, behavior: e }), this.scheduleScrollReconcile();
|
|
618
|
-
}, this.scrollToEnd = ({ behavior: t = "auto" } = {}) => {
|
|
619
|
-
if (this.options.count > 0) {
|
|
620
|
-
this.scrollToIndex(this.options.count - 1, {
|
|
621
|
-
align: "end",
|
|
622
|
-
behavior: t
|
|
623
|
-
});
|
|
624
|
-
return;
|
|
625
|
-
}
|
|
626
|
-
this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), {
|
|
627
|
-
behavior: t
|
|
628
|
-
});
|
|
629
|
-
}, this.getTotalSize = () => {
|
|
630
|
-
var t;
|
|
631
|
-
const e = this.getMeasurements();
|
|
632
|
-
let s;
|
|
633
|
-
if (e.length === 0)
|
|
634
|
-
s = this.options.paddingStart;
|
|
635
|
-
else if (this.options.lanes === 1) {
|
|
636
|
-
const i = e.length - 1, n = this._flatMeasurements;
|
|
637
|
-
n != null ? s = n[i * 2] + n[i * 2 + 1] : s = ((t = e[i]) == null ? void 0 : t.end) ?? 0;
|
|
638
|
-
} else {
|
|
639
|
-
const i = Array(this.options.lanes).fill(null);
|
|
640
|
-
let n = e.length - 1;
|
|
641
|
-
for (; n >= 0 && i.some((o) => o === null); ) {
|
|
642
|
-
const o = e[n];
|
|
643
|
-
i[o.lane] === null && (i[o.lane] = o.end), n--;
|
|
644
|
-
}
|
|
645
|
-
s = Math.max(...i.filter((o) => o !== null));
|
|
646
|
-
}
|
|
647
|
-
return Math.max(
|
|
648
|
-
s - this.options.scrollMargin + this.options.paddingEnd,
|
|
649
|
-
0
|
|
650
|
-
);
|
|
651
|
-
}, this.takeSnapshot = () => {
|
|
652
|
-
const t = [];
|
|
653
|
-
if (this.itemSizeCache.size === 0) return t;
|
|
654
|
-
const e = this.getMeasurements();
|
|
655
|
-
for (const s of e)
|
|
656
|
-
s && this.itemSizeCache.has(s.key) && t.push({
|
|
657
|
-
index: s.index,
|
|
658
|
-
key: s.key,
|
|
659
|
-
start: s.start,
|
|
660
|
-
size: s.size,
|
|
661
|
-
end: s.end,
|
|
662
|
-
lane: s.lane
|
|
663
|
-
});
|
|
664
|
-
return t;
|
|
665
|
-
}, this._scrollToOffset = (t, {
|
|
666
|
-
adjustments: e,
|
|
667
|
-
behavior: s
|
|
668
|
-
}) => {
|
|
669
|
-
this._intendedScrollOffset = t + (e ?? 0), this.options.scrollToFn(t, { behavior: s, adjustments: e }, this);
|
|
670
|
-
}, this.measure = () => {
|
|
671
|
-
this.pendingMin = null, this.itemSizeCache.clear(), this.laneAssignments.clear(), this.itemSizeCacheVersion++, this.notify(!1);
|
|
672
|
-
}, this.setOptions(a);
|
|
673
|
-
}
|
|
674
|
-
applyScrollAdjustment(a, t) {
|
|
675
|
-
a !== 0 && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", a), y() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? this._iosDeferredAdjustment += a : this._scrollToOffset(this.getScrollOffset(), {
|
|
676
|
-
adjustments: this.scrollAdjustments += a,
|
|
677
|
-
behavior: t
|
|
678
|
-
}));
|
|
679
|
-
}
|
|
680
|
-
scheduleScrollReconcile() {
|
|
681
|
-
if (!this.targetWindow) {
|
|
682
|
-
this.scrollState = null;
|
|
683
|
-
return;
|
|
684
|
-
}
|
|
685
|
-
this.rafId == null && (this.rafId = this.targetWindow.requestAnimationFrame(() => {
|
|
686
|
-
this.rafId = null, this.reconcileScroll();
|
|
687
|
-
}));
|
|
688
|
-
}
|
|
689
|
-
reconcileScroll() {
|
|
690
|
-
if (!this.scrollState || !this.scrollElement) return;
|
|
691
|
-
if (this.now() - this.scrollState.startedAt > 5e3) {
|
|
692
|
-
this.scrollState = null;
|
|
693
|
-
return;
|
|
694
|
-
}
|
|
695
|
-
const e = this.scrollState.index != null ? this.getOffsetForIndex(this.scrollState.index, this.scrollState.align) : void 0, s = e ? e[0] : this.scrollState.lastTargetOffset, i = 1, n = s !== this.scrollState.lastTargetOffset;
|
|
696
|
-
if (!n && R(s, this.getScrollOffset())) {
|
|
697
|
-
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= i) {
|
|
698
|
-
this.getScrollOffset() !== s && this._scrollToOffset(s, {
|
|
699
|
-
adjustments: void 0,
|
|
700
|
-
behavior: "auto"
|
|
701
|
-
}), this.scrollState = null;
|
|
702
|
-
return;
|
|
703
|
-
}
|
|
704
|
-
} else if (this.scrollState.stableFrames = 0, n) {
|
|
705
|
-
const o = this.getSize() || 600, l = Math.abs(s - this.getScrollOffset()), u = this.scrollState.behavior === "smooth" && l > o;
|
|
706
|
-
this.scrollState.lastTargetOffset = s, u || (this.scrollState.behavior = "auto"), this._scrollToOffset(s, {
|
|
707
|
-
adjustments: void 0,
|
|
708
|
-
behavior: u ? "smooth" : "auto"
|
|
709
|
-
});
|
|
710
|
-
}
|
|
711
|
-
this.scheduleScrollReconcile();
|
|
712
|
-
}
|
|
713
|
-
}
|
|
714
|
-
const A = (r, a, t, e) => {
|
|
715
|
-
for (; r <= a; ) {
|
|
716
|
-
const s = (r + a) / 2 | 0, i = t(s);
|
|
717
|
-
if (i < e)
|
|
718
|
-
r = s + 1;
|
|
719
|
-
else if (i > e)
|
|
720
|
-
a = s - 1;
|
|
721
|
-
else
|
|
722
|
-
return s;
|
|
723
|
-
}
|
|
724
|
-
return r > 0 ? r - 1 : 0;
|
|
1
|
+
import { createLazyMeasurementsView as e } from "./lazy-measurements.js";
|
|
2
|
+
import { approxEqual as t, debounce as n, memo as r, notUndefined as i } from "./utils.js";
|
|
3
|
+
//#region ../../node_modules/@tanstack/virtual-core/dist/esm/index.js
|
|
4
|
+
var a, o = () => {
|
|
5
|
+
if (a !== void 0) return a;
|
|
6
|
+
if (typeof navigator > "u") return a = !1;
|
|
7
|
+
if (/iP(hone|od|ad)/.test(navigator.userAgent)) return a = !0;
|
|
8
|
+
let e = navigator.maxTouchPoints;
|
|
9
|
+
return a = navigator.platform === "MacIntel" && e !== void 0 && e > 0;
|
|
10
|
+
}, s = (e) => {
|
|
11
|
+
let { offsetWidth: t, offsetHeight: n } = e;
|
|
12
|
+
return {
|
|
13
|
+
width: t,
|
|
14
|
+
height: n
|
|
15
|
+
};
|
|
16
|
+
}, c = (e) => e, l = (e) => {
|
|
17
|
+
let t = Math.max(e.startIndex - e.overscan, 0), n = Math.min(e.endIndex + e.overscan, e.count - 1) - t + 1, r = Array(n);
|
|
18
|
+
for (let e = 0; e < n; e++) r[e] = t + e;
|
|
19
|
+
return r;
|
|
20
|
+
}, u = (e, t) => {
|
|
21
|
+
let n = e.scrollElement;
|
|
22
|
+
if (!n) return;
|
|
23
|
+
let r = e.targetWindow;
|
|
24
|
+
if (!r) return;
|
|
25
|
+
let i = (e) => {
|
|
26
|
+
let { width: n, height: r } = e;
|
|
27
|
+
t({
|
|
28
|
+
width: Math.round(n),
|
|
29
|
+
height: Math.round(r)
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
if (i(s(n)), !r.ResizeObserver) return () => {};
|
|
33
|
+
let a = new r.ResizeObserver((t) => {
|
|
34
|
+
let r = () => {
|
|
35
|
+
let e = t[0];
|
|
36
|
+
if (e?.borderBoxSize) {
|
|
37
|
+
let t = e.borderBoxSize[0];
|
|
38
|
+
if (t) {
|
|
39
|
+
i({
|
|
40
|
+
width: t.inlineSize,
|
|
41
|
+
height: t.blockSize
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
i(s(n));
|
|
47
|
+
};
|
|
48
|
+
e.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(r) : r();
|
|
49
|
+
});
|
|
50
|
+
return a.observe(n, { box: "border-box" }), () => {
|
|
51
|
+
a.unobserve(n);
|
|
52
|
+
};
|
|
53
|
+
}, d = { passive: !0 }, f = typeof window > "u" || "onscrollend" in window, p = (e, t, r) => {
|
|
54
|
+
let i = e.scrollElement;
|
|
55
|
+
if (!i) return;
|
|
56
|
+
let a = e.targetWindow;
|
|
57
|
+
if (!a) return;
|
|
58
|
+
let o = e.options.useScrollendEvent && f, s = 0, c = o ? null : n(a, () => t(s, !1), e.options.isScrollingResetDelay), l = (e) => () => {
|
|
59
|
+
s = r(i), c?.(), t(s, e);
|
|
60
|
+
}, u = l(!0), p = l(!1);
|
|
61
|
+
return i.addEventListener("scroll", u, d), o && i.addEventListener("scrollend", p, d), () => {
|
|
62
|
+
i.removeEventListener("scroll", u), o && i.removeEventListener("scrollend", p), c?.cancel();
|
|
63
|
+
};
|
|
64
|
+
}, m = (e, t) => p(e, t, (t) => {
|
|
65
|
+
let { horizontal: n, isRtl: r } = e.options;
|
|
66
|
+
return n ? t.scrollLeft * (r && -1 || 1) : t.scrollTop;
|
|
67
|
+
}), h = (e, t, n) => {
|
|
68
|
+
if (n.options.useCachedMeasurements) {
|
|
69
|
+
let t = n.indexFromElement(e), r = n.options.getItemKey(t);
|
|
70
|
+
return n.itemSizeCache.get(r) ?? n.options.estimateSize(t);
|
|
71
|
+
}
|
|
72
|
+
if (t?.borderBoxSize) {
|
|
73
|
+
let e = t.borderBoxSize[0];
|
|
74
|
+
if (e) return Math.round(e[n.options.horizontal ? "inlineSize" : "blockSize"]);
|
|
75
|
+
}
|
|
76
|
+
if (!t) {
|
|
77
|
+
let t = n.indexFromElement(e), r = n.options.getItemKey(t), i = n.itemSizeCache.get(r);
|
|
78
|
+
if (i !== void 0) return i;
|
|
79
|
+
}
|
|
80
|
+
return e[n.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
81
|
+
}, g = (e, { adjustments: t = 0, behavior: n }, r) => {
|
|
82
|
+
var i, a;
|
|
83
|
+
(a = (i = r.scrollElement)?.scrollTo) == null || a.call(i, {
|
|
84
|
+
[r.options.horizontal ? "left" : "top"]: e + t,
|
|
85
|
+
behavior: n
|
|
86
|
+
});
|
|
87
|
+
}, _ = class {
|
|
88
|
+
constructor(t) {
|
|
89
|
+
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.scrollState = null, this.measurementsCache = [], this._flatMeasurements = null, this.itemSizeCache = /* @__PURE__ */ new Map(), this.itemSizeCacheVersion = 0, this.laneAssignments = /* @__PURE__ */ new Map(), this.pendingMin = null, this.prevLanes = void 0, this.lanesChangedFlag = !1, this.lanesSettling = !1, this.pendingScrollAnchor = null, this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._intendedScrollOffset = null, this.elementsCache = /* @__PURE__ */ new Map(), this.now = () => {
|
|
90
|
+
var e;
|
|
91
|
+
return ((e = this.targetWindow?.performance)?.now)?.call(e) ?? Date.now();
|
|
92
|
+
}, this.observer = /* @__PURE__ */ (() => {
|
|
93
|
+
let e = null, t = () => e || (!this.targetWindow || !this.targetWindow.ResizeObserver ? null : e = new this.targetWindow.ResizeObserver((e) => {
|
|
94
|
+
e.forEach((e) => {
|
|
95
|
+
let t = () => {
|
|
96
|
+
let t = e.target, n = this.indexFromElement(t);
|
|
97
|
+
if (!t.isConnected) {
|
|
98
|
+
this.observer.unobserve(t);
|
|
99
|
+
for (let [e, n] of this.elementsCache) if (n === t) {
|
|
100
|
+
this.elementsCache.delete(e);
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
this.isIndexInRange(n) && this.shouldMeasureDuringScroll(n) && this.resizeItem(n, this.options.measureElement(t, e, this));
|
|
106
|
+
};
|
|
107
|
+
this.options.useAnimationFrameWithResizeObserver ? requestAnimationFrame(t) : t();
|
|
108
|
+
});
|
|
109
|
+
}));
|
|
110
|
+
return {
|
|
111
|
+
disconnect: () => {
|
|
112
|
+
var n;
|
|
113
|
+
(n = t()) == null || n.disconnect(), e = null;
|
|
114
|
+
},
|
|
115
|
+
observe: (e) => t()?.observe(e, { box: "border-box" }),
|
|
116
|
+
unobserve: (e) => t()?.unobserve(e)
|
|
117
|
+
};
|
|
118
|
+
})(), this.range = null, this.setOptions = (e) => {
|
|
119
|
+
let t = {
|
|
120
|
+
debug: !1,
|
|
121
|
+
initialOffset: 0,
|
|
122
|
+
overscan: 1,
|
|
123
|
+
paddingStart: 0,
|
|
124
|
+
paddingEnd: 0,
|
|
125
|
+
scrollPaddingStart: 0,
|
|
126
|
+
scrollPaddingEnd: 0,
|
|
127
|
+
horizontal: !1,
|
|
128
|
+
getItemKey: c,
|
|
129
|
+
rangeExtractor: l,
|
|
130
|
+
onChange: () => {},
|
|
131
|
+
measureElement: h,
|
|
132
|
+
initialRect: {
|
|
133
|
+
width: 0,
|
|
134
|
+
height: 0
|
|
135
|
+
},
|
|
136
|
+
scrollMargin: 0,
|
|
137
|
+
gap: 0,
|
|
138
|
+
indexAttribute: "data-index",
|
|
139
|
+
initialMeasurementsCache: [],
|
|
140
|
+
lanes: 1,
|
|
141
|
+
anchorTo: "start",
|
|
142
|
+
followOnAppend: !1,
|
|
143
|
+
scrollEndThreshold: 1,
|
|
144
|
+
isScrollingResetDelay: 150,
|
|
145
|
+
enabled: !0,
|
|
146
|
+
isRtl: !1,
|
|
147
|
+
useScrollendEvent: !1,
|
|
148
|
+
useAnimationFrameWithResizeObserver: !1,
|
|
149
|
+
laneAssignmentMode: "estimate",
|
|
150
|
+
useCachedMeasurements: !1
|
|
151
|
+
};
|
|
152
|
+
for (let n in e) {
|
|
153
|
+
let r = e[n];
|
|
154
|
+
r !== void 0 && (t[n] = r);
|
|
155
|
+
}
|
|
156
|
+
let n = this.options, r = null, i = null, a = !1;
|
|
157
|
+
if (n !== void 0 && n.enabled && t.enabled && t.anchorTo === "end" && this.scrollElement !== null) {
|
|
158
|
+
let e = n.count, o = t.count, s = this.getMeasurements(), c = e > 0 ? s[0]?.key ?? n.getItemKey(0) : null, l = e > 0 ? s[e - 1]?.key ?? n.getItemKey(e - 1) : null;
|
|
159
|
+
if (o !== e || e > 0 && o > 0 && (t.getItemKey(0) !== c || t.getItemKey(o - 1) !== l)) {
|
|
160
|
+
a = !0;
|
|
161
|
+
let c = e > 0 ? this.getVirtualItemForOffset(this.getScrollOffset()) ?? s[0] : null;
|
|
162
|
+
c && (r = [c.key, this.getScrollOffset() - c.start]);
|
|
163
|
+
let u = t.followOnAppend === !0 ? "auto" : t.followOnAppend || null;
|
|
164
|
+
u && o > e && this.isAtEnd(n.scrollEndThreshold) && (e === 0 || t.getItemKey(o - 1) !== l) && (i = u);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
this.options = t, a && (this.pendingMin = 0, this.itemSizeCacheVersion++);
|
|
168
|
+
let o = !1, s = 0;
|
|
169
|
+
if (r && this.scrollOffset !== null) {
|
|
170
|
+
let [e, t] = r, n = this.getMeasurements(), { count: i, getItemKey: a } = this.options, c = 0;
|
|
171
|
+
for (; c < i && a(c) !== e;) c++;
|
|
172
|
+
if (c < i) {
|
|
173
|
+
let e = n[c];
|
|
174
|
+
if (e) {
|
|
175
|
+
let n = Math.max(0, e.start + t);
|
|
176
|
+
n !== this.scrollOffset && (s = n - this.scrollOffset, this.scrollOffset = n, o = !0);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
(o || i) && (this.pendingScrollAnchor = [
|
|
181
|
+
o ? r[0] : null,
|
|
182
|
+
o ? r[1] : 0,
|
|
183
|
+
i,
|
|
184
|
+
s
|
|
185
|
+
]);
|
|
186
|
+
}, this.notify = (e) => {
|
|
187
|
+
var t, n;
|
|
188
|
+
(n = (t = this.options).onChange) == null || n.call(t, this, e);
|
|
189
|
+
}, this.maybeNotify = r(() => (this.calculateRange(), [
|
|
190
|
+
this.isScrolling,
|
|
191
|
+
this.range ? this.range.startIndex : null,
|
|
192
|
+
this.range ? this.range.endIndex : null
|
|
193
|
+
]), (e) => {
|
|
194
|
+
this.notify(e);
|
|
195
|
+
}, {
|
|
196
|
+
key: process.env.NODE_ENV !== "production" && "maybeNotify",
|
|
197
|
+
debug: () => this.options.debug,
|
|
198
|
+
initialDeps: [
|
|
199
|
+
this.isScrolling,
|
|
200
|
+
this.range ? this.range.startIndex : null,
|
|
201
|
+
this.range ? this.range.endIndex : null
|
|
202
|
+
]
|
|
203
|
+
}), this.cleanup = () => {
|
|
204
|
+
this.unsubs.filter(Boolean).forEach((e) => e()), this.unsubs = [], this.observer.disconnect(), this.rafId != null && this.targetWindow && (this.targetWindow.cancelAnimationFrame(this.rafId), this.rafId = null), this.scrollState = null, this.isScrolling = !1, this.scrollDirection = null, this._iosDeferredAdjustment = 0, this._iosTouching = !1, this._iosJustTouchEnded = !1, this.scrollElement = null, this.targetWindow = null;
|
|
205
|
+
}, this._didMount = () => () => {
|
|
206
|
+
this.cleanup();
|
|
207
|
+
}, this._willUpdate = () => {
|
|
208
|
+
let e = this.options.enabled ? this.options.getScrollElement() : null;
|
|
209
|
+
if (this.scrollElement !== e) {
|
|
210
|
+
if (this.cleanup(), !e) {
|
|
211
|
+
this.maybeNotify();
|
|
212
|
+
return;
|
|
213
|
+
}
|
|
214
|
+
if (this.scrollElement = e, this.targetWindow = this.scrollElement && "ownerDocument" in this.scrollElement ? this.scrollElement.ownerDocument.defaultView : this.scrollElement?.window ?? null, this.elementsCache.forEach((e) => {
|
|
215
|
+
this.observer.observe(e);
|
|
216
|
+
}), this.unsubs.push(this.options.observeElementRect(this, (e) => {
|
|
217
|
+
this.scrollRect = e, this.maybeNotify();
|
|
218
|
+
})), this.unsubs.push(this.options.observeElementOffset(this, (e, t) => {
|
|
219
|
+
if (t && this._intendedScrollOffset === null && e === this.scrollOffset) return;
|
|
220
|
+
this._intendedScrollOffset !== null && Math.abs(e - this._intendedScrollOffset) < 1.5 && (e = this._intendedScrollOffset), this._intendedScrollOffset = null, this.scrollAdjustments = 0;
|
|
221
|
+
let n = this.getScrollOffset();
|
|
222
|
+
this.scrollDirection = t ? n === e ? this.scrollDirection : n < e ? "forward" : "backward" : null, this.scrollOffset = e, this.isScrolling = t, this._flushIosDeferredIfReady(), this.scrollState && this.scheduleScrollReconcile(), this.maybeNotify();
|
|
223
|
+
})), "addEventListener" in this.scrollElement) {
|
|
224
|
+
let e = this.scrollElement, t = () => {
|
|
225
|
+
this._iosTouching = !0, this._iosJustTouchEnded = !1, this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
226
|
+
}, n = () => {
|
|
227
|
+
this._iosTouching = !1, !(!o() || this.targetWindow == null) && (this._iosJustTouchEnded = !0, this._iosTouchEndTimerId = this.targetWindow.setTimeout(() => {
|
|
228
|
+
this._iosJustTouchEnded = !1, this._iosTouchEndTimerId = null, this._flushIosDeferredIfReady();
|
|
229
|
+
}, 150));
|
|
230
|
+
};
|
|
231
|
+
e.addEventListener("touchstart", t, d), e.addEventListener("touchend", n, d), this.unsubs.push(() => {
|
|
232
|
+
e.removeEventListener("touchstart", t), e.removeEventListener("touchend", n), this._iosTouchEndTimerId !== null && this.targetWindow != null && (this.targetWindow.clearTimeout(this._iosTouchEndTimerId), this._iosTouchEndTimerId = null);
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
this._scrollToOffset(this.getScrollOffset(), {
|
|
236
|
+
adjustments: void 0,
|
|
237
|
+
behavior: void 0
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
let t = this.pendingScrollAnchor;
|
|
241
|
+
if (this.pendingScrollAnchor = null, t && this.scrollElement && this.options.enabled) {
|
|
242
|
+
let [e, n, r, i] = t;
|
|
243
|
+
e !== null && !r && (o() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? i !== 0 && (this._iosDeferredAdjustment += i) : this._scrollToOffset(this.getScrollOffset(), {
|
|
244
|
+
adjustments: void 0,
|
|
245
|
+
behavior: void 0
|
|
246
|
+
})), r && this.scrollToEnd({ behavior: r });
|
|
247
|
+
}
|
|
248
|
+
}, this._flushIosDeferredIfReady = () => {
|
|
249
|
+
if (this._iosDeferredAdjustment === 0 || this.isScrolling || this._iosTouching || this._iosJustTouchEnded) return;
|
|
250
|
+
let e = this.getScrollOffset(), t = this.getMaxScrollOffset();
|
|
251
|
+
if (e < 0 || e > t) return;
|
|
252
|
+
if (this._iosDeferredAdjustment < 0 && e >= t - 1) {
|
|
253
|
+
this._iosDeferredAdjustment = 0;
|
|
254
|
+
return;
|
|
255
|
+
}
|
|
256
|
+
let n = this._iosDeferredAdjustment;
|
|
257
|
+
this._iosDeferredAdjustment = 0, this._scrollToOffset(e, {
|
|
258
|
+
adjustments: this.scrollAdjustments += n,
|
|
259
|
+
behavior: void 0
|
|
260
|
+
});
|
|
261
|
+
}, this.rafId = null, this.getSize = () => this.options.enabled ? (this.scrollRect = this.scrollRect ?? this.options.initialRect, this.scrollRect[this.options.horizontal ? "width" : "height"]) : (this.scrollRect = null, 0), this.getScrollOffset = () => this.options.enabled ? (this.scrollOffset = this.scrollOffset ?? (typeof this.options.initialOffset == "function" ? this.options.initialOffset() : this.options.initialOffset), this.scrollOffset) : (this.scrollOffset = null, 0), this.getMeasurementOptions = r(() => [
|
|
262
|
+
this.options.count,
|
|
263
|
+
this.options.paddingStart,
|
|
264
|
+
this.options.scrollMargin,
|
|
265
|
+
this.options.getItemKey,
|
|
266
|
+
this.options.enabled,
|
|
267
|
+
this.options.lanes,
|
|
268
|
+
this.options.laneAssignmentMode,
|
|
269
|
+
this.options.gap
|
|
270
|
+
], (e, t, n, r, i, a, o, s) => (this.prevLanes !== void 0 && this.prevLanes !== a && (this.lanesChangedFlag = !0), this.prevLanes = a, this.pendingMin = null, {
|
|
271
|
+
count: e,
|
|
272
|
+
paddingStart: t,
|
|
273
|
+
scrollMargin: n,
|
|
274
|
+
getItemKey: r,
|
|
275
|
+
enabled: i,
|
|
276
|
+
lanes: a,
|
|
277
|
+
laneAssignmentMode: o,
|
|
278
|
+
gap: s
|
|
279
|
+
}), { key: !1 }), this.isIndexInRange = (e) => e >= 0 && e < this.options.count, this.getMeasurements = r(() => [this.getMeasurementOptions(), this.itemSizeCacheVersion], ({ count: t, paddingStart: n, scrollMargin: r, getItemKey: i, enabled: a, lanes: o, laneAssignmentMode: s, gap: c }, l) => {
|
|
280
|
+
let u = this.itemSizeCache;
|
|
281
|
+
if (!a) return this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), [];
|
|
282
|
+
if (this.laneAssignments.size > t) for (let e of this.laneAssignments.keys()) e >= t && this.laneAssignments.delete(e);
|
|
283
|
+
this.lanesChangedFlag && (this.lanesChangedFlag = !1, this.lanesSettling = !0, this.measurementsCache = [], this.itemSizeCache.clear(), this.laneAssignments.clear(), this.pendingMin = null), this.measurementsCache.length === 0 && !this.lanesSettling && (this.measurementsCache = this.options.initialMeasurementsCache, this.measurementsCache.forEach((e) => {
|
|
284
|
+
this.itemSizeCache.set(e.key, e.size);
|
|
285
|
+
}));
|
|
286
|
+
let d = this.lanesSettling ? 0 : this.pendingMin ?? 0;
|
|
287
|
+
if (this.pendingMin = null, this.lanesSettling && this.measurementsCache.length === t && (this.lanesSettling = !1), o === 1) {
|
|
288
|
+
let a = t * 2, o = this._flatMeasurements;
|
|
289
|
+
if (!o || o.length < a) {
|
|
290
|
+
let e = new Float64Array(a);
|
|
291
|
+
o && d > 0 && e.set(o.subarray(0, d * 2)), o = e, this._flatMeasurements = o;
|
|
292
|
+
}
|
|
293
|
+
let s;
|
|
294
|
+
if (d === 0) s = n + r;
|
|
295
|
+
else {
|
|
296
|
+
let e = d - 1;
|
|
297
|
+
s = o[e * 2] + o[e * 2 + 1] + c;
|
|
298
|
+
}
|
|
299
|
+
for (let e = d; e < t; e++) {
|
|
300
|
+
let t = i(e), n = u.get(t), r = typeof n == "number" ? n : this.options.estimateSize(e);
|
|
301
|
+
o[e * 2] = s, o[e * 2 + 1] = r, s += r + c;
|
|
302
|
+
}
|
|
303
|
+
let l = e(t, o, i);
|
|
304
|
+
return this.measurementsCache = l, l;
|
|
305
|
+
}
|
|
306
|
+
let f = this.measurementsCache.slice(0, d), p = Array(o).fill(void 0), m = new Float64Array(o), h = 0;
|
|
307
|
+
for (let e = 0; e < d; e++) {
|
|
308
|
+
let t = f[e];
|
|
309
|
+
t && (p[t.lane] === void 0 && h++, p[t.lane] = e, m[t.lane] = t.end);
|
|
310
|
+
}
|
|
311
|
+
for (let e = d; e < t; e++) {
|
|
312
|
+
let t = i(e), a = this.laneAssignments.get(e), l, d, g = s === "estimate" || u.has(t);
|
|
313
|
+
if (a !== void 0 && this.options.lanes > 1) {
|
|
314
|
+
l = a;
|
|
315
|
+
let e = p[l], t = e === void 0 ? void 0 : f[e];
|
|
316
|
+
d = t ? t.end + c : n + r;
|
|
317
|
+
} else if (h === o) {
|
|
318
|
+
let t = 0, n = m[0], r = p[0];
|
|
319
|
+
for (let e = 1; e < o; e++) {
|
|
320
|
+
let i = m[e];
|
|
321
|
+
(i < n || i === n && p[e] < r) && (t = e, n = i, r = p[e]);
|
|
322
|
+
}
|
|
323
|
+
l = t, d = n + c, g && this.laneAssignments.set(e, l);
|
|
324
|
+
} else l = e % this.options.lanes, d = n + r, g && this.laneAssignments.set(e, l);
|
|
325
|
+
let _ = u.get(t), v = typeof _ == "number" ? _ : this.options.estimateSize(e), y = d + v;
|
|
326
|
+
f[e] = {
|
|
327
|
+
index: e,
|
|
328
|
+
start: d,
|
|
329
|
+
size: v,
|
|
330
|
+
end: y,
|
|
331
|
+
key: t,
|
|
332
|
+
lane: l
|
|
333
|
+
}, p[l] === void 0 && h++, p[l] = e, m[l] = y;
|
|
334
|
+
}
|
|
335
|
+
return this.measurementsCache = f, f;
|
|
336
|
+
}, {
|
|
337
|
+
key: process.env.NODE_ENV !== "production" && "getMeasurements",
|
|
338
|
+
debug: () => this.options.debug
|
|
339
|
+
}), this.calculateRange = r(() => [
|
|
340
|
+
this.getMeasurements(),
|
|
341
|
+
this.getSize(),
|
|
342
|
+
this.getScrollOffset(),
|
|
343
|
+
this.options.lanes
|
|
344
|
+
], (e, t, n, r) => e.length === 0 || t === 0 ? (this.range = null, null) : (this.range = b(e, t, n, r, r === 1 && this._flatMeasurements != null ? this._flatMeasurements : null), this.range), {
|
|
345
|
+
key: process.env.NODE_ENV !== "production" && "calculateRange",
|
|
346
|
+
debug: () => this.options.debug
|
|
347
|
+
}), this.getVirtualIndexes = r(() => {
|
|
348
|
+
let e = null, t = null, n = this.calculateRange();
|
|
349
|
+
return n && (e = n.startIndex, t = n.endIndex), this.maybeNotify.updateDeps([
|
|
350
|
+
this.isScrolling,
|
|
351
|
+
e,
|
|
352
|
+
t
|
|
353
|
+
]), [
|
|
354
|
+
this.options.rangeExtractor,
|
|
355
|
+
this.options.overscan,
|
|
356
|
+
this.options.count,
|
|
357
|
+
e,
|
|
358
|
+
t
|
|
359
|
+
];
|
|
360
|
+
}, (e, t, n, r, i) => r === null || i === null ? [] : e({
|
|
361
|
+
startIndex: r,
|
|
362
|
+
endIndex: i,
|
|
363
|
+
overscan: t,
|
|
364
|
+
count: n
|
|
365
|
+
}), {
|
|
366
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualIndexes",
|
|
367
|
+
debug: () => this.options.debug
|
|
368
|
+
}), this.indexFromElement = (e) => {
|
|
369
|
+
let t = this.options.indexAttribute, n = e.getAttribute(t);
|
|
370
|
+
return n ? parseInt(n, 10) : (console.warn(`Missing attribute name '${t}={index}' on measured element.`), -1);
|
|
371
|
+
}, this.shouldMeasureDuringScroll = (e) => {
|
|
372
|
+
if (!this.scrollState || this.scrollState.behavior !== "smooth") return !0;
|
|
373
|
+
let t = this.scrollState.index ?? this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;
|
|
374
|
+
if (t !== void 0 && this.range) {
|
|
375
|
+
let n = Math.max(this.options.overscan, Math.ceil((this.range.endIndex - this.range.startIndex) / 2)), r = Math.max(0, t - n), i = Math.min(this.options.count - 1, t + n);
|
|
376
|
+
return e >= r && e <= i;
|
|
377
|
+
}
|
|
378
|
+
return !0;
|
|
379
|
+
}, this.measureElement = (e) => {
|
|
380
|
+
if (!e) {
|
|
381
|
+
this.elementsCache.forEach((e, t) => {
|
|
382
|
+
e.isConnected || (this.observer.unobserve(e), this.elementsCache.delete(t));
|
|
383
|
+
});
|
|
384
|
+
return;
|
|
385
|
+
}
|
|
386
|
+
let t = this.indexFromElement(e);
|
|
387
|
+
if (!this.isIndexInRange(t)) return;
|
|
388
|
+
let n = this.options.getItemKey(t), r = this.elementsCache.get(n);
|
|
389
|
+
r !== e && (r && this.observer.unobserve(r), this.observer.observe(e), this.elementsCache.set(n, e)), (!this.isScrolling || this.scrollState) && this.shouldMeasureDuringScroll(t) && this.resizeItem(t, this.options.measureElement(e, void 0, this));
|
|
390
|
+
}, this.resizeItem = (e, t) => {
|
|
391
|
+
if (!this.isIndexInRange(e)) return;
|
|
392
|
+
let n, r, i, a = this._flatMeasurements;
|
|
393
|
+
if (this.options.lanes === 1 && a !== null) i = this.options.getItemKey(e), r = a[e * 2], n = a[e * 2 + 1];
|
|
394
|
+
else {
|
|
395
|
+
let t = this.measurementsCache[e];
|
|
396
|
+
if (!t) return;
|
|
397
|
+
i = t.key, r = t.start, n = t.size;
|
|
398
|
+
}
|
|
399
|
+
let o = this.itemSizeCache.get(i) ?? n, s = t - o;
|
|
400
|
+
if (s !== 0) {
|
|
401
|
+
let a = this.options.anchorTo === "end" && this.scrollState?.behavior !== "smooth" && this.getVirtualDistanceFromEnd() <= this.options.scrollEndThreshold, c = a ? this.getTotalSize() : 0, l = this.getScrollOffset() + this.scrollAdjustments, u = this.itemSizeCache.has(i) ? r + o <= l && this.scrollDirection !== "backward" : r < l, d = this.scrollState?.behavior !== "smooth" && (this.shouldAdjustScrollPositionOnItemSizeChange === void 0 ? u : this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e] ?? {
|
|
402
|
+
index: e,
|
|
403
|
+
key: i,
|
|
404
|
+
start: r,
|
|
405
|
+
size: n,
|
|
406
|
+
end: r + n,
|
|
407
|
+
lane: 0
|
|
408
|
+
}, s, this));
|
|
409
|
+
(this.pendingMin === null || e < this.pendingMin) && (this.pendingMin = e), this.itemSizeCache.set(i, t), this.itemSizeCacheVersion++;
|
|
410
|
+
let f = !1;
|
|
411
|
+
a ? f = this.applyScrollAdjustment(this.getTotalSize() - c) : d && (f = this.applyScrollAdjustment(s)), this.notify(f);
|
|
412
|
+
}
|
|
413
|
+
}, this.getVirtualItems = r(() => [this.getVirtualIndexes(), this.getMeasurements()], (e, t) => {
|
|
414
|
+
let n = [];
|
|
415
|
+
for (let r = 0, i = e.length; r < i; r++) {
|
|
416
|
+
let i = t[e[r]];
|
|
417
|
+
n.push(i);
|
|
418
|
+
}
|
|
419
|
+
return n;
|
|
420
|
+
}, {
|
|
421
|
+
key: process.env.NODE_ENV !== "production" && "getVirtualItems",
|
|
422
|
+
debug: () => this.options.debug
|
|
423
|
+
}), this.getVirtualItemForOffset = (e) => {
|
|
424
|
+
let t = this.getMeasurements();
|
|
425
|
+
if (t.length === 0) return;
|
|
426
|
+
let n = this._flatMeasurements, r = this.options.lanes === 1 && n != null, a = v(0, t.length - 1, r ? (e) => n[e * 2] : (e) => i(t[e]).start, e);
|
|
427
|
+
return i(t[a]);
|
|
428
|
+
}, this.getMaxScrollOffset = () => {
|
|
429
|
+
if (!this.scrollElement) return 0;
|
|
430
|
+
if ("scrollHeight" in this.scrollElement) return this.options.horizontal ? this.scrollElement.scrollWidth - this.scrollElement.clientWidth : this.scrollElement.scrollHeight - this.scrollElement.clientHeight;
|
|
431
|
+
{
|
|
432
|
+
let e = this.scrollElement.document.documentElement;
|
|
433
|
+
return this.options.horizontal ? e.scrollWidth - this.scrollElement.innerWidth : e.scrollHeight - this.scrollElement.innerHeight;
|
|
434
|
+
}
|
|
435
|
+
}, this.getVirtualDistanceFromEnd = () => Math.max(this.getTotalSize() - this.getSize() - this.getScrollOffset(), 0), this.getDistanceFromEnd = () => Math.max(this.getMaxScrollOffset() - this.getScrollOffset(), 0), this.isAtEnd = (e = this.options.scrollEndThreshold) => this.getDistanceFromEnd() <= e, this.getOffsetForAlignment = (e, t, n = 0) => {
|
|
436
|
+
if (!this.scrollElement) return 0;
|
|
437
|
+
let r = this.getSize(), i = this.getScrollOffset();
|
|
438
|
+
t === "auto" && (t = e >= i + r ? "end" : "start"), t === "center" ? e += (n - r) / 2 : t === "end" && (e -= r);
|
|
439
|
+
let a = this.getMaxScrollOffset();
|
|
440
|
+
return Math.max(Math.min(a, e), 0);
|
|
441
|
+
}, this.getOffsetForIndex = (e, t = "auto") => {
|
|
442
|
+
e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
443
|
+
let n = this.getSize(), r = this.getScrollOffset(), i = this.measurementsCache[e];
|
|
444
|
+
if (!i) return;
|
|
445
|
+
if (t === "auto") {
|
|
446
|
+
if (i.end >= r + n - this.options.scrollPaddingEnd) t = "end";
|
|
447
|
+
else if (i.start <= r + this.options.scrollPaddingStart) t = "start";
|
|
448
|
+
else return [r, t];
|
|
449
|
+
}
|
|
450
|
+
if (t === "end" && e === this.options.count - 1) return [this.getMaxScrollOffset(), t];
|
|
451
|
+
let a = t === "end" ? i.end + this.options.scrollPaddingEnd : i.start - this.options.scrollPaddingStart;
|
|
452
|
+
return [this.getOffsetForAlignment(a, t, i.size), t];
|
|
453
|
+
}, this.scrollToOffset = (e, { align: t = "start", behavior: n = "auto" } = {}) => {
|
|
454
|
+
this._iosDeferredAdjustment = 0;
|
|
455
|
+
let r = this.getOffsetForAlignment(e, t), i = this.now();
|
|
456
|
+
this.scrollState = {
|
|
457
|
+
index: null,
|
|
458
|
+
align: t,
|
|
459
|
+
behavior: n,
|
|
460
|
+
startedAt: i,
|
|
461
|
+
lastTargetOffset: r,
|
|
462
|
+
stableFrames: 0
|
|
463
|
+
}, this._scrollToOffset(r, {
|
|
464
|
+
adjustments: void 0,
|
|
465
|
+
behavior: n
|
|
466
|
+
}), this.scheduleScrollReconcile();
|
|
467
|
+
}, this.scrollToIndex = (e, { align: t = "auto", behavior: n = "auto" } = {}) => {
|
|
468
|
+
this._iosDeferredAdjustment = 0, e = Math.max(0, Math.min(e, this.options.count - 1));
|
|
469
|
+
let r = this.getOffsetForIndex(e, t);
|
|
470
|
+
if (!r) return;
|
|
471
|
+
let [i, a] = r, o = this.now();
|
|
472
|
+
this.scrollState = {
|
|
473
|
+
index: e,
|
|
474
|
+
align: a,
|
|
475
|
+
behavior: n,
|
|
476
|
+
startedAt: o,
|
|
477
|
+
lastTargetOffset: i,
|
|
478
|
+
stableFrames: 0
|
|
479
|
+
}, this._scrollToOffset(i, {
|
|
480
|
+
adjustments: void 0,
|
|
481
|
+
behavior: n
|
|
482
|
+
}), this.scheduleScrollReconcile();
|
|
483
|
+
}, this.scrollBy = (e, { behavior: t = "auto" } = {}) => {
|
|
484
|
+
let n = this.getScrollOffset() + e, r = this.now();
|
|
485
|
+
this.scrollState = {
|
|
486
|
+
index: null,
|
|
487
|
+
align: "start",
|
|
488
|
+
behavior: t,
|
|
489
|
+
startedAt: r,
|
|
490
|
+
lastTargetOffset: n,
|
|
491
|
+
stableFrames: 0
|
|
492
|
+
}, this._scrollToOffset(n, {
|
|
493
|
+
adjustments: void 0,
|
|
494
|
+
behavior: t
|
|
495
|
+
}), this.scheduleScrollReconcile();
|
|
496
|
+
}, this.scrollToEnd = ({ behavior: e = "auto" } = {}) => {
|
|
497
|
+
if (this.options.count > 0) {
|
|
498
|
+
this.scrollToIndex(this.options.count - 1, {
|
|
499
|
+
align: "end",
|
|
500
|
+
behavior: e
|
|
501
|
+
});
|
|
502
|
+
return;
|
|
503
|
+
}
|
|
504
|
+
this.scrollToOffset(Math.max(this.getTotalSize() - this.getSize(), 0), { behavior: e });
|
|
505
|
+
}, this.getTotalSize = () => {
|
|
506
|
+
let e = this.getMeasurements(), t;
|
|
507
|
+
if (e.length === 0) t = this.options.paddingStart;
|
|
508
|
+
else if (this.options.lanes === 1) {
|
|
509
|
+
let n = e.length - 1, r = this._flatMeasurements;
|
|
510
|
+
t = r == null ? e[n]?.end ?? 0 : r[n * 2] + r[n * 2 + 1];
|
|
511
|
+
} else {
|
|
512
|
+
let n = Array(this.options.lanes).fill(null), r = e.length - 1;
|
|
513
|
+
for (; r >= 0 && n.some((e) => e === null);) {
|
|
514
|
+
let t = e[r];
|
|
515
|
+
n[t.lane] === null && (n[t.lane] = t.end), r--;
|
|
516
|
+
}
|
|
517
|
+
t = Math.max(...n.filter((e) => e !== null));
|
|
518
|
+
}
|
|
519
|
+
return Math.max(t - this.options.scrollMargin + this.options.paddingEnd, 0);
|
|
520
|
+
}, this.takeSnapshot = () => {
|
|
521
|
+
let e = [];
|
|
522
|
+
if (this.itemSizeCache.size === 0) return e;
|
|
523
|
+
let t = this.getMeasurements();
|
|
524
|
+
for (let n of t) n && this.itemSizeCache.has(n.key) && e.push({
|
|
525
|
+
index: n.index,
|
|
526
|
+
key: n.key,
|
|
527
|
+
start: n.start,
|
|
528
|
+
size: n.size,
|
|
529
|
+
end: n.end,
|
|
530
|
+
lane: n.lane
|
|
531
|
+
});
|
|
532
|
+
return e;
|
|
533
|
+
}, this._scrollToOffset = (e, { adjustments: t, behavior: n }) => {
|
|
534
|
+
this._intendedScrollOffset = e + (t ?? 0), this.options.scrollToFn(e, {
|
|
535
|
+
behavior: n,
|
|
536
|
+
adjustments: t
|
|
537
|
+
}, this);
|
|
538
|
+
}, this.measure = () => {
|
|
539
|
+
this.pendingMin = null, this.itemSizeCache.clear(), this.laneAssignments.clear(), this.itemSizeCacheVersion++, this.notify(!1);
|
|
540
|
+
}, this.setOptions(t);
|
|
541
|
+
}
|
|
542
|
+
applyScrollAdjustment(e, t) {
|
|
543
|
+
return e !== 0 && (process.env.NODE_ENV !== "production" && this.options.debug && console.info("correction", e), o() && (this.isScrolling || this._iosTouching || this._iosJustTouchEnded) ? (this._iosDeferredAdjustment += e, !1) : (this._scrollToOffset(this.getScrollOffset(), {
|
|
544
|
+
adjustments: this.scrollAdjustments += e,
|
|
545
|
+
behavior: t
|
|
546
|
+
}), this.scrollOffset !== null && (this.scrollOffset += this.scrollAdjustments, this.scrollOffset < 0 && (this.scrollOffset = 0), this.scrollAdjustments = 0), !0));
|
|
547
|
+
}
|
|
548
|
+
scheduleScrollReconcile() {
|
|
549
|
+
if (!this.targetWindow) {
|
|
550
|
+
this.scrollState = null;
|
|
551
|
+
return;
|
|
552
|
+
}
|
|
553
|
+
this.rafId ??= this.targetWindow.requestAnimationFrame(() => {
|
|
554
|
+
this.rafId = null, this.reconcileScroll();
|
|
555
|
+
});
|
|
556
|
+
}
|
|
557
|
+
reconcileScroll() {
|
|
558
|
+
if (!this.scrollState || !this.scrollElement) return;
|
|
559
|
+
if (this.now() - this.scrollState.startedAt > 5e3) {
|
|
560
|
+
this.scrollState = null;
|
|
561
|
+
return;
|
|
562
|
+
}
|
|
563
|
+
let e = this.scrollState.index == null ? void 0 : this.getOffsetForIndex(this.scrollState.index, this.scrollState.align), n = e ? e[0] : this.scrollState.lastTargetOffset, r = n !== this.scrollState.lastTargetOffset;
|
|
564
|
+
if (!r && t(n, this.getScrollOffset())) {
|
|
565
|
+
if (this.scrollState.stableFrames++, this.scrollState.stableFrames >= 1) {
|
|
566
|
+
this.getScrollOffset() !== n && this._scrollToOffset(n, {
|
|
567
|
+
adjustments: void 0,
|
|
568
|
+
behavior: "auto"
|
|
569
|
+
}), this.scrollState = null;
|
|
570
|
+
return;
|
|
571
|
+
}
|
|
572
|
+
} else if (this.scrollState.stableFrames = 0, r) {
|
|
573
|
+
let e = this.getSize() || 600, t = Math.abs(n - this.getScrollOffset()), r = this.scrollState.behavior === "smooth" && t > e;
|
|
574
|
+
this.scrollState.lastTargetOffset = n, r || (this.scrollState.behavior = "auto"), this._scrollToOffset(n, {
|
|
575
|
+
adjustments: void 0,
|
|
576
|
+
behavior: r ? "smooth" : "auto"
|
|
577
|
+
});
|
|
578
|
+
}
|
|
579
|
+
this.scheduleScrollReconcile();
|
|
580
|
+
}
|
|
581
|
+
}, v = (e, t, n, r) => {
|
|
582
|
+
for (; e <= t;) {
|
|
583
|
+
let i = (e + t) / 2 | 0, a = n(i);
|
|
584
|
+
if (a < r) e = i + 1;
|
|
585
|
+
else if (a > r) t = i - 1;
|
|
586
|
+
else return i;
|
|
587
|
+
}
|
|
588
|
+
return e > 0 ? e - 1 : 0;
|
|
725
589
|
};
|
|
726
|
-
function
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
return {
|
|
736
|
-
startIndex: 0,
|
|
737
|
-
endIndex: i
|
|
738
|
-
};
|
|
739
|
-
let l = A(0, i, n, t), u = l;
|
|
740
|
-
if (e === 1)
|
|
741
|
-
for (; u < i && o(u) < t + a; )
|
|
742
|
-
u++;
|
|
743
|
-
else if (e > 1) {
|
|
744
|
-
const d = Array(e).fill(0);
|
|
745
|
-
for (; u < i && d.some((h) => h < t + a); ) {
|
|
746
|
-
const h = r[u];
|
|
747
|
-
d[h.lane] = h.end, u++;
|
|
748
|
-
}
|
|
749
|
-
const m = Array(e).fill(t + a);
|
|
750
|
-
for (; l >= 0 && m.some((h) => h >= t); ) {
|
|
751
|
-
const h = r[l];
|
|
752
|
-
m[h.lane] = h.start, l--;
|
|
753
|
-
}
|
|
754
|
-
l = Math.max(0, l - l % e), u = Math.min(i, u + (e - 1 - u % e));
|
|
755
|
-
}
|
|
756
|
-
return { startIndex: l, endIndex: u };
|
|
590
|
+
function y(e, t, n) {
|
|
591
|
+
let r = 0;
|
|
592
|
+
for (; r <= t;) {
|
|
593
|
+
let i = (r + t) / 2 | 0, a = e[i * 2];
|
|
594
|
+
if (a < n) r = i + 1;
|
|
595
|
+
else if (a > n) t = i - 1;
|
|
596
|
+
else return i;
|
|
597
|
+
}
|
|
598
|
+
return r > 0 ? r - 1 : 0;
|
|
757
599
|
}
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
};
|
|
600
|
+
function b(e, t, n, r, i) {
|
|
601
|
+
let a = e.length - 1;
|
|
602
|
+
if (e.length <= r) return {
|
|
603
|
+
startIndex: 0,
|
|
604
|
+
endIndex: a
|
|
605
|
+
};
|
|
606
|
+
if (r === 1 && i !== null) {
|
|
607
|
+
let e = y(i, a, n), r = e, o = n + t;
|
|
608
|
+
for (; r < a && i[r * 2] + i[r * 2 + 1] < o;) r++;
|
|
609
|
+
return {
|
|
610
|
+
startIndex: e,
|
|
611
|
+
endIndex: r
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
let o = v(0, a, (t) => e[t].start, n), s = o;
|
|
615
|
+
if (r === 1) for (; s < a && e[s].end < n + t;) s++;
|
|
616
|
+
else if (r > 1) {
|
|
617
|
+
let i = Array(r).fill(0);
|
|
618
|
+
for (; s < a && i.some((e) => e < n + t);) {
|
|
619
|
+
let t = e[s];
|
|
620
|
+
i[t.lane] = t.end, s++;
|
|
621
|
+
}
|
|
622
|
+
let c = Array(r).fill(n + t);
|
|
623
|
+
for (; o >= 0 && c.some((e) => e >= n);) {
|
|
624
|
+
let t = e[o];
|
|
625
|
+
c[t.lane] = t.start, o--;
|
|
626
|
+
}
|
|
627
|
+
o = Math.max(0, o - o % r), s = Math.min(a, s + (r - 1 - s % r));
|
|
628
|
+
}
|
|
629
|
+
return {
|
|
630
|
+
startIndex: o,
|
|
631
|
+
endIndex: s
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
//#endregion
|
|
635
|
+
export { _ as Virtualizer, t as approxEqual, n as debounce, c as defaultKeyExtractor, l as defaultRangeExtractor, g as elementScroll, h as measureElement, r as memo, i as notUndefined, m as observeElementOffset, u as observeElementRect };
|