@kubex/zinc 1.1.92 → 1.1.94
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/dist/custom-elements.json +1738 -110
- package/dist/vscode.html-custom-data.json +136 -4
- package/dist/web-types.json +307 -4
- package/dist/zn.d.ts +298 -2
- package/dist/zn.min.js +708 -515
- package/docs/pages/components/page-builder.md +22 -0
- package/docs/pages/components/schedule-builder.md +345 -0
- package/package.json +1 -1
- package/src/components/alert/alert.scss +9 -13
- package/src/components/chip/chip.scss +1 -1
- package/src/components/icon-picker/icon-picker.component.ts +1 -1
- package/src/components/linked-select/linked-select.component.ts +22 -5
- package/src/components/page/page.scss +13 -7
- package/src/components/page-builder/page-builder.component.ts +52 -7
- package/src/components/page-builder/page-builder.scss +166 -9
- package/src/components/page-builder/page-builder.test.ts +134 -0
- package/src/components/page-builder/page.types.ts +23 -3
- package/src/components/page-nav/page-nav.scss +9 -1
- package/src/components/panel/panel.component.ts +5 -1
- package/src/components/priority-list/priority-list.component.ts +1 -0
- package/src/components/priority-list/priority-list.scss +2 -1
- package/src/components/schedule-builder/index.ts +12 -0
- package/src/components/schedule-builder/schedule-builder.component.ts +1543 -0
- package/src/components/schedule-builder/schedule-builder.scss +448 -0
- package/src/components/schedule-builder/schedule-builder.test.ts +344 -0
- package/src/components/toggle/toggle.component.ts +2 -1
- package/src/zinc.ts +1 -0
- package/docs/superpowers/plans/2026-08-03-theme-editor.md +0 -1536
- package/docs/superpowers/specs/2026-08-03-theme-editor-design.md +0 -327
|
@@ -2399,7 +2399,12 @@
|
|
|
2399
2399
|
{ "name": "options", "values": [{ "name": "linkedSelectOptions" }] },
|
|
2400
2400
|
{ "name": "linked-select", "values": [] },
|
|
2401
2401
|
{ "name": "cache-key", "values": [] },
|
|
2402
|
-
{ "name": "label", "values": [] }
|
|
2402
|
+
{ "name": "label", "values": [] },
|
|
2403
|
+
{
|
|
2404
|
+
"name": "select-first",
|
|
2405
|
+
"description": "Automatically select the first option of the linked group when no value is set.",
|
|
2406
|
+
"values": []
|
|
2407
|
+
}
|
|
2403
2408
|
],
|
|
2404
2409
|
"references": [
|
|
2405
2410
|
{
|
|
@@ -2744,7 +2749,7 @@
|
|
|
2744
2749
|
},
|
|
2745
2750
|
{
|
|
2746
2751
|
"name": "zn-page-builder",
|
|
2747
|
-
"description": "A config-driven page composer: a palette of predefined section types, a linear\ncanvas of section cards, and an inspector for editing each section's content.\n---\n\n\n### **Events:**\n - **zn-page-change** - Emitted whenever the page state changes. `event.detail.state` is the new PageState.\n- **zn-page-selection-change** - Emitted when the selected section changes. `event.detail.sectionId`.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **addSection(type: _string_, index: _number_): _PageSection | null_** - Adds a section of a registered type at `index` (default: end). Returns null for unknown types.\n- **addSectionToSlot(type: _string_, containerId: _string_, slotIndex: _number_): _PageSection | null_** - Adds a new section of a registered type into a container's slot. Returns null if not allowed.\n\n### **Slots:**\n - **config** - `<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow.\n- **header-left** - Actions shown on the left of the header bar.\n- **header-right** - Actions shown on the right of the header bar.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **palette** - The left palette panel.\n- **canvas** - The centre section-card canvas.\n- **inspector** - The right panel while a section is selected.",
|
|
2752
|
+
"description": "A config-driven page composer: a palette of predefined section types, a linear\ncanvas of section cards, and an inspector for editing each section's content.\n---\n\n\n### **Events:**\n - **zn-page-change** - Emitted whenever the page state changes. `event.detail.state` is the new PageState.\n- **zn-page-selection-change** - Emitted when the selected section changes. `event.detail.sectionId`.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **addSection(type: _string_, index: _number_): _PageSection | null_** - Adds a section of a registered type at `index` (default: end). Returns null for unknown types.\n- **addSectionToSlot(type: _string_, containerId: _string_, slotIndex: _number_): _PageSection | null_** - Adds a new section of a registered type into a container's slot. Returns null if not allowed.\n\n### **Slots:**\n - **config** - `<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow.\n- **header-left** - Actions shown on the left of the header bar.\n- **header-right** - Actions shown on the right of the header bar.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **palette** - The left palette panel.\n- **canvas** - The centre section-card canvas.\n- **inspector** - The right panel while a section is selected.\n- **inspector-header** - The inspector's fixed header (icon, section name, type, close).\n- **inspector-body** - The inspector's scrolling form area.",
|
|
2748
2753
|
"attributes": [
|
|
2749
2754
|
{
|
|
2750
2755
|
"name": "name",
|
|
@@ -3091,7 +3096,7 @@
|
|
|
3091
3096
|
},
|
|
3092
3097
|
{
|
|
3093
3098
|
"name": "zn-priority-list",
|
|
3094
|
-
"description": "A reorderable list where each item receives a numerical priority based on its position. Supports drag-and-drop\nand keyboard reordering. Priority values are submitted as form data via hidden inputs.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the order of items changes.\n- **zn-reorder** - Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array.\n\n### **Methods:**\n - **getPriorityMap(): _PriorityItem[]_** - Returns the priority map: an array of { key, priority } objects.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing).\n- **label** - The component's label. Required for proper accessibility. Alternatively, use the `label` attribute.\n- **label-tooltip** - Used to add text displayed in a tooltip next to the label.\n- **help-text** - Text that describes how to use the component. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-priority-list-item-gap** - The gap between list items. Defaults to `var(--zn-spacing-2x-small)`. _(default: undefined)_\n- **--zn-priority-list-item-padding** - The padding inside each item. Defaults to `var(--zn-spacing-small) var(--zn-spacing-medium)`. _(default: undefined)_\n- **--zn-priority-list-handle-color** - The color of the drag handle. Defaults to `var(--zn-color-neutral-500)`. _(default: undefined)_\n- **--zn-priority-list-priority-color** - The color of the priority number. Defaults to `var(--zn-color-neutral-600)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control wrapper.\n- **form-control-label** - The label wrapper.\n- **form-control-input** - The input area wrapper.\n- **form-control-help-text** - The help text wrapper.\n- **list** - The list container.\n- **item** - An individual list item row.\n- **drag-handle** - The drag handle icon.\n- **priority** - The priority number badge.\n- **content** - The content area of an item.",
|
|
3099
|
+
"description": "A reorderable list where each item receives a numerical priority based on its position. Supports drag-and-drop\nand keyboard reordering. Priority values are submitted as form data via hidden inputs.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the order of items changes.\n- **zn-reorder** - Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array.\n\n### **Methods:**\n - **getPriorityMap(): _PriorityItem[]_** - Returns the priority map: an array of { key, priority } objects.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing).\n- **label** - The component's label. Required for proper accessibility. Alternatively, use the `label` attribute.\n- **label-tooltip** - Used to add text displayed in a tooltip next to the label.\n- **help-text** - Text that describes how to use the component. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-priority-list-item-gap** - The gap between list items. Defaults to `var(--zn-spacing-2x-small)`. _(default: undefined)_\n- **--zn-priority-list-item-padding** - The padding inside each item. Defaults to `var(--zn-spacing-small) var(--zn-spacing-medium)`. _(default: undefined)_\n- **--zn-priority-list-actions-gap** - The gap between an item's slotted actions. Defaults to `var(--zn-spacing-x-small)`. _(default: undefined)_\n- **--zn-priority-list-handle-color** - The color of the drag handle. Defaults to `var(--zn-color-neutral-500)`. _(default: undefined)_\n- **--zn-priority-list-priority-color** - The color of the priority number. Defaults to `var(--zn-color-neutral-600)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control wrapper.\n- **form-control-label** - The label wrapper.\n- **form-control-input** - The input area wrapper.\n- **form-control-help-text** - The help text wrapper.\n- **list** - The list container.\n- **item** - An individual list item row.\n- **drag-handle** - The drag handle icon.\n- **priority** - The priority number badge.\n- **content** - The content area of an item.",
|
|
3095
3100
|
"attributes": [
|
|
3096
3101
|
{
|
|
3097
3102
|
"name": "name",
|
|
@@ -3469,6 +3474,133 @@
|
|
|
3469
3474
|
}
|
|
3470
3475
|
]
|
|
3471
3476
|
},
|
|
3477
|
+
{
|
|
3478
|
+
"name": "zn-schedule-builder",
|
|
3479
|
+
"description": "Builds a weekly opening-hours schedule as a drag-to-paint calendar or a compact list of\ntime ranges, and posts the result as JSON.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the schedule changes.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **setDay(day: _ScheduleDay_, ranges: _ScheduleRange[]_)** - Replaces the hours for a single day, in the save timezone.\n- **getDay(day: _ScheduleDay_): _ScheduleRange[]_** - Reads the hours for a single day, in the save timezone.\n- **setDisplayDay(day: _ScheduleDay_, ranges: _ScheduleRange[]_)** - Replaces the hours for a single day, given in the display timezone.\n\n### **Slots:**\n - **label** - The schedule's label. Alternatively, use the `label` attribute.\n- **help-text** - Text that describes how to use the schedule. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--slot-height** - The height of a single time slot in the calendar. Defaults to `18px`. _(default: undefined)_\n- **--gutter-width** - The width of the calendar's time gutter. Defaults to `64px`. _(default: undefined)_\n- **--open-color** - The fill used for open hours. _(default: undefined)_\n- **--reduced-color** - The fill used for hours an exception removes. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the builder, label and help text.\n- **base** - The component's base wrapper.\n- **toolbar** - The row above the builder holding the hint, legend and view toggle.\n- **calendar** - The calendar view wrapper.\n- **list** - The form (list) view wrapper.\n- **summary** - The summary panel beside the calendar.",
|
|
3480
|
+
"attributes": [
|
|
3481
|
+
{
|
|
3482
|
+
"name": "name",
|
|
3483
|
+
"description": "The name of the form control, submitted as a name/value pair with form data.",
|
|
3484
|
+
"values": []
|
|
3485
|
+
},
|
|
3486
|
+
{
|
|
3487
|
+
"name": "value",
|
|
3488
|
+
"description": "The schedule as a JSON string. This is what gets posted with the form.",
|
|
3489
|
+
"values": []
|
|
3490
|
+
},
|
|
3491
|
+
{
|
|
3492
|
+
"name": "label",
|
|
3493
|
+
"description": "The schedule's label. If you need to display HTML, use the `label` slot instead.",
|
|
3494
|
+
"values": []
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
"name": "help-text",
|
|
3498
|
+
"description": "The schedule's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
3499
|
+
"values": []
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
"name": "view",
|
|
3503
|
+
"description": "Which view is showing.",
|
|
3504
|
+
"values": [{ "name": "ScheduleView" }]
|
|
3505
|
+
},
|
|
3506
|
+
{
|
|
3507
|
+
"name": "open-label",
|
|
3508
|
+
"description": "The word used for hours the schedule covers, in the legend and in labels.",
|
|
3509
|
+
"values": []
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
"name": "closed-label",
|
|
3513
|
+
"description": "The word used for hours the schedule doesn't cover, in the legend and against empty days.",
|
|
3514
|
+
"values": []
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"name": "no-toggle",
|
|
3518
|
+
"description": "Hides the calendar/form view toggle.",
|
|
3519
|
+
"values": []
|
|
3520
|
+
},
|
|
3521
|
+
{
|
|
3522
|
+
"name": "hide-summary",
|
|
3523
|
+
"description": "Hides the summary panel beside the calendar.",
|
|
3524
|
+
"values": []
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
"name": "start-hour",
|
|
3528
|
+
"description": "The first hour shown in the calendar.",
|
|
3529
|
+
"values": []
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"name": "end-hour",
|
|
3533
|
+
"description": "The last hour shown in the calendar.",
|
|
3534
|
+
"values": []
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "interval",
|
|
3538
|
+
"description": "The granularity of the calendar grid and the time inputs, in minutes.",
|
|
3539
|
+
"values": []
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"name": "week-start",
|
|
3543
|
+
"description": "The weekday the week starts on.",
|
|
3544
|
+
"values": [{ "name": "ScheduleDay" }]
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
"name": "time-format",
|
|
3548
|
+
"description": "Displays times as 12 or 24 hour. The serialised value is always 24 hour `HH:MM`.",
|
|
3549
|
+
"values": [{ "name": "12" }, { "name": "24" }]
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
"name": "display-timezone",
|
|
3553
|
+
"description": "The IANA timezone the hours are shown in. Accepts `auto` for the viewer's own timezone. Defaults\nto `save-timezone`, so nothing is converted until you ask for it. Changing this only re-labels\nthe same underlying hours; the value never moves.",
|
|
3554
|
+
"values": []
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
"name": "save-timezone",
|
|
3558
|
+
"description": "The IANA timezone the value is stored in. Defaults to `UTC` as soon as the schedule is\ntimezone-aware (a display timezone is set, or the picker is shown), and to no timezone at all\notherwise — in which case the times are stored exactly as they are shown.",
|
|
3559
|
+
"values": []
|
|
3560
|
+
},
|
|
3561
|
+
{
|
|
3562
|
+
"name": "show-timezone",
|
|
3563
|
+
"description": "Shows the timezone picker, letting the user read the schedule in any timezone.",
|
|
3564
|
+
"values": []
|
|
3565
|
+
},
|
|
3566
|
+
{
|
|
3567
|
+
"name": "timezones",
|
|
3568
|
+
"description": "The timezones offered by the picker, as IANA names or one of the named sets — `en` (the four US\nzones, the UK and Australia, under those names), `offsets` (one zone per UTC offset, the\ndefault), `common` (every offset plus the world's major centres) or `all` (the complete IANA\nlist). Names and sets can be mixed, e.g. `en Asia/Tokyo`.",
|
|
3569
|
+
"values": [{ "name": "string[]" }]
|
|
3570
|
+
},
|
|
3571
|
+
{
|
|
3572
|
+
"name": "reference-date",
|
|
3573
|
+
"description": "The date (`YYYY-MM-DD`) used to resolve timezone offsets. A weekly pattern has no date of its\nown, so one has to be picked to know whether daylight saving applies; today is used by default.",
|
|
3574
|
+
"values": []
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"name": "disabled",
|
|
3578
|
+
"description": "Disables the schedule.",
|
|
3579
|
+
"values": []
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
"name": "readonly",
|
|
3583
|
+
"description": "Renders the schedule without any editing affordances.",
|
|
3584
|
+
"values": []
|
|
3585
|
+
},
|
|
3586
|
+
{
|
|
3587
|
+
"name": "required",
|
|
3588
|
+
"description": "Makes the schedule a required field, invalid until at least one period is open.",
|
|
3589
|
+
"values": []
|
|
3590
|
+
},
|
|
3591
|
+
{
|
|
3592
|
+
"name": "form",
|
|
3593
|
+
"description": "The id of the form to associate with, when the control sits outside of it.",
|
|
3594
|
+
"values": []
|
|
3595
|
+
}
|
|
3596
|
+
],
|
|
3597
|
+
"references": [
|
|
3598
|
+
{
|
|
3599
|
+
"name": "Documentation",
|
|
3600
|
+
"url": "https://zinc.style/components/schedule-builder"
|
|
3601
|
+
}
|
|
3602
|
+
]
|
|
3603
|
+
},
|
|
3472
3604
|
{
|
|
3473
3605
|
"name": "zn-scroll-container",
|
|
3474
3606
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -4543,7 +4675,7 @@
|
|
|
4543
4675
|
},
|
|
4544
4676
|
{
|
|
4545
4677
|
"name": "zn-toggle",
|
|
4546
|
-
"description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n- **description** - A description of the toggle's label. Alternatively, you can use the `description` attribute.\n- **help-text** - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).\n- **description** - The container that wraps the toggle's description.",
|
|
4678
|
+
"description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n- **description** - A description of the toggle's label. Alternatively, you can use the `description` attribute.\n- **help-text** - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).\n- **label** - The toggle's label.\n- **description** - The container that wraps the toggle's description.",
|
|
4547
4679
|
"attributes": [
|
|
4548
4680
|
{ "name": "title", "values": [] },
|
|
4549
4681
|
{ "name": "name", "values": [] },
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@kubex/zinc",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.94",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -5613,6 +5613,11 @@
|
|
|
5613
5613
|
{
|
|
5614
5614
|
"name": "label",
|
|
5615
5615
|
"value": { "type": "string", "default": "\"\"" }
|
|
5616
|
+
},
|
|
5617
|
+
{
|
|
5618
|
+
"name": "select-first",
|
|
5619
|
+
"description": "Automatically select the first option of the linked group when no value is set.",
|
|
5620
|
+
"value": { "type": "boolean", "default": "false" }
|
|
5616
5621
|
}
|
|
5617
5622
|
],
|
|
5618
5623
|
"slots": [
|
|
@@ -5631,6 +5636,11 @@
|
|
|
5631
5636
|
{ "name": "linkedSelect", "type": "string" },
|
|
5632
5637
|
{ "name": "cacheKey", "type": "string" },
|
|
5633
5638
|
{ "name": "label", "type": "string" },
|
|
5639
|
+
{
|
|
5640
|
+
"name": "selectFirst",
|
|
5641
|
+
"description": "Automatically select the first option of the linked group when no value is set.",
|
|
5642
|
+
"type": "boolean"
|
|
5643
|
+
},
|
|
5634
5644
|
{ "name": "input", "type": "ZnSelect" },
|
|
5635
5645
|
{ "name": "displayLabel" },
|
|
5636
5646
|
{ "name": "validity" },
|
|
@@ -6477,7 +6487,7 @@
|
|
|
6477
6487
|
},
|
|
6478
6488
|
{
|
|
6479
6489
|
"name": "zn-page-builder",
|
|
6480
|
-
"description": "A config-driven page composer: a palette of predefined section types, a linear\ncanvas of section cards, and an inspector for editing each section's content.\n---\n\n\n### **Events:**\n - **zn-page-change** - Emitted whenever the page state changes. `event.detail.state` is the new PageState.\n- **zn-page-selection-change** - Emitted when the selected section changes. `event.detail.sectionId`.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **addSection(type: _string_, index: _number_): _PageSection | null_** - Adds a section of a registered type at `index` (default: end). Returns null for unknown types.\n- **addSectionToSlot(type: _string_, containerId: _string_, slotIndex: _number_): _PageSection | null_** - Adds a new section of a registered type into a container's slot. Returns null if not allowed.\n\n### **Slots:**\n - **config** - `<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow.\n- **header-left** - Actions shown on the left of the header bar.\n- **header-right** - Actions shown on the right of the header bar.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **palette** - The left palette panel.\n- **canvas** - The centre section-card canvas.\n- **inspector** - The right panel while a section is selected.",
|
|
6490
|
+
"description": "A config-driven page composer: a palette of predefined section types, a linear\ncanvas of section cards, and an inspector for editing each section's content.\n---\n\n\n### **Events:**\n - **zn-page-change** - Emitted whenever the page state changes. `event.detail.state` is the new PageState.\n- **zn-page-selection-change** - Emitted when the selected section changes. `event.detail.sectionId`.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **addSection(type: _string_, index: _number_): _PageSection | null_** - Adds a section of a registered type at `index` (default: end). Returns null for unknown types.\n- **addSectionToSlot(type: _string_, containerId: _string_, slotIndex: _number_): _PageSection | null_** - Adds a new section of a registered type into a container's slot. Returns null if not allowed.\n\n### **Slots:**\n - **config** - `<template type=\"…\">` declarations; never displayed. Each template's attributes (type, label, icon, icon-library, color, category, description, slots, accepts) declare a palette entry and its content declares the inspector form for that type. `slots` makes the section a container with that many child slots; `accepts` is a comma-separated list of the type keys its slots allow.\n- **header-left** - Actions shown on the left of the header bar.\n- **header-right** - Actions shown on the right of the header bar.\n\n### **CSS Parts:**\n - **base** - The grid wrapper.\n- **header** - The full-width header action bar (only rendered when header slots are filled).\n- **palette** - The left palette panel.\n- **canvas** - The centre section-card canvas.\n- **inspector** - The right panel while a section is selected.\n- **inspector-header** - The inspector's fixed header (icon, section name, type, close).\n- **inspector-body** - The inspector's scrolling form area.",
|
|
6481
6491
|
"doc-url": "",
|
|
6482
6492
|
"attributes": [
|
|
6483
6493
|
{
|
|
@@ -7228,7 +7238,7 @@
|
|
|
7228
7238
|
},
|
|
7229
7239
|
{
|
|
7230
7240
|
"name": "zn-priority-list",
|
|
7231
|
-
"description": "A reorderable list where each item receives a numerical priority based on its position. Supports drag-and-drop\nand keyboard reordering. Priority values are submitted as form data via hidden inputs.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the order of items changes.\n- **zn-reorder** - Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array.\n\n### **Methods:**\n - **getPriorityMap(): _PriorityItem[]_** - Returns the priority map: an array of { key, priority } objects.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing).\n- **label** - The component's label. Required for proper accessibility. Alternatively, use the `label` attribute.\n- **label-tooltip** - Used to add text displayed in a tooltip next to the label.\n- **help-text** - Text that describes how to use the component. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-priority-list-item-gap** - The gap between list items. Defaults to `var(--zn-spacing-2x-small)`. _(default: undefined)_\n- **--zn-priority-list-item-padding** - The padding inside each item. Defaults to `var(--zn-spacing-small) var(--zn-spacing-medium)`. _(default: undefined)_\n- **--zn-priority-list-handle-color** - The color of the drag handle. Defaults to `var(--zn-color-neutral-500)`. _(default: undefined)_\n- **--zn-priority-list-priority-color** - The color of the priority number. Defaults to `var(--zn-color-neutral-600)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control wrapper.\n- **form-control-label** - The label wrapper.\n- **form-control-input** - The input area wrapper.\n- **form-control-help-text** - The help text wrapper.\n- **list** - The list container.\n- **item** - An individual list item row.\n- **drag-handle** - The drag handle icon.\n- **priority** - The priority number badge.\n- **content** - The content area of an item.",
|
|
7241
|
+
"description": "A reorderable list where each item receives a numerical priority based on its position. Supports drag-and-drop\nand keyboard reordering. Priority values are submitted as form data via hidden inputs.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the order of items changes.\n- **zn-reorder** - Emitted when items are reordered. Call `getPriorityMap()` on the component to get the updated `{ key: string, priority: number }[]` array.\n\n### **Methods:**\n - **getPriorityMap(): _PriorityItem[]_** - Returns the priority map: an array of { key, priority } objects.\n- **checkValidity(): _boolean_** - Checks for validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(_message)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot where list items are placed. Each slotted element must have a `value` attribute that uniquely identifies the item. The component automatically assigns slot names to project each item into the correct position. The item's position in the list determines its priority (top = `priority-start`, incrementing).\n- **label** - The component's label. Required for proper accessibility. Alternatively, use the `label` attribute.\n- **label-tooltip** - Used to add text displayed in a tooltip next to the label.\n- **help-text** - Text that describes how to use the component. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-priority-list-item-gap** - The gap between list items. Defaults to `var(--zn-spacing-2x-small)`. _(default: undefined)_\n- **--zn-priority-list-item-padding** - The padding inside each item. Defaults to `var(--zn-spacing-small) var(--zn-spacing-medium)`. _(default: undefined)_\n- **--zn-priority-list-actions-gap** - The gap between an item's slotted actions. Defaults to `var(--zn-spacing-x-small)`. _(default: undefined)_\n- **--zn-priority-list-handle-color** - The color of the drag handle. Defaults to `var(--zn-color-neutral-500)`. _(default: undefined)_\n- **--zn-priority-list-priority-color** - The color of the priority number. Defaults to `var(--zn-color-neutral-600)`. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control wrapper.\n- **form-control-label** - The label wrapper.\n- **form-control-input** - The input area wrapper.\n- **form-control-help-text** - The help text wrapper.\n- **list** - The list container.\n- **item** - An individual list item row.\n- **drag-handle** - The drag handle icon.\n- **priority** - The priority number badge.\n- **content** - The content area of an item.",
|
|
7232
7242
|
"doc-url": "",
|
|
7233
7243
|
"attributes": [
|
|
7234
7244
|
{
|
|
@@ -8118,6 +8128,299 @@
|
|
|
8118
8128
|
]
|
|
8119
8129
|
}
|
|
8120
8130
|
},
|
|
8131
|
+
{
|
|
8132
|
+
"name": "zn-schedule-builder",
|
|
8133
|
+
"description": "Builds a weekly opening-hours schedule as a drag-to-paint calendar or a compact list of\ntime ranges, and posts the result as JSON.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the schedule changes.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks validity but does not show a validation message.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity(): _boolean_** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n- **setDay(day: _ScheduleDay_, ranges: _ScheduleRange[]_)** - Replaces the hours for a single day, in the save timezone.\n- **getDay(day: _ScheduleDay_): _ScheduleRange[]_** - Reads the hours for a single day, in the save timezone.\n- **setDisplayDay(day: _ScheduleDay_, ranges: _ScheduleRange[]_)** - Replaces the hours for a single day, given in the display timezone.\n\n### **Slots:**\n - **label** - The schedule's label. Alternatively, use the `label` attribute.\n- **help-text** - Text that describes how to use the schedule. Alternatively, use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--slot-height** - The height of a single time slot in the calendar. Defaults to `18px`. _(default: undefined)_\n- **--gutter-width** - The width of the calendar's time gutter. Defaults to `64px`. _(default: undefined)_\n- **--open-color** - The fill used for open hours. _(default: undefined)_\n- **--reduced-color** - The fill used for hours an exception removes. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the builder, label and help text.\n- **base** - The component's base wrapper.\n- **toolbar** - The row above the builder holding the hint, legend and view toggle.\n- **calendar** - The calendar view wrapper.\n- **list** - The form (list) view wrapper.\n- **summary** - The summary panel beside the calendar.",
|
|
8134
|
+
"doc-url": "",
|
|
8135
|
+
"attributes": [
|
|
8136
|
+
{
|
|
8137
|
+
"name": "name",
|
|
8138
|
+
"description": "The name of the form control, submitted as a name/value pair with form data.",
|
|
8139
|
+
"value": { "type": "string" }
|
|
8140
|
+
},
|
|
8141
|
+
{
|
|
8142
|
+
"name": "value",
|
|
8143
|
+
"description": "The schedule as a JSON string. This is what gets posted with the form.",
|
|
8144
|
+
"value": { "type": "string", "default": "''" }
|
|
8145
|
+
},
|
|
8146
|
+
{
|
|
8147
|
+
"name": "label",
|
|
8148
|
+
"description": "The schedule's label. If you need to display HTML, use the `label` slot instead.",
|
|
8149
|
+
"value": { "type": "string", "default": "''" }
|
|
8150
|
+
},
|
|
8151
|
+
{
|
|
8152
|
+
"name": "help-text",
|
|
8153
|
+
"description": "The schedule's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
8154
|
+
"value": { "type": "string", "default": "''" }
|
|
8155
|
+
},
|
|
8156
|
+
{
|
|
8157
|
+
"name": "view",
|
|
8158
|
+
"description": "Which view is showing.",
|
|
8159
|
+
"value": { "type": "ScheduleView", "default": "'calendar'" }
|
|
8160
|
+
},
|
|
8161
|
+
{
|
|
8162
|
+
"name": "open-label",
|
|
8163
|
+
"description": "The word used for hours the schedule covers, in the legend and in labels.",
|
|
8164
|
+
"value": { "type": "string", "default": "'Available'" }
|
|
8165
|
+
},
|
|
8166
|
+
{
|
|
8167
|
+
"name": "closed-label",
|
|
8168
|
+
"description": "The word used for hours the schedule doesn't cover, in the legend and against empty days.",
|
|
8169
|
+
"value": { "type": "string", "default": "'Closed'" }
|
|
8170
|
+
},
|
|
8171
|
+
{
|
|
8172
|
+
"name": "no-toggle",
|
|
8173
|
+
"description": "Hides the calendar/form view toggle.",
|
|
8174
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8175
|
+
},
|
|
8176
|
+
{
|
|
8177
|
+
"name": "hide-summary",
|
|
8178
|
+
"description": "Hides the summary panel beside the calendar.",
|
|
8179
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8180
|
+
},
|
|
8181
|
+
{
|
|
8182
|
+
"name": "start-hour",
|
|
8183
|
+
"description": "The first hour shown in the calendar.",
|
|
8184
|
+
"value": { "type": "number", "default": "6" }
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
"name": "end-hour",
|
|
8188
|
+
"description": "The last hour shown in the calendar.",
|
|
8189
|
+
"value": { "type": "number", "default": "22" }
|
|
8190
|
+
},
|
|
8191
|
+
{
|
|
8192
|
+
"name": "interval",
|
|
8193
|
+
"description": "The granularity of the calendar grid and the time inputs, in minutes.",
|
|
8194
|
+
"value": { "type": "number", "default": "30" }
|
|
8195
|
+
},
|
|
8196
|
+
{
|
|
8197
|
+
"name": "week-start",
|
|
8198
|
+
"description": "The weekday the week starts on.",
|
|
8199
|
+
"value": { "type": "ScheduleDay", "default": "'mon'" }
|
|
8200
|
+
},
|
|
8201
|
+
{
|
|
8202
|
+
"name": "time-format",
|
|
8203
|
+
"description": "Displays times as 12 or 24 hour. The serialised value is always 24 hour `HH:MM`.",
|
|
8204
|
+
"value": { "type": "'12' | '24'", "default": "'24'" }
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
"name": "display-timezone",
|
|
8208
|
+
"description": "The IANA timezone the hours are shown in. Accepts `auto` for the viewer's own timezone. Defaults\nto `save-timezone`, so nothing is converted until you ask for it. Changing this only re-labels\nthe same underlying hours; the value never moves.",
|
|
8209
|
+
"value": { "type": "string", "default": "''" }
|
|
8210
|
+
},
|
|
8211
|
+
{
|
|
8212
|
+
"name": "save-timezone",
|
|
8213
|
+
"description": "The IANA timezone the value is stored in. Defaults to `UTC` as soon as the schedule is\ntimezone-aware (a display timezone is set, or the picker is shown), and to no timezone at all\notherwise — in which case the times are stored exactly as they are shown.",
|
|
8214
|
+
"value": { "type": "string", "default": "''" }
|
|
8215
|
+
},
|
|
8216
|
+
{
|
|
8217
|
+
"name": "show-timezone",
|
|
8218
|
+
"description": "Shows the timezone picker, letting the user read the schedule in any timezone.",
|
|
8219
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8220
|
+
},
|
|
8221
|
+
{
|
|
8222
|
+
"name": "timezones",
|
|
8223
|
+
"description": "The timezones offered by the picker, as IANA names or one of the named sets — `en` (the four US\nzones, the UK and Australia, under those names), `offsets` (one zone per UTC offset, the\ndefault), `common` (every offset plus the world's major centres) or `all` (the complete IANA\nlist). Names and sets can be mixed, e.g. `en Asia/Tokyo`.",
|
|
8224
|
+
"value": { "type": "string[]", "default": "[]" }
|
|
8225
|
+
},
|
|
8226
|
+
{
|
|
8227
|
+
"name": "reference-date",
|
|
8228
|
+
"description": "The date (`YYYY-MM-DD`) used to resolve timezone offsets. A weekly pattern has no date of its\nown, so one has to be picked to know whether daylight saving applies; today is used by default.",
|
|
8229
|
+
"value": { "type": "string", "default": "''" }
|
|
8230
|
+
},
|
|
8231
|
+
{
|
|
8232
|
+
"name": "disabled",
|
|
8233
|
+
"description": "Disables the schedule.",
|
|
8234
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8235
|
+
},
|
|
8236
|
+
{
|
|
8237
|
+
"name": "readonly",
|
|
8238
|
+
"description": "Renders the schedule without any editing affordances.",
|
|
8239
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8240
|
+
},
|
|
8241
|
+
{
|
|
8242
|
+
"name": "required",
|
|
8243
|
+
"description": "Makes the schedule a required field, invalid until at least one period is open.",
|
|
8244
|
+
"value": { "type": "boolean", "default": "false" }
|
|
8245
|
+
},
|
|
8246
|
+
{
|
|
8247
|
+
"name": "form",
|
|
8248
|
+
"description": "The id of the form to associate with, when the control sits outside of it.",
|
|
8249
|
+
"value": { "type": "string" }
|
|
8250
|
+
}
|
|
8251
|
+
],
|
|
8252
|
+
"slots": [
|
|
8253
|
+
{
|
|
8254
|
+
"name": "label",
|
|
8255
|
+
"description": "The schedule's label. Alternatively, use the `label` attribute."
|
|
8256
|
+
},
|
|
8257
|
+
{
|
|
8258
|
+
"name": "help-text",
|
|
8259
|
+
"description": "Text that describes how to use the schedule. Alternatively, use the `help-text` attribute."
|
|
8260
|
+
}
|
|
8261
|
+
],
|
|
8262
|
+
"events": [
|
|
8263
|
+
{
|
|
8264
|
+
"name": "zn-change",
|
|
8265
|
+
"description": "Emitted when the schedule changes."
|
|
8266
|
+
}
|
|
8267
|
+
],
|
|
8268
|
+
"js": {
|
|
8269
|
+
"properties": [
|
|
8270
|
+
{
|
|
8271
|
+
"name": "name",
|
|
8272
|
+
"description": "The name of the form control, submitted as a name/value pair with form data.",
|
|
8273
|
+
"type": "string"
|
|
8274
|
+
},
|
|
8275
|
+
{
|
|
8276
|
+
"name": "value",
|
|
8277
|
+
"description": "The schedule as a JSON string. This is what gets posted with the form.",
|
|
8278
|
+
"type": "string"
|
|
8279
|
+
},
|
|
8280
|
+
{
|
|
8281
|
+
"name": "defaultValue",
|
|
8282
|
+
"description": "The default value, used when resetting the containing form.",
|
|
8283
|
+
"type": "string"
|
|
8284
|
+
},
|
|
8285
|
+
{
|
|
8286
|
+
"name": "label",
|
|
8287
|
+
"description": "The schedule's label. If you need to display HTML, use the `label` slot instead.",
|
|
8288
|
+
"type": "string"
|
|
8289
|
+
},
|
|
8290
|
+
{
|
|
8291
|
+
"name": "helpText",
|
|
8292
|
+
"description": "The schedule's help text. If you need to display HTML, use the `help-text` slot instead.",
|
|
8293
|
+
"type": "string"
|
|
8294
|
+
},
|
|
8295
|
+
{
|
|
8296
|
+
"name": "view",
|
|
8297
|
+
"description": "Which view is showing.",
|
|
8298
|
+
"type": "ScheduleView"
|
|
8299
|
+
},
|
|
8300
|
+
{
|
|
8301
|
+
"name": "openLabel",
|
|
8302
|
+
"description": "The word used for hours the schedule covers, in the legend and in labels.",
|
|
8303
|
+
"type": "string"
|
|
8304
|
+
},
|
|
8305
|
+
{
|
|
8306
|
+
"name": "closedLabel",
|
|
8307
|
+
"description": "The word used for hours the schedule doesn't cover, in the legend and against empty days.",
|
|
8308
|
+
"type": "string"
|
|
8309
|
+
},
|
|
8310
|
+
{
|
|
8311
|
+
"name": "noToggle",
|
|
8312
|
+
"description": "Hides the calendar/form view toggle.",
|
|
8313
|
+
"type": "boolean"
|
|
8314
|
+
},
|
|
8315
|
+
{
|
|
8316
|
+
"name": "hideSummary",
|
|
8317
|
+
"description": "Hides the summary panel beside the calendar.",
|
|
8318
|
+
"type": "boolean"
|
|
8319
|
+
},
|
|
8320
|
+
{
|
|
8321
|
+
"name": "startHour",
|
|
8322
|
+
"description": "The first hour shown in the calendar.",
|
|
8323
|
+
"type": "number"
|
|
8324
|
+
},
|
|
8325
|
+
{
|
|
8326
|
+
"name": "endHour",
|
|
8327
|
+
"description": "The last hour shown in the calendar.",
|
|
8328
|
+
"type": "number"
|
|
8329
|
+
},
|
|
8330
|
+
{
|
|
8331
|
+
"name": "interval",
|
|
8332
|
+
"description": "The granularity of the calendar grid and the time inputs, in minutes.",
|
|
8333
|
+
"type": "number"
|
|
8334
|
+
},
|
|
8335
|
+
{
|
|
8336
|
+
"name": "weekStart",
|
|
8337
|
+
"description": "The weekday the week starts on.",
|
|
8338
|
+
"type": "ScheduleDay"
|
|
8339
|
+
},
|
|
8340
|
+
{
|
|
8341
|
+
"name": "timeFormat",
|
|
8342
|
+
"description": "Displays times as 12 or 24 hour. The serialised value is always 24 hour `HH:MM`.",
|
|
8343
|
+
"type": "'12' | '24'"
|
|
8344
|
+
},
|
|
8345
|
+
{
|
|
8346
|
+
"name": "displayTimezone",
|
|
8347
|
+
"description": "The IANA timezone the hours are shown in. Accepts `auto` for the viewer's own timezone. Defaults\nto `save-timezone`, so nothing is converted until you ask for it. Changing this only re-labels\nthe same underlying hours; the value never moves.",
|
|
8348
|
+
"type": "string"
|
|
8349
|
+
},
|
|
8350
|
+
{
|
|
8351
|
+
"name": "saveTimezone",
|
|
8352
|
+
"description": "The IANA timezone the value is stored in. Defaults to `UTC` as soon as the schedule is\ntimezone-aware (a display timezone is set, or the picker is shown), and to no timezone at all\notherwise — in which case the times are stored exactly as they are shown.",
|
|
8353
|
+
"type": "string"
|
|
8354
|
+
},
|
|
8355
|
+
{
|
|
8356
|
+
"name": "showTimezone",
|
|
8357
|
+
"description": "Shows the timezone picker, letting the user read the schedule in any timezone.",
|
|
8358
|
+
"type": "boolean"
|
|
8359
|
+
},
|
|
8360
|
+
{
|
|
8361
|
+
"name": "timezones",
|
|
8362
|
+
"description": "The timezones offered by the picker, as IANA names or one of the named sets — `en` (the four US\nzones, the UK and Australia, under those names), `offsets` (one zone per UTC offset, the\ndefault), `common` (every offset plus the world's major centres) or `all` (the complete IANA\nlist). Names and sets can be mixed, e.g. `en Asia/Tokyo`.",
|
|
8363
|
+
"type": "string[]"
|
|
8364
|
+
},
|
|
8365
|
+
{
|
|
8366
|
+
"name": "referenceDate",
|
|
8367
|
+
"description": "The date (`YYYY-MM-DD`) used to resolve timezone offsets. A weekly pattern has no date of its\nown, so one has to be picked to know whether daylight saving applies; today is used by default.",
|
|
8368
|
+
"type": "string"
|
|
8369
|
+
},
|
|
8370
|
+
{
|
|
8371
|
+
"name": "disabled",
|
|
8372
|
+
"description": "Disables the schedule.",
|
|
8373
|
+
"type": "boolean"
|
|
8374
|
+
},
|
|
8375
|
+
{
|
|
8376
|
+
"name": "readonly",
|
|
8377
|
+
"description": "Renders the schedule without any editing affordances.",
|
|
8378
|
+
"type": "boolean"
|
|
8379
|
+
},
|
|
8380
|
+
{
|
|
8381
|
+
"name": "required",
|
|
8382
|
+
"description": "Makes the schedule a required field, invalid until at least one period is open.",
|
|
8383
|
+
"type": "boolean"
|
|
8384
|
+
},
|
|
8385
|
+
{
|
|
8386
|
+
"name": "form",
|
|
8387
|
+
"description": "The id of the form to associate with, when the control sits outside of it.",
|
|
8388
|
+
"type": "string"
|
|
8389
|
+
},
|
|
8390
|
+
{
|
|
8391
|
+
"name": "schedule",
|
|
8392
|
+
"description": "The schedule as a plain object, with `days` in the save timezone. Assigning to it replaces the\nwhole schedule.",
|
|
8393
|
+
"type": "ScheduleValue"
|
|
8394
|
+
},
|
|
8395
|
+
{
|
|
8396
|
+
"name": "exceptions",
|
|
8397
|
+
"description": "The exceptions annotating the schedule. Also readable from, and written into, the value.",
|
|
8398
|
+
"type": "ScheduleException[]"
|
|
8399
|
+
},
|
|
8400
|
+
{
|
|
8401
|
+
"name": "validity",
|
|
8402
|
+
"description": "Gets the validity state object.",
|
|
8403
|
+
"type": "ValidityState"
|
|
8404
|
+
},
|
|
8405
|
+
{
|
|
8406
|
+
"name": "validationMessage",
|
|
8407
|
+
"description": "Gets the validation message.",
|
|
8408
|
+
"type": "string"
|
|
8409
|
+
},
|
|
8410
|
+
{
|
|
8411
|
+
"name": "displayedDays",
|
|
8412
|
+
"description": "The hours as currently shown, in the display timezone.",
|
|
8413
|
+
"type": "ScheduleDayMap"
|
|
8414
|
+
}
|
|
8415
|
+
],
|
|
8416
|
+
"events": [
|
|
8417
|
+
{
|
|
8418
|
+
"name": "zn-change",
|
|
8419
|
+
"description": "Emitted when the schedule changes."
|
|
8420
|
+
}
|
|
8421
|
+
]
|
|
8422
|
+
}
|
|
8423
|
+
},
|
|
8121
8424
|
{
|
|
8122
8425
|
"name": "zn-scroll-container",
|
|
8123
8426
|
"description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
@@ -10711,7 +11014,7 @@
|
|
|
10711
11014
|
},
|
|
10712
11015
|
{
|
|
10713
11016
|
"name": "zn-toggle",
|
|
10714
|
-
"description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n- **description** - A description of the toggle's label. Alternatively, you can use the `description` attribute.\n- **help-text** - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).\n- **description** - The container that wraps the toggle's description.",
|
|
11017
|
+
"description": "Toggles allow the user to switch an option on or off.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted when the toggle receives input.\n\n### **Slots:**\n - _default_ - The toggle's label.\n- **description** - A description of the toggle's label. Alternatively, you can use the `description` attribute.\n- **help-text** - Text that describes how to use the toggle. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--zn-toggle-margin** - The margin around the toggle switch. Defaults to `8px 0`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper containing the toggle switch.\n- **control** - The toggle switch control (the circular button that slides).\n- **label** - The toggle's label.\n- **description** - The container that wraps the toggle's description.",
|
|
10715
11018
|
"doc-url": "",
|
|
10716
11019
|
"attributes": [
|
|
10717
11020
|
{
|