@htmlbricks/hb-calendar-appointments 0.14.40

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/LICENSE.md ADDED
@@ -0,0 +1,68 @@
1
+ ## MIT License
2
+
3
+ > Code and Contributions
4
+
5
+ Copyright (c) 2021 Dario Caruso (dottgonzo)
6
+
7
+ Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ of this software and associated documentation files (the "Software"), to deal
9
+ in the Software without restriction, including without limitation the rights
10
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ copies of the Software, and to permit persons to whom the Software is
12
+ furnished to do so, subject to the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be included in all
15
+ copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ SOFTWARE.
24
+
25
+ ##### https://choosealicense.com/licenses/mit/
26
+
27
+ ## Creative Commons BY-NC 4.0 License
28
+
29
+ > Images, assets and logos
30
+
31
+ Copyleft (c) 2021 Dario Caruso (dottgonzo)
32
+
33
+ #### You are free to:
34
+
35
+ - Share — copy and redistribute the material in any medium or format
36
+ - Adapt — remix, transform, and build upon the material
37
+
38
+ The licensor cannot revoke these freedoms as long as you follow the license terms.
39
+
40
+ #### Under the following terms:
41
+
42
+ - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that - suggests the licensor endorses you or your use.
43
+ - NonCommercial — You may not use the material for commercial purposes.
44
+
45
+ No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
46
+
47
+ ##### https://creativecommons.org/licenses/by-nc/4.0/
48
+
49
+ ## Creative Commons BY 4.0 License
50
+
51
+ > Documentation and Translations
52
+
53
+ Copyleft (c) 2021 Dario Caruso (dottgonzo)
54
+
55
+ #### You are free to:
56
+
57
+ - Share — copy and redistribute the material in any medium or format
58
+ - Adapt — remix, transform, and build upon the material for any purpose, even commercially.
59
+
60
+ The licensor cannot revoke these freedoms as long as you follow the license terms.
61
+
62
+ #### Under the following terms:
63
+
64
+ - Attribution — You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
65
+
66
+ No additional restrictions — You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
67
+
68
+ ##### https://creativecommons.org/licenses/by/4.0/
package/README.md ADDED
@@ -0,0 +1 @@
1
+ # calendar-appointments web component
package/extra/docs.ts ADDED
@@ -0,0 +1,83 @@
1
+ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
+ import type { Component } from "../app/types/webcomponent.type";
3
+
4
+ export const storybookArgs = {
5
+ disable_header: { control: { type: "boolean" } },
6
+ events: { control: { type: "object" } },
7
+ date: { control: { type: "text" } },
8
+ selected: { control: { type: "text" } },
9
+ calendarEventClick: { action: "calendarEventClickEvent" },
10
+ changeCalendarDate: { action: "changeCalendarDateEvent" },
11
+ changeSelectedDate: { action: "changeSelectedDateEvent" },
12
+ };
13
+
14
+ const cssVars: CssVar[] = [
15
+ { name: "--hb-calendar-selected", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
16
+ { name: "--hb-calendar-hover", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
17
+ { name: "--hb-calendar-today", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
18
+ ];
19
+
20
+ const cssParts: CssPart[] = [
21
+ {
22
+ name: "calendar-header",
23
+ },
24
+ { name: "calendar-current-time-header" },
25
+ { name: "cell" },
26
+ ];
27
+ export const htmlSlots: HtmlSlot[] = [
28
+ {
29
+ name: "header_month_icon_prev",
30
+ },
31
+ {
32
+ name: "header_month_icon_next",
33
+ },
34
+ { name: "header" },
35
+ { name: "calendar_month" },
36
+ ];
37
+ export const i18nLanguages: i18nLang[] = [];
38
+
39
+ export const styleSetup: StyleSetup = {
40
+ vars: cssVars,
41
+ parts: cssParts,
42
+ };
43
+ const now = new Date();
44
+ const oneMonthMinusOneDaty = new Date(new Date().setDate(new Date(now.getFullYear(), now.getMonth(), 1).getDate() - 1));
45
+
46
+ const events: Component["events"] = [
47
+ {
48
+ date: now,
49
+ id: "test",
50
+ label: "thetest",
51
+ },
52
+ {
53
+ date: oneMonthMinusOneDaty,
54
+ id: "test2",
55
+ label: "thetest start",
56
+ color: "red",
57
+ },
58
+ ];
59
+ const examples: { name: string; description?: string; data: Component }[] = [
60
+ { name: "CalendarWithEvents", data: { events } },
61
+ { name: "TotallyEmpty", data: { events: [] } },
62
+ ];
63
+ export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
64
+ definitions: null as any,
65
+ storybookArgs,
66
+ styleSetup,
67
+ author: null as any,
68
+ contributors: [],
69
+ owner: null as any,
70
+ htmlSlots,
71
+ i18n: i18nLanguages,
72
+ examples,
73
+ screenshots: [],
74
+ licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
75
+ readmePath: "README.md",
76
+ name: "hb-calendar-appointments",
77
+ category: "components",
78
+ tags: ["components"],
79
+ size: {},
80
+ iifePath: "release/release.js",
81
+ repoName: "@htmlbricks/hb-calendar-appointments",
82
+ version: null as any,
83
+ };
package/package.json ADDED
@@ -0,0 +1,83 @@
1
+ {
2
+ "name": "@htmlbricks/hb-calendar-appointments",
3
+ "displayName": "Svelte Calendar WebComponent",
4
+ "description": "Svelte Calendar WebComponent",
5
+ "version": "0.14.40",
6
+ "main": "release/release.js",
7
+ "publishConfig": {
8
+ "access": "public"
9
+ },
10
+ "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
11
+ "authorUrl": "https://dariocaruso.info",
12
+ "license": "MIT",
13
+ "license-docs": "CC BY 4.0",
14
+ "license-translations": "CC BY 4.0",
15
+ "license-images": "CC BY-NC 4.0",
16
+ "engines": {
17
+ "node": ">=16.0.0"
18
+ },
19
+ "scripts": {
20
+ "start": "sirv dist",
21
+ "dev": "rm -rf ./dist && rollup -c -w",
22
+ "build": "rm -rf ./dist && rollup -c",
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",
27
+ "copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
28
+ "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
29
+ "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
30
+ "prepublish": "npm run build:release"
31
+ },
32
+ "dependencies": {
33
+ "date-holidays": "^3.12.2",
34
+ "dayjs": "^1.10.7"
35
+ },
36
+ "devDependencies": {
37
+ "@htmlbricks/hb-jsutils": "^0.14.40",
38
+ "@htmlbricks/manifester": "^0.0.22",
39
+ "@rollup/plugin-alias": "^3.1.2",
40
+ "@rollup/plugin-commonjs": "^18.0.0",
41
+ "@rollup/plugin-json": "^4.1.0",
42
+ "@rollup/plugin-node-resolve": "^11.2.1",
43
+ "@rollup/plugin-replace": "^4.0.0",
44
+ "@rollup/plugin-typescript": "^8.2.1",
45
+ "@tsconfig/svelte": "^1.0.10",
46
+ "@types/node": "^16.7.1",
47
+ "@typescript-eslint/eslint-plugin": "^4.22.0",
48
+ "@typescript-eslint/parser": "^4.22.0",
49
+ "eslint": "^7.25.0",
50
+ "eslint-plugin-jsdoc": "^33.0.0",
51
+ "eslint-plugin-svelte3": "^3.2.0",
52
+ "node-sass": "^6.0.1",
53
+ "postcss": "^8.2.13",
54
+ "postcss-load-config": "^3.0.1",
55
+ "prettier": "^2.2.1",
56
+ "rollup": "^2.46.0",
57
+ "rollup-plugin-copy": "^3.4.0",
58
+ "rollup-plugin-css-only": "^3.1.0",
59
+ "rollup-plugin-livereload": "^2.0.0",
60
+ "rollup-plugin-svelte": "^7.1.0",
61
+ "rollup-plugin-terser": "^7.0.2",
62
+ "rollup-plugin-ts-paths": "^1.0.5",
63
+ "rollup-plugin-typescript2": "^0.31.1",
64
+ "sass": "^1.32.12",
65
+ "sirv-cli": "^1.0.11",
66
+ "svelte": "^3.46.2",
67
+ "svelte-check": "^1.5.2",
68
+ "svelte-preprocess": "^4.7.2",
69
+ "ts-json-schema-generator": "^0.98.0",
70
+ "ts-node": "^9.1.1",
71
+ "tslib": "^2.2.0",
72
+ "ttypescript": "^1.5.12",
73
+ "typescript": "^4.2.4",
74
+ "typescript-transform-paths": "^2.2.3"
75
+ },
76
+ "keywords": [
77
+ "svelte",
78
+ "svelte-webcomponents",
79
+ "webcomponents"
80
+ ],
81
+ "contributors": [],
82
+ "gitHead": "53669632ab33de6f110ef6450a4aba8b76182663"
83
+ }
@@ -0,0 +1,77 @@
1
+ export var storybookArgs = {
2
+ disable_header: { control: { type: "boolean" } },
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: "--hb-calendar-selected", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
12
+ { name: "--hb-calendar-hover", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
13
+ { name: "--hb-calendar-today", 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
+ {
24
+ name: "header_month_icon_prev"
25
+ },
26
+ {
27
+ name: "header_month_icon_next"
28
+ },
29
+ { name: "header" },
30
+ { name: "calendar_month" },
31
+ ];
32
+ export var i18nLanguages = [];
33
+ export var styleSetup = {
34
+ vars: cssVars,
35
+ parts: cssParts
36
+ };
37
+ var now = new Date();
38
+ var oneMonthMinusOneDaty = new Date(new Date().setDate(new Date(now.getFullYear(), now.getMonth(), 1).getDate() - 1));
39
+ var events = [
40
+ {
41
+ date: now,
42
+ id: "test",
43
+ label: "thetest"
44
+ },
45
+ {
46
+ date: oneMonthMinusOneDaty,
47
+ id: "test2",
48
+ label: "thetest start",
49
+ color: "red"
50
+ },
51
+ ];
52
+ var examples = [
53
+ { name: "CalendarWithEvents", data: { events: events } },
54
+ { name: "TotallyEmpty", data: { events: [] } },
55
+ ];
56
+ export var componentSetup = {
57
+ definitions: null,
58
+ storybookArgs: storybookArgs,
59
+ styleSetup: styleSetup,
60
+ author: null,
61
+ contributors: [],
62
+ owner: null,
63
+ htmlSlots: htmlSlots,
64
+ i18n: i18nLanguages,
65
+ examples: examples,
66
+ screenshots: [],
67
+ licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
68
+ readmePath: "README.md",
69
+ name: "hb-calendar-appointments",
70
+ category: "components",
71
+ tags: ["components"],
72
+ size: {},
73
+ iifePath: "release/release.js",
74
+ repoName: "@htmlbricks/hb-calendar-appointments",
75
+ version: null
76
+ };
77
+ //# sourceMappingURL=docs.js.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E,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,0BAA0B;IAChC,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,sCAAsC;IAChD,OAAO,EAAE,IAAW;CACpB,CAAC"}
@@ -0,0 +1,83 @@
1
+ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
+ import type { Component } from "../app/types/webcomponent.type";
3
+
4
+ export const storybookArgs = {
5
+ disable_header: { control: { type: "boolean" } },
6
+ events: { control: { type: "object" } },
7
+ date: { control: { type: "text" } },
8
+ selected: { control: { type: "text" } },
9
+ calendarEventClick: { action: "calendarEventClickEvent" },
10
+ changeCalendarDate: { action: "changeCalendarDateEvent" },
11
+ changeSelectedDate: { action: "changeSelectedDateEvent" },
12
+ };
13
+
14
+ const cssVars: CssVar[] = [
15
+ { name: "--hb-calendar-selected", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
16
+ { name: "--hb-calendar-hover", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
17
+ { name: "--hb-calendar-today", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
18
+ ];
19
+
20
+ const cssParts: CssPart[] = [
21
+ {
22
+ name: "calendar-header",
23
+ },
24
+ { name: "calendar-current-time-header" },
25
+ { name: "cell" },
26
+ ];
27
+ export const htmlSlots: HtmlSlot[] = [
28
+ {
29
+ name: "header_month_icon_prev",
30
+ },
31
+ {
32
+ name: "header_month_icon_next",
33
+ },
34
+ { name: "header" },
35
+ { name: "calendar_month" },
36
+ ];
37
+ export const i18nLanguages: i18nLang[] = [];
38
+
39
+ export const styleSetup: StyleSetup = {
40
+ vars: cssVars,
41
+ parts: cssParts,
42
+ };
43
+ const now = new Date();
44
+ const oneMonthMinusOneDaty = new Date(new Date().setDate(new Date(now.getFullYear(), now.getMonth(), 1).getDate() - 1));
45
+
46
+ const events: Component["events"] = [
47
+ {
48
+ date: now,
49
+ id: "test",
50
+ label: "thetest",
51
+ },
52
+ {
53
+ date: oneMonthMinusOneDaty,
54
+ id: "test2",
55
+ label: "thetest start",
56
+ color: "red",
57
+ },
58
+ ];
59
+ const examples: { name: string; description?: string; data: Component }[] = [
60
+ { name: "CalendarWithEvents", data: { events } },
61
+ { name: "TotallyEmpty", data: { events: [] } },
62
+ ];
63
+ export const componentSetup: ComponentSetup & { examples: { name: string; description?: string; data: Component }[] } = {
64
+ definitions: null as any,
65
+ storybookArgs,
66
+ styleSetup,
67
+ author: null as any,
68
+ contributors: [],
69
+ owner: null as any,
70
+ htmlSlots,
71
+ i18n: i18nLanguages,
72
+ examples,
73
+ screenshots: [],
74
+ licenses: [{ type: "Apache-2.0", path: "LICENSE.md", cost: 0, currency: "EUR" }],
75
+ readmePath: "README.md",
76
+ name: "hb-calendar-appointments",
77
+ category: "components",
78
+ tags: ["components"],
79
+ size: {},
80
+ iifePath: "release/release.js",
81
+ repoName: "@htmlbricks/hb-calendar-appointments",
82
+ version: null as any,
83
+ };
@@ -0,0 +1,251 @@
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
+ "disable_header": {
70
+ "type": "boolean"
71
+ },
72
+ "events": {
73
+ "items": {
74
+ "$ref": "#/definitions/IEvent"
75
+ },
76
+ "type": "array"
77
+ },
78
+ "id": {
79
+ "type": "string"
80
+ },
81
+ "selected": {
82
+ "format": "date-time",
83
+ "type": "string"
84
+ },
85
+ "style": {
86
+ "type": "string"
87
+ }
88
+ },
89
+ "type": "object"
90
+ },
91
+ "IEvent": {
92
+ "additionalProperties": false,
93
+ "properties": {
94
+ "color": {
95
+ "type": "string"
96
+ },
97
+ "date": {
98
+ "format": "date-time",
99
+ "type": "string"
100
+ },
101
+ "icon": {
102
+ "type": "string"
103
+ },
104
+ "id": {
105
+ "type": "string"
106
+ },
107
+ "label": {
108
+ "type": "string"
109
+ },
110
+ "link": {
111
+ "type": "string"
112
+ }
113
+ },
114
+ "required": [
115
+ "date",
116
+ "label",
117
+ "id"
118
+ ],
119
+ "type": "object"
120
+ }
121
+ }
122
+ }
123
+ },
124
+ "storybookArgs": {
125
+ "disable_header": {
126
+ "control": {
127
+ "type": "boolean"
128
+ }
129
+ },
130
+ "events": {
131
+ "control": {
132
+ "type": "object"
133
+ }
134
+ },
135
+ "date": {
136
+ "control": {
137
+ "type": "text"
138
+ }
139
+ },
140
+ "selected": {
141
+ "control": {
142
+ "type": "text"
143
+ }
144
+ },
145
+ "calendarEventClick": {
146
+ "action": "calendarEventClickEvent"
147
+ },
148
+ "changeCalendarDate": {
149
+ "action": "changeCalendarDateEvent"
150
+ },
151
+ "changeSelectedDate": {
152
+ "action": "changeSelectedDateEvent"
153
+ }
154
+ },
155
+ "styleSetup": {
156
+ "vars": [
157
+ {
158
+ "name": "--hb-calendar-selected",
159
+ "valueType": "color",
160
+ "theme": "bootstrap",
161
+ "defaultValue": "#07689f"
162
+ },
163
+ {
164
+ "name": "--hb-calendar-hover",
165
+ "valueType": "color",
166
+ "theme": "bootstrap",
167
+ "defaultValue": "#c9d6df"
168
+ },
169
+ {
170
+ "name": "--hb-calendar-today",
171
+ "valueType": "color",
172
+ "theme": "bootstrap",
173
+ "defaultValue": "#11d3bc"
174
+ }
175
+ ],
176
+ "parts": [
177
+ {
178
+ "name": "calendar-header"
179
+ },
180
+ {
181
+ "name": "calendar-current-time-header"
182
+ },
183
+ {
184
+ "name": "cell"
185
+ }
186
+ ]
187
+ },
188
+ "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
189
+ "contributors": [],
190
+ "owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
191
+ "htmlSlots": [
192
+ {
193
+ "name": "header_month_icon_prev"
194
+ },
195
+ {
196
+ "name": "header_month_icon_next"
197
+ },
198
+ {
199
+ "name": "header"
200
+ },
201
+ {
202
+ "name": "calendar_month"
203
+ }
204
+ ],
205
+ "i18n": [],
206
+ "examples": [
207
+ {
208
+ "name": "CalendarWithEvents",
209
+ "data": {
210
+ "events": [
211
+ {
212
+ "date": "2022-06-25T17:05:19.763Z",
213
+ "id": "test",
214
+ "label": "thetest"
215
+ },
216
+ {
217
+ "date": "2022-05-31T17:05:19.763Z",
218
+ "id": "test2",
219
+ "label": "thetest start",
220
+ "color": "red"
221
+ }
222
+ ]
223
+ }
224
+ },
225
+ {
226
+ "name": "TotallyEmpty",
227
+ "data": {
228
+ "events": []
229
+ }
230
+ }
231
+ ],
232
+ "screenshots": [],
233
+ "licenses": [
234
+ {
235
+ "type": "Apache-2.0",
236
+ "path": "LICENSE.md",
237
+ "cost": 0,
238
+ "currency": "EUR"
239
+ }
240
+ ],
241
+ "readmePath": "README.md",
242
+ "name": "hb-calendar-appointments",
243
+ "category": "components",
244
+ "tags": [
245
+ "components"
246
+ ],
247
+ "size": {},
248
+ "iifePath": "release/release.js",
249
+ "repoName": "@htmlbricks/hb-calendar-appointments",
250
+ "version": "0.14.40"
251
+ }