@htmlbricks/hb-gauge 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 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
  options: { control: { type: "object" } },
@@ -14,15 +15,24 @@ export const styleSetup: StyleSetup = {
14
15
  parts: cssParts,
15
16
  };
16
17
 
17
- export const componentSetup: ComponentSetup = {
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[] } = {
18
28
  definitions: null,
19
29
  storybookArgs,
20
30
  styleSetup,
21
31
  htmlSlots,
22
32
  i18n: i18nLanguages,
23
- examples: [],
24
- name: "",
25
- category: "",
26
- tags: [],
33
+ examples,
34
+ name: "hb-gauge",
35
+ category: "graph",
36
+ tags: ["graph"],
27
37
  size: {},
28
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.39",
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.39",
34
- "@htmlbricks/manifester": "^0.0.5",
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,7 +75,7 @@
75
75
  "webcomponents"
76
76
  ],
77
77
  "contributors": [],
78
- "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6",
78
+ "gitHead": "cad34cdf98084f7b6d972812fbc05c783318f0ea",
79
79
  "dependencies": {
80
80
  "raphael": "^2.3.0"
81
81
  }
package/release/docs.js CHANGED
@@ -9,16 +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 = {
13
22
  definitions: null,
14
23
  storybookArgs: storybookArgs,
15
24
  styleSetup: styleSetup,
16
25
  htmlSlots: htmlSlots,
17
26
  i18n: i18nLanguages,
18
- examples: [],
19
- name: "",
20
- category: "",
21
- tags: [],
27
+ examples: examples,
28
+ name: "hb-gauge",
29
+ category: "graph",
30
+ tags: ["graph"],
22
31
  size: {}
23
32
  };
24
33
  //# sourceMappingURL=docs.js.map
@@ -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,CA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@
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
  options: { control: { type: "object" } },
@@ -14,15 +15,24 @@ export const styleSetup: StyleSetup = {
14
15
  parts: cssParts,
15
16
  };
16
17
 
17
- export const componentSetup: ComponentSetup = {
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[] } = {
18
28
  definitions: null,
19
29
  storybookArgs,
20
30
  styleSetup,
21
31
  htmlSlots,
22
32
  i18n: i18nLanguages,
23
- examples: [],
24
- name: "",
25
- category: "",
26
- tags: [],
33
+ examples,
34
+ name: "hb-gauge",
35
+ category: "graph",
36
+ tags: ["graph"],
27
37
  size: {},
28
38
  };
@@ -73,9 +73,19 @@
73
73
  },
74
74
  "htmlSlots": [],
75
75
  "i18n": [],
76
- "examples": [],
77
- "name": "",
78
- "category": "",
79
- "tags": [],
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
+ ],
80
90
  "size": {}
81
91
  }
package/release/docs.mjs DELETED
@@ -1,24 +0,0 @@
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
@@ -1,44 +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
- "options": {
12
- "$ref": "#/definitions/IGauge"
13
- },
14
- "style": {
15
- "type": "string"
16
- }
17
- },
18
- "required": [
19
- "options"
20
- ],
21
- "type": "object"
22
- },
23
- "IGauge": {
24
- "additionalProperties": false,
25
- "properties": {
26
- "max": {
27
- "type": "number"
28
- },
29
- "min": {
30
- "type": "number"
31
- },
32
- "value": {
33
- "type": "number"
34
- }
35
- },
36
- "required": [
37
- "value",
38
- "min",
39
- "max"
40
- ],
41
- "type": "object"
42
- }
43
- }
44
- }
@@ -1,10 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Events",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Events": {
6
- "additionalProperties": false,
7
- "type": "object"
8
- }
9
- }
10
- }