wrec 0.20.0 → 0.20.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2025 Mark Volkmann
3
+ Copyright (c) 2026 Mark Volkmann
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -37,7 +37,6 @@ To release a new version of the wrec library:
37
37
  - Verify that all the tests pass by running `npm run test`.
38
38
  - Update the version in `package.json`.
39
39
  - Enter `npm run build`.
40
- - Enter `npm run minify`.
41
40
  - Commit all the changes to the local git repository.
42
41
  - Push all the changes to the remote git repository.
43
42
  - Enter `npm login`.
package/dist/wrec.d.ts ADDED
@@ -0,0 +1,41 @@
1
+ import { ChangeListener, WrecState } from './wrec-state';
2
+ export declare function createElement(name: string, attributes: Record<string, string>, innerHTML: string): HTMLElement;
3
+ export declare abstract class Wrec extends HTMLElement implements ChangeListener {
4
+ #private;
5
+ static attrToPropMap: Map<string, string>;
6
+ static propToAttrMap: Map<string, string>;
7
+ static css: string;
8
+ static elementName: string;
9
+ static formAssociated: boolean;
10
+ static html: string;
11
+ static properties: Record<string, any>;
12
+ static propToComputedMap: Map<string, string[][]>;
13
+ static propToExprsMap: Map<string, string[]>;
14
+ static template: HTMLTemplateElement | null;
15
+ [key: string]: any;
16
+ static define(elementName: string): void;
17
+ constructor();
18
+ attributeChangedCallback(attrName: string, oldValue: string, newValue: string | number | boolean | undefined): void;
19
+ changed(_statePath: string, componentProp: string, newValue: unknown): void;
20
+ connectedCallback(): void;
21
+ disconnectedCallback(): void;
22
+ dispatch(name: string, detail: any): void;
23
+ displayIfSet(value: any, display?: string): string;
24
+ formAssociatedCallback(): void;
25
+ formResetCallback(): void;
26
+ static getAttrName(propName: string): string;
27
+ static getPropName(attrName: string): string;
28
+ static get observedAttributes(): string[];
29
+ propertyChangedCallback(_propName: string, _oldValue: unknown, _newValue: unknown): void;
30
+ setAttributeSafe(name: string, value: string): void;
31
+ setFormValue(propName: string, value: string): void;
32
+ /**
33
+ * @param state - WrecState object
34
+ * @param map - object whose keys are state properties and
35
+ * whose values are component properties
36
+ */
37
+ useState(state: WrecState, map?: Record<string, string>): void;
38
+ }
39
+ export declare function css(strings: TemplateStringsArray, ...values: unknown[]): string;
40
+ export declare function html(strings: TemplateStringsArray, ...values: unknown[]): string;
41
+ export { WrecState } from './wrec-state';