@htmlbricks/hb-gauge 0.8.37 → 0.8.39
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 +3 -2
- package/package.json +9 -7
- package/release/docs.js +1 -0
- package/release/docs.js.map +1 -1
- package/release/docs.mjs +24 -0
- package/release/docs.ts +3 -2
- package/release/manifest.json +81 -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,4 @@
|
|
|
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
2
|
|
|
3
3
|
export const storybookArgs = {
|
|
4
4
|
options: { control: { type: "object" } },
|
|
@@ -14,7 +14,8 @@ export const styleSetup: StyleSetup = {
|
|
|
14
14
|
parts: cssParts,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export const componentSetup = {
|
|
17
|
+
export const componentSetup: ComponentSetup = {
|
|
18
|
+
definitions: null,
|
|
18
19
|
storybookArgs,
|
|
19
20
|
styleSetup,
|
|
20
21
|
htmlSlots,
|
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.39",
|
|
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.39",
|
|
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": "a771bab3b3337eaa36e3c3330545158c3ef927e6",
|
|
77
79
|
"dependencies": {
|
|
78
80
|
"raphael": "^2.3.0"
|
|
79
81
|
}
|
package/release/docs.js
CHANGED
package/release/docs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,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,MAAM,CAAC,IAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,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,MAAM,CAAC,IAAM,cAAc,GAAmB;IAC7C,WAAW,EAAE,IAAI;IACjB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACR,CAAC"}
|
package/release/docs.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export var componentSetup = {
|
|
13
|
+
definitions: null,
|
|
14
|
+
storybookArgs: storybookArgs,
|
|
15
|
+
styleSetup: styleSetup,
|
|
16
|
+
htmlSlots: htmlSlots,
|
|
17
|
+
i18n: i18nLanguages,
|
|
18
|
+
examples: [],
|
|
19
|
+
name: "",
|
|
20
|
+
category: "",
|
|
21
|
+
tags: [],
|
|
22
|
+
size: {}
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=docs.js.map
|
package/release/docs.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
2
|
|
|
3
3
|
export const storybookArgs = {
|
|
4
4
|
options: { control: { type: "object" } },
|
|
@@ -14,7 +14,8 @@ export const styleSetup: StyleSetup = {
|
|
|
14
14
|
parts: cssParts,
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export const componentSetup = {
|
|
17
|
+
export const componentSetup: ComponentSetup = {
|
|
18
|
+
definitions: null,
|
|
18
19
|
storybookArgs,
|
|
19
20
|
styleSetup,
|
|
20
21
|
htmlSlots,
|
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
"name": "",
|
|
78
|
+
"category": "",
|
|
79
|
+
"tags": [],
|
|
80
|
+
"size": {}
|
|
81
|
+
}
|
|
@@ -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
|
-
}
|