element-vir 20.0.5 → 20.0.7
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RequiredAndNotNullBy } from '@augment-vir/common';
|
|
2
2
|
import { IsAny, IsEmptyObject } from 'type-fest';
|
|
3
3
|
import { CSSResult, LitElement } from '../lit-exports/all-lit-exports';
|
|
4
4
|
import { MinimalDefinitionWithInputs } from '../template-transforms/minimal-element-definition';
|
|
@@ -47,7 +47,7 @@ export declare abstract class DeclarativeElement<TagName extends CustomElementTa
|
|
|
47
47
|
/** The element definition for this element instance. */
|
|
48
48
|
abstract readonly definition: DeclarativeElementDefinition<TagName, Inputs, StateInit, EventsInit, HostClassKeys, CssVarKeys, SlotNames>;
|
|
49
49
|
}
|
|
50
|
-
export type AssignMethod<Inputs extends PropertyInitMapBase> = IsAny<Inputs> extends true ?
|
|
50
|
+
export type AssignMethod<Inputs extends PropertyInitMapBase> = IsAny<Inputs> extends true ? any : IsEmptyObject<Required<Inputs>> extends true ? (inputsObject: never) => never : (inputsObject: IsEmptyObject<Required<Inputs>> extends true ? never : Inputs) => MinimalDefinitionWithInputs;
|
|
51
51
|
export type StaticDeclarativeElementProperties<TagName extends CustomElementTagName, Inputs extends PropertyInitMapBase, StateInit extends PropertyInitMapBase, EventsInit extends EventsInitMap, HostClassKeys extends BaseCssPropertyName<TagName>, CssVarKeys extends BaseCssPropertyName<TagName>, SlotNames extends ReadonlyArray<string>> = {
|
|
52
52
|
/** Assign inputs to an element directly on its interpolated tag. */
|
|
53
53
|
readonly assign: AssignMethod<Inputs>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "element-vir",
|
|
3
|
-
"version": "20.0.
|
|
3
|
+
"version": "20.0.7",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"custom",
|
|
6
6
|
"web",
|
|
@@ -38,17 +38,17 @@
|
|
|
38
38
|
"test:types": "npm run compile"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@augment-vir/common": "^
|
|
42
|
-
"date-vir": "^5.
|
|
41
|
+
"@augment-vir/common": "^23.0.0",
|
|
42
|
+
"date-vir": "^5.1.2",
|
|
43
43
|
"lit": "^3.1.1",
|
|
44
44
|
"lit-css-vars": "^3.0.8",
|
|
45
45
|
"lit-html": "^3.1.1",
|
|
46
|
-
"object-shape-tester": "^1.0
|
|
46
|
+
"object-shape-tester": "^2.1.0",
|
|
47
47
|
"run-time-assertions": "^0.3.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@augment-vir/browser-testing": "^
|
|
51
|
-
"@augment-vir/node-js": "^
|
|
50
|
+
"@augment-vir/browser-testing": "^23.0.0",
|
|
51
|
+
"@augment-vir/node-js": "^23.0.0",
|
|
52
52
|
"@istanbuljs/nyc-config-typescript": "^1.0.2",
|
|
53
53
|
"@open-wc/testing": "^4.0.0",
|
|
54
54
|
"@types/chai": "^4.3.11",
|
|
@@ -64,6 +64,6 @@
|
|
|
64
64
|
"typedoc": "^0.25.7",
|
|
65
65
|
"typescript": "^5.3.3",
|
|
66
66
|
"vite": "^4.5.0",
|
|
67
|
-
"vite-tsconfig-paths": "^4.
|
|
67
|
+
"vite-tsconfig-paths": "^4.3.1"
|
|
68
68
|
}
|
|
69
69
|
}
|