@htmlbricks/hb-calendar-events 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 CHANGED
@@ -1,4 +1,6 @@
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";
3
+ import dayjs from "dayjs";
2
4
 
3
5
  export const storybookArgs = {
4
6
  events: { control: { type: "object" } },
@@ -29,15 +31,28 @@ export const styleSetup: StyleSetup = {
29
31
  vars: cssVars,
30
32
  parts: cssParts,
31
33
  };
32
-
33
- export const 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[] } = {
48
+ definitions: null,
34
49
  storybookArgs,
35
50
  styleSetup,
36
51
  htmlSlots,
37
52
  i18n: i18nLanguages,
38
- examples: [],
39
- name: "",
40
- category: "",
41
- tags: [],
53
+ examples,
54
+ name: "hb-calendar-events",
55
+ category: "components",
56
+ tags: ["components"],
42
57
  size: {},
43
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.37",
5
+ "version": "0.8.43",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -20,11 +20,13 @@
20
20
  "start": "sirv dist",
21
21
  "dev": "rm -rf ./dist && rollup -c -w",
22
22
  "build": "rm -rf ./dist && rollup -c",
23
- "generate-docs": "cp $PWD/dist/docs.js $PWD/dist/docs.mjs && generate-json-from-js-object --input $PWD/dist/docs.mjs --var componentSetup --output $PWD/dist/docs.type.d.json && rm $PWD/dist/docs.mjs",
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-schema && npm run generate-docs && npm run copydest",
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
  "dependencies": {
@@ -32,7 +34,8 @@
32
34
  "dayjs": "^1.10.7"
33
35
  },
34
36
  "devDependencies": {
35
- "@htmlbricks/hb-jsutils": "^0.8.37",
37
+ "@htmlbricks/hb-jsutils": "^0.8.43",
38
+ "@htmlbricks/manifester": "^0.0.5",
36
39
  "@rollup/plugin-alias": "^3.1.2",
37
40
  "@rollup/plugin-commonjs": "^18.0.0",
38
41
  "@rollup/plugin-json": "^4.1.0",
@@ -46,7 +49,6 @@
46
49
  "eslint": "^7.25.0",
47
50
  "eslint-plugin-jsdoc": "^33.0.0",
48
51
  "eslint-plugin-svelte3": "^3.2.0",
49
- "generate-json-from-js-object": "^0.0.17",
50
52
  "node-sass": "^6.0.1",
51
53
  "postcss": "^8.2.13",
52
54
  "postcss-load-config": "^3.0.1",
@@ -77,5 +79,5 @@
77
79
  "webcomponents"
78
80
  ],
79
81
  "contributors": [],
80
- "gitHead": "1a737cc2f90ff5f9c3bd06a155743e47329e8861"
82
+ "gitHead": "00bfec0d080db03f42972124577a880c9bf2570e"
81
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,15 +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 = {
42
+ definitions: null,
28
43
  storybookArgs: storybookArgs,
29
44
  styleSetup: styleSetup,
30
45
  htmlSlots: htmlSlots,
31
46
  i18n: i18nLanguages,
32
- examples: [],
33
- name: "",
34
- category: "",
35
- tags: [],
47
+ examples: examples,
48
+ name: "hb-calendar-events",
49
+ category: "components",
50
+ tags: ["components"],
36
51
  size: {}
37
52
  };
38
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,EAAE;IACvC,kBAAkB,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE;I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,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"}
@@ -0,0 +1,53 @@
1
+ import dayjs from "dayjs";
2
+ export var storybookArgs = {
3
+ events: { control: { type: "object" } },
4
+ date: { control: { type: "text" } },
5
+ selected: { control: { type: "text" } },
6
+ calendarEventClick: { action: "calendarEventClickEvent" },
7
+ changeCalendarDate: { action: "changeCalendarDateEvent" },
8
+ changeSelectedDate: { action: "changeSelectedDateEvent" }
9
+ };
10
+ var cssVars = [
11
+ { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
12
+ { name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
13
+ { name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
14
+ ];
15
+ var cssParts = [
16
+ {
17
+ name: "calendar-header"
18
+ },
19
+ { name: "calendar-current-time-header" },
20
+ { name: "cell" },
21
+ ];
22
+ export var htmlSlots = [];
23
+ export var i18nLanguages = [];
24
+ export var styleSetup = {
25
+ vars: cssVars,
26
+ parts: cssParts
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 }];
41
+ export var componentSetup = {
42
+ definitions: null,
43
+ storybookArgs: storybookArgs,
44
+ styleSetup: styleSetup,
45
+ htmlSlots: htmlSlots,
46
+ i18n: i18nLanguages,
47
+ examples: examples,
48
+ name: "hb-calendar-events",
49
+ category: "components",
50
+ tags: ["components"],
51
+ size: {}
52
+ };
53
+ //# sourceMappingURL=docs.js.map
package/release/docs.ts CHANGED
@@ -1,4 +1,6 @@
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";
3
+ import dayjs from "dayjs";
2
4
 
3
5
  export const storybookArgs = {
4
6
  events: { control: { type: "object" } },
@@ -29,15 +31,28 @@ export const styleSetup: StyleSetup = {
29
31
  vars: cssVars,
30
32
  parts: cssParts,
31
33
  };
32
-
33
- export const 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[] } = {
48
+ definitions: null,
34
49
  storybookArgs,
35
50
  styleSetup,
36
51
  htmlSlots,
37
52
  i18n: i18nLanguages,
38
- examples: [],
39
- name: "",
40
- category: "",
41
- tags: [],
53
+ examples,
54
+ name: "hb-calendar-events",
55
+ category: "components",
56
+ tags: ["components"],
42
57
  size: {},
43
58
  };
@@ -0,0 +1,233 @@
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
+ "properties": {
10
+ "calendarEventClick": {
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "eventId": {
14
+ "type": "string"
15
+ }
16
+ },
17
+ "required": [
18
+ "eventId"
19
+ ],
20
+ "type": "object"
21
+ },
22
+ "changeCalendarDate": {
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "date": {
26
+ "format": "date-time",
27
+ "type": "string"
28
+ }
29
+ },
30
+ "required": [
31
+ "date"
32
+ ],
33
+ "type": "object"
34
+ },
35
+ "changeSelectedDate": {
36
+ "additionalProperties": false,
37
+ "properties": {
38
+ "selectedDate": {
39
+ "format": "date-time",
40
+ "type": "string"
41
+ }
42
+ },
43
+ "required": [
44
+ "selectedDate"
45
+ ],
46
+ "type": "object"
47
+ }
48
+ },
49
+ "required": [
50
+ "calendarEventClick",
51
+ "changeCalendarDate",
52
+ "changeSelectedDate"
53
+ ],
54
+ "type": "object"
55
+ }
56
+ }
57
+ },
58
+ "component": {
59
+ "$ref": "#/definitions/Component",
60
+ "$schema": "http://json-schema.org/draft-07/schema#",
61
+ "definitions": {
62
+ "Component": {
63
+ "additionalProperties": false,
64
+ "properties": {
65
+ "date": {
66
+ "format": "date-time",
67
+ "type": "string"
68
+ },
69
+ "events": {
70
+ "items": {
71
+ "$ref": "#/definitions/IEvent"
72
+ },
73
+ "type": "array"
74
+ },
75
+ "id": {
76
+ "type": "string"
77
+ },
78
+ "selected": {
79
+ "format": "date-time",
80
+ "type": "string"
81
+ },
82
+ "style": {
83
+ "type": "string"
84
+ }
85
+ },
86
+ "type": "object"
87
+ },
88
+ "IEvent": {
89
+ "additionalProperties": false,
90
+ "properties": {
91
+ "color": {
92
+ "type": "string"
93
+ },
94
+ "date": {
95
+ "format": "date-time",
96
+ "type": "string"
97
+ },
98
+ "details": {
99
+ "additionalProperties": false,
100
+ "properties": {
101
+ "author": {
102
+ "type": "string"
103
+ },
104
+ "avatarUrl": {
105
+ "type": "string"
106
+ },
107
+ "end": {
108
+ "format": "date-time",
109
+ "type": "string"
110
+ },
111
+ "imageUrl": {
112
+ "type": "string"
113
+ },
114
+ "subject": {
115
+ "type": "string"
116
+ },
117
+ "text": {
118
+ "type": "string"
119
+ }
120
+ },
121
+ "required": [
122
+ "subject",
123
+ "text"
124
+ ],
125
+ "type": "object"
126
+ },
127
+ "icon": {
128
+ "type": "string"
129
+ },
130
+ "id": {
131
+ "type": "string"
132
+ },
133
+ "label": {
134
+ "type": "string"
135
+ },
136
+ "link": {
137
+ "type": "string"
138
+ }
139
+ },
140
+ "required": [
141
+ "date",
142
+ "label",
143
+ "id"
144
+ ],
145
+ "type": "object"
146
+ }
147
+ }
148
+ }
149
+ },
150
+ "storybookArgs": {
151
+ "events": {
152
+ "control": {
153
+ "type": "object"
154
+ }
155
+ },
156
+ "date": {
157
+ "control": {
158
+ "type": "text"
159
+ }
160
+ },
161
+ "selected": {
162
+ "control": {
163
+ "type": "text"
164
+ }
165
+ },
166
+ "calendarEventClick": {
167
+ "action": "calendarEventClickEvent"
168
+ },
169
+ "changeCalendarDate": {
170
+ "action": "changeCalendarDateEvent"
171
+ },
172
+ "changeSelectedDate": {
173
+ "action": "changeSelectedDateEvent"
174
+ }
175
+ },
176
+ "styleSetup": {
177
+ "vars": [
178
+ {
179
+ "name": "--bs-primary",
180
+ "valueType": "color",
181
+ "theme": "bootstrap",
182
+ "defaultValue": "#07689f"
183
+ },
184
+ {
185
+ "name": "--bs-secondary",
186
+ "valueType": "color",
187
+ "theme": "bootstrap",
188
+ "defaultValue": "#c9d6df"
189
+ },
190
+ {
191
+ "name": "--bs-success",
192
+ "valueType": "color",
193
+ "theme": "bootstrap",
194
+ "defaultValue": "#11d3bc"
195
+ }
196
+ ],
197
+ "parts": [
198
+ {
199
+ "name": "calendar-header"
200
+ },
201
+ {
202
+ "name": "calendar-current-time-header"
203
+ },
204
+ {
205
+ "name": "cell"
206
+ }
207
+ ]
208
+ },
209
+ "htmlSlots": [],
210
+ "i18n": [],
211
+ "examples": [
212
+ {
213
+ "events": [
214
+ {
215
+ "date": "2022-03-27T19:11:15.633Z",
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
+ ],
232
+ "size": {}
233
+ }
@@ -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": {
@@ -27,55 +28,6 @@
27
28
  },
28
29
  "type": "object"
29
30
  },
30
- "Events": {
31
- "additionalProperties": false,
32
- "properties": {
33
- "calendarEventClick": {
34
- "additionalProperties": false,
35
- "properties": {
36
- "eventId": {
37
- "type": "string"
38
- }
39
- },
40
- "required": [
41
- "eventId"
42
- ],
43
- "type": "object"
44
- },
45
- "changeCalendarDate": {
46
- "additionalProperties": false,
47
- "properties": {
48
- "date": {
49
- "format": "date-time",
50
- "type": "string"
51
- }
52
- },
53
- "required": [
54
- "date"
55
- ],
56
- "type": "object"
57
- },
58
- "changeSelectedDate": {
59
- "additionalProperties": false,
60
- "properties": {
61
- "selectedDate": {
62
- "format": "date-time",
63
- "type": "string"
64
- }
65
- },
66
- "required": [
67
- "selectedDate"
68
- ],
69
- "type": "object"
70
- }
71
- },
72
- "required": [
73
- "calendarEventClick",
74
- "changeCalendarDate",
75
- "changeSelectedDate"
76
- ],
77
- "type": "object"
78
- },
79
31
  "IEvent": {
80
32
  "additionalProperties": false,
81
33
  "properties": {
@@ -0,0 +1,55 @@
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
+ }
@@ -1,68 +0,0 @@
1
- {
2
- "storybookArgs": {
3
- "events": {
4
- "control": {
5
- "type": "object"
6
- }
7
- },
8
- "date": {
9
- "control": {
10
- "type": "text"
11
- }
12
- },
13
- "selected": {
14
- "control": {
15
- "type": "text"
16
- }
17
- },
18
- "calendarEventClick": {
19
- "action": "calendarEventClickEvent"
20
- },
21
- "changeCalendarDate": {
22
- "action": "changeCalendarDateEvent"
23
- },
24
- "changeSelectedDate": {
25
- "action": "changeSelectedDateEvent"
26
- }
27
- },
28
- "styleSetup": {
29
- "vars": [
30
- {
31
- "name": "--bs-primary",
32
- "valueType": "color",
33
- "theme": "bootstrap",
34
- "defaultValue": "#07689f"
35
- },
36
- {
37
- "name": "--bs-secondary",
38
- "valueType": "color",
39
- "theme": "bootstrap",
40
- "defaultValue": "#c9d6df"
41
- },
42
- {
43
- "name": "--bs-success",
44
- "valueType": "color",
45
- "theme": "bootstrap",
46
- "defaultValue": "#11d3bc"
47
- }
48
- ],
49
- "parts": [
50
- {
51
- "name": "calendar-header"
52
- },
53
- {
54
- "name": "calendar-current-time-header"
55
- },
56
- {
57
- "name": "cell"
58
- }
59
- ]
60
- },
61
- "htmlSlots": [],
62
- "i18n": [],
63
- "examples": [],
64
- "name": "",
65
- "category": "",
66
- "tags": [],
67
- "size": {}
68
- }