@saasbase-io/core-elements 1.1.13 → 1.1.14
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.
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -18
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -24394,11 +24394,9 @@ var Ty = Object.defineProperty, Ly = Object.getOwnPropertyDescriptor, Xn = (e, t
|
|
|
24394
24394
|
let bs = class extends y {
|
|
24395
24395
|
constructor() {
|
|
24396
24396
|
super(...arguments), this._handleChange = (e) => {
|
|
24397
|
-
|
|
24398
|
-
|
|
24399
|
-
this.
|
|
24400
|
-
}, this._handleFocus = (e) => {
|
|
24401
|
-
this.element.data_key && this.component.handleFocus(e.detail.dataKey);
|
|
24397
|
+
this.element.data_key && (this.component.handleInputChange(this.element.data_key, e), this.component.handleFocus(this.element.data_key));
|
|
24398
|
+
}, this._handleFocus = () => {
|
|
24399
|
+
this.element.data_key && this.component.handleFocus(this.element.data_key);
|
|
24402
24400
|
}, this._toggleCheckboxFromLabel = () => {
|
|
24403
24401
|
const e = this.querySelector(
|
|
24404
24402
|
`#${this._fieldKey}`
|
|
@@ -24500,7 +24498,7 @@ let bs = class extends y {
|
|
|
24500
24498
|
?checked=${this._checked}
|
|
24501
24499
|
?invalid=${this._errors.length > 0}
|
|
24502
24500
|
data-key=${this.element.data_key || ""}
|
|
24503
|
-
.
|
|
24501
|
+
.onCheckedChange=${this._handleChange}
|
|
24504
24502
|
@focus=${this._handleFocus}
|
|
24505
24503
|
></rtg-checkbox>
|
|
24506
24504
|
${this._renderLabel()}
|
|
@@ -24772,11 +24770,11 @@ let vs = class extends y {
|
|
|
24772
24770
|
constructor() {
|
|
24773
24771
|
super(...arguments), this._onComplete = (e) => {
|
|
24774
24772
|
if (!this.element.data_key) return;
|
|
24775
|
-
this.component.handleInputChange(this.element.data_key, e
|
|
24773
|
+
this.component.handleInputChange(this.element.data_key, e);
|
|
24776
24774
|
const { event: t } = this.element.properties;
|
|
24777
24775
|
t && this.component.handleEvent(t, this.element);
|
|
24778
|
-
}, this._onFocus = (
|
|
24779
|
-
this.element.data_key && this.component.handleFocus(
|
|
24776
|
+
}, this._onFocus = () => {
|
|
24777
|
+
this.element.data_key && this.component.handleFocus(this.element.data_key, this.element.id);
|
|
24780
24778
|
}, this._onBlur = () => {
|
|
24781
24779
|
this.element.data_key && this.component.handleBlur(this.element.data_key);
|
|
24782
24780
|
};
|
|
@@ -24854,9 +24852,9 @@ let vs = class extends y {
|
|
|
24854
24852
|
data-key=${this.element.data_key || ""}
|
|
24855
24853
|
class=${e}
|
|
24856
24854
|
style=${k(o)}
|
|
24857
|
-
.
|
|
24858
|
-
.
|
|
24859
|
-
.
|
|
24855
|
+
.onComplete=${this._onComplete}
|
|
24856
|
+
.onFocus=${this._onFocus}
|
|
24857
|
+
.onBlur=${this._onBlur}
|
|
24860
24858
|
>
|
|
24861
24859
|
${this._renderOTPContent()}
|
|
24862
24860
|
</rtg-input-otp>
|
|
@@ -25531,9 +25529,9 @@ let Ss = class extends y {
|
|
|
25531
25529
|
constructor() {
|
|
25532
25530
|
super(...arguments), this._onInput = (e) => {
|
|
25533
25531
|
const t = this.element.data_key;
|
|
25534
|
-
t && this.component.handleInputChange(t, e.
|
|
25535
|
-
}, this._onFocus = (
|
|
25536
|
-
this.element.data_key && this.component.handleFocus(
|
|
25532
|
+
t && this.component.handleInputChange(t, e.target.value);
|
|
25533
|
+
}, this._onFocus = () => {
|
|
25534
|
+
this.element.data_key && this.component.handleFocus(this.element.data_key);
|
|
25537
25535
|
}, this._onBlur = () => {
|
|
25538
25536
|
const e = this.element.data_key;
|
|
25539
25537
|
e && this.component.handleBlur(e);
|
|
@@ -25665,9 +25663,9 @@ let Ss = class extends y {
|
|
|
25665
25663
|
data-key=${this.element.data_key || ""}
|
|
25666
25664
|
class=${r}
|
|
25667
25665
|
style=${i}
|
|
25668
|
-
.
|
|
25669
|
-
.
|
|
25670
|
-
.
|
|
25666
|
+
.onInput=${this._onInput}
|
|
25667
|
+
.onFocus=${this._onFocus}
|
|
25668
|
+
.onBlur=${this._onBlur}
|
|
25671
25669
|
></rtg-input>
|
|
25672
25670
|
${this._invalid ? this._renderError() : this._renderHint()}
|
|
25673
25671
|
</rtg-field>
|