@kubex/zinc 1.1.184 → 1.1.185

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",
@@ -348,7 +348,17 @@
348
348
  { "name": "center" }
349
349
  ]
350
350
  },
351
- { "name": "loading", "values": [] }
351
+ { "name": "loading", "values": [] },
352
+ {
353
+ "name": "processing",
354
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
355
+ "values": []
356
+ },
357
+ {
358
+ "name": "processing-text",
359
+ "description": "Replaces the label while processing.",
360
+ "values": []
361
+ }
352
362
  ],
353
363
  "references": [
354
364
  {
@@ -1329,63 +1339,6 @@
1329
1339
  }
1330
1340
  ]
1331
1341
  },
1332
- {
1333
- "name": "zn-defined-label",
1334
- "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
1335
- "attributes": [
1336
- {
1337
- "name": "value",
1338
- "description": "The selected label key. Also acts as the filter while typing.",
1339
- "values": []
1340
- },
1341
- {
1342
- "name": "inputValue",
1343
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
1344
- "values": []
1345
- },
1346
- {
1347
- "name": "input-size",
1348
- "description": "The size of the main input.",
1349
- "values": [
1350
- { "name": "x-small" },
1351
- { "name": "small" },
1352
- { "name": "medium" },
1353
- { "name": "large" }
1354
- ]
1355
- },
1356
- {
1357
- "name": "name",
1358
- "description": "The name of the control. Used for form submission.",
1359
- "values": []
1360
- },
1361
- {
1362
- "name": "title",
1363
- "description": "The title of the main input.",
1364
- "values": []
1365
- },
1366
- {
1367
- "name": "disabled",
1368
- "description": "Disables the control.",
1369
- "values": []
1370
- },
1371
- {
1372
- "name": "allow-custom",
1373
- "description": "Allows labels that aren't in the predefined list.",
1374
- "values": []
1375
- },
1376
- {
1377
- "name": "predefined-labels",
1378
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
1379
- "values": [{ "name": "(PredefinedLabel" }, { "name": "string)[]" }]
1380
- }
1381
- ],
1382
- "references": [
1383
- {
1384
- "name": "Documentation",
1385
- "url": "https://zinc.style/components/defined-label"
1386
- }
1387
- ]
1388
- },
1389
1342
  {
1390
1343
  "name": "zn-datepicker",
1391
1344
  "description": "A date picker component with calendar popup and input validation.\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the date value changes.\n- **zn-input** - Emitted when the input value changes.\n- **zn-blur** - Emitted when the input loses focus.\n- **zn-focus** - Emitted when the input gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\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(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The datepicker's label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Tooltip content for the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Additional context text displayed above the input. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Help text displayed below the input. Alternatively, you can use the `help-text` attribute.\n- **prefix** - Content to display before the input (in addition to the default calendar icon).\n- **suffix** - Content to display after the input.\n\n### **CSS Properties:**\n - **--zn-input-*** - Inherited input component CSS custom properties. _(default: undefined)_\n- **--zn-datepicker-inline-border-color** - Border colour of the calendar in `inline` mode. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label element.\n- **form-control-input** - The input wrapper.\n- **form-control-help-text** - The help text element.",
@@ -1519,6 +1472,63 @@
1519
1472
  }
1520
1473
  ]
1521
1474
  },
1475
+ {
1476
+ "name": "zn-defined-label",
1477
+ "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
1478
+ "attributes": [
1479
+ {
1480
+ "name": "value",
1481
+ "description": "The selected label key. Also acts as the filter while typing.",
1482
+ "values": []
1483
+ },
1484
+ {
1485
+ "name": "inputValue",
1486
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
1487
+ "values": []
1488
+ },
1489
+ {
1490
+ "name": "input-size",
1491
+ "description": "The size of the main input.",
1492
+ "values": [
1493
+ { "name": "x-small" },
1494
+ { "name": "small" },
1495
+ { "name": "medium" },
1496
+ { "name": "large" }
1497
+ ]
1498
+ },
1499
+ {
1500
+ "name": "name",
1501
+ "description": "The name of the control. Used for form submission.",
1502
+ "values": []
1503
+ },
1504
+ {
1505
+ "name": "title",
1506
+ "description": "The title of the main input.",
1507
+ "values": []
1508
+ },
1509
+ {
1510
+ "name": "disabled",
1511
+ "description": "Disables the control.",
1512
+ "values": []
1513
+ },
1514
+ {
1515
+ "name": "allow-custom",
1516
+ "description": "Allows labels that aren't in the predefined list.",
1517
+ "values": []
1518
+ },
1519
+ {
1520
+ "name": "predefined-labels",
1521
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
1522
+ "values": [{ "name": "(PredefinedLabel" }, { "name": "string)[]" }]
1523
+ }
1524
+ ],
1525
+ "references": [
1526
+ {
1527
+ "name": "Documentation",
1528
+ "url": "https://zinc.style/components/defined-label"
1529
+ }
1530
+ ]
1531
+ },
1522
1532
  {
1523
1533
  "name": "zn-dialog",
1524
1534
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Events:**\n - **zn-show** - Emitted when the dialog is opens.\n- **zn-close** - Emitted when the dialog is closed.\n- **zn-request-close** - Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the dialog.\n- **hide()** - Hides the dialog.\n\n### **Slots:**\n - _default_ - The default slot.\n- **label** - The dialog's label. Alternatively you can use the `label` attribute.\n- **header-icon** - Optional icon to add to the left of the dialog's label (title). A color will be applied to the icon depending on the dialog variant.\n- **announcement-intro** - Optional Intro text to display below the icon, when using the variant `announcement`.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **footer** - The dialog's footer. This is typically used for buttons representing various options.\n- **footer-text** - Optional text to include below the footer buttons, when using the variant `announcement`.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the dialog. Note the dialog will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The dialog's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **title** - The dialog's title.\n- **close-button** - The dialog's close button.\n- **close-button__base** - The close buttons exported `base` part.\n- **body** - The dialog's body.\n- **footer** - The dialog's footer.",
@@ -1867,7 +1877,19 @@
1867
1877
  {
1868
1878
  "name": "zn-filter-wrapper",
1869
1879
  "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.",
1870
- "attributes": [{ "name": "button", "values": [] }],
1880
+ "attributes": [
1881
+ { "name": "button", "values": [] },
1882
+ {
1883
+ "name": "submit-on-enter",
1884
+ "description": "Submits the filters when Enter is pressed in a text field.",
1885
+ "values": []
1886
+ },
1887
+ {
1888
+ "name": "loading-text",
1889
+ "description": "Shown on the submit button while results load.",
1890
+ "values": []
1891
+ }
1892
+ ],
1871
1893
  "references": [
1872
1894
  {
1873
1895
  "name": "Documentation",
@@ -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.184",
4
+ "version": "1.1.185",
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\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\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\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\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",
@@ -547,6 +547,16 @@
547
547
  {
548
548
  "name": "loading",
549
549
  "value": { "type": "boolean", "default": "false" }
550
+ },
551
+ {
552
+ "name": "processing",
553
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
554
+ "value": { "type": "boolean", "default": "false" }
555
+ },
556
+ {
557
+ "name": "processing-text",
558
+ "description": "Replaces the label while processing.",
559
+ "value": { "type": "string", "default": "''" }
550
560
  }
551
561
  ],
552
562
  "slots": [
@@ -666,6 +676,16 @@
666
676
  "type": "'left' | 'right' | 'center' | string"
667
677
  },
668
678
  { "name": "loading", "type": "boolean" },
679
+ {
680
+ "name": "processing",
681
+ "description": "Shows a spinner and ignores clicks, e.g. while a request is in flight.",
682
+ "type": "boolean"
683
+ },
684
+ {
685
+ "name": "processingText",
686
+ "description": "Replaces the label while processing.",
687
+ "type": "string"
688
+ },
669
689
  { "name": "validity" },
670
690
  { "name": "validationMessage" },
671
691
  { "name": "handleClick" }
@@ -3069,109 +3089,6 @@
3069
3089
  ]
3070
3090
  }
3071
3091
  },
3072
- {
3073
- "name": "zn-defined-label",
3074
- "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
3075
- "doc-url": "",
3076
- "attributes": [
3077
- {
3078
- "name": "value",
3079
- "description": "The selected label key. Also acts as the filter while typing.",
3080
- "value": { "type": "string", "default": "''" }
3081
- },
3082
- {
3083
- "name": "inputValue",
3084
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3085
- "value": { "type": "string", "default": "''" }
3086
- },
3087
- {
3088
- "name": "input-size",
3089
- "description": "The size of the main input.",
3090
- "value": {
3091
- "type": "'x-small' | 'small' | 'medium' | 'large'",
3092
- "default": "'medium'"
3093
- }
3094
- },
3095
- {
3096
- "name": "name",
3097
- "description": "The name of the control. Used for form submission.",
3098
- "value": { "type": "string", "default": "'label'" }
3099
- },
3100
- {
3101
- "name": "title",
3102
- "description": "The title of the main input.",
3103
- "value": { "type": "string" }
3104
- },
3105
- {
3106
- "name": "disabled",
3107
- "description": "Disables the control.",
3108
- "value": { "type": "boolean", "default": "false" }
3109
- },
3110
- {
3111
- "name": "allow-custom",
3112
- "description": "Allows labels that aren't in the predefined list.",
3113
- "value": { "type": "boolean", "default": "false" }
3114
- },
3115
- {
3116
- "name": "predefined-labels",
3117
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3118
- "value": {
3119
- "type": "(PredefinedLabel | string)[]",
3120
- "default": "[]"
3121
- }
3122
- }
3123
- ],
3124
- "events": [],
3125
- "js": {
3126
- "properties": [
3127
- { "name": "input", "type": "ZnInput" },
3128
- { "name": "dropdown", "type": "ZnDropdown" },
3129
- {
3130
- "name": "value",
3131
- "description": "The selected label key. Also acts as the filter while typing.",
3132
- "type": "string"
3133
- },
3134
- {
3135
- "name": "inputValue",
3136
- "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3137
- "type": "string"
3138
- },
3139
- {
3140
- "name": "inputSize",
3141
- "description": "The size of the main input.",
3142
- "type": "'x-small' | 'small' | 'medium' | 'large'"
3143
- },
3144
- {
3145
- "name": "name",
3146
- "description": "The name of the control. Used for form submission.",
3147
- "type": "string"
3148
- },
3149
- {
3150
- "name": "title",
3151
- "description": "The title of the main input.",
3152
- "type": "string"
3153
- },
3154
- {
3155
- "name": "disabled",
3156
- "description": "Disables the control.",
3157
- "type": "boolean"
3158
- },
3159
- {
3160
- "name": "allowCustom",
3161
- "description": "Allows labels that aren't in the predefined list.",
3162
- "type": "boolean"
3163
- },
3164
- {
3165
- "name": "predefinedLabels",
3166
- "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3167
- "type": "(PredefinedLabel | string)[]"
3168
- },
3169
- { "name": "validationMessage" },
3170
- { "name": "validity" }
3171
- ],
3172
- "events": []
3173
- }
3174
- },
3175
3092
  {
3176
3093
  "name": "zn-datepicker",
3177
3094
  "description": "A date picker component with calendar popup and input validation.\n\n---\n\n\n### **Events:**\n - **zn-change** - Emitted when the date value changes.\n- **zn-input** - Emitted when the input value changes.\n- **zn-blur** - Emitted when the input loses focus.\n- **zn-focus** - Emitted when the input gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the input.\n- **blur()** - Removes focus from the input.\n- **select()** - Selects all the text in the input.\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(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - **label** - The datepicker's label. Alternatively, you can use the `label` attribute.\n- **label-tooltip** - Tooltip content for the label. Alternatively, you can use the `label-tooltip` attribute.\n- **context-note** - Additional context text displayed above the input. Alternatively, you can use the `context-note` attribute.\n- **help-text** - Help text displayed below the input. Alternatively, you can use the `help-text` attribute.\n- **prefix** - Content to display before the input (in addition to the default calendar icon).\n- **suffix** - Content to display after the input.\n\n### **CSS Properties:**\n - **--zn-input-*** - Inherited input component CSS custom properties. _(default: undefined)_\n- **--zn-datepicker-inline-border-color** - Border colour of the calendar in `inline` mode. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label element.\n- **form-control-input** - The input wrapper.\n- **form-control-help-text** - The help text element.",
@@ -3506,6 +3423,109 @@
3506
3423
  ]
3507
3424
  }
3508
3425
  },
3426
+ {
3427
+ "name": "zn-defined-label",
3428
+ "description": "This component provides a labeled input with support for predefined and custom labels,\nallowing users to select or enter label-value pairs within a dropdown interface.\n\n---\n\n\n### **CSS Parts:**\n - **input** - The component's main input.\n- **input-value** - The label's value inputs.",
3429
+ "doc-url": "",
3430
+ "attributes": [
3431
+ {
3432
+ "name": "value",
3433
+ "description": "The selected label key. Also acts as the filter while typing.",
3434
+ "value": { "type": "string", "default": "''" }
3435
+ },
3436
+ {
3437
+ "name": "inputValue",
3438
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3439
+ "value": { "type": "string", "default": "''" }
3440
+ },
3441
+ {
3442
+ "name": "input-size",
3443
+ "description": "The size of the main input.",
3444
+ "value": {
3445
+ "type": "'x-small' | 'small' | 'medium' | 'large'",
3446
+ "default": "'medium'"
3447
+ }
3448
+ },
3449
+ {
3450
+ "name": "name",
3451
+ "description": "The name of the control. Used for form submission.",
3452
+ "value": { "type": "string", "default": "'label'" }
3453
+ },
3454
+ {
3455
+ "name": "title",
3456
+ "description": "The title of the main input.",
3457
+ "value": { "type": "string" }
3458
+ },
3459
+ {
3460
+ "name": "disabled",
3461
+ "description": "Disables the control.",
3462
+ "value": { "type": "boolean", "default": "false" }
3463
+ },
3464
+ {
3465
+ "name": "allow-custom",
3466
+ "description": "Allows labels that aren't in the predefined list.",
3467
+ "value": { "type": "boolean", "default": "false" }
3468
+ },
3469
+ {
3470
+ "name": "predefined-labels",
3471
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3472
+ "value": {
3473
+ "type": "(PredefinedLabel | string)[]",
3474
+ "default": "[]"
3475
+ }
3476
+ }
3477
+ ],
3478
+ "events": [],
3479
+ "js": {
3480
+ "properties": [
3481
+ { "name": "input", "type": "ZnInput" },
3482
+ { "name": "dropdown", "type": "ZnDropdown" },
3483
+ {
3484
+ "name": "value",
3485
+ "description": "The selected label key. Also acts as the filter while typing.",
3486
+ "type": "string"
3487
+ },
3488
+ {
3489
+ "name": "inputValue",
3490
+ "description": "The value entered for the selected label. Submitted as `label:value` when present.",
3491
+ "type": "string"
3492
+ },
3493
+ {
3494
+ "name": "inputSize",
3495
+ "description": "The size of the main input.",
3496
+ "type": "'x-small' | 'small' | 'medium' | 'large'"
3497
+ },
3498
+ {
3499
+ "name": "name",
3500
+ "description": "The name of the control. Used for form submission.",
3501
+ "type": "string"
3502
+ },
3503
+ {
3504
+ "name": "title",
3505
+ "description": "The title of the main input.",
3506
+ "type": "string"
3507
+ },
3508
+ {
3509
+ "name": "disabled",
3510
+ "description": "Disables the control.",
3511
+ "type": "boolean"
3512
+ },
3513
+ {
3514
+ "name": "allowCustom",
3515
+ "description": "Allows labels that aren't in the predefined list.",
3516
+ "type": "boolean"
3517
+ },
3518
+ {
3519
+ "name": "predefinedLabels",
3520
+ "description": "The predefined labels. Entries are either a string or `{name, options}`.",
3521
+ "type": "(PredefinedLabel | string)[]"
3522
+ },
3523
+ { "name": "validationMessage" },
3524
+ { "name": "validity" }
3525
+ ],
3526
+ "events": []
3527
+ }
3528
+ },
3509
3529
  {
3510
3530
  "name": "zn-dialog",
3511
3531
  "description": "Short summary of the component's intended use.\n\n---\n\n\n### **Events:**\n - **zn-show** - Emitted when the dialog is opens.\n- **zn-close** - Emitted when the dialog is closed.\n- **zn-request-close** - Emitted when the user attempts to close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the dialog.\n- **hide()** - Hides the dialog.\n\n### **Slots:**\n - _default_ - The default slot.\n- **label** - The dialog's label. Alternatively you can use the `label` attribute.\n- **header-icon** - Optional icon to add to the left of the dialog's label (title). A color will be applied to the icon depending on the dialog variant.\n- **announcement-intro** - Optional Intro text to display below the icon, when using the variant `announcement`.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **footer** - The dialog's footer. This is typically used for buttons representing various options.\n- **footer-text** - Optional text to include below the footer buttons, when using the variant `announcement`.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the dialog. Note the dialog will shrink to accommodate smaller screens. _(default: undefined)_\n- **--header-spacing** - The amount of padding to use for the header. _(default: undefined)_\n- **--body-spacing** - The amount of padding to use for the body. _(default: undefined)_\n- **--footer-spacing** - The amount of padding to use for the footer. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The dialog's header. This element wraps the title and header actions.\n- **header-actions** - Optional actions to add to the header. Works best with `<zn-button>` elements.\n- **title** - The dialog's title.\n- **close-button** - The dialog's close button.\n- **close-button__base** - The close buttons exported `base` part.\n- **body** - The dialog's body.\n- **footer** - The dialog's footer.",
@@ -4354,6 +4374,16 @@
4354
4374
  {
4355
4375
  "name": "button",
4356
4376
  "value": { "type": "string", "default": "'Filter'" }
4377
+ },
4378
+ {
4379
+ "name": "submit-on-enter",
4380
+ "description": "Submits the filters when Enter is pressed in a text field.",
4381
+ "value": { "type": "boolean", "default": "false" }
4382
+ },
4383
+ {
4384
+ "name": "loading-text",
4385
+ "description": "Shown on the submit button while results load.",
4386
+ "value": { "type": "string", "default": "'Searching...'" }
4357
4387
  }
4358
4388
  ],
4359
4389
  "slots": [
@@ -4366,7 +4396,18 @@
4366
4396
  "js": {
4367
4397
  "properties": [
4368
4398
  { "name": "button", "type": "string" },
4369
- { "name": "handleSubmit" }
4399
+ {
4400
+ "name": "submitOnEnter",
4401
+ "description": "Submits the filters when Enter is pressed in a text field.",
4402
+ "type": "boolean"
4403
+ },
4404
+ {
4405
+ "name": "loadingText",
4406
+ "description": "Shown on the submit button while results load.",
4407
+ "type": "string"
4408
+ },
4409
+ { "name": "handleSubmit" },
4410
+ { "name": "handleKeyDown" }
4370
4411
  ],
4371
4412
  "events": [
4372
4413
  {
package/dist/zn.d.ts CHANGED
@@ -1268,6 +1268,10 @@ declare module "components/button/button.component" {
1268
1268
  loadingText: string;
1269
1269
  loadingTextPosition: 'left' | 'right' | 'center' | string;
1270
1270
  loading: boolean;
1271
+ /** Shows a spinner and ignores clicks, e.g. while a request is in flight. */
1272
+ processing: boolean;
1273
+ /** Replaces the label while processing. */
1274
+ processingText: string;
1271
1275
  get validity(): ValidityState;
1272
1276
  get validationMessage(): string;
1273
1277
  firstUpdated(): void;
@@ -4260,7 +4264,7 @@ declare module "components/data-table/data-table.component" {
4260
4264
  private _columnDefaultsApplied;
4261
4265
  private _formatTemplates;
4262
4266
  requestParams: Record<string, any>;
4263
- refresh(): void;
4267
+ refresh(): Promise<void>;
4264
4268
  private visibleHeaders;
4265
4269
  private selectableHeaders;
4266
4270
  private isColumnVisible;
@@ -4424,8 +4428,8 @@ declare module "components/cols/cols.component" {
4424
4428
  disconnectedCallback(): void;
4425
4429
  protected updated(changed: PropertyValues<this>): void;
4426
4430
  /**
4427
- * Flags each child that ends its row as laid out, so `divide` only draws between neighbours on the same row
4428
- * however the columns have wrapped.
4431
+ * Flags each child that ends its row, and each child on the last row, as laid out, so `divide` only draws
4432
+ * between neighbours however the columns have wrapped.
4429
4433
  */
4430
4434
  private markRowEnds;
4431
4435
  /**
@@ -9161,9 +9165,17 @@ declare module "components/filter-wrapper/filter-wrapper.component" {
9161
9165
  export default class ZnFilterWrapper extends ZincElement {
9162
9166
  static styles: CSSResultGroup;
9163
9167
  button: string;
9164
- private hasSubmitButton;
9168
+ /** Submits the filters when Enter is pressed in a text field. */
9169
+ submitOnEnter: boolean;
9170
+ /** Shown on the submit button while results load. */
9171
+ loadingText: string;
9172
+ private loading;
9173
+ private submitButton;
9165
9174
  handleSubmit: (event: Event) => void;
9175
+ private setLoading;
9176
+ handleKeyDown: (event: KeyboardEvent) => void;
9166
9177
  connectedCallback(): void;
9178
+ disconnectedCallback(): void;
9167
9179
  private renderDefaultButton;
9168
9180
  render(): import("lit-html").TemplateResult<1>;
9169
9181
  }