@vue/runtime-dom
Advanced tools
+75
-46
| /** | ||
| * @vue/runtime-dom v3.6.0-rc.5 | ||
| * @vue/runtime-dom v3.6.0-rc.6 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -16,3 +16,3 @@ * @license MIT | ||
| if (tt) try { | ||
| policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val }); | ||
| policy = /*@__PURE__*/ tt.createPolicy("vue", { createHTML: (val) => val }); | ||
| } catch (e) { | ||
@@ -25,3 +25,3 @@ (0, _vue_runtime_core.warn)(`Error creating trusted types policy: ${e}`); | ||
| const doc = typeof document !== "undefined" ? document : null; | ||
| const templateContainer = doc && /* @__PURE__ */ doc.createElement("template"); | ||
| const templateContainer = doc && /*@__PURE__*/ doc.createElement("template"); | ||
| const nodeOps = { | ||
@@ -100,3 +100,3 @@ insert: (child, parent, anchor) => { | ||
| }; | ||
| const TransitionPropsValidators = /* @__PURE__ */ (0, _vue_shared.extend)({}, _vue_runtime_core.BaseTransitionPropsValidators, DOMTransitionPropsValidators); | ||
| const TransitionPropsValidators = /*@__PURE__*/ (0, _vue_shared.extend)({}, _vue_runtime_core.BaseTransitionPropsValidators, DOMTransitionPropsValidators); | ||
| /** | ||
@@ -115,3 +115,3 @@ * Wrap logic that attaches extra properties to Transition in a function | ||
| */ | ||
| const Transition = /* @__PURE__ */ decorate$1((props, { slots }) => (0, _vue_runtime_core.h)(_vue_runtime_core.BaseTransition, resolveTransitionProps(props), slots)); | ||
| const Transition = /*@__PURE__*/ decorate$1((props, { slots }) => (0, _vue_runtime_core.h)(_vue_runtime_core.BaseTransition, resolveTransitionProps(props), slots)); | ||
| /** | ||
@@ -338,10 +338,11 @@ * #3227 Incoming hooks may be merged into arrays when wrapping Transition | ||
| if (!value === !oldValue) return; | ||
| if (transition) if (value) { | ||
| transition.beforeEnter(el); | ||
| setDisplay(el, true); | ||
| transition.enter(el); | ||
| } else transition.leave(el, () => { | ||
| setDisplay(el, false); | ||
| }); | ||
| else setDisplay(el, value); | ||
| if (transition) { | ||
| if (value) { | ||
| transition.beforeEnter(el); | ||
| setDisplay(el, true); | ||
| transition.enter(el); | ||
| } else transition.leave(el, () => { | ||
| setDisplay(el, false); | ||
| }); | ||
| } else setDisplay(el, value); | ||
| }, | ||
@@ -377,7 +378,9 @@ beforeUnmount(el, { value }) { | ||
| if (next && !isCssString) { | ||
| if (prev) if (!(0, _vue_shared.isString)(prev)) { | ||
| for (const key in prev) if (next[key] == null) setStyle(style, key, ""); | ||
| } else for (const prevStyle of prev.split(";")) { | ||
| const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); | ||
| if (next[key] == null) setStyle(style, key, ""); | ||
| if (prev) { | ||
| if (!(0, _vue_shared.isString)(prev)) { | ||
| for (const key in prev) if (next[key] == null) setStyle(style, key, ""); | ||
| } else for (const prevStyle of prev.split(";")) { | ||
| const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); | ||
| if (next[key] == null) setStyle(style, key, ""); | ||
| } | ||
| } | ||
@@ -411,4 +414,6 @@ for (const key in next) { | ||
| if (semicolonRE.test(val)) (0, _vue_runtime_core.warn)(`Unexpected semicolon at the end of '${name}' style value: '${val}'`); | ||
| if (name.startsWith("--")) style.setProperty(name, val); | ||
| else { | ||
| if (name.startsWith("--")) { | ||
| if (importantRE.test(val)) style.setProperty(name, val.replace(importantRE, ""), "important"); | ||
| else style.setProperty(name, val); | ||
| } else { | ||
| const prefixed = autoPrefix(style, name); | ||
@@ -450,5 +455,6 @@ if (importantRE.test(val)) style.setProperty((0, _vue_shared.hyphenate)(prefixed), val.replace(importantRE, ""), "important"); | ||
| function patchAttr(el, key, value, isSVG, instance, isBoolean = (0, _vue_shared.isSpecialBooleanAttr)(key)) { | ||
| if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); | ||
| else el.setAttributeNS(xlinkNS, key, value); | ||
| else if (value == null || isBoolean && !(0, _vue_shared.includeBooleanAttr)(value)) el.removeAttribute(key); | ||
| if (isSVG && key.startsWith("xlink:")) { | ||
| if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); | ||
| else el.setAttributeNS(xlinkNS, key, value); | ||
| } else if (value == null || isBoolean && !(0, _vue_shared.includeBooleanAttr)(value)) el.removeAttribute(key); | ||
| else el.setAttribute(key, isBoolean ? "" : (0, _vue_shared.isSymbol)(value) ? String(value) : value); | ||
@@ -526,3 +532,3 @@ } | ||
| let cachedNow = 0; | ||
| const p = /* @__PURE__ */ Promise.resolve(); | ||
| const p = /*@__PURE__*/ Promise.resolve(); | ||
| const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now()); | ||
@@ -595,3 +601,3 @@ function createInvoker(initialValue, instance) { | ||
| const REMOVAL = {}; | ||
| /* @__NO_SIDE_EFFECTS__ */ | ||
| /*@__NO_SIDE_EFFECTS__*/ | ||
| function defineCustomElement(options, extraOptions, _createApp) { | ||
@@ -645,8 +651,10 @@ let Comp = (0, _vue_runtime_core.defineComponent)(options, extraOptions); | ||
| } | ||
| if (!this._instance) if (this._resolved) this._mountComponent(this._def); | ||
| else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => { | ||
| this._pendingResolve = void 0; | ||
| if (this.isConnected) return this._resolveDef(); | ||
| }); | ||
| else this._resolveDef(); | ||
| if (!this._instance) { | ||
| if (this._resolved) this._mountComponent(this._def); | ||
| else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => { | ||
| this._pendingResolve = void 0; | ||
| if (this.isConnected) return this._resolveDef(); | ||
| }); | ||
| else this._resolveDef(); | ||
| } | ||
| } | ||
@@ -1049,3 +1057,3 @@ disconnectedCallback() { | ||
| name: "TransitionGroup", | ||
| props: /* @__PURE__ */ (0, _vue_shared.extend)({}, TransitionPropsValidators, { | ||
| props: /*@__PURE__*/ (0, _vue_shared.extend)({}, TransitionPropsValidators, { | ||
| tag: String, | ||
@@ -1331,9 +1339,24 @@ moveClass: String | ||
| const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? (0, _vue_shared.looseToNumber)(getValue(o)) : getValue(o)); | ||
| (set || el[assignKey])(el.multiple ? (0, _vue_shared.isSet)(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]); | ||
| el._assigning = true; | ||
| (0, _vue_runtime_core.nextTick)(() => { | ||
| el._assigning = false; | ||
| }); | ||
| const multiple = el.multiple; | ||
| const assignedValue = multiple ? (0, _vue_shared.isSet)(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]; | ||
| const pending = el._pendingValue = [multiple, multiple ? (0, _vue_shared.isArray)(assignedValue) ? selectedVal.slice() : selectedVal : assignedValue]; | ||
| try { | ||
| (set || el[assignKey])(assignedValue); | ||
| } finally { | ||
| (0, _vue_runtime_core.nextTick)(() => { | ||
| if (el._pendingValue === pending) el._pendingValue = void 0; | ||
| }); | ||
| } | ||
| }); | ||
| }; | ||
| function isSameSelectValue(value, assignedValue, multiple) { | ||
| if (!multiple) return (0, _vue_shared.looseEqual)(value, assignedValue); | ||
| if ((0, _vue_shared.isArray)(value)) return (0, _vue_shared.looseEqual)(value, assignedValue); | ||
| if ((0, _vue_shared.isSet)(value)) { | ||
| if (value.size !== assignedValue.length) return false; | ||
| for (const item of assignedValue) if (!value.has(item)) return false; | ||
| return true; | ||
| } | ||
| return false; | ||
| } | ||
| /** | ||
@@ -1344,3 +1367,8 @@ * @internal | ||
| el._modelValue = value; | ||
| if (el._assigning) return; | ||
| const pending = el._pendingValue; | ||
| el._pendingValue = void 0; | ||
| if (pending && pending[0] === el.multiple && isSameSelectValue(value, pending[1], pending[0])) return; | ||
| setSelected(el, value); | ||
| }; | ||
| function setSelected(el, value) { | ||
| const isMultiple = el.multiple; | ||
@@ -1355,8 +1383,9 @@ const isArrayValue = (0, _vue_shared.isArray)(value); | ||
| const optionValue = getValue(option); | ||
| if (isMultiple) if (isArrayValue) { | ||
| const optionType = typeof optionValue; | ||
| if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue)); | ||
| else option.selected = (0, _vue_shared.looseIndexOf)(value, optionValue) > -1; | ||
| } else option.selected = value.has(optionValue); | ||
| else if ((0, _vue_shared.looseEqual)(getValue(option), value)) { | ||
| if (isMultiple) { | ||
| if (isArrayValue) { | ||
| const optionType = typeof optionValue; | ||
| if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue)); | ||
| else option.selected = (0, _vue_shared.looseIndexOf)(value, optionValue) > -1; | ||
| } else option.selected = value.has(optionValue); | ||
| } else if ((0, _vue_shared.looseEqual)(getValue(option), value)) { | ||
| if (el.selectedIndex !== i) el.selectedIndex = i; | ||
@@ -1367,3 +1396,3 @@ return; | ||
| if (!isMultiple && el.selectedIndex !== -1) el.selectedIndex = -1; | ||
| }; | ||
| } | ||
| /** | ||
@@ -1488,3 +1517,3 @@ * @internal retrieve raw value set via :value bindings | ||
| //#region packages/runtime-dom/src/index.ts | ||
| const rendererOptions = /* @__PURE__ */ (0, _vue_shared.extend)({ patchProp }, nodeOps); | ||
| const rendererOptions = /*@__PURE__*/ (0, _vue_shared.extend)({ patchProp }, nodeOps); | ||
| let renderer; | ||
@@ -1491,0 +1520,0 @@ let enabledHydration = false; |
| /** | ||
| * @vue/runtime-dom v3.6.0-rc.5 | ||
| * @vue/runtime-dom v3.6.0-rc.6 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -16,3 +16,3 @@ * @license MIT | ||
| if (tt) try { | ||
| policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val }); | ||
| policy = /*@__PURE__*/ tt.createPolicy("vue", { createHTML: (val) => val }); | ||
| } catch (e) {} | ||
@@ -23,3 +23,3 @@ const unsafeToTrustedHTML = policy ? (val) => policy.createHTML(val) : (val) => val; | ||
| const doc = typeof document !== "undefined" ? document : null; | ||
| const templateContainer = doc && /* @__PURE__ */ doc.createElement("template"); | ||
| const templateContainer = doc && /*@__PURE__*/ doc.createElement("template"); | ||
| const nodeOps = { | ||
@@ -98,3 +98,3 @@ insert: (child, parent, anchor) => { | ||
| }; | ||
| const TransitionPropsValidators = /* @__PURE__ */ (0, _vue_shared.extend)({}, _vue_runtime_core.BaseTransitionPropsValidators, DOMTransitionPropsValidators); | ||
| const TransitionPropsValidators = /*@__PURE__*/ (0, _vue_shared.extend)({}, _vue_runtime_core.BaseTransitionPropsValidators, DOMTransitionPropsValidators); | ||
| /** | ||
@@ -113,3 +113,3 @@ * Wrap logic that attaches extra properties to Transition in a function | ||
| */ | ||
| const Transition = /* @__PURE__ */ decorate$1((props, { slots }) => (0, _vue_runtime_core.h)(_vue_runtime_core.BaseTransition, resolveTransitionProps(props), slots)); | ||
| const Transition = /*@__PURE__*/ decorate$1((props, { slots }) => (0, _vue_runtime_core.h)(_vue_runtime_core.BaseTransition, resolveTransitionProps(props), slots)); | ||
| /** | ||
@@ -334,10 +334,11 @@ * #3227 Incoming hooks may be merged into arrays when wrapping Transition | ||
| if (!value === !oldValue) return; | ||
| if (transition) if (value) { | ||
| transition.beforeEnter(el); | ||
| setDisplay(el, true); | ||
| transition.enter(el); | ||
| } else transition.leave(el, () => { | ||
| setDisplay(el, false); | ||
| }); | ||
| else setDisplay(el, value); | ||
| if (transition) { | ||
| if (value) { | ||
| transition.beforeEnter(el); | ||
| setDisplay(el, true); | ||
| transition.enter(el); | ||
| } else transition.leave(el, () => { | ||
| setDisplay(el, false); | ||
| }); | ||
| } else setDisplay(el, value); | ||
| }, | ||
@@ -373,7 +374,9 @@ beforeUnmount(el, { value }) { | ||
| if (next && !isCssString) { | ||
| if (prev) if (!(0, _vue_shared.isString)(prev)) { | ||
| for (const key in prev) if (next[key] == null) setStyle(style, key, ""); | ||
| } else for (const prevStyle of prev.split(";")) { | ||
| const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); | ||
| if (next[key] == null) setStyle(style, key, ""); | ||
| if (prev) { | ||
| if (!(0, _vue_shared.isString)(prev)) { | ||
| for (const key in prev) if (next[key] == null) setStyle(style, key, ""); | ||
| } else for (const prevStyle of prev.split(";")) { | ||
| const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); | ||
| if (next[key] == null) setStyle(style, key, ""); | ||
| } | ||
| } | ||
@@ -405,4 +408,6 @@ for (const key in next) { | ||
| const val = rawVal == null ? "" : String(rawVal); | ||
| if (name.startsWith("--")) style.setProperty(name, val); | ||
| else { | ||
| if (name.startsWith("--")) { | ||
| if (importantRE.test(val)) style.setProperty(name, val.replace(importantRE, ""), "important"); | ||
| else style.setProperty(name, val); | ||
| } else { | ||
| const prefixed = autoPrefix(style, name); | ||
@@ -444,5 +449,6 @@ if (importantRE.test(val)) style.setProperty((0, _vue_shared.hyphenate)(prefixed), val.replace(importantRE, ""), "important"); | ||
| function patchAttr(el, key, value, isSVG, instance, isBoolean = (0, _vue_shared.isSpecialBooleanAttr)(key)) { | ||
| if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); | ||
| else el.setAttributeNS(xlinkNS, key, value); | ||
| else if (value == null || isBoolean && !(0, _vue_shared.includeBooleanAttr)(value)) el.removeAttribute(key); | ||
| if (isSVG && key.startsWith("xlink:")) { | ||
| if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); | ||
| else el.setAttributeNS(xlinkNS, key, value); | ||
| } else if (value == null || isBoolean && !(0, _vue_shared.includeBooleanAttr)(value)) el.removeAttribute(key); | ||
| else el.setAttribute(key, isBoolean ? "" : (0, _vue_shared.isSymbol)(value) ? String(value) : value); | ||
@@ -518,3 +524,3 @@ } | ||
| let cachedNow = 0; | ||
| const p = /* @__PURE__ */ Promise.resolve(); | ||
| const p = /*@__PURE__*/ Promise.resolve(); | ||
| const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now()); | ||
@@ -582,3 +588,3 @@ function createInvoker(initialValue, instance) { | ||
| const REMOVAL = {}; | ||
| /* @__NO_SIDE_EFFECTS__ */ | ||
| /*@__NO_SIDE_EFFECTS__*/ | ||
| function defineCustomElement(options, extraOptions, _createApp) { | ||
@@ -632,8 +638,10 @@ let Comp = (0, _vue_runtime_core.defineComponent)(options, extraOptions); | ||
| } | ||
| if (!this._instance) if (this._resolved) this._mountComponent(this._def); | ||
| else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => { | ||
| this._pendingResolve = void 0; | ||
| if (this.isConnected) return this._resolveDef(); | ||
| }); | ||
| else this._resolveDef(); | ||
| if (!this._instance) { | ||
| if (this._resolved) this._mountComponent(this._def); | ||
| else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => { | ||
| this._pendingResolve = void 0; | ||
| if (this.isConnected) return this._resolveDef(); | ||
| }); | ||
| else this._resolveDef(); | ||
| } | ||
| } | ||
@@ -990,3 +998,3 @@ disconnectedCallback() { | ||
| name: "TransitionGroup", | ||
| props: /* @__PURE__ */ (0, _vue_shared.extend)({}, TransitionPropsValidators, { | ||
| props: /*@__PURE__*/ (0, _vue_shared.extend)({}, TransitionPropsValidators, { | ||
| tag: String, | ||
@@ -1271,9 +1279,24 @@ moveClass: String | ||
| const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? (0, _vue_shared.looseToNumber)(getValue(o)) : getValue(o)); | ||
| (set || el[assignKey])(el.multiple ? (0, _vue_shared.isSet)(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]); | ||
| el._assigning = true; | ||
| (0, _vue_runtime_core.nextTick)(() => { | ||
| el._assigning = false; | ||
| }); | ||
| const multiple = el.multiple; | ||
| const assignedValue = multiple ? (0, _vue_shared.isSet)(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]; | ||
| const pending = el._pendingValue = [multiple, multiple ? (0, _vue_shared.isArray)(assignedValue) ? selectedVal.slice() : selectedVal : assignedValue]; | ||
| try { | ||
| (set || el[assignKey])(assignedValue); | ||
| } finally { | ||
| (0, _vue_runtime_core.nextTick)(() => { | ||
| if (el._pendingValue === pending) el._pendingValue = void 0; | ||
| }); | ||
| } | ||
| }); | ||
| }; | ||
| function isSameSelectValue(value, assignedValue, multiple) { | ||
| if (!multiple) return (0, _vue_shared.looseEqual)(value, assignedValue); | ||
| if ((0, _vue_shared.isArray)(value)) return (0, _vue_shared.looseEqual)(value, assignedValue); | ||
| if ((0, _vue_shared.isSet)(value)) { | ||
| if (value.size !== assignedValue.length) return false; | ||
| for (const item of assignedValue) if (!value.has(item)) return false; | ||
| return true; | ||
| } | ||
| return false; | ||
| } | ||
| /** | ||
@@ -1284,3 +1307,8 @@ * @internal | ||
| el._modelValue = value; | ||
| if (el._assigning) return; | ||
| const pending = el._pendingValue; | ||
| el._pendingValue = void 0; | ||
| if (pending && pending[0] === el.multiple && isSameSelectValue(value, pending[1], pending[0])) return; | ||
| setSelected(el, value); | ||
| }; | ||
| function setSelected(el, value) { | ||
| const isMultiple = el.multiple; | ||
@@ -1292,8 +1320,9 @@ const isArrayValue = (0, _vue_shared.isArray)(value); | ||
| const optionValue = getValue(option); | ||
| if (isMultiple) if (isArrayValue) { | ||
| const optionType = typeof optionValue; | ||
| if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue)); | ||
| else option.selected = (0, _vue_shared.looseIndexOf)(value, optionValue) > -1; | ||
| } else option.selected = value.has(optionValue); | ||
| else if ((0, _vue_shared.looseEqual)(getValue(option), value)) { | ||
| if (isMultiple) { | ||
| if (isArrayValue) { | ||
| const optionType = typeof optionValue; | ||
| if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue)); | ||
| else option.selected = (0, _vue_shared.looseIndexOf)(value, optionValue) > -1; | ||
| } else option.selected = value.has(optionValue); | ||
| } else if ((0, _vue_shared.looseEqual)(getValue(option), value)) { | ||
| if (el.selectedIndex !== i) el.selectedIndex = i; | ||
@@ -1304,3 +1333,3 @@ return; | ||
| if (!isMultiple && el.selectedIndex !== -1) el.selectedIndex = -1; | ||
| }; | ||
| } | ||
| /** | ||
@@ -1425,3 +1454,3 @@ * @internal retrieve raw value set via :value bindings | ||
| //#region packages/runtime-dom/src/index.ts | ||
| const rendererOptions = /* @__PURE__ */ (0, _vue_shared.extend)({ patchProp }, nodeOps); | ||
| const rendererOptions = /*@__PURE__*/ (0, _vue_shared.extend)({ patchProp }, nodeOps); | ||
| let renderer; | ||
@@ -1428,0 +1457,0 @@ let enabledHydration = false; |
+147
-148
| import { App, BaseTransitionProps, Component, ComponentCustomElementInterface, ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentProvideOptions, ComponentPublicInstance, ComputedOptions, ConcreteComponent, CreateAppFunction, CreateComponentPublicInstanceWithMixins, DefineComponent, Directive, EmitsOptions, EmitsToProps, ExtractPropTypes, FunctionalComponent, MethodOptions, ObjectDirective, RenderFunction, RendererOptions, RootHydrateFunction, RootRenderFunction, SetupContext, SlotsType, VNodeRef } from "@vue/runtime-core"; | ||
| import * as CSS from "csstype"; | ||
| export * from "@vue/runtime-core"; | ||
| //#region temp/packages/runtime-dom/src/nodeOps.d.ts | ||
@@ -35,5 +34,5 @@ export declare const nodeOps: Omit<RendererOptions<Node, Element>, "patchProp">; | ||
| /** | ||
| * DOM Transition is a higher-order-component based on the platform-agnostic | ||
| * base Transition component, with DOM-specific logic. | ||
| */ | ||
| * DOM Transition is a higher-order-component based on the platform-agnostic | ||
| * base Transition component, with DOM-specific logic. | ||
| */ | ||
| export declare const Transition: FunctionalComponent<TransitionProps>; | ||
@@ -70,4 +69,4 @@ //#endregion | ||
| /** | ||
| * @private | ||
| */ | ||
| * @private | ||
| */ | ||
| export declare const withModifiers: <T extends (event: Event, ...args: unknown[]) => any>(fn: T & { | ||
@@ -80,4 +79,4 @@ _withMods?: { | ||
| /** | ||
| * @private | ||
| */ | ||
| * @private | ||
| */ | ||
| export declare const withKeys: <T extends (event: KeyboardEvent) => any>(fn: T & { | ||
@@ -97,3 +96,3 @@ _withKeys?: { | ||
| [initialValueKey]?: string; | ||
| _assigning?: boolean; | ||
| _pendingValue?: [multiple: boolean, value: any]; | ||
| }, any, Modifiers>; | ||
@@ -110,9 +109,9 @@ export declare const vModelText: ModelDirective<HTMLInputElement | HTMLTextAreaElement, "trim" | "number" | "lazy">; | ||
| /** | ||
| * The index signature was removed to enable closed typing for style | ||
| * using CSSType. You're able to use type assertion or module augmentation | ||
| * to add properties or an index signature of your own. | ||
| * | ||
| * For examples and more information, visit: | ||
| * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors | ||
| */ | ||
| * The index signature was removed to enable closed typing for style | ||
| * using CSSType. You're able to use type assertion or module augmentation | ||
| * to add properties or an index signature of your own. | ||
| * | ||
| * For examples and more information, visit: | ||
| * https://github.com/frenic/csstype#what-should-i-do-when-i-get-type-errors | ||
| */ | ||
| [v: `--${string}`]: string | number | undefined; | ||
@@ -128,5 +127,5 @@ } | ||
| /** | ||
| * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be | ||
| * presented if they are made. | ||
| */ | ||
| * Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be | ||
| * presented if they are made. | ||
| */ | ||
| "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined; | ||
@@ -136,25 +135,25 @@ /** Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. */ | ||
| /** | ||
| * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. | ||
| * @see aria-pressed @see aria-selected. | ||
| */ | ||
| * Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. | ||
| * @see aria-pressed @see aria-selected. | ||
| */ | ||
| "aria-checked"?: Booleanish | "mixed" | undefined; | ||
| /** | ||
| * Defines the total number of columns in a table, grid, or treegrid. | ||
| * @see aria-colindex. | ||
| */ | ||
| * Defines the total number of columns in a table, grid, or treegrid. | ||
| * @see aria-colindex. | ||
| */ | ||
| "aria-colcount"?: Numberish | undefined; | ||
| /** | ||
| * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. | ||
| * @see aria-colcount @see aria-colspan. | ||
| */ | ||
| * Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. | ||
| * @see aria-colcount @see aria-colspan. | ||
| */ | ||
| "aria-colindex"?: Numberish | undefined; | ||
| /** | ||
| * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. | ||
| * @see aria-colindex @see aria-rowspan. | ||
| */ | ||
| * Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. | ||
| * @see aria-colindex @see aria-rowspan. | ||
| */ | ||
| "aria-colspan"?: Numberish | undefined; | ||
| /** | ||
| * Identifies the element (or elements) whose contents or presence are controlled by the current element. | ||
| * @see aria-owns. | ||
| */ | ||
| * Identifies the element (or elements) whose contents or presence are controlled by the current element. | ||
| * @see aria-owns. | ||
| */ | ||
| "aria-controls"?: string | undefined; | ||
@@ -164,25 +163,25 @@ /** Indicates the element that represents the current item within a container or set of related elements. */ | ||
| /** | ||
| * Identifies the element (or elements) that describes the object. | ||
| * @see aria-labelledby | ||
| */ | ||
| * Identifies the element (or elements) that describes the object. | ||
| * @see aria-labelledby | ||
| */ | ||
| "aria-describedby"?: string | undefined; | ||
| /** | ||
| * Identifies the element that provides a detailed, extended description for the object. | ||
| * @see aria-describedby. | ||
| */ | ||
| * Identifies the element that provides a detailed, extended description for the object. | ||
| * @see aria-describedby. | ||
| */ | ||
| "aria-details"?: string | undefined; | ||
| /** | ||
| * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. | ||
| * @see aria-hidden @see aria-readonly. | ||
| */ | ||
| * Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. | ||
| * @see aria-hidden @see aria-readonly. | ||
| */ | ||
| "aria-disabled"?: Booleanish | undefined; | ||
| /** | ||
| * Indicates what functions can be performed when a dragged object is released on the drop target. | ||
| * @deprecated in ARIA 1.1 | ||
| */ | ||
| * Indicates what functions can be performed when a dragged object is released on the drop target. | ||
| * @deprecated in ARIA 1.1 | ||
| */ | ||
| "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined; | ||
| /** | ||
| * Identifies the element that provides an error message for the object. | ||
| * @see aria-invalid @see aria-describedby. | ||
| */ | ||
| * Identifies the element that provides an error message for the object. | ||
| * @see aria-invalid @see aria-describedby. | ||
| */ | ||
| "aria-errormessage"?: string | undefined; | ||
@@ -192,10 +191,10 @@ /** Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. */ | ||
| /** | ||
| * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, | ||
| * allows assistive technology to override the general default of reading in document source order. | ||
| */ | ||
| * Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, | ||
| * allows assistive technology to override the general default of reading in document source order. | ||
| */ | ||
| "aria-flowto"?: string | undefined; | ||
| /** | ||
| * Indicates an element's "grabbed" state in a drag-and-drop operation. | ||
| * @deprecated in ARIA 1.1 | ||
| */ | ||
| * Indicates an element's "grabbed" state in a drag-and-drop operation. | ||
| * @deprecated in ARIA 1.1 | ||
| */ | ||
| "aria-grabbed"?: Booleanish | undefined; | ||
@@ -205,10 +204,10 @@ /** Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. */ | ||
| /** | ||
| * Indicates whether the element is exposed to an accessibility API. | ||
| * @see aria-disabled. | ||
| */ | ||
| * Indicates whether the element is exposed to an accessibility API. | ||
| * @see aria-disabled. | ||
| */ | ||
| "aria-hidden"?: Booleanish | undefined; | ||
| /** | ||
| * Indicates the entered value does not conform to the format expected by the application. | ||
| * @see aria-errormessage. | ||
| */ | ||
| * Indicates the entered value does not conform to the format expected by the application. | ||
| * @see aria-errormessage. | ||
| */ | ||
| "aria-invalid"?: Booleanish | "grammar" | "spelling" | undefined; | ||
@@ -218,10 +217,10 @@ /** Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. */ | ||
| /** | ||
| * Defines a string value that labels the current element. | ||
| * @see aria-labelledby. | ||
| */ | ||
| * Defines a string value that labels the current element. | ||
| * @see aria-labelledby. | ||
| */ | ||
| "aria-label"?: string | undefined; | ||
| /** | ||
| * Identifies the element (or elements) that labels the current element. | ||
| * @see aria-describedby. | ||
| */ | ||
| * Identifies the element (or elements) that labels the current element. | ||
| * @see aria-describedby. | ||
| */ | ||
| "aria-labelledby"?: string | undefined; | ||
@@ -241,31 +240,31 @@ /** Defines the hierarchical level of an element within a structure. */ | ||
| /** | ||
| * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship | ||
| * between DOM elements where the DOM hierarchy cannot be used to represent the relationship. | ||
| * @see aria-controls. | ||
| */ | ||
| * Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship | ||
| * between DOM elements where the DOM hierarchy cannot be used to represent the relationship. | ||
| * @see aria-controls. | ||
| */ | ||
| "aria-owns"?: string | undefined; | ||
| /** | ||
| * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. | ||
| * A hint could be a sample value or a brief description of the expected format. | ||
| */ | ||
| * Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. | ||
| * A hint could be a sample value or a brief description of the expected format. | ||
| */ | ||
| "aria-placeholder"?: string | undefined; | ||
| /** | ||
| * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. | ||
| * @see aria-setsize. | ||
| */ | ||
| * Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. | ||
| * @see aria-setsize. | ||
| */ | ||
| "aria-posinset"?: Numberish | undefined; | ||
| /** | ||
| * Indicates the current "pressed" state of toggle buttons. | ||
| * @see aria-checked @see aria-selected. | ||
| */ | ||
| * Indicates the current "pressed" state of toggle buttons. | ||
| * @see aria-checked @see aria-selected. | ||
| */ | ||
| "aria-pressed"?: Booleanish | "mixed" | undefined; | ||
| /** | ||
| * Indicates that the element is not editable, but is otherwise operable. | ||
| * @see aria-disabled. | ||
| */ | ||
| * Indicates that the element is not editable, but is otherwise operable. | ||
| * @see aria-disabled. | ||
| */ | ||
| "aria-readonly"?: Booleanish | undefined; | ||
| /** | ||
| * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. | ||
| * @see aria-atomic. | ||
| */ | ||
| * Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. | ||
| * @see aria-atomic. | ||
| */ | ||
| "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined; | ||
@@ -277,25 +276,25 @@ /** Indicates that user input is required on the element before a form may be submitted. */ | ||
| /** | ||
| * Defines the total number of rows in a table, grid, or treegrid. | ||
| * @see aria-rowindex. | ||
| */ | ||
| * Defines the total number of rows in a table, grid, or treegrid. | ||
| * @see aria-rowindex. | ||
| */ | ||
| "aria-rowcount"?: Numberish | undefined; | ||
| /** | ||
| * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. | ||
| * @see aria-rowcount @see aria-rowspan. | ||
| */ | ||
| * Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. | ||
| * @see aria-rowcount @see aria-rowspan. | ||
| */ | ||
| "aria-rowindex"?: Numberish | undefined; | ||
| /** | ||
| * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. | ||
| * @see aria-rowindex @see aria-colspan. | ||
| */ | ||
| * Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. | ||
| * @see aria-rowindex @see aria-colspan. | ||
| */ | ||
| "aria-rowspan"?: Numberish | undefined; | ||
| /** | ||
| * Indicates the current "selected" state of various widgets. | ||
| * @see aria-checked @see aria-pressed. | ||
| */ | ||
| * Indicates the current "selected" state of various widgets. | ||
| * @see aria-checked @see aria-pressed. | ||
| */ | ||
| "aria-selected"?: Booleanish | undefined; | ||
| /** | ||
| * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. | ||
| * @see aria-posinset. | ||
| */ | ||
| * Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. | ||
| * @see aria-posinset. | ||
| */ | ||
| "aria-setsize"?: Numberish | undefined; | ||
@@ -309,5 +308,5 @@ /** Indicates if items in a table or grid are sorted in ascending or descending order. */ | ||
| /** | ||
| * Defines the current value for a range widget. | ||
| * @see aria-valuetext. | ||
| */ | ||
| * Defines the current value for a range widget. | ||
| * @see aria-valuetext. | ||
| */ | ||
| "aria-valuenow"?: Numberish | undefined; | ||
@@ -330,4 +329,4 @@ /** Defines the human readable text alternative of aria-valuenow for a range widget. */ | ||
| /** | ||
| * @deprecated Use `enterkeyhint` instead. | ||
| */ | ||
| * @deprecated Use `enterkeyhint` instead. | ||
| */ | ||
| enterKeyHint?: HTMLAttributes["enterkeyhint"]; | ||
@@ -366,18 +365,18 @@ hidden?: Booleanish | "" | "hidden" | "until-found" | undefined; | ||
| /** | ||
| * Hints at the type of data that might be entered by the user while editing the element or its contents | ||
| * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute | ||
| */ | ||
| * Hints at the type of data that might be entered by the user while editing the element or its contents | ||
| * @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute | ||
| */ | ||
| inputmode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined; | ||
| /** | ||
| * Specify that a standard HTML element should behave like a defined custom built-in element | ||
| * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is | ||
| */ | ||
| * Specify that a standard HTML element should behave like a defined custom built-in element | ||
| * @see https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is | ||
| */ | ||
| is?: string | undefined; | ||
| /** | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts | ||
| */ | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts | ||
| */ | ||
| exportparts?: string; | ||
| /** | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part | ||
| */ | ||
| * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part | ||
| */ | ||
| part?: string; | ||
@@ -793,5 +792,5 @@ } | ||
| /** | ||
| * SVG Styling Attributes | ||
| * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling | ||
| */ | ||
| * SVG Styling Attributes | ||
| * @see https://www.w3.org/TR/SVG/styling.html#ElementSpecificStyling | ||
| */ | ||
| class?: ClassValue | undefined; | ||
@@ -1323,3 +1322,3 @@ style?: StyleValue | undefined; | ||
| } | ||
| type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void }; | ||
| type EventHandlers<E> = { [K in keyof E]?: E[K] extends ((...args: any) => any) ? E[K] : (payload: E[K]) => void; }; | ||
| export interface ReservedProps { | ||
@@ -1331,3 +1330,3 @@ key?: PropertyKey | undefined; | ||
| } | ||
| export type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps }; | ||
| export type NativeElements = { [K in keyof IntrinsicElementAttributes]: IntrinsicElementAttributes[K] & ReservedProps; }; | ||
| //#endregion | ||
@@ -1351,3 +1350,3 @@ //#region temp/packages/runtime-dom/src/apiCustomElement.d.ts | ||
| }): VueElementConstructor<Props>; | ||
| export declare function defineCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, PropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions = {}, EmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, InferredProps = (string extends PropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : { [key in PropsKeys]?: any }), ResolvedProps = InferredProps & EmitsToProps<RuntimeEmitsOptions>>(options: CustomElementOptions & { | ||
| export declare function defineCustomElement<RuntimePropsOptions extends ComponentObjectPropsOptions = ComponentObjectPropsOptions, PropsKeys extends string = string, RuntimeEmitsOptions extends EmitsOptions = {}, EmitsKeys extends string = string, Data = {}, SetupBindings = {}, Computed extends ComputedOptions = {}, Methods extends MethodOptions = {}, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, InjectOptions extends ComponentInjectOptions = {}, InjectKeys extends string = string, Slots extends SlotsType = {}, LocalComponents extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, InferredProps = string extends PropsKeys ? ComponentObjectPropsOptions extends RuntimePropsOptions ? {} : ExtractPropTypes<RuntimePropsOptions> : { [key in PropsKeys]?: any; }, ResolvedProps = InferredProps & EmitsToProps<RuntimeEmitsOptions>>(options: CustomElementOptions & { | ||
| props?: (RuntimePropsOptions & ThisType<void>) | PropsKeys[]; | ||
@@ -1378,8 +1377,8 @@ } & ComponentOptionsBase<ResolvedProps, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, InjectOptions, InjectKeys, Slots, LocalComponents, Directives, Exposed, Provide> & ThisType<CreateComponentPublicInstanceWithMixins<Readonly<ResolvedProps>, SetupBindings, Data, Computed, Methods, Mixin, Extends, RuntimeEmitsOptions, EmitsKeys, {}, false, InjectOptions, Slots, LocalComponents, Directives, Exposed>>, extraOptions?: CustomElementOptions): VueElementConstructor<ResolvedProps>; | ||
| /** | ||
| * dev only | ||
| */ | ||
| * dev only | ||
| */ | ||
| protected _styles?: HTMLStyleElement[]; | ||
| /** | ||
| * dev only | ||
| */ | ||
| * dev only | ||
| */ | ||
| protected _childStyles?: Map<string, HTMLStyleElement[]>; | ||
@@ -1389,6 +1388,6 @@ protected _ob?: MutationObserver | null; | ||
| /** | ||
| * Check if this custom element needs hydration. | ||
| * Returns true if it has a pre-rendered declarative shadow root that | ||
| * needs to be hydrated. | ||
| */ | ||
| * Check if this custom element needs hydration. | ||
| * Returns true if it has a pre-rendered declarative shadow root that | ||
| * needs to be hydrated. | ||
| */ | ||
| protected abstract _needsHydration(): boolean; | ||
@@ -1409,4 +1408,4 @@ protected abstract _mount(def: Def): void; | ||
| /** | ||
| * resolve inner component definition (handle possible async component) | ||
| */ | ||
| * resolve inner component definition (handle possible async component) | ||
| */ | ||
| private _resolveDef; | ||
@@ -1422,8 +1421,8 @@ private _mountComponent; | ||
| /** | ||
| * Only called when shadowRoot is false | ||
| */ | ||
| * Only called when shadowRoot is false | ||
| */ | ||
| private _parseSlots; | ||
| /** | ||
| * Only called when shadowRoot is false | ||
| */ | ||
| * Only called when shadowRoot is false | ||
| */ | ||
| protected _renderSlots(): void; | ||
@@ -1438,4 +1437,4 @@ } | ||
| /** | ||
| * Only called when shadowRoot is false | ||
| */ | ||
| * Only called when shadowRoot is false | ||
| */ | ||
| protected _updateSlotNodes(replacements: Map<Node, { | ||
@@ -1449,5 +1448,5 @@ nodes: Node[]; | ||
| /** | ||
| * Retrieve the shadowRoot of the current custom element. Only usable in setup() | ||
| * of a `defineCustomElement` component. | ||
| */ | ||
| * Retrieve the shadowRoot of the current custom element. Only usable in setup() | ||
| * of a `defineCustomElement` component. | ||
| */ | ||
| export declare function useShadowRoot(): ShadowRoot | null; | ||
@@ -1460,5 +1459,5 @@ //#endregion | ||
| /** | ||
| * Runtime helper for SFC's CSS variable injection feature. | ||
| * @private | ||
| */ | ||
| * Runtime helper for SFC's CSS variable injection feature. | ||
| * @private | ||
| */ | ||
| export declare function useCssVars(getter: (ctx: any) => Record<string, unknown>): void; | ||
@@ -1468,6 +1467,6 @@ //#endregion | ||
| /** | ||
| * This is a stub implementation to prevent the need to use dom types. | ||
| * | ||
| * To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`. | ||
| */ | ||
| * This is a stub implementation to prevent the need to use dom types. | ||
| * | ||
| * To enable proper types, add `"dom"` to `"lib"` in your `tsconfig.json`. | ||
| */ | ||
| type DomType<T> = typeof globalThis extends { | ||
@@ -1474,0 +1473,0 @@ window: unknown; |
| /** | ||
| * @vue/runtime-dom v3.6.0-rc.5 | ||
| * @vue/runtime-dom v3.6.0-rc.6 | ||
| * (c) 2018-present Yuxi (Evan) You and Vue contributors | ||
@@ -13,3 +13,3 @@ * @license MIT | ||
| if (tt) try { | ||
| policy = /* @__PURE__ */ tt.createPolicy("vue", { createHTML: (val) => val }); | ||
| policy = /*@__PURE__*/ tt.createPolicy("vue", { createHTML: (val) => val }); | ||
| } catch (e) { | ||
@@ -22,3 +22,3 @@ process.env.NODE_ENV !== "production" && warn(`Error creating trusted types policy: ${e}`); | ||
| const doc = typeof document !== "undefined" ? document : null; | ||
| const templateContainer = doc && /* @__PURE__ */ doc.createElement("template"); | ||
| const templateContainer = doc && /*@__PURE__*/ doc.createElement("template"); | ||
| const nodeOps = { | ||
@@ -97,3 +97,3 @@ insert: (child, parent, anchor) => { | ||
| }; | ||
| const TransitionPropsValidators = /* @__PURE__ */ extend({}, BaseTransitionPropsValidators, DOMTransitionPropsValidators); | ||
| const TransitionPropsValidators = /*@__PURE__*/ extend({}, BaseTransitionPropsValidators, DOMTransitionPropsValidators); | ||
| /** | ||
@@ -112,3 +112,3 @@ * Wrap logic that attaches extra properties to Transition in a function | ||
| */ | ||
| const Transition = /* @__PURE__ */ decorate$1((props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)); | ||
| const Transition = /*@__PURE__*/ decorate$1((props, { slots }) => h(BaseTransition, resolveTransitionProps(props), slots)); | ||
| /** | ||
@@ -335,10 +335,11 @@ * #3227 Incoming hooks may be merged into arrays when wrapping Transition | ||
| if (!value === !oldValue) return; | ||
| if (transition) if (value) { | ||
| transition.beforeEnter(el); | ||
| setDisplay(el, true); | ||
| transition.enter(el); | ||
| } else transition.leave(el, () => { | ||
| setDisplay(el, false); | ||
| }); | ||
| else setDisplay(el, value); | ||
| if (transition) { | ||
| if (value) { | ||
| transition.beforeEnter(el); | ||
| setDisplay(el, true); | ||
| transition.enter(el); | ||
| } else transition.leave(el, () => { | ||
| setDisplay(el, false); | ||
| }); | ||
| } else setDisplay(el, value); | ||
| }, | ||
@@ -451,7 +452,9 @@ beforeUnmount(el, { value }) { | ||
| if (next && !isCssString) { | ||
| if (prev) if (!isString(prev)) { | ||
| for (const key in prev) if (next[key] == null) setStyle(style, key, ""); | ||
| } else for (const prevStyle of prev.split(";")) { | ||
| const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); | ||
| if (next[key] == null) setStyle(style, key, ""); | ||
| if (prev) { | ||
| if (!isString(prev)) { | ||
| for (const key in prev) if (next[key] == null) setStyle(style, key, ""); | ||
| } else for (const prevStyle of prev.split(";")) { | ||
| const key = prevStyle.slice(0, prevStyle.indexOf(":")).trim(); | ||
| if (next[key] == null) setStyle(style, key, ""); | ||
| } | ||
| } | ||
@@ -487,4 +490,6 @@ for (const key in next) { | ||
| } | ||
| if (name.startsWith("--")) style.setProperty(name, val); | ||
| else { | ||
| if (name.startsWith("--")) { | ||
| if (importantRE.test(val)) style.setProperty(name, val.replace(importantRE, ""), "important"); | ||
| else style.setProperty(name, val); | ||
| } else { | ||
| const prefixed = autoPrefix(style, name); | ||
@@ -526,5 +531,6 @@ if (importantRE.test(val)) style.setProperty(hyphenate(prefixed), val.replace(importantRE, ""), "important"); | ||
| function patchAttr(el, key, value, isSVG, instance, isBoolean = isSpecialBooleanAttr(key)) { | ||
| if (isSVG && key.startsWith("xlink:")) if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); | ||
| else el.setAttributeNS(xlinkNS, key, value); | ||
| else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key); | ||
| if (isSVG && key.startsWith("xlink:")) { | ||
| if (value == null) el.removeAttributeNS(xlinkNS, key.slice(6, key.length)); | ||
| else el.setAttributeNS(xlinkNS, key, value); | ||
| } else if (value == null || isBoolean && !includeBooleanAttr(value)) el.removeAttribute(key); | ||
| else el.setAttribute(key, isBoolean ? "" : isSymbol(value) ? String(value) : value); | ||
@@ -602,3 +608,3 @@ } | ||
| let cachedNow = 0; | ||
| const p = /* @__PURE__ */ Promise.resolve(); | ||
| const p = /*@__PURE__*/ Promise.resolve(); | ||
| const getNow = () => cachedNow || (p.then(() => cachedNow = 0), cachedNow = Date.now()); | ||
@@ -671,3 +677,3 @@ function createInvoker(initialValue, instance) { | ||
| const REMOVAL = {}; | ||
| /* @__NO_SIDE_EFFECTS__ */ | ||
| /*@__NO_SIDE_EFFECTS__*/ | ||
| function defineCustomElement(options, extraOptions, _createApp) { | ||
@@ -721,8 +727,10 @@ let Comp = defineComponent(options, extraOptions); | ||
| } | ||
| if (!this._instance) if (this._resolved) this._mountComponent(this._def); | ||
| else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => { | ||
| this._pendingResolve = void 0; | ||
| if (this.isConnected) return this._resolveDef(); | ||
| }); | ||
| else this._resolveDef(); | ||
| if (!this._instance) { | ||
| if (this._resolved) this._mountComponent(this._def); | ||
| else if (parent && parent._pendingResolve) this._pendingResolve = parent._pendingResolve.then(() => { | ||
| this._pendingResolve = void 0; | ||
| if (this.isConnected) return this._resolveDef(); | ||
| }); | ||
| else this._resolveDef(); | ||
| } | ||
| } | ||
@@ -901,10 +909,12 @@ disconnectedCallback() { | ||
| } | ||
| if (!!(process.env.NODE_ENV !== "production")) if (owner) { | ||
| if (owner.__hmrId) { | ||
| if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map(); | ||
| let entry = this._childStyles.get(owner.__hmrId); | ||
| if (!entry) this._childStyles.set(owner.__hmrId, entry = []); | ||
| entry.push(s); | ||
| } | ||
| } else (this._styles || (this._styles = [])).push(s); | ||
| if (!!(process.env.NODE_ENV !== "production")) { | ||
| if (owner) { | ||
| if (owner.__hmrId) { | ||
| if (!this._childStyles) this._childStyles = /* @__PURE__ */ new Map(); | ||
| let entry = this._childStyles.get(owner.__hmrId); | ||
| if (!entry) this._childStyles.set(owner.__hmrId, entry = []); | ||
| entry.push(s); | ||
| } | ||
| } else (this._styles || (this._styles = [])).push(s); | ||
| } | ||
| } | ||
@@ -1078,4 +1088,6 @@ } | ||
| if (el) return el; | ||
| else if (!!(process.env.NODE_ENV !== "production")) if (!hasInstance) warn(`${caller || "useHost"} called without an active component instance.`); | ||
| else warn(`${caller || "useHost"} can only be used in components defined via defineCustomElement.`); | ||
| else if (!!(process.env.NODE_ENV !== "production")) { | ||
| if (!hasInstance) warn(`${caller || "useHost"} called without an active component instance.`); | ||
| else warn(`${caller || "useHost"} can only be used in components defined via defineCustomElement.`); | ||
| } | ||
| return null; | ||
@@ -1129,3 +1141,3 @@ } | ||
| name: "TransitionGroup", | ||
| props: /* @__PURE__ */ extend({}, TransitionPropsValidators, { | ||
| props: /*@__PURE__*/ extend({}, TransitionPropsValidators, { | ||
| tag: String, | ||
@@ -1411,9 +1423,24 @@ moveClass: String | ||
| const selectedVal = Array.prototype.filter.call(el.options, (o) => o.selected).map((o) => number ? looseToNumber(getValue(o)) : getValue(o)); | ||
| (set || el[assignKey])(el.multiple ? isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]); | ||
| el._assigning = true; | ||
| nextTick(() => { | ||
| el._assigning = false; | ||
| }); | ||
| const multiple = el.multiple; | ||
| const assignedValue = multiple ? isSet(el._modelValue) ? new Set(selectedVal) : selectedVal : selectedVal[0]; | ||
| const pending = el._pendingValue = [multiple, multiple ? isArray(assignedValue) ? selectedVal.slice() : selectedVal : assignedValue]; | ||
| try { | ||
| (set || el[assignKey])(assignedValue); | ||
| } finally { | ||
| nextTick(() => { | ||
| if (el._pendingValue === pending) el._pendingValue = void 0; | ||
| }); | ||
| } | ||
| }); | ||
| }; | ||
| function isSameSelectValue(value, assignedValue, multiple) { | ||
| if (!multiple) return looseEqual(value, assignedValue); | ||
| if (isArray(value)) return looseEqual(value, assignedValue); | ||
| if (isSet(value)) { | ||
| if (value.size !== assignedValue.length) return false; | ||
| for (const item of assignedValue) if (!value.has(item)) return false; | ||
| return true; | ||
| } | ||
| return false; | ||
| } | ||
| /** | ||
@@ -1424,3 +1451,8 @@ * @internal | ||
| el._modelValue = value; | ||
| if (el._assigning) return; | ||
| const pending = el._pendingValue; | ||
| el._pendingValue = void 0; | ||
| if (pending && pending[0] === el.multiple && isSameSelectValue(value, pending[1], pending[0])) return; | ||
| setSelected(el, value); | ||
| }; | ||
| function setSelected(el, value) { | ||
| const isMultiple = el.multiple; | ||
@@ -1435,8 +1467,9 @@ const isArrayValue = isArray(value); | ||
| const optionValue = getValue(option); | ||
| if (isMultiple) if (isArrayValue) { | ||
| const optionType = typeof optionValue; | ||
| if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue)); | ||
| else option.selected = looseIndexOf(value, optionValue) > -1; | ||
| } else option.selected = value.has(optionValue); | ||
| else if (looseEqual(getValue(option), value)) { | ||
| if (isMultiple) { | ||
| if (isArrayValue) { | ||
| const optionType = typeof optionValue; | ||
| if (optionType === "string" || optionType === "number") option.selected = value.some((v) => String(v) === String(optionValue)); | ||
| else option.selected = looseIndexOf(value, optionValue) > -1; | ||
| } else option.selected = value.has(optionValue); | ||
| } else if (looseEqual(getValue(option), value)) { | ||
| if (el.selectedIndex !== i) el.selectedIndex = i; | ||
@@ -1447,3 +1480,3 @@ return; | ||
| if (!isMultiple && el.selectedIndex !== -1) el.selectedIndex = -1; | ||
| }; | ||
| } | ||
| /** | ||
@@ -1568,3 +1601,3 @@ * @internal retrieve raw value set via :value bindings | ||
| //#region packages/runtime-dom/src/index.ts | ||
| const rendererOptions = /* @__PURE__ */ extend({ patchProp }, nodeOps); | ||
| const rendererOptions = /*@__PURE__*/ extend({ patchProp }, nodeOps); | ||
| let renderer; | ||
@@ -1571,0 +1604,0 @@ let enabledHydration = false; |
+4
-4
| { | ||
| "name": "@vue/runtime-dom", | ||
| "version": "3.6.0-rc.5", | ||
| "version": "3.6.0-rc.6", | ||
| "description": "@vue/runtime-dom", | ||
@@ -53,5 +53,5 @@ "main": "index.js", | ||
| "csstype": "^3.2.3", | ||
| "@vue/shared": "3.6.0-rc.5", | ||
| "@vue/reactivity": "3.6.0-rc.5", | ||
| "@vue/runtime-core": "3.6.0-rc.5" | ||
| "@vue/runtime-core": "3.6.0-rc.6", | ||
| "@vue/reactivity": "3.6.0-rc.6", | ||
| "@vue/shared": "3.6.0-rc.6" | ||
| }, | ||
@@ -58,0 +58,0 @@ "devDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
1238740
1.15%28248
1.72%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated