@htmlbricks/hb-calendar-events 0.8.34 → 0.8.39

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,4 @@
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
2
 
3
3
  export const storybookArgs = {
4
4
  events: { control: { type: "object" } },
@@ -29,3 +29,16 @@ export const styleSetup: StyleSetup = {
29
29
  vars: cssVars,
30
30
  parts: cssParts,
31
31
  };
32
+
33
+ export const componentSetup: ComponentSetup = {
34
+ definitions: null,
35
+ storybookArgs,
36
+ styleSetup,
37
+ htmlSlots,
38
+ i18n: i18nLanguages,
39
+ examples: [],
40
+ name: "",
41
+ category: "",
42
+ tags: [],
43
+ size: {},
44
+ };
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.34",
5
+ "version": "0.8.39",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -20,10 +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-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",
24
27
  "copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
25
28
  "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
26
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-schema && npm run copydest",
29
+ "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
27
30
  "prepublish": "npm run build:release"
28
31
  },
29
32
  "dependencies": {
@@ -31,7 +34,8 @@
31
34
  "dayjs": "^1.10.7"
32
35
  },
33
36
  "devDependencies": {
34
- "@htmlbricks/hb-jsutils": "^0.8.34",
37
+ "@htmlbricks/hb-jsutils": "^0.8.39",
38
+ "@htmlbricks/manifester": "^0.0.5",
35
39
  "@rollup/plugin-alias": "^3.1.2",
36
40
  "@rollup/plugin-commonjs": "^18.0.0",
37
41
  "@rollup/plugin-json": "^4.1.0",
@@ -75,5 +79,5 @@
75
79
  "webcomponents"
76
80
  ],
77
81
  "contributors": [],
78
- "gitHead": "68d64dec84ac3a051b842b04560d89d952217af7"
82
+ "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
79
83
  }
package/release/docs.js CHANGED
@@ -24,4 +24,16 @@ export var styleSetup = {
24
24
  vars: cssVars,
25
25
  parts: cssParts
26
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
+ };
27
39
  //# 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;I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,EAAE,EAAE;CACR,CAAC"}
@@ -0,0 +1,39 @@
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
package/release/docs.ts CHANGED
@@ -1,4 +1,4 @@
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
2
 
3
3
  export const storybookArgs = {
4
4
  events: { control: { type: "object" } },
@@ -29,3 +29,16 @@ export const styleSetup: StyleSetup = {
29
29
  vars: cssVars,
30
30
  parts: cssParts,
31
31
  };
32
+
33
+ export const componentSetup: ComponentSetup = {
34
+ definitions: null,
35
+ storybookArgs,
36
+ styleSetup,
37
+ htmlSlots,
38
+ i18n: i18nLanguages,
39
+ examples: [],
40
+ name: "",
41
+ category: "",
42
+ tags: [],
43
+ size: {},
44
+ };
@@ -0,0 +1,216 @@
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
+ "name": "",
213
+ "category": "",
214
+ "tags": [],
215
+ "size": {}
216
+ }
@@ -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
+ }