@kubex/zinc 1.1.105 → 1.1.107

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,6 +13,17 @@
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
+ },
16
27
  {
17
28
  "name": "zn-alert",
18
29
  "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.",
@@ -53,17 +64,6 @@
53
64
  }
54
65
  ]
55
66
  },
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",
@@ -1863,6 +1863,63 @@
1863
1863
  }
1864
1864
  ]
1865
1865
  },
1866
+ {
1867
+ "name": "zn-form-actions",
1868
+ "description": "Standard action row for the bottom of a form. Renders a submit button by default; opt in to more\nwith `with-cancel` and `with-reset`.\n---\n\n\n### **Events:**\n - **zn-cancel** - Emitted when the cancel button is clicked.\n\n### **Slots:**\n - _default_ - Extra actions, placed before the buttons.\n\n### **CSS Parts:**\n - **cancel-button** - The cancel button.\n- **reset-button** - The reset button.\n- **submit-button** - The submit button.",
1869
+ "attributes": [
1870
+ {
1871
+ "name": "submit-text",
1872
+ "description": "The submit button's text.",
1873
+ "values": []
1874
+ },
1875
+ {
1876
+ "name": "submit-icon",
1877
+ "description": "The submit button's icon.",
1878
+ "values": []
1879
+ },
1880
+ {
1881
+ "name": "with-cancel",
1882
+ "description": "Adds a cancel button. Closes the containing dialog or slideout, if any, and emits `zn-cancel`.",
1883
+ "values": []
1884
+ },
1885
+ {
1886
+ "name": "cancel-text",
1887
+ "description": "The cancel button's text.",
1888
+ "values": []
1889
+ },
1890
+ {
1891
+ "name": "cancel-icon",
1892
+ "description": "The cancel button's icon.",
1893
+ "values": []
1894
+ },
1895
+ {
1896
+ "name": "with-reset",
1897
+ "description": "Adds a reset button that resets the form.",
1898
+ "values": []
1899
+ },
1900
+ {
1901
+ "name": "reset-text",
1902
+ "description": "The reset button's text.",
1903
+ "values": []
1904
+ },
1905
+ {
1906
+ "name": "reset-icon",
1907
+ "description": "The reset button's icon.",
1908
+ "values": []
1909
+ },
1910
+ {
1911
+ "name": "form",
1912
+ "description": "The id of the form to act on. If omitted, the closest containing form is used.",
1913
+ "values": []
1914
+ }
1915
+ ],
1916
+ "references": [
1917
+ {
1918
+ "name": "Documentation",
1919
+ "url": "https://zinc.style/components/form-actions"
1920
+ }
1921
+ ]
1922
+ },
1866
1923
  {
1867
1924
  "name": "zn-form-group",
1868
1925
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **chip** - A chip displayed under the form group's help text.",
@@ -3519,47 +3576,6 @@
3519
3576
  }
3520
3577
  ]
3521
3578
  },
3522
- {
3523
- "name": "zn-rating",
3524
- "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.",
3525
- "attributes": [
3526
- { "name": "label", "values": [] },
3527
- {
3528
- "name": "help-text",
3529
- "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
3530
- "values": []
3531
- },
3532
- { "name": "name", "values": [] },
3533
- { "name": "value", "values": [] },
3534
- { "name": "max", "values": [] },
3535
- { "name": "precision", "values": [] },
3536
- { "name": "readonly", "values": [] },
3537
- { "name": "disabled", "values": [] },
3538
- {
3539
- "name": "preview",
3540
- "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
3541
- "values": []
3542
- },
3543
- {
3544
- "name": "size",
3545
- "values": [
3546
- { "name": "small" },
3547
- { "name": "medium" },
3548
- { "name": "large" }
3549
- ]
3550
- },
3551
- {
3552
- "name": "getSymbol",
3553
- "values": [{ "name": "(value: number) => string" }]
3554
- }
3555
- ],
3556
- "references": [
3557
- {
3558
- "name": "Documentation",
3559
- "url": "https://zinc.style/components/rating"
3560
- }
3561
- ]
3562
- },
3563
3579
  {
3564
3580
  "name": "zn-remarkd-editor",
3565
3581
  "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\".",
@@ -3643,6 +3659,47 @@
3643
3659
  }
3644
3660
  ]
3645
3661
  },
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
+ },
3646
3703
  {
3647
3704
  "name": "zn-schedule-builder",
3648
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.105",
4
+ "version": "1.1.107",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -15,6 +15,28 @@
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
+ },
18
40
  {
19
41
  "name": "zn-alert",
20
42
  "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.",
@@ -83,28 +105,6 @@
83
105
  ]
84
106
  }
85
107
  },
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",
@@ -2552,6 +2552,11 @@
2552
2552
  "description": "The value of the select. Used for form submission. When `multiple` is enabled, this is an array of strings.",
2553
2553
  "type": "string | string[]"
2554
2554
  },
2555
+ {
2556
+ "name": "defaultValue",
2557
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
2558
+ "type": "string | string[]"
2559
+ },
2555
2560
  {
2556
2561
  "name": "provider",
2557
2562
  "description": "The provider of the select.",
@@ -4383,6 +4388,125 @@
4383
4388
  ]
4384
4389
  }
4385
4390
  },
4391
+ {
4392
+ "name": "zn-form-actions",
4393
+ "description": "Standard action row for the bottom of a form. Renders a submit button by default; opt in to more\nwith `with-cancel` and `with-reset`.\n---\n\n\n### **Events:**\n - **zn-cancel** - Emitted when the cancel button is clicked.\n\n### **Slots:**\n - _default_ - Extra actions, placed before the buttons.\n\n### **CSS Parts:**\n - **cancel-button** - The cancel button.\n- **reset-button** - The reset button.\n- **submit-button** - The submit button.",
4394
+ "doc-url": "",
4395
+ "attributes": [
4396
+ {
4397
+ "name": "submit-text",
4398
+ "description": "The submit button's text.",
4399
+ "value": { "type": "string", "default": "'Save'" }
4400
+ },
4401
+ {
4402
+ "name": "submit-icon",
4403
+ "description": "The submit button's icon.",
4404
+ "value": { "type": "string", "default": "'check@lu'" }
4405
+ },
4406
+ {
4407
+ "name": "with-cancel",
4408
+ "description": "Adds a cancel button. Closes the containing dialog or slideout, if any, and emits `zn-cancel`.",
4409
+ "value": { "type": "boolean", "default": "false" }
4410
+ },
4411
+ {
4412
+ "name": "cancel-text",
4413
+ "description": "The cancel button's text.",
4414
+ "value": { "type": "string", "default": "'Cancel'" }
4415
+ },
4416
+ {
4417
+ "name": "cancel-icon",
4418
+ "description": "The cancel button's icon.",
4419
+ "value": { "type": "string", "default": "'x@lu'" }
4420
+ },
4421
+ {
4422
+ "name": "with-reset",
4423
+ "description": "Adds a reset button that resets the form.",
4424
+ "value": { "type": "boolean", "default": "false" }
4425
+ },
4426
+ {
4427
+ "name": "reset-text",
4428
+ "description": "The reset button's text.",
4429
+ "value": { "type": "string", "default": "'Reset'" }
4430
+ },
4431
+ {
4432
+ "name": "reset-icon",
4433
+ "description": "The reset button's icon.",
4434
+ "value": { "type": "string", "default": "'rotate-ccw@lu'" }
4435
+ },
4436
+ {
4437
+ "name": "form",
4438
+ "description": "The id of the form to act on. If omitted, the closest containing form is used.",
4439
+ "value": { "type": "string" }
4440
+ }
4441
+ ],
4442
+ "slots": [
4443
+ {
4444
+ "name": "",
4445
+ "description": "Extra actions, placed before the buttons."
4446
+ }
4447
+ ],
4448
+ "events": [
4449
+ {
4450
+ "name": "zn-cancel",
4451
+ "description": "Emitted when the cancel button is clicked."
4452
+ }
4453
+ ],
4454
+ "js": {
4455
+ "properties": [
4456
+ {
4457
+ "name": "submitText",
4458
+ "description": "The submit button's text.",
4459
+ "type": "string"
4460
+ },
4461
+ {
4462
+ "name": "submitIcon",
4463
+ "description": "The submit button's icon.",
4464
+ "type": "string"
4465
+ },
4466
+ {
4467
+ "name": "withCancel",
4468
+ "description": "Adds a cancel button. Closes the containing dialog or slideout, if any, and emits `zn-cancel`.",
4469
+ "type": "boolean"
4470
+ },
4471
+ {
4472
+ "name": "cancelText",
4473
+ "description": "The cancel button's text.",
4474
+ "type": "string"
4475
+ },
4476
+ {
4477
+ "name": "cancelIcon",
4478
+ "description": "The cancel button's icon.",
4479
+ "type": "string"
4480
+ },
4481
+ {
4482
+ "name": "withReset",
4483
+ "description": "Adds a reset button that resets the form.",
4484
+ "type": "boolean"
4485
+ },
4486
+ {
4487
+ "name": "resetText",
4488
+ "description": "The reset button's text.",
4489
+ "type": "string"
4490
+ },
4491
+ {
4492
+ "name": "resetIcon",
4493
+ "description": "The reset button's icon.",
4494
+ "type": "string"
4495
+ },
4496
+ {
4497
+ "name": "form",
4498
+ "description": "The id of the form to act on. If omitted, the closest containing form is used.",
4499
+ "type": "string"
4500
+ }
4501
+ ],
4502
+ "events": [
4503
+ {
4504
+ "name": "zn-cancel",
4505
+ "description": "Emitted when the cancel button is clicked."
4506
+ }
4507
+ ]
4508
+ }
4509
+ },
4386
4510
  {
4387
4511
  "name": "zn-form-group",
4388
4512
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **chip** - A chip displayed under the form group's help text.",
@@ -5882,6 +6006,11 @@
5882
6006
  "properties": [
5883
6007
  { "name": "name", "type": "string" },
5884
6008
  { "name": "value", "type": "string" },
6009
+ {
6010
+ "name": "defaultValue",
6011
+ "description": "The default value of the form control. Primarily used for resetting the form control.",
6012
+ "type": "string"
6013
+ },
5885
6014
  { "name": "checked", "type": "boolean" },
5886
6015
  { "name": "options", "type": "linkedSelectOptions" },
5887
6016
  { "name": "linkedSelect", "type": "string" },
@@ -8213,100 +8342,6 @@
8213
8342
  ]
8214
8343
  }
8215
8344
  },
8216
- {
8217
- "name": "zn-rating",
8218
- "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.",
8219
- "doc-url": "",
8220
- "attributes": [
8221
- { "name": "label", "value": { "type": "string" } },
8222
- {
8223
- "name": "help-text",
8224
- "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
8225
- "value": { "type": "string", "default": "''" }
8226
- },
8227
- { "name": "name", "value": { "type": "string" } },
8228
- { "name": "value", "value": { "type": "number", "default": "0" } },
8229
- { "name": "max", "value": { "type": "number", "default": "5" } },
8230
- {
8231
- "name": "precision",
8232
- "value": { "type": "number", "default": "1" }
8233
- },
8234
- {
8235
- "name": "readonly",
8236
- "value": { "type": "boolean", "default": "false" }
8237
- },
8238
- {
8239
- "name": "disabled",
8240
- "value": { "type": "boolean", "default": "false" }
8241
- },
8242
- {
8243
- "name": "preview",
8244
- "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
8245
- "value": { "type": "boolean", "default": "false" }
8246
- },
8247
- {
8248
- "name": "size",
8249
- "value": {
8250
- "type": "'small' | 'medium' | 'large'",
8251
- "default": "'medium'"
8252
- }
8253
- },
8254
- {
8255
- "name": "getSymbol",
8256
- "value": { "type": "(value: number) => string" }
8257
- }
8258
- ],
8259
- "slots": [
8260
- { "name": "", "description": "The default slot." },
8261
- { "name": "example", "description": "An example slot." },
8262
- {
8263
- "name": "help-text",
8264
- "description": "Text that describes how to use the rating. Alternatively, you can use the `help-text` attribute."
8265
- }
8266
- ],
8267
- "events": [
8268
- { "name": "zn-event-name", "description": "Emitted as an example." }
8269
- ],
8270
- "js": {
8271
- "properties": [
8272
- { "name": "rating", "type": "HTMLElement" },
8273
- { "name": "symbols", "type": "HTMLElement" },
8274
- { "name": "label", "type": "string" },
8275
- {
8276
- "name": "helpText",
8277
- "description": "The rating's help text. If you need to display HTML, use the `help-text` slot instead.",
8278
- "type": "string"
8279
- },
8280
- { "name": "name", "type": "string" },
8281
- { "name": "value", "type": "number" },
8282
- { "name": "max", "type": "number" },
8283
- { "name": "precision", "type": "number" },
8284
- { "name": "readonly", "type": "boolean" },
8285
- { "name": "disabled", "type": "boolean" },
8286
- {
8287
- "name": "preview",
8288
- "description": "Displays the value alongside the symbols, updating live as the pointer moves across them.",
8289
- "type": "boolean"
8290
- },
8291
- { "name": "size", "type": "'small' | 'medium' | 'large'" },
8292
- { "name": "getSymbol", "type": "(value: number) => string" },
8293
- {
8294
- "name": "validity",
8295
- "description": "Gets the validity state object"
8296
- },
8297
- {
8298
- "name": "validationMessage",
8299
- "description": "Gets the validation message"
8300
- }
8301
- ],
8302
- "events": [
8303
- {
8304
- "name": "zn-event-name",
8305
- "description": "Emitted as an example."
8306
- }
8307
- ]
8308
- }
8309
- },
8310
8345
  {
8311
8346
  "name": "zn-remarkd-editor",
8312
8347
  "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\".",
@@ -8499,6 +8534,105 @@
8499
8534
  ]
8500
8535
  }
8501
8536
  },
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
+ },
8502
8636
  {
8503
8637
  "name": "zn-schedule-builder",
8504
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.",