@htmlbricks/hb-gauge 0.8.37 → 0.8.43
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 +17 -6
- package/package.json +9 -7
- package/release/docs.js +14 -4
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +33 -0
- package/release/docs.ts +17 -6
- package/release/manifest.json +91 -0
- package/release/webcomponent.type.d.json +1 -4
- package/release/webcomponent_events.type.d.json +10 -0
- package/release/docs.type.d.json +0 -25
package/extra/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
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
|
options: { control: { type: "object" } },
|
|
@@ -14,14 +15,24 @@ export const styleSetup: StyleSetup = {
|
|
|
14
15
|
parts: cssParts,
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
const examples: Component[] = [
|
|
19
|
+
{
|
|
20
|
+
options: {
|
|
21
|
+
value: 50,
|
|
22
|
+
min: 0,
|
|
23
|
+
max: 100,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
28
|
+
definitions: null,
|
|
18
29
|
storybookArgs,
|
|
19
30
|
styleSetup,
|
|
20
31
|
htmlSlots,
|
|
21
32
|
i18n: i18nLanguages,
|
|
22
|
-
examples
|
|
23
|
-
name: "",
|
|
24
|
-
category: "",
|
|
25
|
-
tags: [],
|
|
33
|
+
examples,
|
|
34
|
+
name: "hb-gauge",
|
|
35
|
+
category: "graph",
|
|
36
|
+
tags: ["graph"],
|
|
26
37
|
size: {},
|
|
27
38
|
};
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@htmlbricks/hb-gauge",
|
|
3
3
|
"displayName": "Svelte-Bootstrap gauge",
|
|
4
4
|
"description": "Svelte-Bootstrap gauge",
|
|
5
|
-
"version": "0.8.
|
|
5
|
+
"version": "0.8.43",
|
|
6
6
|
"main": "release/release.js",
|
|
7
7
|
"publishConfig": {
|
|
8
8
|
"access": "public"
|
|
@@ -20,15 +20,18 @@
|
|
|
20
20
|
"start": "sirv dist",
|
|
21
21
|
"dev": "rm -rf ./dist && rollup -c -w",
|
|
22
22
|
"build": "rm -rf ./dist && rollup -c",
|
|
23
|
-
"generate-
|
|
24
|
-
"generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
23
|
+
"generate-manifest": "npm run generate-schemes && manifester --dir $PWD",
|
|
24
|
+
"generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
|
|
25
|
+
"generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
|
|
26
|
+
"generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
|
|
25
27
|
"copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
|
|
26
28
|
"build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
|
|
27
|
-
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-
|
|
29
|
+
"build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
|
|
28
30
|
"prepublish": "npm run build:release"
|
|
29
31
|
},
|
|
30
32
|
"devDependencies": {
|
|
31
|
-
"@htmlbricks/hb-jsutils": "^0.8.
|
|
33
|
+
"@htmlbricks/hb-jsutils": "^0.8.43",
|
|
34
|
+
"@htmlbricks/manifester": "^0.0.5",
|
|
32
35
|
"@rollup/plugin-alias": "^3.1.2",
|
|
33
36
|
"@rollup/plugin-commonjs": "^18.0.0",
|
|
34
37
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -42,7 +45,6 @@
|
|
|
42
45
|
"eslint": "^7.25.0",
|
|
43
46
|
"eslint-plugin-jsdoc": "^33.0.0",
|
|
44
47
|
"eslint-plugin-svelte3": "^3.2.0",
|
|
45
|
-
"generate-json-from-js-object": "^0.0.17",
|
|
46
48
|
"node-sass": "^6.0.1",
|
|
47
49
|
"postcss": "^8.2.13",
|
|
48
50
|
"postcss-load-config": "^3.0.1",
|
|
@@ -73,7 +75,7 @@
|
|
|
73
75
|
"webcomponents"
|
|
74
76
|
],
|
|
75
77
|
"contributors": [],
|
|
76
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "00bfec0d080db03f42972124577a880c9bf2570e",
|
|
77
79
|
"dependencies": {
|
|
78
80
|
"raphael": "^2.3.0"
|
|
79
81
|
}
|
package/release/docs.js
CHANGED
|
@@ -9,15 +9,25 @@ export var styleSetup = {
|
|
|
9
9
|
vars: cssVars,
|
|
10
10
|
parts: cssParts
|
|
11
11
|
};
|
|
12
|
+
var examples = [
|
|
13
|
+
{
|
|
14
|
+
options: {
|
|
15
|
+
value: 50,
|
|
16
|
+
min: 0,
|
|
17
|
+
max: 100
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
];
|
|
12
21
|
export var componentSetup = {
|
|
22
|
+
definitions: null,
|
|
13
23
|
storybookArgs: storybookArgs,
|
|
14
24
|
styleSetup: styleSetup,
|
|
15
25
|
htmlSlots: htmlSlots,
|
|
16
26
|
i18n: i18nLanguages,
|
|
17
|
-
examples:
|
|
18
|
-
name: "",
|
|
19
|
-
category: "",
|
|
20
|
-
tags: [],
|
|
27
|
+
examples: examples,
|
|
28
|
+
name: "hb-gauge",
|
|
29
|
+
category: "graph",
|
|
30
|
+
tags: ["graph"],
|
|
21
31
|
size: {}
|
|
22
32
|
};
|
|
23
33
|
//# 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,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;CACxC,CAAC;AAEF,IAAM,OAAO,GAAa,EAAE,CAAC;AAC7B,MAAM,CAAC,IAAM,QAAQ,GAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,CAAC;AACxE,MAAM,CAAC,IAAM,SAAS,GAAe,EAAE,CAAC;AACxC,MAAM,CAAC,IAAM,aAAa,GAAe,EAAE,CAAC;AAE5C,MAAM,CAAC,IAAM,UAAU,GAAe;IACrC,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,QAAQ;CACf,CAAC;AAEF,IAAM,QAAQ,GAAgB;IAC7B;QACC,OAAO,EAAE;YACR,KAAK,EAAE,EAAE;YACT,GAAG,EAAE,CAAC;YACN,GAAG,EAAE,GAAG;SACR;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,UAAU;IAChB,QAAQ,EAAE,OAAO;IACjB,IAAI,EAAE,CAAC,OAAO,CAAC;IACf,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export var storybookArgs = {
|
|
2
|
+
options: { control: { type: "object" } }
|
|
3
|
+
};
|
|
4
|
+
var cssVars = [];
|
|
5
|
+
export var cssParts = [{ name: "gauge", description: "" }];
|
|
6
|
+
export var htmlSlots = [];
|
|
7
|
+
export var i18nLanguages = [];
|
|
8
|
+
export var styleSetup = {
|
|
9
|
+
vars: cssVars,
|
|
10
|
+
parts: cssParts
|
|
11
|
+
};
|
|
12
|
+
var examples = [
|
|
13
|
+
{
|
|
14
|
+
options: {
|
|
15
|
+
value: 50,
|
|
16
|
+
min: 0,
|
|
17
|
+
max: 100
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
];
|
|
21
|
+
export var componentSetup = {
|
|
22
|
+
definitions: null,
|
|
23
|
+
storybookArgs: storybookArgs,
|
|
24
|
+
styleSetup: styleSetup,
|
|
25
|
+
htmlSlots: htmlSlots,
|
|
26
|
+
i18n: i18nLanguages,
|
|
27
|
+
examples: examples,
|
|
28
|
+
name: "hb-gauge",
|
|
29
|
+
category: "graph",
|
|
30
|
+
tags: ["graph"],
|
|
31
|
+
size: {}
|
|
32
|
+
};
|
|
33
|
+
//# sourceMappingURL=docs.js.map
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
|
|
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
|
options: { control: { type: "object" } },
|
|
@@ -14,14 +15,24 @@ export const styleSetup: StyleSetup = {
|
|
|
14
15
|
parts: cssParts,
|
|
15
16
|
};
|
|
16
17
|
|
|
17
|
-
|
|
18
|
+
const examples: Component[] = [
|
|
19
|
+
{
|
|
20
|
+
options: {
|
|
21
|
+
value: 50,
|
|
22
|
+
min: 0,
|
|
23
|
+
max: 100,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
27
|
+
export const componentSetup: ComponentSetup & { examples: Component[] } = {
|
|
28
|
+
definitions: null,
|
|
18
29
|
storybookArgs,
|
|
19
30
|
styleSetup,
|
|
20
31
|
htmlSlots,
|
|
21
32
|
i18n: i18nLanguages,
|
|
22
|
-
examples
|
|
23
|
-
name: "",
|
|
24
|
-
category: "",
|
|
25
|
-
tags: [],
|
|
33
|
+
examples,
|
|
34
|
+
name: "hb-gauge",
|
|
35
|
+
category: "graph",
|
|
36
|
+
tags: ["graph"],
|
|
26
37
|
size: {},
|
|
27
38
|
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
{
|
|
2
|
+
"definitions": {
|
|
3
|
+
"events": {
|
|
4
|
+
"$ref": "#/definitions/Events",
|
|
5
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
6
|
+
"definitions": {
|
|
7
|
+
"Events": {
|
|
8
|
+
"additionalProperties": false,
|
|
9
|
+
"type": "object"
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"component": {
|
|
14
|
+
"$ref": "#/definitions/Component",
|
|
15
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
16
|
+
"definitions": {
|
|
17
|
+
"Component": {
|
|
18
|
+
"additionalProperties": false,
|
|
19
|
+
"properties": {
|
|
20
|
+
"id": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
},
|
|
23
|
+
"options": {
|
|
24
|
+
"$ref": "#/definitions/IGauge"
|
|
25
|
+
},
|
|
26
|
+
"style": {
|
|
27
|
+
"type": "string"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": [
|
|
31
|
+
"options"
|
|
32
|
+
],
|
|
33
|
+
"type": "object"
|
|
34
|
+
},
|
|
35
|
+
"IGauge": {
|
|
36
|
+
"additionalProperties": false,
|
|
37
|
+
"properties": {
|
|
38
|
+
"max": {
|
|
39
|
+
"type": "number"
|
|
40
|
+
},
|
|
41
|
+
"min": {
|
|
42
|
+
"type": "number"
|
|
43
|
+
},
|
|
44
|
+
"value": {
|
|
45
|
+
"type": "number"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": [
|
|
49
|
+
"value",
|
|
50
|
+
"min",
|
|
51
|
+
"max"
|
|
52
|
+
],
|
|
53
|
+
"type": "object"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"storybookArgs": {
|
|
59
|
+
"options": {
|
|
60
|
+
"control": {
|
|
61
|
+
"type": "object"
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
"styleSetup": {
|
|
66
|
+
"vars": [],
|
|
67
|
+
"parts": [
|
|
68
|
+
{
|
|
69
|
+
"name": "gauge",
|
|
70
|
+
"description": ""
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"htmlSlots": [],
|
|
75
|
+
"i18n": [],
|
|
76
|
+
"examples": [
|
|
77
|
+
{
|
|
78
|
+
"options": {
|
|
79
|
+
"value": 50,
|
|
80
|
+
"min": 0,
|
|
81
|
+
"max": 100
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"name": "hb-gauge",
|
|
86
|
+
"category": "graph",
|
|
87
|
+
"tags": [
|
|
88
|
+
"graph"
|
|
89
|
+
],
|
|
90
|
+
"size": {}
|
|
91
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$ref": "#/definitions/Component",
|
|
2
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
4
|
"definitions": {
|
|
4
5
|
"Component": {
|
|
@@ -19,10 +20,6 @@
|
|
|
19
20
|
],
|
|
20
21
|
"type": "object"
|
|
21
22
|
},
|
|
22
|
-
"Events": {
|
|
23
|
-
"additionalProperties": false,
|
|
24
|
-
"type": "object"
|
|
25
|
-
},
|
|
26
23
|
"IGauge": {
|
|
27
24
|
"additionalProperties": false,
|
|
28
25
|
"properties": {
|
package/release/docs.type.d.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"storybookArgs": {
|
|
3
|
-
"options": {
|
|
4
|
-
"control": {
|
|
5
|
-
"type": "object"
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
"styleSetup": {
|
|
10
|
-
"vars": [],
|
|
11
|
-
"parts": [
|
|
12
|
-
{
|
|
13
|
-
"name": "gauge",
|
|
14
|
-
"description": ""
|
|
15
|
-
}
|
|
16
|
-
]
|
|
17
|
-
},
|
|
18
|
-
"htmlSlots": [],
|
|
19
|
-
"i18n": [],
|
|
20
|
-
"examples": [],
|
|
21
|
-
"name": "",
|
|
22
|
-
"category": "",
|
|
23
|
-
"tags": [],
|
|
24
|
-
"size": {}
|
|
25
|
-
}
|