lumen-plus 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.svelte +1 -1
- package/dist/components/Autocomplete/Autocomplete.svelte +1 -1
- package/dist/components/Backtop/Backtop.svelte +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.svelte +1 -1
- package/dist/components/Button/Button.svelte +1 -1
- package/dist/components/Calendar/Calendar.svelte +1 -1
- package/dist/components/Carousel/Carousel.svelte +1 -1
- package/dist/components/Cascader/Cascader.svelte +2 -2
- package/dist/components/Checkbox/Checkbox.svelte +1 -1
- package/dist/components/Collapse/CollapseItem.svelte +1 -1
- package/dist/components/ColorPicker/ColorPicker.svelte +2 -2
- package/dist/components/DatePicker/DatePicker.svelte +2 -2
- package/dist/components/DateTimePicker/DateTimePicker.svelte +2 -2
- package/dist/components/Dialog/Dialog.svelte +1 -1
- package/dist/components/Drawer/Drawer.svelte +1 -1
- package/dist/components/Dropdown/Dropdown.svelte +1 -1
- package/dist/components/Image/Image.svelte +1 -1
- package/dist/components/Input/Input.svelte +1 -1
- package/dist/components/InputNumber/InputNumber.svelte +1 -1
- package/dist/components/InputTag/InputTag.svelte +1 -1
- package/dist/components/Loading/Loading.svelte +1 -1
- package/dist/components/Menu/Menu.svelte +1 -1
- package/dist/components/Message/MessageBox.svelte +1 -1
- package/dist/components/MessageBox/MessageBox.svelte +2 -2
- package/dist/components/Notification/Notification.svelte +1 -1
- package/dist/components/Pagination/Pagination.svelte +4 -4
- package/dist/components/Popconfirm/Popconfirm.svelte +2 -2
- package/dist/components/Result/Result.svelte +1 -1
- package/dist/components/Select/Select.svelte +2 -2
- package/dist/components/Slider/Slider.svelte +1 -1
- package/dist/components/Steps/Step.svelte +1 -1
- package/dist/components/Switch/Switch.svelte +1 -1
- package/dist/components/Table/Table.svelte +5 -5
- package/dist/components/Tabs/Tabs.svelte +1 -1
- package/dist/components/Tag/Tag.svelte +1 -1
- package/dist/components/Textarea/Textarea.svelte +1 -1
- package/dist/components/TimePicker/TimePicker.svelte +2 -2
- package/dist/components/Transfer/Transfer.svelte +2 -2
- package/dist/components/Tree/TreeNode.svelte +2 -2
- package/dist/components/TreeSelect/TreeSelect.svelte +4 -4
- package/dist/components/Upload/Upload.svelte +1 -1
- package/package.json +1 -1
- package/dist/utils/node_modules/.bin/tsc +0 -2
- package/dist/utils/node_modules/.bin/tsserver +0 -2
- package/dist/utils/node_modules/svelte/LICENSE.md +0 -7
- package/dist/utils/node_modules/svelte/README.md +0 -41
- package/dist/utils/node_modules/svelte/compiler/index.js +0 -1
- package/dist/utils/node_modules/svelte/compiler/package.json +0 -3
- package/dist/utils/node_modules/svelte/package.json +0 -184
- package/dist/utils/node_modules/svelte/src/animate/index.js +0 -78
- package/dist/utils/node_modules/svelte/src/attachments/index.js +0 -113
- package/dist/utils/node_modules/svelte/src/compiler/errors.js +0 -1719
- package/dist/utils/node_modules/svelte/src/compiler/index.js +0 -198
- package/dist/utils/node_modules/svelte/src/compiler/legacy.js +0 -632
- package/dist/utils/node_modules/svelte/src/compiler/migrate/index.js +0 -1996
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/acorn.js +0 -198
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/index.js +0 -326
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/context.js +0 -116
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/expression.js +0 -93
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/options.js +0 -261
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/script.js +0 -97
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/read/style.js +0 -633
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/remove_typescript_nodes.js +0 -180
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/element.js +0 -877
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/fragment.js +0 -17
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/tag.js +0 -751
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/state/text.js +0 -23
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/bracket.js +0 -213
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/create.js +0 -16
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/entities.js +0 -2234
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/fuzzymatch.js +0 -280
- package/dist/utils/node_modules/svelte/src/compiler/phases/1-parse/utils/html.js +0 -127
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/css-analyze.js +0 -331
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/css-prune.js +0 -1160
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/css-warn.js +0 -47
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/css/utils.js +0 -177
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/index.js +0 -1283
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/utils/check_graph_for_cycles.js +0 -47
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AnimateDirective.js +0 -15
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ArrowFunctionExpression.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AssignmentExpression.js +0 -31
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AttachTag.js +0 -17
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js +0 -66
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AwaitBlock.js +0 -48
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/AwaitExpression.js +0 -150
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/BindDirective.js +0 -280
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/CallExpression.js +0 -339
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassBody.js +0 -156
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDeclaration.js +0 -25
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ClassDirective.js +0 -13
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Component.js +0 -26
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ConstTag.js +0 -45
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/DebugTag.js +0 -15
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/EachBlock.js +0 -97
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportDefaultDeclaration.js +0 -20
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportNamedDeclaration.js +0 -70
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExportSpecifier.js +0 -30
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionStatement.js +0 -38
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ExpressionTag.js +0 -26
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Fragment.js +0 -10
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionDeclaration.js +0 -16
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/FunctionExpression.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/HtmlTag.js +0 -19
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Identifier.js +0 -193
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/IfBlock.js +0 -27
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/ImportDeclaration.js +0 -31
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/KeyBlock.js +0 -21
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LabeledStatement.js +0 -95
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/LetDirective.js +0 -24
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Literal.js +0 -14
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/MemberExpression.js +0 -28
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/NewExpression.js +0 -17
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/OnDirective.js +0 -28
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/PropertyDefinition.js +0 -21
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RegularElement.js +0 -210
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/RenderTag.js +0 -68
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SlotElement.js +0 -42
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js +0 -113
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadAttribute.js +0 -13
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SpreadElement.js +0 -16
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/StyleDirective.js +0 -39
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBody.js +0 -22
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteBoundary.js +0 -30
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteComponent.js +0 -18
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteDocument.js +0 -24
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteElement.js +0 -78
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteFragment.js +0 -27
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteHead.js +0 -18
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteSelf.js +0 -36
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/SvelteWindow.js +0 -24
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TaggedTemplateExpression.js +0 -16
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TemplateElement.js +0 -12
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/Text.js +0 -52
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TitleElement.js +0 -21
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/TransitionDirective.js +0 -19
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UpdateExpression.js +0 -29
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/UseDirective.js +0 -18
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/VariableDeclarator.js +0 -160
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/constants.js +0 -319
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/a11y/index.js +0 -977
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/attribute.js +0 -125
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/component.js +0 -177
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/element.js +0 -160
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/fragment.js +0 -15
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/function.js +0 -24
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/snippets.js +0 -17
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/special-element.js +0 -16
- package/dist/utils/node_modules/svelte/src/compiler/phases/2-analyze/visitors/shared/utils.js +0 -301
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-client.js +0 -709
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-template/fix-attribute-casing.js +0 -18
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-template/index.js +0 -67
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/transform-template/template.js +0 -162
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/utils.js +0 -181
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AnimateDirective.js +0 -38
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ArrowFunctionExpression.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AssignmentExpression.js +0 -225
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AttachTag.js +0 -26
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Attribute.js +0 -14
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AwaitBlock.js +0 -124
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/AwaitExpression.js +0 -25
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BinaryExpression.js +0 -34
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BindDirective.js +0 -290
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BlockStatement.js +0 -32
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/BreakStatement.js +0 -20
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/CallExpression.js +0 -136
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ClassBody.js +0 -111
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Comment.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Component.js +0 -12
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ConstTag.js +0 -134
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/DebugTag.js +0 -28
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/EachBlock.js +0 -367
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExportNamedDeclaration.js +0 -19
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ExpressionStatement.js +0 -20
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/ForOfStatement.js +0 -25
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Fragment.js +0 -181
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionDeclaration.js +0 -12
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/FunctionExpression.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/HtmlTag.js +0 -49
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Identifier.js +0 -45
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/IfBlock.js +0 -90
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/KeyBlock.js +0 -39
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LabeledStatement.js +0 -64
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/LetDirective.js +0 -55
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/MemberExpression.js +0 -23
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/OnDirective.js +0 -38
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/Program.js +0 -153
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js +0 -791
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/RenderTag.js +0 -91
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SlotElement.js +0 -94
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SnippetBlock.js +0 -94
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SpreadAttribute.js +0 -10
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBody.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteBoundary.js +0 -126
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteComponent.js +0 -13
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteDocument.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteElement.js +0 -157
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteFragment.js +0 -17
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteHead.js +0 -23
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteSelf.js +0 -13
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/SvelteWindow.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TitleElement.js +0 -48
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/TransitionDirective.js +0 -41
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UpdateExpression.js +0 -55
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/UseDirective.js +0 -49
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js +0 -422
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/component.js +0 -530
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/declarations.js +0 -53
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/element.js +0 -263
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/events.js +0 -176
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/fragment.js +0 -185
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/function.js +0 -17
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/special_element.js +0 -22
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/client/visitors/shared/utils.js +0 -513
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/css/index.js +0 -479
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/index.js +0 -118
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/transform-server.js +0 -423
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AssignmentExpression.js +0 -107
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AwaitBlock.js +0 -37
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/AwaitExpression.js +0 -40
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/CallExpression.js +0 -71
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ClassBody.js +0 -81
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Component.js +0 -12
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ConstTag.js +0 -49
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/DebugTag.js +0 -24
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/EachBlock.js +0 -80
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/ExpressionStatement.js +0 -23
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Fragment.js +0 -53
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/HtmlTag.js +0 -26
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Identifier.js +0 -19
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/IfBlock.js +0 -39
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/KeyBlock.js +0 -22
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/LabeledStatement.js +0 -24
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/MemberExpression.js +0 -19
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/Program.js +0 -25
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/PropertyDefinition.js +0 -37
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RegularElement.js +0 -255
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/RenderTag.js +0 -51
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SlotElement.js +0 -77
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js +0 -29
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SpreadAttribute.js +0 -10
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteBoundary.js +0 -71
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteComponent.js +0 -12
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteElement.js +0 -102
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteFragment.js +0 -11
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteHead.js +0 -25
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/SvelteSelf.js +0 -12
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/TitleElement.js +0 -21
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/UpdateExpression.js +0 -26
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/VariableDeclaration.js +0 -212
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/component.js +0 -360
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/element.js +0 -563
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/server/visitors/shared/utils.js +0 -407
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/shared/assignments.js +0 -93
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/shared/transform-async.js +0 -114
- package/dist/utils/node_modules/svelte/src/compiler/phases/3-transform/utils.js +0 -451
- package/dist/utils/node_modules/svelte/src/compiler/phases/bindings.js +0 -227
- package/dist/utils/node_modules/svelte/src/compiler/phases/css.js +0 -14
- package/dist/utils/node_modules/svelte/src/compiler/phases/nodes.js +0 -245
- package/dist/utils/node_modules/svelte/src/compiler/phases/patterns.js +0 -27
- package/dist/utils/node_modules/svelte/src/compiler/phases/scope.js +0 -1412
- package/dist/utils/node_modules/svelte/src/compiler/preprocess/decode_sourcemap.js +0 -96
- package/dist/utils/node_modules/svelte/src/compiler/preprocess/index.js +0 -368
- package/dist/utils/node_modules/svelte/src/compiler/preprocess/replace_in_code.js +0 -72
- package/dist/utils/node_modules/svelte/src/compiler/print/index.js +0 -890
- package/dist/utils/node_modules/svelte/src/compiler/state.js +0 -144
- package/dist/utils/node_modules/svelte/src/compiler/utils/assert.js +0 -9
- package/dist/utils/node_modules/svelte/src/compiler/utils/ast.js +0 -639
- package/dist/utils/node_modules/svelte/src/compiler/utils/builders.js +0 -698
- package/dist/utils/node_modules/svelte/src/compiler/utils/compile_diagnostic.js +0 -107
- package/dist/utils/node_modules/svelte/src/compiler/utils/extract_svelte_ignore.js +0 -104
- package/dist/utils/node_modules/svelte/src/compiler/utils/mapped_code.js +0 -454
- package/dist/utils/node_modules/svelte/src/compiler/utils/push_array.js +0 -13
- package/dist/utils/node_modules/svelte/src/compiler/utils/sanitize_template_string.js +0 -7
- package/dist/utils/node_modules/svelte/src/compiler/utils/slot.js +0 -20
- package/dist/utils/node_modules/svelte/src/compiler/utils/string.js +0 -9
- package/dist/utils/node_modules/svelte/src/compiler/validate-options.js +0 -324
- package/dist/utils/node_modules/svelte/src/compiler/warnings.js +0 -845
- package/dist/utils/node_modules/svelte/src/constants.js +0 -64
- package/dist/utils/node_modules/svelte/src/easing/index.js +0 -286
- package/dist/utils/node_modules/svelte/src/escaping.js +0 -26
- package/dist/utils/node_modules/svelte/src/events/index.js +0 -1
- package/dist/utils/node_modules/svelte/src/html-tree-validation.js +0 -238
- package/dist/utils/node_modules/svelte/src/index-client.js +0 -255
- package/dist/utils/node_modules/svelte/src/index-server.js +0 -56
- package/dist/utils/node_modules/svelte/src/internal/client/constants.js +0 -73
- package/dist/utils/node_modules/svelte/src/internal/client/context.js +0 -258
- package/dist/utils/node_modules/svelte/src/internal/client/dev/assign.js +0 -78
- package/dist/utils/node_modules/svelte/src/internal/client/dev/console-log.js +0 -35
- package/dist/utils/node_modules/svelte/src/internal/client/dev/css.js +0 -31
- package/dist/utils/node_modules/svelte/src/internal/client/dev/debug.js +0 -500
- package/dist/utils/node_modules/svelte/src/internal/client/dev/elements.js +0 -63
- package/dist/utils/node_modules/svelte/src/internal/client/dev/equality.js +0 -101
- package/dist/utils/node_modules/svelte/src/internal/client/dev/hmr.js +0 -89
- package/dist/utils/node_modules/svelte/src/internal/client/dev/inspect.js +0 -72
- package/dist/utils/node_modules/svelte/src/internal/client/dev/legacy.js +0 -25
- package/dist/utils/node_modules/svelte/src/internal/client/dev/ownership.js +0 -81
- package/dist/utils/node_modules/svelte/src/internal/client/dev/tracing.js +0 -162
- package/dist/utils/node_modules/svelte/src/internal/client/dev/validation.js +0 -16
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/async.js +0 -64
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/await.js +0 -142
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/boundary.js +0 -507
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/branches.js +0 -227
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/css-props.js +0 -28
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/each.js +0 -666
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/html.js +0 -121
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/if.js +0 -70
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/key.js +0 -33
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/slot.js +0 -44
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/snippet.js +0 -103
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/svelte-component.js +0 -26
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/svelte-element.js +0 -152
- package/dist/utils/node_modules/svelte/src/internal/client/dom/blocks/svelte-head.js +0 -59
- package/dist/utils/node_modules/svelte/src/internal/client/dom/css.js +0 -32
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/actions.js +0 -43
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/attachments.js +0 -33
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/attributes.js +0 -657
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/document.js +0 -17
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/input.js +0 -312
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/media.js +0 -232
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/navigator.js +0 -11
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/props.js +0 -22
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/select.js +0 -159
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/shared.js +0 -76
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/size.js +0 -108
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/this.js +0 -61
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/universal.js +0 -75
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/bindings/window.js +0 -66
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/class.js +0 -51
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/custom-element.js +0 -338
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/customizable-select.js +0 -98
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/events.js +0 -338
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/misc.js +0 -58
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/style.js +0 -57
- package/dist/utils/node_modules/svelte/src/internal/client/dom/elements/transitions.js +0 -472
- package/dist/utils/node_modules/svelte/src/internal/client/dom/hydration.js +0 -120
- package/dist/utils/node_modules/svelte/src/internal/client/dom/legacy/event-modifiers.js +0 -127
- package/dist/utils/node_modules/svelte/src/internal/client/dom/legacy/lifecycle.js +0 -82
- package/dist/utils/node_modules/svelte/src/internal/client/dom/legacy/misc.js +0 -68
- package/dist/utils/node_modules/svelte/src/internal/client/dom/operations.js +0 -260
- package/dist/utils/node_modules/svelte/src/internal/client/dom/reconciler.js +0 -6
- package/dist/utils/node_modules/svelte/src/internal/client/dom/task.js +0 -42
- package/dist/utils/node_modules/svelte/src/internal/client/dom/template.js +0 -388
- package/dist/utils/node_modules/svelte/src/internal/client/error-handling.js +0 -116
- package/dist/utils/node_modules/svelte/src/internal/client/errors.js +0 -491
- package/dist/utils/node_modules/svelte/src/internal/client/hydratable.js +0 -33
- package/dist/utils/node_modules/svelte/src/internal/client/index.js +0 -184
- package/dist/utils/node_modules/svelte/src/internal/client/legacy.js +0 -46
- package/dist/utils/node_modules/svelte/src/internal/client/loop.js +0 -48
- package/dist/utils/node_modules/svelte/src/internal/client/proxy.js +0 -432
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/async.js +0 -302
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/batch.js +0 -988
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/deriveds.js +0 -394
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/effects.js +0 -717
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/equality.js +0 -31
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/props.js +0 -430
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/sources.js +0 -368
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/status.js +0 -25
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/store.js +0 -203
- package/dist/utils/node_modules/svelte/src/internal/client/reactivity/utils.js +0 -40
- package/dist/utils/node_modules/svelte/src/internal/client/render.js +0 -319
- package/dist/utils/node_modules/svelte/src/internal/client/runtime.js +0 -831
- package/dist/utils/node_modules/svelte/src/internal/client/timing.js +0 -16
- package/dist/utils/node_modules/svelte/src/internal/client/validate.js +0 -88
- package/dist/utils/node_modules/svelte/src/internal/client/warnings.js +0 -271
- package/dist/utils/node_modules/svelte/src/internal/disclose-version.js +0 -6
- package/dist/utils/node_modules/svelte/src/internal/flags/async.js +0 -3
- package/dist/utils/node_modules/svelte/src/internal/flags/index.js +0 -23
- package/dist/utils/node_modules/svelte/src/internal/flags/legacy.js +0 -3
- package/dist/utils/node_modules/svelte/src/internal/flags/tracing.js +0 -3
- package/dist/utils/node_modules/svelte/src/internal/index.js +0 -5
- package/dist/utils/node_modules/svelte/src/internal/server/abort-signal.js +0 -13
- package/dist/utils/node_modules/svelte/src/internal/server/blocks/html.js +0 -11
- package/dist/utils/node_modules/svelte/src/internal/server/blocks/snippet.js +0 -24
- package/dist/utils/node_modules/svelte/src/internal/server/context.js +0 -122
- package/dist/utils/node_modules/svelte/src/internal/server/crypto.js +0 -41
- package/dist/utils/node_modules/svelte/src/internal/server/dev.js +0 -115
- package/dist/utils/node_modules/svelte/src/internal/server/errors.js +0 -118
- package/dist/utils/node_modules/svelte/src/internal/server/hydratable.js +0 -142
- package/dist/utils/node_modules/svelte/src/internal/server/hydration.js +0 -6
- package/dist/utils/node_modules/svelte/src/internal/server/index.js +0 -490
- package/dist/utils/node_modules/svelte/src/internal/server/render-context.js +0 -86
- package/dist/utils/node_modules/svelte/src/internal/server/renderer.js +0 -770
- package/dist/utils/node_modules/svelte/src/internal/server/warnings.js +0 -29
- package/dist/utils/node_modules/svelte/src/internal/shared/attributes.js +0 -223
- package/dist/utils/node_modules/svelte/src/internal/shared/clone.js +0 -137
- package/dist/utils/node_modules/svelte/src/internal/shared/dev.js +0 -65
- package/dist/utils/node_modules/svelte/src/internal/shared/errors.js +0 -134
- package/dist/utils/node_modules/svelte/src/internal/shared/utils.js +0 -118
- package/dist/utils/node_modules/svelte/src/internal/shared/validate.js +0 -47
- package/dist/utils/node_modules/svelte/src/internal/shared/warnings.js +0 -40
- package/dist/utils/node_modules/svelte/src/legacy/legacy-client.js +0 -280
- package/dist/utils/node_modules/svelte/src/legacy/legacy-server.js +0 -112
- package/dist/utils/node_modules/svelte/src/motion/index.js +0 -32
- package/dist/utils/node_modules/svelte/src/motion/spring.js +0 -369
- package/dist/utils/node_modules/svelte/src/motion/tweened.js +0 -306
- package/dist/utils/node_modules/svelte/src/motion/utils.js +0 -7
- package/dist/utils/node_modules/svelte/src/reactivity/create-subscriber.js +0 -95
- package/dist/utils/node_modules/svelte/src/reactivity/date.js +0 -118
- package/dist/utils/node_modules/svelte/src/reactivity/index-client.js +0 -7
- package/dist/utils/node_modules/svelte/src/reactivity/index-server.js +0 -23
- package/dist/utils/node_modules/svelte/src/reactivity/map.js +0 -273
- package/dist/utils/node_modules/svelte/src/reactivity/media-query.js +0 -55
- package/dist/utils/node_modules/svelte/src/reactivity/reactive-value.js +0 -24
- package/dist/utils/node_modules/svelte/src/reactivity/set.js +0 -213
- package/dist/utils/node_modules/svelte/src/reactivity/url-search-params.js +0 -174
- package/dist/utils/node_modules/svelte/src/reactivity/url.js +0 -205
- package/dist/utils/node_modules/svelte/src/reactivity/window/index.js +0 -161
- package/dist/utils/node_modules/svelte/src/server/index.js +0 -1
- package/dist/utils/node_modules/svelte/src/store/index-client.js +0 -169
- package/dist/utils/node_modules/svelte/src/store/index-server.js +0 -101
- package/dist/utils/node_modules/svelte/src/store/shared/index.js +0 -209
- package/dist/utils/node_modules/svelte/src/store/utils.js +0 -36
- package/dist/utils/node_modules/svelte/src/transition/index.js +0 -300
- package/dist/utils/node_modules/svelte/src/utils.js +0 -491
- package/dist/utils/node_modules/svelte/src/version.js +0 -8
- package/dist/utils/node_modules/typescript/LICENSE.txt +0 -55
- package/dist/utils/node_modules/typescript/README.md +0 -50
- package/dist/utils/node_modules/typescript/SECURITY.md +0 -41
- package/dist/utils/node_modules/typescript/ThirdPartyNoticeText.txt +0 -193
- package/dist/utils/node_modules/typescript/bin/tsc +0 -2
- package/dist/utils/node_modules/typescript/bin/tsserver +0 -2
- package/dist/utils/node_modules/typescript/lib/_tsc.js +0 -133818
- package/dist/utils/node_modules/typescript/lib/_tsserver.js +0 -659
- package/dist/utils/node_modules/typescript/lib/_typingsInstaller.js +0 -222
- package/dist/utils/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/de/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/es/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/it/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/tsc.js +0 -8
- package/dist/utils/node_modules/typescript/lib/tsserver.js +0 -8
- package/dist/utils/node_modules/typescript/lib/tsserverlibrary.js +0 -21
- package/dist/utils/node_modules/typescript/lib/typesMap.json +0 -497
- package/dist/utils/node_modules/typescript/lib/typescript.js +0 -200276
- package/dist/utils/node_modules/typescript/lib/typingsInstaller.js +0 -8
- package/dist/utils/node_modules/typescript/lib/watchGuard.js +0 -53
- package/dist/utils/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +0 -2122
- package/dist/utils/node_modules/typescript/package.json +0 -120
- package/dist/utils/package.json +0 -27
|
@@ -1,472 +0,0 @@
|
|
|
1
|
-
/** @import { AnimateFn, Animation, AnimationConfig, EachItem, Effect, EffectNodes, TransitionFn, TransitionManager } from '#client' */
|
|
2
|
-
import { noop, is_function } from '../../../shared/utils.js';
|
|
3
|
-
import { effect } from '../../reactivity/effects.js';
|
|
4
|
-
import { active_effect, untrack } from '../../runtime.js';
|
|
5
|
-
import { loop } from '../../loop.js';
|
|
6
|
-
import { should_intro } from '../../render.js';
|
|
7
|
-
import { TRANSITION_GLOBAL, TRANSITION_IN, TRANSITION_OUT } from '../../../../constants.js';
|
|
8
|
-
import { BLOCK_EFFECT, EFFECT_RAN, EFFECT_TRANSPARENT } from '#client/constants';
|
|
9
|
-
import { queue_micro_task } from '../task.js';
|
|
10
|
-
import { without_reactive_context } from './bindings/shared.js';
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* @param {Element} element
|
|
14
|
-
* @param {'introstart' | 'introend' | 'outrostart' | 'outroend'} type
|
|
15
|
-
* @returns {void}
|
|
16
|
-
*/
|
|
17
|
-
function dispatch_event(element, type) {
|
|
18
|
-
without_reactive_context(() => {
|
|
19
|
-
element.dispatchEvent(new CustomEvent(type));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Converts a property to the camel-case format expected by Element.animate(), KeyframeEffect(), and KeyframeEffect.setKeyframes().
|
|
25
|
-
* @param {string} style
|
|
26
|
-
* @returns {string}
|
|
27
|
-
*/
|
|
28
|
-
function css_property_to_camelcase(style) {
|
|
29
|
-
// in compliance with spec
|
|
30
|
-
if (style === 'float') return 'cssFloat';
|
|
31
|
-
if (style === 'offset') return 'cssOffset';
|
|
32
|
-
|
|
33
|
-
// do not rename custom @properties
|
|
34
|
-
if (style.startsWith('--')) return style;
|
|
35
|
-
|
|
36
|
-
const parts = style.split('-');
|
|
37
|
-
if (parts.length === 1) return parts[0];
|
|
38
|
-
return (
|
|
39
|
-
parts[0] +
|
|
40
|
-
parts
|
|
41
|
-
.slice(1)
|
|
42
|
-
.map(/** @param {any} word */ (word) => word[0].toUpperCase() + word.slice(1))
|
|
43
|
-
.join('')
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @param {string} css
|
|
49
|
-
* @returns {Keyframe}
|
|
50
|
-
*/
|
|
51
|
-
function css_to_keyframe(css) {
|
|
52
|
-
/** @type {Keyframe} */
|
|
53
|
-
const keyframe = {};
|
|
54
|
-
const parts = css.split(';');
|
|
55
|
-
for (const part of parts) {
|
|
56
|
-
const [property, value] = part.split(':');
|
|
57
|
-
if (!property || value === undefined) break;
|
|
58
|
-
|
|
59
|
-
const formatted_property = css_property_to_camelcase(property.trim());
|
|
60
|
-
keyframe[formatted_property] = value.trim();
|
|
61
|
-
}
|
|
62
|
-
return keyframe;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** @param {number} t */
|
|
66
|
-
const linear = (t) => t;
|
|
67
|
-
|
|
68
|
-
/** @type {Effect | null} */
|
|
69
|
-
let animation_effect_override = null;
|
|
70
|
-
|
|
71
|
-
/** @param {Effect | null} v */
|
|
72
|
-
export function set_animation_effect_override(v) {
|
|
73
|
-
animation_effect_override = v;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Called inside keyed `{#each ...}` blocks (as `$.animation(...)`). This creates an animation manager
|
|
78
|
-
* and attaches it to the block, so that moves can be animated following reconciliation.
|
|
79
|
-
* @template P
|
|
80
|
-
* @param {Element} element
|
|
81
|
-
* @param {() => AnimateFn<P | undefined>} get_fn
|
|
82
|
-
* @param {(() => P) | null} get_params
|
|
83
|
-
*/
|
|
84
|
-
export function animation(element, get_fn, get_params) {
|
|
85
|
-
var effect = animation_effect_override ?? /** @type {Effect} */ (active_effect);
|
|
86
|
-
var nodes = /** @type {EffectNodes} */ (effect.nodes);
|
|
87
|
-
|
|
88
|
-
/** @type {DOMRect} */
|
|
89
|
-
var from;
|
|
90
|
-
|
|
91
|
-
/** @type {DOMRect} */
|
|
92
|
-
var to;
|
|
93
|
-
|
|
94
|
-
/** @type {Animation | undefined} */
|
|
95
|
-
var animation;
|
|
96
|
-
|
|
97
|
-
/** @type {null | { position: string, width: string, height: string, transform: string }} */
|
|
98
|
-
var original_styles = null;
|
|
99
|
-
|
|
100
|
-
nodes.a ??= {
|
|
101
|
-
element,
|
|
102
|
-
measure() {
|
|
103
|
-
from = this.element.getBoundingClientRect();
|
|
104
|
-
},
|
|
105
|
-
apply() {
|
|
106
|
-
animation?.abort();
|
|
107
|
-
|
|
108
|
-
to = this.element.getBoundingClientRect();
|
|
109
|
-
|
|
110
|
-
if (
|
|
111
|
-
from.left !== to.left ||
|
|
112
|
-
from.right !== to.right ||
|
|
113
|
-
from.top !== to.top ||
|
|
114
|
-
from.bottom !== to.bottom
|
|
115
|
-
) {
|
|
116
|
-
const options = get_fn()(this.element, { from, to }, get_params?.());
|
|
117
|
-
|
|
118
|
-
animation = animate(this.element, options, undefined, 1, () => {
|
|
119
|
-
animation?.abort();
|
|
120
|
-
animation = undefined;
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
fix() {
|
|
125
|
-
// If an animation is already running, transforming the element is likely to fail,
|
|
126
|
-
// because the styles applied by the animation take precedence. In the case of crossfade,
|
|
127
|
-
// that means the `translate(...)` of the crossfade transition overrules the `translate(...)`
|
|
128
|
-
// we would apply below, leading to the element jumping somewhere to the top left.
|
|
129
|
-
if (element.getAnimations().length) return;
|
|
130
|
-
|
|
131
|
-
// It's important to destructure these to get fixed values - the object itself has getters,
|
|
132
|
-
// and changing the style to 'absolute' can for example influence the width.
|
|
133
|
-
var { position, width, height } = getComputedStyle(element);
|
|
134
|
-
|
|
135
|
-
if (position !== 'absolute' && position !== 'fixed') {
|
|
136
|
-
var style = /** @type {HTMLElement | SVGElement} */ (element).style;
|
|
137
|
-
|
|
138
|
-
original_styles = {
|
|
139
|
-
position: style.position,
|
|
140
|
-
width: style.width,
|
|
141
|
-
height: style.height,
|
|
142
|
-
transform: style.transform
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
style.position = 'absolute';
|
|
146
|
-
style.width = width;
|
|
147
|
-
style.height = height;
|
|
148
|
-
var to = element.getBoundingClientRect();
|
|
149
|
-
|
|
150
|
-
if (from.left !== to.left || from.top !== to.top) {
|
|
151
|
-
var transform = `translate(${from.left - to.left}px, ${from.top - to.top}px)`;
|
|
152
|
-
style.transform = style.transform ? `${style.transform} ${transform}` : transform;
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
},
|
|
156
|
-
unfix() {
|
|
157
|
-
if (original_styles) {
|
|
158
|
-
var style = /** @type {HTMLElement | SVGElement} */ (element).style;
|
|
159
|
-
|
|
160
|
-
style.position = original_styles.position;
|
|
161
|
-
style.width = original_styles.width;
|
|
162
|
-
style.height = original_styles.height;
|
|
163
|
-
style.transform = original_styles.transform;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
|
|
168
|
-
// in the case of a `<svelte:element>`, it's possible for `$.animation(...)` to be called
|
|
169
|
-
// when an animation manager already exists, if the tag changes. in that case, we need to
|
|
170
|
-
// swap out the element rather than creating a new manager, in case it happened at the same
|
|
171
|
-
// moment as a reconciliation
|
|
172
|
-
nodes.a.element = element;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* Called inside block effects as `$.transition(...)`. This creates a transition manager and
|
|
177
|
-
* attaches it to the current effect — later, inside `pause_effect` and `resume_effect`, we
|
|
178
|
-
* use this to create `intro` and `outro` transitions.
|
|
179
|
-
* @template P
|
|
180
|
-
* @param {number} flags
|
|
181
|
-
* @param {HTMLElement} element
|
|
182
|
-
* @param {() => TransitionFn<P | undefined>} get_fn
|
|
183
|
-
* @param {(() => P) | null} get_params
|
|
184
|
-
* @returns {void}
|
|
185
|
-
*/
|
|
186
|
-
export function transition(flags, element, get_fn, get_params) {
|
|
187
|
-
var is_intro = (flags & TRANSITION_IN) !== 0;
|
|
188
|
-
var is_outro = (flags & TRANSITION_OUT) !== 0;
|
|
189
|
-
var is_both = is_intro && is_outro;
|
|
190
|
-
var is_global = (flags & TRANSITION_GLOBAL) !== 0;
|
|
191
|
-
|
|
192
|
-
/** @type {'in' | 'out' | 'both'} */
|
|
193
|
-
var direction = is_both ? 'both' : is_intro ? 'in' : 'out';
|
|
194
|
-
|
|
195
|
-
/** @type {AnimationConfig | ((opts: { direction: 'in' | 'out' }) => AnimationConfig) | undefined} */
|
|
196
|
-
var current_options;
|
|
197
|
-
|
|
198
|
-
var inert = element.inert;
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* The default overflow style, stashed so we can revert changes during the transition
|
|
202
|
-
* that are necessary to work around a Safari <18 bug
|
|
203
|
-
* TODO 6.0 remove this, if older versions of Safari have died out enough
|
|
204
|
-
*/
|
|
205
|
-
var overflow = element.style.overflow;
|
|
206
|
-
|
|
207
|
-
/** @type {Animation | undefined} */
|
|
208
|
-
var intro;
|
|
209
|
-
|
|
210
|
-
/** @type {Animation | undefined} */
|
|
211
|
-
var outro;
|
|
212
|
-
|
|
213
|
-
function get_options() {
|
|
214
|
-
return without_reactive_context(() => {
|
|
215
|
-
// If a transition is still ongoing, we use the existing options rather than generating
|
|
216
|
-
// new ones. This ensures that reversible transitions reverse smoothly, rather than
|
|
217
|
-
// jumping to a new spot because (for example) a different `duration` was used
|
|
218
|
-
return (current_options ??= get_fn()(element, get_params?.() ?? /** @type {P} */ ({}), {
|
|
219
|
-
direction
|
|
220
|
-
}));
|
|
221
|
-
});
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
/** @type {TransitionManager} */
|
|
225
|
-
var transition = {
|
|
226
|
-
is_global,
|
|
227
|
-
in() {
|
|
228
|
-
element.inert = inert;
|
|
229
|
-
|
|
230
|
-
if (!is_intro) {
|
|
231
|
-
outro?.abort();
|
|
232
|
-
outro?.reset?.();
|
|
233
|
-
return;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
if (!is_outro) {
|
|
237
|
-
// if we intro then outro then intro again, we want to abort the first intro,
|
|
238
|
-
// if it's not a bidirectional transition
|
|
239
|
-
intro?.abort();
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
dispatch_event(element, 'introstart');
|
|
243
|
-
|
|
244
|
-
intro = animate(element, get_options(), outro, 1, () => {
|
|
245
|
-
dispatch_event(element, 'introend');
|
|
246
|
-
|
|
247
|
-
// Ensure we cancel the animation to prevent leaking
|
|
248
|
-
intro?.abort();
|
|
249
|
-
intro = current_options = undefined;
|
|
250
|
-
|
|
251
|
-
element.style.overflow = overflow;
|
|
252
|
-
});
|
|
253
|
-
},
|
|
254
|
-
out(fn) {
|
|
255
|
-
if (!is_outro) {
|
|
256
|
-
fn?.();
|
|
257
|
-
current_options = undefined;
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
element.inert = true;
|
|
262
|
-
|
|
263
|
-
dispatch_event(element, 'outrostart');
|
|
264
|
-
|
|
265
|
-
outro = animate(element, get_options(), intro, 0, () => {
|
|
266
|
-
dispatch_event(element, 'outroend');
|
|
267
|
-
fn?.();
|
|
268
|
-
});
|
|
269
|
-
},
|
|
270
|
-
stop: () => {
|
|
271
|
-
intro?.abort();
|
|
272
|
-
outro?.abort();
|
|
273
|
-
}
|
|
274
|
-
};
|
|
275
|
-
|
|
276
|
-
var e = /** @type {Effect & { nodes: EffectNodes }} */ (active_effect);
|
|
277
|
-
|
|
278
|
-
(e.nodes.t ??= []).push(transition);
|
|
279
|
-
|
|
280
|
-
// if this is a local transition, we only want to run it if the parent (branch) effect's
|
|
281
|
-
// parent (block) effect is where the state change happened. we can determine that by
|
|
282
|
-
// looking at whether the block effect is currently initializing
|
|
283
|
-
if (is_intro && should_intro) {
|
|
284
|
-
var run = is_global;
|
|
285
|
-
|
|
286
|
-
if (!run) {
|
|
287
|
-
var block = /** @type {Effect | null} */ (e.parent);
|
|
288
|
-
|
|
289
|
-
// skip over transparent blocks (e.g. snippets, else-if blocks)
|
|
290
|
-
while (block && (block.f & EFFECT_TRANSPARENT) !== 0) {
|
|
291
|
-
while ((block = block.parent)) {
|
|
292
|
-
if ((block.f & BLOCK_EFFECT) !== 0) break;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
run = !block || (block.f & EFFECT_RAN) !== 0;
|
|
297
|
-
}
|
|
298
|
-
|
|
299
|
-
if (run) {
|
|
300
|
-
effect(() => {
|
|
301
|
-
untrack(() => transition.in());
|
|
302
|
-
});
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* Animates an element, according to the provided configuration
|
|
309
|
-
* @param {Element} element
|
|
310
|
-
* @param {AnimationConfig | ((opts: { direction: 'in' | 'out' }) => AnimationConfig)} options
|
|
311
|
-
* @param {Animation | undefined} counterpart The corresponding intro/outro to this outro/intro
|
|
312
|
-
* @param {number} t2 The target `t` value — `1` for intro, `0` for outro
|
|
313
|
-
* @param {(() => void)} on_finish Called after successfully completing the animation
|
|
314
|
-
* @returns {Animation}
|
|
315
|
-
*/
|
|
316
|
-
function animate(element, options, counterpart, t2, on_finish) {
|
|
317
|
-
var is_intro = t2 === 1;
|
|
318
|
-
|
|
319
|
-
if (is_function(options)) {
|
|
320
|
-
// In the case of a deferred transition (such as `crossfade`), `option` will be
|
|
321
|
-
// a function rather than an `AnimationConfig`. We need to call this function
|
|
322
|
-
// once the DOM has been updated...
|
|
323
|
-
/** @type {Animation} */
|
|
324
|
-
var a;
|
|
325
|
-
var aborted = false;
|
|
326
|
-
|
|
327
|
-
queue_micro_task(() => {
|
|
328
|
-
if (aborted) return;
|
|
329
|
-
var o = options({ direction: is_intro ? 'in' : 'out' });
|
|
330
|
-
a = animate(element, o, counterpart, t2, on_finish);
|
|
331
|
-
});
|
|
332
|
-
|
|
333
|
-
// ...but we want to do so without using `async`/`await` everywhere, so
|
|
334
|
-
// we return a facade that allows everything to remain synchronous
|
|
335
|
-
return {
|
|
336
|
-
abort: () => {
|
|
337
|
-
aborted = true;
|
|
338
|
-
a?.abort();
|
|
339
|
-
},
|
|
340
|
-
deactivate: () => a.deactivate(),
|
|
341
|
-
reset: () => a.reset(),
|
|
342
|
-
t: () => a.t()
|
|
343
|
-
};
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
counterpart?.deactivate();
|
|
347
|
-
|
|
348
|
-
if (!options?.duration) {
|
|
349
|
-
on_finish();
|
|
350
|
-
|
|
351
|
-
return {
|
|
352
|
-
abort: noop,
|
|
353
|
-
deactivate: noop,
|
|
354
|
-
reset: noop,
|
|
355
|
-
t: () => t2
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
const { delay = 0, css, tick, easing = linear } = options;
|
|
360
|
-
|
|
361
|
-
var keyframes = [];
|
|
362
|
-
|
|
363
|
-
if (is_intro && counterpart === undefined) {
|
|
364
|
-
if (tick) {
|
|
365
|
-
tick(0, 1); // TODO put in nested effect, to avoid interleaved reads/writes?
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
if (css) {
|
|
369
|
-
var styles = css_to_keyframe(css(0, 1));
|
|
370
|
-
keyframes.push(styles, styles);
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
var get_t = () => 1 - t2;
|
|
375
|
-
|
|
376
|
-
// create a dummy animation that lasts as long as the delay (but with whatever devtools
|
|
377
|
-
// multiplier is in effect). in the common case that it is `0`, we keep it anyway so that
|
|
378
|
-
// the CSS keyframes aren't created until the DOM is updated
|
|
379
|
-
//
|
|
380
|
-
// fill forwards to prevent the element from rendering without styles applied
|
|
381
|
-
// see https://github.com/sveltejs/svelte/issues/14732
|
|
382
|
-
var animation = element.animate(keyframes, { duration: delay, fill: 'forwards' });
|
|
383
|
-
|
|
384
|
-
animation.onfinish = () => {
|
|
385
|
-
// remove dummy animation from the stack to prevent conflict with main animation
|
|
386
|
-
animation.cancel();
|
|
387
|
-
|
|
388
|
-
// for bidirectional transitions, we start from the current position,
|
|
389
|
-
// rather than doing a full intro/outro
|
|
390
|
-
var t1 = counterpart?.t() ?? 1 - t2;
|
|
391
|
-
counterpart?.abort();
|
|
392
|
-
|
|
393
|
-
var delta = t2 - t1;
|
|
394
|
-
var duration = /** @type {number} */ (options.duration) * Math.abs(delta);
|
|
395
|
-
var keyframes = [];
|
|
396
|
-
|
|
397
|
-
if (duration > 0) {
|
|
398
|
-
/**
|
|
399
|
-
* Whether or not the CSS includes `overflow: hidden`, in which case we need to
|
|
400
|
-
* add it as an inline style to work around a Safari <18 bug
|
|
401
|
-
* TODO 6.0 remove this, if possible
|
|
402
|
-
*/
|
|
403
|
-
var needs_overflow_hidden = false;
|
|
404
|
-
|
|
405
|
-
if (css) {
|
|
406
|
-
var n = Math.ceil(duration / (1000 / 60)); // `n` must be an integer, or we risk missing the `t2` value
|
|
407
|
-
|
|
408
|
-
for (var i = 0; i <= n; i += 1) {
|
|
409
|
-
var t = t1 + delta * easing(i / n);
|
|
410
|
-
var styles = css_to_keyframe(css(t, 1 - t));
|
|
411
|
-
keyframes.push(styles);
|
|
412
|
-
|
|
413
|
-
needs_overflow_hidden ||= styles.overflow === 'hidden';
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
if (needs_overflow_hidden) {
|
|
418
|
-
/** @type {HTMLElement} */ (element).style.overflow = 'hidden';
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
get_t = () => {
|
|
422
|
-
var time = /** @type {number} */ (
|
|
423
|
-
/** @type {globalThis.Animation} */ (animation).currentTime
|
|
424
|
-
);
|
|
425
|
-
|
|
426
|
-
return t1 + delta * easing(time / duration);
|
|
427
|
-
};
|
|
428
|
-
|
|
429
|
-
if (tick) {
|
|
430
|
-
loop(() => {
|
|
431
|
-
if (animation.playState !== 'running') return false;
|
|
432
|
-
|
|
433
|
-
var t = get_t();
|
|
434
|
-
tick(t, 1 - t);
|
|
435
|
-
|
|
436
|
-
return true;
|
|
437
|
-
});
|
|
438
|
-
}
|
|
439
|
-
}
|
|
440
|
-
|
|
441
|
-
animation = element.animate(keyframes, { duration, fill: 'forwards' });
|
|
442
|
-
|
|
443
|
-
animation.onfinish = () => {
|
|
444
|
-
get_t = () => t2;
|
|
445
|
-
tick?.(t2, 1 - t2);
|
|
446
|
-
on_finish();
|
|
447
|
-
};
|
|
448
|
-
};
|
|
449
|
-
|
|
450
|
-
return {
|
|
451
|
-
abort: () => {
|
|
452
|
-
if (animation) {
|
|
453
|
-
animation.cancel();
|
|
454
|
-
// This prevents memory leaks in Chromium
|
|
455
|
-
animation.effect = null;
|
|
456
|
-
// This prevents onfinish to be launched after cancel(),
|
|
457
|
-
// which can happen in some rare cases
|
|
458
|
-
// see https://github.com/sveltejs/svelte/issues/13681
|
|
459
|
-
animation.onfinish = noop;
|
|
460
|
-
}
|
|
461
|
-
},
|
|
462
|
-
deactivate: () => {
|
|
463
|
-
on_finish = noop;
|
|
464
|
-
},
|
|
465
|
-
reset: () => {
|
|
466
|
-
if (t2 === 0) {
|
|
467
|
-
tick?.(1, 0);
|
|
468
|
-
}
|
|
469
|
-
},
|
|
470
|
-
t: () => get_t()
|
|
471
|
-
};
|
|
472
|
-
}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
/** @import { TemplateNode } from '#client' */
|
|
2
|
-
|
|
3
|
-
import { COMMENT_NODE } from '#client/constants';
|
|
4
|
-
import {
|
|
5
|
-
HYDRATION_END,
|
|
6
|
-
HYDRATION_ERROR,
|
|
7
|
-
HYDRATION_START,
|
|
8
|
-
HYDRATION_START_ELSE
|
|
9
|
-
} from '../../../constants.js';
|
|
10
|
-
import * as w from '../warnings.js';
|
|
11
|
-
import { get_next_sibling } from './operations.js';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Use this variable to guard everything related to hydration code so it can be treeshaken out
|
|
15
|
-
* if the user doesn't use the `hydrate` method and these code paths are therefore not needed.
|
|
16
|
-
*/
|
|
17
|
-
export let hydrating = false;
|
|
18
|
-
|
|
19
|
-
/** @param {boolean} value */
|
|
20
|
-
export function set_hydrating(value) {
|
|
21
|
-
hydrating = value;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The node that is currently being hydrated. This starts out as the first node inside the opening
|
|
26
|
-
* <!--[--> comment, and updates each time a component calls `$.child(...)` or `$.sibling(...)`.
|
|
27
|
-
* When entering a block (e.g. `{#if ...}`), `hydrate_node` is the block opening comment; by the
|
|
28
|
-
* time we leave the block it is the closing comment, which serves as the block's anchor.
|
|
29
|
-
* @type {TemplateNode}
|
|
30
|
-
*/
|
|
31
|
-
export let hydrate_node;
|
|
32
|
-
|
|
33
|
-
/** @param {TemplateNode | null} node */
|
|
34
|
-
export function set_hydrate_node(node) {
|
|
35
|
-
if (node === null) {
|
|
36
|
-
w.hydration_mismatch();
|
|
37
|
-
throw HYDRATION_ERROR;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
return (hydrate_node = node);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export function hydrate_next() {
|
|
44
|
-
return set_hydrate_node(get_next_sibling(hydrate_node));
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** @param {TemplateNode} node */
|
|
48
|
-
export function reset(node) {
|
|
49
|
-
if (!hydrating) return;
|
|
50
|
-
|
|
51
|
-
// If the node has remaining siblings, something has gone wrong
|
|
52
|
-
if (get_next_sibling(hydrate_node) !== null) {
|
|
53
|
-
w.hydration_mismatch();
|
|
54
|
-
throw HYDRATION_ERROR;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
hydrate_node = node;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @param {HTMLTemplateElement} template
|
|
62
|
-
*/
|
|
63
|
-
export function hydrate_template(template) {
|
|
64
|
-
if (hydrating) {
|
|
65
|
-
// @ts-expect-error TemplateNode doesn't include DocumentFragment, but it's actually fine
|
|
66
|
-
hydrate_node = template.content;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function next(count = 1) {
|
|
71
|
-
if (hydrating) {
|
|
72
|
-
var i = count;
|
|
73
|
-
var node = hydrate_node;
|
|
74
|
-
|
|
75
|
-
while (i--) {
|
|
76
|
-
node = /** @type {TemplateNode} */ (get_next_sibling(node));
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
hydrate_node = node;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Skips or removes (depending on {@link remove}) all nodes starting at `hydrate_node` up until the next hydration end comment
|
|
85
|
-
* @param {boolean} remove
|
|
86
|
-
*/
|
|
87
|
-
export function skip_nodes(remove = true) {
|
|
88
|
-
var depth = 0;
|
|
89
|
-
var node = hydrate_node;
|
|
90
|
-
|
|
91
|
-
while (true) {
|
|
92
|
-
if (node.nodeType === COMMENT_NODE) {
|
|
93
|
-
var data = /** @type {Comment} */ (node).data;
|
|
94
|
-
|
|
95
|
-
if (data === HYDRATION_END) {
|
|
96
|
-
if (depth === 0) return node;
|
|
97
|
-
depth -= 1;
|
|
98
|
-
} else if (data === HYDRATION_START || data === HYDRATION_START_ELSE) {
|
|
99
|
-
depth += 1;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var next = /** @type {TemplateNode} */ (get_next_sibling(node));
|
|
104
|
-
if (remove) node.remove();
|
|
105
|
-
node = next;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
*
|
|
111
|
-
* @param {TemplateNode} node
|
|
112
|
-
*/
|
|
113
|
-
export function read_hydration_instruction(node) {
|
|
114
|
-
if (!node || node.nodeType !== COMMENT_NODE) {
|
|
115
|
-
w.hydration_mismatch();
|
|
116
|
-
throw HYDRATION_ERROR;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
return /** @type {Comment} */ (node).data;
|
|
120
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { noop } from '../../../shared/utils.js';
|
|
2
|
-
import { user_pre_effect } from '../../reactivity/effects.js';
|
|
3
|
-
import { on } from '../elements/events.js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Substitute for the `trusted` event modifier
|
|
7
|
-
* @deprecated
|
|
8
|
-
* @param {(event: Event, ...args: Array<unknown>) => void} fn
|
|
9
|
-
* @returns {(event: Event, ...args: unknown[]) => void}
|
|
10
|
-
*/
|
|
11
|
-
export function trusted(fn) {
|
|
12
|
-
return function (...args) {
|
|
13
|
-
var event = /** @type {Event} */ (args[0]);
|
|
14
|
-
if (event.isTrusted) {
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
fn?.apply(this, args);
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Substitute for the `self` event modifier
|
|
23
|
-
* @deprecated
|
|
24
|
-
* @param {(event: Event, ...args: Array<unknown>) => void} fn
|
|
25
|
-
* @returns {(event: Event, ...args: unknown[]) => void}
|
|
26
|
-
*/
|
|
27
|
-
export function self(fn) {
|
|
28
|
-
return function (...args) {
|
|
29
|
-
var event = /** @type {Event} */ (args[0]);
|
|
30
|
-
// @ts-ignore
|
|
31
|
-
if (event.target === this) {
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
fn?.apply(this, args);
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Substitute for the `stopPropagation` event modifier
|
|
40
|
-
* @deprecated
|
|
41
|
-
* @param {(event: Event, ...args: Array<unknown>) => void} fn
|
|
42
|
-
* @returns {(event: Event, ...args: unknown[]) => void}
|
|
43
|
-
*/
|
|
44
|
-
export function stopPropagation(fn) {
|
|
45
|
-
return function (...args) {
|
|
46
|
-
var event = /** @type {Event} */ (args[0]);
|
|
47
|
-
event.stopPropagation();
|
|
48
|
-
// @ts-ignore
|
|
49
|
-
return fn?.apply(this, args);
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Substitute for the `once` event modifier
|
|
55
|
-
* @deprecated
|
|
56
|
-
* @param {(event: Event, ...args: Array<unknown>) => void} fn
|
|
57
|
-
* @returns {(event: Event, ...args: unknown[]) => void}
|
|
58
|
-
*/
|
|
59
|
-
export function once(fn) {
|
|
60
|
-
var ran = false;
|
|
61
|
-
|
|
62
|
-
return function (...args) {
|
|
63
|
-
if (ran) return;
|
|
64
|
-
ran = true;
|
|
65
|
-
|
|
66
|
-
// @ts-ignore
|
|
67
|
-
return fn?.apply(this, args);
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Substitute for the `stopImmediatePropagation` event modifier
|
|
73
|
-
* @deprecated
|
|
74
|
-
* @param {(event: Event, ...args: Array<unknown>) => void} fn
|
|
75
|
-
* @returns {(event: Event, ...args: unknown[]) => void}
|
|
76
|
-
*/
|
|
77
|
-
export function stopImmediatePropagation(fn) {
|
|
78
|
-
return function (...args) {
|
|
79
|
-
var event = /** @type {Event} */ (args[0]);
|
|
80
|
-
event.stopImmediatePropagation();
|
|
81
|
-
// @ts-ignore
|
|
82
|
-
return fn?.apply(this, args);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Substitute for the `preventDefault` event modifier
|
|
88
|
-
* @deprecated
|
|
89
|
-
* @param {(event: Event, ...args: Array<unknown>) => void} fn
|
|
90
|
-
* @returns {(event: Event, ...args: unknown[]) => void}
|
|
91
|
-
*/
|
|
92
|
-
export function preventDefault(fn) {
|
|
93
|
-
return function (...args) {
|
|
94
|
-
var event = /** @type {Event} */ (args[0]);
|
|
95
|
-
event.preventDefault();
|
|
96
|
-
// @ts-ignore
|
|
97
|
-
return fn?.apply(this, args);
|
|
98
|
-
};
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Substitute for the `passive` event modifier, implemented as an action
|
|
103
|
-
* @deprecated
|
|
104
|
-
* @param {HTMLElement} node
|
|
105
|
-
* @param {[event: string, handler: () => EventListener]} options
|
|
106
|
-
*/
|
|
107
|
-
export function passive(node, [event, handler]) {
|
|
108
|
-
user_pre_effect(() => {
|
|
109
|
-
return on(node, event, handler() ?? noop, {
|
|
110
|
-
passive: true
|
|
111
|
-
});
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Substitute for the `nonpassive` event modifier, implemented as an action
|
|
117
|
-
* @deprecated
|
|
118
|
-
* @param {HTMLElement} node
|
|
119
|
-
* @param {[event: string, handler: () => EventListener]} options
|
|
120
|
-
*/
|
|
121
|
-
export function nonpassive(node, [event, handler]) {
|
|
122
|
-
user_pre_effect(() => {
|
|
123
|
-
return on(node, event, handler() ?? noop, {
|
|
124
|
-
passive: false
|
|
125
|
-
});
|
|
126
|
-
});
|
|
127
|
-
}
|