UNPKG

@htmlbricks/hb-calendar-appointments

Version:

250 lines 5.49 kB
{ "definitions": { "events": { "$ref": "#/definitions/Events", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "Events": { "additionalProperties": false, "properties": { "calendarEventClick": { "additionalProperties": false, "properties": { "eventId": { "type": "string" } }, "required": [ "eventId" ], "type": "object" }, "changeCalendarDate": { "additionalProperties": false, "properties": { "date": { "format": "date-time", "type": "string" } }, "required": [ "date" ], "type": "object" }, "changeSelectedDate": { "additionalProperties": false, "properties": { "selectedDate": { "format": "date-time", "type": "string" } }, "required": [ "selectedDate" ], "type": "object" } }, "required": [ "calendarEventClick", "changeCalendarDate", "changeSelectedDate" ], "type": "object" } } }, "component": { "$ref": "#/definitions/Component", "$schema": "http://json-schema.org/draft-07/schema#", "definitions": { "Component": { "additionalProperties": false, "properties": { "date": { "format": "date-time", "type": "string" }, "disable_header": { "type": "boolean" }, "events": { "items": { "$ref": "#/definitions/IEvent" }, "type": "array" }, "id": { "type": "string" }, "selected": { "format": "date-time", "type": "string" }, "style": { "type": "string" } }, "type": "object" }, "IEvent": { "additionalProperties": false, "properties": { "color": { "type": "string" }, "date": { "format": "date-time", "type": "string" }, "icon": { "type": "string" }, "id": { "type": "string" }, "label": { "type": "string" }, "link": { "type": "string" } }, "required": [ "date", "label", "id" ], "type": "object" } } } }, "description": "", "storybookArgs": { "disable_header": { "control": { "type": "boolean" } }, "events": { "control": { "type": "object" } }, "date": { "control": { "type": "text" } }, "selected": { "control": { "type": "text" } }, "calendarEventClick": { "action": "calendarEventClickEvent" }, "changeCalendarDate": { "action": "changeCalendarDateEvent" }, "changeSelectedDate": { "action": "changeSelectedDateEvent" } }, "styleSetup": { "vars": [ { "name": "--hb-calendar-selected", "valueType": "color", "theme": "bootstrap", "defaultValue": "#07689f" }, { "name": "--hb-calendar-hover", "valueType": "color", "theme": "bootstrap", "defaultValue": "#c9d6df" }, { "name": "--hb-calendar-today", "valueType": "color", "theme": "bootstrap", "defaultValue": "#11d3bc" } ], "parts": [ { "name": "calendar-header" }, { "name": "calendar-current-time-header" }, { "name": "cell" } ] }, "contributors": [], "htmlSlots": [ { "name": "header_month_icon_prev" }, { "name": "header_month_icon_next" }, { "name": "header" }, { "name": "calendar_month" } ], "i18n": [], "examples": [ { "name": "CalendarWithEvents", "data": { "events": [ { "date": "2025-04-08T22:24:21.356Z", "id": "test", "label": "thetest" }, { "date": "2025-03-30T22:24:21.356Z", "id": "test2", "label": "thetest start", "color": "red" } ] } }, { "name": "TotallyEmpty", "data": { "events": [] } } ], "screenshots": [], "licenses": [ { "type": "Apache-2.0", "path": "LICENSE.md", "cost": 0, "currency": "EUR" } ], "readmePath": "README.md", "name": "hb-calendar-appointments", "category": "components", "tags": [ "components" ], "size": {}, "iifePath": "main.iife.js", "repoName": "@htmlbricks/hb-calendar-appointments", "version": "0.50.0-alpha.27" }