@htmlbricks/hb-calendar-events 0.14.37 → 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/extra/docs.ts CHANGED
@@ -2,6 +2,7 @@ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup }
2
2
  import type { Component } from "../app/types/webcomponent.type";
3
3
 
4
4
  export const storybookArgs = {
5
+ disable_header: { control: { type: "boolean" } },
5
6
  events: { control: { type: "object" } },
6
7
  date: { control: { type: "text" } },
7
8
  selected: { control: { type: "text" } },
@@ -11,9 +12,9 @@ export const storybookArgs = {
11
12
  };
12
13
 
13
14
  const cssVars: CssVar[] = [
14
- { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
15
- { name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
16
- { name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
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" },
17
18
  ];
18
19
 
19
20
  const cssParts: CssPart[] = [
@@ -23,7 +24,16 @@ const cssParts: CssPart[] = [
23
24
  { name: "calendar-current-time-header" },
24
25
  { name: "cell" },
25
26
  ];
26
- export const htmlSlots: HtmlSlot[] = [];
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
+ ];
27
37
  export const i18nLanguages: i18nLang[] = [];
28
38
 
29
39
  export const styleSetup: StyleSetup = {
@@ -43,6 +53,7 @@ const events: Component["events"] = [
43
53
  date: oneMonthMinusOneDaty,
44
54
  id: "test2",
45
55
  label: "thetest start",
56
+ color: "red",
46
57
  },
47
58
  ];
48
59
  const examples: { name: string; description?: string; data: Component }[] = [
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.14.37",
5
+ "version": "0.14.40",
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.14.37",
37
+ "@htmlbricks/hb-jsutils": "^0.14.40",
38
38
  "@htmlbricks/manifester": "^0.0.22",
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": "6b280ea028cc369aeb779c74032c33d2da5ad268"
82
+ "gitHead": "53669632ab33de6f110ef6450a4aba8b76182663"
83
83
  }
package/release/docs.js CHANGED
@@ -1,4 +1,5 @@
1
1
  export var storybookArgs = {
2
+ disable_header: { control: { type: "boolean" } },
2
3
  events: { control: { type: "object" } },
3
4
  date: { control: { type: "text" } },
4
5
  selected: { control: { type: "text" } },
@@ -7,9 +8,9 @@ export var storybookArgs = {
7
8
  changeSelectedDate: { action: "changeSelectedDateEvent" }
8
9
  };
9
10
  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" },
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" },
13
14
  ];
14
15
  var cssParts = [
15
16
  {
@@ -18,7 +19,16 @@ var cssParts = [
18
19
  { name: "calendar-current-time-header" },
19
20
  { name: "cell" },
20
21
  ];
21
- export var htmlSlots = [];
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
+ ];
22
32
  export var i18nLanguages = [];
23
33
  export var styleSetup = {
24
34
  vars: cssVars,
@@ -35,7 +45,8 @@ var events = [
35
45
  {
36
46
  date: oneMonthMinusOneDaty,
37
47
  id: "test2",
38
- label: "thetest start"
48
+ label: "thetest start",
49
+ color: "red"
39
50
  },
40
51
  ];
41
52
  var examples = [
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAGA,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;IACzD,kBAAkB,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE;IACzD,kBAAkB,EAAE,EAAE,MAAM,EAAE,yBAAyB,EAAE;CACzD,CAAC;AAEF,IAAM,OAAO,GAAa;IACzB,EAAE,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE;IACzF,EAAE,IAAI,EAAE,gBAAgB,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,E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,GAA8D;IAC3E,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,EAAE;IACnC,EAAE,IAAI,EAAE,oBAAoB,EAAE,IAAI,EAAE,EAAE,MAAM,QAAA,EAAE,EAAE;CAChD,CAAC;AACF,MAAM,CAAC,IAAM,cAAc,GAA6F;IACvH,WAAW,EAAE,IAAW;IACxB,aAAa,eAAA;IACb,UAAU,YAAA;IACV,MAAM,EAAE,IAAW;IACnB,YAAY,EAAE,EAAE;IAChB,KAAK,EAAE,IAAW;IAClB,SAAS,WAAA;IACT,IAAI,EAAE,aAAa;IACnB,QAAQ,UAAA;IACR,WAAW,EAAE,EAAE;IACf,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IAChF,UAAU,EAAE,WAAW;IACvB,IAAI,EAAE,oBAAoB;IAC1B,QAAQ,EAAE,YAAY;IACtB,IAAI,EAAE,CAAC,YAAY,CAAC;IACpB,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,oBAAoB;IAC9B,QAAQ,EAAE,gCAAgC;IAC1C,OAAO,EAAE,IAAW;CACpB,CAAC"}
package/release/docs.ts CHANGED
@@ -2,6 +2,7 @@ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup }
2
2
  import type { Component } from "../app/types/webcomponent.type";
3
3
 
4
4
  export const storybookArgs = {
5
+ disable_header: { control: { type: "boolean" } },
5
6
  events: { control: { type: "object" } },
6
7
  date: { control: { type: "text" } },
7
8
  selected: { control: { type: "text" } },
@@ -11,9 +12,9 @@ export const storybookArgs = {
11
12
  };
12
13
 
13
14
  const cssVars: CssVar[] = [
14
- { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
15
- { name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
16
- { name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
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" },
17
18
  ];
18
19
 
19
20
  const cssParts: CssPart[] = [
@@ -23,7 +24,16 @@ const cssParts: CssPart[] = [
23
24
  { name: "calendar-current-time-header" },
24
25
  { name: "cell" },
25
26
  ];
26
- export const htmlSlots: HtmlSlot[] = [];
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
+ ];
27
37
  export const i18nLanguages: i18nLang[] = [];
28
38
 
29
39
  export const styleSetup: StyleSetup = {
@@ -43,6 +53,7 @@ const events: Component["events"] = [
43
53
  date: oneMonthMinusOneDaty,
44
54
  id: "test2",
45
55
  label: "thetest start",
56
+ color: "red",
46
57
  },
47
58
  ];
48
59
  const examples: { name: string; description?: string; data: Component }[] = [
@@ -66,6 +66,9 @@
66
66
  "format": "date-time",
67
67
  "type": "string"
68
68
  },
69
+ "disable_header": {
70
+ "type": "boolean"
71
+ },
69
72
  "events": {
70
73
  "items": {
71
74
  "$ref": "#/definitions/IEvent"
@@ -95,35 +98,6 @@
95
98
  "format": "date-time",
96
99
  "type": "string"
97
100
  },
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
101
  "icon": {
128
102
  "type": "string"
129
103
  },
@@ -148,6 +122,11 @@
148
122
  }
149
123
  },
150
124
  "storybookArgs": {
125
+ "disable_header": {
126
+ "control": {
127
+ "type": "boolean"
128
+ }
129
+ },
151
130
  "events": {
152
131
  "control": {
153
132
  "type": "object"
@@ -176,19 +155,19 @@
176
155
  "styleSetup": {
177
156
  "vars": [
178
157
  {
179
- "name": "--bs-primary",
158
+ "name": "--hb-calendar-selected",
180
159
  "valueType": "color",
181
160
  "theme": "bootstrap",
182
161
  "defaultValue": "#07689f"
183
162
  },
184
163
  {
185
- "name": "--bs-secondary",
164
+ "name": "--hb-calendar-hover",
186
165
  "valueType": "color",
187
166
  "theme": "bootstrap",
188
167
  "defaultValue": "#c9d6df"
189
168
  },
190
169
  {
191
- "name": "--bs-success",
170
+ "name": "--hb-calendar-today",
192
171
  "valueType": "color",
193
172
  "theme": "bootstrap",
194
173
  "defaultValue": "#11d3bc"
@@ -209,7 +188,20 @@
209
188
  "author": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
210
189
  "contributors": [],
211
190
  "owner": "Dario Caruso <dev@dariocaruso.info> (https://dariocaruso.info)",
212
- "htmlSlots": [],
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
+ ],
213
205
  "i18n": [],
214
206
  "examples": [
215
207
  {
@@ -221,14 +213,15 @@
221
213
  "data": {
222
214
  "events": [
223
215
  {
224
- "date": "2022-06-24T23:57:06.922Z",
216
+ "date": "2022-06-25T17:05:21.174Z",
225
217
  "id": "test",
226
218
  "label": "thetest"
227
219
  },
228
220
  {
229
- "date": "2022-05-30T23:57:06.922Z",
221
+ "date": "2022-05-31T17:05:21.174Z",
230
222
  "id": "test2",
231
- "label": "thetest start"
223
+ "label": "thetest start",
224
+ "color": "red"
232
225
  }
233
226
  ]
234
227
  }
@@ -252,5 +245,5 @@
252
245
  "size": {},
253
246
  "iifePath": "release/release.js",
254
247
  "repoName": "@htmlbricks/hb-calendar-events",
255
- "version": "0.14.37"
248
+ "version": "0.14.40"
256
249
  }