@kubex/zinc 1.1.105 → 1.1.106

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.
@@ -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.106",
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",
@@ -4383,6 +4383,125 @@
4383
4383
  ]
4384
4384
  }
4385
4385
  },
4386
+ {
4387
+ "name": "zn-form-actions",
4388
+ "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.",
4389
+ "doc-url": "",
4390
+ "attributes": [
4391
+ {
4392
+ "name": "submit-text",
4393
+ "description": "The submit button's text.",
4394
+ "value": { "type": "string", "default": "'Save'" }
4395
+ },
4396
+ {
4397
+ "name": "submit-icon",
4398
+ "description": "The submit button's icon.",
4399
+ "value": { "type": "string", "default": "'check@lu'" }
4400
+ },
4401
+ {
4402
+ "name": "with-cancel",
4403
+ "description": "Adds a cancel button. Closes the containing dialog or slideout, if any, and emits `zn-cancel`.",
4404
+ "value": { "type": "boolean", "default": "false" }
4405
+ },
4406
+ {
4407
+ "name": "cancel-text",
4408
+ "description": "The cancel button's text.",
4409
+ "value": { "type": "string", "default": "'Cancel'" }
4410
+ },
4411
+ {
4412
+ "name": "cancel-icon",
4413
+ "description": "The cancel button's icon.",
4414
+ "value": { "type": "string", "default": "'x@lu'" }
4415
+ },
4416
+ {
4417
+ "name": "with-reset",
4418
+ "description": "Adds a reset button that resets the form.",
4419
+ "value": { "type": "boolean", "default": "false" }
4420
+ },
4421
+ {
4422
+ "name": "reset-text",
4423
+ "description": "The reset button's text.",
4424
+ "value": { "type": "string", "default": "'Reset'" }
4425
+ },
4426
+ {
4427
+ "name": "reset-icon",
4428
+ "description": "The reset button's icon.",
4429
+ "value": { "type": "string", "default": "'rotate-ccw@lu'" }
4430
+ },
4431
+ {
4432
+ "name": "form",
4433
+ "description": "The id of the form to act on. If omitted, the closest containing form is used.",
4434
+ "value": { "type": "string" }
4435
+ }
4436
+ ],
4437
+ "slots": [
4438
+ {
4439
+ "name": "",
4440
+ "description": "Extra actions, placed before the buttons."
4441
+ }
4442
+ ],
4443
+ "events": [
4444
+ {
4445
+ "name": "zn-cancel",
4446
+ "description": "Emitted when the cancel button is clicked."
4447
+ }
4448
+ ],
4449
+ "js": {
4450
+ "properties": [
4451
+ {
4452
+ "name": "submitText",
4453
+ "description": "The submit button's text.",
4454
+ "type": "string"
4455
+ },
4456
+ {
4457
+ "name": "submitIcon",
4458
+ "description": "The submit button's icon.",
4459
+ "type": "string"
4460
+ },
4461
+ {
4462
+ "name": "withCancel",
4463
+ "description": "Adds a cancel button. Closes the containing dialog or slideout, if any, and emits `zn-cancel`.",
4464
+ "type": "boolean"
4465
+ },
4466
+ {
4467
+ "name": "cancelText",
4468
+ "description": "The cancel button's text.",
4469
+ "type": "string"
4470
+ },
4471
+ {
4472
+ "name": "cancelIcon",
4473
+ "description": "The cancel button's icon.",
4474
+ "type": "string"
4475
+ },
4476
+ {
4477
+ "name": "withReset",
4478
+ "description": "Adds a reset button that resets the form.",
4479
+ "type": "boolean"
4480
+ },
4481
+ {
4482
+ "name": "resetText",
4483
+ "description": "The reset button's text.",
4484
+ "type": "string"
4485
+ },
4486
+ {
4487
+ "name": "resetIcon",
4488
+ "description": "The reset button's icon.",
4489
+ "type": "string"
4490
+ },
4491
+ {
4492
+ "name": "form",
4493
+ "description": "The id of the form to act on. If omitted, the closest containing form is used.",
4494
+ "type": "string"
4495
+ }
4496
+ ],
4497
+ "events": [
4498
+ {
4499
+ "name": "zn-cancel",
4500
+ "description": "Emitted when the cancel button is clicked."
4501
+ }
4502
+ ]
4503
+ }
4504
+ },
4386
4505
  {
4387
4506
  "name": "zn-form-group",
4388
4507
  "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.",
package/dist/zn.d.ts CHANGED
@@ -7213,6 +7213,67 @@ declare module "components/checkbox/index" {
7213
7213
  }
7214
7214
  }
7215
7215
  }
7216
+ declare module "components/form-actions/form-actions.component" {
7217
+ import { type CSSResultGroup } from 'lit';
7218
+ import ZincElement from "internal/zinc-element";
7219
+ import ZnButton from "components/button/index";
7220
+ /**
7221
+ * @summary Standard action row for the bottom of a form. Renders a submit button by default; opt in to more
7222
+ * with `with-cancel` and `with-reset`.
7223
+ * @documentation https://zinc.style/components/form-actions
7224
+ * @status experimental
7225
+ * @since 1.0
7226
+ *
7227
+ * @dependency zn-button
7228
+ *
7229
+ * @event zn-cancel - Emitted when the cancel button is clicked.
7230
+ *
7231
+ * @slot - Extra actions, placed before the buttons.
7232
+ *
7233
+ * @csspart cancel-button - The cancel button.
7234
+ * @csspart reset-button - The reset button.
7235
+ * @csspart submit-button - The submit button.
7236
+ */
7237
+ export default class ZnFormActions extends ZincElement {
7238
+ static styles: CSSResultGroup;
7239
+ static dependencies: {
7240
+ 'zn-button': typeof ZnButton;
7241
+ };
7242
+ /** The submit button's text. */
7243
+ submitText: string;
7244
+ /** The submit button's icon. */
7245
+ submitIcon: string;
7246
+ /** Adds a cancel button. Closes the containing dialog or slideout, if any, and emits `zn-cancel`. */
7247
+ withCancel: boolean;
7248
+ /** The cancel button's text. */
7249
+ cancelText: string;
7250
+ /** The cancel button's icon. */
7251
+ cancelIcon: string;
7252
+ /** Adds a reset button that resets the form. */
7253
+ withReset: boolean;
7254
+ /** The reset button's text. */
7255
+ resetText: string;
7256
+ /** The reset button's icon. */
7257
+ resetIcon: string;
7258
+ /** The id of the form to act on. If omitted, the closest containing form is used. */
7259
+ form: string;
7260
+ private getForm;
7261
+ private handleCancel;
7262
+ private handleReset;
7263
+ private handleSubmit;
7264
+ render(): import("lit-html").TemplateResult<1>;
7265
+ }
7266
+ }
7267
+ declare module "components/form-actions/index" {
7268
+ import ZnFormActions from "components/form-actions/form-actions.component";
7269
+ export * from "components/form-actions/form-actions.component";
7270
+ export default ZnFormActions;
7271
+ global {
7272
+ interface HTMLElementTagNameMap {
7273
+ 'zn-form-actions': ZnFormActions;
7274
+ }
7275
+ }
7276
+ }
7216
7277
  declare module "components/form-group/form-group.component" {
7217
7278
  import { type CSSResultGroup } from 'lit';
7218
7279
  import ZincElement from "internal/zinc-element";
@@ -12763,6 +12824,7 @@ declare module "zinc" {
12763
12824
  export { default as Textarea } from "components/textarea/index";
12764
12825
  export { default as Checkbox } from "components/checkbox/index";
12765
12826
  export { default as Datepicker } from "components/datepicker/index";
12827
+ export { default as FormActions } from "components/form-actions/index";
12766
12828
  export { default as FormGroup } from "components/form-group/index";
12767
12829
  export { default as InputGroup } from "components/input-group/index";
12768
12830
  export { default as LinkedSelect } from "components/linked-select/index";