vigla 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/compiler/analysis/asynchronous.d.ts +18 -0
- package/dist/compiler/analysis/asynchronous.d.ts.map +1 -0
- package/dist/compiler/analysis/asynchronous.js +195 -0
- package/dist/compiler/analysis/asynchronous.js.map +1 -0
- package/dist/compiler/analysis/classes.d.ts +13 -0
- package/dist/compiler/analysis/classes.d.ts.map +1 -0
- package/dist/compiler/analysis/classes.js +96 -0
- package/dist/compiler/analysis/classes.js.map +1 -0
- package/dist/compiler/analysis/ignoring.d.ts +5 -0
- package/dist/compiler/analysis/ignoring.d.ts.map +1 -0
- package/dist/compiler/analysis/ignoring.js +23 -0
- package/dist/compiler/analysis/ignoring.js.map +1 -0
- package/dist/compiler/analysis/index.d.ts +53 -0
- package/dist/compiler/analysis/index.d.ts.map +1 -0
- package/dist/compiler/analysis/index.js +334 -0
- package/dist/compiler/analysis/index.js.map +1 -0
- package/dist/compiler/analysis/scope.d.ts +59 -0
- package/dist/compiler/analysis/scope.d.ts.map +1 -0
- package/dist/compiler/analysis/scope.js +360 -0
- package/dist/compiler/analysis/scope.js.map +1 -0
- package/dist/compiler/analysis/template.d.ts +40 -0
- package/dist/compiler/analysis/template.d.ts.map +1 -0
- package/dist/compiler/analysis/template.js +504 -0
- package/dist/compiler/analysis/template.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/attributes.d.ts +12 -0
- package/dist/compiler/analysis/validate/a11y/attributes.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/attributes.js +197 -0
- package/dist/compiler/analysis/validate/a11y/attributes.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/axobject-query.d.ts +20 -0
- package/dist/compiler/analysis/validate/a11y/elements.d.ts +3 -0
- package/dist/compiler/analysis/validate/a11y/elements.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/elements.js +220 -0
- package/dist/compiler/analysis/validate/a11y/elements.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/facts.d.ts +23 -0
- package/dist/compiler/analysis/validate/a11y/facts.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/facts.js +91 -0
- package/dist/compiler/analysis/validate/a11y/facts.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.d.ts +2 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.js +112 -0
- package/dist/compiler/analysis/validate/a11y/fuzzy.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/index.d.ts +8 -0
- package/dist/compiler/analysis/validate/a11y/index.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/index.js +13 -0
- package/dist/compiler/analysis/validate/a11y/index.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/interactions.d.ts +3 -0
- package/dist/compiler/analysis/validate/a11y/interactions.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/interactions.js +99 -0
- package/dist/compiler/analysis/validate/a11y/interactions.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/roles.d.ts +16 -0
- package/dist/compiler/analysis/validate/a11y/roles.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/roles.js +135 -0
- package/dist/compiler/analysis/validate/a11y/roles.js.map +1 -0
- package/dist/compiler/analysis/validate/a11y/tables.d.ts +22 -0
- package/dist/compiler/analysis/validate/a11y/tables.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/a11y/tables.js +227 -0
- package/dist/compiler/analysis/validate/a11y/tables.js.map +1 -0
- package/dist/compiler/analysis/validate/assignment.d.ts +5 -0
- package/dist/compiler/analysis/validate/assignment.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/assignment.js +64 -0
- package/dist/compiler/analysis/validate/assignment.js.map +1 -0
- package/dist/compiler/analysis/validate/bindings.d.ts +6 -0
- package/dist/compiler/analysis/validate/bindings.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/bindings.js +196 -0
- package/dist/compiler/analysis/validate/bindings.js.map +1 -0
- package/dist/compiler/analysis/validate/classes.d.ts +6 -0
- package/dist/compiler/analysis/validate/classes.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/classes.js +100 -0
- package/dist/compiler/analysis/validate/classes.js.map +1 -0
- package/dist/compiler/analysis/validate/context.d.ts +47 -0
- package/dist/compiler/analysis/validate/context.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/context.js +84 -0
- package/dist/compiler/analysis/validate/context.js.map +1 -0
- package/dist/compiler/analysis/validate/element.d.ts +10 -0
- package/dist/compiler/analysis/validate/element.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/element.js +147 -0
- package/dist/compiler/analysis/validate/element.js.map +1 -0
- package/dist/compiler/analysis/validate/front.d.ts +18 -0
- package/dist/compiler/analysis/validate/front.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/front.js +65 -0
- package/dist/compiler/analysis/validate/front.js.map +1 -0
- package/dist/compiler/analysis/validate/index.d.ts +19 -0
- package/dist/compiler/analysis/validate/index.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/index.js +237 -0
- package/dist/compiler/analysis/validate/index.js.map +1 -0
- package/dist/compiler/analysis/validate/messages.d.ts +3 -0
- package/dist/compiler/analysis/validate/messages.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/messages.js +451 -0
- package/dist/compiler/analysis/validate/messages.js.map +1 -0
- package/dist/compiler/analysis/validate/report.d.ts +29 -0
- package/dist/compiler/analysis/validate/report.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/report.js +79 -0
- package/dist/compiler/analysis/validate/report.js.map +1 -0
- package/dist/compiler/analysis/validate/scope.d.ts +46 -0
- package/dist/compiler/analysis/validate/scope.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/scope.js +187 -0
- package/dist/compiler/analysis/validate/scope.js.map +1 -0
- package/dist/compiler/analysis/validate/scopes.d.ts +23 -0
- package/dist/compiler/analysis/validate/scopes.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/scopes.js +436 -0
- package/dist/compiler/analysis/validate/scopes.js.map +1 -0
- package/dist/compiler/analysis/validate/script.d.ts +5 -0
- package/dist/compiler/analysis/validate/script.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/script.js +502 -0
- package/dist/compiler/analysis/validate/script.js.map +1 -0
- package/dist/compiler/analysis/validate/template.d.ts +13 -0
- package/dist/compiler/analysis/validate/template.d.ts.map +1 -0
- package/dist/compiler/analysis/validate/template.js +316 -0
- package/dist/compiler/analysis/validate/template.js.map +1 -0
- package/dist/compiler/analysis/whitespace.d.ts +8 -0
- package/dist/compiler/analysis/whitespace.d.ts.map +1 -0
- package/dist/compiler/analysis/whitespace.js +71 -0
- package/dist/compiler/analysis/whitespace.js.map +1 -0
- package/dist/compiler/client/asynchronous.d.ts +9 -0
- package/dist/compiler/client/asynchronous.d.ts.map +1 -0
- package/dist/compiler/client/asynchronous.js +38 -0
- package/dist/compiler/client/asynchronous.js.map +1 -0
- package/dist/compiler/client/bindings.d.ts +16 -0
- package/dist/compiler/client/bindings.d.ts.map +1 -0
- package/dist/compiler/client/bindings.js +200 -0
- package/dist/compiler/client/bindings.js.map +1 -0
- package/dist/compiler/client/blocks.d.ts +9 -0
- package/dist/compiler/client/blocks.d.ts.map +1 -0
- package/dist/compiler/client/blocks.js +147 -0
- package/dist/compiler/client/blocks.js.map +1 -0
- package/dist/compiler/client/classes.d.ts +9 -0
- package/dist/compiler/client/classes.d.ts.map +1 -0
- package/dist/compiler/client/classes.js +104 -0
- package/dist/compiler/client/classes.js.map +1 -0
- package/dist/compiler/client/component.d.ts +12 -0
- package/dist/compiler/client/component.d.ts.map +1 -0
- package/dist/compiler/client/component.js +412 -0
- package/dist/compiler/client/component.js.map +1 -0
- package/dist/compiler/client/constants.d.ts +5 -0
- package/dist/compiler/client/constants.d.ts.map +1 -0
- package/dist/compiler/client/constants.js +103 -0
- package/dist/compiler/client/constants.js.map +1 -0
- package/dist/compiler/client/custom-element.d.ts +7 -0
- package/dist/compiler/client/custom-element.d.ts.map +1 -0
- package/dist/compiler/client/custom-element.js +124 -0
- package/dist/compiler/client/custom-element.js.map +1 -0
- package/dist/compiler/client/directives.d.ts +6 -0
- package/dist/compiler/client/directives.d.ts.map +1 -0
- package/dist/compiler/client/directives.js +22 -0
- package/dist/compiler/client/directives.js.map +1 -0
- package/dist/compiler/client/dynamic.d.ts +5 -0
- package/dist/compiler/client/dynamic.d.ts.map +1 -0
- package/dist/compiler/client/dynamic.js +79 -0
- package/dist/compiler/client/dynamic.js.map +1 -0
- package/dist/compiler/client/element.d.ts +6 -0
- package/dist/compiler/client/element.d.ts.map +1 -0
- package/dist/compiler/client/element.js +492 -0
- package/dist/compiler/client/element.js.map +1 -0
- package/dist/compiler/client/events.d.ts +8 -0
- package/dist/compiler/client/events.d.ts.map +1 -0
- package/dist/compiler/client/events.js +116 -0
- package/dist/compiler/client/events.js.map +1 -0
- package/dist/compiler/client/exports.d.ts +9 -0
- package/dist/compiler/client/exports.d.ts.map +1 -0
- package/dist/compiler/client/exports.js +22 -0
- package/dist/compiler/client/exports.js.map +1 -0
- package/dist/compiler/client/external.d.ts +6 -0
- package/dist/compiler/client/external.d.ts.map +1 -0
- package/dist/compiler/client/external.js +133 -0
- package/dist/compiler/client/external.js.map +1 -0
- package/dist/compiler/client/hot.d.ts +3 -0
- package/dist/compiler/client/hot.d.ts.map +1 -0
- package/dist/compiler/client/hot.js +54 -0
- package/dist/compiler/client/hot.js.map +1 -0
- package/dist/compiler/client/index.d.ts +26 -0
- package/dist/compiler/client/index.d.ts.map +1 -0
- package/dist/compiler/client/index.js +241 -0
- package/dist/compiler/client/index.js.map +1 -0
- package/dist/compiler/client/inspect.d.ts +11 -0
- package/dist/compiler/client/inspect.d.ts.map +1 -0
- package/dist/compiler/client/inspect.js +127 -0
- package/dist/compiler/client/inspect.js.map +1 -0
- package/dist/compiler/client/loss.d.ts +14 -0
- package/dist/compiler/client/loss.d.ts.map +1 -0
- package/dist/compiler/client/loss.js +39 -0
- package/dist/compiler/client/loss.js.map +1 -0
- package/dist/compiler/client/markup.d.ts +24 -0
- package/dist/compiler/client/markup.d.ts.map +1 -0
- package/dist/compiler/client/markup.js +82 -0
- package/dist/compiler/client/markup.js.map +1 -0
- package/dist/compiler/client/meta.d.ts +11 -0
- package/dist/compiler/client/meta.d.ts.map +1 -0
- package/dist/compiler/client/meta.js +43 -0
- package/dist/compiler/client/meta.js.map +1 -0
- package/dist/compiler/client/ownership.d.ts +12 -0
- package/dist/compiler/client/ownership.d.ts.map +1 -0
- package/dist/compiler/client/ownership.js +39 -0
- package/dist/compiler/client/ownership.js.map +1 -0
- package/dist/compiler/client/parameters.d.ts +7 -0
- package/dist/compiler/client/parameters.d.ts.map +1 -0
- package/dist/compiler/client/parameters.js +31 -0
- package/dist/compiler/client/parameters.js.map +1 -0
- package/dist/compiler/client/patterns.d.ts +17 -0
- package/dist/compiler/client/patterns.d.ts.map +1 -0
- package/dist/compiler/client/patterns.js +118 -0
- package/dist/compiler/client/patterns.js.map +1 -0
- package/dist/compiler/client/script.d.ts +42 -0
- package/dist/compiler/client/script.d.ts.map +1 -0
- package/dist/compiler/client/script.js +476 -0
- package/dist/compiler/client/script.js.map +1 -0
- package/dist/compiler/client/special.d.ts +7 -0
- package/dist/compiler/client/special.d.ts.map +1 -0
- package/dist/compiler/client/special.js +148 -0
- package/dist/compiler/client/special.js.map +1 -0
- package/dist/compiler/client/template.d.ts +59 -0
- package/dist/compiler/client/template.d.ts.map +1 -0
- package/dist/compiler/client/template.js +380 -0
- package/dist/compiler/client/template.js.map +1 -0
- package/dist/compiler/client/transitions.d.ts +6 -0
- package/dist/compiler/client/transitions.d.ts.map +1 -0
- package/dist/compiler/client/transitions.js +25 -0
- package/dist/compiler/client/transitions.js.map +1 -0
- package/dist/compiler/client/values.d.ts +8 -0
- package/dist/compiler/client/values.d.ts.map +1 -0
- package/dist/compiler/client/values.js +46 -0
- package/dist/compiler/client/values.js.map +1 -0
- package/dist/compiler/css/analyze.d.ts +12 -0
- package/dist/compiler/css/analyze.d.ts.map +1 -0
- package/dist/compiler/css/analyze.js +252 -0
- package/dist/compiler/css/analyze.js.map +1 -0
- package/dist/compiler/css/attributes.d.ts +3 -0
- package/dist/compiler/css/attributes.d.ts.map +1 -0
- package/dist/compiler/css/attributes.js +207 -0
- package/dist/compiler/css/attributes.js.map +1 -0
- package/dist/compiler/css/hash.d.ts +2 -0
- package/dist/compiler/css/hash.d.ts.map +1 -0
- package/dist/compiler/css/hash.js +2 -0
- package/dist/compiler/css/hash.js.map +1 -0
- package/dist/compiler/css/index.d.ts +42 -0
- package/dist/compiler/css/index.d.ts.map +1 -0
- package/dist/compiler/css/index.js +109 -0
- package/dist/compiler/css/index.js.map +1 -0
- package/dist/compiler/css/marks.d.ts +39 -0
- package/dist/compiler/css/marks.d.ts.map +1 -0
- package/dist/compiler/css/marks.js +90 -0
- package/dist/compiler/css/marks.js.map +1 -0
- package/dist/compiler/css/prune.d.ts +10 -0
- package/dist/compiler/css/prune.d.ts.map +1 -0
- package/dist/compiler/css/prune.js +418 -0
- package/dist/compiler/css/prune.js.map +1 -0
- package/dist/compiler/css/relations.d.ts +25 -0
- package/dist/compiler/css/relations.d.ts.map +1 -0
- package/dist/compiler/css/relations.js +262 -0
- package/dist/compiler/css/relations.js.map +1 -0
- package/dist/compiler/css/render.d.ts +22 -0
- package/dist/compiler/css/render.d.ts.map +1 -0
- package/dist/compiler/css/render.js +389 -0
- package/dist/compiler/css/render.js.map +1 -0
- package/dist/compiler/css/template.d.ts +26 -0
- package/dist/compiler/css/template.d.ts.map +1 -0
- package/dist/compiler/css/template.js +271 -0
- package/dist/compiler/css/template.js.map +1 -0
- package/dist/compiler/ir/estree.d.ts +29 -0
- package/dist/compiler/ir/estree.d.ts.map +1 -0
- package/dist/compiler/ir/estree.js +205 -0
- package/dist/compiler/ir/estree.js.map +1 -0
- package/dist/compiler/ir/maps.d.ts +11 -0
- package/dist/compiler/ir/maps.d.ts.map +1 -0
- package/dist/compiler/ir/maps.js +45 -0
- package/dist/compiler/ir/maps.js.map +1 -0
- package/dist/compiler/ir/nodes.d.ts +197 -0
- package/dist/compiler/ir/nodes.d.ts.map +1 -0
- package/dist/compiler/ir/nodes.js +1 -0
- package/dist/compiler/ir/nodes.js.map +1 -0
- package/dist/compiler/ir/port.d.ts +55 -0
- package/dist/compiler/ir/port.d.ts.map +1 -0
- package/dist/compiler/ir/port.js +9 -0
- package/dist/compiler/ir/port.js.map +1 -0
- package/dist/compiler/ir/runtime.d.ts +16 -0
- package/dist/compiler/ir/runtime.d.ts.map +1 -0
- package/dist/compiler/ir/runtime.js +1 -0
- package/dist/compiler/ir/runtime.js.map +1 -0
- package/dist/compiler/ir/script.d.ts +6 -0
- package/dist/compiler/ir/script.d.ts.map +1 -0
- package/dist/compiler/ir/script.js +33 -0
- package/dist/compiler/ir/script.js.map +1 -0
- package/dist/compiler/ir/style.d.ts +92 -0
- package/dist/compiler/ir/style.d.ts.map +1 -0
- package/dist/compiler/ir/style.js +1 -0
- package/dist/compiler/ir/style.js.map +1 -0
- package/dist/compiler/server/asynchronous.d.ts +8 -0
- package/dist/compiler/server/asynchronous.d.ts.map +1 -0
- package/dist/compiler/server/asynchronous.js +44 -0
- package/dist/compiler/server/asynchronous.js.map +1 -0
- package/dist/compiler/server/bindings.d.ts +15 -0
- package/dist/compiler/server/bindings.d.ts.map +1 -0
- package/dist/compiler/server/bindings.js +80 -0
- package/dist/compiler/server/bindings.js.map +1 -0
- package/dist/compiler/server/blocks.d.ts +7 -0
- package/dist/compiler/server/blocks.d.ts.map +1 -0
- package/dist/compiler/server/blocks.js +136 -0
- package/dist/compiler/server/blocks.js.map +1 -0
- package/dist/compiler/server/classes.d.ts +11 -0
- package/dist/compiler/server/classes.d.ts.map +1 -0
- package/dist/compiler/server/classes.js +100 -0
- package/dist/compiler/server/classes.js.map +1 -0
- package/dist/compiler/server/component.d.ts +11 -0
- package/dist/compiler/server/component.d.ts.map +1 -0
- package/dist/compiler/server/component.js +321 -0
- package/dist/compiler/server/component.js.map +1 -0
- package/dist/compiler/server/external.d.ts +6 -0
- package/dist/compiler/server/external.d.ts.map +1 -0
- package/dist/compiler/server/external.js +130 -0
- package/dist/compiler/server/external.js.map +1 -0
- package/dist/compiler/server/index.d.ts +20 -0
- package/dist/compiler/server/index.d.ts.map +1 -0
- package/dist/compiler/server/index.js +161 -0
- package/dist/compiler/server/index.js.map +1 -0
- package/dist/compiler/server/placement.d.ts +5 -0
- package/dist/compiler/server/placement.d.ts.map +1 -0
- package/dist/compiler/server/placement.js +37 -0
- package/dist/compiler/server/placement.js.map +1 -0
- package/dist/compiler/server/script.d.ts +29 -0
- package/dist/compiler/server/script.d.ts.map +1 -0
- package/dist/compiler/server/script.js +404 -0
- package/dist/compiler/server/script.js.map +1 -0
- package/dist/compiler/server/slot.d.ts +5 -0
- package/dist/compiler/server/slot.d.ts.map +1 -0
- package/dist/compiler/server/slot.js +38 -0
- package/dist/compiler/server/slot.js.map +1 -0
- package/dist/compiler/server/special.d.ts +5 -0
- package/dist/compiler/server/special.d.ts.map +1 -0
- package/dist/compiler/server/special.js +60 -0
- package/dist/compiler/server/special.js.map +1 -0
- package/dist/compiler/server/template.d.ts +28 -0
- package/dist/compiler/server/template.d.ts.map +1 -0
- package/dist/compiler/server/template.js +475 -0
- package/dist/compiler/server/template.js.map +1 -0
- package/dist/entries/action.d.ts +9 -0
- package/dist/entries/action.d.ts.map +1 -0
- package/dist/entries/action.js +1 -0
- package/dist/entries/action.js.map +1 -0
- package/dist/entries/animate.d.ts +4 -0
- package/dist/entries/animate.d.ts.map +1 -0
- package/dist/entries/animate.js +2 -0
- package/dist/entries/animate.js.map +1 -0
- package/dist/entries/attachments.d.ts +6 -0
- package/dist/entries/attachments.d.ts.map +1 -0
- package/dist/entries/attachments.js +23 -0
- package/dist/entries/attachments.js.map +1 -0
- package/dist/entries/compiler.d.ts +61 -0
- package/dist/entries/compiler.d.ts.map +1 -0
- package/dist/entries/compiler.js +97 -0
- package/dist/entries/compiler.js.map +1 -0
- package/dist/entries/easing.d.ts +2 -0
- package/dist/entries/easing.d.ts.map +1 -0
- package/dist/entries/easing.js +2 -0
- package/dist/entries/easing.js.map +1 -0
- package/dist/entries/events.d.ts +2 -0
- package/dist/entries/events.d.ts.map +1 -0
- package/dist/entries/events.js +5 -0
- package/dist/entries/events.js.map +1 -0
- package/dist/entries/index-server.d.ts +37 -0
- package/dist/entries/index-server.d.ts.map +1 -0
- package/dist/entries/index-server.js +62 -0
- package/dist/entries/index-server.js.map +1 -0
- package/dist/entries/index.d.ts +29 -0
- package/dist/entries/index.d.ts.map +1 -0
- package/dist/entries/index.js +19 -0
- package/dist/entries/index.js.map +1 -0
- package/dist/entries/internal/client.d.ts +54 -0
- package/dist/entries/internal/client.d.ts.map +1 -0
- package/dist/entries/internal/client.js +50 -0
- package/dist/entries/internal/client.js.map +1 -0
- package/dist/entries/internal/server.d.ts +18 -0
- package/dist/entries/internal/server.d.ts.map +1 -0
- package/dist/entries/internal/server.js +16 -0
- package/dist/entries/internal/server.js.map +1 -0
- package/dist/entries/motion-server.d.ts +6 -0
- package/dist/entries/motion-server.d.ts.map +1 -0
- package/dist/entries/motion-server.js +4 -0
- package/dist/entries/motion-server.js.map +1 -0
- package/dist/entries/motion.d.ts +6 -0
- package/dist/entries/motion.d.ts.map +1 -0
- package/dist/entries/motion.js +4 -0
- package/dist/entries/motion.js.map +1 -0
- package/dist/entries/reactivity-server.d.ts +17 -0
- package/dist/entries/reactivity-server.d.ts.map +1 -0
- package/dist/entries/reactivity-server.js +7 -0
- package/dist/entries/reactivity-server.js.map +1 -0
- package/dist/entries/reactivity.d.ts +8 -0
- package/dist/entries/reactivity.d.ts.map +1 -0
- package/dist/entries/reactivity.js +8 -0
- package/dist/entries/reactivity.js.map +1 -0
- package/dist/entries/server.d.ts +5 -0
- package/dist/entries/server.d.ts.map +1 -0
- package/dist/entries/server.js +2 -0
- package/dist/entries/server.js.map +1 -0
- package/dist/entries/transition.d.ts +5 -0
- package/dist/entries/transition.d.ts.map +1 -0
- package/dist/entries/transition.js +2 -0
- package/dist/entries/transition.js.map +1 -0
- package/dist/entries/window-server.d.ts +2 -0
- package/dist/entries/window-server.d.ts.map +1 -0
- package/dist/entries/window-server.js +2 -0
- package/dist/entries/window-server.js.map +1 -0
- package/dist/entries/window.d.ts +2 -0
- package/dist/entries/window.d.ts.map +1 -0
- package/dist/entries/window.js +2 -0
- package/dist/entries/window.js.map +1 -0
- package/dist/runtime/classes/date.d.ts +5 -0
- package/dist/runtime/classes/date.d.ts.map +1 -0
- package/dist/runtime/classes/date.js +58 -0
- package/dist/runtime/classes/date.js.map +1 -0
- package/dist/runtime/classes/frames.d.ts +6 -0
- package/dist/runtime/classes/frames.d.ts.map +1 -0
- package/dist/runtime/classes/frames.js +28 -0
- package/dist/runtime/classes/frames.js.map +1 -0
- package/dist/runtime/classes/local.d.ts +3 -0
- package/dist/runtime/classes/local.d.ts.map +1 -0
- package/dist/runtime/classes/local.js +6 -0
- package/dist/runtime/classes/local.js.map +1 -0
- package/dist/runtime/classes/map.d.ts +18 -0
- package/dist/runtime/classes/map.d.ts.map +1 -0
- package/dist/runtime/classes/map.js +126 -0
- package/dist/runtime/classes/map.js.map +1 -0
- package/dist/runtime/classes/media.d.ts +6 -0
- package/dist/runtime/classes/media.d.ts.map +1 -0
- package/dist/runtime/classes/media.js +22 -0
- package/dist/runtime/classes/media.js.map +1 -0
- package/dist/runtime/classes/motion.d.ts +3 -0
- package/dist/runtime/classes/motion.d.ts.map +1 -0
- package/dist/runtime/classes/motion.js +3 -0
- package/dist/runtime/classes/motion.js.map +1 -0
- package/dist/runtime/classes/search.d.ts +23 -0
- package/dist/runtime/classes/search.d.ts.map +1 -0
- package/dist/runtime/classes/search.js +115 -0
- package/dist/runtime/classes/search.js.map +1 -0
- package/dist/runtime/classes/server.d.ts +8 -0
- package/dist/runtime/classes/server.d.ts.map +1 -0
- package/dist/runtime/classes/server.js +13 -0
- package/dist/runtime/classes/server.js.map +1 -0
- package/dist/runtime/classes/set.d.ts +28 -0
- package/dist/runtime/classes/set.d.ts.map +1 -0
- package/dist/runtime/classes/set.js +113 -0
- package/dist/runtime/classes/set.js.map +1 -0
- package/dist/runtime/classes/spring.d.ts +25 -0
- package/dist/runtime/classes/spring.d.ts.map +1 -0
- package/dist/runtime/classes/spring.js +154 -0
- package/dist/runtime/classes/spring.js.map +1 -0
- package/dist/runtime/classes/subscriber.d.ts +10 -0
- package/dist/runtime/classes/subscriber.d.ts.map +1 -0
- package/dist/runtime/classes/subscriber.js +46 -0
- package/dist/runtime/classes/subscriber.js.map +1 -0
- package/dist/runtime/classes/tween.d.ts +17 -0
- package/dist/runtime/classes/tween.d.ts.map +1 -0
- package/dist/runtime/classes/tween.js +112 -0
- package/dist/runtime/classes/tween.js.map +1 -0
- package/dist/runtime/classes/url.d.ts +30 -0
- package/dist/runtime/classes/url.d.ts.map +1 -0
- package/dist/runtime/classes/url.js +127 -0
- package/dist/runtime/classes/url.js.map +1 -0
- package/dist/runtime/classes/window-server.d.ts +14 -0
- package/dist/runtime/classes/window-server.d.ts.map +1 -0
- package/dist/runtime/classes/window-server.js +14 -0
- package/dist/runtime/classes/window-server.js.map +1 -0
- package/dist/runtime/classes/window.d.ts +18 -0
- package/dist/runtime/classes/window.d.ts.map +1 -0
- package/dist/runtime/classes/window.js +54 -0
- package/dist/runtime/classes/window.js.map +1 -0
- package/dist/runtime/dom/async.d.ts +21 -0
- package/dist/runtime/dom/async.d.ts.map +1 -0
- package/dist/runtime/dom/async.js +179 -0
- package/dist/runtime/dom/async.js.map +1 -0
- package/dist/runtime/dom/attachments.d.ts +18 -0
- package/dist/runtime/dom/attachments.d.ts.map +1 -0
- package/dist/runtime/dom/attachments.js +134 -0
- package/dist/runtime/dom/attachments.js.map +1 -0
- package/dist/runtime/dom/attributes.d.ts +21 -0
- package/dist/runtime/dom/attributes.d.ts.map +1 -0
- package/dist/runtime/dom/attributes.js +450 -0
- package/dist/runtime/dom/attributes.js.map +1 -0
- package/dist/runtime/dom/await.d.ts +5 -0
- package/dist/runtime/dom/await.d.ts.map +1 -0
- package/dist/runtime/dom/await.js +95 -0
- package/dist/runtime/dom/await.js.map +1 -0
- package/dist/runtime/dom/bindings.d.ts +21 -0
- package/dist/runtime/dom/bindings.d.ts.map +1 -0
- package/dist/runtime/dom/bindings.js +299 -0
- package/dist/runtime/dom/bindings.js.map +1 -0
- package/dist/runtime/dom/blocks.d.ts +4 -0
- package/dist/runtime/dom/blocks.d.ts.map +1 -0
- package/dist/runtime/dom/blocks.js +32 -0
- package/dist/runtime/dom/blocks.js.map +1 -0
- package/dist/runtime/dom/boundary.d.ts +14 -0
- package/dist/runtime/dom/boundary.d.ts.map +1 -0
- package/dist/runtime/dom/boundary.js +313 -0
- package/dist/runtime/dom/boundary.js.map +1 -0
- package/dist/runtime/dom/branches.d.ts +14 -0
- package/dist/runtime/dom/branches.d.ts.map +1 -0
- package/dist/runtime/dom/branches.js +210 -0
- package/dist/runtime/dom/branches.js.map +1 -0
- package/dist/runtime/dom/context.d.ts +9 -0
- package/dist/runtime/dom/context.d.ts.map +1 -0
- package/dist/runtime/dom/context.js +78 -0
- package/dist/runtime/dom/context.js.map +1 -0
- package/dist/runtime/dom/custom-element.d.ts +16 -0
- package/dist/runtime/dom/custom-element.d.ts.map +1 -0
- package/dist/runtime/dom/custom-element.js +198 -0
- package/dist/runtime/dom/custom-element.js.map +1 -0
- package/dist/runtime/dom/data.d.ts +11 -0
- package/dist/runtime/dom/data.d.ts.map +1 -0
- package/dist/runtime/dom/data.js +114 -0
- package/dist/runtime/dom/data.js.map +1 -0
- package/dist/runtime/dom/element.d.ts +3 -0
- package/dist/runtime/dom/element.d.ts.map +1 -0
- package/dist/runtime/dom/element.js +81 -0
- package/dist/runtime/dom/element.js.map +1 -0
- package/dist/runtime/dom/events.d.ts +9 -0
- package/dist/runtime/dom/events.d.ts.map +1 -0
- package/dist/runtime/dom/events.js +211 -0
- package/dist/runtime/dom/events.js.map +1 -0
- package/dist/runtime/dom/head.d.ts +4 -0
- package/dist/runtime/dom/head.d.ts.map +1 -0
- package/dist/runtime/dom/head.js +54 -0
- package/dist/runtime/dom/head.js.map +1 -0
- package/dist/runtime/dom/hot.d.ts +15 -0
- package/dist/runtime/dom/hot.d.ts.map +1 -0
- package/dist/runtime/dom/hot.js +38 -0
- package/dist/runtime/dom/hot.js.map +1 -0
- package/dist/runtime/dom/html.d.ts +7 -0
- package/dist/runtime/dom/html.d.ts.map +1 -0
- package/dist/runtime/dom/html.js +91 -0
- package/dist/runtime/dom/html.js.map +1 -0
- package/dist/runtime/dom/hydration.d.ts +16 -0
- package/dist/runtime/dom/hydration.d.ts.map +1 -0
- package/dist/runtime/dom/hydration.js +92 -0
- package/dist/runtime/dom/hydration.js.map +1 -0
- package/dist/runtime/dom/inspect.d.ts +2 -0
- package/dist/runtime/dom/inspect.d.ts.map +1 -0
- package/dist/runtime/dom/inspect.js +71 -0
- package/dist/runtime/dom/inspect.js.map +1 -0
- package/dist/runtime/dom/list.d.ts +7 -0
- package/dist/runtime/dom/list.d.ts.map +1 -0
- package/dist/runtime/dom/list.js +388 -0
- package/dist/runtime/dom/list.js.map +1 -0
- package/dist/runtime/dom/media.d.ts +26 -0
- package/dist/runtime/dom/media.d.ts.map +1 -0
- package/dist/runtime/dom/media.js +126 -0
- package/dist/runtime/dom/media.js.map +1 -0
- package/dist/runtime/dom/meta.d.ts +16 -0
- package/dist/runtime/dom/meta.d.ts.map +1 -0
- package/dist/runtime/dom/meta.js +48 -0
- package/dist/runtime/dom/meta.js.map +1 -0
- package/dist/runtime/dom/mount.d.ts +23 -0
- package/dist/runtime/dom/mount.d.ts.map +1 -0
- package/dist/runtime/dom/mount.js +134 -0
- package/dist/runtime/dom/mount.js.map +1 -0
- package/dist/runtime/dom/ownership.d.ts +6 -0
- package/dist/runtime/dom/ownership.d.ts.map +1 -0
- package/dist/runtime/dom/ownership.js +32 -0
- package/dist/runtime/dom/ownership.js.map +1 -0
- package/dist/runtime/dom/props.d.ts +20 -0
- package/dist/runtime/dom/props.d.ts.map +1 -0
- package/dist/runtime/dom/props.js +193 -0
- package/dist/runtime/dom/props.js.map +1 -0
- package/dist/runtime/dom/range.d.ts +16 -0
- package/dist/runtime/dom/range.d.ts.map +1 -0
- package/dist/runtime/dom/range.js +120 -0
- package/dist/runtime/dom/range.js.map +1 -0
- package/dist/runtime/dom/reset.d.ts +4 -0
- package/dist/runtime/dom/reset.d.ts.map +1 -0
- package/dist/runtime/dom/reset.js +39 -0
- package/dist/runtime/dom/reset.js.map +1 -0
- package/dist/runtime/dom/select.d.ts +8 -0
- package/dist/runtime/dom/select.d.ts.map +1 -0
- package/dist/runtime/dom/select.js +175 -0
- package/dist/runtime/dom/select.js.map +1 -0
- package/dist/runtime/dom/snippet.d.ts +7 -0
- package/dist/runtime/dom/snippet.d.ts.map +1 -0
- package/dist/runtime/dom/snippet.js +49 -0
- package/dist/runtime/dom/snippet.js.map +1 -0
- package/dist/runtime/dom/styles.d.ts +6 -0
- package/dist/runtime/dom/styles.d.ts.map +1 -0
- package/dist/runtime/dom/styles.js +22 -0
- package/dist/runtime/dom/styles.js.map +1 -0
- package/dist/runtime/dom/swap.d.ts +10 -0
- package/dist/runtime/dom/swap.d.ts.map +1 -0
- package/dist/runtime/dom/swap.js +84 -0
- package/dist/runtime/dom/swap.js.map +1 -0
- package/dist/runtime/dom/targets.d.ts +9 -0
- package/dist/runtime/dom/targets.d.ts.map +1 -0
- package/dist/runtime/dom/targets.js +84 -0
- package/dist/runtime/dom/targets.js.map +1 -0
- package/dist/runtime/dom/template.d.ts +19 -0
- package/dist/runtime/dom/template.d.ts.map +1 -0
- package/dist/runtime/dom/template.js +269 -0
- package/dist/runtime/dom/template.js.map +1 -0
- package/dist/runtime/dom/trusted.d.ts +4 -0
- package/dist/runtime/dom/trusted.d.ts.map +1 -0
- package/dist/runtime/dom/trusted.js +47 -0
- package/dist/runtime/dom/trusted.js.map +1 -0
- package/dist/runtime/dom/values.d.ts +4 -0
- package/dist/runtime/dom/values.d.ts.map +1 -0
- package/dist/runtime/dom/values.js +31 -0
- package/dist/runtime/dom/values.js.map +1 -0
- package/dist/runtime/reactivity/abort.d.ts +8 -0
- package/dist/runtime/reactivity/abort.d.ts.map +1 -0
- package/dist/runtime/reactivity/abort.js +50 -0
- package/dist/runtime/reactivity/abort.js.map +1 -0
- package/dist/runtime/reactivity/async.d.ts +13 -0
- package/dist/runtime/reactivity/async.d.ts.map +1 -0
- package/dist/runtime/reactivity/async.js +285 -0
- package/dist/runtime/reactivity/async.js.map +1 -0
- package/dist/runtime/reactivity/batch.d.ts +84 -0
- package/dist/runtime/reactivity/batch.d.ts.map +1 -0
- package/dist/runtime/reactivity/batch.js +359 -0
- package/dist/runtime/reactivity/batch.js.map +1 -0
- package/dist/runtime/reactivity/carried.d.ts +15 -0
- package/dist/runtime/reactivity/carried.d.ts.map +1 -0
- package/dist/runtime/reactivity/carried.js +49 -0
- package/dist/runtime/reactivity/carried.js.map +1 -0
- package/dist/runtime/reactivity/collector.d.ts +4 -0
- package/dist/runtime/reactivity/collector.d.ts.map +1 -0
- package/dist/runtime/reactivity/collector.js +19 -0
- package/dist/runtime/reactivity/collector.js.map +1 -0
- package/dist/runtime/reactivity/drafts.d.ts +25 -0
- package/dist/runtime/reactivity/drafts.d.ts.map +1 -0
- package/dist/runtime/reactivity/drafts.js +125 -0
- package/dist/runtime/reactivity/drafts.js.map +1 -0
- package/dist/runtime/reactivity/eager.d.ts +5 -0
- package/dist/runtime/reactivity/eager.d.ts.map +1 -0
- package/dist/runtime/reactivity/eager.js +45 -0
- package/dist/runtime/reactivity/eager.js.map +1 -0
- package/dist/runtime/reactivity/edges.d.ts +14 -0
- package/dist/runtime/reactivity/edges.d.ts.map +1 -0
- package/dist/runtime/reactivity/edges.js +207 -0
- package/dist/runtime/reactivity/edges.js.map +1 -0
- package/dist/runtime/reactivity/effects.d.ts +41 -0
- package/dist/runtime/reactivity/effects.d.ts.map +1 -0
- package/dist/runtime/reactivity/effects.js +618 -0
- package/dist/runtime/reactivity/effects.js.map +1 -0
- package/dist/runtime/reactivity/errors.d.ts +12 -0
- package/dist/runtime/reactivity/errors.d.ts.map +1 -0
- package/dist/runtime/reactivity/errors.js +38 -0
- package/dist/runtime/reactivity/errors.js.map +1 -0
- package/dist/runtime/reactivity/external.d.ts +3 -0
- package/dist/runtime/reactivity/external.d.ts.map +1 -0
- package/dist/runtime/reactivity/external.js +48 -0
- package/dist/runtime/reactivity/external.js.map +1 -0
- package/dist/runtime/reactivity/fork.d.ts +6 -0
- package/dist/runtime/reactivity/fork.d.ts.map +1 -0
- package/dist/runtime/reactivity/fork.js +64 -0
- package/dist/runtime/reactivity/fork.js.map +1 -0
- package/dist/runtime/reactivity/front.d.ts +5 -0
- package/dist/runtime/reactivity/front.d.ts.map +1 -0
- package/dist/runtime/reactivity/front.js +16 -0
- package/dist/runtime/reactivity/front.js.map +1 -0
- package/dist/runtime/reactivity/graph.d.ts +86 -0
- package/dist/runtime/reactivity/graph.d.ts.map +1 -0
- package/dist/runtime/reactivity/graph.js +38 -0
- package/dist/runtime/reactivity/graph.js.map +1 -0
- package/dist/runtime/reactivity/handlers.d.ts +6 -0
- package/dist/runtime/reactivity/handlers.d.ts.map +1 -0
- package/dist/runtime/reactivity/handlers.js +48 -0
- package/dist/runtime/reactivity/handlers.js.map +1 -0
- package/dist/runtime/reactivity/held.d.ts +12 -0
- package/dist/runtime/reactivity/held.d.ts.map +1 -0
- package/dist/runtime/reactivity/held.js +343 -0
- package/dist/runtime/reactivity/held.js.map +1 -0
- package/dist/runtime/reactivity/history.d.ts +25 -0
- package/dist/runtime/reactivity/history.d.ts.map +1 -0
- package/dist/runtime/reactivity/history.js +88 -0
- package/dist/runtime/reactivity/history.js.map +1 -0
- package/dist/runtime/reactivity/latest.d.ts +2 -0
- package/dist/runtime/reactivity/latest.d.ts.map +1 -0
- package/dist/runtime/reactivity/latest.js +42 -0
- package/dist/runtime/reactivity/latest.js.map +1 -0
- package/dist/runtime/reactivity/leaving.d.ts +30 -0
- package/dist/runtime/reactivity/leaving.d.ts.map +1 -0
- package/dist/runtime/reactivity/leaving.js +278 -0
- package/dist/runtime/reactivity/leaving.js.map +1 -0
- package/dist/runtime/reactivity/loss.d.ts +5 -0
- package/dist/runtime/reactivity/loss.d.ts.map +1 -0
- package/dist/runtime/reactivity/loss.js +70 -0
- package/dist/runtime/reactivity/loss.js.map +1 -0
- package/dist/runtime/reactivity/outgoing.d.ts +11 -0
- package/dist/runtime/reactivity/outgoing.d.ts.map +1 -0
- package/dist/runtime/reactivity/outgoing.js +37 -0
- package/dist/runtime/reactivity/outgoing.js.map +1 -0
- package/dist/runtime/reactivity/owners.d.ts +33 -0
- package/dist/runtime/reactivity/owners.d.ts.map +1 -0
- package/dist/runtime/reactivity/owners.js +215 -0
- package/dist/runtime/reactivity/owners.js.map +1 -0
- package/dist/runtime/reactivity/past.d.ts +9 -0
- package/dist/runtime/reactivity/past.d.ts.map +1 -0
- package/dist/runtime/reactivity/past.js +57 -0
- package/dist/runtime/reactivity/past.js.map +1 -0
- package/dist/runtime/reactivity/provenance.d.ts +34 -0
- package/dist/runtime/reactivity/provenance.d.ts.map +1 -0
- package/dist/runtime/reactivity/provenance.js +163 -0
- package/dist/runtime/reactivity/provenance.js.map +1 -0
- package/dist/runtime/reactivity/proxy.d.ts +6 -0
- package/dist/runtime/reactivity/proxy.d.ts.map +1 -0
- package/dist/runtime/reactivity/proxy.js +219 -0
- package/dist/runtime/reactivity/proxy.js.map +1 -0
- package/dist/runtime/reactivity/public.d.ts +16 -0
- package/dist/runtime/reactivity/public.d.ts.map +1 -0
- package/dist/runtime/reactivity/public.js +28 -0
- package/dist/runtime/reactivity/public.js.map +1 -0
- package/dist/runtime/reactivity/reads.d.ts +7 -0
- package/dist/runtime/reactivity/reads.d.ts.map +1 -0
- package/dist/runtime/reactivity/reads.js +383 -0
- package/dist/runtime/reactivity/reads.js.map +1 -0
- package/dist/runtime/reactivity/scheduler.d.ts +8 -0
- package/dist/runtime/reactivity/scheduler.d.ts.map +1 -0
- package/dist/runtime/reactivity/scheduler.js +406 -0
- package/dist/runtime/reactivity/scheduler.js.map +1 -0
- package/dist/runtime/reactivity/settle.d.ts +6 -0
- package/dist/runtime/reactivity/settle.d.ts.map +1 -0
- package/dist/runtime/reactivity/settle.js +76 -0
- package/dist/runtime/reactivity/settle.js.map +1 -0
- package/dist/runtime/reactivity/sources.d.ts +17 -0
- package/dist/runtime/reactivity/sources.d.ts.map +1 -0
- package/dist/runtime/reactivity/sources.js +124 -0
- package/dist/runtime/reactivity/sources.js.map +1 -0
- package/dist/runtime/reactivity/tallies.d.ts +12 -0
- package/dist/runtime/reactivity/tallies.d.ts.map +1 -0
- package/dist/runtime/reactivity/tallies.js +25 -0
- package/dist/runtime/reactivity/tallies.js.map +1 -0
- package/dist/runtime/reactivity/tasks.d.ts +3 -0
- package/dist/runtime/reactivity/tasks.d.ts.map +1 -0
- package/dist/runtime/reactivity/tasks.js +35 -0
- package/dist/runtime/reactivity/tasks.js.map +1 -0
- package/dist/runtime/reactivity/trace.d.ts +5 -0
- package/dist/runtime/reactivity/trace.d.ts.map +1 -0
- package/dist/runtime/reactivity/trace.js +109 -0
- package/dist/runtime/reactivity/trace.js.map +1 -0
- package/dist/runtime/reactivity/tracking.d.ts +62 -0
- package/dist/runtime/reactivity/tracking.d.ts.map +1 -0
- package/dist/runtime/reactivity/tracking.js +520 -0
- package/dist/runtime/reactivity/tracking.js.map +1 -0
- package/dist/runtime/reactivity/units.d.ts +12 -0
- package/dist/runtime/reactivity/units.d.ts.map +1 -0
- package/dist/runtime/reactivity/units.js +112 -0
- package/dist/runtime/reactivity/units.js.map +1 -0
- package/dist/runtime/reactivity/views.d.ts +12 -0
- package/dist/runtime/reactivity/views.d.ts.map +1 -0
- package/dist/runtime/reactivity/views.js +105 -0
- package/dist/runtime/reactivity/views.js.map +1 -0
- package/dist/runtime/server/attributes.d.ts +9 -0
- package/dist/runtime/server/attributes.d.ts.map +1 -0
- package/dist/runtime/server/attributes.js +73 -0
- package/dist/runtime/server/attributes.js.map +1 -0
- package/dist/runtime/server/cells.d.ts +9 -0
- package/dist/runtime/server/cells.d.ts.map +1 -0
- package/dist/runtime/server/cells.js +120 -0
- package/dist/runtime/server/cells.js.map +1 -0
- package/dist/runtime/server/context.d.ts +51 -0
- package/dist/runtime/server/context.d.ts.map +1 -0
- package/dist/runtime/server/context.js +260 -0
- package/dist/runtime/server/context.js.map +1 -0
- package/dist/runtime/server/derived.d.ts +5 -0
- package/dist/runtime/server/derived.d.ts.map +1 -0
- package/dist/runtime/server/derived.js +30 -0
- package/dist/runtime/server/derived.js.map +1 -0
- package/dist/runtime/server/external.d.ts +3 -0
- package/dist/runtime/server/external.d.ts.map +1 -0
- package/dist/runtime/server/external.js +53 -0
- package/dist/runtime/server/external.js.map +1 -0
- package/dist/runtime/server/hydration.d.ts +26 -0
- package/dist/runtime/server/hydration.d.ts.map +1 -0
- package/dist/runtime/server/hydration.js +187 -0
- package/dist/runtime/server/hydration.js.map +1 -0
- package/dist/runtime/server/placement.d.ts +9 -0
- package/dist/runtime/server/placement.d.ts.map +1 -0
- package/dist/runtime/server/placement.js +35 -0
- package/dist/runtime/server/placement.js.map +1 -0
- package/dist/runtime/server/render.d.ts +89 -0
- package/dist/runtime/server/render.d.ts.map +1 -0
- package/dist/runtime/server/render.js +470 -0
- package/dist/runtime/server/render.js.map +1 -0
- package/dist/runtime/server/snippet.d.ts +7 -0
- package/dist/runtime/server/snippet.d.ts.map +1 -0
- package/dist/runtime/server/snippet.js +15 -0
- package/dist/runtime/server/snippet.js.map +1 -0
- package/dist/runtime/transitions/animate.d.ts +22 -0
- package/dist/runtime/transitions/animate.d.ts.map +1 -0
- package/dist/runtime/transitions/animate.js +140 -0
- package/dist/runtime/transitions/animate.js.map +1 -0
- package/dist/runtime/transitions/easing.d.ts +33 -0
- package/dist/runtime/transitions/easing.d.ts.map +1 -0
- package/dist/runtime/transitions/easing.js +128 -0
- package/dist/runtime/transitions/easing.js.map +1 -0
- package/dist/runtime/transitions/flip.d.ts +12 -0
- package/dist/runtime/transitions/flip.d.ts.map +1 -0
- package/dist/runtime/transitions/flip.js +51 -0
- package/dist/runtime/transitions/flip.js.map +1 -0
- package/dist/runtime/transitions/frame.d.ts +37 -0
- package/dist/runtime/transitions/frame.d.ts.map +1 -0
- package/dist/runtime/transitions/frame.js +219 -0
- package/dist/runtime/transitions/frame.js.map +1 -0
- package/dist/runtime/transitions/layout.d.ts +37 -0
- package/dist/runtime/transitions/layout.d.ts.map +1 -0
- package/dist/runtime/transitions/layout.js +150 -0
- package/dist/runtime/transitions/layout.js.map +1 -0
- package/dist/runtime/transitions/manager.d.ts +30 -0
- package/dist/runtime/transitions/manager.d.ts.map +1 -0
- package/dist/runtime/transitions/manager.js +278 -0
- package/dist/runtime/transitions/manager.js.map +1 -0
- package/dist/runtime/transitions/placement.d.ts +25 -0
- package/dist/runtime/transitions/placement.d.ts.map +1 -0
- package/dist/runtime/transitions/placement.js +135 -0
- package/dist/runtime/transitions/placement.js.map +1 -0
- package/dist/runtime/transitions/presets.d.ts +53 -0
- package/dist/runtime/transitions/presets.d.ts.map +1 -0
- package/dist/runtime/transitions/presets.js +266 -0
- package/dist/runtime/transitions/presets.js.map +1 -0
- package/dist/shared/abort.d.ts +6 -0
- package/dist/shared/abort.d.ts.map +1 -0
- package/dist/shared/abort.js +8 -0
- package/dist/shared/abort.js.map +1 -0
- package/dist/shared/assignment.d.ts +6 -0
- package/dist/shared/assignment.d.ts.map +1 -0
- package/dist/shared/assignment.js +19 -0
- package/dist/shared/assignment.js.map +1 -0
- package/dist/shared/attributes.d.ts +8 -0
- package/dist/shared/attributes.d.ts.map +1 -0
- package/dist/shared/attributes.js +120 -0
- package/dist/shared/attributes.js.map +1 -0
- package/dist/shared/clone.d.ts +2 -0
- package/dist/shared/clone.d.ts.map +1 -0
- package/dist/shared/clone.js +76 -0
- package/dist/shared/clone.js.map +1 -0
- package/dist/shared/context.d.ts +15 -0
- package/dist/shared/context.d.ts.map +1 -0
- package/dist/shared/context.js +16 -0
- package/dist/shared/context.js.map +1 -0
- package/dist/shared/diagnostics.d.ts +22 -0
- package/dist/shared/diagnostics.d.ts.map +1 -0
- package/dist/shared/diagnostics.js +58 -0
- package/dist/shared/diagnostics.js.map +1 -0
- package/dist/shared/escape.d.ts +3 -0
- package/dist/shared/escape.d.ts.map +1 -0
- package/dist/shared/escape.js +17 -0
- package/dist/shared/escape.js.map +1 -0
- package/dist/shared/external.d.ts +37 -0
- package/dist/shared/external.d.ts.map +1 -0
- package/dist/shared/external.js +76 -0
- package/dist/shared/external.js.map +1 -0
- package/dist/shared/format.d.ts +9 -0
- package/dist/shared/format.d.ts.map +1 -0
- package/dist/shared/format.js +10 -0
- package/dist/shared/format.js.map +1 -0
- package/dist/shared/hash.d.ts +2 -0
- package/dist/shared/hash.d.ts.map +1 -0
- package/dist/shared/hash.js +9 -0
- package/dist/shared/hash.js.map +1 -0
- package/dist/shared/html.d.ts +18 -0
- package/dist/shared/html.d.ts.map +1 -0
- package/dist/shared/html.js +277 -0
- package/dist/shared/html.js.map +1 -0
- package/dist/shared/markers.d.ts +12 -0
- package/dist/shared/markers.d.ts.map +1 -0
- package/dist/shared/markers.js +16 -0
- package/dist/shared/markers.js.map +1 -0
- package/dist/shared/nesting.d.ts +3 -0
- package/dist/shared/nesting.d.ts.map +1 -0
- package/dist/shared/nesting.js +143 -0
- package/dist/shared/nesting.js.map +1 -0
- package/dist/shared/slots.d.ts +8 -0
- package/dist/shared/slots.d.ts.map +1 -0
- package/dist/shared/slots.js +9 -0
- package/dist/shared/slots.js.map +1 -0
- package/dist/shared/snippet.d.ts +11 -0
- package/dist/shared/snippet.d.ts.map +1 -0
- package/dist/shared/snippet.js +11 -0
- package/dist/shared/snippet.js.map +1 -0
- package/package.json +54 -3
- package/src/compiler/analysis/asynchronous.ts +206 -0
- package/src/compiler/analysis/classes.ts +110 -0
- package/src/compiler/analysis/ignoring.ts +25 -0
- package/src/compiler/analysis/index.ts +433 -0
- package/src/compiler/analysis/scope.ts +410 -0
- package/src/compiler/analysis/template.ts +525 -0
- package/src/compiler/analysis/validate/a11y/attributes.ts +252 -0
- package/src/compiler/analysis/validate/a11y/axobject-query.d.ts +20 -0
- package/src/compiler/analysis/validate/a11y/elements.ts +241 -0
- package/src/compiler/analysis/validate/a11y/facts.ts +102 -0
- package/src/compiler/analysis/validate/a11y/fuzzy.ts +123 -0
- package/src/compiler/analysis/validate/a11y/index.ts +24 -0
- package/src/compiler/analysis/validate/a11y/interactions.ts +125 -0
- package/src/compiler/analysis/validate/a11y/roles.ts +182 -0
- package/src/compiler/analysis/validate/a11y/tables.ts +250 -0
- package/src/compiler/analysis/validate/assignment.ts +74 -0
- package/src/compiler/analysis/validate/bindings.ts +210 -0
- package/src/compiler/analysis/validate/classes.ts +102 -0
- package/src/compiler/analysis/validate/context.ts +119 -0
- package/src/compiler/analysis/validate/element.ts +148 -0
- package/src/compiler/analysis/validate/front.ts +75 -0
- package/src/compiler/analysis/validate/index.ts +268 -0
- package/src/compiler/analysis/validate/messages.ts +451 -0
- package/src/compiler/analysis/validate/report.ts +100 -0
- package/src/compiler/analysis/validate/scope.ts +241 -0
- package/src/compiler/analysis/validate/scopes.ts +460 -0
- package/src/compiler/analysis/validate/script.ts +528 -0
- package/src/compiler/analysis/validate/template.ts +326 -0
- package/src/compiler/analysis/whitespace.ts +87 -0
- package/src/compiler/client/asynchronous.ts +68 -0
- package/src/compiler/client/bindings.ts +246 -0
- package/src/compiler/client/blocks.ts +239 -0
- package/src/compiler/client/classes.ts +154 -0
- package/src/compiler/client/component.ts +549 -0
- package/src/compiler/client/constants.ts +107 -0
- package/src/compiler/client/custom-element.ts +173 -0
- package/src/compiler/client/directives.ts +35 -0
- package/src/compiler/client/dynamic.ts +85 -0
- package/src/compiler/client/element.ts +631 -0
- package/src/compiler/client/events.ts +147 -0
- package/src/compiler/client/exports.ts +39 -0
- package/src/compiler/client/external.ts +190 -0
- package/src/compiler/client/hot.ts +62 -0
- package/src/compiler/client/index.ts +307 -0
- package/src/compiler/client/inspect.ts +153 -0
- package/src/compiler/client/loss.ts +53 -0
- package/src/compiler/client/markup.ts +126 -0
- package/src/compiler/client/meta.ts +64 -0
- package/src/compiler/client/ownership.ts +54 -0
- package/src/compiler/client/parameters.ts +38 -0
- package/src/compiler/client/patterns.ts +154 -0
- package/src/compiler/client/script.ts +587 -0
- package/src/compiler/client/special.ts +177 -0
- package/src/compiler/client/template.ts +533 -0
- package/src/compiler/client/transitions.ts +38 -0
- package/src/compiler/client/values.ts +52 -0
- package/src/compiler/css/analyze.ts +281 -0
- package/src/compiler/css/attributes.ts +195 -0
- package/src/compiler/css/hash.ts +1 -0
- package/src/compiler/css/index.ts +152 -0
- package/src/compiler/css/marks.ts +142 -0
- package/src/compiler/css/prune.ts +466 -0
- package/src/compiler/css/relations.ts +264 -0
- package/src/compiler/css/render.ts +422 -0
- package/src/compiler/css/template.ts +297 -0
- package/src/compiler/ir/estree.ts +256 -0
- package/src/compiler/ir/maps.ts +64 -0
- package/src/compiler/ir/nodes.ts +263 -0
- package/src/compiler/ir/port.ts +88 -0
- package/src/compiler/ir/runtime.ts +19 -0
- package/src/compiler/ir/script.ts +34 -0
- package/src/compiler/ir/style.ts +120 -0
- package/src/compiler/server/asynchronous.ts +71 -0
- package/src/compiler/server/bindings.ts +101 -0
- package/src/compiler/server/blocks.ts +165 -0
- package/src/compiler/server/classes.ts +139 -0
- package/src/compiler/server/component.ts +400 -0
- package/src/compiler/server/external.ts +176 -0
- package/src/compiler/server/index.ts +205 -0
- package/src/compiler/server/placement.ts +58 -0
- package/src/compiler/server/script.ts +492 -0
- package/src/compiler/server/slot.ts +51 -0
- package/src/compiler/server/special.ts +60 -0
- package/src/compiler/server/template.ts +620 -0
- package/src/entries/action.ts +20 -0
- package/src/entries/animate.ts +3 -0
- package/src/entries/attachments.ts +30 -0
- package/src/entries/compiler.ts +206 -0
- package/src/entries/easing.ts +1 -0
- package/src/entries/events.ts +10 -0
- package/src/entries/index-server.ts +118 -0
- package/src/entries/index.ts +50 -0
- package/src/entries/internal/client.ts +135 -0
- package/src/entries/internal/server.ts +46 -0
- package/src/entries/motion-server.ts +5 -0
- package/src/entries/motion.ts +5 -0
- package/src/entries/reactivity-server.ts +7 -0
- package/src/entries/reactivity.ts +7 -0
- package/src/entries/server.ts +11 -0
- package/src/entries/transition.ts +12 -0
- package/src/entries/window-server.ts +12 -0
- package/src/entries/window.ts +12 -0
- package/src/runtime/classes/date.ts +65 -0
- package/src/runtime/classes/frames.ts +27 -0
- package/src/runtime/classes/local.ts +7 -0
- package/src/runtime/classes/map.ts +135 -0
- package/src/runtime/classes/media.ts +25 -0
- package/src/runtime/classes/motion.ts +3 -0
- package/src/runtime/classes/search.ts +136 -0
- package/src/runtime/classes/server.ts +17 -0
- package/src/runtime/classes/set.ts +146 -0
- package/src/runtime/classes/spring.ts +199 -0
- package/src/runtime/classes/subscriber.ts +50 -0
- package/src/runtime/classes/tween.ts +128 -0
- package/src/runtime/classes/url.ts +152 -0
- package/src/runtime/classes/window-server.ts +27 -0
- package/src/runtime/classes/window.ts +72 -0
- package/src/runtime/dom/async.ts +208 -0
- package/src/runtime/dom/attachments.ts +139 -0
- package/src/runtime/dom/attributes.ts +526 -0
- package/src/runtime/dom/await.ts +108 -0
- package/src/runtime/dom/bindings.ts +369 -0
- package/src/runtime/dom/blocks.ts +39 -0
- package/src/runtime/dom/boundary.ts +349 -0
- package/src/runtime/dom/branches.ts +219 -0
- package/src/runtime/dom/context.ts +90 -0
- package/src/runtime/dom/custom-element.ts +214 -0
- package/src/runtime/dom/data.ts +131 -0
- package/src/runtime/dom/element.ts +89 -0
- package/src/runtime/dom/events.ts +254 -0
- package/src/runtime/dom/head.ts +56 -0
- package/src/runtime/dom/hot.ts +45 -0
- package/src/runtime/dom/html.ts +92 -0
- package/src/runtime/dom/hydration.ts +108 -0
- package/src/runtime/dom/inspect.ts +70 -0
- package/src/runtime/dom/list.ts +432 -0
- package/src/runtime/dom/media.ts +164 -0
- package/src/runtime/dom/meta.ts +67 -0
- package/src/runtime/dom/mount.ts +190 -0
- package/src/runtime/dom/ownership.ts +45 -0
- package/src/runtime/dom/props.ts +212 -0
- package/src/runtime/dom/range.ts +132 -0
- package/src/runtime/dom/reset.ts +39 -0
- package/src/runtime/dom/select.ts +184 -0
- package/src/runtime/dom/snippet.ts +54 -0
- package/src/runtime/dom/styles.ts +26 -0
- package/src/runtime/dom/swap.ts +117 -0
- package/src/runtime/dom/targets.ts +96 -0
- package/src/runtime/dom/template.ts +319 -0
- package/src/runtime/dom/trusted.ts +81 -0
- package/src/runtime/dom/values.ts +33 -0
- package/src/runtime/reactivity/abort.ts +56 -0
- package/src/runtime/reactivity/async.ts +272 -0
- package/src/runtime/reactivity/batch.ts +382 -0
- package/src/runtime/reactivity/carried.ts +64 -0
- package/src/runtime/reactivity/collector.ts +20 -0
- package/src/runtime/reactivity/drafts.ts +126 -0
- package/src/runtime/reactivity/eager.ts +45 -0
- package/src/runtime/reactivity/edges.ts +210 -0
- package/src/runtime/reactivity/effects.ts +669 -0
- package/src/runtime/reactivity/errors.ts +73 -0
- package/src/runtime/reactivity/external.ts +56 -0
- package/src/runtime/reactivity/fork.ts +60 -0
- package/src/runtime/reactivity/front.ts +20 -0
- package/src/runtime/reactivity/graph.ts +129 -0
- package/src/runtime/reactivity/handlers.ts +55 -0
- package/src/runtime/reactivity/held.ts +337 -0
- package/src/runtime/reactivity/history.ts +108 -0
- package/src/runtime/reactivity/latest.ts +41 -0
- package/src/runtime/reactivity/leaving.ts +303 -0
- package/src/runtime/reactivity/loss.ts +71 -0
- package/src/runtime/reactivity/outgoing.ts +41 -0
- package/src/runtime/reactivity/owners.ts +234 -0
- package/src/runtime/reactivity/past.ts +57 -0
- package/src/runtime/reactivity/provenance.ts +189 -0
- package/src/runtime/reactivity/proxy.ts +212 -0
- package/src/runtime/reactivity/public.ts +51 -0
- package/src/runtime/reactivity/reads.ts +376 -0
- package/src/runtime/reactivity/scheduler.ts +400 -0
- package/src/runtime/reactivity/settle.ts +73 -0
- package/src/runtime/reactivity/sources.ts +150 -0
- package/src/runtime/reactivity/tallies.ts +34 -0
- package/src/runtime/reactivity/tasks.ts +33 -0
- package/src/runtime/reactivity/trace.ts +113 -0
- package/src/runtime/reactivity/tracking.ts +569 -0
- package/src/runtime/reactivity/units.ts +103 -0
- package/src/runtime/reactivity/views.ts +114 -0
- package/src/runtime/server/attributes.ts +80 -0
- package/src/runtime/server/cells.ts +135 -0
- package/src/runtime/server/context.ts +319 -0
- package/src/runtime/server/derived.ts +37 -0
- package/src/runtime/server/external.ts +59 -0
- package/src/runtime/server/hydration.ts +238 -0
- package/src/runtime/server/placement.ts +47 -0
- package/src/runtime/server/render.ts +612 -0
- package/src/runtime/server/snippet.ts +21 -0
- package/src/runtime/transitions/animate.ts +161 -0
- package/src/runtime/transitions/easing.ts +153 -0
- package/src/runtime/transitions/flip.ts +66 -0
- package/src/runtime/transitions/frame.ts +273 -0
- package/src/runtime/transitions/layout.ts +176 -0
- package/src/runtime/transitions/manager.ts +343 -0
- package/src/runtime/transitions/placement.ts +161 -0
- package/src/runtime/transitions/presets.ts +369 -0
- package/src/shared/abort.ts +8 -0
- package/src/shared/assignment.ts +27 -0
- package/src/shared/attributes.ts +123 -0
- package/src/shared/clone.ts +82 -0
- package/src/shared/context.ts +35 -0
- package/src/shared/diagnostics.ts +83 -0
- package/src/shared/escape.ts +20 -0
- package/src/shared/external.ts +113 -0
- package/src/shared/format.ts +17 -0
- package/src/shared/hash.ts +8 -0
- package/src/shared/html.ts +298 -0
- package/src/shared/markers.ts +25 -0
- package/src/shared/nesting.ts +156 -0
- package/src/shared/slots.ts +16 -0
- package/src/shared/snippet.ts +29 -0
|
@@ -0,0 +1,631 @@
|
|
|
1
|
+
import type * as ES from 'estree';
|
|
2
|
+
import { toClass } from '../../shared/attributes.ts';
|
|
3
|
+
import { isCustomTag, isProperty, propertyName } from '../../shared/html.ts';
|
|
4
|
+
import { richSelect, unsupported } from '../analysis/index.ts';
|
|
5
|
+
import * as b from '../ir/estree.ts';
|
|
6
|
+
import type {
|
|
7
|
+
Attribute,
|
|
8
|
+
ClassToggle,
|
|
9
|
+
DynamicElement,
|
|
10
|
+
Element,
|
|
11
|
+
Namespace,
|
|
12
|
+
Property,
|
|
13
|
+
StyleProperty,
|
|
14
|
+
Value
|
|
15
|
+
} from '../ir/nodes.ts';
|
|
16
|
+
import { awaiting } from './asynchronous.ts';
|
|
17
|
+
import { binding, hasContentBinding } from './bindings.ts';
|
|
18
|
+
import { actionCall, attachCall } from './directives.ts';
|
|
19
|
+
import { event, handler, isEvent } from './events.ts';
|
|
20
|
+
import { rewrite, runtime } from './script.ts';
|
|
21
|
+
import { anchorComment, elementKind } from './markup.ts';
|
|
22
|
+
import { location } from './meta.ts';
|
|
23
|
+
import { animationCall, transitionCall } from './transitions.ts';
|
|
24
|
+
import { isStatic, staticText, valueOf, valueReactive } from './values.ts';
|
|
25
|
+
import {
|
|
26
|
+
awaitedEmit,
|
|
27
|
+
cleaned,
|
|
28
|
+
flush,
|
|
29
|
+
HTML_CONTROLLED,
|
|
30
|
+
htmlCall,
|
|
31
|
+
isDynamic,
|
|
32
|
+
memo,
|
|
33
|
+
parts,
|
|
34
|
+
policyArgument,
|
|
35
|
+
render,
|
|
36
|
+
scopeHash,
|
|
37
|
+
type Emit,
|
|
38
|
+
type Part,
|
|
39
|
+
type TemplateContext
|
|
40
|
+
} from './template.ts';
|
|
41
|
+
|
|
42
|
+
const unsettable = new Set(['autofocus', 'muted', 'defaultValue', 'defaultChecked']);
|
|
43
|
+
|
|
44
|
+
function update(
|
|
45
|
+
context: TemplateContext,
|
|
46
|
+
node: Element,
|
|
47
|
+
element: ES.Identifier,
|
|
48
|
+
name: string,
|
|
49
|
+
value: ES.Expression,
|
|
50
|
+
attributes: readonly Attribute[]
|
|
51
|
+
): ES.Expression {
|
|
52
|
+
const html = (context.component.namespaces.get(node) ?? 'html') === 'html';
|
|
53
|
+
const tag = html ? node.name.toLowerCase() : node.name;
|
|
54
|
+
if (html && name === 'muted')
|
|
55
|
+
return {
|
|
56
|
+
type: 'AssignmentExpression',
|
|
57
|
+
operator: '=',
|
|
58
|
+
left: b.member(element, 'muted'),
|
|
59
|
+
right: value
|
|
60
|
+
};
|
|
61
|
+
if (html && name === 'value') {
|
|
62
|
+
const grouped = attributes.some((other) => other.kind === 'binding' && other.name === 'group');
|
|
63
|
+
if (tag === 'option' || grouped) return runtime(context, 'optionValue', element, value);
|
|
64
|
+
if (tag === 'select') return runtime(context, 'selectValue', element, value);
|
|
65
|
+
return runtime(context, 'value', element, value);
|
|
66
|
+
}
|
|
67
|
+
if (html && name === 'checked') return runtime(context, 'checked', element, value);
|
|
68
|
+
if (html && name === 'selected') return runtime(context, 'selected', element, value);
|
|
69
|
+
if (html && tag === 'select' && name === 'defaultValue')
|
|
70
|
+
return runtime(context, 'selectDefault', element, value);
|
|
71
|
+
if (
|
|
72
|
+
html &&
|
|
73
|
+
name === 'defaultValue' &&
|
|
74
|
+
(attributes.some(
|
|
75
|
+
(other) => other.kind === 'attribute' && other.name === 'value' && isStatic(other.value)
|
|
76
|
+
) ||
|
|
77
|
+
(node.name === 'textarea' && node.body.nodes.length > 0))
|
|
78
|
+
) {
|
|
79
|
+
return runtime(context, 'defaultValue', element, value);
|
|
80
|
+
}
|
|
81
|
+
if (
|
|
82
|
+
html &&
|
|
83
|
+
name === 'defaultChecked' &&
|
|
84
|
+
attributes.some(
|
|
85
|
+
(other) =>
|
|
86
|
+
other.kind === 'attribute' && other.name === 'checked' && other.value.kind === 'boolean'
|
|
87
|
+
)
|
|
88
|
+
) {
|
|
89
|
+
return runtime(context, 'defaultChecked', element, value);
|
|
90
|
+
}
|
|
91
|
+
if (html && isProperty(name)) {
|
|
92
|
+
return {
|
|
93
|
+
type: 'AssignmentExpression',
|
|
94
|
+
operator: '=',
|
|
95
|
+
left: b.member(element, name),
|
|
96
|
+
right: value
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
const args: ES.Expression[] = [element, b.literal(name), value];
|
|
100
|
+
if (
|
|
101
|
+
!name.startsWith('xlink') &&
|
|
102
|
+
context.component.ignored.get(node)?.has('hydration_attribute_changed')
|
|
103
|
+
) {
|
|
104
|
+
args.push(b.literal(true));
|
|
105
|
+
}
|
|
106
|
+
return runtime(context, name.startsWith('xlink') ? 'xlink' : 'attr', ...args);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
function awaitedValue(context: TemplateContext, value: Value | null): boolean {
|
|
110
|
+
if (value === null || value.kind === 'boolean') return false;
|
|
111
|
+
if (value.kind === 'expression') return context.awaited?.has(value.expression) === true;
|
|
112
|
+
return value.parts.some(
|
|
113
|
+
(part) => part.kind === 'expression' && context.awaited?.has(part.expression) === true
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
function awaitedAttribute(context: TemplateContext, attribute: Attribute): boolean {
|
|
118
|
+
switch (attribute.kind) {
|
|
119
|
+
case 'spread':
|
|
120
|
+
case 'class':
|
|
121
|
+
return context.awaited?.has(attribute.expression) === true;
|
|
122
|
+
case 'attribute':
|
|
123
|
+
case 'style':
|
|
124
|
+
return awaitedValue(context, attribute.value);
|
|
125
|
+
default:
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
function directivesObject(
|
|
131
|
+
context: TemplateContext,
|
|
132
|
+
emit: Emit,
|
|
133
|
+
directives: readonly (ClassToggle | StyleProperty)[]
|
|
134
|
+
): ES.ObjectExpression {
|
|
135
|
+
return {
|
|
136
|
+
type: 'ObjectExpression',
|
|
137
|
+
properties: directives.map((directive) => {
|
|
138
|
+
const value =
|
|
139
|
+
directive.kind === 'class'
|
|
140
|
+
? memo(context, emit, directive.expression, rewrite(context, directive.expression))
|
|
141
|
+
: valueOf(context, emit, directive.value);
|
|
142
|
+
return {
|
|
143
|
+
type: 'Property',
|
|
144
|
+
key: b.literal(directive.name),
|
|
145
|
+
value,
|
|
146
|
+
kind: 'init',
|
|
147
|
+
method: false,
|
|
148
|
+
shorthand: false,
|
|
149
|
+
computed: false
|
|
150
|
+
};
|
|
151
|
+
})
|
|
152
|
+
};
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
function styleDirectives(
|
|
156
|
+
context: TemplateContext,
|
|
157
|
+
emit: Emit,
|
|
158
|
+
styles: readonly StyleProperty[]
|
|
159
|
+
): ES.Expression {
|
|
160
|
+
const normal = styles.filter((style) => !style.important);
|
|
161
|
+
const important = styles.filter((style) => style.important);
|
|
162
|
+
if (important.length === 0) return directivesObject(context, emit, normal);
|
|
163
|
+
return {
|
|
164
|
+
type: 'ArrayExpression',
|
|
165
|
+
elements: [directivesObject(context, emit, normal), directivesObject(context, emit, important)]
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function templated(
|
|
170
|
+
context: TemplateContext,
|
|
171
|
+
node: Element | DynamicElement,
|
|
172
|
+
attribute: Property
|
|
173
|
+
): boolean {
|
|
174
|
+
return (
|
|
175
|
+
node.kind === 'element' &&
|
|
176
|
+
attribute.name === 'is' &&
|
|
177
|
+
isStatic(attribute.value) &&
|
|
178
|
+
attribute.value.kind === 'text' &&
|
|
179
|
+
(context.component.namespaces.get(node) ?? 'html') === 'html'
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
export function spread(
|
|
184
|
+
context: TemplateContext,
|
|
185
|
+
node: Element | DynamicElement,
|
|
186
|
+
element: ES.Identifier,
|
|
187
|
+
outer: Emit
|
|
188
|
+
): void {
|
|
189
|
+
const name = node.kind === 'element' ? node.name : null;
|
|
190
|
+
const local: Emit = { init: [], after: [], update: [], thunks: [], params: [] };
|
|
191
|
+
const late = node.attributes.some((attribute) => awaitedAttribute(context, attribute));
|
|
192
|
+
const emit = late ? awaitedEmit(local) : local;
|
|
193
|
+
const properties: (ES.Property | ES.SpreadElement)[] = [];
|
|
194
|
+
const classes: ClassToggle[] = [];
|
|
195
|
+
const styles: StyleProperty[] = [];
|
|
196
|
+
for (const attribute of node.attributes) {
|
|
197
|
+
switch (attribute.kind) {
|
|
198
|
+
case 'spread':
|
|
199
|
+
properties.push({
|
|
200
|
+
type: 'SpreadElement',
|
|
201
|
+
argument: memo(
|
|
202
|
+
context,
|
|
203
|
+
emit,
|
|
204
|
+
attribute.expression,
|
|
205
|
+
rewrite(context, attribute.expression)
|
|
206
|
+
)
|
|
207
|
+
});
|
|
208
|
+
break;
|
|
209
|
+
case 'attribute': {
|
|
210
|
+
if (templated(context, node, attribute)) break;
|
|
211
|
+
const value = isEvent(attribute)
|
|
212
|
+
? handler(
|
|
213
|
+
context,
|
|
214
|
+
(attribute.value as { expression: ES.Expression }).expression,
|
|
215
|
+
emit.init
|
|
216
|
+
)
|
|
217
|
+
: valueOf(context, emit, attribute.value);
|
|
218
|
+
properties.push({
|
|
219
|
+
type: 'Property',
|
|
220
|
+
key: b.literal(attribute.name),
|
|
221
|
+
value,
|
|
222
|
+
kind: 'init',
|
|
223
|
+
method: false,
|
|
224
|
+
shorthand: false,
|
|
225
|
+
computed: false
|
|
226
|
+
});
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
case 'class':
|
|
230
|
+
classes.push(attribute);
|
|
231
|
+
break;
|
|
232
|
+
case 'style':
|
|
233
|
+
styles.push(attribute);
|
|
234
|
+
break;
|
|
235
|
+
case 'binding':
|
|
236
|
+
case 'action':
|
|
237
|
+
case 'attachment':
|
|
238
|
+
case 'transition':
|
|
239
|
+
case 'animation':
|
|
240
|
+
break;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
if (classes.length > 0) {
|
|
244
|
+
properties.push({
|
|
245
|
+
type: 'Property',
|
|
246
|
+
key: b.member(context.runtime, 'CLASS'),
|
|
247
|
+
value: directivesObject(context, emit, classes),
|
|
248
|
+
kind: 'init',
|
|
249
|
+
method: false,
|
|
250
|
+
shorthand: false,
|
|
251
|
+
computed: true
|
|
252
|
+
});
|
|
253
|
+
}
|
|
254
|
+
if (styles.length > 0) {
|
|
255
|
+
properties.push({
|
|
256
|
+
type: 'Property',
|
|
257
|
+
key: b.member(context.runtime, 'STYLE'),
|
|
258
|
+
value: styleDirectives(context, emit, styles),
|
|
259
|
+
kind: 'init',
|
|
260
|
+
method: false,
|
|
261
|
+
shorthand: false,
|
|
262
|
+
computed: true
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
const previous = b.id(context.names.unique('attributes'));
|
|
266
|
+
outer.init.push({
|
|
267
|
+
type: 'VariableDeclaration',
|
|
268
|
+
kind: 'let',
|
|
269
|
+
declarations: [{ type: 'VariableDeclarator', id: previous, init: null }]
|
|
270
|
+
});
|
|
271
|
+
const args: ES.Expression[] = [element, previous, { type: 'ObjectExpression', properties }];
|
|
272
|
+
const hash = scopeHash(context, node);
|
|
273
|
+
const unchecked =
|
|
274
|
+
context.component.ignored.get(node)?.has('hydration_attribute_changed') === true;
|
|
275
|
+
if (hash !== null || name === 'input' || unchecked) args.push(b.literal(hash));
|
|
276
|
+
if (name === 'input' || unchecked) args.push(b.literal(name === 'input'));
|
|
277
|
+
if (unchecked) args.push(b.literal(true));
|
|
278
|
+
emit.update.push(
|
|
279
|
+
b.statement({
|
|
280
|
+
type: 'AssignmentExpression',
|
|
281
|
+
operator: '=',
|
|
282
|
+
left: previous,
|
|
283
|
+
right: runtime(context, 'attributes', ...args)
|
|
284
|
+
})
|
|
285
|
+
);
|
|
286
|
+
if (name === 'textarea') {
|
|
287
|
+
outer.init.push(b.statement(runtime(context, 'removeTextareaChild', element)));
|
|
288
|
+
}
|
|
289
|
+
outer.init.push(...flush(context, local));
|
|
290
|
+
if (
|
|
291
|
+
!node.attributes.some((attribute) => attribute.kind === 'binding' && attribute.name === 'value')
|
|
292
|
+
) {
|
|
293
|
+
outer.init.push(b.statement(runtime(context, 'initSelect', element, b.arrow([], previous))));
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
function defaults(
|
|
298
|
+
context: TemplateContext,
|
|
299
|
+
node: Element,
|
|
300
|
+
element: ES.Identifier,
|
|
301
|
+
emit: Emit
|
|
302
|
+
): void {
|
|
303
|
+
const named = (names: readonly string[]): Property | undefined =>
|
|
304
|
+
node.attributes.find(
|
|
305
|
+
(attribute): attribute is Property =>
|
|
306
|
+
attribute.kind === 'attribute' && names.includes(attribute.name)
|
|
307
|
+
);
|
|
308
|
+
if (node.name === 'input') {
|
|
309
|
+
if (named(['defaultValue', 'defaultChecked']) !== undefined) return;
|
|
310
|
+
const valued = node.attributes.some(
|
|
311
|
+
(attribute) =>
|
|
312
|
+
(attribute.kind === 'attribute' &&
|
|
313
|
+
(attribute.name === 'value' || attribute.name === 'checked') &&
|
|
314
|
+
attribute.value.kind !== 'text') ||
|
|
315
|
+
(attribute.kind === 'binding' &&
|
|
316
|
+
(attribute.name === 'value' ||
|
|
317
|
+
attribute.name === 'checked' ||
|
|
318
|
+
attribute.name === 'group'))
|
|
319
|
+
);
|
|
320
|
+
if (valued) emit.init.push(b.statement(runtime(context, 'removeInputDefaults', element)));
|
|
321
|
+
return;
|
|
322
|
+
}
|
|
323
|
+
if (node.name === 'textarea') {
|
|
324
|
+
const value = named(['value']);
|
|
325
|
+
const bound = node.attributes.some(
|
|
326
|
+
(attribute) => attribute.kind === 'binding' && attribute.name === 'value'
|
|
327
|
+
);
|
|
328
|
+
if (bound || (value !== undefined && value.value.kind !== 'text')) {
|
|
329
|
+
emit.init.push(b.statement(runtime(context, 'removeTextareaChild', element)));
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function classAttribute(
|
|
335
|
+
context: TemplateContext,
|
|
336
|
+
node: Element,
|
|
337
|
+
element: ES.Identifier,
|
|
338
|
+
value: Value | null,
|
|
339
|
+
toggles: readonly ClassToggle[],
|
|
340
|
+
namespace: Namespace,
|
|
341
|
+
outer: Emit
|
|
342
|
+
): void {
|
|
343
|
+
const late =
|
|
344
|
+
awaitedValue(context, value) || toggles.some((toggle) => awaitedAttribute(context, toggle));
|
|
345
|
+
const emit = late ? awaitedEmit(outer) : outer;
|
|
346
|
+
const reactive =
|
|
347
|
+
(value !== null && valueReactive(context, value)) ||
|
|
348
|
+
toggles.some((toggle) => isDynamic(context, toggle.expression));
|
|
349
|
+
const target = reactive ? emit : { init: [], after: [], update: [], thunks: [], params: [] };
|
|
350
|
+
let given: ES.Expression = value === null ? b.literal(null) : valueOf(context, target, value);
|
|
351
|
+
if (value?.kind === 'expression') given = runtime(context, 'clsx', given);
|
|
352
|
+
const args: ES.Expression[] = [
|
|
353
|
+
element,
|
|
354
|
+
b.literal(namespace === 'html' && !isCustomTag(node.name)),
|
|
355
|
+
given
|
|
356
|
+
];
|
|
357
|
+
const hash = scopeHash(context, node);
|
|
358
|
+
if (toggles.length > 0) {
|
|
359
|
+
const previous = b.id(context.names.unique('classes'));
|
|
360
|
+
emit.init.push({
|
|
361
|
+
type: 'VariableDeclaration',
|
|
362
|
+
kind: 'let',
|
|
363
|
+
declarations: [{ type: 'VariableDeclarator', id: previous, init: null }]
|
|
364
|
+
});
|
|
365
|
+
args.push(b.literal(hash), previous, directivesObject(context, target, toggles));
|
|
366
|
+
const call = {
|
|
367
|
+
type: 'AssignmentExpression',
|
|
368
|
+
operator: '=',
|
|
369
|
+
left: previous,
|
|
370
|
+
right: runtime(context, 'className', ...args)
|
|
371
|
+
} as ES.AssignmentExpression;
|
|
372
|
+
(reactive ? emit.update : emit.init).push(b.statement(call));
|
|
373
|
+
return;
|
|
374
|
+
}
|
|
375
|
+
if (hash !== null) args.push(b.literal(hash));
|
|
376
|
+
(reactive ? emit.update : emit.init).push(b.statement(runtime(context, 'className', ...args)));
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
function styleAttribute(
|
|
380
|
+
context: TemplateContext,
|
|
381
|
+
element: ES.Identifier,
|
|
382
|
+
value: Value | null,
|
|
383
|
+
styles: readonly StyleProperty[],
|
|
384
|
+
outer: Emit
|
|
385
|
+
): void {
|
|
386
|
+
const late =
|
|
387
|
+
awaitedValue(context, value) || styles.some((style) => awaitedAttribute(context, style));
|
|
388
|
+
const emit = late ? awaitedEmit(outer) : outer;
|
|
389
|
+
const reactive =
|
|
390
|
+
(value !== null && valueReactive(context, value)) ||
|
|
391
|
+
styles.some((style) => valueReactive(context, style.value));
|
|
392
|
+
const target = reactive ? emit : { init: [], after: [], update: [], thunks: [], params: [] };
|
|
393
|
+
const given: ES.Expression = value === null ? b.literal(null) : valueOf(context, target, value);
|
|
394
|
+
const args: ES.Expression[] = [element, given];
|
|
395
|
+
if (styles.length > 0) {
|
|
396
|
+
const previous = b.id(context.names.unique('styles'));
|
|
397
|
+
emit.init.push({
|
|
398
|
+
type: 'VariableDeclaration',
|
|
399
|
+
kind: 'let',
|
|
400
|
+
declarations: [{ type: 'VariableDeclarator', id: previous, init: null }]
|
|
401
|
+
});
|
|
402
|
+
args.push(previous, styleDirectives(context, target, styles));
|
|
403
|
+
const call = {
|
|
404
|
+
type: 'AssignmentExpression',
|
|
405
|
+
operator: '=',
|
|
406
|
+
left: previous,
|
|
407
|
+
right: runtime(context, 'style', ...args)
|
|
408
|
+
} as ES.AssignmentExpression;
|
|
409
|
+
(reactive ? emit.update : emit.init).push(b.statement(call));
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
(reactive ? emit.update : emit.init).push(b.statement(runtime(context, 'style', ...args)));
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
export function elementPart(context: TemplateContext, node: Element, parent: Namespace): Part {
|
|
416
|
+
const namespace = context.component.namespaces.get(node) ?? parent;
|
|
417
|
+
const html = namespace === 'html';
|
|
418
|
+
const custom =
|
|
419
|
+
isCustomTag(node.name) ||
|
|
420
|
+
node.attributes.some((attribute) => attribute.kind === 'attribute' && attribute.name === 'is');
|
|
421
|
+
const tag = html && !custom ? node.name.toLowerCase() : node.name;
|
|
422
|
+
const statics: [string, string][] = [];
|
|
423
|
+
const setups: ((element: ES.Identifier, emit: Emit) => void)[] = [];
|
|
424
|
+
if (context.dev)
|
|
425
|
+
setups.push((element, emit) => emit.init.push(...location(context, node, element)));
|
|
426
|
+
const hasSpread = node.attributes.some((attribute) => attribute.kind === 'spread');
|
|
427
|
+
for (const attribute of node.attributes) {
|
|
428
|
+
if (attribute.kind === 'binding') setups.push(binding(context, node, attribute));
|
|
429
|
+
else if (attribute.kind === 'action') {
|
|
430
|
+
setups.push((element, emit) => emit.init.push(actionCall(context, element, attribute)));
|
|
431
|
+
} else if (attribute.kind === 'attachment') {
|
|
432
|
+
setups.push((element, emit) => emit.init.push(attachCall(context, element, attribute)));
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (hasSpread) {
|
|
436
|
+
for (const attribute of node.attributes) {
|
|
437
|
+
if (attribute.kind === 'attribute' && templated(context, node, attribute)) {
|
|
438
|
+
statics.push(['is', staticText(attribute.value)]);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
setups.push((element, emit) => spread(context, node, element, emit));
|
|
442
|
+
} else {
|
|
443
|
+
if (node.name === 'input' || node.name === 'textarea') {
|
|
444
|
+
setups.push((element, emit) => defaults(context, node, element, emit));
|
|
445
|
+
}
|
|
446
|
+
let classValue: Value | null = null;
|
|
447
|
+
let styleValue: Value | null = null;
|
|
448
|
+
let classDynamic = false;
|
|
449
|
+
let styleDynamic = false;
|
|
450
|
+
const toggles: ClassToggle[] = [];
|
|
451
|
+
const styles: StyleProperty[] = [];
|
|
452
|
+
for (const attribute of node.attributes) {
|
|
453
|
+
if (attribute.kind === 'class') {
|
|
454
|
+
toggles.push(attribute);
|
|
455
|
+
continue;
|
|
456
|
+
}
|
|
457
|
+
if (attribute.kind === 'style') {
|
|
458
|
+
styles.push(attribute);
|
|
459
|
+
continue;
|
|
460
|
+
}
|
|
461
|
+
if (
|
|
462
|
+
attribute.kind === 'binding' ||
|
|
463
|
+
attribute.kind === 'action' ||
|
|
464
|
+
attribute.kind === 'attachment' ||
|
|
465
|
+
attribute.kind === 'transition' ||
|
|
466
|
+
attribute.kind === 'animation'
|
|
467
|
+
) {
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
if (attribute.kind !== 'attribute') {
|
|
471
|
+
throw unsupported(attribute, `The ${attribute.kind} directive`);
|
|
472
|
+
}
|
|
473
|
+
if (isEvent(attribute)) {
|
|
474
|
+
setups.push((element, emit) =>
|
|
475
|
+
emit.init.push(event(context, element, attribute, emit.init))
|
|
476
|
+
);
|
|
477
|
+
continue;
|
|
478
|
+
}
|
|
479
|
+
const lower = html ? attribute.name.toLowerCase() : attribute.name;
|
|
480
|
+
if (lower === 'class') {
|
|
481
|
+
classValue = attribute.value;
|
|
482
|
+
classDynamic = !isStatic(attribute.value);
|
|
483
|
+
continue;
|
|
484
|
+
}
|
|
485
|
+
if (lower === 'style') {
|
|
486
|
+
styleValue = attribute.value;
|
|
487
|
+
styleDynamic = !isStatic(attribute.value);
|
|
488
|
+
continue;
|
|
489
|
+
}
|
|
490
|
+
const name = html && !custom ? propertyName(attribute.name) : attribute.name;
|
|
491
|
+
if (
|
|
492
|
+
isStatic(attribute.value) &&
|
|
493
|
+
!unsettable.has(name) &&
|
|
494
|
+
!(html && tag === 'select' && name === 'value') &&
|
|
495
|
+
(!custom || templated(context, node, attribute))
|
|
496
|
+
) {
|
|
497
|
+
statics.push([
|
|
498
|
+
lower,
|
|
499
|
+
attribute.value.kind === 'boolean' ? '' : staticText(attribute.value)
|
|
500
|
+
]);
|
|
501
|
+
continue;
|
|
502
|
+
}
|
|
503
|
+
const reactive = valueReactive(context, attribute.value);
|
|
504
|
+
const late = awaitedValue(context, attribute.value);
|
|
505
|
+
setups.push((element, emit) => {
|
|
506
|
+
const target = late
|
|
507
|
+
? awaitedEmit(emit)
|
|
508
|
+
: reactive
|
|
509
|
+
? emit
|
|
510
|
+
: { init: [], after: [], update: [], thunks: [], params: [] };
|
|
511
|
+
const value = valueOf(context, target, attribute.value);
|
|
512
|
+
const call = custom
|
|
513
|
+
? runtime(context, 'customProp', element, b.literal(attribute.name), value)
|
|
514
|
+
: update(context, node, element, name, value, node.attributes);
|
|
515
|
+
const afterOptions =
|
|
516
|
+
html && tag === 'select' && (name === 'value' || name === 'defaultValue');
|
|
517
|
+
(reactive ? target.update : afterOptions ? emit.after : emit.init).push(b.statement(call));
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
if (toggles.length > 0 || classDynamic) {
|
|
521
|
+
const value = classValue;
|
|
522
|
+
setups.push((element, emit) =>
|
|
523
|
+
classAttribute(context, node, element, value, toggles, namespace, emit)
|
|
524
|
+
);
|
|
525
|
+
} else {
|
|
526
|
+
const hash = scopeHash(context, node);
|
|
527
|
+
const given = classValue === null ? null : staticText(classValue);
|
|
528
|
+
const name = hash === null && classValue?.kind === 'boolean' ? '' : toClass(given, hash);
|
|
529
|
+
if (name !== null) statics.push(['class', name]);
|
|
530
|
+
}
|
|
531
|
+
if (styles.length > 0 || styleDynamic) {
|
|
532
|
+
const value = styleValue;
|
|
533
|
+
setups.push((element, emit) => styleAttribute(context, element, value, styles, emit));
|
|
534
|
+
} else if (styleValue !== null) {
|
|
535
|
+
statics.push(['style', styleValue.kind === 'boolean' ? '' : staticText(styleValue)]);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
const childNamespace = node.name === 'foreignObject' ? 'html' : namespace;
|
|
539
|
+
const body = cleaned(context, node.body);
|
|
540
|
+
const [only] = body;
|
|
541
|
+
const rich = html && richSelect(node);
|
|
542
|
+
const controlled =
|
|
543
|
+
!rich && body.length === 1 && only?.kind === 'raw-html' && awaiting(context, body).length === 0;
|
|
544
|
+
const constantText =
|
|
545
|
+
body.length === 1 &&
|
|
546
|
+
only?.kind === 'expression' &&
|
|
547
|
+
node.name !== 'textarea' &&
|
|
548
|
+
!isDynamic(context, only.expression) &&
|
|
549
|
+
awaiting(context, body).length === 0;
|
|
550
|
+
if (controlled) {
|
|
551
|
+
setups.push((element, emit) =>
|
|
552
|
+
emit.init.push(htmlCall(context, only, element, HTML_CONTROLLED))
|
|
553
|
+
);
|
|
554
|
+
}
|
|
555
|
+
if (constantText) {
|
|
556
|
+
const value = b.logical('??', rewrite(context, only.expression), b.literal(''));
|
|
557
|
+
setups.push((element, emit) =>
|
|
558
|
+
emit.init.push(
|
|
559
|
+
b.statement({
|
|
560
|
+
type: 'AssignmentExpression',
|
|
561
|
+
operator: '=',
|
|
562
|
+
left: b.member(element, 'textContent'),
|
|
563
|
+
right: value
|
|
564
|
+
})
|
|
565
|
+
)
|
|
566
|
+
);
|
|
567
|
+
}
|
|
568
|
+
const childContext = hasContentBinding(node) ? { ...context, boundContent: true } : context;
|
|
569
|
+
const children =
|
|
570
|
+
controlled || constantText || rich ? [] : parts(childContext, body, childNamespace);
|
|
571
|
+
if (rich) {
|
|
572
|
+
setups.push((element, emit) => {
|
|
573
|
+
const anchor = b.id(context.names.unique('anchor'));
|
|
574
|
+
const content = render(childContext, body, anchor, childNamespace, false);
|
|
575
|
+
emit.init.push(
|
|
576
|
+
b.statement(
|
|
577
|
+
runtime(
|
|
578
|
+
context,
|
|
579
|
+
'richSelect',
|
|
580
|
+
element,
|
|
581
|
+
b.arrow([anchor], content),
|
|
582
|
+
...policyArgument(context)
|
|
583
|
+
)
|
|
584
|
+
)
|
|
585
|
+
);
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
for (const attribute of node.attributes) {
|
|
589
|
+
if (attribute.kind === 'transition') {
|
|
590
|
+
setups.push((element, emit) => emit.init.push(transitionCall(context, element, attribute)));
|
|
591
|
+
} else if (attribute.kind === 'animation') {
|
|
592
|
+
setups.push((element, emit) => emit.init.push(animationCall(context, element, attribute)));
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
if (
|
|
596
|
+
html &&
|
|
597
|
+
tag === 'select' &&
|
|
598
|
+
!hasSpread &&
|
|
599
|
+
!node.attributes.some(
|
|
600
|
+
(attribute) => attribute.kind === 'binding' && attribute.name === 'value'
|
|
601
|
+
) &&
|
|
602
|
+
node.attributes.some(
|
|
603
|
+
(attribute) =>
|
|
604
|
+
attribute.kind === 'attribute' &&
|
|
605
|
+
['value', 'defaultValue'].includes(propertyName(attribute.name))
|
|
606
|
+
)
|
|
607
|
+
) {
|
|
608
|
+
setups.push((element, emit) =>
|
|
609
|
+
emit.after.push(b.statement(runtime(context, 'initSelect', element)))
|
|
610
|
+
);
|
|
611
|
+
}
|
|
612
|
+
return {
|
|
613
|
+
markup: {
|
|
614
|
+
kind: elementKind(tag),
|
|
615
|
+
name: tag,
|
|
616
|
+
namespace,
|
|
617
|
+
attributes: statics,
|
|
618
|
+
children: rich ? [anchorComment] : children.map((child) => child.markup)
|
|
619
|
+
},
|
|
620
|
+
hint: node.name,
|
|
621
|
+
text: false,
|
|
622
|
+
referenced: setups.length > 0,
|
|
623
|
+
children,
|
|
624
|
+
setup:
|
|
625
|
+
setups.length > 0
|
|
626
|
+
? (element, emit) => {
|
|
627
|
+
for (const setup of setups) setup(element, emit);
|
|
628
|
+
}
|
|
629
|
+
: null
|
|
630
|
+
};
|
|
631
|
+
}
|