@nova-design-system/nova-webcomponents 3.24.0 → 3.25.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/cjs/_commonjsHelpers-CFO10eej.js +0 -3
- package/dist/cjs/clsx-BtxeOLZW.js +0 -3
- package/dist/cjs/collapse.animation-CcG0GAWk.js +0 -3
- package/dist/cjs/constants-BugGJYqL.js +0 -3
- package/dist/cjs/dom.utils-8VY5SfMZ.js +177 -0
- package/dist/cjs/events.utils-BE6R5q9C.js +0 -3
- package/dist/cjs/fade.animation-BQSqXXOJ.js +0 -3
- package/dist/cjs/grow.animation-ynu_HmA_.js +0 -3
- package/dist/cjs/i18n.utils-ku0bScip.js +0 -3
- package/dist/cjs/index-BQjqJTJB.js +4832 -0
- package/dist/cjs/index.cjs.js +0 -1
- package/dist/cjs/index.esm-CG1TVKfu.js +0 -3
- package/dist/cjs/inputmask-DtXnpVWa.js +0 -3
- package/dist/cjs/loader.cjs.js +3 -5
- package/dist/cjs/native.cjs.js +32 -7
- package/dist/cjs/nv-accordion-item.cjs.entry.js +8 -8
- package/dist/cjs/nv-accordion.cjs.entry.js +10 -9
- package/dist/cjs/nv-alert.cjs.entry.js +6 -5
- package/dist/cjs/nv-avatar.cjs.entry.js +3 -4
- package/dist/cjs/nv-badge_2.cjs.entry.js +15 -11
- package/dist/cjs/nv-breadcrumb.cjs.entry.js +14 -12
- package/dist/cjs/nv-breadcrumbs.cjs.entry.js +4 -5
- package/dist/cjs/nv-button.cjs.entry.js +10 -7
- package/dist/cjs/nv-buttongroup.cjs.entry.js +13 -8
- package/dist/cjs/nv-calendar.cjs.entry.js +27 -11
- package/dist/cjs/nv-col.cjs.entry.js +4 -5
- package/dist/cjs/nv-datagrid.cjs.entry.js +47 -185
- package/dist/cjs/nv-datagridcolumn.cjs.entry.js +2 -3
- package/dist/cjs/nv-dialog.cjs.entry.js +19 -21
- package/dist/cjs/nv-dialogfooter_2.cjs.entry.js +11 -30
- package/dist/cjs/nv-drawer.cjs.entry.js +19 -20
- package/dist/cjs/nv-drawerfooter_2.cjs.entry.js +11 -30
- package/dist/cjs/nv-fieldcheckbox.cjs.entry.js +10 -9
- package/dist/cjs/nv-fielddate.cjs.entry.js +15 -14
- package/dist/cjs/nv-fielddaterange.cjs.entry.js +15 -14
- package/dist/cjs/nv-fielddropdown.cjs.entry.js +17 -16
- package/dist/cjs/nv-fielddropdownitem.cjs.entry.js +5 -9
- package/dist/cjs/nv-fieldmultiselect.cjs.entry.js +12 -9
- package/dist/cjs/nv-fieldnumber.cjs.entry.js +10 -9
- package/dist/cjs/nv-fieldpassword.cjs.entry.js +10 -9
- package/dist/cjs/nv-fieldradio.cjs.entry.js +9 -8
- package/dist/cjs/nv-fieldselect.cjs.entry.js +20 -13
- package/dist/cjs/nv-fieldslider.cjs.entry.js +33 -16
- package/dist/cjs/nv-fieldtext.cjs.entry.js +7 -8
- package/dist/cjs/nv-fieldtextarea.cjs.entry.js +15 -10
- package/dist/cjs/nv-fieldtime.cjs.entry.js +15 -10
- package/dist/cjs/nv-icon.cjs.entry.js +4 -5
- package/dist/cjs/nv-iconbutton_2.cjs.entry.js +13 -10
- package/dist/cjs/nv-menu.cjs.entry.js +9 -14
- package/dist/cjs/nv-menuitem.cjs.entry.js +4 -6
- package/dist/cjs/nv-notification-bullet.cjs.entry.js +3 -4
- package/dist/cjs/nv-notification.cjs.entry.js +4 -5
- package/dist/cjs/nv-notificationcontainer.cjs.entry.js +4 -5
- package/dist/cjs/nv-paginationtable.cjs.entry.js +228 -0
- package/dist/cjs/nv-popover.cjs.entry.js +105 -34
- package/dist/cjs/nv-row.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebar.cjs.entry.js +10 -7
- package/dist/cjs/nv-sidebarcontent.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebardivider.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarfooter.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebargroup.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarheader.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarlogo.cjs.entry.js +4 -5
- package/dist/cjs/nv-sidebarnavitem.cjs.entry.js +9 -8
- package/dist/cjs/nv-sidebarnavsubitem.cjs.entry.js +4 -5
- package/dist/cjs/nv-split.cjs.entry.js +10 -7
- package/dist/cjs/nv-stack.cjs.entry.js +4 -5
- package/dist/cjs/nv-table.cjs.entry.js +4 -5
- package/dist/cjs/nv-tableheader.cjs.entry.js +4 -5
- package/dist/cjs/nv-toggle.cjs.entry.js +8 -7
- package/dist/cjs/nv-togglebutton.cjs.entry.js +4 -6
- package/dist/cjs/nv-togglebuttongroup.cjs.entry.js +13 -10
- package/dist/cjs/nv-tooltip.cjs.entry.js +10 -10
- package/dist/cjs/slide.animation-Cb3tpLQv.js +0 -3
- package/dist/cjs/style-value-types.es-B1vLqX9m.js +0 -3
- package/dist/cjs/timeline.animation-KteJaZPb.js +0 -3
- package/dist/cjs/uri.utils-DiMLQx64.js +0 -3
- package/dist/cjs/v4-C1vaJ4yP.js +0 -3
- package/dist/collection/animations/collapse.animation.js +0 -1
- package/dist/collection/animations/fade.animation.js +0 -1
- package/dist/collection/animations/grow.animation.js +0 -1
- package/dist/collection/animations/index.js +0 -1
- package/dist/collection/animations/slide.animation.js +0 -1
- package/dist/collection/animations/timeline.animation.js +0 -1
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js +1 -4
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js +2 -4
- package/dist/collection/components/nv-alert/nv-alert.docs.js +0 -1
- package/dist/collection/components/nv-alert/nv-alert.js +4 -3
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js +2 -2
- package/dist/collection/components/nv-badge/nv-badge.docs.js +0 -1
- package/dist/collection/components/nv-badge/nv-badge.js +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js +12 -10
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.css +0 -3
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js +1 -2
- package/dist/collection/components/nv-button/nv-button.docs.js +0 -1
- package/dist/collection/components/nv-button/nv-button.js +7 -5
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js +5 -4
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.utils.js +0 -1
- package/dist/collection/components/nv-buttongroup/test/nv-buttongroup.utils.test.js +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.css +110 -1
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js +9 -3
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-actions.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-grid.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-header.js +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-shortcuts.js +0 -1
- package/dist/collection/components/nv-calendar/partials/day-cell.js +0 -1
- package/dist/collection/components/nv-calendar/partials/index.js +0 -1
- package/dist/collection/components/nv-calendar/partials/week-numbers.js +0 -1
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-actions.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-grid.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-header.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-shortcuts.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/day-cell.logic.test.js +0 -1
- package/dist/collection/components/nv-calendar/test/partials/week-numbers.logic.test.js +0 -1
- package/dist/collection/components/nv-col/nv-col.docs.js +0 -1
- package/dist/collection/components/nv-col/nv-col.js +1 -2
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js +6 -5
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js +1 -2
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js +0 -7
- package/dist/collection/components/nv-dialog/nv-dialog.js +17 -45
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js +8 -15
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js +1 -13
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js +13 -16
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js +8 -15
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js +1 -13
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js +6 -6
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js +6 -9
- package/dist/collection/components/nv-fielddate/test/nv-fielddate.logic.test.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js +6 -9
- package/dist/collection/components/nv-fielddaterange/test/nv-fielddaterange.logic.test.js +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js +16 -13
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js +3 -7
- package/dist/collection/components/nv-fielddropdownitem/styles/nv-fielddropdownitem.css +78 -8
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js +1 -3
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js +5 -6
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js +4 -5
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js +7 -7
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js +5 -5
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js +5 -6
- package/dist/collection/components/nv-fieldselect/styles/nv-fieldselect.css +90 -7
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js +3 -4
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js +0 -1
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js +0 -1
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js +7 -7
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js +3 -4
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js +3 -4
- package/dist/collection/components/nv-fieldtime/utils/format-utils.js +0 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js +0 -1
- package/dist/collection/components/nv-icon/nv-icon.js +7 -5
- package/dist/collection/components/nv-icon/nv-icons.js +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js +11 -7
- package/dist/collection/components/nv-loader/nv-loader.docs.js +0 -1
- package/dist/collection/components/nv-loader/nv-loader.js +5 -4
- package/dist/collection/components/nv-menu/nv-menu.docs.js +0 -1
- package/dist/collection/components/nv-menu/nv-menu.js +14 -12
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js +4 -5
- package/dist/collection/components/nv-notification/nv-notification.docs.js +0 -1
- package/dist/collection/components/nv-notification/nv-notification.js +5 -4
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js +3 -3
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.css +17 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.docs.js +248 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.js +537 -0
- package/dist/collection/components/nv-paginationtable/nv-paginationtable.utils.js +64 -0
- package/dist/collection/components/nv-paginationtable/test/nv-paginationtable.utils.test.js +361 -0
- package/dist/collection/components/nv-popover/nv-popover.docs.js +0 -1
- package/dist/collection/components/nv-popover/nv-popover.js +19 -14
- package/dist/collection/components/nv-row/nv-row.docs.js +0 -1
- package/dist/collection/components/nv-row/nv-row.js +1 -2
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js +1 -2
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js +1 -2
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js +1 -2
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js +1 -2
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js +1 -2
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js +1 -2
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js +1 -2
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js +6 -6
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js +1 -2
- package/dist/collection/components/nv-split/nv-split.docs.js +0 -1
- package/dist/collection/components/nv-split/nv-split.js +1 -2
- package/dist/collection/components/nv-stack/nv-stack.docs.js +0 -1
- package/dist/collection/components/nv-stack/nv-stack.js +1 -2
- package/dist/collection/components/nv-table/nv-table.docs.js +0 -1
- package/dist/collection/components/nv-table/nv-table.js +1 -2
- package/dist/collection/components/nv-table/nv-table.utils.js +0 -1
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js +1 -2
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js +4 -4
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js +5 -5
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js +5 -6
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js +20 -13
- package/dist/collection/index.js +0 -1
- package/dist/collection/interfaces/Column.js +0 -1
- package/dist/collection/interfaces/ColumnConfig.js +0 -1
- package/dist/collection/interfaces/localization.js +0 -1
- package/dist/collection/templates/navigation.docs.js +0 -1
- package/dist/collection/utils/class.utils.js +0 -1
- package/dist/collection/utils/constants.js +0 -1
- package/dist/collection/utils/dom.utils.js +8 -1
- package/dist/collection/utils/events.utils.js +0 -1
- package/dist/collection/utils/i18n.utils.js +0 -1
- package/dist/collection/utils/input.utils.js +0 -1
- package/dist/collection/utils/search-engine/engine.js +0 -1
- package/dist/collection/utils/search-engine/guards.js +0 -1
- package/dist/collection/utils/search-engine/index.js +0 -1
- package/dist/collection/utils/search-engine/indexer.js +0 -1
- package/dist/collection/utils/search-engine/normalize.js +0 -1
- package/dist/collection/utils/search-engine/strategies/fuzzy.js +0 -1
- package/dist/collection/utils/search-engine/strategies/smart.js +0 -1
- package/dist/collection/utils/search-engine/strategies/strict.js +0 -1
- package/dist/collection/utils/search-engine/test/engine.test.js +0 -1
- package/dist/collection/utils/search-engine/test/guards.test.js +0 -1
- package/dist/collection/utils/search-engine/test/indexer.test.js +0 -1
- package/dist/collection/utils/search-engine/test/normalize.test.js +0 -1
- package/dist/collection/utils/search-engine/test/strategies.test.js +0 -1
- package/dist/collection/utils/search-engine/types.js +0 -1
- package/dist/collection/utils/search-engine/worker/index.js +0 -1
- package/dist/collection/utils/search-engine/worker/search.worker.js +0 -1
- package/dist/collection/utils/search-engine/worker/worker-client.js +0 -1
- package/dist/collection/utils/string.utils.js +0 -1
- package/dist/collection/utils/test/class.utils.test.js +0 -1
- package/dist/collection/utils/test/dom.utils.test.js +24 -2
- package/dist/collection/utils/test/i18n.utils.test.js +0 -1
- package/dist/collection/utils/test/input.utils.test.js +0 -1
- package/dist/collection/utils/test/uri.utils.test.js +0 -1
- package/dist/collection/utils/uri.utils.js +0 -1
- package/dist/components/index.d.ts +2 -0
- package/dist/components/index.js +1 -583
- package/dist/components/nv-accordion-item.js +1 -9
- package/dist/components/nv-accordion.js +1 -229
- package/dist/components/nv-alert.js +1 -211
- package/dist/components/nv-avatar.js +1 -105
- package/dist/components/nv-badge.js +1 -9
- package/dist/components/nv-breadcrumb.js +1 -80
- package/dist/components/nv-breadcrumbs.js +1 -39
- package/dist/components/nv-button.js +1 -9
- package/dist/components/nv-buttongroup.js +1 -223
- package/dist/components/nv-calendar.js +1 -9
- package/dist/components/nv-col.js +1 -58
- package/dist/components/nv-datagrid.js +1 -4580
- package/dist/components/nv-datagridcolumn.js +1 -47
- package/dist/components/nv-dialog.js +1 -362
- package/dist/components/nv-dialogfooter.js +1 -9
- package/dist/components/nv-dialogheader.js +1 -9
- package/dist/components/nv-drawer.js +1 -507
- package/dist/components/nv-drawerfooter.js +1 -9
- package/dist/components/nv-drawerheader.js +1 -9
- package/dist/components/nv-fieldcheckbox.js +1 -9
- package/dist/components/nv-fielddate.js +1 -507
- package/dist/components/nv-fielddaterange.js +1 -670
- package/dist/components/nv-fielddropdown.js +1 -768
- package/dist/components/nv-fielddropdownitem.js +1 -9
- package/dist/components/nv-fielddropdownitemcheck.js +1 -9
- package/dist/components/nv-fieldmultiselect.js +1 -1587
- package/dist/components/nv-fieldnumber.js +1 -9
- package/dist/components/nv-fieldpassword.js +1 -227
- package/dist/components/nv-fieldradio.js +1 -137
- package/dist/components/nv-fieldselect.js +1 -460
- package/dist/components/nv-fieldslider.js +1 -801
- package/dist/components/nv-fieldtext.js +1 -9
- package/dist/components/nv-fieldtextarea.js +1 -282
- package/dist/components/nv-fieldtime.js +1 -1189
- package/dist/components/nv-icon.js +1 -9
- package/dist/components/nv-iconbutton.js +1 -9
- package/dist/components/nv-loader.js +1 -9
- package/dist/components/nv-menu.js +1 -254
- package/dist/components/nv-menuitem.js +1 -9
- package/dist/components/nv-notification-bullet.js +1 -9
- package/dist/components/nv-notification.js +1 -212
- package/dist/components/nv-notificationcontainer.js +1 -61
- package/dist/components/nv-paginationtable.d.ts +11 -0
- package/dist/components/nv-paginationtable.js +1 -0
- package/dist/components/nv-popover.js +1 -9
- package/dist/components/nv-row.js +1 -40
- package/dist/components/nv-sidebar.js +1 -210
- package/dist/components/nv-sidebarcontent.js +1 -40
- package/dist/components/nv-sidebardivider.js +1 -40
- package/dist/components/nv-sidebarfooter.js +1 -40
- package/dist/components/nv-sidebargroup.js +1 -43
- package/dist/components/nv-sidebarheader.js +1 -40
- package/dist/components/nv-sidebarlogo.js +1 -54
- package/dist/components/nv-sidebarnavitem.js +1 -336
- package/dist/components/nv-sidebarnavsubitem.js +1 -55
- package/dist/components/nv-split.js +1 -370
- package/dist/components/nv-stack.js +1 -55
- package/dist/components/nv-table.js +1 -261
- package/dist/components/nv-tableheader.js +1 -114
- package/dist/components/nv-toggle.js +1 -111
- package/dist/components/nv-togglebutton.js +1 -91
- package/dist/components/nv-togglebuttongroup.js +1 -200
- package/dist/components/nv-tooltip.js +1 -9
- package/dist/components/p-9xYwU7ku.js +1 -724
- package/dist/components/p-B6GgGra-.js +1 -29
- package/dist/components/p-BJSrJH9I.js +1 -0
- package/dist/components/p-BReL3Lsa.js +1 -286
- package/dist/components/p-BdYh22OP.js +1 -57
- package/dist/components/p-Bg-b6OWh.js +1 -0
- package/dist/components/p-BkqfOhkU.js +1 -0
- package/dist/components/p-BqRuoNHJ.js +1 -0
- package/dist/components/p-C-MlXMFg.js +1 -0
- package/dist/components/p-C6LzzMQm.js +1 -0
- package/dist/components/p-CGXDiomF.js +1 -0
- package/dist/components/p-CPjfMClF.js +1 -0
- package/dist/components/p-C_a7VT_H.js +1 -0
- package/dist/components/p-Cfr9uriB.js +1 -0
- package/dist/components/p-CgHCo_Ho.js +1 -42
- package/dist/components/p-ChRIFm7p.js +1 -0
- package/dist/components/p-ChV9xqsO.js +1 -6
- package/dist/components/p-CnI0auJM.js +1 -24
- package/dist/components/p-Cq5FI49y.js +1 -0
- package/dist/components/p-CskCUxuV.js +1 -0
- package/dist/components/p-CuXVGECR.js +1 -0
- package/dist/components/p-Cw5yG8cD.js +9 -0
- package/dist/components/p-D02w_Ru6.js +1 -91
- package/dist/components/p-D1C_pu0E.js +1 -218
- package/dist/components/p-D2otK4Ce.js +1 -91
- package/dist/components/p-D3eWMME9.js +1 -534
- package/dist/components/p-D7xBylwr.js +1 -0
- package/dist/components/p-D_JRZMC-.js +1 -0
- package/dist/components/p-DkC2jlrw.js +1 -0
- package/dist/components/p-Dz1GUhVy.js +15 -1119
- package/dist/components/p-IlwlcG9l.js +1 -2485
- package/dist/components/p-Nf-dwTsx.js +1 -0
- package/dist/components/p-iXsbKJzR.js +2 -0
- package/dist/components/p-mWVXEsBF.js +1 -0
- package/dist/components/p-r3_atQ9r.js +1 -0
- package/dist/components/p-tJDdN0lo.js +1 -0
- package/dist/components/p-yHGZRC6Q.js +1 -0
- package/dist/esm/_commonjsHelpers-B85MJLTf.js +0 -3
- package/dist/esm/clsx-ChV9xqsO.js +0 -3
- package/dist/esm/collapse.animation-DZDm0vSK.js +0 -3
- package/dist/esm/constants-BReL3Lsa.js +0 -3
- package/dist/esm/dom.utils-CuXVGECR.js +173 -0
- package/dist/esm/events.utils-B6GgGra-.js +0 -3
- package/dist/esm/fade.animation-DcRL9lcm.js +0 -3
- package/dist/esm/grow.animation-D7ep_aVl.js +0 -3
- package/dist/esm/i18n.utils-IlwlcG9l.js +0 -3
- package/dist/esm/index-S-IZ4AN_.js +4796 -0
- package/dist/esm/index.esm-D3eWMME9.js +0 -3
- package/dist/esm/index.js +0 -1
- package/dist/esm/inputmask-CSo292ul.js +0 -3
- package/dist/esm/loader.js +3 -5
- package/dist/esm/native.js +32 -7
- package/dist/esm/nv-accordion-item.entry.js +8 -8
- package/dist/esm/nv-accordion.entry.js +10 -9
- package/dist/esm/nv-alert.entry.js +6 -5
- package/dist/esm/nv-avatar.entry.js +3 -4
- package/dist/esm/nv-badge_2.entry.js +15 -11
- package/dist/esm/nv-breadcrumb.entry.js +14 -12
- package/dist/esm/nv-breadcrumbs.entry.js +4 -5
- package/dist/esm/nv-button.entry.js +10 -7
- package/dist/esm/nv-buttongroup.entry.js +13 -8
- package/dist/esm/nv-calendar.entry.js +27 -11
- package/dist/esm/nv-col.entry.js +4 -5
- package/dist/esm/nv-datagrid.entry.js +42 -180
- package/dist/esm/nv-datagridcolumn.entry.js +2 -3
- package/dist/esm/nv-dialog.entry.js +19 -21
- package/dist/esm/nv-dialogfooter_2.entry.js +11 -30
- package/dist/esm/nv-drawer.entry.js +19 -20
- package/dist/esm/nv-drawerfooter_2.entry.js +11 -30
- package/dist/esm/nv-fieldcheckbox.entry.js +10 -9
- package/dist/esm/nv-fielddate.entry.js +15 -14
- package/dist/esm/nv-fielddaterange.entry.js +15 -14
- package/dist/esm/nv-fielddropdown.entry.js +17 -16
- package/dist/esm/nv-fielddropdownitem.entry.js +5 -9
- package/dist/esm/nv-fieldmultiselect.entry.js +12 -9
- package/dist/esm/nv-fieldnumber.entry.js +10 -9
- package/dist/esm/nv-fieldpassword.entry.js +10 -9
- package/dist/esm/nv-fieldradio.entry.js +9 -8
- package/dist/esm/nv-fieldselect.entry.js +20 -13
- package/dist/esm/nv-fieldslider.entry.js +33 -16
- package/dist/esm/nv-fieldtext.entry.js +7 -8
- package/dist/esm/nv-fieldtextarea.entry.js +15 -10
- package/dist/esm/nv-fieldtime.entry.js +15 -10
- package/dist/esm/nv-icon.entry.js +4 -5
- package/dist/esm/nv-iconbutton_2.entry.js +13 -10
- package/dist/esm/nv-menu.entry.js +9 -14
- package/dist/esm/nv-menuitem.entry.js +4 -6
- package/dist/esm/nv-notification-bullet.entry.js +3 -4
- package/dist/esm/nv-notification.entry.js +4 -5
- package/dist/esm/nv-notificationcontainer.entry.js +4 -5
- package/dist/esm/nv-paginationtable.entry.js +226 -0
- package/dist/esm/nv-popover.entry.js +105 -34
- package/dist/esm/nv-row.entry.js +4 -5
- package/dist/esm/nv-sidebar.entry.js +10 -7
- package/dist/esm/nv-sidebarcontent.entry.js +4 -5
- package/dist/esm/nv-sidebardivider.entry.js +4 -5
- package/dist/esm/nv-sidebarfooter.entry.js +4 -5
- package/dist/esm/nv-sidebargroup.entry.js +4 -5
- package/dist/esm/nv-sidebarheader.entry.js +4 -5
- package/dist/esm/nv-sidebarlogo.entry.js +4 -5
- package/dist/esm/nv-sidebarnavitem.entry.js +9 -8
- package/dist/esm/nv-sidebarnavsubitem.entry.js +4 -5
- package/dist/esm/nv-split.entry.js +10 -7
- package/dist/esm/nv-stack.entry.js +4 -5
- package/dist/esm/nv-table.entry.js +4 -5
- package/dist/esm/nv-tableheader.entry.js +4 -5
- package/dist/esm/nv-toggle.entry.js +8 -7
- package/dist/esm/nv-togglebutton.entry.js +4 -6
- package/dist/esm/nv-togglebuttongroup.entry.js +13 -10
- package/dist/esm/nv-tooltip.entry.js +10 -10
- package/dist/esm/slide.animation-CmH5d1of.js +0 -3
- package/dist/esm/style-value-types.es-xlgmw4x8.js +0 -3
- package/dist/esm/timeline.animation-CgHCo_Ho.js +0 -3
- package/dist/esm/uri.utils-CnI0auJM.js +0 -3
- package/dist/esm/v4-BdYh22OP.js +0 -3
- package/dist/lib/generators/angular-output.js +0 -1
- package/dist/lib/generators/docs-blazor.js +0 -1
- package/dist/lib/generators/vue-output.js +0 -1
- package/dist/lib/utils/componentBinding.js +0 -1
- package/dist/lib/utils/parseToCSharpTypes.js +0 -1
- package/dist/lib/utils/spread.js +0 -1
- package/dist/lib/utils/test/parseToCSharpTypes.test.js +0 -1
- package/dist/native/index.esm.js +1 -2
- package/dist/native/native.css +1 -1
- package/dist/native/native.esm.js +1 -2
- package/dist/native/p-00b80d2b.entry.js +1 -0
- package/dist/native/p-01d09dfa.entry.js +1 -0
- package/dist/native/p-0242699e.entry.js +1 -0
- package/dist/native/p-09b88c8d.entry.js +1 -0
- package/dist/native/p-13YSIyGW.js +1 -2
- package/dist/native/p-184b4f0d.entry.js +1 -0
- package/dist/native/p-1a1a6bbf.entry.js +1 -0
- package/dist/native/p-1b37bf6c.entry.js +1 -0
- package/dist/native/p-1bf1a213.entry.js +1 -0
- package/dist/native/p-1c86c5b8.entry.js +1 -0
- package/dist/native/p-2106dfbd.entry.js +1 -0
- package/dist/native/p-223814fe.entry.js +1 -0
- package/dist/native/p-2623b212.entry.js +1 -0
- package/dist/native/p-29f0730f.entry.js +1 -0
- package/dist/native/p-2b7e621a.entry.js +1 -0
- package/dist/native/p-32cbc18b.entry.js +1 -0
- package/dist/native/p-34cce087.entry.js +1 -0
- package/dist/native/p-38e981f2.entry.js +1 -0
- package/dist/native/p-3ac56d5f.entry.js +1 -0
- package/dist/native/p-3bd49efe.entry.js +1 -0
- package/dist/native/p-3c09e565.entry.js +1 -0
- package/dist/native/p-3e949805.entry.js +1 -0
- package/dist/native/p-4016851b.entry.js +1 -0
- package/dist/native/p-4725d9aa.entry.js +1 -0
- package/dist/native/p-4bda5842.entry.js +1 -0
- package/dist/native/p-4c29c4c7.entry.js +1 -0
- package/dist/native/p-5cbf5973.entry.js +1 -0
- package/dist/native/p-5fb6d986.entry.js +1 -0
- package/dist/native/p-6a548776.entry.js +1 -0
- package/dist/native/p-6ba310e8.entry.js +1 -0
- package/dist/native/p-6ccea920.entry.js +1 -0
- package/dist/native/p-6e9b95fa.entry.js +1 -0
- package/dist/native/p-6f368c8d.entry.js +1 -0
- package/dist/native/p-70fa3c6b.entry.js +1 -0
- package/dist/native/p-7f3c3c29.entry.js +1 -0
- package/dist/native/p-84202d8a.entry.js +1 -0
- package/dist/native/p-87f35ce1.entry.js +1 -0
- package/dist/native/p-91f71346.entry.js +1 -0
- package/dist/native/p-98de77f8.entry.js +1 -0
- package/dist/native/p-98ea927d.entry.js +1 -0
- package/dist/native/p-99051651.entry.js +1 -0
- package/dist/native/p-997a2268.entry.js +1 -0
- package/dist/native/p-B6GgGra-.js +1 -2
- package/dist/native/p-B85MJLTf.js +1 -2
- package/dist/native/p-BReL3Lsa.js +1 -2
- package/dist/native/p-BdYh22OP.js +1 -2
- package/dist/native/p-Blc6XEY7.js +1 -2
- package/dist/native/p-CgHCo_Ho.js +1 -2
- package/dist/native/p-ChV9xqsO.js +1 -2
- package/dist/native/p-CnI0auJM.js +1 -2
- package/dist/native/p-CuXVGECR.js +1 -0
- package/dist/native/p-D3eWMME9.js +1 -2
- package/dist/native/p-DmUOtOcY.js +1 -2
- package/dist/native/p-Hfc8Oh0x.js +3 -4
- package/dist/native/p-IlwlcG9l.js +1 -2
- package/dist/native/p-S-IZ4AN_.js +2 -0
- package/dist/native/p-a60660f6.entry.js +1 -0
- package/dist/native/p-a6287e55.entry.js +1 -0
- package/dist/native/p-a813f497.entry.js +1 -0
- package/dist/native/p-ad05cef2.entry.js +1 -0
- package/dist/native/p-b65f3418.entry.js +1 -0
- package/dist/native/p-bf8b0be2.entry.js +1 -0
- package/dist/native/p-ca3b996b.entry.js +1 -0
- package/dist/native/p-d9c1287c.entry.js +1 -0
- package/dist/native/p-d9cebb66.entry.js +1 -0
- package/dist/native/p-da417f83.entry.js +1 -0
- package/dist/native/p-df59dee0.entry.js +1 -0
- package/dist/native/p-e1021e2c.entry.js +1 -0
- package/dist/native/p-e371a958.entry.js +1 -0
- package/dist/native/p-e5dbacf6.entry.js +1 -0
- package/dist/native/p-ed19f3dc.entry.js +1 -0
- package/dist/native/p-f1b6d43b.entry.js +1 -0
- package/dist/native/p-ff7eae44.entry.js +1 -0
- package/dist/native/p-sqVK8yoD.js +1 -2
- package/dist/native/p-xlgmw4x8.js +2 -3
- package/dist/types/components/nv-breadcrumb/nv-breadcrumb.d.ts +4 -2
- package/dist/types/components/nv-dialog/nv-dialog.d.ts +4 -9
- package/dist/types/components/nv-dialogfooter/nv-dialogfooter.d.ts +3 -4
- package/dist/types/components/nv-dialogheader/nv-dialogheader.d.ts +0 -3
- package/dist/types/components/nv-drawer/nv-drawer.d.ts +3 -3
- package/dist/types/components/nv-drawerfooter/nv-drawerfooter.d.ts +3 -4
- package/dist/types/components/nv-drawerheader/nv-drawerheader.d.ts +0 -3
- package/dist/types/components/nv-fielddropdown/nv-fielddropdown.d.ts +4 -0
- package/dist/types/components/nv-fielddropdownitem/nv-fielddropdownitem.d.ts +2 -3
- package/dist/types/components/nv-menu/nv-menu.d.ts +5 -1
- package/dist/types/components/nv-paginationtable/nv-paginationtable.d.ts +112 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.docs.d.ts +4 -0
- package/dist/types/components/nv-paginationtable/nv-paginationtable.utils.d.ts +61 -0
- package/dist/types/components/nv-paginationtable/test/nv-paginationtable.utils.test.d.ts +1 -0
- package/dist/types/components/nv-popover/nv-popover.d.ts +2 -3
- package/dist/types/components/nv-tooltip/nv-tooltip.d.ts +4 -2
- package/dist/types/components.d.ts +172 -3
- package/dist/types/stencil-public-runtime.d.ts +87 -4
- package/dist/types/utils/dom.utils.d.ts +6 -0
- package/dist/types/utils/events.utils.d.ts +2 -2
- package/dist/vscode-data.json +636 -587
- package/hydrate/index.d.ts +12 -0
- package/hydrate/index.js +6969 -1224
- package/hydrate/index.mjs +6968 -1225
- package/package.json +10 -8
- package/dist/cjs/_commonjsHelpers-CFO10eej.js.map +0 -1
- package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
- package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
- package/dist/cjs/clsx-BtxeOLZW.js.map +0 -1
- package/dist/cjs/collapse.animation-CcG0GAWk.js.map +0 -1
- package/dist/cjs/constants-BugGJYqL.js.map +0 -1
- package/dist/cjs/events.utils-BE6R5q9C.js.map +0 -1
- package/dist/cjs/fade.animation-BQSqXXOJ.js.map +0 -1
- package/dist/cjs/grow.animation-ynu_HmA_.js.map +0 -1
- package/dist/cjs/i18n.utils-ku0bScip.js.map +0 -1
- package/dist/cjs/index-B1na8x6M.js +0 -2841
- package/dist/cjs/index-B1na8x6M.js.map +0 -1
- package/dist/cjs/index.cjs.js.map +0 -1
- package/dist/cjs/index.esm-CG1TVKfu.js.map +0 -1
- package/dist/cjs/inputmask-DtXnpVWa.js.map +0 -1
- package/dist/cjs/loader.cjs.js.map +0 -1
- package/dist/cjs/native.cjs.js.map +0 -1
- package/dist/cjs/nv-accordion-item.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-accordion.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-alert.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-avatar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-badge.nv-fielddropdownitemcheck.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-breadcrumb.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-breadcrumbs.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-button.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-buttongroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-calendar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-col.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-datagrid.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-datagridcolumn.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-dialog.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-dialogfooter.nv-dialogheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-drawer.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-drawerfooter.nv-drawerheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldcheckbox.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddate.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddaterange.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddropdown.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fielddropdownitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldmultiselect.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldnumber.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldpassword.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldradio.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldselect.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldslider.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtext.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtextarea.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-fieldtime.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-icon.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-iconbutton.nv-loader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-menu.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-menuitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notification-bullet.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notification.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-notificationcontainer.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-popover.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-row.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebar.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarcontent.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebardivider.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarfooter.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebargroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarlogo.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarnavitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-sidebarnavsubitem.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-split.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-stack.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-table.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-tableheader.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-toggle.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-togglebutton.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-togglebuttongroup.entry.cjs.js.map +0 -1
- package/dist/cjs/nv-tooltip.entry.cjs.js.map +0 -1
- package/dist/cjs/slide.animation-Cb3tpLQv.js.map +0 -1
- package/dist/cjs/style-value-types.es-B1vLqX9m.js.map +0 -1
- package/dist/cjs/timeline.animation-KteJaZPb.js.map +0 -1
- package/dist/cjs/uri.utils-DiMLQx64.js.map +0 -1
- package/dist/cjs/v4-C1vaJ4yP.js.map +0 -1
- package/dist/collection/animations/collapse.animation.js.map +0 -1
- package/dist/collection/animations/fade.animation.js.map +0 -1
- package/dist/collection/animations/grow.animation.js.map +0 -1
- package/dist/collection/animations/index.js.map +0 -1
- package/dist/collection/animations/slide.animation.js.map +0 -1
- package/dist/collection/animations/timeline.animation.js.map +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.docs.js.map +0 -1
- package/dist/collection/components/nv-accordion/nv-accordion.js.map +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.docs.js.map +0 -1
- package/dist/collection/components/nv-accordion-item/nv-accordion-item.js.map +0 -1
- package/dist/collection/components/nv-alert/nv-alert.docs.js.map +0 -1
- package/dist/collection/components/nv-alert/nv-alert.js.map +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.docs.js.map +0 -1
- package/dist/collection/components/nv-avatar/nv-avatar.js.map +0 -1
- package/dist/collection/components/nv-badge/nv-badge.docs.js.map +0 -1
- package/dist/collection/components/nv-badge/nv-badge.js.map +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.docs.js.map +0 -1
- package/dist/collection/components/nv-breadcrumb/nv-breadcrumb.js.map +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.docs.js.map +0 -1
- package/dist/collection/components/nv-breadcrumbs/nv-breadcrumbs.js.map +0 -1
- package/dist/collection/components/nv-button/nv-button.docs.js.map +0 -1
- package/dist/collection/components/nv-button/nv-button.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.docs.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/nv-buttongroup.utils.js.map +0 -1
- package/dist/collection/components/nv-buttongroup/test/nv-buttongroup.utils.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.docs.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.js.map +0 -1
- package/dist/collection/components/nv-calendar/nv-calendar.utils.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-actions.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-grid.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-header.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/calendar-shortcuts.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/day-cell.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/index.js.map +0 -1
- package/dist/collection/components/nv-calendar/partials/week-numbers.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/nv-calendar.utils.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-actions.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-grid.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-header.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/calendar-shortcuts.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/day-cell.logic.test.js.map +0 -1
- package/dist/collection/components/nv-calendar/test/partials/week-numbers.logic.test.js.map +0 -1
- package/dist/collection/components/nv-col/nv-col.docs.js.map +0 -1
- package/dist/collection/components/nv-col/nv-col.js.map +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.docs.js.map +0 -1
- package/dist/collection/components/nv-datagrid/nv-datagrid.js.map +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.docs.js.map +0 -1
- package/dist/collection/components/nv-datagridcolumn/nv-datagridcolumn.js.map +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.docs.js.map +0 -1
- package/dist/collection/components/nv-dialog/nv-dialog.js.map +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-dialogfooter/nv-dialogfooter.js.map +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.docs.js.map +0 -1
- package/dist/collection/components/nv-dialogheader/nv-dialogheader.js.map +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.docs.js.map +0 -1
- package/dist/collection/components/nv-drawer/nv-drawer.js.map +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-drawerfooter/nv-drawerfooter.js.map +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.docs.js.map +0 -1
- package/dist/collection/components/nv-drawerheader/nv-drawerheader.js.map +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldcheckbox/nv-fieldcheckbox.js.map +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddate/nv-fielddate.js.map +0 -1
- package/dist/collection/components/nv-fielddate/test/nv-fielddate.logic.test.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/nv-fielddaterange.js.map +0 -1
- package/dist/collection/components/nv-fielddaterange/test/nv-fielddaterange.logic.test.js.map +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdown/nv-fielddropdown.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitem/nv-fielddropdownitem.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.docs.js.map +0 -1
- package/dist/collection/components/nv-fielddropdownitemcheck/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldmultiselect/nv-fieldmultiselect.js.map +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldnumber/nv-fieldnumber.js.map +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldpassword/nv-fieldpassword.js.map +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldradio/nv-fieldradio.js.map +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldselect/nv-fieldselect.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/nv-fieldslider.utils.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/field-input.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/range-thumb.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/single-thumb.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/partials/tick-marks.js.map +0 -1
- package/dist/collection/components/nv-fieldslider/test/nv-fieldslider.utils.test.js.map +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtext/nv-fieldtext.js.map +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtextarea/nv-fieldtextarea.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.docs.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/nv-fieldtime.js.map +0 -1
- package/dist/collection/components/nv-fieldtime/utils/format-utils.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icon.docs.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icon.js.map +0 -1
- package/dist/collection/components/nv-icon/nv-icons.js.map +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.docs.js.map +0 -1
- package/dist/collection/components/nv-iconbutton/nv-iconbutton.js.map +0 -1
- package/dist/collection/components/nv-loader/nv-loader.docs.js.map +0 -1
- package/dist/collection/components/nv-loader/nv-loader.js.map +0 -1
- package/dist/collection/components/nv-menu/nv-menu.docs.js.map +0 -1
- package/dist/collection/components/nv-menu/nv-menu.js.map +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.docs.js.map +0 -1
- package/dist/collection/components/nv-menuitem/nv-menuitem.js.map +0 -1
- package/dist/collection/components/nv-notification/nv-notification.docs.js.map +0 -1
- package/dist/collection/components/nv-notification/nv-notification.js.map +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.docs.js.map +0 -1
- package/dist/collection/components/nv-notification-bullet/nv-notification-bullet.js.map +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.docs.js.map +0 -1
- package/dist/collection/components/nv-notificationcontainer/nv-notificationcontainer.js.map +0 -1
- package/dist/collection/components/nv-popover/nv-popover.docs.js.map +0 -1
- package/dist/collection/components/nv-popover/nv-popover.js.map +0 -1
- package/dist/collection/components/nv-row/nv-row.docs.js.map +0 -1
- package/dist/collection/components/nv-row/nv-row.js.map +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebar/nv-sidebar.js.map +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarcontent/nv-sidebarcontent.js.map +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebardivider/nv-sidebardivider.js.map +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarfooter/nv-sidebarfooter.js.map +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebargroup/nv-sidebargroup.js.map +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarheader/nv-sidebarheader.js.map +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarlogo/nv-sidebarlogo.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavitem/nv-sidebarnavitem.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.docs.js.map +0 -1
- package/dist/collection/components/nv-sidebarnavsubitem/nv-sidebarnavsubitem.js.map +0 -1
- package/dist/collection/components/nv-split/nv-split.docs.js.map +0 -1
- package/dist/collection/components/nv-split/nv-split.js.map +0 -1
- package/dist/collection/components/nv-stack/nv-stack.docs.js.map +0 -1
- package/dist/collection/components/nv-stack/nv-stack.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.docs.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.js.map +0 -1
- package/dist/collection/components/nv-table/nv-table.utils.js.map +0 -1
- package/dist/collection/components/nv-table/test/nv-table.utils.test.js.map +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.docs.js.map +0 -1
- package/dist/collection/components/nv-tableheader/nv-tableheader.js.map +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.docs.js.map +0 -1
- package/dist/collection/components/nv-toggle/nv-toggle.js.map +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.docs.js.map +0 -1
- package/dist/collection/components/nv-togglebutton/nv-togglebutton.js.map +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.docs.js.map +0 -1
- package/dist/collection/components/nv-togglebuttongroup/nv-togglebuttongroup.js.map +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.docs.js.map +0 -1
- package/dist/collection/components/nv-tooltip/nv-tooltip.js.map +0 -1
- package/dist/collection/index.js.map +0 -1
- package/dist/collection/interfaces/Column.js.map +0 -1
- package/dist/collection/interfaces/ColumnConfig.js.map +0 -1
- package/dist/collection/interfaces/localization.js.map +0 -1
- package/dist/collection/templates/navigation.docs.js.map +0 -1
- package/dist/collection/utils/class.utils.js.map +0 -1
- package/dist/collection/utils/constants.js.map +0 -1
- package/dist/collection/utils/dom.utils.js.map +0 -1
- package/dist/collection/utils/events.utils.js.map +0 -1
- package/dist/collection/utils/i18n.utils.js.map +0 -1
- package/dist/collection/utils/input.utils.js.map +0 -1
- package/dist/collection/utils/search-engine/engine.js.map +0 -1
- package/dist/collection/utils/search-engine/guards.js.map +0 -1
- package/dist/collection/utils/search-engine/index.js.map +0 -1
- package/dist/collection/utils/search-engine/indexer.js.map +0 -1
- package/dist/collection/utils/search-engine/normalize.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/fuzzy.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/smart.js.map +0 -1
- package/dist/collection/utils/search-engine/strategies/strict.js.map +0 -1
- package/dist/collection/utils/search-engine/test/engine.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/guards.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/indexer.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/normalize.test.js.map +0 -1
- package/dist/collection/utils/search-engine/test/strategies.test.js.map +0 -1
- package/dist/collection/utils/search-engine/types.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/index.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/search.worker.js.map +0 -1
- package/dist/collection/utils/search-engine/worker/worker-client.js.map +0 -1
- package/dist/collection/utils/string.utils.js.map +0 -1
- package/dist/collection/utils/test/class.utils.test.js.map +0 -1
- package/dist/collection/utils/test/dom.utils.test.js.map +0 -1
- package/dist/collection/utils/test/i18n.utils.test.js.map +0 -1
- package/dist/collection/utils/test/input.utils.test.js.map +0 -1
- package/dist/collection/utils/test/uri.utils.test.js.map +0 -1
- package/dist/collection/utils/uri.utils.js.map +0 -1
- package/dist/components/index.js.map +0 -1
- package/dist/components/nv-accordion-item.js.map +0 -1
- package/dist/components/nv-accordion.js.map +0 -1
- package/dist/components/nv-alert.js.map +0 -1
- package/dist/components/nv-avatar.js.map +0 -1
- package/dist/components/nv-badge.js.map +0 -1
- package/dist/components/nv-breadcrumb.js.map +0 -1
- package/dist/components/nv-breadcrumbs.js.map +0 -1
- package/dist/components/nv-button.js.map +0 -1
- package/dist/components/nv-buttongroup.js.map +0 -1
- package/dist/components/nv-calendar.js.map +0 -1
- package/dist/components/nv-col.js.map +0 -1
- package/dist/components/nv-datagrid.js.map +0 -1
- package/dist/components/nv-datagridcolumn.js.map +0 -1
- package/dist/components/nv-dialog.js.map +0 -1
- package/dist/components/nv-dialogfooter.js.map +0 -1
- package/dist/components/nv-dialogheader.js.map +0 -1
- package/dist/components/nv-drawer.js.map +0 -1
- package/dist/components/nv-drawerfooter.js.map +0 -1
- package/dist/components/nv-drawerheader.js.map +0 -1
- package/dist/components/nv-fieldcheckbox.js.map +0 -1
- package/dist/components/nv-fielddate.js.map +0 -1
- package/dist/components/nv-fielddaterange.js.map +0 -1
- package/dist/components/nv-fielddropdown.js.map +0 -1
- package/dist/components/nv-fielddropdownitem.js.map +0 -1
- package/dist/components/nv-fielddropdownitemcheck.js.map +0 -1
- package/dist/components/nv-fieldmultiselect.js.map +0 -1
- package/dist/components/nv-fieldnumber.js.map +0 -1
- package/dist/components/nv-fieldpassword.js.map +0 -1
- package/dist/components/nv-fieldradio.js.map +0 -1
- package/dist/components/nv-fieldselect.js.map +0 -1
- package/dist/components/nv-fieldslider.js.map +0 -1
- package/dist/components/nv-fieldtext.js.map +0 -1
- package/dist/components/nv-fieldtextarea.js.map +0 -1
- package/dist/components/nv-fieldtime.js.map +0 -1
- package/dist/components/nv-icon.js.map +0 -1
- package/dist/components/nv-iconbutton.js.map +0 -1
- package/dist/components/nv-loader.js.map +0 -1
- package/dist/components/nv-menu.js.map +0 -1
- package/dist/components/nv-menuitem.js.map +0 -1
- package/dist/components/nv-notification-bullet.js.map +0 -1
- package/dist/components/nv-notification.js.map +0 -1
- package/dist/components/nv-notificationcontainer.js.map +0 -1
- package/dist/components/nv-popover.js.map +0 -1
- package/dist/components/nv-row.js.map +0 -1
- package/dist/components/nv-sidebar.js.map +0 -1
- package/dist/components/nv-sidebarcontent.js.map +0 -1
- package/dist/components/nv-sidebardivider.js.map +0 -1
- package/dist/components/nv-sidebarfooter.js.map +0 -1
- package/dist/components/nv-sidebargroup.js.map +0 -1
- package/dist/components/nv-sidebarheader.js.map +0 -1
- package/dist/components/nv-sidebarlogo.js.map +0 -1
- package/dist/components/nv-sidebarnavitem.js.map +0 -1
- package/dist/components/nv-sidebarnavsubitem.js.map +0 -1
- package/dist/components/nv-split.js.map +0 -1
- package/dist/components/nv-stack.js.map +0 -1
- package/dist/components/nv-table.js.map +0 -1
- package/dist/components/nv-tableheader.js.map +0 -1
- package/dist/components/nv-toggle.js.map +0 -1
- package/dist/components/nv-togglebutton.js.map +0 -1
- package/dist/components/nv-togglebuttongroup.js.map +0 -1
- package/dist/components/nv-tooltip.js.map +0 -1
- package/dist/components/p-9xYwU7ku.js.map +0 -1
- package/dist/components/p-B45HbBWe.js +0 -191
- package/dist/components/p-B45HbBWe.js.map +0 -1
- package/dist/components/p-B5jN7NKA.js +0 -59
- package/dist/components/p-B5jN7NKA.js.map +0 -1
- package/dist/components/p-B6GgGra-.js.map +0 -1
- package/dist/components/p-B7VlEQVW.js +0 -1475
- package/dist/components/p-B7VlEQVW.js.map +0 -1
- package/dist/components/p-B9i3m6rk.js +0 -1941
- package/dist/components/p-B9i3m6rk.js.map +0 -1
- package/dist/components/p-BILd3Ta-.js +0 -209
- package/dist/components/p-BILd3Ta-.js.map +0 -1
- package/dist/components/p-BISctfud.js +0 -214
- package/dist/components/p-BISctfud.js.map +0 -1
- package/dist/components/p-BReL3Lsa.js.map +0 -1
- package/dist/components/p-BVOv1zgq.js +0 -82
- package/dist/components/p-BVOv1zgq.js.map +0 -1
- package/dist/components/p-BdYh22OP.js.map +0 -1
- package/dist/components/p-Bg_l3jn1.js +0 -191
- package/dist/components/p-Bg_l3jn1.js.map +0 -1
- package/dist/components/p-C2QAWGhf.js +0 -88
- package/dist/components/p-C2QAWGhf.js.map +0 -1
- package/dist/components/p-C63Xpg9a.js +0 -2338
- package/dist/components/p-C63Xpg9a.js.map +0 -1
- package/dist/components/p-COnt5ux_.js +0 -51
- package/dist/components/p-COnt5ux_.js.map +0 -1
- package/dist/components/p-Cc7XnqPp.js +0 -260
- package/dist/components/p-Cc7XnqPp.js.map +0 -1
- package/dist/components/p-CgHCo_Ho.js.map +0 -1
- package/dist/components/p-ChV9xqsO.js.map +0 -1
- package/dist/components/p-CnI0auJM.js.map +0 -1
- package/dist/components/p-D02w_Ru6.js.map +0 -1
- package/dist/components/p-D1C_pu0E.js.map +0 -1
- package/dist/components/p-D2otK4Ce.js.map +0 -1
- package/dist/components/p-D3eWMME9.js.map +0 -1
- package/dist/components/p-D6APFL6N.js +0 -243
- package/dist/components/p-D6APFL6N.js.map +0 -1
- package/dist/components/p-DZJHk4fr.js +0 -3759
- package/dist/components/p-DZJHk4fr.js.map +0 -1
- package/dist/components/p-DiUP3TzF.js +0 -140
- package/dist/components/p-DiUP3TzF.js.map +0 -1
- package/dist/components/p-DpDooigg.js +0 -99
- package/dist/components/p-DpDooigg.js.map +0 -1
- package/dist/components/p-Dr-67WvG.js +0 -94
- package/dist/components/p-Dr-67WvG.js.map +0 -1
- package/dist/components/p-DvapDVBj.js +0 -176
- package/dist/components/p-DvapDVBj.js.map +0 -1
- package/dist/components/p-Dz1GUhVy.js.map +0 -1
- package/dist/components/p-IlwlcG9l.js.map +0 -1
- package/dist/components/p-W6vOfMC9.js +0 -63
- package/dist/components/p-W6vOfMC9.js.map +0 -1
- package/dist/components/p-nfYynlVq.js +0 -90
- package/dist/components/p-nfYynlVq.js.map +0 -1
- package/dist/components/p-tyaJ-nGV.js +0 -97
- package/dist/components/p-tyaJ-nGV.js.map +0 -1
- package/dist/components/p-u-maNLLs.js +0 -145
- package/dist/components/p-u-maNLLs.js.map +0 -1
- package/dist/esm/_commonjsHelpers-B85MJLTf.js.map +0 -1
- package/dist/esm/app-globals-DQuL1Twl.js +0 -6
- package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
- package/dist/esm/clsx-ChV9xqsO.js.map +0 -1
- package/dist/esm/collapse.animation-DZDm0vSK.js.map +0 -1
- package/dist/esm/constants-BReL3Lsa.js.map +0 -1
- package/dist/esm/events.utils-B6GgGra-.js.map +0 -1
- package/dist/esm/fade.animation-DcRL9lcm.js.map +0 -1
- package/dist/esm/grow.animation-D7ep_aVl.js.map +0 -1
- package/dist/esm/i18n.utils-IlwlcG9l.js.map +0 -1
- package/dist/esm/index-CasQushP.js +0 -2811
- package/dist/esm/index-CasQushP.js.map +0 -1
- package/dist/esm/index.esm-D3eWMME9.js.map +0 -1
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/inputmask-CSo292ul.js.map +0 -1
- package/dist/esm/loader.js.map +0 -1
- package/dist/esm/native.js.map +0 -1
- package/dist/esm/nv-accordion-item.entry.js.map +0 -1
- package/dist/esm/nv-accordion.entry.js.map +0 -1
- package/dist/esm/nv-alert.entry.js.map +0 -1
- package/dist/esm/nv-avatar.entry.js.map +0 -1
- package/dist/esm/nv-badge.nv-fielddropdownitemcheck.entry.js.map +0 -1
- package/dist/esm/nv-breadcrumb.entry.js.map +0 -1
- package/dist/esm/nv-breadcrumbs.entry.js.map +0 -1
- package/dist/esm/nv-button.entry.js.map +0 -1
- package/dist/esm/nv-buttongroup.entry.js.map +0 -1
- package/dist/esm/nv-calendar.entry.js.map +0 -1
- package/dist/esm/nv-col.entry.js.map +0 -1
- package/dist/esm/nv-datagrid.entry.js.map +0 -1
- package/dist/esm/nv-datagridcolumn.entry.js.map +0 -1
- package/dist/esm/nv-dialog.entry.js.map +0 -1
- package/dist/esm/nv-dialogfooter.nv-dialogheader.entry.js.map +0 -1
- package/dist/esm/nv-drawer.entry.js.map +0 -1
- package/dist/esm/nv-drawerfooter.nv-drawerheader.entry.js.map +0 -1
- package/dist/esm/nv-fieldcheckbox.entry.js.map +0 -1
- package/dist/esm/nv-fielddate.entry.js.map +0 -1
- package/dist/esm/nv-fielddaterange.entry.js.map +0 -1
- package/dist/esm/nv-fielddropdown.entry.js.map +0 -1
- package/dist/esm/nv-fielddropdownitem.entry.js.map +0 -1
- package/dist/esm/nv-fieldmultiselect.entry.js.map +0 -1
- package/dist/esm/nv-fieldnumber.entry.js.map +0 -1
- package/dist/esm/nv-fieldpassword.entry.js.map +0 -1
- package/dist/esm/nv-fieldradio.entry.js.map +0 -1
- package/dist/esm/nv-fieldselect.entry.js.map +0 -1
- package/dist/esm/nv-fieldslider.entry.js.map +0 -1
- package/dist/esm/nv-fieldtext.entry.js.map +0 -1
- package/dist/esm/nv-fieldtextarea.entry.js.map +0 -1
- package/dist/esm/nv-fieldtime.entry.js.map +0 -1
- package/dist/esm/nv-icon.entry.js.map +0 -1
- package/dist/esm/nv-iconbutton.nv-loader.entry.js.map +0 -1
- package/dist/esm/nv-menu.entry.js.map +0 -1
- package/dist/esm/nv-menuitem.entry.js.map +0 -1
- package/dist/esm/nv-notification-bullet.entry.js.map +0 -1
- package/dist/esm/nv-notification.entry.js.map +0 -1
- package/dist/esm/nv-notificationcontainer.entry.js.map +0 -1
- package/dist/esm/nv-popover.entry.js.map +0 -1
- package/dist/esm/nv-row.entry.js.map +0 -1
- package/dist/esm/nv-sidebar.entry.js.map +0 -1
- package/dist/esm/nv-sidebarcontent.entry.js.map +0 -1
- package/dist/esm/nv-sidebardivider.entry.js.map +0 -1
- package/dist/esm/nv-sidebarfooter.entry.js.map +0 -1
- package/dist/esm/nv-sidebargroup.entry.js.map +0 -1
- package/dist/esm/nv-sidebarheader.entry.js.map +0 -1
- package/dist/esm/nv-sidebarlogo.entry.js.map +0 -1
- package/dist/esm/nv-sidebarnavitem.entry.js.map +0 -1
- package/dist/esm/nv-sidebarnavsubitem.entry.js.map +0 -1
- package/dist/esm/nv-split.entry.js.map +0 -1
- package/dist/esm/nv-stack.entry.js.map +0 -1
- package/dist/esm/nv-table.entry.js.map +0 -1
- package/dist/esm/nv-tableheader.entry.js.map +0 -1
- package/dist/esm/nv-toggle.entry.js.map +0 -1
- package/dist/esm/nv-togglebutton.entry.js.map +0 -1
- package/dist/esm/nv-togglebuttongroup.entry.js.map +0 -1
- package/dist/esm/nv-tooltip.entry.js.map +0 -1
- package/dist/esm/slide.animation-CmH5d1of.js.map +0 -1
- package/dist/esm/style-value-types.es-xlgmw4x8.js.map +0 -1
- package/dist/esm/timeline.animation-CgHCo_Ho.js.map +0 -1
- package/dist/esm/uri.utils-CnI0auJM.js.map +0 -1
- package/dist/esm/v4-BdYh22OP.js.map +0 -1
- package/dist/lib/generators/angular-output.js.map +0 -1
- package/dist/lib/generators/docs-blazor.js.map +0 -1
- package/dist/lib/generators/vue-output.js.map +0 -1
- package/dist/lib/utils/componentBinding.js.map +0 -1
- package/dist/lib/utils/parseToCSharpTypes.js.map +0 -1
- package/dist/lib/utils/spread.js.map +0 -1
- package/dist/lib/utils/test/parseToCSharpTypes.test.js.map +0 -1
- package/dist/native/index.esm.js.map +0 -1
- package/dist/native/loader.esm.js.map +0 -1
- package/dist/native/native.esm.js.map +0 -1
- package/dist/native/nv-accordion-item.entry.esm.js.map +0 -1
- package/dist/native/nv-accordion.entry.esm.js.map +0 -1
- package/dist/native/nv-alert.entry.esm.js.map +0 -1
- package/dist/native/nv-avatar.entry.esm.js.map +0 -1
- package/dist/native/nv-badge.nv-fielddropdownitemcheck.entry.esm.js.map +0 -1
- package/dist/native/nv-breadcrumb.entry.esm.js.map +0 -1
- package/dist/native/nv-breadcrumbs.entry.esm.js.map +0 -1
- package/dist/native/nv-button.entry.esm.js.map +0 -1
- package/dist/native/nv-buttongroup.entry.esm.js.map +0 -1
- package/dist/native/nv-calendar.entry.esm.js.map +0 -1
- package/dist/native/nv-col.entry.esm.js.map +0 -1
- package/dist/native/nv-datagrid.entry.esm.js.map +0 -1
- package/dist/native/nv-datagridcolumn.entry.esm.js.map +0 -1
- package/dist/native/nv-dialog.entry.esm.js.map +0 -1
- package/dist/native/nv-dialogfooter.nv-dialogheader.entry.esm.js.map +0 -1
- package/dist/native/nv-drawer.entry.esm.js.map +0 -1
- package/dist/native/nv-drawerfooter.nv-drawerheader.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldcheckbox.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddate.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddaterange.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddropdown.entry.esm.js.map +0 -1
- package/dist/native/nv-fielddropdownitem.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldmultiselect.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldnumber.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldpassword.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldradio.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldselect.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldslider.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtext.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtextarea.entry.esm.js.map +0 -1
- package/dist/native/nv-fieldtime.entry.esm.js.map +0 -1
- package/dist/native/nv-icon.entry.esm.js.map +0 -1
- package/dist/native/nv-iconbutton.nv-loader.entry.esm.js.map +0 -1
- package/dist/native/nv-menu.entry.esm.js.map +0 -1
- package/dist/native/nv-menuitem.entry.esm.js.map +0 -1
- package/dist/native/nv-notification-bullet.entry.esm.js.map +0 -1
- package/dist/native/nv-notification.entry.esm.js.map +0 -1
- package/dist/native/nv-notificationcontainer.entry.esm.js.map +0 -1
- package/dist/native/nv-popover.entry.esm.js.map +0 -1
- package/dist/native/nv-row.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebar.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarcontent.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebardivider.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarfooter.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebargroup.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarheader.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarlogo.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarnavitem.entry.esm.js.map +0 -1
- package/dist/native/nv-sidebarnavsubitem.entry.esm.js.map +0 -1
- package/dist/native/nv-split.entry.esm.js.map +0 -1
- package/dist/native/nv-stack.entry.esm.js.map +0 -1
- package/dist/native/nv-table.entry.esm.js.map +0 -1
- package/dist/native/nv-tableheader.entry.esm.js.map +0 -1
- package/dist/native/nv-toggle.entry.esm.js.map +0 -1
- package/dist/native/nv-togglebutton.entry.esm.js.map +0 -1
- package/dist/native/nv-togglebuttongroup.entry.esm.js.map +0 -1
- package/dist/native/nv-tooltip.entry.esm.js.map +0 -1
- package/dist/native/p-02e6228a.entry.js +0 -2
- package/dist/native/p-02e6228a.entry.js.map +0 -1
- package/dist/native/p-04a2fe7f.entry.js +0 -2
- package/dist/native/p-04a2fe7f.entry.js.map +0 -1
- package/dist/native/p-08204da4.entry.js +0 -2
- package/dist/native/p-08204da4.entry.js.map +0 -1
- package/dist/native/p-0e07b91b.entry.js +0 -2
- package/dist/native/p-0e07b91b.entry.js.map +0 -1
- package/dist/native/p-136dfb3e.entry.js +0 -2
- package/dist/native/p-136dfb3e.entry.js.map +0 -1
- package/dist/native/p-13YSIyGW.js.map +0 -1
- package/dist/native/p-1f2dd37f.entry.js +0 -2
- package/dist/native/p-1f2dd37f.entry.js.map +0 -1
- package/dist/native/p-255a0482.entry.js +0 -2
- package/dist/native/p-255a0482.entry.js.map +0 -1
- package/dist/native/p-3305a7e6.entry.js +0 -2
- package/dist/native/p-3305a7e6.entry.js.map +0 -1
- package/dist/native/p-36b0a6f0.entry.js +0 -2
- package/dist/native/p-36b0a6f0.entry.js.map +0 -1
- package/dist/native/p-434bc910.entry.js +0 -2
- package/dist/native/p-434bc910.entry.js.map +0 -1
- package/dist/native/p-436029a5.entry.js +0 -2
- package/dist/native/p-436029a5.entry.js.map +0 -1
- package/dist/native/p-460fdf02.entry.js +0 -2
- package/dist/native/p-460fdf02.entry.js.map +0 -1
- package/dist/native/p-477e02cf.entry.js +0 -2
- package/dist/native/p-477e02cf.entry.js.map +0 -1
- package/dist/native/p-4efb582b.entry.js +0 -2
- package/dist/native/p-4efb582b.entry.js.map +0 -1
- package/dist/native/p-4f1dfa32.entry.js +0 -2
- package/dist/native/p-4f1dfa32.entry.js.map +0 -1
- package/dist/native/p-50ce41ac.entry.js +0 -2
- package/dist/native/p-50ce41ac.entry.js.map +0 -1
- package/dist/native/p-51b7de55.entry.js +0 -13
- package/dist/native/p-51b7de55.entry.js.map +0 -1
- package/dist/native/p-5dd120dc.entry.js +0 -2
- package/dist/native/p-5dd120dc.entry.js.map +0 -1
- package/dist/native/p-60bb0d48.entry.js +0 -2
- package/dist/native/p-60bb0d48.entry.js.map +0 -1
- package/dist/native/p-67181258.entry.js +0 -2
- package/dist/native/p-67181258.entry.js.map +0 -1
- package/dist/native/p-6a81884b.entry.js +0 -2
- package/dist/native/p-6a81884b.entry.js.map +0 -1
- package/dist/native/p-6aa483de.entry.js +0 -2
- package/dist/native/p-6aa483de.entry.js.map +0 -1
- package/dist/native/p-6fc79712.entry.js +0 -2
- package/dist/native/p-6fc79712.entry.js.map +0 -1
- package/dist/native/p-70e9e067.entry.js +0 -2
- package/dist/native/p-70e9e067.entry.js.map +0 -1
- package/dist/native/p-729589cb.entry.js +0 -2
- package/dist/native/p-729589cb.entry.js.map +0 -1
- package/dist/native/p-78bf7650.entry.js +0 -2
- package/dist/native/p-78bf7650.entry.js.map +0 -1
- package/dist/native/p-7e6e9ea2.entry.js +0 -2
- package/dist/native/p-7e6e9ea2.entry.js.map +0 -1
- package/dist/native/p-8f1cd9e2.entry.js +0 -2
- package/dist/native/p-8f1cd9e2.entry.js.map +0 -1
- package/dist/native/p-910cd685.entry.js +0 -2
- package/dist/native/p-910cd685.entry.js.map +0 -1
- package/dist/native/p-91eaf02e.entry.js +0 -2
- package/dist/native/p-91eaf02e.entry.js.map +0 -1
- package/dist/native/p-93b77ed4.entry.js +0 -2
- package/dist/native/p-93b77ed4.entry.js.map +0 -1
- package/dist/native/p-93e35975.entry.js +0 -2
- package/dist/native/p-93e35975.entry.js.map +0 -1
- package/dist/native/p-96c45604.entry.js +0 -2
- package/dist/native/p-96c45604.entry.js.map +0 -1
- package/dist/native/p-9b6ad782.entry.js +0 -2
- package/dist/native/p-9b6ad782.entry.js.map +0 -1
- package/dist/native/p-9f32c3ea.entry.js +0 -2
- package/dist/native/p-9f32c3ea.entry.js.map +0 -1
- package/dist/native/p-B6GgGra-.js.map +0 -1
- package/dist/native/p-B85MJLTf.js.map +0 -1
- package/dist/native/p-BReL3Lsa.js.map +0 -1
- package/dist/native/p-BdYh22OP.js.map +0 -1
- package/dist/native/p-Blc6XEY7.js.map +0 -1
- package/dist/native/p-CasQushP.js +0 -3
- package/dist/native/p-CasQushP.js.map +0 -1
- package/dist/native/p-CgHCo_Ho.js.map +0 -1
- package/dist/native/p-ChV9xqsO.js.map +0 -1
- package/dist/native/p-CnI0auJM.js.map +0 -1
- package/dist/native/p-D3eWMME9.js.map +0 -1
- package/dist/native/p-DQuL1Twl.js +0 -2
- package/dist/native/p-DQuL1Twl.js.map +0 -1
- package/dist/native/p-DmUOtOcY.js.map +0 -1
- package/dist/native/p-Hfc8Oh0x.js.map +0 -1
- package/dist/native/p-IlwlcG9l.js.map +0 -1
- package/dist/native/p-a6fea322.entry.js +0 -2
- package/dist/native/p-a6fea322.entry.js.map +0 -1
- package/dist/native/p-ae279ae9.entry.js +0 -2
- package/dist/native/p-ae279ae9.entry.js.map +0 -1
- package/dist/native/p-b7765048.entry.js +0 -2
- package/dist/native/p-b7765048.entry.js.map +0 -1
- package/dist/native/p-ba1286aa.entry.js +0 -2
- package/dist/native/p-ba1286aa.entry.js.map +0 -1
- package/dist/native/p-bb52a5a9.entry.js +0 -2
- package/dist/native/p-bb52a5a9.entry.js.map +0 -1
- package/dist/native/p-bc90247e.entry.js +0 -2
- package/dist/native/p-bc90247e.entry.js.map +0 -1
- package/dist/native/p-c2a73a5a.entry.js +0 -2
- package/dist/native/p-c2a73a5a.entry.js.map +0 -1
- package/dist/native/p-c4c11549.entry.js +0 -2
- package/dist/native/p-c4c11549.entry.js.map +0 -1
- package/dist/native/p-c5ecdc49.entry.js +0 -2
- package/dist/native/p-c5ecdc49.entry.js.map +0 -1
- package/dist/native/p-cb1b9edb.entry.js +0 -2
- package/dist/native/p-cb1b9edb.entry.js.map +0 -1
- package/dist/native/p-cdaf54b0.entry.js +0 -2
- package/dist/native/p-cdaf54b0.entry.js.map +0 -1
- package/dist/native/p-ceb8fe8a.entry.js +0 -2
- package/dist/native/p-ceb8fe8a.entry.js.map +0 -1
- package/dist/native/p-daf7541b.entry.js +0 -2
- package/dist/native/p-daf7541b.entry.js.map +0 -1
- package/dist/native/p-de4f53a5.entry.js +0 -2
- package/dist/native/p-de4f53a5.entry.js.map +0 -1
- package/dist/native/p-ded4be77.entry.js +0 -2
- package/dist/native/p-ded4be77.entry.js.map +0 -1
- package/dist/native/p-e1fc5f8c.entry.js +0 -2
- package/dist/native/p-e1fc5f8c.entry.js.map +0 -1
- package/dist/native/p-e6c69f7d.entry.js +0 -2
- package/dist/native/p-e6c69f7d.entry.js.map +0 -1
- package/dist/native/p-e83603f1.entry.js +0 -2
- package/dist/native/p-e83603f1.entry.js.map +0 -1
- package/dist/native/p-ec217581.entry.js +0 -2
- package/dist/native/p-ec217581.entry.js.map +0 -1
- package/dist/native/p-ee694832.entry.js +0 -2
- package/dist/native/p-ee694832.entry.js.map +0 -1
- package/dist/native/p-f39aef8e.entry.js +0 -2
- package/dist/native/p-f39aef8e.entry.js.map +0 -1
- package/dist/native/p-f7e0146e.entry.js +0 -2
- package/dist/native/p-f7e0146e.entry.js.map +0 -1
- package/dist/native/p-sqVK8yoD.js.map +0 -1
- package/dist/native/p-xlgmw4x8.js.map +0 -1
|
@@ -1,1119 +1,15 @@
|
|
|
1
|
-
/******************************************************************************
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function __rest$1(s, e) {
|
|
19
|
-
var t = {};
|
|
20
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
21
|
-
t[p] = s[p];
|
|
22
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
23
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
24
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
25
|
-
t[p[i]] = s[p[i]];
|
|
26
|
-
}
|
|
27
|
-
return t;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const clamp$2 = (min, max, v) => Math.min(Math.max(v, min), max);
|
|
31
|
-
|
|
32
|
-
const safeMin = 0.001;
|
|
33
|
-
const minDuration = 0.01;
|
|
34
|
-
const maxDuration = 10.0;
|
|
35
|
-
const minDamping = 0.05;
|
|
36
|
-
const maxDamping = 1;
|
|
37
|
-
function findSpring({ duration = 800, bounce = 0.25, velocity = 0, mass = 1, }) {
|
|
38
|
-
let envelope;
|
|
39
|
-
let derivative;
|
|
40
|
-
let dampingRatio = 1 - bounce;
|
|
41
|
-
dampingRatio = clamp$2(minDamping, maxDamping, dampingRatio);
|
|
42
|
-
duration = clamp$2(minDuration, maxDuration, duration / 1000);
|
|
43
|
-
if (dampingRatio < 1) {
|
|
44
|
-
envelope = (undampedFreq) => {
|
|
45
|
-
const exponentialDecay = undampedFreq * dampingRatio;
|
|
46
|
-
const delta = exponentialDecay * duration;
|
|
47
|
-
const a = exponentialDecay - velocity;
|
|
48
|
-
const b = calcAngularFreq(undampedFreq, dampingRatio);
|
|
49
|
-
const c = Math.exp(-delta);
|
|
50
|
-
return safeMin - (a / b) * c;
|
|
51
|
-
};
|
|
52
|
-
derivative = (undampedFreq) => {
|
|
53
|
-
const exponentialDecay = undampedFreq * dampingRatio;
|
|
54
|
-
const delta = exponentialDecay * duration;
|
|
55
|
-
const d = delta * velocity + velocity;
|
|
56
|
-
const e = Math.pow(dampingRatio, 2) * Math.pow(undampedFreq, 2) * duration;
|
|
57
|
-
const f = Math.exp(-delta);
|
|
58
|
-
const g = calcAngularFreq(Math.pow(undampedFreq, 2), dampingRatio);
|
|
59
|
-
const factor = -envelope(undampedFreq) + safeMin > 0 ? -1 : 1;
|
|
60
|
-
return (factor * ((d - e) * f)) / g;
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
envelope = (undampedFreq) => {
|
|
65
|
-
const a = Math.exp(-undampedFreq * duration);
|
|
66
|
-
const b = (undampedFreq - velocity) * duration + 1;
|
|
67
|
-
return -1e-3 + a * b;
|
|
68
|
-
};
|
|
69
|
-
derivative = (undampedFreq) => {
|
|
70
|
-
const a = Math.exp(-undampedFreq * duration);
|
|
71
|
-
const b = (velocity - undampedFreq) * (duration * duration);
|
|
72
|
-
return a * b;
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
const initialGuess = 5 / duration;
|
|
76
|
-
const undampedFreq = approximateRoot(envelope, derivative, initialGuess);
|
|
77
|
-
duration = duration * 1000;
|
|
78
|
-
if (isNaN(undampedFreq)) {
|
|
79
|
-
return {
|
|
80
|
-
stiffness: 100,
|
|
81
|
-
damping: 10,
|
|
82
|
-
duration,
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
const stiffness = Math.pow(undampedFreq, 2) * mass;
|
|
87
|
-
return {
|
|
88
|
-
stiffness,
|
|
89
|
-
damping: dampingRatio * 2 * Math.sqrt(mass * stiffness),
|
|
90
|
-
duration,
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
const rootIterations = 12;
|
|
95
|
-
function approximateRoot(envelope, derivative, initialGuess) {
|
|
96
|
-
let result = initialGuess;
|
|
97
|
-
for (let i = 1; i < rootIterations; i++) {
|
|
98
|
-
result = result - envelope(result) / derivative(result);
|
|
99
|
-
}
|
|
100
|
-
return result;
|
|
101
|
-
}
|
|
102
|
-
function calcAngularFreq(undampedFreq, dampingRatio) {
|
|
103
|
-
return undampedFreq * Math.sqrt(1 - dampingRatio * dampingRatio);
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
const durationKeys = ["duration", "bounce"];
|
|
107
|
-
const physicsKeys = ["stiffness", "damping", "mass"];
|
|
108
|
-
function isSpringType(options, keys) {
|
|
109
|
-
return keys.some((key) => options[key] !== undefined);
|
|
110
|
-
}
|
|
111
|
-
function getSpringOptions(options) {
|
|
112
|
-
let springOptions = Object.assign({ velocity: 0.0, stiffness: 100, damping: 10, mass: 1.0, isResolvedFromDuration: false }, options);
|
|
113
|
-
if (!isSpringType(options, physicsKeys) &&
|
|
114
|
-
isSpringType(options, durationKeys)) {
|
|
115
|
-
const derived = findSpring(options);
|
|
116
|
-
springOptions = Object.assign(Object.assign(Object.assign({}, springOptions), derived), { velocity: 0.0, mass: 1.0 });
|
|
117
|
-
springOptions.isResolvedFromDuration = true;
|
|
118
|
-
}
|
|
119
|
-
return springOptions;
|
|
120
|
-
}
|
|
121
|
-
function spring(_a) {
|
|
122
|
-
var { from = 0.0, to = 1.0, restSpeed = 2, restDelta } = _a, options = __rest$1(_a, ["from", "to", "restSpeed", "restDelta"]);
|
|
123
|
-
const state = { done: false, value: from };
|
|
124
|
-
let { stiffness, damping, mass, velocity, duration, isResolvedFromDuration, } = getSpringOptions(options);
|
|
125
|
-
let resolveSpring = zero;
|
|
126
|
-
let resolveVelocity = zero;
|
|
127
|
-
function createSpring() {
|
|
128
|
-
const initialVelocity = velocity ? -(velocity / 1000) : 0.0;
|
|
129
|
-
const initialDelta = to - from;
|
|
130
|
-
const dampingRatio = damping / (2 * Math.sqrt(stiffness * mass));
|
|
131
|
-
const undampedAngularFreq = Math.sqrt(stiffness / mass) / 1000;
|
|
132
|
-
if (restDelta === undefined) {
|
|
133
|
-
restDelta = Math.min(Math.abs(to - from) / 100, 0.4);
|
|
134
|
-
}
|
|
135
|
-
if (dampingRatio < 1) {
|
|
136
|
-
const angularFreq = calcAngularFreq(undampedAngularFreq, dampingRatio);
|
|
137
|
-
resolveSpring = (t) => {
|
|
138
|
-
const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
|
|
139
|
-
return (to -
|
|
140
|
-
envelope *
|
|
141
|
-
(((initialVelocity +
|
|
142
|
-
dampingRatio * undampedAngularFreq * initialDelta) /
|
|
143
|
-
angularFreq) *
|
|
144
|
-
Math.sin(angularFreq * t) +
|
|
145
|
-
initialDelta * Math.cos(angularFreq * t)));
|
|
146
|
-
};
|
|
147
|
-
resolveVelocity = (t) => {
|
|
148
|
-
const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
|
|
149
|
-
return (dampingRatio *
|
|
150
|
-
undampedAngularFreq *
|
|
151
|
-
envelope *
|
|
152
|
-
((Math.sin(angularFreq * t) *
|
|
153
|
-
(initialVelocity +
|
|
154
|
-
dampingRatio *
|
|
155
|
-
undampedAngularFreq *
|
|
156
|
-
initialDelta)) /
|
|
157
|
-
angularFreq +
|
|
158
|
-
initialDelta * Math.cos(angularFreq * t)) -
|
|
159
|
-
envelope *
|
|
160
|
-
(Math.cos(angularFreq * t) *
|
|
161
|
-
(initialVelocity +
|
|
162
|
-
dampingRatio *
|
|
163
|
-
undampedAngularFreq *
|
|
164
|
-
initialDelta) -
|
|
165
|
-
angularFreq *
|
|
166
|
-
initialDelta *
|
|
167
|
-
Math.sin(angularFreq * t)));
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
else if (dampingRatio === 1) {
|
|
171
|
-
resolveSpring = (t) => to -
|
|
172
|
-
Math.exp(-undampedAngularFreq * t) *
|
|
173
|
-
(initialDelta +
|
|
174
|
-
(initialVelocity + undampedAngularFreq * initialDelta) *
|
|
175
|
-
t);
|
|
176
|
-
}
|
|
177
|
-
else {
|
|
178
|
-
const dampedAngularFreq = undampedAngularFreq * Math.sqrt(dampingRatio * dampingRatio - 1);
|
|
179
|
-
resolveSpring = (t) => {
|
|
180
|
-
const envelope = Math.exp(-dampingRatio * undampedAngularFreq * t);
|
|
181
|
-
const freqForT = Math.min(dampedAngularFreq * t, 300);
|
|
182
|
-
return (to -
|
|
183
|
-
(envelope *
|
|
184
|
-
((initialVelocity +
|
|
185
|
-
dampingRatio * undampedAngularFreq * initialDelta) *
|
|
186
|
-
Math.sinh(freqForT) +
|
|
187
|
-
dampedAngularFreq *
|
|
188
|
-
initialDelta *
|
|
189
|
-
Math.cosh(freqForT))) /
|
|
190
|
-
dampedAngularFreq);
|
|
191
|
-
};
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
createSpring();
|
|
195
|
-
return {
|
|
196
|
-
next: (t) => {
|
|
197
|
-
const current = resolveSpring(t);
|
|
198
|
-
if (!isResolvedFromDuration) {
|
|
199
|
-
const currentVelocity = resolveVelocity(t) * 1000;
|
|
200
|
-
const isBelowVelocityThreshold = Math.abs(currentVelocity) <= restSpeed;
|
|
201
|
-
const isBelowDisplacementThreshold = Math.abs(to - current) <= restDelta;
|
|
202
|
-
state.done =
|
|
203
|
-
isBelowVelocityThreshold && isBelowDisplacementThreshold;
|
|
204
|
-
}
|
|
205
|
-
else {
|
|
206
|
-
state.done = t >= duration;
|
|
207
|
-
}
|
|
208
|
-
state.value = state.done ? to : current;
|
|
209
|
-
return state;
|
|
210
|
-
},
|
|
211
|
-
flipTarget: () => {
|
|
212
|
-
velocity = -velocity;
|
|
213
|
-
[from, to] = [to, from];
|
|
214
|
-
createSpring();
|
|
215
|
-
},
|
|
216
|
-
};
|
|
217
|
-
}
|
|
218
|
-
spring.needsInterpolation = (a, b) => typeof a === "string" || typeof b === "string";
|
|
219
|
-
const zero = (_t) => 0;
|
|
220
|
-
|
|
221
|
-
const progress = (from, to, value) => {
|
|
222
|
-
const toFromDifference = to - from;
|
|
223
|
-
return toFromDifference === 0 ? 1 : (value - from) / toFromDifference;
|
|
224
|
-
};
|
|
225
|
-
|
|
226
|
-
const mix = (from, to, progress) => -progress * from + progress * to + from;
|
|
227
|
-
|
|
228
|
-
const clamp$1 = (min, max) => (v) => Math.max(Math.min(v, max), min);
|
|
229
|
-
const sanitize$1 = (v) => (v % 1 ? Number(v.toFixed(5)) : v);
|
|
230
|
-
const floatRegex = /(-)?([\d]*\.?[\d])+/g;
|
|
231
|
-
const colorRegex = /(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi;
|
|
232
|
-
const singleColorRegex$1 = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;
|
|
233
|
-
function isString(v) {
|
|
234
|
-
return typeof v === 'string';
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
const number$1 = {
|
|
238
|
-
test: (v) => typeof v === 'number',
|
|
239
|
-
parse: parseFloat,
|
|
240
|
-
transform: (v) => v,
|
|
241
|
-
};
|
|
242
|
-
const alpha$1 = Object.assign(Object.assign({}, number$1), { transform: clamp$1(0, 1) });
|
|
243
|
-
Object.assign(Object.assign({}, number$1), { default: 1 });
|
|
244
|
-
|
|
245
|
-
const createUnitType$1 = (unit) => ({
|
|
246
|
-
test: (v) => isString(v) && v.endsWith(unit) && v.split(' ').length === 1,
|
|
247
|
-
parse: parseFloat,
|
|
248
|
-
transform: (v) => `${v}${unit}`,
|
|
249
|
-
});
|
|
250
|
-
const percent$1 = createUnitType$1('%');
|
|
251
|
-
Object.assign(Object.assign({}, percent$1), { parse: (v) => percent$1.parse(v) / 100, transform: (v) => percent$1.transform(v * 100) });
|
|
252
|
-
|
|
253
|
-
const isColorString$1 = (type, testProp) => (v) => {
|
|
254
|
-
return Boolean((isString(v) && singleColorRegex$1.test(v) && v.startsWith(type)) ||
|
|
255
|
-
(testProp && Object.prototype.hasOwnProperty.call(v, testProp)));
|
|
256
|
-
};
|
|
257
|
-
const splitColor = (aName, bName, cName) => (v) => {
|
|
258
|
-
if (!isString(v))
|
|
259
|
-
return v;
|
|
260
|
-
const [a, b, c, alpha] = v.match(floatRegex);
|
|
261
|
-
return {
|
|
262
|
-
[aName]: parseFloat(a),
|
|
263
|
-
[bName]: parseFloat(b),
|
|
264
|
-
[cName]: parseFloat(c),
|
|
265
|
-
alpha: alpha !== undefined ? parseFloat(alpha) : 1,
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
const hsla$1 = {
|
|
270
|
-
test: isColorString$1('hsl', 'hue'),
|
|
271
|
-
parse: splitColor('hue', 'saturation', 'lightness'),
|
|
272
|
-
transform: ({ hue, saturation, lightness, alpha: alpha$1$1 = 1 }) => {
|
|
273
|
-
return ('hsla(' +
|
|
274
|
-
Math.round(hue) +
|
|
275
|
-
', ' +
|
|
276
|
-
percent$1.transform(sanitize$1(saturation)) +
|
|
277
|
-
', ' +
|
|
278
|
-
percent$1.transform(sanitize$1(lightness)) +
|
|
279
|
-
', ' +
|
|
280
|
-
sanitize$1(alpha$1.transform(alpha$1$1)) +
|
|
281
|
-
')');
|
|
282
|
-
},
|
|
283
|
-
};
|
|
284
|
-
|
|
285
|
-
const clampRgbUnit$1 = clamp$1(0, 255);
|
|
286
|
-
const rgbUnit$1 = Object.assign(Object.assign({}, number$1), { transform: (v) => Math.round(clampRgbUnit$1(v)) });
|
|
287
|
-
const rgba$1 = {
|
|
288
|
-
test: isColorString$1('rgb', 'red'),
|
|
289
|
-
parse: splitColor('red', 'green', 'blue'),
|
|
290
|
-
transform: ({ red, green, blue, alpha: alpha$1$1 = 1 }) => 'rgba(' +
|
|
291
|
-
rgbUnit$1.transform(red) +
|
|
292
|
-
', ' +
|
|
293
|
-
rgbUnit$1.transform(green) +
|
|
294
|
-
', ' +
|
|
295
|
-
rgbUnit$1.transform(blue) +
|
|
296
|
-
', ' +
|
|
297
|
-
sanitize$1(alpha$1.transform(alpha$1$1)) +
|
|
298
|
-
')',
|
|
299
|
-
};
|
|
300
|
-
|
|
301
|
-
function parseHex(v) {
|
|
302
|
-
let r = '';
|
|
303
|
-
let g = '';
|
|
304
|
-
let b = '';
|
|
305
|
-
let a = '';
|
|
306
|
-
if (v.length > 5) {
|
|
307
|
-
r = v.substr(1, 2);
|
|
308
|
-
g = v.substr(3, 2);
|
|
309
|
-
b = v.substr(5, 2);
|
|
310
|
-
a = v.substr(7, 2);
|
|
311
|
-
}
|
|
312
|
-
else {
|
|
313
|
-
r = v.substr(1, 1);
|
|
314
|
-
g = v.substr(2, 1);
|
|
315
|
-
b = v.substr(3, 1);
|
|
316
|
-
a = v.substr(4, 1);
|
|
317
|
-
r += r;
|
|
318
|
-
g += g;
|
|
319
|
-
b += b;
|
|
320
|
-
a += a;
|
|
321
|
-
}
|
|
322
|
-
return {
|
|
323
|
-
red: parseInt(r, 16),
|
|
324
|
-
green: parseInt(g, 16),
|
|
325
|
-
blue: parseInt(b, 16),
|
|
326
|
-
alpha: a ? parseInt(a, 16) / 255 : 1,
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
const hex$1 = {
|
|
330
|
-
test: isColorString$1('#'),
|
|
331
|
-
parse: parseHex,
|
|
332
|
-
transform: rgba$1.transform,
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
const color$1 = {
|
|
336
|
-
test: (v) => rgba$1.test(v) || hex$1.test(v) || hsla$1.test(v),
|
|
337
|
-
parse: (v) => {
|
|
338
|
-
if (rgba$1.test(v)) {
|
|
339
|
-
return rgba$1.parse(v);
|
|
340
|
-
}
|
|
341
|
-
else if (hsla$1.test(v)) {
|
|
342
|
-
return hsla$1.parse(v);
|
|
343
|
-
}
|
|
344
|
-
else {
|
|
345
|
-
return hex$1.parse(v);
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
transform: (v) => {
|
|
349
|
-
return isString(v)
|
|
350
|
-
? v
|
|
351
|
-
: v.hasOwnProperty('red')
|
|
352
|
-
? rgba$1.transform(v)
|
|
353
|
-
: hsla$1.transform(v);
|
|
354
|
-
},
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
const colorToken = '${c}';
|
|
358
|
-
const numberToken = '${n}';
|
|
359
|
-
function test(v) {
|
|
360
|
-
var _a, _b, _c, _d;
|
|
361
|
-
return (isNaN(v) &&
|
|
362
|
-
isString(v) &&
|
|
363
|
-
((_b = (_a = v.match(floatRegex)) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0) + ((_d = (_c = v.match(colorRegex)) === null || _c === void 0 ? void 0 : _c.length) !== null && _d !== void 0 ? _d : 0) > 0);
|
|
364
|
-
}
|
|
365
|
-
function analyse$1(v) {
|
|
366
|
-
if (typeof v === 'number')
|
|
367
|
-
v = `${v}`;
|
|
368
|
-
const values = [];
|
|
369
|
-
let numColors = 0;
|
|
370
|
-
const colors = v.match(colorRegex);
|
|
371
|
-
if (colors) {
|
|
372
|
-
numColors = colors.length;
|
|
373
|
-
v = v.replace(colorRegex, colorToken);
|
|
374
|
-
values.push(...colors.map(color$1.parse));
|
|
375
|
-
}
|
|
376
|
-
const numbers = v.match(floatRegex);
|
|
377
|
-
if (numbers) {
|
|
378
|
-
v = v.replace(floatRegex, numberToken);
|
|
379
|
-
values.push(...numbers.map(number$1.parse));
|
|
380
|
-
}
|
|
381
|
-
return { values, numColors, tokenised: v };
|
|
382
|
-
}
|
|
383
|
-
function parse(v) {
|
|
384
|
-
return analyse$1(v).values;
|
|
385
|
-
}
|
|
386
|
-
function createTransformer(v) {
|
|
387
|
-
const { values, numColors, tokenised } = analyse$1(v);
|
|
388
|
-
const numValues = values.length;
|
|
389
|
-
return (v) => {
|
|
390
|
-
let output = tokenised;
|
|
391
|
-
for (let i = 0; i < numValues; i++) {
|
|
392
|
-
output = output.replace(i < numColors ? colorToken : numberToken, i < numColors ? color$1.transform(v[i]) : sanitize$1(v[i]));
|
|
393
|
-
}
|
|
394
|
-
return output;
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
const convertNumbersToZero = (v) => typeof v === 'number' ? 0 : v;
|
|
398
|
-
function getAnimatableNone(v) {
|
|
399
|
-
const parsed = parse(v);
|
|
400
|
-
const transformer = createTransformer(v);
|
|
401
|
-
return transformer(parsed.map(convertNumbersToZero));
|
|
402
|
-
}
|
|
403
|
-
const complex = { test, parse, createTransformer, getAnimatableNone };
|
|
404
|
-
|
|
405
|
-
function hueToRgb(p, q, t) {
|
|
406
|
-
if (t < 0)
|
|
407
|
-
t += 1;
|
|
408
|
-
if (t > 1)
|
|
409
|
-
t -= 1;
|
|
410
|
-
if (t < 1 / 6)
|
|
411
|
-
return p + (q - p) * 6 * t;
|
|
412
|
-
if (t < 1 / 2)
|
|
413
|
-
return q;
|
|
414
|
-
if (t < 2 / 3)
|
|
415
|
-
return p + (q - p) * (2 / 3 - t) * 6;
|
|
416
|
-
return p;
|
|
417
|
-
}
|
|
418
|
-
function hslaToRgba({ hue, saturation, lightness, alpha }) {
|
|
419
|
-
hue /= 360;
|
|
420
|
-
saturation /= 100;
|
|
421
|
-
lightness /= 100;
|
|
422
|
-
let red = 0;
|
|
423
|
-
let green = 0;
|
|
424
|
-
let blue = 0;
|
|
425
|
-
if (!saturation) {
|
|
426
|
-
red = green = blue = lightness;
|
|
427
|
-
}
|
|
428
|
-
else {
|
|
429
|
-
const q = lightness < 0.5
|
|
430
|
-
? lightness * (1 + saturation)
|
|
431
|
-
: lightness + saturation - lightness * saturation;
|
|
432
|
-
const p = 2 * lightness - q;
|
|
433
|
-
red = hueToRgb(p, q, hue + 1 / 3);
|
|
434
|
-
green = hueToRgb(p, q, hue);
|
|
435
|
-
blue = hueToRgb(p, q, hue - 1 / 3);
|
|
436
|
-
}
|
|
437
|
-
return {
|
|
438
|
-
red: Math.round(red * 255),
|
|
439
|
-
green: Math.round(green * 255),
|
|
440
|
-
blue: Math.round(blue * 255),
|
|
441
|
-
alpha,
|
|
442
|
-
};
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
const mixLinearColor = (from, to, v) => {
|
|
446
|
-
const fromExpo = from * from;
|
|
447
|
-
const toExpo = to * to;
|
|
448
|
-
return Math.sqrt(Math.max(0, v * (toExpo - fromExpo) + fromExpo));
|
|
449
|
-
};
|
|
450
|
-
const colorTypes = [hex$1, rgba$1, hsla$1];
|
|
451
|
-
const getColorType = (v) => colorTypes.find((type) => type.test(v));
|
|
452
|
-
const mixColor = (from, to) => {
|
|
453
|
-
let fromColorType = getColorType(from);
|
|
454
|
-
let toColorType = getColorType(to);
|
|
455
|
-
let fromColor = fromColorType.parse(from);
|
|
456
|
-
let toColor = toColorType.parse(to);
|
|
457
|
-
if (fromColorType === hsla$1) {
|
|
458
|
-
fromColor = hslaToRgba(fromColor);
|
|
459
|
-
fromColorType = rgba$1;
|
|
460
|
-
}
|
|
461
|
-
if (toColorType === hsla$1) {
|
|
462
|
-
toColor = hslaToRgba(toColor);
|
|
463
|
-
toColorType = rgba$1;
|
|
464
|
-
}
|
|
465
|
-
const blended = Object.assign({}, fromColor);
|
|
466
|
-
return (v) => {
|
|
467
|
-
for (const key in blended) {
|
|
468
|
-
if (key !== "alpha") {
|
|
469
|
-
blended[key] = mixLinearColor(fromColor[key], toColor[key], v);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
blended.alpha = mix(fromColor.alpha, toColor.alpha, v);
|
|
473
|
-
return fromColorType.transform(blended);
|
|
474
|
-
};
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
const isNum = (v) => typeof v === 'number';
|
|
478
|
-
|
|
479
|
-
const combineFunctions = (a, b) => (v) => b(a(v));
|
|
480
|
-
const pipe = (...transformers) => transformers.reduce(combineFunctions);
|
|
481
|
-
|
|
482
|
-
function getMixer(origin, target) {
|
|
483
|
-
if (isNum(origin)) {
|
|
484
|
-
return (v) => mix(origin, target, v);
|
|
485
|
-
}
|
|
486
|
-
else if (color$1.test(origin)) {
|
|
487
|
-
return mixColor(origin, target);
|
|
488
|
-
}
|
|
489
|
-
else {
|
|
490
|
-
return mixComplex(origin, target);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
const mixArray = (from, to) => {
|
|
494
|
-
const output = [...from];
|
|
495
|
-
const numValues = output.length;
|
|
496
|
-
const blendValue = from.map((fromThis, i) => getMixer(fromThis, to[i]));
|
|
497
|
-
return (v) => {
|
|
498
|
-
for (let i = 0; i < numValues; i++) {
|
|
499
|
-
output[i] = blendValue[i](v);
|
|
500
|
-
}
|
|
501
|
-
return output;
|
|
502
|
-
};
|
|
503
|
-
};
|
|
504
|
-
const mixObject = (origin, target) => {
|
|
505
|
-
const output = Object.assign(Object.assign({}, origin), target);
|
|
506
|
-
const blendValue = {};
|
|
507
|
-
for (const key in output) {
|
|
508
|
-
if (origin[key] !== undefined && target[key] !== undefined) {
|
|
509
|
-
blendValue[key] = getMixer(origin[key], target[key]);
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
return (v) => {
|
|
513
|
-
for (const key in blendValue) {
|
|
514
|
-
output[key] = blendValue[key](v);
|
|
515
|
-
}
|
|
516
|
-
return output;
|
|
517
|
-
};
|
|
518
|
-
};
|
|
519
|
-
function analyse(value) {
|
|
520
|
-
const parsed = complex.parse(value);
|
|
521
|
-
const numValues = parsed.length;
|
|
522
|
-
let numNumbers = 0;
|
|
523
|
-
let numRGB = 0;
|
|
524
|
-
let numHSL = 0;
|
|
525
|
-
for (let i = 0; i < numValues; i++) {
|
|
526
|
-
if (numNumbers || typeof parsed[i] === "number") {
|
|
527
|
-
numNumbers++;
|
|
528
|
-
}
|
|
529
|
-
else {
|
|
530
|
-
if (parsed[i].hue !== undefined) {
|
|
531
|
-
numHSL++;
|
|
532
|
-
}
|
|
533
|
-
else {
|
|
534
|
-
numRGB++;
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
return { parsed, numNumbers, numRGB, numHSL };
|
|
539
|
-
}
|
|
540
|
-
const mixComplex = (origin, target) => {
|
|
541
|
-
const template = complex.createTransformer(target);
|
|
542
|
-
const originStats = analyse(origin);
|
|
543
|
-
const targetStats = analyse(target);
|
|
544
|
-
const canInterpolate = originStats.numHSL === targetStats.numHSL &&
|
|
545
|
-
originStats.numRGB === targetStats.numRGB &&
|
|
546
|
-
originStats.numNumbers >= targetStats.numNumbers;
|
|
547
|
-
if (canInterpolate) {
|
|
548
|
-
return pipe(mixArray(originStats.parsed, targetStats.parsed), template);
|
|
549
|
-
}
|
|
550
|
-
else {
|
|
551
|
-
return (p) => `${p > 0 ? target : origin}`;
|
|
552
|
-
}
|
|
553
|
-
};
|
|
554
|
-
|
|
555
|
-
const mixNumber = (from, to) => (p) => mix(from, to, p);
|
|
556
|
-
function detectMixerFactory(v) {
|
|
557
|
-
if (typeof v === 'number') {
|
|
558
|
-
return mixNumber;
|
|
559
|
-
}
|
|
560
|
-
else if (typeof v === 'string') {
|
|
561
|
-
if (color$1.test(v)) {
|
|
562
|
-
return mixColor;
|
|
563
|
-
}
|
|
564
|
-
else {
|
|
565
|
-
return mixComplex;
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
else if (Array.isArray(v)) {
|
|
569
|
-
return mixArray;
|
|
570
|
-
}
|
|
571
|
-
else if (typeof v === 'object') {
|
|
572
|
-
return mixObject;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
function createMixers(output, ease, customMixer) {
|
|
576
|
-
const mixers = [];
|
|
577
|
-
const mixerFactory = customMixer || detectMixerFactory(output[0]);
|
|
578
|
-
const numMixers = output.length - 1;
|
|
579
|
-
for (let i = 0; i < numMixers; i++) {
|
|
580
|
-
let mixer = mixerFactory(output[i], output[i + 1]);
|
|
581
|
-
if (ease) {
|
|
582
|
-
const easingFunction = Array.isArray(ease) ? ease[i] : ease;
|
|
583
|
-
mixer = pipe(easingFunction, mixer);
|
|
584
|
-
}
|
|
585
|
-
mixers.push(mixer);
|
|
586
|
-
}
|
|
587
|
-
return mixers;
|
|
588
|
-
}
|
|
589
|
-
function fastInterpolate([from, to], [mixer]) {
|
|
590
|
-
return (v) => mixer(progress(from, to, v));
|
|
591
|
-
}
|
|
592
|
-
function slowInterpolate(input, mixers) {
|
|
593
|
-
const inputLength = input.length;
|
|
594
|
-
const lastInputIndex = inputLength - 1;
|
|
595
|
-
return (v) => {
|
|
596
|
-
let mixerIndex = 0;
|
|
597
|
-
let foundMixerIndex = false;
|
|
598
|
-
if (v <= input[0]) {
|
|
599
|
-
foundMixerIndex = true;
|
|
600
|
-
}
|
|
601
|
-
else if (v >= input[lastInputIndex]) {
|
|
602
|
-
mixerIndex = lastInputIndex - 1;
|
|
603
|
-
foundMixerIndex = true;
|
|
604
|
-
}
|
|
605
|
-
if (!foundMixerIndex) {
|
|
606
|
-
let i = 1;
|
|
607
|
-
for (; i < inputLength; i++) {
|
|
608
|
-
if (input[i] > v || i === lastInputIndex) {
|
|
609
|
-
break;
|
|
610
|
-
}
|
|
611
|
-
}
|
|
612
|
-
mixerIndex = i - 1;
|
|
613
|
-
}
|
|
614
|
-
const progressInRange = progress(input[mixerIndex], input[mixerIndex + 1], v);
|
|
615
|
-
return mixers[mixerIndex](progressInRange);
|
|
616
|
-
};
|
|
617
|
-
}
|
|
618
|
-
function interpolate(input, output, { clamp: isClamp = true, ease, mixer } = {}) {
|
|
619
|
-
const inputLength = input.length;
|
|
620
|
-
if (input[0] > input[inputLength - 1]) {
|
|
621
|
-
input = [].concat(input);
|
|
622
|
-
output = [].concat(output);
|
|
623
|
-
input.reverse();
|
|
624
|
-
output.reverse();
|
|
625
|
-
}
|
|
626
|
-
const mixers = createMixers(output, ease, mixer);
|
|
627
|
-
const interpolator = inputLength === 2
|
|
628
|
-
? fastInterpolate(input, mixers)
|
|
629
|
-
: slowInterpolate(input, mixers);
|
|
630
|
-
return isClamp
|
|
631
|
-
? (v) => interpolator(clamp$2(input[0], input[inputLength - 1], v))
|
|
632
|
-
: interpolator;
|
|
633
|
-
}
|
|
634
|
-
|
|
635
|
-
const reverseEasing = easing => p => 1 - easing(1 - p);
|
|
636
|
-
const mirrorEasing = easing => p => p <= 0.5 ? easing(2 * p) / 2 : (2 - easing(2 * (1 - p))) / 2;
|
|
637
|
-
const createExpoIn = (power) => p => Math.pow(p, power);
|
|
638
|
-
|
|
639
|
-
const easeIn = createExpoIn(2);
|
|
640
|
-
const easeOut = reverseEasing(easeIn);
|
|
641
|
-
const easeInOut = mirrorEasing(easeIn);
|
|
642
|
-
|
|
643
|
-
function defaultEasing(values, easing) {
|
|
644
|
-
return values.map(() => easing || easeInOut).splice(0, values.length - 1);
|
|
645
|
-
}
|
|
646
|
-
function defaultOffset(values) {
|
|
647
|
-
const numValues = values.length;
|
|
648
|
-
return values.map((_value, i) => i !== 0 ? i / (numValues - 1) : 0);
|
|
649
|
-
}
|
|
650
|
-
function convertOffsetToTimes(offset, duration) {
|
|
651
|
-
return offset.map((o) => o * duration);
|
|
652
|
-
}
|
|
653
|
-
function keyframes({ from = 0, to = 1, ease, offset, duration = 300, }) {
|
|
654
|
-
const state = { done: false, value: from };
|
|
655
|
-
const values = Array.isArray(to) ? to : [from, to];
|
|
656
|
-
const times = convertOffsetToTimes(offset && offset.length === values.length
|
|
657
|
-
? offset
|
|
658
|
-
: defaultOffset(values), duration);
|
|
659
|
-
function createInterpolator() {
|
|
660
|
-
return interpolate(times, values, {
|
|
661
|
-
ease: Array.isArray(ease) ? ease : defaultEasing(values, ease),
|
|
662
|
-
});
|
|
663
|
-
}
|
|
664
|
-
let interpolator = createInterpolator();
|
|
665
|
-
return {
|
|
666
|
-
next: (t) => {
|
|
667
|
-
state.value = interpolator(t);
|
|
668
|
-
state.done = t >= duration;
|
|
669
|
-
return state;
|
|
670
|
-
},
|
|
671
|
-
flipTarget: () => {
|
|
672
|
-
values.reverse();
|
|
673
|
-
interpolator = createInterpolator();
|
|
674
|
-
},
|
|
675
|
-
};
|
|
676
|
-
}
|
|
677
|
-
|
|
678
|
-
function decay({ velocity = 0, from = 0, power = 0.8, timeConstant = 350, restDelta = 0.5, modifyTarget, }) {
|
|
679
|
-
const state = { done: false, value: from };
|
|
680
|
-
let amplitude = power * velocity;
|
|
681
|
-
const ideal = from + amplitude;
|
|
682
|
-
const target = modifyTarget === undefined ? ideal : modifyTarget(ideal);
|
|
683
|
-
if (target !== ideal)
|
|
684
|
-
amplitude = target - from;
|
|
685
|
-
return {
|
|
686
|
-
next: (t) => {
|
|
687
|
-
const delta = -amplitude * Math.exp(-t / timeConstant);
|
|
688
|
-
state.done = !(delta > restDelta || delta < -restDelta);
|
|
689
|
-
state.value = state.done ? target : target + delta;
|
|
690
|
-
return state;
|
|
691
|
-
},
|
|
692
|
-
flipTarget: () => { },
|
|
693
|
-
};
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
const types = { keyframes, spring, decay };
|
|
697
|
-
function detectAnimationFromOptions(config) {
|
|
698
|
-
if (Array.isArray(config.to)) {
|
|
699
|
-
return keyframes;
|
|
700
|
-
}
|
|
701
|
-
else if (types[config.type]) {
|
|
702
|
-
return types[config.type];
|
|
703
|
-
}
|
|
704
|
-
const keys = new Set(Object.keys(config));
|
|
705
|
-
if (keys.has("ease") ||
|
|
706
|
-
(keys.has("duration") && !keys.has("dampingRatio"))) {
|
|
707
|
-
return keyframes;
|
|
708
|
-
}
|
|
709
|
-
else if (keys.has("dampingRatio") ||
|
|
710
|
-
keys.has("stiffness") ||
|
|
711
|
-
keys.has("mass") ||
|
|
712
|
-
keys.has("damping") ||
|
|
713
|
-
keys.has("restSpeed") ||
|
|
714
|
-
keys.has("restDelta")) {
|
|
715
|
-
return spring;
|
|
716
|
-
}
|
|
717
|
-
return keyframes;
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
const defaultTimestep = (1 / 60) * 1000;
|
|
721
|
-
const getCurrentTime = typeof performance !== "undefined"
|
|
722
|
-
? () => performance.now()
|
|
723
|
-
: () => Date.now();
|
|
724
|
-
const onNextFrame = typeof window !== "undefined"
|
|
725
|
-
? (callback) => window.requestAnimationFrame(callback)
|
|
726
|
-
: (callback) => setTimeout(() => callback(getCurrentTime()), defaultTimestep);
|
|
727
|
-
|
|
728
|
-
function createRenderStep(runNextFrame) {
|
|
729
|
-
let toRun = [];
|
|
730
|
-
let toRunNextFrame = [];
|
|
731
|
-
let numToRun = 0;
|
|
732
|
-
let isProcessing = false;
|
|
733
|
-
let flushNextFrame = false;
|
|
734
|
-
const toKeepAlive = new WeakSet();
|
|
735
|
-
const step = {
|
|
736
|
-
schedule: (callback, keepAlive = false, immediate = false) => {
|
|
737
|
-
const addToCurrentFrame = immediate && isProcessing;
|
|
738
|
-
const buffer = addToCurrentFrame ? toRun : toRunNextFrame;
|
|
739
|
-
if (keepAlive)
|
|
740
|
-
toKeepAlive.add(callback);
|
|
741
|
-
if (buffer.indexOf(callback) === -1) {
|
|
742
|
-
buffer.push(callback);
|
|
743
|
-
if (addToCurrentFrame && isProcessing)
|
|
744
|
-
numToRun = toRun.length;
|
|
745
|
-
}
|
|
746
|
-
return callback;
|
|
747
|
-
},
|
|
748
|
-
cancel: (callback) => {
|
|
749
|
-
const index = toRunNextFrame.indexOf(callback);
|
|
750
|
-
if (index !== -1)
|
|
751
|
-
toRunNextFrame.splice(index, 1);
|
|
752
|
-
toKeepAlive.delete(callback);
|
|
753
|
-
},
|
|
754
|
-
process: (frameData) => {
|
|
755
|
-
if (isProcessing) {
|
|
756
|
-
flushNextFrame = true;
|
|
757
|
-
return;
|
|
758
|
-
}
|
|
759
|
-
isProcessing = true;
|
|
760
|
-
[toRun, toRunNextFrame] = [toRunNextFrame, toRun];
|
|
761
|
-
toRunNextFrame.length = 0;
|
|
762
|
-
numToRun = toRun.length;
|
|
763
|
-
if (numToRun) {
|
|
764
|
-
for (let i = 0; i < numToRun; i++) {
|
|
765
|
-
const callback = toRun[i];
|
|
766
|
-
callback(frameData);
|
|
767
|
-
if (toKeepAlive.has(callback)) {
|
|
768
|
-
step.schedule(callback);
|
|
769
|
-
runNextFrame();
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
isProcessing = false;
|
|
774
|
-
if (flushNextFrame) {
|
|
775
|
-
flushNextFrame = false;
|
|
776
|
-
step.process(frameData);
|
|
777
|
-
}
|
|
778
|
-
},
|
|
779
|
-
};
|
|
780
|
-
return step;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
const maxElapsed = 40;
|
|
784
|
-
let useDefaultElapsed = true;
|
|
785
|
-
let runNextFrame = false;
|
|
786
|
-
let isProcessing = false;
|
|
787
|
-
const frame = {
|
|
788
|
-
delta: 0,
|
|
789
|
-
timestamp: 0,
|
|
790
|
-
};
|
|
791
|
-
const stepsOrder = [
|
|
792
|
-
"read",
|
|
793
|
-
"update",
|
|
794
|
-
"preRender",
|
|
795
|
-
"render",
|
|
796
|
-
"postRender",
|
|
797
|
-
];
|
|
798
|
-
const steps = stepsOrder.reduce((acc, key) => {
|
|
799
|
-
acc[key] = createRenderStep(() => (runNextFrame = true));
|
|
800
|
-
return acc;
|
|
801
|
-
}, {});
|
|
802
|
-
const sync = stepsOrder.reduce((acc, key) => {
|
|
803
|
-
const step = steps[key];
|
|
804
|
-
acc[key] = (process, keepAlive = false, immediate = false) => {
|
|
805
|
-
if (!runNextFrame)
|
|
806
|
-
startLoop();
|
|
807
|
-
return step.schedule(process, keepAlive, immediate);
|
|
808
|
-
};
|
|
809
|
-
return acc;
|
|
810
|
-
}, {});
|
|
811
|
-
const cancelSync = stepsOrder.reduce((acc, key) => {
|
|
812
|
-
acc[key] = steps[key].cancel;
|
|
813
|
-
return acc;
|
|
814
|
-
}, {});
|
|
815
|
-
stepsOrder.reduce((acc, key) => {
|
|
816
|
-
acc[key] = () => steps[key].process(frame);
|
|
817
|
-
return acc;
|
|
818
|
-
}, {});
|
|
819
|
-
const processStep = (stepId) => steps[stepId].process(frame);
|
|
820
|
-
const processFrame = (timestamp) => {
|
|
821
|
-
runNextFrame = false;
|
|
822
|
-
frame.delta = useDefaultElapsed
|
|
823
|
-
? defaultTimestep
|
|
824
|
-
: Math.max(Math.min(timestamp - frame.timestamp, maxElapsed), 1);
|
|
825
|
-
frame.timestamp = timestamp;
|
|
826
|
-
isProcessing = true;
|
|
827
|
-
stepsOrder.forEach(processStep);
|
|
828
|
-
isProcessing = false;
|
|
829
|
-
if (runNextFrame) {
|
|
830
|
-
useDefaultElapsed = false;
|
|
831
|
-
onNextFrame(processFrame);
|
|
832
|
-
}
|
|
833
|
-
};
|
|
834
|
-
const startLoop = () => {
|
|
835
|
-
runNextFrame = true;
|
|
836
|
-
useDefaultElapsed = true;
|
|
837
|
-
if (!isProcessing)
|
|
838
|
-
onNextFrame(processFrame);
|
|
839
|
-
};
|
|
840
|
-
|
|
841
|
-
function loopElapsed(elapsed, duration, delay = 0) {
|
|
842
|
-
return elapsed - duration - delay;
|
|
843
|
-
}
|
|
844
|
-
function reverseElapsed(elapsed, duration, delay = 0, isForwardPlayback = true) {
|
|
845
|
-
return isForwardPlayback
|
|
846
|
-
? loopElapsed(duration + -elapsed, duration, delay)
|
|
847
|
-
: duration - (elapsed - duration) + delay;
|
|
848
|
-
}
|
|
849
|
-
function hasRepeatDelayElapsed(elapsed, duration, delay, isForwardPlayback) {
|
|
850
|
-
return isForwardPlayback ? elapsed >= duration + delay : elapsed <= -delay;
|
|
851
|
-
}
|
|
852
|
-
|
|
853
|
-
const framesync = (update) => {
|
|
854
|
-
const passTimestamp = ({ delta }) => update(delta);
|
|
855
|
-
return {
|
|
856
|
-
start: () => sync.update(passTimestamp, true),
|
|
857
|
-
stop: () => cancelSync.update(passTimestamp),
|
|
858
|
-
};
|
|
859
|
-
};
|
|
860
|
-
function animate(_a) {
|
|
861
|
-
var _b, _c;
|
|
862
|
-
var { from, autoplay = true, driver = framesync, elapsed = 0, repeat: repeatMax = 0, repeatType = "loop", repeatDelay = 0, onPlay, onStop, onComplete, onRepeat, onUpdate } = _a, options = __rest$1(_a, ["from", "autoplay", "driver", "elapsed", "repeat", "repeatType", "repeatDelay", "onPlay", "onStop", "onComplete", "onRepeat", "onUpdate"]);
|
|
863
|
-
let { to } = options;
|
|
864
|
-
let driverControls;
|
|
865
|
-
let repeatCount = 0;
|
|
866
|
-
let computedDuration = options.duration;
|
|
867
|
-
let latest;
|
|
868
|
-
let isComplete = false;
|
|
869
|
-
let isForwardPlayback = true;
|
|
870
|
-
let interpolateFromNumber;
|
|
871
|
-
const animator = detectAnimationFromOptions(options);
|
|
872
|
-
if ((_c = (_b = animator).needsInterpolation) === null || _c === void 0 ? void 0 : _c.call(_b, from, to)) {
|
|
873
|
-
interpolateFromNumber = interpolate([0, 100], [from, to], {
|
|
874
|
-
clamp: false,
|
|
875
|
-
});
|
|
876
|
-
from = 0;
|
|
877
|
-
to = 100;
|
|
878
|
-
}
|
|
879
|
-
const animation = animator(Object.assign(Object.assign({}, options), { from, to }));
|
|
880
|
-
function repeat() {
|
|
881
|
-
repeatCount++;
|
|
882
|
-
if (repeatType === "reverse") {
|
|
883
|
-
isForwardPlayback = repeatCount % 2 === 0;
|
|
884
|
-
elapsed = reverseElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback);
|
|
885
|
-
}
|
|
886
|
-
else {
|
|
887
|
-
elapsed = loopElapsed(elapsed, computedDuration, repeatDelay);
|
|
888
|
-
if (repeatType === "mirror")
|
|
889
|
-
animation.flipTarget();
|
|
890
|
-
}
|
|
891
|
-
isComplete = false;
|
|
892
|
-
onRepeat && onRepeat();
|
|
893
|
-
}
|
|
894
|
-
function complete() {
|
|
895
|
-
driverControls.stop();
|
|
896
|
-
onComplete && onComplete();
|
|
897
|
-
}
|
|
898
|
-
function update(delta) {
|
|
899
|
-
if (!isForwardPlayback)
|
|
900
|
-
delta = -delta;
|
|
901
|
-
elapsed += delta;
|
|
902
|
-
if (!isComplete) {
|
|
903
|
-
const state = animation.next(Math.max(0, elapsed));
|
|
904
|
-
latest = state.value;
|
|
905
|
-
if (interpolateFromNumber)
|
|
906
|
-
latest = interpolateFromNumber(latest);
|
|
907
|
-
isComplete = isForwardPlayback ? state.done : elapsed <= 0;
|
|
908
|
-
}
|
|
909
|
-
onUpdate === null || onUpdate === void 0 ? void 0 : onUpdate(latest);
|
|
910
|
-
if (isComplete) {
|
|
911
|
-
if (repeatCount === 0)
|
|
912
|
-
computedDuration !== null && computedDuration !== void 0 ? computedDuration : (computedDuration = elapsed);
|
|
913
|
-
if (repeatCount < repeatMax) {
|
|
914
|
-
hasRepeatDelayElapsed(elapsed, computedDuration, repeatDelay, isForwardPlayback) && repeat();
|
|
915
|
-
}
|
|
916
|
-
else {
|
|
917
|
-
complete();
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
}
|
|
921
|
-
function play() {
|
|
922
|
-
onPlay === null || onPlay === void 0 ? void 0 : onPlay();
|
|
923
|
-
driverControls = driver(update);
|
|
924
|
-
driverControls.start();
|
|
925
|
-
}
|
|
926
|
-
autoplay && play();
|
|
927
|
-
return {
|
|
928
|
-
stop: () => {
|
|
929
|
-
onStop === null || onStop === void 0 ? void 0 : onStop();
|
|
930
|
-
driverControls.stop();
|
|
931
|
-
},
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
/*! *****************************************************************************
|
|
936
|
-
Copyright (c) Microsoft Corporation.
|
|
937
|
-
|
|
938
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
939
|
-
purpose with or without fee is hereby granted.
|
|
940
|
-
|
|
941
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
942
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
943
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
944
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
945
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
946
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
947
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
948
|
-
***************************************************************************** */
|
|
949
|
-
/* global Reflect, Promise */
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
var __assign = function() {
|
|
953
|
-
__assign = Object.assign || function __assign(t) {
|
|
954
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
955
|
-
s = arguments[i];
|
|
956
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
957
|
-
}
|
|
958
|
-
return t;
|
|
959
|
-
};
|
|
960
|
-
return __assign.apply(this, arguments);
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
function __rest(s, e) {
|
|
964
|
-
var t = {};
|
|
965
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
966
|
-
t[p] = s[p];
|
|
967
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
968
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
969
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
970
|
-
t[p[i]] = s[p[i]];
|
|
971
|
-
}
|
|
972
|
-
return t;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
var clamp = function (min, max) { return function (v) {
|
|
976
|
-
return Math.max(Math.min(v, max), min);
|
|
977
|
-
}; };
|
|
978
|
-
var sanitize = function (v) { return (v % 1 ? Number(v.toFixed(5)) : v); };
|
|
979
|
-
var singleColorRegex = /^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i;
|
|
980
|
-
|
|
981
|
-
var number = {
|
|
982
|
-
test: function (v) { return typeof v === 'number'; },
|
|
983
|
-
parse: parseFloat,
|
|
984
|
-
transform: function (v) { return v; }
|
|
985
|
-
};
|
|
986
|
-
var alpha = __assign(__assign({}, number), { transform: clamp(0, 1) });
|
|
987
|
-
var scale = __assign(__assign({}, number), { default: 1 });
|
|
988
|
-
|
|
989
|
-
var createUnitType = function (unit) { return ({
|
|
990
|
-
test: function (v) {
|
|
991
|
-
return typeof v === 'string' && v.endsWith(unit) && v.split(' ').length === 1;
|
|
992
|
-
},
|
|
993
|
-
parse: parseFloat,
|
|
994
|
-
transform: function (v) { return "" + v + unit; }
|
|
995
|
-
}); };
|
|
996
|
-
var degrees = createUnitType('deg');
|
|
997
|
-
var percent = createUnitType('%');
|
|
998
|
-
var px = createUnitType('px');
|
|
999
|
-
var progressPercentage = __assign(__assign({}, percent), { parse: function (v) { return percent.parse(v) / 100; }, transform: function (v) { return percent.transform(v * 100); } });
|
|
1000
|
-
|
|
1001
|
-
var getValueFromFunctionString = function (value) {
|
|
1002
|
-
return value.substring(value.indexOf('(') + 1, value.lastIndexOf(')'));
|
|
1003
|
-
};
|
|
1004
|
-
var clampRgbUnit = clamp(0, 255);
|
|
1005
|
-
var isRgba = function (v) { return v.red !== undefined; };
|
|
1006
|
-
var isHsla = function (v) { return v.hue !== undefined; };
|
|
1007
|
-
function getValuesAsArray(value) {
|
|
1008
|
-
return getValueFromFunctionString(value)
|
|
1009
|
-
.replace(/(,|\/)/g, ' ')
|
|
1010
|
-
.split(/ \s*/);
|
|
1011
|
-
}
|
|
1012
|
-
var splitColorValues = function (terms) {
|
|
1013
|
-
return function (v) {
|
|
1014
|
-
if (typeof v !== 'string')
|
|
1015
|
-
return v;
|
|
1016
|
-
var values = {};
|
|
1017
|
-
var valuesArray = getValuesAsArray(v);
|
|
1018
|
-
for (var i = 0; i < 4; i++) {
|
|
1019
|
-
values[terms[i]] =
|
|
1020
|
-
valuesArray[i] !== undefined ? parseFloat(valuesArray[i]) : 1;
|
|
1021
|
-
}
|
|
1022
|
-
return values;
|
|
1023
|
-
};
|
|
1024
|
-
};
|
|
1025
|
-
var rgbaTemplate = function (_a) {
|
|
1026
|
-
var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
1027
|
-
return "rgba(" + red + ", " + green + ", " + blue + ", " + alpha + ")";
|
|
1028
|
-
};
|
|
1029
|
-
var hslaTemplate = function (_a) {
|
|
1030
|
-
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha = _b === void 0 ? 1 : _b;
|
|
1031
|
-
return "hsla(" + hue + ", " + saturation + ", " + lightness + ", " + alpha + ")";
|
|
1032
|
-
};
|
|
1033
|
-
var rgbUnit = __assign(__assign({}, number), { transform: function (v) { return Math.round(clampRgbUnit(v)); } });
|
|
1034
|
-
function isColorString(color, colorType) {
|
|
1035
|
-
return color.startsWith(colorType) && singleColorRegex.test(color);
|
|
1036
|
-
}
|
|
1037
|
-
var rgba = {
|
|
1038
|
-
test: function (v) { return (typeof v === 'string' ? isColorString(v, 'rgb') : isRgba(v)); },
|
|
1039
|
-
parse: splitColorValues(['red', 'green', 'blue', 'alpha']),
|
|
1040
|
-
transform: function (_a) {
|
|
1041
|
-
var red = _a.red, green = _a.green, blue = _a.blue, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
|
|
1042
|
-
return rgbaTemplate({
|
|
1043
|
-
red: rgbUnit.transform(red),
|
|
1044
|
-
green: rgbUnit.transform(green),
|
|
1045
|
-
blue: rgbUnit.transform(blue),
|
|
1046
|
-
alpha: sanitize(alpha.transform(alpha$1))
|
|
1047
|
-
});
|
|
1048
|
-
}
|
|
1049
|
-
};
|
|
1050
|
-
var hsla = {
|
|
1051
|
-
test: function (v) { return (typeof v === 'string' ? isColorString(v, 'hsl') : isHsla(v)); },
|
|
1052
|
-
parse: splitColorValues(['hue', 'saturation', 'lightness', 'alpha']),
|
|
1053
|
-
transform: function (_a) {
|
|
1054
|
-
var hue = _a.hue, saturation = _a.saturation, lightness = _a.lightness, _b = _a.alpha, alpha$1 = _b === void 0 ? 1 : _b;
|
|
1055
|
-
return hslaTemplate({
|
|
1056
|
-
hue: Math.round(hue),
|
|
1057
|
-
saturation: percent.transform(sanitize(saturation)),
|
|
1058
|
-
lightness: percent.transform(sanitize(lightness)),
|
|
1059
|
-
alpha: sanitize(alpha.transform(alpha$1))
|
|
1060
|
-
});
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
var hex = __assign(__assign({}, rgba), { test: function (v) { return typeof v === 'string' && isColorString(v, '#'); }, parse: function (v) {
|
|
1064
|
-
var r = '';
|
|
1065
|
-
var g = '';
|
|
1066
|
-
var b = '';
|
|
1067
|
-
if (v.length > 4) {
|
|
1068
|
-
r = v.substr(1, 2);
|
|
1069
|
-
g = v.substr(3, 2);
|
|
1070
|
-
b = v.substr(5, 2);
|
|
1071
|
-
}
|
|
1072
|
-
else {
|
|
1073
|
-
r = v.substr(1, 1);
|
|
1074
|
-
g = v.substr(2, 1);
|
|
1075
|
-
b = v.substr(3, 1);
|
|
1076
|
-
r += r;
|
|
1077
|
-
g += g;
|
|
1078
|
-
b += b;
|
|
1079
|
-
}
|
|
1080
|
-
return {
|
|
1081
|
-
red: parseInt(r, 16),
|
|
1082
|
-
green: parseInt(g, 16),
|
|
1083
|
-
blue: parseInt(b, 16),
|
|
1084
|
-
alpha: 1
|
|
1085
|
-
};
|
|
1086
|
-
} });
|
|
1087
|
-
var color = {
|
|
1088
|
-
test: function (v) {
|
|
1089
|
-
return (typeof v === 'string' && singleColorRegex.test(v)) ||
|
|
1090
|
-
isRgba(v) ||
|
|
1091
|
-
isHsla(v);
|
|
1092
|
-
},
|
|
1093
|
-
parse: function (v) {
|
|
1094
|
-
if (rgba.test(v)) {
|
|
1095
|
-
return rgba.parse(v);
|
|
1096
|
-
}
|
|
1097
|
-
else if (hsla.test(v)) {
|
|
1098
|
-
return hsla.parse(v);
|
|
1099
|
-
}
|
|
1100
|
-
else if (hex.test(v)) {
|
|
1101
|
-
return hex.parse(v);
|
|
1102
|
-
}
|
|
1103
|
-
return v;
|
|
1104
|
-
},
|
|
1105
|
-
transform: function (v) {
|
|
1106
|
-
if (isRgba(v)) {
|
|
1107
|
-
return rgba.transform(v);
|
|
1108
|
-
}
|
|
1109
|
-
else if (isHsla(v)) {
|
|
1110
|
-
return hsla.transform(v);
|
|
1111
|
-
}
|
|
1112
|
-
return v;
|
|
1113
|
-
}
|
|
1114
|
-
};
|
|
1115
|
-
|
|
1116
|
-
export { __rest as _, animate as a, __assign as b, alpha as c, progressPercentage as d, degrees as e, color as f, easeOut as g, number as n, px as p, scale as s };
|
|
1117
|
-
//# sourceMappingURL=p-Dz1GUhVy.js.map
|
|
1118
|
-
|
|
1119
|
-
//# sourceMappingURL=p-Dz1GUhVy.js.map
|
|
1
|
+
function t(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}const n=(t,n,e)=>Math.min(Math.max(e,t),n);const e=12;function r(t,n){return t*Math.sqrt(1-n*n)}const o=["duration","bounce"],a=["stiffness","damping","mass"];function s(t,n){return n.some((n=>void 0!==t[n]))}function u(u){var{from:c=0,to:f=1,restSpeed:l=2,restDelta:p}=u,d=t(u,["from","to","restSpeed","restDelta"]);const h={done:!1,value:c};let{stiffness:m,damping:v,mass:b,velocity:M,duration:g,isResolvedFromDuration:y}=function(t){let u=Object.assign({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},t);if(!s(t,a)&&s(t,o)){const o=function({duration:t=800,bounce:o=.25,velocity:a=0,mass:s=1}){let u,i,c=1-o;c=n(.05,1,c),t=n(.01,10,t/1e3),c<1?(u=n=>{const e=n*c,o=e*t;return.001-(e-a)/r(n,c)*Math.exp(-o)},i=n=>{const e=n*c*t,o=e*a+a,s=Math.pow(c,2)*Math.pow(n,2)*t,i=Math.exp(-e),f=r(Math.pow(n,2),c);return(.001-u(n)>0?-1:1)*((o-s)*i)/f}):(u=n=>Math.exp(-n*t)*((n-a)*t+1)-.001,i=n=>Math.exp(-n*t)*(t*t*(a-n)));const f=function(t,n,r){let o=r;for(let r=1;r<e;r++)o-=t(o)/n(o);return o}(u,i,5/t);if(t*=1e3,isNaN(f))return{stiffness:100,damping:10,duration:t};{const n=Math.pow(f,2)*s;return{stiffness:n,damping:2*c*Math.sqrt(s*n),duration:t}}}(t);u=Object.assign(Object.assign(Object.assign({},u),o),{velocity:0,mass:1}),u.isResolvedFromDuration=!0}return u}(d),j=i,O=i;function F(){const t=M?-M/1e3:0,n=f-c,e=v/(2*Math.sqrt(m*b)),o=Math.sqrt(m/b)/1e3;if(void 0===p&&(p=Math.min(Math.abs(f-c)/100,.4)),e<1){const a=r(o,e);j=r=>{const s=Math.exp(-e*o*r);return f-s*((t+e*o*n)/a*Math.sin(a*r)+n*Math.cos(a*r))},O=r=>{const s=Math.exp(-e*o*r);return e*o*s*(Math.sin(a*r)*(t+e*o*n)/a+n*Math.cos(a*r))-s*(Math.cos(a*r)*(t+e*o*n)-a*n*Math.sin(a*r))}}else if(1===e)j=e=>f-Math.exp(-o*e)*(n+(t+o*n)*e);else{const r=o*Math.sqrt(e*e-1);j=a=>{const s=Math.exp(-e*o*a),u=Math.min(r*a,300);return f-s*((t+e*o*n)*Math.sinh(u)+r*n*Math.cosh(u))/r}}}return F(),{next:t=>{const n=j(t);if(y)h.done=t>=g;else{const e=1e3*O(t),r=Math.abs(e)<=l,o=Math.abs(f-n)<=p;h.done=r&&o}return h.value=h.done?f:n,h},flipTarget:()=>{M=-M,[c,f]=[f,c],F()}}}u.needsInterpolation=(t,n)=>"string"==typeof t||"string"==typeof n;const i=()=>0,c=(t,n,e)=>{const r=n-t;return 0===r?1:(e-t)/r},f=(t,n,e)=>-e*t+e*n+t,l=(t,n)=>e=>Math.max(Math.min(e,n),t),p=t=>t%1?Number(t.toFixed(5)):t,d=/(-)?([\d]*\.?[\d])+/g,h=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,m=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function v(t){return"string"==typeof t}const b={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},M=Object.assign(Object.assign({},b),{transform:l(0,1)});Object.assign(Object.assign({},b),{default:1});const g={test:t=>v(t)&&t.endsWith("%")&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}%`};Object.assign(Object.assign({},g),{parse:t=>g.parse(t)/100,transform:t=>g.transform(100*t)});const y=(t,n)=>e=>Boolean(v(e)&&m.test(e)&&e.startsWith(t)||n&&Object.prototype.hasOwnProperty.call(e,n)),j=(t,n,e)=>r=>{if(!v(r))return r;const[o,a,s,u]=r.match(d);return{[t]:parseFloat(o),[n]:parseFloat(a),[e]:parseFloat(s),alpha:void 0!==u?parseFloat(u):1}},O={test:y("hsl","hue"),parse:j("hue","saturation","lightness"),transform:({hue:t,saturation:n,lightness:e,alpha:r=1})=>"hsla("+Math.round(t)+", "+g.transform(p(n))+", "+g.transform(p(e))+", "+p(M.transform(r))+")"},F=l(0,255),D=Object.assign(Object.assign({},b),{transform:t=>Math.round(F(t))}),R={test:y("rgb","red"),parse:j("red","green","blue"),transform:({red:t,green:n,blue:e,alpha:r=1})=>"rgba("+D.transform(t)+", "+D.transform(n)+", "+D.transform(e)+", "+p(M.transform(r))+")"},N={test:y("#"),parse:function(t){let n="",e="",r="",o="";return t.length>5?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2),o=t.substr(7,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),o=t.substr(4,1),n+=n,e+=e,r+=r,o+=o),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:R.transform},S=t=>R.test(t)||N.test(t)||O.test(t),T=t=>R.test(t)?R.parse(t):O.test(t)?O.parse(t):N.parse(t),w=t=>v(t)?t:t.hasOwnProperty("red")?R.transform(t):O.transform(t),I="${c}",$="${n}";function x(t){"number"==typeof t&&(t=`${t}`);const n=[];let e=0;const r=t.match(h);r&&(e=r.length,t=t.replace(h,I),n.push(...r.map(T)));const o=t.match(d);return o&&(t=t.replace(d,$),n.push(...o.map(b.parse))),{values:n,numColors:e,tokenised:t}}function A(t){return x(t).values}function C(t){const{values:n,numColors:e,tokenised:r}=x(t),o=n.length;return t=>{let n=r;for(let r=0;r<o;r++)n=n.replace(r<e?I:$,r<e?w(t[r]):p(t[r]));return n}}const k=t=>"number"==typeof t?0:t,B={test:function(t){var n,e,r,o;return isNaN(t)&&v(t)&&(null!==(e=null===(n=t.match(d))||void 0===n?void 0:n.length)&&void 0!==e?e:0)+(null!==(o=null===(r=t.match(h))||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0},parse:A,createTransformer:C,getAnimatableNone:function(t){const n=A(t);return C(t)(n.map(k))}};function P(t,n,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?t+6*(n-t)*e:e<.5?n:e<2/3?t+(n-t)*(2/3-e)*6:t}function U({hue:t,saturation:n,lightness:e,alpha:r}){t/=360,e/=100;let o=0,a=0,s=0;if(n/=100){const r=e<.5?e*(1+n):e+n-e*n,u=2*e-r;o=P(u,r,t+1/3),a=P(u,r,t),s=P(u,r,t-1/3)}else o=a=s=e;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:r}}const G=(t,n,e)=>{const r=t*t;return Math.sqrt(Math.max(0,e*(n*n-r)+r))},H=[N,R,O],L=t=>H.find((n=>n.test(t))),W=(t,n)=>{let e=L(t),r=L(n),o=e.parse(t),a=r.parse(n);e===O&&(o=U(o),e=R),r===O&&(a=U(a),r=R);const s=Object.assign({},o);return t=>{for(const n in s)"alpha"!==n&&(s[n]=G(o[n],a[n],t));return s.alpha=f(o.alpha,a.alpha,t),e.transform(s)}},_=(t,n)=>e=>n(t(e)),q=(...t)=>t.reduce(_);function z(t,n){return"number"==typeof t?e=>f(t,n,e):S(t)?W(t,n):Q(t,n)}const E=(t,n)=>{const e=[...t],r=e.length,o=t.map(((t,e)=>z(t,n[e])));return t=>{for(let n=0;n<r;n++)e[n]=o[n](t);return e}},J=(t,n)=>{const e=Object.assign(Object.assign({},t),n),r={};for(const o in e)void 0!==t[o]&&void 0!==n[o]&&(r[o]=z(t[o],n[o]));return t=>{for(const n in r)e[n]=r[n](t);return e}};function K(t){const n=B.parse(t),e=n.length;let r=0,o=0,a=0;for(let t=0;t<e;t++)r||"number"==typeof n[t]?r++:void 0!==n[t].hue?a++:o++;return{parsed:n,numNumbers:r,numRGB:o,numHSL:a}}const Q=(t,n)=>{const e=B.createTransformer(n),r=K(t),o=K(n);return r.numHSL===o.numHSL&&r.numRGB===o.numRGB&&r.numNumbers>=o.numNumbers?q(E(r.parsed,o.parsed),e):e=>`${e>0?n:t}`},V=(t,n)=>e=>f(t,n,e);function X(t,e,{clamp:r=!0,ease:o,mixer:a}={}){const s=t.length;t[0]>t[s-1]&&(t=[].concat(t),e=[].concat(e),t.reverse(),e.reverse());const u=function(t,n,e){const r=[],o=e||("number"==typeof(a=t[0])?V:"string"==typeof a?S(a)?W:Q:Array.isArray(a)?E:"object"==typeof a?J:void 0);var a;const s=t.length-1;for(let e=0;e<s;e++){let a=o(t[e],t[e+1]);if(n){const t=Array.isArray(n)?n[e]:n;a=q(t,a)}r.push(a)}return r}(e,o,a),i=2===s?function([t,n],[e]){return r=>e(c(t,n,r))}(t,u):function(t,n){const e=t.length,r=e-1;return o=>{let a=0,s=!1;if(o<=t[0]?s=!0:o>=t[r]&&(a=r-1,s=!0),!s){let n=1;for(;n<e&&!(t[n]>o||n===r);n++);a=n-1}const u=c(t[a],t[a+1],o);return n[a](u)}}(t,u);return r?e=>i(n(t[0],t[s-1],e)):i}const Y=t=>Math.pow(t,2);const Z=(tt=Y,t=>1-tt(1-t));var tt;const nt=(t=>n=>n<=.5?t(2*n)/2:(2-t(2*(1-n)))/2)(Y);function et(t,n){return t.map((()=>n||nt)).splice(0,t.length-1)}function rt({from:t=0,to:n=1,ease:e,offset:r,duration:o=300}){const a={done:!1,value:t},s=Array.isArray(n)?n:[t,n],u=function(t,n){return t.map((t=>t*n))}(r&&r.length===s.length?r:function(t){const n=t.length;return t.map(((t,e)=>0!==e?e/(n-1):0))}(s),o);function i(){return X(u,s,{ease:Array.isArray(e)?e:et(s,e)})}let c=i();return{next:t=>(a.value=c(t),a.done=t>=o,a),flipTarget:()=>{s.reverse(),c=i()}}}const ot={keyframes:rt,spring:u,decay:function({velocity:t=0,from:n=0,power:e=.8,timeConstant:r=350,restDelta:o=.5,modifyTarget:a}){const s={done:!1,value:n};let u=e*t;const i=n+u,c=void 0===a?i:a(i);return c!==i&&(u=c-n),{next:t=>{const n=-u*Math.exp(-t/r);return s.done=!(n>o||n<-o),s.value=s.done?c:c+n,s},flipTarget:()=>{}}}},at=1/60*1e3,st="undefined"!=typeof performance?()=>performance.now():()=>Date.now(),ut="undefined"!=typeof window?t=>window.requestAnimationFrame(t):t=>setTimeout((()=>t(st())),at);let it=!0,ct=!1,ft=!1;const lt={delta:0,timestamp:0},pt=["read","update","preRender","render","postRender"],dt=pt.reduce(((t,n)=>(t[n]=function(t){let n=[],e=[],r=0,o=!1,a=!1;const s=new WeakSet,u={schedule:(t,a=!1,u=!1)=>{const i=u&&o,c=i?n:e;return a&&s.add(t),-1===c.indexOf(t)&&(c.push(t),i&&o&&(r=n.length)),t},cancel:t=>{const n=e.indexOf(t);-1!==n&&e.splice(n,1),s.delete(t)},process:i=>{if(o)a=!0;else{if(o=!0,[n,e]=[e,n],e.length=0,r=n.length,r)for(let e=0;e<r;e++){const r=n[e];r(i),s.has(r)&&(u.schedule(r),t())}o=!1,a&&(a=!1,u.process(i))}}};return u}((()=>ct=!0)),t)),{}),ht=pt.reduce(((t,n)=>{const e=dt[n];return t[n]=(t,n=!1,r=!1)=>(ct||Mt(),e.schedule(t,n,r)),t}),{}),mt=pt.reduce(((t,n)=>(t[n]=dt[n].cancel,t)),{});pt.reduce(((t,n)=>(t[n]=()=>dt[n].process(lt),t)),{});const vt=t=>dt[t].process(lt),bt=t=>{ct=!1,lt.delta=it?at:Math.max(Math.min(t-lt.timestamp,40),1),lt.timestamp=t,ft=!0,pt.forEach(vt),ft=!1,ct&&(it=!1,ut(bt))},Mt=()=>{ct=!0,it=!0,ft||ut(bt)};function gt(t,n,e=0){return t-n-e}const yt=t=>{const n=({delta:n})=>t(n);return{start:()=>ht.update(n,!0),stop:()=>mt.update(n)}};function jt(n){var e,r,{from:o,autoplay:a=!0,driver:s=yt,elapsed:i=0,repeat:c=0,repeatType:f="loop",repeatDelay:l=0,onPlay:p,onStop:d,onComplete:h,onRepeat:m,onUpdate:v}=n,b=t(n,["from","autoplay","driver","elapsed","repeat","repeatType","repeatDelay","onPlay","onStop","onComplete","onRepeat","onUpdate"]);let M,g,y,{to:j}=b,O=0,F=b.duration,D=!1,R=!0;const N=function(t){if(Array.isArray(t.to))return rt;if(ot[t.type])return ot[t.type];const n=new Set(Object.keys(t));return n.has("ease")||n.has("duration")&&!n.has("dampingRatio")?rt:n.has("dampingRatio")||n.has("stiffness")||n.has("mass")||n.has("damping")||n.has("restSpeed")||n.has("restDelta")?u:rt}(b);(null===(r=(e=N).needsInterpolation)||void 0===r?void 0:r.call(e,o,j))&&(y=X([0,100],[o,j],{clamp:!1}),o=0,j=100);const S=N(Object.assign(Object.assign({},b),{from:o,to:j}));return a&&(null==p||p(),M=s((function(t){if(R||(t=-t),i+=t,!D){const t=S.next(Math.max(0,i));g=t.value,y&&(g=y(g)),D=R?t.done:i<=0}null==v||v(g),D&&(0===O&&(null!=F||(F=i)),O<c?function(t,n,e,r){return r?t>=n+e:t<=-e}(i,F,l,R)&&(O++,"reverse"===f?(R=O%2==0,i=function(t,n,e=0,r=!0){return r?gt(n+-t,n,e):n-(t-n)+e}(i,F,l,R)):(i=gt(i,F,l),"mirror"===f&&S.flipTarget()),D=!1,m&&m()):(M.stop(),h&&h()))})),M.start()),{stop:()=>{null==d||d(),M.stop()}}}
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var Ot=function(){return Ot=Object.assign||function(t){for(var n,e=1,r=arguments.length;e<r;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t},Ot.apply(this,arguments)};function Ft(t,n){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)n.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e}var Dt=function(t,n){return function(e){return Math.max(Math.min(e,n),t)}},Rt=function(t){return t%1?Number(t.toFixed(5)):t},Nt=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2,3}\s*\/*\s*[\d\.]+%?\))$/i,St={test:function(t){return"number"==typeof t},parse:parseFloat,transform:function(t){return t}},Tt=Ot(Ot({},St),{transform:Dt(0,1)}),wt=Ot(Ot({},St),{default:1}),It=function(t){return{test:function(n){return"string"==typeof n&&n.endsWith(t)&&1===n.split(" ").length},parse:parseFloat,transform:function(n){return""+n+t}}},$t=It("deg"),xt=It("%"),At=It("px"),Ct=Ot(Ot({},xt),{parse:function(t){return xt.parse(t)/100},transform:function(t){return xt.transform(100*t)}}),kt=Dt(0,255),Bt=function(t){return void 0!==t.red},Pt=function(t){return void 0!==t.hue},Ut=function(t){return function(n){if("string"!=typeof n)return n;for(var e={},r=(a=n,a.substring(a.indexOf("(")+1,a.lastIndexOf(")"))).replace(/(,|\/)/g," ").split(/ \s*/),o=0;o<4;o++)e[t[o]]=void 0!==r[o]?parseFloat(r[o]):1;var a;return e}},Gt=Ot(Ot({},St),{transform:function(t){return Math.round(kt(t))}});function Ht(t,n){return t.startsWith(n)&&Nt.test(t)}var Lt={test:function(t){return"string"==typeof t?Ht(t,"rgb"):Bt(t)},parse:Ut(["red","green","blue","alpha"]),transform:function(t){var n=t.green,e=t.blue,r=t.alpha,o=void 0===r?1:r;return function(t){var n=t.alpha;return"rgba("+t.red+", "+t.green+", "+t.blue+", "+(void 0===n?1:n)+")"}({red:Gt.transform(t.red),green:Gt.transform(n),blue:Gt.transform(e),alpha:Rt(Tt.transform(o))})}},Wt={test:function(t){return"string"==typeof t?Ht(t,"hsl"):Pt(t)},parse:Ut(["hue","saturation","lightness","alpha"]),transform:function(t){var n=t.saturation,e=t.lightness,r=t.alpha,o=void 0===r?1:r;return function(t){var n=t.alpha;return"hsla("+t.hue+", "+t.saturation+", "+t.lightness+", "+(void 0===n?1:n)+")"}({hue:Math.round(t.hue),saturation:xt.transform(Rt(n)),lightness:xt.transform(Rt(e)),alpha:Rt(Tt.transform(o))})}},_t=Ot(Ot({},Lt),{test:function(t){return"string"==typeof t&&Ht(t,"#")},parse:function(t){var n="",e="",r="";return t.length>4?(n=t.substr(1,2),e=t.substr(3,2),r=t.substr(5,2)):(n=t.substr(1,1),e=t.substr(2,1),r=t.substr(3,1),n+=n,e+=e,r+=r),{red:parseInt(n,16),green:parseInt(e,16),blue:parseInt(r,16),alpha:1}}}),qt={test:function(t){return"string"==typeof t&&Nt.test(t)||Bt(t)||Pt(t)},parse:function(t){return Lt.test(t)?Lt.parse(t):Wt.test(t)?Wt.parse(t):_t.test(t)?_t.parse(t):t},transform:function(t){return Bt(t)?Lt.transform(t):Pt(t)?Wt.transform(t):t}};export{Ft as _,jt as a,Ot as b,Tt as c,Ct as d,$t as e,qt as f,Z as g,St as n,At as p,wt as s}
|