@htmlbricks/hb-calendar-events 0.8.39 → 0.8.42

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,6 @@
1
1
  import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
+ import type { Component } from "../app/types/webcomponent.type";
3
+ import dayjs from "dayjs";
2
4
 
3
5
  export const storybookArgs = {
4
6
  events: { control: { type: "object" } },
@@ -29,16 +31,28 @@ export const styleSetup: StyleSetup = {
29
31
  vars: cssVars,
30
32
  parts: cssParts,
31
33
  };
32
-
33
- export const componentSetup: ComponentSetup = {
34
+ const events: Component["events"] = [
35
+ {
36
+ date: new Date(),
37
+ id: "test",
38
+ label: "thetest",
39
+ },
40
+ {
41
+ date: dayjs().startOf("month").subtract(1, "day").toDate(),
42
+ id: "test2",
43
+ label: "thetest start",
44
+ },
45
+ ];
46
+ const examples: Component[] = [{ events }];
47
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
34
48
  definitions: null,
35
49
  storybookArgs,
36
50
  styleSetup,
37
51
  htmlSlots,
38
52
  i18n: i18nLanguages,
39
- examples: [],
40
- name: "",
41
- category: "",
42
- tags: [],
53
+ examples,
54
+ name: "hb-calendar-events",
55
+ category: "components",
56
+ tags: ["components"],
43
57
  size: {},
44
58
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-calendar-events",
3
3
  "displayName": "Svelte Calendar WebComponent",
4
4
  "description": "Svelte Calendar WebComponent",
5
- "version": "0.8.39",
5
+ "version": "0.8.42",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -34,7 +34,7 @@
34
34
  "dayjs": "^1.10.7"
35
35
  },
36
36
  "devDependencies": {
37
- "@htmlbricks/hb-jsutils": "^0.8.39",
37
+ "@htmlbricks/hb-jsutils": "^0.8.42",
38
38
  "@htmlbricks/manifester": "^0.0.5",
39
39
  "@rollup/plugin-alias": "^3.1.2",
40
40
  "@rollup/plugin-commonjs": "^18.0.0",
@@ -79,5 +79,5 @@
79
79
  "webcomponents"
80
80
  ],
81
81
  "contributors": [],
82
- "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
82
+ "gitHead": "d6919a86b5627d502a37fe2a28830a32724d0a52"
83
83
  }
package/release/docs.js CHANGED
@@ -1,3 +1,4 @@
1
+ import dayjs from "dayjs";
1
2
  export var storybookArgs = {
2
3
  events: { control: { type: "object" } },
3
4
  date: { control: { type: "text" } },
@@ -24,16 +25,29 @@ export var styleSetup = {
24
25
  vars: cssVars,
25
26
  parts: cssParts
26
27
  };
28
+ var events = [
29
+ {
30
+ date: new Date(),
31
+ id: "test",
32
+ label: "thetest"
33
+ },
34
+ {
35
+ date: dayjs().startOf("month").subtract(1, "day").toDate(),
36
+ id: "test2",
37
+ label: "thetest start"
38
+ },
39
+ ];
40
+ var examples = [{ events: events }];
27
41
  export var componentSetup = {
28
42
  definitions: null,
29
43
  storybookArgs: storybookArgs,
30
44
  styleSetup: styleSetup,
31
45
  htmlSlots: htmlSlots,
32
46
  i18n: i18nLanguages,
33
- examples: [],
34
- name: "",
35
- category: "",
36
- tags: [],
47
+ examples: examples,
48
+ name: "hb-calendar-events",
49
+ category: "components",
50
+ tags: ["components"],
37
51
  size: {}
38
52
  };
39
53
  //# 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,MAAM,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACvC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE;IACnC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE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,EAAE,MAAM;QACV,KAAK,EAAE,SAAS;KAChB;IACD;QACC,IAAI,EAAE,KAAK,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,MAAM,EAAE;QAC1D,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,eAAe;KACtB;CACD,CAAC;AACF,IAAM,QAAQ,GAAgB,CAAC,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;AAC3C,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,oBAAoB;IAC1B,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,IAAI,EAAE,EAAE;CACR,CAAC"}
package/release/docs.mjs CHANGED
@@ -1,3 +1,4 @@
1
+ import dayjs from "dayjs";
1
2
  export var storybookArgs = {
2
3
  events: { control: { type: "object" } },
3
4
  date: { control: { type: "text" } },
@@ -24,16 +25,29 @@ export var styleSetup = {
24
25
  vars: cssVars,
25
26
  parts: cssParts
26
27
  };
28
+ var events = [
29
+ {
30
+ date: new Date(),
31
+ id: "test",
32
+ label: "thetest"
33
+ },
34
+ {
35
+ date: dayjs().startOf("month").subtract(1, "day").toDate(),
36
+ id: "test2",
37
+ label: "thetest start"
38
+ },
39
+ ];
40
+ var examples = [{ events: events }];
27
41
  export var componentSetup = {
28
42
  definitions: null,
29
43
  storybookArgs: storybookArgs,
30
44
  styleSetup: styleSetup,
31
45
  htmlSlots: htmlSlots,
32
46
  i18n: i18nLanguages,
33
- examples: [],
34
- name: "",
35
- category: "",
36
- tags: [],
47
+ examples: examples,
48
+ name: "hb-calendar-events",
49
+ category: "components",
50
+ tags: ["components"],
37
51
  size: {}
38
52
  };
39
53
  //# sourceMappingURL=docs.js.map
package/release/docs.ts CHANGED
@@ -1,4 +1,6 @@
1
1
  import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
+ import type { Component } from "../app/types/webcomponent.type";
3
+ import dayjs from "dayjs";
2
4
 
3
5
  export const storybookArgs = {
4
6
  events: { control: { type: "object" } },
@@ -29,16 +31,28 @@ export const styleSetup: StyleSetup = {
29
31
  vars: cssVars,
30
32
  parts: cssParts,
31
33
  };
32
-
33
- export const componentSetup: ComponentSetup = {
34
+ const events: Component["events"] = [
35
+ {
36
+ date: new Date(),
37
+ id: "test",
38
+ label: "thetest",
39
+ },
40
+ {
41
+ date: dayjs().startOf("month").subtract(1, "day").toDate(),
42
+ id: "test2",
43
+ label: "thetest start",
44
+ },
45
+ ];
46
+ const examples: Component[] = [{ events }];
47
+ export const componentSetup: ComponentSetup & { examples: Component[] } = {
34
48
  definitions: null,
35
49
  storybookArgs,
36
50
  styleSetup,
37
51
  htmlSlots,
38
52
  i18n: i18nLanguages,
39
- examples: [],
40
- name: "",
41
- category: "",
42
- tags: [],
53
+ examples,
54
+ name: "hb-calendar-events",
55
+ category: "components",
56
+ tags: ["components"],
43
57
  size: {},
44
58
  };
@@ -208,9 +208,26 @@
208
208
  },
209
209
  "htmlSlots": [],
210
210
  "i18n": [],
211
- "examples": [],
212
- "name": "",
213
- "category": "",
214
- "tags": [],
211
+ "examples": [
212
+ {
213
+ "events": [
214
+ {
215
+ "date": "2022-03-27T18:42:57.872Z",
216
+ "id": "test",
217
+ "label": "thetest"
218
+ },
219
+ {
220
+ "date": "2022-02-27T23:00:00.000Z",
221
+ "id": "test2",
222
+ "label": "thetest start"
223
+ }
224
+ ]
225
+ }
226
+ ],
227
+ "name": "hb-calendar-events",
228
+ "category": "components",
229
+ "tags": [
230
+ "components"
231
+ ],
215
232
  "size": {}
216
233
  }