@kubex/zinc 1.1.107 → 1.1.108

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.
@@ -13,17 +13,6 @@
13
13
  }
14
14
  ]
15
15
  },
16
- {
17
- "name": "zn-action-bar",
18
- "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.",
19
- "attributes": [],
20
- "references": [
21
- {
22
- "name": "Documentation",
23
- "url": "https://zinc.style/components/action-bar"
24
- }
25
- ]
26
- },
27
16
  {
28
17
  "name": "zn-alert",
29
18
  "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.",
@@ -64,6 +53,17 @@
64
53
  }
65
54
  ]
66
55
  },
56
+ {
57
+ "name": "zn-action-bar",
58
+ "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.",
59
+ "attributes": [],
60
+ "references": [
61
+ {
62
+ "name": "Documentation",
63
+ "url": "https://zinc.style/components/action-bar"
64
+ }
65
+ ]
66
+ },
67
67
  {
68
68
  "name": "zn-animated-button",
69
69
  "description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
@@ -3576,6 +3576,47 @@
3576
3576
  }
3577
3577
  ]
3578
3578
  },
3579
+ {
3580
+ "name": "zn-rating",
3581
+ "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
3582
+ "attributes": [
3583
+ { "name": "label", "values": [] },
3584
+ {
3585
+ "name": "help-text",
3586
+ "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
3587
+ "values": []
3588
+ },
3589
+ { "name": "name", "values": [] },
3590
+ { "name": "value", "values": [] },
3591
+ { "name": "max", "values": [] },
3592
+ { "name": "precision", "values": [] },
3593
+ { "name": "readonly", "values": [] },
3594
+ { "name": "disabled", "values": [] },
3595
+ {
3596
+ "name": "preview",
3597
+ "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
3598
+ "values": []
3599
+ },
3600
+ {
3601
+ "name": "size",
3602
+ "values": [
3603
+ { "name": "small" },
3604
+ { "name": "medium" },
3605
+ { "name": "large" }
3606
+ ]
3607
+ },
3608
+ {
3609
+ "name": "getSymbol",
3610
+ "values": [{ "name": "(value: number) => string" }]
3611
+ }
3612
+ ],
3613
+ "references": [
3614
+ {
3615
+ "name": "Documentation",
3616
+ "url": "https://zinc.style/components/rating"
3617
+ }
3618
+ ]
3619
+ },
3579
3620
  {
3580
3621
  "name": "zn-remarkd-editor",
3581
3622
  "description": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted on each keystroke while editing a block.\n- **zn-change** - Emitted when a block edit is committed and the value changes.\n\n### **Methods:**\n - **focus()** - Starts editing the first block, or a new block if the document is empty.\n- **blur()** - Commits any in-progress block or raw edit.\n\n### **CSS Properties:**\n - **--remarkd-editor-max-height** - The tallest the editor grows before its body scrolls. Defaults to `100dvh`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The always-visible block-insert and inline-formatting toolbar.\n- **raw-toggle** - The button that switches between the block view and the raw source view.\n- **block** - A rendered block wrapper.\n- **rendered** - The rendered remarkd output of a block.\n- **conditional** - A labelled wrapper for an ifdef/ifndef/ifeval/iftrue/iffalse/ifempty/ifnempty range.\n- **variable** - A chip rendered for a document attribute, title, or bracket line.\n- **input** - The textarea shown while editing a block.\n- **raw** - The full-document textarea shown in raw source mode.\n- **slash-menu** - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n- **image-controls** - The caption / alignment / size panel shown when an image block is clicked.\n- **include** - The chip rendered in place of an `include::` directive.\n- **include-picker** - The inline Include picker opened from the toolbar or \"/include\".",
@@ -3659,47 +3700,6 @@
3659
3700
  }
3660
3701
  ]
3661
3702
  },
3662
- {
3663
- "name": "zn-rating",
3664
- "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
3665
- "attributes": [
3666
- { "name": "label", "values": [] },
3667
- {
3668
- "name": "help-text",
3669
- "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
3670
- "values": []
3671
- },
3672
- { "name": "name", "values": [] },
3673
- { "name": "value", "values": [] },
3674
- { "name": "max", "values": [] },
3675
- { "name": "precision", "values": [] },
3676
- { "name": "readonly", "values": [] },
3677
- { "name": "disabled", "values": [] },
3678
- {
3679
- "name": "preview",
3680
- "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
3681
- "values": []
3682
- },
3683
- {
3684
- "name": "size",
3685
- "values": [
3686
- { "name": "small" },
3687
- { "name": "medium" },
3688
- { "name": "large" }
3689
- ]
3690
- },
3691
- {
3692
- "name": "getSymbol",
3693
- "values": [{ "name": "(value: number) => string" }]
3694
- }
3695
- ],
3696
- "references": [
3697
- {
3698
- "name": "Documentation",
3699
- "url": "https://zinc.style/components/rating"
3700
- }
3701
- ]
3702
- },
3703
3703
  {
3704
3704
  "name": "zn-schedule-builder",
3705
3705
  "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.",
@@ -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.107",
4
+ "version": "1.1.108",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,28 +15,6 @@
15
15
  "events": [],
16
16
  "js": { "properties": [], "events": [] }
17
17
  },
18
- {
19
- "name": "zn-action-bar",
20
- "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.",
21
- "doc-url": "",
22
- "attributes": [],
23
- "slots": [
24
- { "name": "", "description": "The default slot." },
25
- { "name": "example", "description": "An example slot." }
26
- ],
27
- "events": [
28
- { "name": "zn-event-name", "description": "Emitted as an example." }
29
- ],
30
- "js": {
31
- "properties": [],
32
- "events": [
33
- {
34
- "name": "zn-event-name",
35
- "description": "Emitted as an example."
36
- }
37
- ]
38
- }
39
- },
40
18
  {
41
19
  "name": "zn-alert",
42
20
  "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.",
@@ -105,6 +83,28 @@
105
83
  ]
106
84
  }
107
85
  },
86
+ {
87
+ "name": "zn-action-bar",
88
+ "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.",
89
+ "doc-url": "",
90
+ "attributes": [],
91
+ "slots": [
92
+ { "name": "", "description": "The default slot." },
93
+ { "name": "example", "description": "An example slot." }
94
+ ],
95
+ "events": [
96
+ { "name": "zn-event-name", "description": "Emitted as an example." }
97
+ ],
98
+ "js": {
99
+ "properties": [],
100
+ "events": [
101
+ {
102
+ "name": "zn-event-name",
103
+ "description": "Emitted as an example."
104
+ }
105
+ ]
106
+ }
107
+ },
108
108
  {
109
109
  "name": "zn-animated-button",
110
110
  "description": "\n---\n\n\n### **Methods:**\n - **purchase(): _void_** - Programmatically trigger the purchase flow\n- **setSuccess(): _void_** - Set the button to success state manually\n- **setFailure(message): _void_** - Set the button to failure state manually with optional error message\n- **reset(): _void_** - Reset the button to idle state",
@@ -8342,6 +8342,105 @@
8342
8342
  ]
8343
8343
  }
8344
8344
  },
8345
+ {
8346
+ "name": "zn-rating",
8347
+ "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
8348
+ "doc-url": "",
8349
+ "attributes": [
8350
+ { "name": "label", "value": { "type": "string" } },
8351
+ {
8352
+ "name": "help-text",
8353
+ "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
8354
+ "value": { "type": "string", "default": "''" }
8355
+ },
8356
+ { "name": "name", "value": { "type": "string" } },
8357
+ { "name": "value", "value": { "type": "number", "default": "0" } },
8358
+ { "name": "max", "value": { "type": "number", "default": "5" } },
8359
+ {
8360
+ "name": "precision",
8361
+ "value": { "type": "number", "default": "1" }
8362
+ },
8363
+ {
8364
+ "name": "readonly",
8365
+ "value": { "type": "boolean", "default": "false" }
8366
+ },
8367
+ {
8368
+ "name": "disabled",
8369
+ "value": { "type": "boolean", "default": "false" }
8370
+ },
8371
+ {
8372
+ "name": "preview",
8373
+ "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
8374
+ "value": { "type": "boolean", "default": "false" }
8375
+ },
8376
+ {
8377
+ "name": "size",
8378
+ "value": {
8379
+ "type": "'small' | 'medium' | 'large'",
8380
+ "default": "'medium'"
8381
+ }
8382
+ },
8383
+ {
8384
+ "name": "getSymbol",
8385
+ "value": { "type": "(value: number) => string" }
8386
+ }
8387
+ ],
8388
+ "slots": [
8389
+ { "name": "", "description": "The default slot." },
8390
+ { "name": "example", "description": "An example slot." },
8391
+ {
8392
+ "name": "help-text",
8393
+ "description": "Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute."
8394
+ }
8395
+ ],
8396
+ "events": [
8397
+ { "name": "zn-event-name", "description": "Emitted as an example." }
8398
+ ],
8399
+ "js": {
8400
+ "properties": [
8401
+ { "name": "rating", "type": "HTMLElement" },
8402
+ { "name": "symbols", "type": "HTMLElement" },
8403
+ { "name": "label", "type": "string" },
8404
+ {
8405
+ "name": "helpText",
8406
+ "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
8407
+ "type": "string"
8408
+ },
8409
+ { "name": "name", "type": "string" },
8410
+ { "name": "value", "type": "number" },
8411
+ {
8412
+ "name": "defaultValue",
8413
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
8414
+ "type": "number"
8415
+ },
8416
+ { "name": "max", "type": "number" },
8417
+ { "name": "precision", "type": "number" },
8418
+ { "name": "readonly", "type": "boolean" },
8419
+ { "name": "disabled", "type": "boolean" },
8420
+ {
8421
+ "name": "preview",
8422
+ "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
8423
+ "type": "boolean"
8424
+ },
8425
+ { "name": "size", "type": "'small' | 'medium' | 'large'" },
8426
+ { "name": "getSymbol", "type": "(value: number) => string" },
8427
+ {
8428
+ "name": "validity",
8429
+ "description": "Gets the validity state object"
8430
+ },
8431
+ {
8432
+ "name": "validationMessage",
8433
+ "description": "Gets the validation message"
8434
+ }
8435
+ ],
8436
+ "events": [
8437
+ {
8438
+ "name": "zn-event-name",
8439
+ "description": "Emitted as an example."
8440
+ }
8441
+ ]
8442
+ }
8443
+ },
8345
8444
  {
8346
8445
  "name": "zn-remarkd-editor",
8347
8446
  "description": "A Notion-style block editor for remarkd content. Blocks render inline; click one to edit its source.\n---\n\n\n### **Events:**\n - **zn-input** - Emitted on each keystroke while editing a block.\n- **zn-change** - Emitted when a block edit is committed and the value changes.\n\n### **Methods:**\n - **focus()** - Starts editing the first block, or a new block if the document is empty.\n- **blur()** - Commits any in-progress block or raw edit.\n\n### **CSS Properties:**\n - **--remarkd-editor-max-height** - The tallest the editor grows before its body scrolls. Defaults to `100dvh`. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **toolbar** - The always-visible block-insert and inline-formatting toolbar.\n- **raw-toggle** - The button that switches between the block view and the raw source view.\n- **block** - A rendered block wrapper.\n- **rendered** - The rendered remarkd output of a block.\n- **conditional** - A labelled wrapper for an ifdef/ifndef/ifeval/iftrue/iffalse/ifempty/ifnempty range.\n- **variable** - A chip rendered for a document attribute, title, or bracket line.\n- **input** - The textarea shown while editing a block.\n- **raw** - The full-document textarea shown in raw source mode.\n- **slash-menu** - The `zn-slash-menu` opened by typing \"/\" in an empty block.\n- **image-controls** - The caption / alignment / size panel shown when an image block is clicked.\n- **include** - The chip rendered in place of an `include::` directive.\n- **include-picker** - The inline Include picker opened from the toolbar or \"/include\".",
@@ -8534,105 +8633,6 @@
8534
8633
  ]
8535
8634
  }
8536
8635
  },
8537
- {
8538
- "name": "zn-rating",
8539
- "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-event-name** - Emitted as an example.\n\n### **Methods:**\n - **checkValidity(): _boolean_** - Checks the validity but does not show a validation message. Returns `true` when valid and `false` when invalid.\n- **getForm(): _HTMLFormElement | null_** - Gets the associated form, if one exists.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity()** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The default slot.\n- **example** - An example slot.\n- **help-text** - Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute.\n\n### **CSS Properties:**\n - **--example** - An example CSS custom property. _(default: undefined)_\n- **--preview-color** - The color of the preview value. _(default: undefined)_\n- **--preview-size** - The font size of the preview value. _(default: undefined)_\n\n### **CSS Parts:**\n - **form-control** - The form control that wraps the symbols and help text.\n- **form-control-help-text** - The help text's wrapper.\n- **base** - The component's base wrapper.\n- **preview** - The value shown next to the symbols when `preview` is enabled.",
8540
- "doc-url": "",
8541
- "attributes": [
8542
- { "name": "label", "value": { "type": "string" } },
8543
- {
8544
- "name": "help-text",
8545
- "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
8546
- "value": { "type": "string", "default": "''" }
8547
- },
8548
- { "name": "name", "value": { "type": "string" } },
8549
- { "name": "value", "value": { "type": "number", "default": "0" } },
8550
- { "name": "max", "value": { "type": "number", "default": "5" } },
8551
- {
8552
- "name": "precision",
8553
- "value": { "type": "number", "default": "1" }
8554
- },
8555
- {
8556
- "name": "readonly",
8557
- "value": { "type": "boolean", "default": "false" }
8558
- },
8559
- {
8560
- "name": "disabled",
8561
- "value": { "type": "boolean", "default": "false" }
8562
- },
8563
- {
8564
- "name": "preview",
8565
- "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
8566
- "value": { "type": "boolean", "default": "false" }
8567
- },
8568
- {
8569
- "name": "size",
8570
- "value": {
8571
- "type": "'small' | 'medium' | 'large'",
8572
- "default": "'medium'"
8573
- }
8574
- },
8575
- {
8576
- "name": "getSymbol",
8577
- "value": { "type": "(value: number) => string" }
8578
- }
8579
- ],
8580
- "slots": [
8581
- { "name": "", "description": "The default slot." },
8582
- { "name": "example", "description": "An example slot." },
8583
- {
8584
- "name": "help-text",
8585
- "description": "Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute."
8586
- }
8587
- ],
8588
- "events": [
8589
- { "name": "zn-event-name", "description": "Emitted as an example." }
8590
- ],
8591
- "js": {
8592
- "properties": [
8593
- { "name": "rating", "type": "HTMLElement" },
8594
- { "name": "symbols", "type": "HTMLElement" },
8595
- { "name": "label", "type": "string" },
8596
- {
8597
- "name": "helpText",
8598
- "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
8599
- "type": "string"
8600
- },
8601
- { "name": "name", "type": "string" },
8602
- { "name": "value", "type": "number" },
8603
- {
8604
- "name": "defaultValue",
8605
- "description": "The default value of the form control. Primarily used for resetting the form control.",
8606
- "type": "number"
8607
- },
8608
- { "name": "max", "type": "number" },
8609
- { "name": "precision", "type": "number" },
8610
- { "name": "readonly", "type": "boolean" },
8611
- { "name": "disabled", "type": "boolean" },
8612
- {
8613
- "name": "preview",
8614
- "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
8615
- "type": "boolean"
8616
- },
8617
- { "name": "size", "type": "'small' | 'medium' | 'large'" },
8618
- { "name": "getSymbol", "type": "(value: number) => string" },
8619
- {
8620
- "name": "validity",
8621
- "description": "Gets the validity state object"
8622
- },
8623
- {
8624
- "name": "validationMessage",
8625
- "description": "Gets the validation message"
8626
- }
8627
- ],
8628
- "events": [
8629
- {
8630
- "name": "zn-event-name",
8631
- "description": "Emitted as an example."
8632
- }
8633
- ]
8634
- }
8635
- },
8636
8636
  {
8637
8637
  "name": "zn-schedule-builder",
8638
8638
  "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.",
package/dist/zn.d.ts CHANGED
@@ -724,6 +724,13 @@ declare module "internal/scroll" {
724
724
  export function unlockBodyScrolling(lockingEl: HTMLElement): void;
725
725
  /** Scrolls an element into view of its container. If the element is already in view, nothing will happen. */
726
726
  export function scrollIntoView(element: HTMLElement, container: HTMLElement, direction?: 'horizontal' | 'vertical' | 'both', behavior?: 'smooth' | 'auto'): void;
727
+ /**
728
+ * Every ancestor of `element`, itself included, that is scrolled away from the top. Shadow
729
+ * boundaries are crossed, so a host's own scroller and the app's outer one are both found.
730
+ */
731
+ export function getScrolledAncestors(element: Element | null | undefined): Element[];
732
+ /** Returns containers to the top. */
733
+ export function scrollToTop(containers: Iterable<Element>, behavior?: ScrollBehavior): void;
727
734
  }
728
735
  declare module "components/dialog/dialog.component" {
729
736
  import { type CSSResultGroup, type PropertyValues } from 'lit';