element-vir 12.5.3 → 12.5.4

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.
@@ -5,7 +5,7 @@ import { CssVarNameOrValueMap } from './properties/css-vars';
5
5
  import { EventDescriptorMap, EventsInitMap } from './properties/element-events';
6
6
  import { ElementPropertyDescriptorMap, PropertyInitMapBase } from './properties/element-properties';
7
7
  import { HostClassNamesMap } from './properties/host-classes';
8
- import { AllowObservablePropertySetter, FlattenObservablePropertyGetters, ObservablePropertyHandlerMap } from './properties/observable-property/observable-property-handler';
8
+ import { FlattenObservablePropertyGetters, FlattenObservablePropertySetters, ObservablePropertyHandlerMap } from './properties/observable-property/observable-property-handler';
9
9
  import { RenderCallback, RenderParams } from './render-callback';
10
10
  export type DeclarativeElementHost<TagNameGeneric extends CustomElementTagName = any, InputsGeneric extends PropertyInitMapBase = any, StateInitGeneric extends PropertyInitMapBase = any, EventsInitGeneric extends EventsInitMap = any, HostClassKeys extends string = string, CssVarKeys extends string = string> = RequiredAndNotNullBy<DeclarativeElement<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeys, CssVarKeys, any>, 'shadowRoot'>;
11
11
  export type DeclarativeElementDefinition<TagNameGeneric extends CustomElementTagName = any, InputsGeneric extends PropertyInitMapBase = any, StateInitGeneric extends PropertyInitMapBase = any, EventsInitGeneric extends EventsInitMap = any, HostClassKeys extends string = string, CssVarKeys extends string = string, RenderOutputGeneric = any> = (new () => DeclarativeElementHost<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeys, CssVarKeys>) & StaticDeclarativeElementProperties<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeys, CssVarKeys, RenderOutputGeneric> & {
@@ -40,7 +40,7 @@ export interface StaticDeclarativeElementProperties<TagNameGeneric extends Custo
40
40
  events: EventDescriptorMap<EventsInitGeneric>;
41
41
  stateInit: ElementPropertyDescriptorMap<StateInitGeneric>;
42
42
  init: RequiredBy<DeclarativeElementInit<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeys, CssVarKeys, RenderOutputGeneric>, 'stateInit' | 'events'>;
43
- inputsType: Readonly<AllowObservablePropertySetter<InputsGeneric>>;
43
+ inputsType: Readonly<FlattenObservablePropertySetters<InputsGeneric>>;
44
44
  stateType: Readonly<FlattenObservablePropertyGetters<StateInitGeneric>>;
45
45
  isStrictInstance: (element: unknown) => element is DeclarativeElement<TagNameGeneric, InputsGeneric, StateInitGeneric, EventsInitGeneric, HostClassKeys, CssVarKeys, RenderOutputGeneric>;
46
46
  hostClasses: HostClassNamesMap<string, HostClassKeys>;
@@ -5,6 +5,6 @@ export type ElementDefinitionWithInputsType<InputsType extends PropertyInitMapBa
5
5
  inputsType: AllowObservablePropertySetter<InputsType>;
6
6
  };
7
7
  /** Assign an object matching an element's inputs to its inputs. */
8
- export declare function assign<DeclarativeElementGeneric extends ElementDefinitionWithInputsType>(declarativeElement: DeclarativeElementGeneric, inputsObject: {} extends Required<DeclarativeElementGeneric['inputsType']> ? never : DeclarativeElementGeneric['inputsType']): DirectiveResult;
8
+ export declare function assign<DeclarativeElementGeneric extends ElementDefinitionWithInputsType>(declarativeElement: DeclarativeElementGeneric, inputsObject: {} extends Required<DeclarativeElementGeneric['inputsType']> ? never : AllowObservablePropertySetter<DeclarativeElementGeneric['inputsType']>): DirectiveResult;
9
9
  export declare function assign<DeclarativeElementGeneric extends ElementDefinitionWithInputsType>(inputsObject: Record<string, any>): DirectiveResult;
10
10
  export declare function assignInputsObject<DeclarativeElementDefinitionGeneric extends ElementDefinitionWithInputsType>(expectedElementConstructor: DeclarativeElementDefinitionGeneric | undefined, element: Element, assignmentObject: DeclarativeElementDefinitionGeneric['inputsType']): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-vir",
3
- "version": "12.5.3",
3
+ "version": "12.5.4",
4
4
  "keywords": [
5
5
  "custom",
6
6
  "web",
@@ -31,7 +31,7 @@
31
31
  "publish": "virmator publish \"npm run compile && npm run test:all\"",
32
32
  "start": "npm install && virmator frontend",
33
33
  "test": "virmator test-web",
34
- "test:all": "npm run test:types && npm run test:coverage && npm run test:spelling && npm run test:format && npm run test:docs",
34
+ "test:all": "concurrently -c auto --kill-others-on-fail --colors \"npm run test:types\" \"npm run test:coverage\" \"npm run test:spelling\" \"npm run test:format\" \"npm run test:docs\"",
35
35
  "test:coverage": "virmator test-web coverage",
36
36
  "test:docs": "virmator code-in-markdown check",
37
37
  "test:format": "virmator format check",
@@ -55,6 +55,7 @@
55
55
  "@web/test-runner-playwright": "^0.10.0",
56
56
  "@web/test-runner-visual-regression": "^0.8.0",
57
57
  "ansi-colors": "^4.1.3",
58
+ "concurrently": "^8.0.1",
58
59
  "cspell": "^6.31.1",
59
60
  "esbuild": "^0.17.19",
60
61
  "istanbul-smart-text-reporter": "^1.1.1",