@kdujs/runtime-dom-canary
Advanced tools
Comparing version 3.20240108.0-minor.0 to 3.20240108.0
@@ -1100,2 +1100,7 @@ 'use strict'; | ||
return; | ||
const elValue = number || el.type === "number" ? shared.looseToNumber(el.value) : el.value; | ||
const newValue = value == null ? "" : value; | ||
if (elValue === newValue) { | ||
return; | ||
} | ||
if (document.activeElement === el && el.type !== "range") { | ||
@@ -1105,13 +1110,7 @@ if (lazy) { | ||
} | ||
if (trim && el.value.trim() === value) { | ||
if (trim && el.value.trim() === newValue) { | ||
return; | ||
} | ||
if ((number || el.type === "number") && shared.looseToNumber(el.value) === value) { | ||
return; | ||
} | ||
} | ||
const newValue = value == null ? "" : value; | ||
if (el.value !== newValue) { | ||
el.value = newValue; | ||
} | ||
el.value = newValue; | ||
} | ||
@@ -1118,0 +1117,0 @@ }; |
@@ -1059,2 +1059,7 @@ 'use strict'; | ||
return; | ||
const elValue = number || el.type === "number" ? shared.looseToNumber(el.value) : el.value; | ||
const newValue = value == null ? "" : value; | ||
if (elValue === newValue) { | ||
return; | ||
} | ||
if (document.activeElement === el && el.type !== "range") { | ||
@@ -1064,13 +1069,7 @@ if (lazy) { | ||
} | ||
if (trim && el.value.trim() === value) { | ||
if (trim && el.value.trim() === newValue) { | ||
return; | ||
} | ||
if ((number || el.type === "number") && shared.looseToNumber(el.value) === value) { | ||
return; | ||
} | ||
} | ||
const newValue = value == null ? "" : value; | ||
if (el.value !== newValue) { | ||
el.value = newValue; | ||
} | ||
el.value = newValue; | ||
} | ||
@@ -1077,0 +1076,0 @@ }; |
@@ -1,2 +0,2 @@ | ||
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, ComponentPublicInstance, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, KNodeRef, RootRenderFunction, CreateAppFunction } from '@kdujs/runtime-core'; | ||
import { SetupContext, RenderFunction, ComputedOptions, MethodOptions, ComponentOptionsMixin, EmitsOptions, ComponentInjectOptions, SlotsType, ComponentOptionsWithoutProps, ComponentOptionsWithArrayProps, ComponentPropsOptions, ComponentOptionsWithObjectProps, ExtractPropTypes, DefineComponent, RootHydrateFunction, ConcreteComponent, BaseTransitionProps, FunctionalComponent, ObjectDirective, KNodeRef, RootRenderFunction, CreateAppFunction } from '@kdujs/runtime-core'; | ||
export * from '@kdujs/runtime-core'; | ||
@@ -20,5 +20,3 @@ import * as CSS from 'csstype'; | ||
}): KduElementConstructor<ExtractPropTypes<PropsOptions>>; | ||
export declare function defineCustomElement(options: { | ||
new (...args: any[]): ComponentPublicInstance; | ||
}): KduElementConstructor; | ||
export declare function defineCustomElement<P>(options: DefineComponent<P, any, any, any>): KduElementConstructor<ExtractPropTypes<P>>; | ||
/*! #__NO_SIDE_EFFECTS__ */ | ||
@@ -275,3 +273,3 @@ export declare const defineSSRCustomElement: typeof defineCustomElement; | ||
*/ | ||
'aria-relevant'?: 'additions' | 'additions text' | 'all' | 'removals' | 'text'; | ||
'aria-relevant'?: 'additions' | 'additions removals' | 'additions text' | 'all' | 'removals' | 'removals additions' | 'removals text' | 'text' | 'text additions' | 'text removals'; | ||
/** Indicates that user input is required on the element before a form may be submitted. */ | ||
@@ -320,3 +318,3 @@ 'aria-required'?: Booleanish; | ||
} | ||
export type StyleValue = string | CSSProperties | Array<StyleValue>; | ||
export type StyleValue = false | null | undefined | string | CSSProperties | Array<StyleValue>; | ||
export interface HTMLAttributes extends AriaAttributes, EventHandlers<Events> { | ||
@@ -327,3 +325,3 @@ innerHTML?: string; | ||
accesskey?: string; | ||
contenteditable?: Booleanish | 'inherit'; | ||
contenteditable?: Booleanish | 'inherit' | 'plaintext-only'; | ||
contextmenu?: string; | ||
@@ -418,3 +416,3 @@ dir?: string; | ||
type?: 'submit' | 'reset' | 'button'; | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
} | ||
@@ -433,6 +431,7 @@ export interface CanvasHTMLAttributes extends HTMLAttributes { | ||
export interface DataHTMLAttributes extends HTMLAttributes { | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
} | ||
export interface DetailsHTMLAttributes extends HTMLAttributes { | ||
open?: Booleanish; | ||
onToggle?: Event; | ||
} | ||
@@ -474,5 +473,8 @@ export interface DelHTMLAttributes extends HTMLAttributes { | ||
allowtransparency?: Booleanish; | ||
/** @deprecated */ | ||
frameborder?: Numberish; | ||
height?: Numberish; | ||
/** @deprecated */ | ||
marginheight?: Numberish; | ||
/** @deprecated */ | ||
marginwidth?: Numberish; | ||
@@ -482,2 +484,3 @@ name?: string; | ||
sandbox?: string; | ||
/** @deprecated */ | ||
scrolling?: string; | ||
@@ -494,2 +497,3 @@ seamless?: Booleanish; | ||
height?: Numberish; | ||
loading?: 'eager' | 'lazy'; | ||
referrerpolicy?: HTMLAttributeReferrerPolicy; | ||
@@ -501,3 +505,2 @@ sizes?: string; | ||
width?: Numberish; | ||
loading?: 'lazy' | 'eager'; | ||
} | ||
@@ -518,2 +521,3 @@ export interface InsHTMLAttributes extends HTMLAttributes { | ||
disabled?: Booleanish; | ||
enterKeyHint?: 'enter' | 'done' | 'go' | 'next' | 'previous' | 'search' | 'send'; | ||
form?: string; | ||
@@ -559,3 +563,3 @@ formaction?: string; | ||
export interface LiHTMLAttributes extends HTMLAttributes { | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
} | ||
@@ -573,2 +577,3 @@ export interface LinkHTMLAttributes extends HTMLAttributes { | ||
type?: string; | ||
charset?: string; | ||
} | ||
@@ -606,3 +611,3 @@ export interface MapHTMLAttributes extends HTMLAttributes { | ||
optimum?: Numberish; | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
} | ||
@@ -645,10 +650,11 @@ export interface QuoteHTMLAttributes extends HTMLAttributes { | ||
name?: string; | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
} | ||
export interface ProgressHTMLAttributes extends HTMLAttributes { | ||
max?: Numberish; | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
} | ||
export interface ScriptHTMLAttributes extends HTMLAttributes { | ||
async?: Booleanish; | ||
/** @deprecated */ | ||
charset?: string; | ||
@@ -692,2 +698,3 @@ crossorigin?: string; | ||
summary?: string; | ||
width?: Numberish; | ||
} | ||
@@ -708,3 +715,3 @@ export interface TextareaHTMLAttributes extends HTMLAttributes { | ||
rows?: Numberish; | ||
value?: string | string[] | number; | ||
value?: string | ReadonlyArray<string> | number; | ||
wrap?: string; | ||
@@ -718,2 +725,5 @@ } | ||
scope?: string; | ||
abbr?: string; | ||
height?: Numberish; | ||
width?: Numberish; | ||
valign?: 'top' | 'middle' | 'bottom' | 'baseline'; | ||
@@ -727,2 +737,3 @@ } | ||
scope?: string; | ||
abbr?: string; | ||
} | ||
@@ -745,2 +756,3 @@ export interface TimeHTMLAttributes extends HTMLAttributes { | ||
disablePictureInPicture?: Booleanish; | ||
disableRemotePlayback?: Booleanish; | ||
} | ||
@@ -788,2 +800,3 @@ export interface WebViewHTMLAttributes extends HTMLAttributes { | ||
tabindex?: Numberish; | ||
crossOrigin?: 'anonymous' | 'use-credentials' | ''; | ||
'accent-height'?: Numberish; | ||
@@ -790,0 +803,0 @@ accumulate?: 'none' | 'sum'; |
@@ -1152,2 +1152,7 @@ import { h, BaseTransition, BaseTransitionPropsValidators, assertNumber, warn, camelize, callWithAsyncErrorHandling, defineComponent, nextTick, createKNode, getCurrentInstance, watchPostEffect, onMounted, onUnmounted, Fragment, Static, useTransitionState, onUpdated, toRaw, getTransitionRawChildren, setTransitionHooks, resolveTransitionHooks, isRuntimeOnly, createRenderer, createHydrationRenderer } from '@kdujs/runtime-core'; | ||
return; | ||
const elValue = number || el.type === "number" ? looseToNumber(el.value) : el.value; | ||
const newValue = value == null ? "" : value; | ||
if (elValue === newValue) { | ||
return; | ||
} | ||
if (document.activeElement === el && el.type !== "range") { | ||
@@ -1157,13 +1162,7 @@ if (lazy) { | ||
} | ||
if (trim && el.value.trim() === value) { | ||
if (trim && el.value.trim() === newValue) { | ||
return; | ||
} | ||
if ((number || el.type === "number") && looseToNumber(el.value) === value) { | ||
return; | ||
} | ||
} | ||
const newValue = value == null ? "" : value; | ||
if (el.value !== newValue) { | ||
el.value = newValue; | ||
} | ||
el.value = newValue; | ||
} | ||
@@ -1170,0 +1169,0 @@ }; |
{ | ||
"name": "@kdujs/runtime-dom-canary", | ||
"version": "3.20240108.0-minor.0", | ||
"version": "3.20240108.0", | ||
"description": "@kdujs/runtime-dom", | ||
@@ -38,6 +38,6 @@ "main": "index.js", | ||
"dependencies": { | ||
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240108.0-minor.0", | ||
"@kdujs/runtime-core": "npm:@kdujs/runtime-core-canary@3.20240108.0-minor.0", | ||
"@kdujs/shared": "npm:@kdujs/shared-canary@3.20240108.0", | ||
"@kdujs/runtime-core": "npm:@kdujs/runtime-core-canary@3.20240108.0", | ||
"csstype": "^3.1.2" | ||
} | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
992320
27550
1
+ Added@kdujs/reactivity-canary@3.20240108.0(transitive)
+ Added@kdujs/runtime-core-canary@3.20240108.0(transitive)
+ Added@kdujs/shared-canary@3.20240108.0(transitive)
- Removed@kdujs/reactivity-canary@3.20240108.0-minor.0(transitive)
- Removed@kdujs/runtime-core-canary@3.20240108.0-minor.0(transitive)
- Removed@kdujs/shared-canary@3.20240108.0-minor.0(transitive)
Updated@kdujs/runtime-core@npm:@kdujs/runtime-core-canary@3.20240108.0