@thi.ng/rdom-forms 0.2.27 → 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 +1 -1
- package/compile.d.ts +6 -7
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
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
|
|
42
|
-
export declare const selectStr: <T extends string = string>(spec: PartialSpec<SelectStr<T>> | ReadonlyPartialSpec<SelectStr<T
|
|
43
|
-
export declare const multiSelectNum: <T extends number = number>(spec: PartialSpec<MultiSelectNum<T>> | ReadonlyPartialSpec<MultiSelectNum<T
|
|
44
|
-
export declare const multiSelectStr: <T extends string = string>(spec: PartialSpec<MultiSelectStr<T>> | ReadonlyPartialSpec<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.
|
|
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.
|
|
40
|
-
"@thi.ng/checks": "^3.5.
|
|
41
|
-
"@thi.ng/defmulti": "^3.0.
|
|
42
|
-
"@thi.ng/hiccup-html": "^2.4.
|
|
43
|
-
"@thi.ng/rdom": "^1.1.
|
|
44
|
-
"@thi.ng/rstream": "^8.3.
|
|
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.
|
|
48
|
-
"esbuild": "^0.20.
|
|
47
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
48
|
+
"esbuild": "^0.20.1",
|
|
49
49
|
"rimraf": "^5.0.5",
|
|
50
|
-
"typedoc": "^0.25.
|
|
51
|
-
"typescript": "^5.
|
|
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": "
|
|
100
|
+
"gitHead": "7f3fcbd6c0462b0ce45afa141fe163d1f297fd51\n"
|
|
101
101
|
}
|