@htmlbricks/hb-input-radio 0.8.39 → 0.8.45
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/extra/docs.ts +23 -5
- package/package.json +4 -4
- package/release/docs.js +21 -4
- package/release/docs.js.map +1 -1
- package/release/docs.ts +23 -5
- package/release/manifest.json +28 -4
- package/release/docs.mjs +0 -36
- package/release/webcomponent.type.d.json +0 -83
- package/release/webcomponent_events.type.d.json +0 -40
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
schemaentry: { control: { type: "object" } },
|
|
@@ -26,15 +27,32 @@ export const styleSetup: StyleSetup = {
|
|
|
26
27
|
parts: cssParts,
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
const examples: Component[] = [
|
|
31
|
+
{
|
|
32
|
+
schemaentry: {
|
|
33
|
+
placeholder: "Choose here...",
|
|
34
|
+
id: "check0",
|
|
35
|
+
required: true,
|
|
36
|
+
label: "Check 0",
|
|
37
|
+
validationTip: "Check 1",
|
|
38
|
+
params: {
|
|
39
|
+
options: [
|
|
40
|
+
{ label: "777", value: "555" },
|
|
41
|
+
{ label: "testlabel", value: "testvalue" },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
30
48
|
definitions: null,
|
|
31
49
|
storybookArgs,
|
|
32
50
|
styleSetup,
|
|
33
51
|
htmlSlots,
|
|
34
52
|
i18n: i18nLanguages,
|
|
35
|
-
examples
|
|
36
|
-
name: "",
|
|
37
|
-
category: "",
|
|
38
|
-
tags: [],
|
|
53
|
+
examples,
|
|
54
|
+
name: "hb-input-radio",
|
|
55
|
+
category: "input",
|
|
56
|
+
tags: ["input"],
|
|
39
57
|
size: {},
|
|
40
58
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-input-radio",
|
|
3
3
|
"displayName": "Svelte-Bootstrap Radio Input WebComponent",
|
|
4
4
|
"description": "Svelte-Bootstrap Radio Input WebComponent",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.45",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"prepublish": "npm run build:release"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@htmlbricks/hb-jsutils": "^0.8.
|
|
34
|
-
"@htmlbricks/manifester": "^0.0.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.8.45",
|
|
34
|
+
"@htmlbricks/manifester": "^0.0.9",
|
|
35
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
36
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
37
37
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"webcomponents"
|
|
76
76
|
],
|
|
77
77
|
"contributors": [],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "cad34cdf98084f7b6d972812fbc05c783318f0ea"
|
|
79
79
|
}
|
package/release/docs.js
CHANGED
|
@@ -21,16 +21,33 @@ export var styleSetup = {
|
|
|
21
21
|
vars: cssVars,
|
|
22
22
|
parts: cssParts
|
|
23
23
|
};
|
|
24
|
+
var examples = [
|
|
25
|
+
{
|
|
26
|
+
schemaentry: {
|
|
27
|
+
placeholder: "Choose here...",
|
|
28
|
+
id: "check0",
|
|
29
|
+
required: true,
|
|
30
|
+
label: "Check 0",
|
|
31
|
+
validationTip: "Check 1",
|
|
32
|
+
params: {
|
|
33
|
+
options: [
|
|
34
|
+
{ label: "777", value: "555" },
|
|
35
|
+
{ label: "testlabel", value: "testvalue" },
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
];
|
|
24
41
|
export var componentSetup = {
|
|
25
42
|
definitions: null,
|
|
26
43
|
storybookArgs: storybookArgs,
|
|
27
44
|
styleSetup: styleSetup,
|
|
28
45
|
htmlSlots: htmlSlots,
|
|
29
46
|
i18n: i18nLanguages,
|
|
30
|
-
examples:
|
|
31
|
-
name: "",
|
|
32
|
-
category: "",
|
|
33
|
-
tags: [],
|
|
47
|
+
examples: examples,
|
|
48
|
+
name: "hb-input-radio",
|
|
49
|
+
category: "input",
|
|
50
|
+
tags: ["input"],
|
|
34
51
|
size: {}
|
|
35
52
|
};
|
|
36
53
|
//# sourceMappingURL=docs.js.map
|
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,WAAW,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IAC5C,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAChD,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;IAChC,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;CAChC,CAAC;AAEF,IAAM,OAAO,GAAa;IACzB,EAAE,IA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B,EAAE,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,EAAE;iBAC1C;aACD;SACD;KACD;CACD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA+C;IACzE,WAAW,EAAE,IAAI;IACjB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,IAAI,EAAE,gBAAgB;IACtB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
|
|
2
|
+
import type { Component } from "../app/types/webcomponent.type";
|
|
2
3
|
|
|
3
4
|
export const storybookArgs = {
|
|
4
5
|
schemaentry: { control: { type: "object" } },
|
|
@@ -26,15 +27,32 @@ export const styleSetup: StyleSetup = {
|
|
|
26
27
|
parts: cssParts,
|
|
27
28
|
};
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
const examples: Component[] = [
|
|
31
|
+
{
|
|
32
|
+
schemaentry: {
|
|
33
|
+
placeholder: "Choose here...",
|
|
34
|
+
id: "check0",
|
|
35
|
+
required: true,
|
|
36
|
+
label: "Check 0",
|
|
37
|
+
validationTip: "Check 1",
|
|
38
|
+
params: {
|
|
39
|
+
options: [
|
|
40
|
+
{ label: "777", value: "555" },
|
|
41
|
+
{ label: "testlabel", value: "testvalue" },
|
|
42
|
+
],
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
];
|
|
47
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
30
48
|
definitions: null,
|
|
31
49
|
storybookArgs,
|
|
32
50
|
styleSetup,
|
|
33
51
|
htmlSlots,
|
|
34
52
|
i18n: i18nLanguages,
|
|
35
|
-
examples
|
|
36
|
-
name: "",
|
|
37
|
-
category: "",
|
|
38
|
-
tags: [],
|
|
53
|
+
examples,
|
|
54
|
+
name: "hb-input-radio",
|
|
55
|
+
category: "input",
|
|
56
|
+
tags: ["input"],
|
|
39
57
|
size: {},
|
|
40
58
|
};
|
package/release/manifest.json
CHANGED
|
@@ -200,9 +200,33 @@
|
|
|
200
200
|
},
|
|
201
201
|
"htmlSlots": [],
|
|
202
202
|
"i18n": [],
|
|
203
|
-
"examples": [
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
203
|
+
"examples": [
|
|
204
|
+
{
|
|
205
|
+
"schemaentry": {
|
|
206
|
+
"placeholder": "Choose here...",
|
|
207
|
+
"id": "check0",
|
|
208
|
+
"required": true,
|
|
209
|
+
"label": "Check 0",
|
|
210
|
+
"validationTip": "Check 1",
|
|
211
|
+
"params": {
|
|
212
|
+
"options": [
|
|
213
|
+
{
|
|
214
|
+
"label": "777",
|
|
215
|
+
"value": "555"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
"label": "testlabel",
|
|
219
|
+
"value": "testvalue"
|
|
220
|
+
}
|
|
221
|
+
]
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
"name": "hb-input-radio",
|
|
227
|
+
"category": "input",
|
|
228
|
+
"tags": [
|
|
229
|
+
"input"
|
|
230
|
+
],
|
|
207
231
|
"size": {}
|
|
208
232
|
}
|
package/release/docs.mjs
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
export var storybookArgs = {
|
|
2
|
-
schemaentry: { control: { type: "object" } },
|
|
3
|
-
showvalidation: { control: { type: "boolean" } },
|
|
4
|
-
setvalid: { control: { type: "boolean" } },
|
|
5
|
-
setvalue: { control: { type: "boolean" } },
|
|
6
|
-
setValid: { action: "setValid" },
|
|
7
|
-
setValue: { action: "setValue" }
|
|
8
|
-
};
|
|
9
|
-
var cssVars = [
|
|
10
|
-
{ name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
|
|
11
|
-
{ name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
|
|
12
|
-
{ name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
|
|
13
|
-
{ name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
|
|
14
|
-
{ name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
|
|
15
|
-
{ name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
|
|
16
|
-
];
|
|
17
|
-
export var cssParts = [{ name: "invalid-feedback", description: "" }];
|
|
18
|
-
export var htmlSlots = [];
|
|
19
|
-
export var i18nLanguages = [];
|
|
20
|
-
export var styleSetup = {
|
|
21
|
-
vars: cssVars,
|
|
22
|
-
parts: cssParts
|
|
23
|
-
};
|
|
24
|
-
export var componentSetup = {
|
|
25
|
-
definitions: null,
|
|
26
|
-
storybookArgs: storybookArgs,
|
|
27
|
-
styleSetup: styleSetup,
|
|
28
|
-
htmlSlots: htmlSlots,
|
|
29
|
-
i18n: i18nLanguages,
|
|
30
|
-
examples: [],
|
|
31
|
-
name: "",
|
|
32
|
-
category: "",
|
|
33
|
-
tags: [],
|
|
34
|
-
size: {}
|
|
35
|
-
};
|
|
36
|
-
//# sourceMappingURL=docs.js.map
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/Component",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"Component": {
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"id": {
|
|
9
|
-
"type": "string"
|
|
10
|
-
},
|
|
11
|
-
"schemaentry": {
|
|
12
|
-
"$ref": "#/definitions/FormSchemaEntry"
|
|
13
|
-
},
|
|
14
|
-
"setvalid": {
|
|
15
|
-
"type": "boolean"
|
|
16
|
-
},
|
|
17
|
-
"setvalue": {
|
|
18
|
-
"type": "boolean"
|
|
19
|
-
},
|
|
20
|
-
"showvalidation": {
|
|
21
|
-
"enum": [
|
|
22
|
-
"yes",
|
|
23
|
-
"no"
|
|
24
|
-
],
|
|
25
|
-
"type": "string"
|
|
26
|
-
},
|
|
27
|
-
"style": {
|
|
28
|
-
"type": "string"
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"required": [
|
|
32
|
-
"schemaentry"
|
|
33
|
-
],
|
|
34
|
-
"type": "object"
|
|
35
|
-
},
|
|
36
|
-
"FormSchemaEntry": {
|
|
37
|
-
"additionalProperties": false,
|
|
38
|
-
"properties": {
|
|
39
|
-
"id": {
|
|
40
|
-
"description": "This will be both the key of the object when submitting the form's data, and also the id in the DOM.",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
"label": {
|
|
44
|
-
"description": "The descriptive label that will show alongside the form control.",
|
|
45
|
-
"type": "string"
|
|
46
|
-
},
|
|
47
|
-
"params": {
|
|
48
|
-
"description": "Other parameters that may be specific to a certain kind of form control.",
|
|
49
|
-
"type": "object"
|
|
50
|
-
},
|
|
51
|
-
"placeholder": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"readonly": {
|
|
55
|
-
"type": "boolean"
|
|
56
|
-
},
|
|
57
|
-
"required": {
|
|
58
|
-
"description": "This doesn't matter if the dependencies requirements aren't met.",
|
|
59
|
-
"type": "boolean"
|
|
60
|
-
},
|
|
61
|
-
"validationRegex": {
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
|
-
"validationTip": {
|
|
65
|
-
"description": "Shows if value is not valid.",
|
|
66
|
-
"type": "string"
|
|
67
|
-
},
|
|
68
|
-
"value": {
|
|
69
|
-
"description": "Optional default value.",
|
|
70
|
-
"type": [
|
|
71
|
-
"string",
|
|
72
|
-
"number",
|
|
73
|
-
"boolean"
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"required": [
|
|
78
|
-
"id"
|
|
79
|
-
],
|
|
80
|
-
"type": "object"
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$ref": "#/definitions/Events",
|
|
3
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
|
-
"definitions": {
|
|
5
|
-
"Events": {
|
|
6
|
-
"additionalProperties": false,
|
|
7
|
-
"properties": {
|
|
8
|
-
"setValid": {
|
|
9
|
-
"additionalProperties": false,
|
|
10
|
-
"properties": {
|
|
11
|
-
"valid": {
|
|
12
|
-
"type": "boolean"
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"required": [
|
|
16
|
-
"valid"
|
|
17
|
-
],
|
|
18
|
-
"type": "object"
|
|
19
|
-
},
|
|
20
|
-
"setValue": {
|
|
21
|
-
"additionalProperties": false,
|
|
22
|
-
"properties": {
|
|
23
|
-
"value": {
|
|
24
|
-
"type": "string"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
"required": [
|
|
28
|
-
"value"
|
|
29
|
-
],
|
|
30
|
-
"type": "object"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"required": [
|
|
34
|
-
"setValue",
|
|
35
|
-
"setValid"
|
|
36
|
-
],
|
|
37
|
-
"type": "object"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|