@kubex/zinc 1.0.19 → 1.0.20

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.
@@ -63,6 +63,7 @@
63
63
  "name": "zn-audio-select",
64
64
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **actions** - The actions slot.\n- **footer** - The footer 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.",
65
65
  "attributes": [
66
+ { "name": "value", "values": [] },
66
67
  { "name": "label", "values": [] },
67
68
  { "name": "placeholder", "values": [] },
68
69
  { "name": "files", "values": [{ "name": "AudioFile[]" }] }
@@ -302,6 +303,11 @@
302
303
  "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
303
304
  "values": []
304
305
  },
306
+ {
307
+ "name": "unchecked-value",
308
+ "description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
309
+ "values": []
310
+ },
305
311
  {
306
312
  "name": "size",
307
313
  "description": "The checkbox's size.",
@@ -346,6 +352,11 @@
346
352
  "description": "Makes the checkbox a required field.",
347
353
  "values": []
348
354
  },
355
+ {
356
+ "name": "submit-on-click",
357
+ "description": "Submits the form when checkbox is clicked.",
358
+ "values": []
359
+ },
349
360
  {
350
361
  "name": "description",
351
362
  "description": "The checkbox's help text. If you need to display HTML, use the `description` slot instead.",
@@ -1606,6 +1617,23 @@
1606
1617
  }
1607
1618
  ]
1608
1619
  },
1620
+ {
1621
+ "name": "zn-input-group",
1622
+ "description": "A wrapper component that groups inputs and selects visually.\n---\n\n\n### **Slots:**\n - _default_ - The default slot for inputs and selects.\n- **label** - The input group's label. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input group container.",
1623
+ "attributes": [
1624
+ {
1625
+ "name": "label",
1626
+ "description": "The input group's label. If you need to display HTML, use the `label` slot.",
1627
+ "values": []
1628
+ }
1629
+ ],
1630
+ "references": [
1631
+ {
1632
+ "name": "Documentation",
1633
+ "url": "https://zinc.style/components/input-group"
1634
+ }
1635
+ ]
1636
+ },
1609
1637
  {
1610
1638
  "name": "zn-item",
1611
1639
  "description": "Used for listing items in a description list. Caption on the right, content on the left.\n---\n\n\n### **Slots:**\n - _default_ - The default slot. Can either be slotted or use the value attribute\n- **actions** - Used for adding actions to a zn-item.\n\n### **CSS Parts:**\n - **base** - The items base wrapper\n- **caption** - The items caption\n- **icon** - The items icon",
@@ -1627,7 +1655,8 @@
1627
1655
  { "name": "inline", "values": [] },
1628
1656
  { "name": "grid", "values": [] },
1629
1657
  { "name": "no-padding", "values": [] },
1630
- { "name": "align-end", "values": [] }
1658
+ { "name": "align-end", "values": [] },
1659
+ { "name": "align-center", "values": [] }
1631
1660
  ],
1632
1661
  "references": [
1633
1662
  { "name": "Documentation", "url": "https://zinc.style/components/item" }
@@ -1734,6 +1763,7 @@
1734
1763
  { "name": "stacked", "values": [] },
1735
1764
  { "name": "dropdown", "values": [{ "name": "array" }] },
1736
1765
  { "name": "no-pad", "values": [{ "name": "false" }] },
1766
+ { "name": "manual-add-items", "values": [] },
1737
1767
  { "name": "_appended", "values": [{ "name": "Element[]" }] }
1738
1768
  ],
1739
1769
  "references": [
@@ -2973,6 +3003,31 @@
2973
3003
  }
2974
3004
  ]
2975
3005
  },
3006
+ {
3007
+ "name": "zn-translations",
3008
+ "description": "\n---\n",
3009
+ "attributes": [
3010
+ { "name": "name", "values": [] },
3011
+ { "name": "value", "values": [] },
3012
+ { "name": "label", "values": [] },
3013
+ { "name": "disabled", "values": [] },
3014
+ { "name": "required", "values": [] },
3015
+ {
3016
+ "name": "languages",
3017
+ "values": [{ "name": "Record<string" }, { "name": "string>" }]
3018
+ },
3019
+ {
3020
+ "name": "values",
3021
+ "values": [{ "name": "Record<string" }, { "name": "string>" }]
3022
+ }
3023
+ ],
3024
+ "references": [
3025
+ {
3026
+ "name": "Documentation",
3027
+ "url": "https://zinc.style/components/translations"
3028
+ }
3029
+ ]
3030
+ },
2976
3031
  {
2977
3032
  "name": "zn-vertical-stepper",
2978
3033
  "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.",
@@ -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.0.19",
4
+ "version": "1.0.20",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -97,12 +97,16 @@
97
97
  "description": "Short summary of the component's intended use.\n---\n\n\n### **Slots:**\n - _default_ - The default slot.\n- **actions** - The actions slot.\n- **footer** - The footer 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.",
98
98
  "doc-url": "",
99
99
  "attributes": [
100
+ { "name": "value", "value": { "type": "string", "default": "''" } },
100
101
  { "name": "label", "value": { "type": "string", "default": "''" } },
101
102
  {
102
103
  "name": "placeholder",
103
104
  "value": { "type": "string", "default": "''" }
104
105
  },
105
- { "name": "files", "value": { "type": "AudioFile[]" } }
106
+ {
107
+ "name": "files",
108
+ "value": { "type": "AudioFile[]", "default": "[]" }
109
+ }
106
110
  ],
107
111
  "slots": [
108
112
  { "name": "", "description": "The default slot." },
@@ -112,6 +116,7 @@
112
116
  "events": [],
113
117
  "js": {
114
118
  "properties": [
119
+ { "name": "value", "type": "string" },
115
120
  { "name": "label", "type": "string" },
116
121
  { "name": "placeholder", "type": "string" },
117
122
  { "name": "files", "type": "AudioFile[]" }
@@ -574,6 +579,11 @@
574
579
  "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
575
580
  "value": { "type": "string" }
576
581
  },
582
+ {
583
+ "name": "unchecked-value",
584
+ "description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
585
+ "value": { "type": "string" }
586
+ },
577
587
  {
578
588
  "name": "size",
579
589
  "description": "The checkbox's size.",
@@ -617,6 +627,11 @@
617
627
  "description": "Makes the checkbox a required field.",
618
628
  "value": { "type": "boolean", "default": "false" }
619
629
  },
630
+ {
631
+ "name": "submit-on-click",
632
+ "description": "Submits the form when checkbox is clicked.",
633
+ "value": { "type": "boolean", "default": "false" }
634
+ },
620
635
  {
621
636
  "name": "description",
622
637
  "description": "The checkbox's help text. If you need to display HTML, use the `description` slot instead.",
@@ -697,6 +712,11 @@
697
712
  "description": "The current value of the checkbox, submitted as a name/value pair with form data.",
698
713
  "type": "string"
699
714
  },
715
+ {
716
+ "name": "uncheckedValue",
717
+ "description": "The unchecked value of the checkbox, submitted as a name/value pair with form data.",
718
+ "type": "string"
719
+ },
700
720
  {
701
721
  "name": "size",
702
722
  "description": "The checkbox's size.",
@@ -742,6 +762,11 @@
742
762
  "description": "Makes the checkbox a required field.",
743
763
  "type": "boolean"
744
764
  },
765
+ {
766
+ "name": "submitOnClick",
767
+ "description": "Submits the form when checkbox is clicked.",
768
+ "type": "boolean"
769
+ },
745
770
  {
746
771
  "name": "description",
747
772
  "description": "The checkbox's help text. If you need to display HTML, use the `description` slot instead.",
@@ -3609,6 +3634,40 @@
3609
3634
  ]
3610
3635
  }
3611
3636
  },
3637
+ {
3638
+ "name": "zn-input-group",
3639
+ "description": "A wrapper component that groups inputs and selects visually.\n---\n\n\n### **Slots:**\n - _default_ - The default slot for inputs and selects.\n- **label** - The input group's label. Alternatively, you can use the `label` attribute.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **form-control** - The form control wrapper.\n- **form-control-label** - The label's wrapper.\n- **form-control-input** - The input group container.",
3640
+ "doc-url": "",
3641
+ "attributes": [
3642
+ {
3643
+ "name": "label",
3644
+ "description": "The input group's label. If you need to display HTML, use the `label` slot.",
3645
+ "value": { "type": "string", "default": "''" }
3646
+ }
3647
+ ],
3648
+ "slots": [
3649
+ {
3650
+ "name": "",
3651
+ "description": "The default slot for inputs and selects."
3652
+ },
3653
+ {
3654
+ "name": "label",
3655
+ "description": "The input group's label. Alternatively, you can use the `label` attribute."
3656
+ }
3657
+ ],
3658
+ "events": [],
3659
+ "js": {
3660
+ "properties": [
3661
+ { "name": "defaultSlot", "type": "HTMLSlotElement" },
3662
+ {
3663
+ "name": "label",
3664
+ "description": "The input group's label. If you need to display HTML, use the `label` slot.",
3665
+ "type": "string"
3666
+ }
3667
+ ],
3668
+ "events": []
3669
+ }
3670
+ },
3612
3671
  {
3613
3672
  "name": "zn-item",
3614
3673
  "description": "Used for listing items in a description list. Caption on the right, content on the left.\n---\n\n\n### **Slots:**\n - _default_ - The default slot. Can either be slotted or use the value attribute\n- **actions** - Used for adding actions to a zn-item.\n\n### **CSS Parts:**\n - **base** - The items base wrapper\n- **caption** - The items caption\n- **icon** - The items icon",
@@ -3630,7 +3689,8 @@
3630
3689
  { "name": "inline", "value": { "type": "boolean" } },
3631
3690
  { "name": "grid", "value": { "type": "boolean" } },
3632
3691
  { "name": "no-padding", "value": { "type": "boolean" } },
3633
- { "name": "align-end", "value": { "type": "boolean" } }
3692
+ { "name": "align-end", "value": { "type": "boolean" } },
3693
+ { "name": "align-center", "value": { "type": "boolean" } }
3634
3694
  ],
3635
3695
  "slots": [
3636
3696
  {
@@ -3655,7 +3715,8 @@
3655
3715
  { "name": "inline", "type": "boolean" },
3656
3716
  { "name": "grid", "type": "boolean" },
3657
3717
  { "name": "noPadding", "type": "boolean" },
3658
- { "name": "alignEnd", "type": "boolean" }
3718
+ { "name": "alignEnd", "type": "boolean" },
3719
+ { "name": "alignCenter", "type": "boolean" }
3659
3720
  ],
3660
3721
  "events": []
3661
3722
  }
@@ -3887,6 +3948,10 @@
3887
3948
  "value": { "type": "array", "default": "[]" }
3888
3949
  },
3889
3950
  { "name": "no-pad", "value": { "type": "false" } },
3951
+ {
3952
+ "name": "manual-add-items",
3953
+ "value": { "type": "boolean", "default": "false" }
3954
+ },
3890
3955
  { "name": "_appended", "value": { "type": "Element[]" } }
3891
3956
  ],
3892
3957
  "slots": [
@@ -3908,6 +3973,7 @@
3908
3973
  { "name": "stacked", "type": "boolean" },
3909
3974
  { "name": "dropdown", "type": "array" },
3910
3975
  { "name": "noPad", "type": "false" },
3976
+ { "name": "manualAddItems", "type": "boolean" },
3911
3977
  { "name": "handleResize" }
3912
3978
  ],
3913
3979
  "events": [
@@ -6900,6 +6966,53 @@
6900
6966
  ]
6901
6967
  }
6902
6968
  },
6969
+ {
6970
+ "name": "zn-translations",
6971
+ "description": "\n---\n",
6972
+ "doc-url": "",
6973
+ "attributes": [
6974
+ { "name": "name", "value": { "type": "string", "default": "''" } },
6975
+ {
6976
+ "name": "value",
6977
+ "value": { "type": "string", "default": "'{\"en\":\"\"}'" }
6978
+ },
6979
+ { "name": "label", "value": { "type": "string", "default": "''" } },
6980
+ {
6981
+ "name": "disabled",
6982
+ "value": { "type": "boolean", "default": "false" }
6983
+ },
6984
+ {
6985
+ "name": "required",
6986
+ "value": { "type": "boolean", "default": "false" }
6987
+ },
6988
+ {
6989
+ "name": "languages",
6990
+ "value": {
6991
+ "type": "Record<string, string>",
6992
+ "default": "{ 'en': 'English' }"
6993
+ }
6994
+ },
6995
+ {
6996
+ "name": "values",
6997
+ "value": { "type": "Record<string, string>", "default": "{}" }
6998
+ }
6999
+ ],
7000
+ "events": [],
7001
+ "js": {
7002
+ "properties": [
7003
+ { "name": "name", "type": "string" },
7004
+ { "name": "value", "type": "string" },
7005
+ { "name": "label", "type": "string" },
7006
+ { "name": "disabled", "type": "boolean" },
7007
+ { "name": "required", "type": "boolean" },
7008
+ { "name": "languages", "type": "Record<string, string>" },
7009
+ { "name": "values", "type": "Record<string, string>" },
7010
+ { "name": "validity", "type": "ValidityState" },
7011
+ { "name": "validationMessage" }
7012
+ ],
7013
+ "events": []
7014
+ }
7015
+ },
6903
7016
  {
6904
7017
  "name": "zn-vertical-stepper",
6905
7018
  "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.",
package/dist/zn.d.ts CHANGED
@@ -2639,6 +2639,7 @@ declare module "components/data-table/data-table.component" {
2639
2639
  sortValue?: string;
2640
2640
  uri?: string;
2641
2641
  target?: string;
2642
+ copyable?: boolean;
2642
2643
  }
2643
2644
  interface Row {
2644
2645
  id: string;
@@ -3198,6 +3199,7 @@ declare module "components/navbar/navbar.component" {
3198
3199
  stacked: boolean;
3199
3200
  dropdown: never[];
3200
3201
  noPad: false;
3202
+ manualAddItems: boolean;
3201
3203
  private _preItems;
3202
3204
  private _postItems;
3203
3205
  private _appended;
@@ -3213,7 +3215,7 @@ declare module "components/navbar/navbar.component" {
3213
3215
  appendItem(item: Element): void;
3214
3216
  connectedCallback(): void;
3215
3217
  handleResize: () => void;
3216
- addItem(item: any): any;
3218
+ addItem(item: Element): void;
3217
3219
  protected firstUpdated(_changedProperties: PropertyValues): void;
3218
3220
  showMore(): void;
3219
3221
  render(): import("lit").TemplateResult<1>;
@@ -4995,6 +4997,8 @@ declare module "components/checkbox/checkbox.component" {
4995
4997
  name: string;
4996
4998
  /** The current value of the checkbox, submitted as a name/value pair with form data. */
4997
4999
  value: string;
5000
+ /** The unchecked value of the checkbox, submitted as a name/value pair with form data. */
5001
+ uncheckedValue: string;
4998
5002
  /** The checkbox's size. */
4999
5003
  size: 'small' | 'medium' | 'large';
5000
5004
  /** Disables the checkbox. */
@@ -5020,6 +5024,8 @@ declare module "components/checkbox/checkbox.component" {
5020
5024
  form: string;
5021
5025
  /** Makes the checkbox a required field. */
5022
5026
  required: boolean;
5027
+ /** Submits the form when checkbox is clicked. */
5028
+ submitOnClick: boolean;
5023
5029
  /** The checkbox's help text. If you need to display HTML, use the `description` slot instead. */
5024
5030
  description: string;
5025
5031
  label: string;
@@ -5228,6 +5234,43 @@ declare module "components/form-group/index" {
5228
5234
  }
5229
5235
  }
5230
5236
  }
5237
+ declare module "components/input-group/input-group.component" {
5238
+ import { type CSSResultGroup } from 'lit';
5239
+ import ZincElement from "internal/zinc-element";
5240
+ /**
5241
+ * @summary A wrapper component that groups inputs and selects visually.
5242
+ * @documentation https://zinc.style/components/input-group
5243
+ * @status experimental
5244
+ * @since 1.0
5245
+ *
5246
+ * @slot - The default slot for inputs and selects.
5247
+ * @slot label - The input group's label. Alternatively, you can use the `label` attribute.
5248
+ *
5249
+ * @csspart base - The component's base wrapper.
5250
+ * @csspart form-control - The form control wrapper.
5251
+ * @csspart form-control-label - The label's wrapper.
5252
+ * @csspart form-control-input - The input group container.
5253
+ */
5254
+ export default class ZnInputGroup extends ZincElement {
5255
+ static styles: CSSResultGroup;
5256
+ private readonly hasSlotController;
5257
+ defaultSlot: HTMLSlotElement;
5258
+ /** The input group's label. If you need to display HTML, use the `label` slot. */
5259
+ label: string;
5260
+ private handleSlotChange;
5261
+ render(): import("lit").TemplateResult<1>;
5262
+ }
5263
+ }
5264
+ declare module "components/input-group/index" {
5265
+ import ZnInputGroup from "components/input-group/input-group.component";
5266
+ export * from "components/input-group/input-group.component";
5267
+ export default ZnInputGroup;
5268
+ global {
5269
+ interface HTMLElementTagNameMap {
5270
+ 'zn-input-group': ZnInputGroup;
5271
+ }
5272
+ }
5273
+ }
5231
5274
  declare module "components/linked-select/linked-select.component" {
5232
5275
  import { type CSSResultGroup, type PropertyValues } from 'lit';
5233
5276
  import ZincElement from "internal/zinc-element";
@@ -5921,6 +5964,7 @@ declare module "components/item/item.component" {
5921
5964
  grid: boolean;
5922
5965
  noPadding: boolean;
5923
5966
  alignEnd: boolean;
5967
+ alignCenter: boolean;
5924
5968
  connectedCallback(): void;
5925
5969
  protected updated(_changedProperties: PropertyValues): void;
5926
5970
  protected _hasContent(): boolean;
@@ -6593,7 +6637,7 @@ declare module "components/reveal/index" {
6593
6637
  }
6594
6638
  }
6595
6639
  declare module "components/audio-select/audio-select.component" {
6596
- import { type CSSResultGroup } from 'lit';
6640
+ import { type CSSResultGroup, type PropertyValues } from 'lit';
6597
6641
  import ZincElement from "internal/zinc-element";
6598
6642
  import type { ZnChangeEvent } from "events/zn-change";
6599
6643
  interface AudioFile {
@@ -6616,15 +6660,16 @@ declare module "components/audio-select/audio-select.component" {
6616
6660
  */
6617
6661
  export default class ZnAudioSelect extends ZincElement {
6618
6662
  static styles: CSSResultGroup;
6619
- private _selectedUrl;
6620
6663
  private _isPlaying;
6621
6664
  private readonly _audio;
6665
+ value: string;
6622
6666
  label: string;
6623
6667
  placeholder: string;
6624
6668
  files: AudioFile[];
6625
6669
  constructor();
6626
6670
  disconnectedCallback(): void;
6627
- _stopAudio(): void;
6671
+ updated(changedProperties: PropertyValues): void;
6672
+ stopAudio(): void;
6628
6673
  handleSelectChange(e: ZnChangeEvent): void;
6629
6674
  togglePreview(e: CustomEvent): void;
6630
6675
  render(): import("lit").TemplateResult<1>;
@@ -6640,6 +6685,50 @@ declare module "components/audio-select/index" {
6640
6685
  }
6641
6686
  }
6642
6687
  }
6688
+ declare module "components/translations/translations.component" {
6689
+ import ZincElement from "internal/zinc-element";
6690
+ import ZnInlineEdit from "components/inline-edit/index";
6691
+ import ZnInput from "components/input/index";
6692
+ import ZnNavbar from "components/navbar/index";
6693
+ import type { PropertyValues } from 'lit';
6694
+ import type { ZincFormControl } from "internal/zinc-element";
6695
+ export default class ZnTranslations extends ZincElement implements ZincFormControl {
6696
+ static styles: import("lit").CSSResult;
6697
+ static dependencies: {
6698
+ 'zn-navbar': typeof ZnNavbar;
6699
+ 'zn-input': typeof ZnInput;
6700
+ 'zn-inline-edit': typeof ZnInlineEdit;
6701
+ };
6702
+ private readonly formControlController;
6703
+ private readonly hasSlotController;
6704
+ name: string;
6705
+ value: string;
6706
+ label: string;
6707
+ disabled: boolean;
6708
+ required: boolean;
6709
+ languages: Record<string, string>;
6710
+ values: Record<string, string>;
6711
+ private _activeLanguage;
6712
+ get validity(): ValidityState;
6713
+ get validationMessage(): string;
6714
+ checkValidity(): boolean;
6715
+ getForm(): HTMLFormElement | null;
6716
+ reportValidity(): boolean;
6717
+ setCustomValidity(): void;
6718
+ protected firstUpdated(): void;
6719
+ willUpdate(changedProperties: PropertyValues): void;
6720
+ private handleLanguageAdd;
6721
+ private handleNavbarClick;
6722
+ private handleValueUpdate;
6723
+ private updateValue;
6724
+ render(): import("lit").TemplateResult<1>;
6725
+ }
6726
+ }
6727
+ declare module "components/translations/index" {
6728
+ import ZnTranslations from "components/translations/translations.component";
6729
+ export * from "components/translations/translations.component";
6730
+ export default ZnTranslations;
6731
+ }
6643
6732
  declare module "events/zn-after-hide" {
6644
6733
  export type ZnAfterHideEvent = CustomEvent<Record<PropertyKey, never>>;
6645
6734
  global {
@@ -6756,6 +6845,7 @@ declare module "zinc" {
6756
6845
  export { default as Checkbox } from "components/checkbox/index";
6757
6846
  export { default as Datepicker } from "components/datepicker/index";
6758
6847
  export { default as FormGroup } from "components/form-group/index";
6848
+ export { default as InputGroup } from "components/input-group/index";
6759
6849
  export { default as LinkedSelect } from "components/linked-select/index";
6760
6850
  export { default as Radio } from "components/radio/index";
6761
6851
  export { default as Rating } from "components/rating/index";
@@ -6782,6 +6872,7 @@ declare module "zinc" {
6782
6872
  export { default as FilterContainer } from "components/filter-container/index";
6783
6873
  export { default as Reveal } from "components/reveal/index";
6784
6874
  export { default as AudioSelect } from "components/audio-select/index";
6875
+ export { default as Translations } from "components/translations/index";
6785
6876
  export { default as ZincElement } from "internal/zinc-element";
6786
6877
  export * from "utilities/on";
6787
6878
  export * from "utilities/query";