@skf-design-system/ui-components 1.0.2-beta.19 → 1.0.2-beta.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.
@@ -13,9 +13,9 @@ import { type CSSResultGroup } from 'lit';
13
13
  * @attribute {boolean} [disabled=false] - If true, sets disabled state
14
14
  * @attribute {boolean} [required=false] - If true, value is required or must be checked for the form to be submittable
15
15
  *
16
- * @event {CustomEvent} change - Fires when the value of the input changes
17
- * @event {CustomEvent} invalid - Fires when the input is invalid
18
- * @event {CustomEvent} cleared - Fires when the input is cleared
16
+ * @event {Event} change - Fires when the value of the input changes
17
+ * @event {Event} invalid - Fires when the input is invalid
18
+ * @event {CustomEvent} skf-input-cleared - Fires when the input is cleared
19
19
  *
20
20
  * @slot - The Inputs label. Alternatively, you can use the `label` attribute.
21
21
  *
@@ -33,7 +33,7 @@ const g = class g extends E {
33
33
  v(this, u, new k(this)), this.autofocus = !1, this.debug = !1, this.hideLabel = !1, this.invalid = !1, this.inputmode = "text", this.lang = "en", this.readonly = !1, this.showValid = !1, this.size = "md", this.type = "text", this.validateOn = "change", this.value = "", this._buttonDown = !1, this._numberController = new D(this), this._passwordController = new I(this), this._handleInput = () => {
34
34
  this.value = this.$input?.value ?? "", this.validateOn === "input" && (this._pristine = !1, this.validateInput());
35
35
  }, this._resetValue = (t) => {
36
- t.stopPropagation(), this.value = d(this, f) ?? "", this._internals.setFormValue(this.value), this.emit("cleared");
36
+ t.stopPropagation(), this.value = d(this, f) ?? "", this._internals.setFormValue(this.value), this.emit("skf-input-cleared");
37
37
  }, this._handlePressStart = (t) => {
38
38
  this._buttonDown = !0, this.type === "number" && this._numberController.handleActionBtnLongPressStart(t);
39
39
  }, this._handlePressEnd = () => {
@@ -4135,14 +4135,14 @@
4135
4135
  "events": [
4136
4136
  {
4137
4137
  "type": {
4138
- "text": "CustomEvent"
4138
+ "text": "Event"
4139
4139
  },
4140
4140
  "description": "Fires when the value of the input changes",
4141
4141
  "name": "change"
4142
4142
  },
4143
4143
  {
4144
4144
  "type": {
4145
- "text": "CustomEvent"
4145
+ "text": "Event"
4146
4146
  },
4147
4147
  "description": "Fires when the input is invalid",
4148
4148
  "name": "invalid"
@@ -4152,7 +4152,7 @@
4152
4152
  "text": "CustomEvent"
4153
4153
  },
4154
4154
  "description": "Fires when the input is cleared",
4155
- "name": "cleared"
4155
+ "name": "skf-input-cleared"
4156
4156
  }
4157
4157
  ],
4158
4158
  "attributes": [
@@ -736,11 +736,11 @@ export type SkfInputProps = {
736
736
  "value"?: SkfInput['value'];
737
737
 
738
738
  /** Fires when the value of the input changes */
739
- "onchange"?: (e: CustomEvent<CustomEvent>) => void;
739
+ "onchange"?: (e: CustomEvent<Event>) => void;
740
740
  /** Fires when the input is invalid */
741
- "oninvalid"?: (e: CustomEvent<CustomEvent>) => void;
741
+ "oninvalid"?: (e: CustomEvent<Event>) => void;
742
742
  /** Fires when the input is cleared */
743
- "oncleared"?: (e: CustomEvent<CustomEvent>) => void;
743
+ "onskf-input-cleared"?: (e: CustomEvent<CustomEvent>) => void;
744
744
  }
745
745
 
746
746
 
@@ -1897,7 +1897,7 @@ export type SkfTooltipProps = {
1897
1897
  *
1898
1898
  * - `change`: Fires when the value of the input changes
1899
1899
  * - `invalid`: Fires when the input is invalid
1900
- * - `cleared`: Fires when the input is cleared
1900
+ * - `skf-input-cleared`: Fires when the input is cleared
1901
1901
  *
1902
1902
  * #### Slots
1903
1903
  *
@@ -21,7 +21,7 @@ import type { SkfLink, CustomEvent } from "../../components/link/link.component.
21
21
  import type { SkfNavItem } from "../../components/nav-item/nav-item.component.js";
22
22
  import type { SkfNav } from "../../components/nav/nav.component.js";
23
23
  import type { SkfHeader } from "../../components/header/header.component.js";
24
- import type { SkfInput, CustomEvent } from "../../components/input/input.component.js";
24
+ import type { SkfInput, Event, CustomEvent } from "../../components/input/input.component.js";
25
25
  import type { SkfMenuItem, CustomEvent } from "../../components/menu-item/menu-item.component.js";
26
26
  import type { SkfMenu, CustomEvent } from "../../components/menu/menu.component.js";
27
27
  import type { SkfPagination, CustomEvent } from "../../components/pagination/pagination.component.js";
@@ -442,11 +442,11 @@ type SkfInputProps = {
442
442
  value?: SkfInput["value"];
443
443
 
444
444
  /** Fires when the value of the input changes */
445
- onchange?: (e: CustomEvent<CustomEvent>) => void;
445
+ onchange?: (e: CustomEvent<Event>) => void;
446
446
  /** Fires when the input is invalid */
447
- oninvalid?: (e: CustomEvent<CustomEvent>) => void;
447
+ oninvalid?: (e: CustomEvent<Event>) => void;
448
448
  /** Fires when the input is cleared */
449
- oncleared?: (e: CustomEvent<CustomEvent>) => void;
449
+ "onskf-input-cleared"?: (e: CustomEvent<CustomEvent>) => void;
450
450
  };
451
451
 
452
452
  type SkfMenuItemProps = {
@@ -1136,7 +1136,7 @@ export type CustomElements = {
1136
1136
  * ### **Events:**
1137
1137
  * - **change** - Fires when the value of the input changes
1138
1138
  * - **invalid** - Fires when the input is invalid
1139
- * - **cleared** - Fires when the input is cleared
1139
+ * - **skf-input-cleared** - Fires when the input is cleared
1140
1140
  *
1141
1141
  * ### **Slots:**
1142
1142
  * - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.
@@ -698,7 +698,7 @@
698
698
  },
699
699
  {
700
700
  "name": "skf-input",
701
- "description": "The skf-text-field is used to create a text input field. It can be used inside a form element or standalone\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n- **cleared** - Fires when the input is cleared\n\n### **Slots:**\n - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.",
701
+ "description": "The skf-text-field is used to create a text input field. It can be used inside a form element or standalone\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n- **skf-input-cleared** - Fires when the input is cleared\n\n### **Slots:**\n - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.",
702
702
  "attributes": [
703
703
  {
704
704
  "name": "disabled",
@@ -1559,7 +1559,7 @@
1559
1559
  },
1560
1560
  {
1561
1561
  "name": "skf-input",
1562
- "description": "The skf-text-field is used to create a text input field. It can be used inside a form element or standalone\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n- **cleared** - Fires when the input is cleared\n\n### **Slots:**\n - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.",
1562
+ "description": "The skf-text-field is used to create a text input field. It can be used inside a form element or standalone\n\nSee [zeroheight](https://zeroheight.com/853e936c9/p/9481fa-input-field) for design principles\n---\n\n\n### **Events:**\n - **change** - Fires when the value of the input changes\n- **invalid** - Fires when the input is invalid\n- **skf-input-cleared** - Fires when the input is cleared\n\n### **Slots:**\n - _default_ - The Inputs label. Alternatively, you can use the `label` attribute.",
1563
1563
  "doc-url": "",
1564
1564
  "attributes": [
1565
1565
  {
@@ -1717,16 +1717,16 @@
1717
1717
  "events": [
1718
1718
  {
1719
1719
  "name": "change",
1720
- "type": "CustomEvent",
1720
+ "type": "Event",
1721
1721
  "description": "Fires when the value of the input changes"
1722
1722
  },
1723
1723
  {
1724
1724
  "name": "invalid",
1725
- "type": "CustomEvent",
1725
+ "type": "Event",
1726
1726
  "description": "Fires when the input is invalid"
1727
1727
  },
1728
1728
  {
1729
- "name": "cleared",
1729
+ "name": "skf-input-cleared",
1730
1730
  "type": "CustomEvent",
1731
1731
  "description": "Fires when the input is cleared"
1732
1732
  }
@@ -1857,16 +1857,16 @@
1857
1857
  "events": [
1858
1858
  {
1859
1859
  "name": "change",
1860
- "type": "CustomEvent",
1860
+ "type": "Event",
1861
1861
  "description": "Fires when the value of the input changes"
1862
1862
  },
1863
1863
  {
1864
1864
  "name": "invalid",
1865
- "type": "CustomEvent",
1865
+ "type": "Event",
1866
1866
  "description": "Fires when the input is invalid"
1867
1867
  },
1868
1868
  {
1869
- "name": "cleared",
1869
+ "name": "skf-input-cleared",
1870
1870
  "type": "CustomEvent",
1871
1871
  "description": "Fires when the input is cleared"
1872
1872
  }
package/package.json CHANGED
@@ -35,7 +35,7 @@
35
35
  "sideEffects": true,
36
36
  "type": "module",
37
37
  "types": "./dist/index.d.ts",
38
- "version": "1.0.2-beta.19",
38
+ "version": "1.0.2-beta.20",
39
39
  "dependencies": {
40
40
  "@floating-ui/dom": "^1.7.3",
41
41
  "@js-temporal/polyfill": "^0.5.1",