@htmlbricks/hb-calendar-events 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,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.45",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -34,8 +34,8 @@
34
34
  "dayjs": "^1.10.7"
35
35
  },
36
36
  "devDependencies": {
37
- "@htmlbricks/hb-jsutils": "^0.8.39",
38
- "@htmlbricks/manifester": "^0.0.5",
37
+ "@htmlbricks/hb-jsutils": "^0.8.45",
38
+ "@htmlbricks/manifester": "^0.0.9",
39
39
  "@rollup/plugin-alias": "^3.1.2",
40
40
  "@rollup/plugin-commonjs": "^18.0.0",
41
41
  "@rollup/plugin-json": "^4.1.0",
@@ -79,5 +79,5 @@
79
79
  "webcomponents"
80
80
  ],
81
81
  "contributors": [],
82
- "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
82
+ "gitHead": "cad34cdf98084f7b6d972812fbc05c783318f0ea"
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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M,GAAwB;IACnC;QACC,IAAI,EAAE,IAAI,IAAI,EAAE;QAChB,EAAE,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.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-27T20:03:33.619Z",
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
  }
package/release/docs.mjs DELETED
@@ -1,39 +0,0 @@
1
- export var storybookArgs = {
2
- events: { control: { type: "object" } },
3
- date: { control: { type: "text" } },
4
- selected: { control: { type: "text" } },
5
- calendarEventClick: { action: "calendarEventClickEvent" },
6
- changeCalendarDate: { action: "changeCalendarDateEvent" },
7
- changeSelectedDate: { action: "changeSelectedDateEvent" }
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
- ];
14
- var cssParts = [
15
- {
16
- name: "calendar-header"
17
- },
18
- { name: "calendar-current-time-header" },
19
- { name: "cell" },
20
- ];
21
- export var htmlSlots = [];
22
- export var i18nLanguages = [];
23
- export var styleSetup = {
24
- vars: cssVars,
25
- parts: cssParts
26
- };
27
- export var componentSetup = {
28
- definitions: null,
29
- storybookArgs: storybookArgs,
30
- styleSetup: styleSetup,
31
- htmlSlots: htmlSlots,
32
- i18n: i18nLanguages,
33
- examples: [],
34
- name: "",
35
- category: "",
36
- tags: [],
37
- size: {}
38
- };
39
- //# sourceMappingURL=docs.js.map
@@ -1,91 +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
- "date": {
9
- "format": "date-time",
10
- "type": "string"
11
- },
12
- "events": {
13
- "items": {
14
- "$ref": "#/definitions/IEvent"
15
- },
16
- "type": "array"
17
- },
18
- "id": {
19
- "type": "string"
20
- },
21
- "selected": {
22
- "format": "date-time",
23
- "type": "string"
24
- },
25
- "style": {
26
- "type": "string"
27
- }
28
- },
29
- "type": "object"
30
- },
31
- "IEvent": {
32
- "additionalProperties": false,
33
- "properties": {
34
- "color": {
35
- "type": "string"
36
- },
37
- "date": {
38
- "format": "date-time",
39
- "type": "string"
40
- },
41
- "details": {
42
- "additionalProperties": false,
43
- "properties": {
44
- "author": {
45
- "type": "string"
46
- },
47
- "avatarUrl": {
48
- "type": "string"
49
- },
50
- "end": {
51
- "format": "date-time",
52
- "type": "string"
53
- },
54
- "imageUrl": {
55
- "type": "string"
56
- },
57
- "subject": {
58
- "type": "string"
59
- },
60
- "text": {
61
- "type": "string"
62
- }
63
- },
64
- "required": [
65
- "subject",
66
- "text"
67
- ],
68
- "type": "object"
69
- },
70
- "icon": {
71
- "type": "string"
72
- },
73
- "id": {
74
- "type": "string"
75
- },
76
- "label": {
77
- "type": "string"
78
- },
79
- "link": {
80
- "type": "string"
81
- }
82
- },
83
- "required": [
84
- "date",
85
- "label",
86
- "id"
87
- ],
88
- "type": "object"
89
- }
90
- }
91
- }
@@ -1,55 +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
- "calendarEventClick": {
9
- "additionalProperties": false,
10
- "properties": {
11
- "eventId": {
12
- "type": "string"
13
- }
14
- },
15
- "required": [
16
- "eventId"
17
- ],
18
- "type": "object"
19
- },
20
- "changeCalendarDate": {
21
- "additionalProperties": false,
22
- "properties": {
23
- "date": {
24
- "format": "date-time",
25
- "type": "string"
26
- }
27
- },
28
- "required": [
29
- "date"
30
- ],
31
- "type": "object"
32
- },
33
- "changeSelectedDate": {
34
- "additionalProperties": false,
35
- "properties": {
36
- "selectedDate": {
37
- "format": "date-time",
38
- "type": "string"
39
- }
40
- },
41
- "required": [
42
- "selectedDate"
43
- ],
44
- "type": "object"
45
- }
46
- },
47
- "required": [
48
- "calendarEventClick",
49
- "changeCalendarDate",
50
- "changeSelectedDate"
51
- ],
52
- "type": "object"
53
- }
54
- }
55
- }