@htmlbricks/hb-input-checkbox 0.50.0-alpha.4 → 0.50.0-alpha.6
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/manifest.json +1 -1
- package/package.json +3 -2
- package/types/webcomponent.type.d.ts +48 -0
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-input-checkbox",
|
|
3
|
-
"version": "0.50.0-alpha.
|
|
3
|
+
"version": "0.50.0-alpha.006",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "",
|
|
6
6
|
"licenses": [
|
|
@@ -11,5 +11,6 @@
|
|
|
11
11
|
"currency": "EUR"
|
|
12
12
|
}
|
|
13
13
|
],
|
|
14
|
-
"main": "main.iife.js"
|
|
14
|
+
"main": "main.iife.js",
|
|
15
|
+
"dependencies": []
|
|
15
16
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export type FormSchemaEntry = {
|
|
2
|
+
/**
|
|
3
|
+
* This will be both the key of the object when submitting the form's data,
|
|
4
|
+
* and also the id in the DOM.
|
|
5
|
+
*/
|
|
6
|
+
id: string;
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* The descriptive label that will show alongside the form control.
|
|
10
|
+
*/
|
|
11
|
+
label?: string;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Optional default value.
|
|
15
|
+
*/
|
|
16
|
+
value?: string | number | boolean;
|
|
17
|
+
|
|
18
|
+
readonly?: boolean;
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* This doesn't matter if the dependencies requirements aren't met.
|
|
22
|
+
*/
|
|
23
|
+
required?: boolean;
|
|
24
|
+
|
|
25
|
+
validationRegex?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Shows if value is not valid.
|
|
28
|
+
*/
|
|
29
|
+
validationTip?: string;
|
|
30
|
+
|
|
31
|
+
placeholder?: string;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Other parameters that may be specific to a certain kind of form control.
|
|
35
|
+
*/
|
|
36
|
+
params?: Record<string, any>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type Component = {
|
|
40
|
+
id?: string;
|
|
41
|
+
style?: string;
|
|
42
|
+
set_value?: boolean;
|
|
43
|
+
set_valid?: boolean;
|
|
44
|
+
show_validation?: "yes" | "no";
|
|
45
|
+
schemaentry: FormSchemaEntry;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
export type Events = { setValue: { value: string }; setValid: { valid: boolean } };
|