@thi.ng/rdom-forms 0.2.28 → 0.2.29

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2024-03-09T09:18:17Z
3
+ - **Last updated**: 2024-03-13T14:04:31Z
4
4
  - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
5
 
6
6
  All notable changes to this project will be documented in this file.
package/compile.d.ts CHANGED
@@ -9,10 +9,10 @@ export declare const group: (spec: Omit<Group, "type" | "id" | "items"> & {
9
9
  id?: string;
10
10
  }, ...items: FormItem[]) => Group;
11
11
  export declare const custom: (body: ComponentLike) => Custom;
12
- type PartialSpec<T extends Value> = Omit<T, "type" | "id"> & {
12
+ export type PartialSpec<T extends Value> = Omit<T, "type" | "id"> & {
13
13
  id?: string;
14
14
  };
15
- type ReadonlyPartialSpec<T extends Value, V = string> = Omit<T, "type" | "id" | "readonly" | "value"> & {
15
+ export type ReadonlyPartialSpec<T extends Value, V = string> = Omit<T, "type" | "id" | "readonly" | "value"> & {
16
16
  id?: string;
17
17
  readonly: true;
18
18
  value?: ISubscribable<V>;
@@ -38,10 +38,10 @@ export declare const toggle: (spec: PartialSpec<Toggle> | ReadonlyPartialSpec<To
38
38
  export declare const trigger: (spec: PartialSpec<Trigger> | ReadonlyPartialSpec<Trigger, string>) => Trigger;
39
39
  export declare const url: (spec: PartialSpec<UrlVal> | ReadonlyPartialSpec<UrlVal, string>) => UrlVal;
40
40
  export declare const week: (spec: PartialSpec<Week> | ReadonlyPartialSpec<Week, string>) => Week;
41
- export declare const selectNum: <T extends number = number>(spec: PartialSpec<SelectNum<T>> | ReadonlyPartialSpec<SelectNum<T>, string>) => SelectNum<T>;
42
- export declare const selectStr: <T extends string = string>(spec: PartialSpec<SelectStr<T>> | ReadonlyPartialSpec<SelectStr<T>, string>) => SelectStr<T>;
43
- export declare const multiSelectNum: <T extends number = number>(spec: PartialSpec<MultiSelectNum<T>> | ReadonlyPartialSpec<MultiSelectNum<T>, string>) => MultiSelectNum<T>;
44
- export declare const multiSelectStr: <T extends string = string>(spec: PartialSpec<MultiSelectStr<T>> | ReadonlyPartialSpec<MultiSelectStr<T>, string>) => MultiSelectStr<T>;
41
+ export declare const selectNum: <T extends number = number>(spec: PartialSpec<SelectNum<T>> | ReadonlyPartialSpec<SelectNum<T>>) => SelectNum<T>;
42
+ export declare const selectStr: <T extends string = string>(spec: PartialSpec<SelectStr<T>> | ReadonlyPartialSpec<SelectStr<T>>) => SelectStr<T>;
43
+ export declare const multiSelectNum: <T extends number = number>(spec: PartialSpec<MultiSelectNum<T>> | ReadonlyPartialSpec<MultiSelectNum<T>>) => MultiSelectNum<T>;
44
+ export declare const multiSelectStr: <T extends string = string>(spec: PartialSpec<MultiSelectStr<T>> | ReadonlyPartialSpec<MultiSelectStr<T>>) => MultiSelectStr<T>;
45
45
  /**
46
46
  * Compiles given {@link FormItem} spec into a hiccup/rdom component, using
47
47
  * provided options to customize attributes and behaviors.
@@ -51,5 +51,4 @@ export declare const multiSelectStr: <T extends string = string>(spec: PartialSp
51
51
  * element types. See thi.ng/defmulti readme for instructions.
52
52
  */
53
53
  export declare const compileForm: MultiFn2<FormItem, Partial<FormOpts>, ComponentLike>;
54
- export {};
55
54
  //# sourceMappingURL=compile.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/rdom-forms",
3
- "version": "0.2.28",
3
+ "version": "0.2.29",
4
4
  "description": "Data-driven declarative & extensible HTML form generation",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,19 +36,19 @@
36
36
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.29",
40
- "@thi.ng/checks": "^3.5.2",
41
- "@thi.ng/defmulti": "^3.0.30",
42
- "@thi.ng/hiccup-html": "^2.4.14",
43
- "@thi.ng/rdom": "^1.1.13",
44
- "@thi.ng/rstream": "^8.3.12"
39
+ "@thi.ng/api": "^8.9.30",
40
+ "@thi.ng/checks": "^3.5.3",
41
+ "@thi.ng/defmulti": "^3.0.31",
42
+ "@thi.ng/hiccup-html": "^2.4.15",
43
+ "@thi.ng/rdom": "^1.1.14",
44
+ "@thi.ng/rstream": "^8.3.13"
45
45
  },
46
46
  "devDependencies": {
47
- "@microsoft/api-extractor": "^7.40.1",
48
- "esbuild": "^0.20.0",
47
+ "@microsoft/api-extractor": "^7.42.3",
48
+ "esbuild": "^0.20.1",
49
49
  "rimraf": "^5.0.5",
50
- "typedoc": "^0.25.7",
51
- "typescript": "^5.3.3"
50
+ "typedoc": "^0.25.12",
51
+ "typescript": "^5.4.2"
52
52
  },
53
53
  "keywords": [
54
54
  "browser",
@@ -97,5 +97,5 @@
97
97
  "status": "alpha",
98
98
  "year": 2023
99
99
  },
100
- "gitHead": "69100942474942f7446ac645d59d91e7dfc352f9\n"
100
+ "gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
101
101
  }