@svgrid/grid 2.2.32 → 2.4.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/README.md +199 -199
- package/dist/DockNodeView.svelte +1 -1
- package/dist/FlexRender.svelte +96 -96
- package/dist/GridFooter.svelte +178 -179
- package/dist/GridMenus.svelte +705 -782
- package/dist/SvAutoComplete.svelte +165 -165
- package/dist/SvAvatar.svelte +75 -75
- package/dist/SvCalendar.svelte +503 -503
- package/dist/SvCarousel.svelte +141 -141
- package/dist/SvCheckBox.svelte +102 -102
- package/dist/SvCircularProgress.svelte +109 -109
- package/dist/SvColorInput.svelte +181 -181
- package/dist/SvComboBox.svelte +275 -275
- package/dist/SvContextMenu.svelte +116 -116
- package/dist/SvCountryInput.svelte +160 -160
- package/dist/SvDateRangeInput.svelte +1 -1
- package/dist/SvDrawer.svelte +254 -254
- package/dist/SvDropDownList.svelte +374 -374
- package/dist/SvDurationInput.svelte +126 -126
- package/dist/SvField.svelte +293 -293
- package/dist/SvForm.svelte +437 -437
- package/dist/SvGrid.css +2814 -2804
- package/dist/SvGrid.svelte +3490 -3513
- package/dist/SvGridChart.svelte +1716 -1724
- package/dist/SvGridChartPanel.svelte +485 -485
- package/dist/SvGridChartView.svelte +70 -70
- package/dist/SvGridDropdown.svelte +728 -728
- package/dist/SvGridSelect.svelte +266 -268
- package/dist/SvGroupCell.svelte +116 -116
- package/dist/SvKbd.svelte +1 -1
- package/dist/SvList.svelte +1 -1
- package/dist/SvListBox.svelte +326 -326
- package/dist/SvMaskedInput.svelte +122 -122
- package/dist/SvMenu.svelte +124 -124
- package/dist/SvMenuList.svelte +146 -146
- package/dist/SvMenubar.svelte +1 -1
- package/dist/SvMultiSelect.svelte +289 -290
- package/dist/SvNumberInput.svelte +168 -168
- package/dist/SvOtpInput.svelte +158 -158
- package/dist/SvPasswordInput.svelte +151 -151
- package/dist/SvPhoneInput.svelte +133 -133
- package/dist/SvPopover.svelte +197 -197
- package/dist/SvProgress.svelte +116 -116
- package/dist/SvRadioGroup.svelte +107 -107
- package/dist/SvRating.svelte +112 -112
- package/dist/SvResult.svelte +73 -73
- package/dist/SvRichText.svelte +211 -207
- package/dist/SvRowGroupPanel.svelte +170 -170
- package/dist/SvScrollArea.svelte +61 -61
- package/dist/SvSlider.svelte +200 -200
- package/dist/SvSwitchButton.svelte +108 -108
- package/dist/SvTagsInput.svelte +112 -112
- package/dist/SvTextInput.svelte +147 -147
- package/dist/SvTimePicker.svelte +245 -245
- package/dist/SvToaster.svelte +159 -159
- package/dist/SvToggleButton.svelte +85 -85
- package/dist/SvTooltip.svelte +161 -161
- package/dist/SvTour.svelte +208 -204
- package/dist/SvTree.svelte +444 -444
- package/dist/SvTreeSelect.svelte +235 -237
- package/dist/cdn/{GridMenus-C6ixSGWW.js → GridMenus-BpVcKyUr.js} +5 -7
- package/dist/cdn/{GridMenus-Cyk3qpJ7.js → GridMenus-CeXL5IW4.js} +153 -152
- package/dist/cdn/{SvDateTimePicker-ClqtVIj3.js → SvDateTimePicker-DSUhIta8.js} +165 -165
- package/dist/cdn/{SvDateTimePicker-CdqaP61H.js → SvDateTimePicker-h9kPyszT.js} +572 -555
- package/dist/cdn/{SvGridChart-BcLCYvw9.js → SvGridChart-Bs2GIR2Q.js} +28 -21
- package/dist/cdn/{SvGridChart-BhnFdLd0.js → SvGridChart-CwhFz7GV.js} +2 -2
- package/dist/cdn/{SvGridChartPanel-Cmx9DHAS.js → SvGridChartPanel-1WXuStzM.js} +2 -2
- package/dist/cdn/{SvGridChartPanel-DvjwxLvK.js → SvGridChartPanel-e5_nqNP9.js} +22 -14
- package/dist/cdn/{SvGridChartView-PwqI4s02.js → SvGridChartView-SmPW10dI.js} +3 -3
- package/dist/cdn/{SvGridChartView-B40DTJSX.js → SvGridChartView-eSPuJE6g.js} +2 -2
- package/dist/cdn/{SvGridDropdown-D0VdjeR8.js → SvGridDropdown-B1ZcLpgs.js} +1 -1
- package/dist/cdn/{SvGridDropdown-Dh-2ej8j.js → SvGridDropdown-CtdbHcIS.js} +6 -5
- package/dist/cdn/{chart-T1usDN0o.js → chart-i4XcXyHJ.js} +12 -10
- package/dist/cdn/disclose-version-Dr7rEVv-.js +2866 -0
- package/dist/cdn/{export-format-JT5pWVT8.js → export-format-Cv1Dll6k.js} +66 -245
- package/dist/cdn/{src-CgD-wiuS.js → src-DbeN1ReZ.js} +9223 -8944
- package/dist/cdn/{src-BgHjWF0Q.js → src-DmEQFW5_.js} +9023 -8828
- package/dist/cdn/svgrid.js +9 -9
- package/dist/cdn/svgrid.svelte-external.js +9 -9
- package/dist/chart-export.js +8 -8
- package/dist/chart.d.ts +2 -0
- package/dist/chart.js +1 -4
- package/dist/columns.js +9 -2
- package/dist/createMenu.svelte.js +0 -1
- package/dist/createPopoverSelect.svelte.d.ts +2 -2
- package/dist/editing.js +1 -1
- package/dist/export-format.js +3 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/_svelte_metadata.json +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/_metadata.json +178 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/attachments-qzRy9DX4.js +3843 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/attachments-qzRy9DX4.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/constants-RLNOXCpz.js +23 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/constants-RLNOXCpz.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/dev-DPd12uEU.js +1925 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/dev-DPd12uEU.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/events-CDC4DKuQ.js +206 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/events-CDC4DKuQ.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/flags-BD-lYX7s.js +20 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/flags-BD-lYX7s.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/hydration-D3UBU2t8.js +264 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/hydration-D3UBU2t8.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/legacy-client-B0ZUlbSQ.js +698 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/legacy-client-B0ZUlbSQ.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/package.json +3 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte.js +135 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_animate.js +57 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_animate.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_attachments.js +2 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_compiler.js +46691 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_compiler.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_easing.js +239 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_easing.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_events.js +2 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal.js +6 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_client.js +7 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_disclose-version.js +6 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_disclose-version.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_async.js +7 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_async.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_legacy.js +7 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_legacy.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_tracing.js +7 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_tracing.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_server.js +6 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_legacy.js +85 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_legacy.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_motion.js +561 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_motion.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity.js +26 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity_window.js +124 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity_window.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_server.js +2 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_store.js +91 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_store.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_transition.js +242 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_transition.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-lObbumRX.js +497 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-lObbumRX.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-mR9mAWyK.js +4929 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-mR9mAWyK.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/validate-CezNmRkM.js +192 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/validate-CezNmRkM.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/version-BHHo0WE-.js +10 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/version-BHHo0WE-.js.map +1 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/warnings-yiExAB06.js +140 -0
- package/dist/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/warnings-yiExAB06.js.map +1 -0
- package/dist/selection.js +0 -1
- package/package.json +11 -10
- package/src/DockNodeView.svelte +1 -1
- package/src/FlexRender.svelte +96 -96
- package/src/GridFooter.svelte +178 -179
- package/src/GridMenus.svelte +705 -782
- package/src/SvAutoComplete.svelte +165 -165
- package/src/SvAvatar.svelte +75 -75
- package/src/SvCalendar.svelte +503 -503
- package/src/SvCalendar.test.ts +226 -226
- package/src/SvCarousel.svelte +141 -141
- package/src/SvCheckBox.svelte +102 -102
- package/src/SvCircularProgress.svelte +109 -109
- package/src/SvColorInput.svelte +181 -181
- package/src/SvComboBox.svelte +275 -275
- package/src/SvContextMenu.svelte +116 -116
- package/src/SvCountryInput.svelte +160 -160
- package/src/SvDateRangeInput.svelte +1 -1
- package/src/SvDrawer.svelte +254 -254
- package/src/SvDropDownList.svelte +374 -374
- package/src/SvDurationInput.svelte +126 -126
- package/src/SvField.svelte +293 -293
- package/src/SvForm.svelte +437 -437
- package/src/SvForm.test.ts +411 -411
- package/src/SvGrid.controller.svelte.ts +3680 -3685
- package/src/SvGrid.css +2814 -2804
- package/src/SvGrid.svelte +3490 -3513
- package/src/SvGrid.types.ts +1708 -1709
- package/src/SvGridChart.svelte +1716 -1724
- package/src/SvGridChartPanel.svelte +485 -485
- package/src/SvGridChartView.svelte +70 -70
- package/src/SvGridDropdown.svelte +728 -728
- package/src/SvGridSelect.svelte +266 -268
- package/src/SvGroupCell.svelte +116 -116
- package/src/SvKbd.svelte +1 -1
- package/src/SvList.svelte +1 -1
- package/src/SvListBox.svelte +326 -326
- package/src/SvMaskedInput.svelte +122 -122
- package/src/SvMenu.svelte +124 -124
- package/src/SvMenu.test.ts +97 -97
- package/src/SvMenuList.svelte +146 -146
- package/src/SvMenubar.svelte +1 -1
- package/src/SvMultiSelect.svelte +289 -290
- package/src/SvNumberInput.svelte +168 -168
- package/src/SvOtpInput.svelte +158 -158
- package/src/SvPasswordInput.svelte +151 -151
- package/src/SvPhoneInput.svelte +133 -133
- package/src/SvPopover.svelte +197 -197
- package/src/SvProgress.svelte +116 -116
- package/src/SvRadioGroup.svelte +107 -107
- package/src/SvRating.svelte +112 -112
- package/src/SvResult.svelte +73 -73
- package/src/SvRichText.svelte +211 -207
- package/src/SvRowGroupPanel.svelte +170 -170
- package/src/SvScrollArea.svelte +61 -61
- package/src/SvSlider.svelte +200 -200
- package/src/SvSwitchButton.svelte +108 -108
- package/src/SvTagsInput.svelte +112 -112
- package/src/SvTextInput.svelte +147 -147
- package/src/SvTimePicker.svelte +245 -245
- package/src/SvToaster.svelte +159 -159
- package/src/SvToaster.test.ts +95 -95
- package/src/SvToggleButton.svelte +85 -85
- package/src/SvTooltip.svelte +161 -161
- package/src/SvTour.svelte +208 -204
- package/src/SvTree.svelte +444 -444
- package/src/SvTreeSelect.svelte +235 -237
- package/src/a11y/dismissable.test.ts +119 -119
- package/src/a11y/dismissable.ts +114 -114
- package/src/a11y.contract.test.ts +49 -49
- package/src/a11y.test.ts +59 -59
- package/src/a11y.ts +61 -61
- package/src/ai.test.ts +502 -502
- package/src/ai.ts +1391 -1391
- package/src/build-api.coverage.test.ts +633 -633
- package/src/build-api.ts +805 -910
- package/src/builtin-editors.grid.test.ts +85 -85
- package/src/cell-formatting.test.ts +1 -1
- package/src/cell-formatting.ts +169 -169
- package/src/cell-render.test.ts +513 -513
- package/src/cell-render.ts +496 -590
- package/src/cell-values.ts +118 -118
- package/src/chart-export.ts +201 -201
- package/src/chart-view.svelte.ts +36 -36
- package/src/chart.ts +2295 -2296
- package/src/clipboard.ts +0 -102
- package/src/collaboration.test.ts +104 -104
- package/src/collaboration.ts +167 -167
- package/src/columns.ts +7 -117
- package/src/core.performance.test.ts +30 -30
- package/src/core.ts +1261 -1261
- package/src/createAutocomplete.svelte.ts +132 -132
- package/src/createCombobox.svelte.ts +191 -191
- package/src/createCountryInput.svelte.ts +157 -157
- package/src/createDropdownList.svelte.ts +168 -168
- package/src/createForm.svelte.ts +386 -386
- package/src/createGrid.svelte.ts +42 -42
- package/src/createGrid.test.ts +10 -10
- package/src/createGridState.svelte.ts +17 -17
- package/src/createListbox.svelte.ts +250 -250
- package/src/createMenu.svelte.ts +224 -225
- package/src/createPopoverSelect.svelte.ts +213 -213
- package/src/createSlider.svelte.ts +191 -191
- package/src/createTooltip.svelte.ts +144 -144
- package/src/createTree.svelte.ts +319 -319
- package/src/editing.test.ts +949 -949
- package/src/editing.ts +606 -709
- package/src/editor-contract.ts +164 -164
- package/src/editor-registry.grid.test.ts +144 -146
- package/src/editor-registry.ts +122 -122
- package/src/export-data-api.test.ts +126 -126
- package/src/export-format.test.ts +107 -107
- package/src/export-format.ts +601 -598
- package/src/features.ts +0 -90
- package/src/filter-operators.ts +157 -157
- package/src/flex-render.ts +3 -3
- package/src/form-field.ts +127 -127
- package/src/group-display.test.ts +167 -167
- package/src/group-display.ts +200 -200
- package/src/index.ts +724 -724
- package/src/js-scroller.svelte.ts +173 -173
- package/src/keyboard-handlers.coverage.test.ts +1 -1
- package/src/keyboard-handlers.ts +270 -390
- package/src/keyboard.test.ts +59 -59
- package/src/keyboard.ts +97 -97
- package/src/list-nav.test.ts +49 -49
- package/src/list-nav.ts +29 -29
- package/src/list-option.test.ts +56 -56
- package/src/list-option.ts +172 -172
- package/src/menus.test.ts +0 -1
- package/src/menus.ts +567 -679
- package/src/merge-objects.ts +48 -48
- package/src/new-features.test.ts +3 -1
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/_svelte_metadata.json +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/_metadata.json +178 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/attachments-qzRy9DX4.js +3843 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/attachments-qzRy9DX4.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/constants-RLNOXCpz.js +23 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/constants-RLNOXCpz.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/dev-DPd12uEU.js +1925 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/dev-DPd12uEU.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/events-CDC4DKuQ.js +206 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/events-CDC4DKuQ.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/flags-BD-lYX7s.js +20 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/flags-BD-lYX7s.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/hydration-D3UBU2t8.js +264 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/hydration-D3UBU2t8.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/legacy-client-B0ZUlbSQ.js +698 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/legacy-client-B0ZUlbSQ.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/package.json +3 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte.js +135 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_animate.js +57 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_animate.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_attachments.js +2 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_compiler.js +46691 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_compiler.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_easing.js +239 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_easing.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_events.js +2 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal.js +6 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_client.js +7 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_disclose-version.js +6 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_disclose-version.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_async.js +7 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_async.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_legacy.js +7 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_legacy.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_tracing.js +7 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_flags_tracing.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_internal_server.js +6 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_legacy.js +85 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_legacy.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_motion.js +561 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_motion.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity.js +26 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity_window.js +124 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_reactivity_window.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_server.js +2 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_store.js +91 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_store.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_transition.js +242 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/svelte_transition.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-lObbumRX.js +497 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-lObbumRX.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-mR9mAWyK.js +4929 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/utils-mR9mAWyK.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/validate-CezNmRkM.js +192 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/validate-CezNmRkM.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/version-BHHo0WE-.js +10 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/version-BHHo0WE-.js.map +1 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/warnings-yiExAB06.js +140 -0
- package/src/node_modules/.vite/vitest/67d8ed22ed986c5e2e948f64d892f30be166cc36/deps___vitest__/warnings-yiExAB06.js.map +1 -0
- package/src/overlays.test.ts +90 -90
- package/src/render-component.ts +28 -28
- package/src/row-drag.test.ts +1 -1
- package/src/row-resize.test.ts +1 -2
- package/src/row-resize.ts +210 -210
- package/src/scheduler-model.test.ts +562 -562
- package/src/scheduler-model.ts +872 -872
- package/src/scroll-sync.test.ts +4 -7
- package/src/scroll-sync.ts +0 -122
- package/src/selection.test.ts +754 -754
- package/src/selection.ts +491 -600
- package/src/server-data-source.test.ts +289 -289
- package/src/server-data-source.ts +413 -413
- package/src/server-group-model.test.ts +2 -2
- package/src/sparkline.test.ts +68 -68
- package/src/sparkline.ts +169 -169
- package/src/spreadsheet.test.ts +488 -488
- package/src/spreadsheet.ts +312 -312
- package/src/static-functions.ts +11 -11
- package/src/subscribe.ts +38 -38
- package/src/summaries.ts +0 -112
- package/src/svgrid-wrapper.types.ts +526 -526
- package/src/svgrid.async-editor-options.test.ts +271 -271
- package/src/svgrid.auto-row-height.test.ts +204 -204
- package/src/svgrid.behavior.test.ts +705 -706
- package/src/svgrid.charting.test.ts +534 -534
- package/src/svgrid.column-reorder.test.ts +0 -8
- package/src/svgrid.comments-autocomplete.test.ts +123 -123
- package/src/svgrid.context-menu.test.ts +147 -147
- package/src/svgrid.features.test.ts +157 -157
- package/src/svgrid.filter-depth.test.ts +163 -163
- package/src/svgrid.filter-menu-listbox.svelte.test.ts +322 -322
- package/src/svgrid.filter-menu-scroll.test.ts +112 -112
- package/src/svgrid.footer-pagesize.svelte.test.ts +86 -0
- package/src/svgrid.grand-total.test.ts +188 -188
- package/src/svgrid.group-display-mode.test.ts +171 -171
- package/src/svgrid.group-footers.test.ts +121 -121
- package/src/svgrid.group-pagination.test.ts +153 -153
- package/src/svgrid.new-features.wrapper.test.ts +251 -251
- package/src/svgrid.tree-data.test.ts +186 -186
- package/src/svgrid.wrapper.test.ts +40 -40
- package/src/svgriddropdown.async-panel.svelte.test.ts +195 -195
- package/src/test-setup.ts +62 -62
- package/src/themes/index.ts +257 -257
- package/src/toast-store.svelte.ts +246 -246
- package/src/toast-store.test.ts +147 -147
- package/src/tree-row-model.test.ts +168 -169
- package/src/ui-buttons.test.ts +144 -144
- package/src/ui-inputs.test.ts +118 -118
- package/src/ui-localization.test.ts +113 -113
- package/src/ui-range.test.ts +70 -70
- package/src/ui-selection.test.ts +155 -155
- package/src/ui-tier1.test.ts +142 -142
- package/src/virtual.test.ts +88 -88
- package/src/virtualization/column-virtualizer.test.ts +27 -27
- package/src/virtualization/column-virtualizer.ts +30 -30
- package/src/virtualization/svelte-virtualizer.svelte.ts +26 -26
- package/src/virtualization/types.ts +30 -30
- package/src/virtualization/virtualizer.test.ts +47 -47
- package/src/virtualization/virtualizer.ts +296 -296
- package/dist/cdn/disclose-version-DoD9AFD_.js +0 -2958
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import { A as render_effect, dn as tag, en as writable, hr as noop, ht as state, ir as deferred, o as get, pt as set } from "./utils-mR9mAWyK.js";
|
|
2
|
+
import { linear } from "./svelte_easing.js";
|
|
3
|
+
import { gt as raf, ht as loop } from "./attachments-qzRy9DX4.js";
|
|
4
|
+
import { MediaQuery } from "./svelte_reactivity.js";
|
|
5
|
+
//#region ../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/utils.js
|
|
6
|
+
/**
|
|
7
|
+
* @param {any} obj
|
|
8
|
+
* @returns {obj is Date}
|
|
9
|
+
*/
|
|
10
|
+
function is_date(obj) {
|
|
11
|
+
return Object.prototype.toString.call(obj) === "[object Date]";
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region ../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/spring.js
|
|
15
|
+
/** @import { Task } from '#client' */
|
|
16
|
+
/** @import { TickContext } from './private.js' */
|
|
17
|
+
/** @import { Spring as SpringStore, SpringOptions, SpringUpdateOptions } from './public.js' */
|
|
18
|
+
/**
|
|
19
|
+
* @template T
|
|
20
|
+
* @param {TickContext} ctx
|
|
21
|
+
* @param {T} last_value
|
|
22
|
+
* @param {T} current_value
|
|
23
|
+
* @param {T} target_value
|
|
24
|
+
* @returns {T}
|
|
25
|
+
*/
|
|
26
|
+
function tick_spring(ctx, last_value, current_value, target_value) {
|
|
27
|
+
if (typeof current_value === "number" || is_date(current_value)) {
|
|
28
|
+
const delta = target_value - current_value;
|
|
29
|
+
const velocity = (current_value - last_value) / (ctx.dt || 1 / 60);
|
|
30
|
+
const d = (velocity + (ctx.opts.stiffness * delta - ctx.opts.damping * velocity) * ctx.inv_mass) * ctx.dt;
|
|
31
|
+
if (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) return target_value;
|
|
32
|
+
else {
|
|
33
|
+
ctx.settled = false;
|
|
34
|
+
return is_date(current_value) ? new Date(current_value.getTime() + d) : current_value + d;
|
|
35
|
+
}
|
|
36
|
+
} else if (Array.isArray(current_value)) return current_value.map((_, i) => tick_spring(ctx, last_value[i], current_value[i], target_value[i]));
|
|
37
|
+
else if (typeof current_value === "object") {
|
|
38
|
+
const next_value = {};
|
|
39
|
+
for (const k in current_value) next_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);
|
|
40
|
+
return next_value;
|
|
41
|
+
} else throw new Error(`Cannot spring ${typeof current_value} values`);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it "bounces" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.
|
|
45
|
+
*
|
|
46
|
+
* @deprecated Use [`Spring`](https://svelte.dev/docs/svelte/svelte-motion#Spring) instead
|
|
47
|
+
* @template [T=any]
|
|
48
|
+
* @param {T} [value]
|
|
49
|
+
* @param {SpringOptions} [opts]
|
|
50
|
+
* @returns {SpringStore<T>}
|
|
51
|
+
*/
|
|
52
|
+
function spring(value, opts = {}) {
|
|
53
|
+
const store = writable(value);
|
|
54
|
+
const { stiffness = .15, damping = .8, precision = .01 } = opts;
|
|
55
|
+
/** @type {number} */
|
|
56
|
+
let last_time;
|
|
57
|
+
/** @type {Task | null} */
|
|
58
|
+
let task;
|
|
59
|
+
/** @type {object} */
|
|
60
|
+
let current_token;
|
|
61
|
+
let last_value = value;
|
|
62
|
+
let target_value = value;
|
|
63
|
+
let inv_mass = 1;
|
|
64
|
+
let inv_mass_recovery_rate = 0;
|
|
65
|
+
let cancel_task = false;
|
|
66
|
+
/**
|
|
67
|
+
* @param {T} new_value
|
|
68
|
+
* @param {SpringUpdateOptions} opts
|
|
69
|
+
* @returns {Promise<void>}
|
|
70
|
+
*/
|
|
71
|
+
function set(new_value, opts = {}) {
|
|
72
|
+
target_value = new_value;
|
|
73
|
+
const token = current_token = {};
|
|
74
|
+
if (value == null || opts.hard || spring.stiffness >= 1 && spring.damping >= 1) {
|
|
75
|
+
cancel_task = true;
|
|
76
|
+
last_time = raf.now();
|
|
77
|
+
last_value = new_value;
|
|
78
|
+
store.set(value = target_value);
|
|
79
|
+
return Promise.resolve();
|
|
80
|
+
} else if (opts.soft) {
|
|
81
|
+
inv_mass_recovery_rate = 1 / ((opts.soft === true ? .5 : +opts.soft) * 60);
|
|
82
|
+
inv_mass = 0;
|
|
83
|
+
}
|
|
84
|
+
if (!task) {
|
|
85
|
+
last_time = raf.now();
|
|
86
|
+
cancel_task = false;
|
|
87
|
+
task = loop((now) => {
|
|
88
|
+
if (cancel_task) {
|
|
89
|
+
cancel_task = false;
|
|
90
|
+
task = null;
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
inv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);
|
|
94
|
+
const elapsed = Math.min(now - last_time, 1e3 / 30);
|
|
95
|
+
/** @type {TickContext} */
|
|
96
|
+
const ctx = {
|
|
97
|
+
inv_mass,
|
|
98
|
+
opts: spring,
|
|
99
|
+
settled: true,
|
|
100
|
+
dt: elapsed * 60 / 1e3
|
|
101
|
+
};
|
|
102
|
+
const next_value = tick_spring(ctx, last_value, value, target_value);
|
|
103
|
+
last_time = now;
|
|
104
|
+
last_value = value;
|
|
105
|
+
store.set(value = next_value);
|
|
106
|
+
if (ctx.settled) task = null;
|
|
107
|
+
return !ctx.settled;
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
return new Promise((fulfil) => {
|
|
111
|
+
/** @type {Task} */ task.promise.then(() => {
|
|
112
|
+
if (token === current_token) fulfil();
|
|
113
|
+
});
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
/** @type {SpringStore<T>} */
|
|
117
|
+
const spring = {
|
|
118
|
+
set,
|
|
119
|
+
update: (fn, opts) => set(fn(target_value, value), opts),
|
|
120
|
+
subscribe: store.subscribe,
|
|
121
|
+
stiffness,
|
|
122
|
+
damping,
|
|
123
|
+
precision
|
|
124
|
+
};
|
|
125
|
+
return spring;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* A wrapper for a value that behaves in a spring-like fashion. Changes to `spring.target` will cause `spring.current` to
|
|
129
|
+
* move towards it over time, taking account of the `spring.stiffness` and `spring.damping` parameters.
|
|
130
|
+
*
|
|
131
|
+
* ```svelte
|
|
132
|
+
* <script>
|
|
133
|
+
* import { Spring } from 'svelte/motion';
|
|
134
|
+
*
|
|
135
|
+
* const spring = new Spring(0);
|
|
136
|
+
* <\/script>
|
|
137
|
+
*
|
|
138
|
+
* <input type="range" bind:value={spring.target} />
|
|
139
|
+
* <input type="range" bind:value={spring.current} disabled />
|
|
140
|
+
* ```
|
|
141
|
+
* @template T
|
|
142
|
+
* @since 5.8.0
|
|
143
|
+
*/
|
|
144
|
+
var Spring = class Spring {
|
|
145
|
+
#stiffness = /* @__PURE__ */ state(.15);
|
|
146
|
+
#damping = /* @__PURE__ */ state(.8);
|
|
147
|
+
#precision = /* @__PURE__ */ state(.01);
|
|
148
|
+
#current;
|
|
149
|
+
#target;
|
|
150
|
+
#last_value = void 0;
|
|
151
|
+
#last_time = 0;
|
|
152
|
+
#inverse_mass = 1;
|
|
153
|
+
#momentum = 0;
|
|
154
|
+
/** @type {import('../internal/client/types').Task | null} */
|
|
155
|
+
#task = null;
|
|
156
|
+
/** @type {ReturnType<typeof deferred> | null} */
|
|
157
|
+
#deferred = null;
|
|
158
|
+
/**
|
|
159
|
+
* @param {T} value
|
|
160
|
+
* @param {SpringOptions} [options]
|
|
161
|
+
*/
|
|
162
|
+
constructor(value, options = {}) {
|
|
163
|
+
this.#current = tag(/* @__PURE__ */ state(value), "Spring.current");
|
|
164
|
+
this.#target = tag(/* @__PURE__ */ state(value), "Spring.target");
|
|
165
|
+
if (typeof options.stiffness === "number") this.#stiffness.v = clamp(options.stiffness, 0, 1);
|
|
166
|
+
if (typeof options.damping === "number") this.#damping.v = clamp(options.damping, 0, 1);
|
|
167
|
+
if (typeof options.precision === "number") this.#precision.v = options.precision;
|
|
168
|
+
tag(this.#stiffness, "Spring.stiffness");
|
|
169
|
+
tag(this.#damping, "Spring.damping");
|
|
170
|
+
tag(this.#precision, "Spring.precision");
|
|
171
|
+
tag(this.#current, "Spring.current");
|
|
172
|
+
tag(this.#target, "Spring.target");
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Create a spring whose value is bound to the return value of `fn`. This must be called
|
|
176
|
+
* inside an effect root (for example, during component initialisation).
|
|
177
|
+
*
|
|
178
|
+
* ```svelte
|
|
179
|
+
* <script>
|
|
180
|
+
* import { Spring } from 'svelte/motion';
|
|
181
|
+
*
|
|
182
|
+
* let { number } = $props();
|
|
183
|
+
*
|
|
184
|
+
* const spring = Spring.of(() => number);
|
|
185
|
+
* <\/script>
|
|
186
|
+
* ```
|
|
187
|
+
* @template U
|
|
188
|
+
* @param {() => U} fn
|
|
189
|
+
* @param {SpringOptions} [options]
|
|
190
|
+
*/
|
|
191
|
+
static of(fn, options) {
|
|
192
|
+
const spring = new Spring(fn(), options);
|
|
193
|
+
render_effect(() => {
|
|
194
|
+
spring.set(fn());
|
|
195
|
+
});
|
|
196
|
+
return spring;
|
|
197
|
+
}
|
|
198
|
+
/** @param {T} value */
|
|
199
|
+
#update(value) {
|
|
200
|
+
set(this.#target, value);
|
|
201
|
+
this.#current.v ??= value;
|
|
202
|
+
this.#last_value ??= this.#current.v;
|
|
203
|
+
if (!this.#task) {
|
|
204
|
+
this.#last_time = raf.now();
|
|
205
|
+
var inv_mass_recovery_rate = 1e3 / (this.#momentum * 60);
|
|
206
|
+
this.#task ??= loop((now) => {
|
|
207
|
+
this.#inverse_mass = Math.min(this.#inverse_mass + inv_mass_recovery_rate, 1);
|
|
208
|
+
const elapsed = Math.min(now - this.#last_time, 1e3 / 30);
|
|
209
|
+
/** @type {import('./private').TickContext} */
|
|
210
|
+
const ctx = {
|
|
211
|
+
inv_mass: this.#inverse_mass,
|
|
212
|
+
opts: {
|
|
213
|
+
stiffness: this.#stiffness.v,
|
|
214
|
+
damping: this.#damping.v,
|
|
215
|
+
precision: this.#precision.v
|
|
216
|
+
},
|
|
217
|
+
settled: true,
|
|
218
|
+
dt: elapsed * 60 / 1e3
|
|
219
|
+
};
|
|
220
|
+
var next = tick_spring(ctx, this.#last_value, this.#current.v, this.#target.v);
|
|
221
|
+
this.#last_value = this.#current.v;
|
|
222
|
+
this.#last_time = now;
|
|
223
|
+
set(this.#current, next);
|
|
224
|
+
if (ctx.settled) this.#task = null;
|
|
225
|
+
return !ctx.settled;
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
return this.#task.promise;
|
|
229
|
+
}
|
|
230
|
+
/**
|
|
231
|
+
* Sets `spring.target` to `value` and returns a `Promise` that resolves if and when `spring.current` catches up to it.
|
|
232
|
+
*
|
|
233
|
+
* If `options.instant` is `true`, `spring.current` immediately matches `spring.target`.
|
|
234
|
+
*
|
|
235
|
+
* If `options.preserveMomentum` is provided, the spring will continue on its current trajectory for
|
|
236
|
+
* the specified number of milliseconds. This is useful for things like 'fling' gestures.
|
|
237
|
+
*
|
|
238
|
+
* @param {T} value
|
|
239
|
+
* @param {SpringUpdateOptions} [options]
|
|
240
|
+
*/
|
|
241
|
+
set(value, options) {
|
|
242
|
+
this.#deferred?.reject(/* @__PURE__ */ new Error("Aborted"));
|
|
243
|
+
if (options?.instant || this.#current.v === void 0) {
|
|
244
|
+
this.#task?.abort();
|
|
245
|
+
this.#task = null;
|
|
246
|
+
set(this.#current, set(this.#target, value));
|
|
247
|
+
this.#last_value = value;
|
|
248
|
+
return Promise.resolve();
|
|
249
|
+
}
|
|
250
|
+
if (options?.preserveMomentum) {
|
|
251
|
+
this.#inverse_mass = 0;
|
|
252
|
+
this.#momentum = options.preserveMomentum;
|
|
253
|
+
}
|
|
254
|
+
var d = this.#deferred = deferred();
|
|
255
|
+
d.promise.catch(noop);
|
|
256
|
+
this.#update(value).then(() => {
|
|
257
|
+
if (d !== this.#deferred) return;
|
|
258
|
+
d.resolve(void 0);
|
|
259
|
+
});
|
|
260
|
+
return d.promise;
|
|
261
|
+
}
|
|
262
|
+
get current() {
|
|
263
|
+
return get(this.#current);
|
|
264
|
+
}
|
|
265
|
+
get damping() {
|
|
266
|
+
return get(this.#damping);
|
|
267
|
+
}
|
|
268
|
+
set damping(v) {
|
|
269
|
+
set(this.#damping, clamp(v, 0, 1));
|
|
270
|
+
}
|
|
271
|
+
get precision() {
|
|
272
|
+
return get(this.#precision);
|
|
273
|
+
}
|
|
274
|
+
set precision(v) {
|
|
275
|
+
set(this.#precision, v);
|
|
276
|
+
}
|
|
277
|
+
get stiffness() {
|
|
278
|
+
return get(this.#stiffness);
|
|
279
|
+
}
|
|
280
|
+
set stiffness(v) {
|
|
281
|
+
set(this.#stiffness, clamp(v, 0, 1));
|
|
282
|
+
}
|
|
283
|
+
get target() {
|
|
284
|
+
return get(this.#target);
|
|
285
|
+
}
|
|
286
|
+
set target(v) {
|
|
287
|
+
this.set(v);
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
/**
|
|
291
|
+
* @param {number} n
|
|
292
|
+
* @param {number} min
|
|
293
|
+
* @param {number} max
|
|
294
|
+
*/
|
|
295
|
+
function clamp(n, min, max) {
|
|
296
|
+
return Math.max(min, Math.min(max, n));
|
|
297
|
+
}
|
|
298
|
+
//#endregion
|
|
299
|
+
//#region ../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/tweened.js
|
|
300
|
+
/** @import { Task } from '../internal/client/types' */
|
|
301
|
+
/** @import { Tweened, TweenOptions } from './public' */
|
|
302
|
+
/**
|
|
303
|
+
* @template T
|
|
304
|
+
* @param {T} a
|
|
305
|
+
* @param {T} b
|
|
306
|
+
* @returns {(t: number) => T}
|
|
307
|
+
*/
|
|
308
|
+
function get_interpolator(a, b) {
|
|
309
|
+
if (a === b || a !== a) return () => a;
|
|
310
|
+
const type = typeof a;
|
|
311
|
+
if (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) throw new Error("Cannot interpolate values of different type");
|
|
312
|
+
if (Array.isArray(a)) {
|
|
313
|
+
const arr = b.map((bi, i) => {
|
|
314
|
+
return get_interpolator(
|
|
315
|
+
/** @type {Array<any>} */
|
|
316
|
+
a[i],
|
|
317
|
+
bi
|
|
318
|
+
);
|
|
319
|
+
});
|
|
320
|
+
return (t) => arr.map((fn) => fn(t));
|
|
321
|
+
}
|
|
322
|
+
if (type === "object") {
|
|
323
|
+
if (!a || !b) throw new Error("Object cannot be null");
|
|
324
|
+
if (is_date(a) && is_date(b)) {
|
|
325
|
+
const an = a.getTime();
|
|
326
|
+
const delta = b.getTime() - an;
|
|
327
|
+
return (t) => new Date(an + t * delta);
|
|
328
|
+
}
|
|
329
|
+
const keys = Object.keys(b);
|
|
330
|
+
/** @type {Record<string, (t: number) => T>} */
|
|
331
|
+
const interpolators = {};
|
|
332
|
+
keys.forEach((key) => {
|
|
333
|
+
interpolators[key] = get_interpolator(a[key], b[key]);
|
|
334
|
+
});
|
|
335
|
+
return (t) => {
|
|
336
|
+
/** @type {Record<string, any>} */
|
|
337
|
+
const result = {};
|
|
338
|
+
keys.forEach((key) => {
|
|
339
|
+
result[key] = interpolators[key](t);
|
|
340
|
+
});
|
|
341
|
+
return result;
|
|
342
|
+
};
|
|
343
|
+
}
|
|
344
|
+
if (type === "number") {
|
|
345
|
+
const delta = b - a;
|
|
346
|
+
return (t) => a + t * delta;
|
|
347
|
+
}
|
|
348
|
+
return () => b;
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time.
|
|
352
|
+
*
|
|
353
|
+
* @deprecated Use [`Tween`](https://svelte.dev/docs/svelte/svelte-motion#Tween) instead
|
|
354
|
+
* @template T
|
|
355
|
+
* @param {T} [value]
|
|
356
|
+
* @param {TweenOptions<T>} [defaults]
|
|
357
|
+
* @returns {Tweened<T>}
|
|
358
|
+
*/
|
|
359
|
+
function tweened(value, defaults = {}) {
|
|
360
|
+
const store = writable(value);
|
|
361
|
+
/** @type {Task} */
|
|
362
|
+
let task;
|
|
363
|
+
let target_value = value;
|
|
364
|
+
/**
|
|
365
|
+
* @param {T} new_value
|
|
366
|
+
* @param {TweenOptions<T>} [opts]
|
|
367
|
+
*/
|
|
368
|
+
function set(new_value, opts) {
|
|
369
|
+
target_value = new_value;
|
|
370
|
+
if (value == null) {
|
|
371
|
+
store.set(value = new_value);
|
|
372
|
+
return Promise.resolve();
|
|
373
|
+
}
|
|
374
|
+
/** @type {Task | null} */
|
|
375
|
+
let previous_task = task;
|
|
376
|
+
let started = false;
|
|
377
|
+
let { delay = 0, duration = 400, easing = linear, interpolate = get_interpolator } = {
|
|
378
|
+
...defaults,
|
|
379
|
+
...opts
|
|
380
|
+
};
|
|
381
|
+
if (duration === 0) {
|
|
382
|
+
if (previous_task) {
|
|
383
|
+
previous_task.abort();
|
|
384
|
+
previous_task = null;
|
|
385
|
+
}
|
|
386
|
+
store.set(value = target_value);
|
|
387
|
+
return Promise.resolve();
|
|
388
|
+
}
|
|
389
|
+
const start = raf.now() + delay;
|
|
390
|
+
/** @type {(t: number) => T} */
|
|
391
|
+
let fn;
|
|
392
|
+
task = loop((now) => {
|
|
393
|
+
if (now < start) return true;
|
|
394
|
+
if (!started) {
|
|
395
|
+
fn = interpolate(value, new_value);
|
|
396
|
+
if (typeof duration === "function") duration = duration(value, new_value);
|
|
397
|
+
started = true;
|
|
398
|
+
}
|
|
399
|
+
if (previous_task) {
|
|
400
|
+
previous_task.abort();
|
|
401
|
+
previous_task = null;
|
|
402
|
+
}
|
|
403
|
+
const elapsed = now - start;
|
|
404
|
+
if (elapsed > duration) {
|
|
405
|
+
store.set(value = new_value);
|
|
406
|
+
return false;
|
|
407
|
+
}
|
|
408
|
+
store.set(value = fn(easing(elapsed / duration)));
|
|
409
|
+
return true;
|
|
410
|
+
});
|
|
411
|
+
return task.promise;
|
|
412
|
+
}
|
|
413
|
+
return {
|
|
414
|
+
set,
|
|
415
|
+
update: (fn, opts) => set(fn(target_value, value), opts),
|
|
416
|
+
subscribe: store.subscribe
|
|
417
|
+
};
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* A wrapper for a value that tweens smoothly to its target value. Changes to `tween.target` will cause `tween.current` to
|
|
421
|
+
* move towards it over time, taking account of the `delay`, `duration` and `easing` options.
|
|
422
|
+
*
|
|
423
|
+
* ```svelte
|
|
424
|
+
* <script>
|
|
425
|
+
* import { Tween } from 'svelte/motion';
|
|
426
|
+
*
|
|
427
|
+
* const tween = new Tween(0);
|
|
428
|
+
* <\/script>
|
|
429
|
+
*
|
|
430
|
+
* <input type="range" bind:value={tween.target} />
|
|
431
|
+
* <input type="range" bind:value={tween.current} disabled />
|
|
432
|
+
* ```
|
|
433
|
+
* @template T
|
|
434
|
+
* @since 5.8.0
|
|
435
|
+
*/
|
|
436
|
+
var Tween = class Tween {
|
|
437
|
+
#current;
|
|
438
|
+
#target;
|
|
439
|
+
/** @type {TweenOptions<T>} */
|
|
440
|
+
#defaults;
|
|
441
|
+
/** @type {import('../internal/client/types').Task | null} */
|
|
442
|
+
#task = null;
|
|
443
|
+
/**
|
|
444
|
+
* @param {T} value
|
|
445
|
+
* @param {TweenOptions<T>} options
|
|
446
|
+
*/
|
|
447
|
+
constructor(value, options = {}) {
|
|
448
|
+
this.#current = /* @__PURE__ */ state(value);
|
|
449
|
+
this.#target = /* @__PURE__ */ state(value);
|
|
450
|
+
this.#defaults = options;
|
|
451
|
+
tag(this.#current, "Tween.current");
|
|
452
|
+
tag(this.#target, "Tween.target");
|
|
453
|
+
}
|
|
454
|
+
/**
|
|
455
|
+
* Create a tween whose value is bound to the return value of `fn`. This must be called
|
|
456
|
+
* inside an effect root (for example, during component initialisation).
|
|
457
|
+
*
|
|
458
|
+
* ```svelte
|
|
459
|
+
* <script>
|
|
460
|
+
* import { Tween } from 'svelte/motion';
|
|
461
|
+
*
|
|
462
|
+
* let { number } = $props();
|
|
463
|
+
*
|
|
464
|
+
* const tween = Tween.of(() => number);
|
|
465
|
+
* <\/script>
|
|
466
|
+
* ```
|
|
467
|
+
* @template U
|
|
468
|
+
* @param {() => U} fn
|
|
469
|
+
* @param {TweenOptions<U>} [options]
|
|
470
|
+
*/
|
|
471
|
+
static of(fn, options) {
|
|
472
|
+
const tween = new Tween(fn(), options);
|
|
473
|
+
render_effect(() => {
|
|
474
|
+
tween.set(fn());
|
|
475
|
+
});
|
|
476
|
+
return tween;
|
|
477
|
+
}
|
|
478
|
+
/**
|
|
479
|
+
* Sets `tween.target` to `value` and returns a `Promise` that resolves if and when `tween.current` catches up to it.
|
|
480
|
+
*
|
|
481
|
+
* If `options` are provided, they will override the tween's defaults.
|
|
482
|
+
* @param {T} value
|
|
483
|
+
* @param {TweenOptions<T>} [options]
|
|
484
|
+
* @returns
|
|
485
|
+
*/
|
|
486
|
+
set(value, options) {
|
|
487
|
+
set(this.#target, value);
|
|
488
|
+
let { delay = 0, duration = 400, easing = linear, interpolate = get_interpolator } = {
|
|
489
|
+
...this.#defaults,
|
|
490
|
+
...options
|
|
491
|
+
};
|
|
492
|
+
if (duration === 0) {
|
|
493
|
+
this.#task?.abort();
|
|
494
|
+
set(this.#current, value);
|
|
495
|
+
return Promise.resolve();
|
|
496
|
+
}
|
|
497
|
+
const start = raf.now() + delay;
|
|
498
|
+
/** @type {(t: number) => T} */
|
|
499
|
+
let fn;
|
|
500
|
+
let started = false;
|
|
501
|
+
let previous_task = this.#task;
|
|
502
|
+
this.#task = loop((now) => {
|
|
503
|
+
if (now < start) return true;
|
|
504
|
+
if (!started) {
|
|
505
|
+
started = true;
|
|
506
|
+
const prev = this.#current.v;
|
|
507
|
+
fn = interpolate(prev, value);
|
|
508
|
+
if (typeof duration === "function") duration = duration(prev, value);
|
|
509
|
+
previous_task?.abort();
|
|
510
|
+
}
|
|
511
|
+
const elapsed = now - start;
|
|
512
|
+
if (elapsed > duration) {
|
|
513
|
+
set(this.#current, value);
|
|
514
|
+
return false;
|
|
515
|
+
}
|
|
516
|
+
set(this.#current, fn(easing(elapsed / duration)));
|
|
517
|
+
return true;
|
|
518
|
+
});
|
|
519
|
+
return this.#task.promise;
|
|
520
|
+
}
|
|
521
|
+
get current() {
|
|
522
|
+
return get(this.#current);
|
|
523
|
+
}
|
|
524
|
+
get target() {
|
|
525
|
+
return get(this.#target);
|
|
526
|
+
}
|
|
527
|
+
set target(v) {
|
|
528
|
+
this.set(v);
|
|
529
|
+
}
|
|
530
|
+
};
|
|
531
|
+
//#endregion
|
|
532
|
+
//#region ../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/index.js
|
|
533
|
+
/**
|
|
534
|
+
* A [media query](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery) that matches if the user [prefers reduced motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion).
|
|
535
|
+
*
|
|
536
|
+
* ```svelte
|
|
537
|
+
* <script>
|
|
538
|
+
* import { prefersReducedMotion } from 'svelte/motion';
|
|
539
|
+
* import { fly } from 'svelte/transition';
|
|
540
|
+
*
|
|
541
|
+
* let visible = $state(false);
|
|
542
|
+
* <\/script>
|
|
543
|
+
*
|
|
544
|
+
* <button onclick={() => visible = !visible}>
|
|
545
|
+
* toggle
|
|
546
|
+
* </button>
|
|
547
|
+
*
|
|
548
|
+
* {#if visible}
|
|
549
|
+
* <p transition:fly={{ y: prefersReducedMotion.current ? 0 : 200 }}>
|
|
550
|
+
* flies in, unless the user prefers reduced motion
|
|
551
|
+
* </p>
|
|
552
|
+
* {/if}
|
|
553
|
+
* ```
|
|
554
|
+
* @type {MediaQuery}
|
|
555
|
+
* @since 5.7.0
|
|
556
|
+
*/
|
|
557
|
+
var prefersReducedMotion = /* @__PURE__ */ new MediaQuery("(prefers-reduced-motion: reduce)");
|
|
558
|
+
//#endregion
|
|
559
|
+
export { Spring, Tween, prefersReducedMotion, spring, tweened };
|
|
560
|
+
|
|
561
|
+
//# sourceMappingURL=svelte_motion.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svelte_motion.js","names":["#current","#target","#stiffness","#damping","#precision","#last_value","#task","#last_time","#momentum","#inverse_mass","#deferred","#update","#current","#target","#defaults","#task"],"sources":["../../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/utils.js","../../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/spring.js","../../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/tweened.js","../../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/motion/index.js"],"sourcesContent":["/**\n * @param {any} obj\n * @returns {obj is Date}\n */\nexport function is_date(obj) {\n\treturn Object.prototype.toString.call(obj) === '[object Date]';\n}\n","/** @import { Task } from '#client' */\n/** @import { TickContext } from './private.js' */\n/** @import { Spring as SpringStore, SpringOptions, SpringUpdateOptions } from './public.js' */\nimport { writable } from '../store/shared/index.js';\nimport { loop } from '../internal/client/loop.js';\nimport { raf } from '../internal/client/timing.js';\nimport { is_date } from './utils.js';\nimport { set, state } from '../internal/client/reactivity/sources.js';\nimport { render_effect } from '../internal/client/reactivity/effects.js';\nimport { tag } from '../internal/client/dev/tracing.js';\nimport { get } from '../internal/client/runtime.js';\nimport { deferred, noop } from '../internal/shared/utils.js';\nimport { DEV } from 'esm-env';\n\n/**\n * @template T\n * @param {TickContext} ctx\n * @param {T} last_value\n * @param {T} current_value\n * @param {T} target_value\n * @returns {T}\n */\nfunction tick_spring(ctx, last_value, current_value, target_value) {\n\tif (typeof current_value === 'number' || is_date(current_value)) {\n\t\t// @ts-ignore\n\t\tconst delta = target_value - current_value;\n\t\t// @ts-ignore\n\t\tconst velocity = (current_value - last_value) / (ctx.dt || 1 / 60); // guard div by 0\n\t\tconst spring = ctx.opts.stiffness * delta;\n\t\tconst damper = ctx.opts.damping * velocity;\n\t\tconst acceleration = (spring - damper) * ctx.inv_mass;\n\t\tconst d = (velocity + acceleration) * ctx.dt;\n\t\tif (Math.abs(d) < ctx.opts.precision && Math.abs(delta) < ctx.opts.precision) {\n\t\t\treturn target_value; // settled\n\t\t} else {\n\t\t\tctx.settled = false; // signal loop to keep ticking\n\t\t\t// @ts-ignore\n\t\t\treturn is_date(current_value) ? new Date(current_value.getTime() + d) : current_value + d;\n\t\t}\n\t} else if (Array.isArray(current_value)) {\n\t\t// @ts-ignore\n\t\treturn current_value.map((_, i) =>\n\t\t\t// @ts-ignore\n\t\t\ttick_spring(ctx, last_value[i], current_value[i], target_value[i])\n\t\t);\n\t} else if (typeof current_value === 'object') {\n\t\tconst next_value = {};\n\t\tfor (const k in current_value) {\n\t\t\t// @ts-ignore\n\t\t\tnext_value[k] = tick_spring(ctx, last_value[k], current_value[k], target_value[k]);\n\t\t}\n\t\t// @ts-ignore\n\t\treturn next_value;\n\t} else {\n\t\tthrow new Error(`Cannot spring ${typeof current_value} values`);\n\t}\n}\n\n/**\n * The spring function in Svelte creates a store whose value is animated, with a motion that simulates the behavior of a spring. This means when the value changes, instead of transitioning at a steady rate, it \"bounces\" like a spring would, depending on the physics parameters provided. This adds a level of realism to the transitions and can enhance the user experience.\n *\n * @deprecated Use [`Spring`](https://svelte.dev/docs/svelte/svelte-motion#Spring) instead\n * @template [T=any]\n * @param {T} [value]\n * @param {SpringOptions} [opts]\n * @returns {SpringStore<T>}\n */\nexport function spring(value, opts = {}) {\n\tconst store = writable(value);\n\tconst { stiffness = 0.15, damping = 0.8, precision = 0.01 } = opts;\n\t/** @type {number} */\n\tlet last_time;\n\t/** @type {Task | null} */\n\tlet task;\n\t/** @type {object} */\n\tlet current_token;\n\n\tlet last_value = /** @type {T} */ (value);\n\tlet target_value = /** @type {T | undefined} */ (value);\n\n\tlet inv_mass = 1;\n\tlet inv_mass_recovery_rate = 0;\n\tlet cancel_task = false;\n\t/**\n\t * @param {T} new_value\n\t * @param {SpringUpdateOptions} opts\n\t * @returns {Promise<void>}\n\t */\n\tfunction set(new_value, opts = {}) {\n\t\ttarget_value = new_value;\n\t\tconst token = (current_token = {});\n\t\tif (value == null || opts.hard || (spring.stiffness >= 1 && spring.damping >= 1)) {\n\t\t\tcancel_task = true; // cancel any running animation\n\t\t\tlast_time = raf.now();\n\t\t\tlast_value = new_value;\n\t\t\tstore.set((value = target_value));\n\t\t\treturn Promise.resolve();\n\t\t} else if (opts.soft) {\n\t\t\tconst rate = opts.soft === true ? 0.5 : +opts.soft;\n\t\t\tinv_mass_recovery_rate = 1 / (rate * 60);\n\t\t\tinv_mass = 0; // infinite mass, unaffected by spring forces\n\t\t}\n\t\tif (!task) {\n\t\t\tlast_time = raf.now();\n\t\t\tcancel_task = false;\n\t\t\ttask = loop((now) => {\n\t\t\t\tif (cancel_task) {\n\t\t\t\t\tcancel_task = false;\n\t\t\t\t\ttask = null;\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tinv_mass = Math.min(inv_mass + inv_mass_recovery_rate, 1);\n\n\t\t\t\t// clamp elapsed time to 1/30th of a second, so that longer pauses\n\t\t\t\t// (blocked thread or inactive tab) don't cause the spring to go haywire\n\t\t\t\tconst elapsed = Math.min(now - last_time, 1000 / 30);\n\n\t\t\t\t/** @type {TickContext} */\n\t\t\t\tconst ctx = {\n\t\t\t\t\tinv_mass,\n\t\t\t\t\topts: spring,\n\t\t\t\t\tsettled: true,\n\t\t\t\t\tdt: (elapsed * 60) / 1000\n\t\t\t\t};\n\t\t\t\t// @ts-ignore\n\t\t\t\tconst next_value = tick_spring(ctx, last_value, value, target_value);\n\t\t\t\tlast_time = now;\n\t\t\t\tlast_value = /** @type {T} */ (value);\n\t\t\t\tstore.set((value = /** @type {T} */ (next_value)));\n\t\t\t\tif (ctx.settled) {\n\t\t\t\t\ttask = null;\n\t\t\t\t}\n\t\t\t\treturn !ctx.settled;\n\t\t\t});\n\t\t}\n\t\treturn new Promise((fulfil) => {\n\t\t\t/** @type {Task} */ (task).promise.then(() => {\n\t\t\t\tif (token === current_token) fulfil();\n\t\t\t});\n\t\t});\n\t}\n\t/** @type {SpringStore<T>} */\n\t// @ts-expect-error - class-only properties are missing\n\tconst spring = {\n\t\tset,\n\t\tupdate: (fn, opts) => set(fn(/** @type {T} */ (target_value), /** @type {T} */ (value)), opts),\n\t\tsubscribe: store.subscribe,\n\t\tstiffness,\n\t\tdamping,\n\t\tprecision\n\t};\n\treturn spring;\n}\n\n/**\n * A wrapper for a value that behaves in a spring-like fashion. Changes to `spring.target` will cause `spring.current` to\n * move towards it over time, taking account of the `spring.stiffness` and `spring.damping` parameters.\n *\n * ```svelte\n * <script>\n * \timport { Spring } from 'svelte/motion';\n *\n * \tconst spring = new Spring(0);\n * </script>\n *\n * <input type=\"range\" bind:value={spring.target} />\n * <input type=\"range\" bind:value={spring.current} disabled />\n * ```\n * @template T\n * @since 5.8.0\n */\nexport class Spring {\n\t#stiffness = state(0.15);\n\t#damping = state(0.8);\n\t#precision = state(0.01);\n\n\t#current;\n\t#target;\n\n\t#last_value = /** @type {T} */ (undefined);\n\t#last_time = 0;\n\n\t#inverse_mass = 1;\n\t#momentum = 0;\n\n\t/** @type {import('../internal/client/types').Task | null} */\n\t#task = null;\n\n\t/** @type {ReturnType<typeof deferred> | null} */\n\t#deferred = null;\n\n\t/**\n\t * @param {T} value\n\t * @param {SpringOptions} [options]\n\t */\n\tconstructor(value, options = {}) {\n\t\tthis.#current = DEV ? tag(state(value), 'Spring.current') : state(value);\n\t\tthis.#target = DEV ? tag(state(value), 'Spring.target') : state(value);\n\n\t\tif (typeof options.stiffness === 'number') this.#stiffness.v = clamp(options.stiffness, 0, 1);\n\t\tif (typeof options.damping === 'number') this.#damping.v = clamp(options.damping, 0, 1);\n\t\tif (typeof options.precision === 'number') this.#precision.v = options.precision;\n\n\t\tif (DEV) {\n\t\t\ttag(this.#stiffness, 'Spring.stiffness');\n\t\t\ttag(this.#damping, 'Spring.damping');\n\t\t\ttag(this.#precision, 'Spring.precision');\n\t\t\ttag(this.#current, 'Spring.current');\n\t\t\ttag(this.#target, 'Spring.target');\n\t\t}\n\t}\n\n\t/**\n\t * Create a spring whose value is bound to the return value of `fn`. This must be called\n\t * inside an effect root (for example, during component initialisation).\n\t *\n\t * ```svelte\n\t * <script>\n\t * \timport { Spring } from 'svelte/motion';\n\t *\n\t * \tlet { number } = $props();\n\t *\n\t * \tconst spring = Spring.of(() => number);\n\t * </script>\n\t * ```\n\t * @template U\n\t * @param {() => U} fn\n\t * @param {SpringOptions} [options]\n\t */\n\tstatic of(fn, options) {\n\t\tconst spring = new Spring(fn(), options);\n\n\t\trender_effect(() => {\n\t\t\tspring.set(fn());\n\t\t});\n\n\t\treturn spring;\n\t}\n\n\t/** @param {T} value */\n\t#update(value) {\n\t\tset(this.#target, value);\n\n\t\tthis.#current.v ??= value;\n\t\tthis.#last_value ??= this.#current.v;\n\n\t\tif (!this.#task) {\n\t\t\tthis.#last_time = raf.now();\n\n\t\t\tvar inv_mass_recovery_rate = 1000 / (this.#momentum * 60);\n\n\t\t\tthis.#task ??= loop((now) => {\n\t\t\t\tthis.#inverse_mass = Math.min(this.#inverse_mass + inv_mass_recovery_rate, 1);\n\n\t\t\t\t// clamp elapsed time to 1/30th of a second, so that longer pauses\n\t\t\t\t// (blocked thread or inactive tab) don't cause the spring to go haywire\n\t\t\t\tconst elapsed = Math.min(now - this.#last_time, 1000 / 30);\n\n\t\t\t\t/** @type {import('./private').TickContext} */\n\t\t\t\tconst ctx = {\n\t\t\t\t\tinv_mass: this.#inverse_mass,\n\t\t\t\t\topts: {\n\t\t\t\t\t\tstiffness: this.#stiffness.v,\n\t\t\t\t\t\tdamping: this.#damping.v,\n\t\t\t\t\t\tprecision: this.#precision.v\n\t\t\t\t\t},\n\t\t\t\t\tsettled: true,\n\t\t\t\t\tdt: (elapsed * 60) / 1000\n\t\t\t\t};\n\n\t\t\t\tvar next = tick_spring(ctx, this.#last_value, this.#current.v, this.#target.v);\n\t\t\t\tthis.#last_value = this.#current.v;\n\t\t\t\tthis.#last_time = now;\n\t\t\t\tset(this.#current, next);\n\n\t\t\t\tif (ctx.settled) {\n\t\t\t\t\tthis.#task = null;\n\t\t\t\t}\n\n\t\t\t\treturn !ctx.settled;\n\t\t\t});\n\t\t}\n\n\t\treturn this.#task.promise;\n\t}\n\n\t/**\n\t * Sets `spring.target` to `value` and returns a `Promise` that resolves if and when `spring.current` catches up to it.\n\t *\n\t * If `options.instant` is `true`, `spring.current` immediately matches `spring.target`.\n\t *\n\t * If `options.preserveMomentum` is provided, the spring will continue on its current trajectory for\n\t * the specified number of milliseconds. This is useful for things like 'fling' gestures.\n\t *\n\t * @param {T} value\n\t * @param {SpringUpdateOptions} [options]\n\t */\n\tset(value, options) {\n\t\tthis.#deferred?.reject(new Error('Aborted'));\n\n\t\tif (options?.instant || this.#current.v === undefined) {\n\t\t\tthis.#task?.abort();\n\t\t\tthis.#task = null;\n\t\t\tset(this.#current, set(this.#target, value));\n\t\t\tthis.#last_value = value;\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\tif (options?.preserveMomentum) {\n\t\t\tthis.#inverse_mass = 0;\n\t\t\tthis.#momentum = options.preserveMomentum;\n\t\t}\n\n\t\tvar d = (this.#deferred = deferred());\n\t\td.promise.catch(noop);\n\n\t\tthis.#update(value).then(() => {\n\t\t\tif (d !== this.#deferred) return;\n\t\t\td.resolve(undefined);\n\t\t});\n\n\t\treturn d.promise;\n\t}\n\n\tget current() {\n\t\treturn get(this.#current);\n\t}\n\n\tget damping() {\n\t\treturn get(this.#damping);\n\t}\n\n\tset damping(v) {\n\t\tset(this.#damping, clamp(v, 0, 1));\n\t}\n\n\tget precision() {\n\t\treturn get(this.#precision);\n\t}\n\n\tset precision(v) {\n\t\tset(this.#precision, v);\n\t}\n\n\tget stiffness() {\n\t\treturn get(this.#stiffness);\n\t}\n\n\tset stiffness(v) {\n\t\tset(this.#stiffness, clamp(v, 0, 1));\n\t}\n\n\tget target() {\n\t\treturn get(this.#target);\n\t}\n\n\tset target(v) {\n\t\tthis.set(v);\n\t}\n}\n\n/**\n * @param {number} n\n * @param {number} min\n * @param {number} max\n */\nfunction clamp(n, min, max) {\n\treturn Math.max(min, Math.min(max, n));\n}\n","/** @import { Task } from '../internal/client/types' */\n/** @import { Tweened, TweenOptions } from './public' */\nimport { writable } from '../store/shared/index.js';\nimport { raf } from '../internal/client/timing.js';\nimport { loop } from '../internal/client/loop.js';\nimport { linear } from '../easing/index.js';\nimport { is_date } from './utils.js';\nimport { set, state } from '../internal/client/reactivity/sources.js';\nimport { tag } from '../internal/client/dev/tracing.js';\nimport { get, render_effect } from 'svelte/internal/client';\nimport { DEV } from 'esm-env';\n\n/**\n * @template T\n * @param {T} a\n * @param {T} b\n * @returns {(t: number) => T}\n */\nfunction get_interpolator(a, b) {\n\tif (a === b || a !== a) return () => a;\n\n\tconst type = typeof a;\n\tif (type !== typeof b || Array.isArray(a) !== Array.isArray(b)) {\n\t\tthrow new Error('Cannot interpolate values of different type');\n\t}\n\n\tif (Array.isArray(a)) {\n\t\tconst arr = /** @type {Array<any>} */ (b).map((bi, i) => {\n\t\t\treturn get_interpolator(/** @type {Array<any>} */ (a)[i], bi);\n\t\t});\n\n\t\t// @ts-ignore\n\t\treturn (t) => arr.map((fn) => fn(t));\n\t}\n\n\tif (type === 'object') {\n\t\tif (!a || !b) {\n\t\t\tthrow new Error('Object cannot be null');\n\t\t}\n\n\t\tif (is_date(a) && is_date(b)) {\n\t\t\tconst an = a.getTime();\n\t\t\tconst bn = b.getTime();\n\t\t\tconst delta = bn - an;\n\n\t\t\t// @ts-ignore\n\t\t\treturn (t) => new Date(an + t * delta);\n\t\t}\n\n\t\tconst keys = Object.keys(b);\n\n\t\t/** @type {Record<string, (t: number) => T>} */\n\t\tconst interpolators = {};\n\t\tkeys.forEach((key) => {\n\t\t\t// @ts-ignore\n\t\t\tinterpolators[key] = get_interpolator(a[key], b[key]);\n\t\t});\n\n\t\t// @ts-ignore\n\t\treturn (t) => {\n\t\t\t/** @type {Record<string, any>} */\n\t\t\tconst result = {};\n\t\t\tkeys.forEach((key) => {\n\t\t\t\tresult[key] = interpolators[key](t);\n\t\t\t});\n\t\t\treturn result;\n\t\t};\n\t}\n\n\tif (type === 'number') {\n\t\tconst delta = /** @type {number} */ (b) - /** @type {number} */ (a);\n\t\t// @ts-ignore\n\t\treturn (t) => a + t * delta;\n\t}\n\n\t// for non-numeric values, snap to the final value immediately\n\treturn () => b;\n}\n\n/**\n * A tweened store in Svelte is a special type of store that provides smooth transitions between state values over time.\n *\n * @deprecated Use [`Tween`](https://svelte.dev/docs/svelte/svelte-motion#Tween) instead\n * @template T\n * @param {T} [value]\n * @param {TweenOptions<T>} [defaults]\n * @returns {Tweened<T>}\n */\nexport function tweened(value, defaults = {}) {\n\tconst store = writable(value);\n\t/** @type {Task} */\n\tlet task;\n\tlet target_value = value;\n\t/**\n\t * @param {T} new_value\n\t * @param {TweenOptions<T>} [opts]\n\t */\n\tfunction set(new_value, opts) {\n\t\ttarget_value = new_value;\n\n\t\tif (value == null) {\n\t\t\tstore.set((value = new_value));\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\t/** @type {Task | null} */\n\t\tlet previous_task = task;\n\n\t\tlet started = false;\n\t\tlet {\n\t\t\tdelay = 0,\n\t\t\tduration = 400,\n\t\t\teasing = linear,\n\t\t\tinterpolate = get_interpolator\n\t\t} = { ...defaults, ...opts };\n\n\t\tif (duration === 0) {\n\t\t\tif (previous_task) {\n\t\t\t\tprevious_task.abort();\n\t\t\t\tprevious_task = null;\n\t\t\t}\n\t\t\tstore.set((value = target_value));\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\tconst start = raf.now() + delay;\n\n\t\t/** @type {(t: number) => T} */\n\t\tlet fn;\n\t\ttask = loop((now) => {\n\t\t\tif (now < start) return true;\n\t\t\tif (!started) {\n\t\t\t\tfn = interpolate(/** @type {any} */ (value), new_value);\n\t\t\t\tif (typeof duration === 'function')\n\t\t\t\t\tduration = duration(/** @type {any} */ (value), new_value);\n\t\t\t\tstarted = true;\n\t\t\t}\n\t\t\tif (previous_task) {\n\t\t\t\tprevious_task.abort();\n\t\t\t\tprevious_task = null;\n\t\t\t}\n\t\t\tconst elapsed = now - start;\n\t\t\tif (elapsed > /** @type {number} */ (duration)) {\n\t\t\t\tstore.set((value = new_value));\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t// @ts-ignore\n\t\t\tstore.set((value = fn(easing(elapsed / duration))));\n\t\t\treturn true;\n\t\t});\n\t\treturn task.promise;\n\t}\n\treturn {\n\t\tset,\n\t\tupdate: (fn, opts) =>\n\t\t\tset(fn(/** @type {any} */ (target_value), /** @type {any} */ (value)), opts),\n\t\tsubscribe: store.subscribe\n\t};\n}\n\n/**\n * A wrapper for a value that tweens smoothly to its target value. Changes to `tween.target` will cause `tween.current` to\n * move towards it over time, taking account of the `delay`, `duration` and `easing` options.\n *\n * ```svelte\n * <script>\n * \timport { Tween } from 'svelte/motion';\n *\n * \tconst tween = new Tween(0);\n * </script>\n *\n * <input type=\"range\" bind:value={tween.target} />\n * <input type=\"range\" bind:value={tween.current} disabled />\n * ```\n * @template T\n * @since 5.8.0\n */\nexport class Tween {\n\t#current;\n\t#target;\n\n\t/** @type {TweenOptions<T>} */\n\t#defaults;\n\n\t/** @type {import('../internal/client/types').Task | null} */\n\t#task = null;\n\n\t/**\n\t * @param {T} value\n\t * @param {TweenOptions<T>} options\n\t */\n\tconstructor(value, options = {}) {\n\t\tthis.#current = state(value);\n\t\tthis.#target = state(value);\n\t\tthis.#defaults = options;\n\n\t\tif (DEV) {\n\t\t\ttag(this.#current, 'Tween.current');\n\t\t\ttag(this.#target, 'Tween.target');\n\t\t}\n\t}\n\n\t/**\n\t * Create a tween whose value is bound to the return value of `fn`. This must be called\n\t * inside an effect root (for example, during component initialisation).\n\t *\n\t * ```svelte\n\t * <script>\n\t * \timport { Tween } from 'svelte/motion';\n\t *\n\t * \tlet { number } = $props();\n\t *\n\t * \tconst tween = Tween.of(() => number);\n\t * </script>\n\t * ```\n\t * @template U\n\t * @param {() => U} fn\n\t * @param {TweenOptions<U>} [options]\n\t */\n\tstatic of(fn, options) {\n\t\tconst tween = new Tween(fn(), options);\n\n\t\trender_effect(() => {\n\t\t\ttween.set(fn());\n\t\t});\n\n\t\treturn tween;\n\t}\n\n\t/**\n\t * Sets `tween.target` to `value` and returns a `Promise` that resolves if and when `tween.current` catches up to it.\n\t *\n\t * If `options` are provided, they will override the tween's defaults.\n\t * @param {T} value\n\t * @param {TweenOptions<T>} [options]\n\t * @returns\n\t */\n\tset(value, options) {\n\t\tset(this.#target, value);\n\n\t\tlet {\n\t\t\tdelay = 0,\n\t\t\tduration = 400,\n\t\t\teasing = linear,\n\t\t\tinterpolate = get_interpolator\n\t\t} = { ...this.#defaults, ...options };\n\n\t\tif (duration === 0) {\n\t\t\tthis.#task?.abort();\n\t\t\tset(this.#current, value);\n\t\t\treturn Promise.resolve();\n\t\t}\n\n\t\tconst start = raf.now() + delay;\n\n\t\t/** @type {(t: number) => T} */\n\t\tlet fn;\n\t\tlet started = false;\n\t\tlet previous_task = this.#task;\n\n\t\tthis.#task = loop((now) => {\n\t\t\tif (now < start) {\n\t\t\t\treturn true;\n\t\t\t}\n\n\t\t\tif (!started) {\n\t\t\t\tstarted = true;\n\n\t\t\t\tconst prev = this.#current.v;\n\n\t\t\t\tfn = interpolate(prev, value);\n\n\t\t\t\tif (typeof duration === 'function') {\n\t\t\t\t\tduration = duration(prev, value);\n\t\t\t\t}\n\n\t\t\t\tprevious_task?.abort();\n\t\t\t}\n\n\t\t\tconst elapsed = now - start;\n\n\t\t\tif (elapsed > /** @type {number} */ (duration)) {\n\t\t\t\tset(this.#current, value);\n\t\t\t\treturn false;\n\t\t\t}\n\n\t\t\tset(this.#current, fn(easing(elapsed / /** @type {number} */ (duration))));\n\t\t\treturn true;\n\t\t});\n\n\t\treturn this.#task.promise;\n\t}\n\n\tget current() {\n\t\treturn get(this.#current);\n\t}\n\n\tget target() {\n\t\treturn get(this.#target);\n\t}\n\n\tset target(v) {\n\t\tthis.set(v);\n\t}\n}\n","import { MediaQuery } from 'svelte/reactivity';\n\nexport * from './spring.js';\nexport * from './tweened.js';\n\n/**\n * A [media query](https://svelte.dev/docs/svelte/svelte-reactivity#MediaQuery) that matches if the user [prefers reduced motion](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion).\n *\n * ```svelte\n * <script>\n * \timport { prefersReducedMotion } from 'svelte/motion';\n * \timport { fly } from 'svelte/transition';\n *\n * \tlet visible = $state(false);\n * </script>\n *\n * <button onclick={() => visible = !visible}>\n * \ttoggle\n * </button>\n *\n * {#if visible}\n * \t<p transition:fly={{ y: prefersReducedMotion.current ? 0 : 200 }}>\n * \t\tflies in, unless the user prefers reduced motion\n * \t</p>\n * {/if}\n * ```\n * @type {MediaQuery}\n * @since 5.7.0\n */\nexport const prefersReducedMotion = /*@__PURE__*/ new MediaQuery(\n\t'(prefers-reduced-motion: reduce)'\n);\n"],"x_google_ignoreList":[0,1,2,3],"mappings":";;;;;;;;;AAIA,SAAgB,QAAQ,KAAK;CAC5B,OAAO,OAAO,UAAU,SAAS,KAAK,GAAG,MAAM;AAChD;;;;;;;;;;;;;;ACgBA,SAAS,YAAY,KAAK,YAAY,eAAe,cAAc;CAClE,IAAI,OAAO,kBAAkB,YAAY,QAAQ,aAAa,GAAG;EAEhE,MAAM,QAAQ,eAAe;EAE7B,MAAM,YAAY,gBAAgB,eAAe,IAAI,MAAM,IAAI;EAI/D,MAAM,KAAK,YAHI,IAAI,KAAK,YAAY,QACrB,IAAI,KAAK,UAAU,YACO,IAAI,YACP,IAAI;EAC1C,IAAI,KAAK,IAAI,CAAC,IAAI,IAAI,KAAK,aAAa,KAAK,IAAI,KAAK,IAAI,IAAI,KAAK,WAClE,OAAO;OACD;GACN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uCAAqC,IAAI,WACrD,kCACD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region ../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/reactivity/index-server.js
|
|
2
|
+
var SvelteDate = globalThis.Date;
|
|
3
|
+
var SvelteSet = globalThis.Set;
|
|
4
|
+
var SvelteMap = globalThis.Map;
|
|
5
|
+
var SvelteURL = globalThis.URL;
|
|
6
|
+
var SvelteURLSearchParams = globalThis.URLSearchParams;
|
|
7
|
+
var MediaQuery = class {
|
|
8
|
+
current;
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} query
|
|
11
|
+
* @param {boolean} [matches]
|
|
12
|
+
*/
|
|
13
|
+
constructor(query, matches = false) {
|
|
14
|
+
this.current = matches;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* @param {any} _
|
|
19
|
+
*/
|
|
20
|
+
function createSubscriber(_) {
|
|
21
|
+
return () => {};
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { MediaQuery, SvelteDate, SvelteMap, SvelteSet, SvelteURL, SvelteURLSearchParams, createSubscriber };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=svelte_reactivity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svelte_reactivity.js","names":[],"sources":["../../../../../../../../node_modules/.pnpm/svelte@5.55.9/node_modules/svelte/src/reactivity/index-server.js"],"sourcesContent":["export const SvelteDate = globalThis.Date;\nexport const SvelteSet = globalThis.Set;\nexport const SvelteMap = globalThis.Map;\nexport const SvelteURL = globalThis.URL;\nexport const SvelteURLSearchParams = globalThis.URLSearchParams;\n\nexport class MediaQuery {\n\tcurrent;\n\t/**\n\t * @param {string} query\n\t * @param {boolean} [matches]\n\t */\n\tconstructor(query, matches = false) {\n\t\tthis.current = matches;\n\t}\n}\n\n/**\n * @param {any} _\n */\nexport function createSubscriber(_) {\n\treturn () => {};\n}\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAa,aAAa,WAAW;AACrC,IAAa,YAAY,WAAW;AACpC,IAAa,YAAY,WAAW;AACpC,IAAa,YAAY,WAAW;AACpC,IAAa,wBAAwB,WAAW;AAEhD,IAAa,aAAb,MAAwB;CACvB;;;;;CAKA,YAAY,OAAO,UAAU,OAAO;EACnC,KAAK,UAAU;CAChB;AACD;;;;AAKA,SAAgB,iBAAiB,GAAG;CACnC,aAAa,CAAC;AACf"}
|