@dropi/ui 0.1.43 → 0.1.45
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/cjs/dropi-button.cjs.entry.js +19 -2
- package/dist/cjs/dropi-checkbox.cjs.entry.js +23 -2
- package/dist/cjs/dropi-country-selector.cjs.entry.js +15 -2
- package/dist/cjs/dropi-date-picker.cjs.entry.js +40 -4
- package/dist/cjs/dropi-input_3.cjs.entry.js +3 -3
- package/dist/cjs/dropi-otp-send-code.cjs.entry.js +22 -2
- package/dist/cjs/dropi-phone-input.cjs.entry.js +25 -2
- package/dist/cjs/dropi-radio-button.cjs.entry.js +18 -1
- package/dist/cjs/dropi-select.cjs.entry.js +1 -1
- package/dist/cjs/dropi-switch.cjs.entry.js +22 -1
- package/dist/cjs/dropi-text-area.cjs.entry.js +3 -3
- package/dist/cjs/dropi-ui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/dropi-button/dropi-button.js +39 -2
- package/dist/collection/components/dropi-checkbox/dropi-checkbox.js +38 -2
- package/dist/collection/components/dropi-country-selector/dropi-country-selector.js +29 -2
- package/dist/collection/components/dropi-date-picker/dropi-date-picker.js +55 -4
- package/dist/collection/components/dropi-input/dropi-input.js +4 -4
- package/dist/collection/components/dropi-otp-send-code/dropi-otp-send-code.js +36 -2
- package/dist/collection/components/dropi-phone-input/dropi-phone-input.js +39 -2
- package/dist/collection/components/dropi-radio-button/dropi-radio-button.js +13 -2
- package/dist/collection/components/dropi-select/dropi-select.js +2 -2
- package/dist/collection/components/dropi-switch/dropi-switch.js +37 -1
- package/dist/collection/components/dropi-text-area/dropi-text-area.js +4 -4
- package/dist/components/dropi-alert-modal.js +1 -1
- package/dist/components/dropi-button.js +1 -1
- package/dist/components/dropi-card-checkbox.js +1 -1
- package/dist/components/dropi-card-section.js +1 -1
- package/dist/components/dropi-checkbox-selection-list.js +1 -1
- package/dist/components/dropi-checkbox.js +1 -1
- package/dist/components/dropi-country-selector.js +1 -1
- package/dist/components/dropi-date-picker.js +1 -1
- package/dist/components/dropi-dropdown.js +1 -1
- package/dist/components/dropi-empty-state.js +1 -1
- package/dist/components/dropi-file-upload.js +1 -1
- package/dist/components/dropi-input.js +1 -1
- package/dist/components/dropi-otp-send-code.js +1 -1
- package/dist/components/dropi-phone-input.js +1 -1
- package/dist/components/dropi-radio-button.js +1 -1
- package/dist/components/dropi-search.js +1 -1
- package/dist/components/dropi-select.js +1 -1
- package/dist/components/dropi-switch.js +1 -1
- package/dist/components/dropi-table.js +1 -1
- package/dist/components/dropi-text-area.js +1 -1
- package/dist/components/p-CCZ6rIo5.js +1 -0
- package/dist/components/p-Dd1g1gjR.js +1 -0
- package/dist/components/p-Dnx3uXgo.js +1 -0
- package/dist/components/p-Qrac2GRu.js +1 -0
- package/dist/dropi-ui/dropi-button.entry.js +19 -2
- package/dist/dropi-ui/dropi-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-checkbox.entry.js +23 -2
- package/dist/dropi-ui/dropi-checkbox.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-country-selector.entry.js +15 -2
- package/dist/dropi-ui/dropi-country-selector.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-date-picker.entry.js +40 -4
- package/dist/dropi-ui/dropi-date-picker.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-input.entry.js +3 -3
- package/dist/dropi-ui/dropi-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-otp-send-code.entry.js +22 -2
- package/dist/dropi-ui/dropi-otp-send-code.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-phone-input.entry.js +25 -2
- package/dist/dropi-ui/dropi-phone-input.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-radio-button.entry.js +18 -1
- package/dist/dropi-ui/dropi-radio-button.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-select.entry.js +1 -1
- package/dist/dropi-ui/dropi-select.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-switch.entry.js +22 -1
- package/dist/dropi-ui/dropi-switch.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-text-area.entry.js +3 -3
- package/dist/dropi-ui/dropi-text-area.entry.js.map +1 -1
- package/dist/dropi-ui/dropi-ui.esm.js +1 -1
- package/dist/dropi-ui/p-09462f7b.entry.js +1 -0
- package/dist/dropi-ui/p-42a85ce5.entry.js +1 -0
- package/dist/dropi-ui/p-43e21ed8.entry.js +1 -0
- package/dist/dropi-ui/p-532136cc.entry.js +1 -0
- package/dist/dropi-ui/p-9a569a4e.entry.js +1 -0
- package/dist/dropi-ui/p-b2e8c0e2.entry.js +1 -0
- package/dist/dropi-ui/p-bc6bb893.entry.js +1 -0
- package/dist/dropi-ui/p-c08b8995.entry.js +1 -0
- package/dist/dropi-ui/p-c6926604.entry.js +1 -0
- package/dist/dropi-ui/p-eaa10fe8.entry.js +1 -0
- package/dist/dropi-ui/p-fb4856ea.entry.js +1 -0
- package/dist/esm/dropi-button.entry.js +19 -2
- package/dist/esm/dropi-checkbox.entry.js +23 -2
- package/dist/esm/dropi-country-selector.entry.js +15 -2
- package/dist/esm/dropi-date-picker.entry.js +40 -4
- package/dist/esm/dropi-input_3.entry.js +3 -3
- package/dist/esm/dropi-otp-send-code.entry.js +22 -2
- package/dist/esm/dropi-phone-input.entry.js +25 -2
- package/dist/esm/dropi-radio-button.entry.js +18 -1
- package/dist/esm/dropi-select.entry.js +1 -1
- package/dist/esm/dropi-switch.entry.js +22 -1
- package/dist/esm/dropi-text-area.entry.js +3 -3
- package/dist/esm/dropi-ui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/dropi-button/dropi-button.d.ts +4 -0
- package/dist/types/components/dropi-checkbox/dropi-checkbox.d.ts +5 -0
- package/dist/types/components/dropi-country-selector/dropi-country-selector.d.ts +3 -0
- package/dist/types/components/dropi-date-picker/dropi-date-picker.d.ts +6 -0
- package/dist/types/components/dropi-otp-send-code/dropi-otp-send-code.d.ts +3 -0
- package/dist/types/components/dropi-phone-input/dropi-phone-input.d.ts +5 -0
- package/dist/types/components/dropi-radio-button/dropi-radio-button.d.ts +3 -0
- package/dist/types/components/dropi-switch/dropi-switch.d.ts +5 -0
- package/dist/types/components.d.ts +109 -4
- package/hydrate/index.js +218 -43
- package/hydrate/index.mjs +218 -43
- package/package.json +1 -1
- package/readme.md +225 -6
- package/skills/update-context/skill.md +37 -0
package/hydrate/index.js
CHANGED
|
@@ -6017,7 +6017,15 @@ class DropiButton {
|
|
|
6017
6017
|
constructor(hostRef) {
|
|
6018
6018
|
registerInstance(this, hostRef);
|
|
6019
6019
|
this.dropiClick = createEvent(this, "dropiClick");
|
|
6020
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
6021
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
6022
|
+
}
|
|
6023
|
+
else {
|
|
6024
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
6025
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
6026
|
+
}
|
|
6020
6027
|
}
|
|
6028
|
+
internals;
|
|
6021
6029
|
/** Visual color palette */
|
|
6022
6030
|
type = 'default';
|
|
6023
6031
|
/** Primary (filled) | Secondary (outlined) | Tertiary (ghost) */
|
|
@@ -6036,6 +6044,8 @@ class DropiButton {
|
|
|
6036
6044
|
customIconColor = '';
|
|
6037
6045
|
/** Button label */
|
|
6038
6046
|
text = '';
|
|
6047
|
+
/** Native HTML button type (submit, reset, button) */
|
|
6048
|
+
nativeType = 'button';
|
|
6039
6049
|
/** Emitted on click (not emitted when disabled or loading) */
|
|
6040
6050
|
dropiClick;
|
|
6041
6051
|
colorMap = {
|
|
@@ -6070,6 +6080,12 @@ class DropiButton {
|
|
|
6070
6080
|
handleClick(e) {
|
|
6071
6081
|
if (this.state !== 'disabled' && this.state !== 'loading') {
|
|
6072
6082
|
this.dropiClick.emit(e);
|
|
6083
|
+
if (this.nativeType === 'submit') {
|
|
6084
|
+
this.internals.form?.requestSubmit();
|
|
6085
|
+
}
|
|
6086
|
+
else if (this.nativeType === 'reset') {
|
|
6087
|
+
this.internals.form?.reset();
|
|
6088
|
+
}
|
|
6073
6089
|
}
|
|
6074
6090
|
}
|
|
6075
6091
|
renderLoadingSpinner() {
|
|
@@ -6080,7 +6096,7 @@ class DropiButton {
|
|
|
6080
6096
|
const hasText = (this.text ?? '') !== '';
|
|
6081
6097
|
const showPostIcon = (this.postIcon ?? '') !== '' || (this.type ?? 'default') === 'dropdown';
|
|
6082
6098
|
const dropdownIcon = (this.type ?? 'default') === 'dropdown' ? 'Dropdown-down' : (this.postIcon ?? '');
|
|
6083
|
-
return (hAsync("button", { key: '
|
|
6099
|
+
return (hAsync("button", { key: '21d2654de08dff8db6c2b1ba87594e1184a7aa35', class: {
|
|
6084
6100
|
btn: true,
|
|
6085
6101
|
'without-text': !hasText,
|
|
6086
6102
|
[this.severity ?? 'primary']: true,
|
|
@@ -6088,11 +6104,12 @@ class DropiButton {
|
|
|
6088
6104
|
[this.size ?? 'normal']: true,
|
|
6089
6105
|
[this.state ?? 'default']: true,
|
|
6090
6106
|
'full-width': this.fullWidth,
|
|
6091
|
-
}, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '
|
|
6107
|
+
}, type: this.nativeType, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '6c6c01c923a37df20b614602b18cd2da949bcb91', name: this.preIcon, iconWidth: this.iconSize, iconHeight: this.iconSize, color: this.fontColor })), hasText && hAsync("span", { key: '82447aab8b87bc4a89105cd0209e6c5681222f28', class: "text" }, this.text), showPostIcon && (hAsync("dropi-icon", { key: '6bdefe7c1c819b213d24e0100c2303fb7840ea00', name: dropdownIcon, iconWidth: this.iconSize, iconHeight: this.iconSize, color: this.fontColor })), this.state === 'loading' && this.renderLoadingSpinner(), hAsync("slot", { key: '44483caf52d2ca617ad86c1574a54709f8e77ab5' })));
|
|
6092
6108
|
}
|
|
6109
|
+
static get formAssociated() { return true; }
|
|
6093
6110
|
static get style() { return dropiButtonCss(); }
|
|
6094
6111
|
static get cmpMeta() { return {
|
|
6095
|
-
"$flags$":
|
|
6112
|
+
"$flags$": 841,
|
|
6096
6113
|
"$tagName$": "dropi-button",
|
|
6097
6114
|
"$members$": {
|
|
6098
6115
|
"type": [1],
|
|
@@ -6103,7 +6120,8 @@ class DropiButton {
|
|
|
6103
6120
|
"preIcon": [1, "pre-icon"],
|
|
6104
6121
|
"postIcon": [1, "post-icon"],
|
|
6105
6122
|
"customIconColor": [1, "custom-icon-color"],
|
|
6106
|
-
"text": [1]
|
|
6123
|
+
"text": [1],
|
|
6124
|
+
"nativeType": [1, "native-type"]
|
|
6107
6125
|
},
|
|
6108
6126
|
"$listeners$": undefined,
|
|
6109
6127
|
"$lazyBundleId$": "-",
|
|
@@ -6512,13 +6530,29 @@ class DropiCheckbox {
|
|
|
6512
6530
|
constructor(hostRef) {
|
|
6513
6531
|
registerInstance(this, hostRef);
|
|
6514
6532
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
6533
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
6534
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
6535
|
+
}
|
|
6536
|
+
else {
|
|
6537
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
6538
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
6539
|
+
}
|
|
6515
6540
|
}
|
|
6541
|
+
internals;
|
|
6542
|
+
/** Name for native form submission */
|
|
6543
|
+
name = '';
|
|
6516
6544
|
/** Whether the checkbox is checked */
|
|
6517
6545
|
checked = false;
|
|
6518
6546
|
/** Whether the checkbox is disabled */
|
|
6519
6547
|
disabled = false;
|
|
6520
6548
|
/** Emitted when the checked state changes */
|
|
6521
6549
|
dropiChange;
|
|
6550
|
+
checkedChanged(val) {
|
|
6551
|
+
this.internals.setFormValue(val ? 'on' : null);
|
|
6552
|
+
}
|
|
6553
|
+
componentWillLoad() {
|
|
6554
|
+
this.internals.setFormValue(this.checked ? 'on' : null);
|
|
6555
|
+
}
|
|
6522
6556
|
changeState() {
|
|
6523
6557
|
if (this.disabled)
|
|
6524
6558
|
return;
|
|
@@ -6526,25 +6560,31 @@ class DropiCheckbox {
|
|
|
6526
6560
|
this.dropiChange.emit(this.checked);
|
|
6527
6561
|
}
|
|
6528
6562
|
render() {
|
|
6529
|
-
return (hAsync("div", { key: '
|
|
6563
|
+
return (hAsync("div", { key: '27fec5f03a48c19652c8ae01173dcbb6e3514693', class: "container-dropi-checkbox", onClick: () => this.changeState() }, hAsync("div", { key: '243d07e4444c0dc149ff137258f9ddd58428c438', class: {
|
|
6530
6564
|
check: true,
|
|
6531
6565
|
isCheck: this.checked,
|
|
6532
6566
|
noCheck: !this.checked,
|
|
6533
6567
|
disabled: this.disabled,
|
|
6534
|
-
} }, hAsync("svg", { key: '
|
|
6568
|
+
} }, hAsync("svg", { key: '7a1fd9c7b3fa575ec263fe5ad48fbc0294a79980', xmlns: "http://www.w3.org/2000/svg", width: "12", height: "12", viewBox: "0 0 24 24", fill: "none" }, hAsync("path", { key: 'e77e5cd40c71e542a045934641509e41a7cd4899', d: "M20.5991 5.69251L9.08325 17.2075C9.00583 17.2852 8.91382 17.3469 8.8125 17.389C8.71118 17.4311 8.60255 17.4527 8.49283 17.4527C8.38312 17.4527 8.27449 17.4311 8.17317 17.389C8.07185 17.3469 7.97984 17.2852 7.90242 17.2075L3.44908 12.75C3.37166 12.6723 3.27965 12.6106 3.17833 12.5685C3.07701 12.5264 2.96838 12.5048 2.85867 12.5048C2.74896 12.5048 2.64032 12.5264 2.53901 12.5685C2.43769 12.6106 2.34568 12.6723 2.26825 12.75C2.19052 12.8274 2.12884 12.9194 2.08676 13.0208C2.04467 13.1221 2.02301 13.2307 2.02301 13.3404C2.02301 13.4501 2.04467 13.5588 2.08676 13.6601C2.12884 13.7614 2.19052 13.8534 2.26825 13.9308L6.72325 18.385C7.19321 18.8541 7.83008 19.1175 8.49408 19.1175C9.15809 19.1175 9.79496 18.8541 10.2649 18.385L21.7799 6.87251C21.8575 6.7951 21.9191 6.70314 21.9611 6.6019C22.0031 6.50065 22.0247 6.39212 22.0247 6.28251C22.0247 6.17289 22.0031 6.06436 21.9611 5.96312C21.9191 5.86188 21.8575 5.76992 21.7799 5.69251C21.7025 5.61478 21.6105 5.5531 21.5092 5.51101C21.4078 5.46893 21.2992 5.44727 21.1895 5.44727C21.0798 5.44727 20.9712 5.46893 20.8698 5.51101C20.7685 5.5531 20.6765 5.61478 20.5991 5.69251Z", fill: "#FFFFFF" })))));
|
|
6535
6569
|
}
|
|
6536
6570
|
static get formAssociated() { return true; }
|
|
6571
|
+
static get watchers() { return {
|
|
6572
|
+
"checked": [{
|
|
6573
|
+
"checkedChanged": 0
|
|
6574
|
+
}]
|
|
6575
|
+
}; }
|
|
6537
6576
|
static get style() { return dropiCheckboxCss(); }
|
|
6538
6577
|
static get cmpMeta() { return {
|
|
6539
6578
|
"$flags$": 585,
|
|
6540
6579
|
"$tagName$": "dropi-checkbox",
|
|
6541
6580
|
"$members$": {
|
|
6581
|
+
"name": [513],
|
|
6542
6582
|
"checked": [1540],
|
|
6543
6583
|
"disabled": [516]
|
|
6544
6584
|
},
|
|
6545
6585
|
"$listeners$": undefined,
|
|
6546
6586
|
"$lazyBundleId$": "-",
|
|
6547
|
-
"$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"]]
|
|
6587
|
+
"$attrsToReflect$": [["name", "name"], ["checked", "checked"], ["disabled", "disabled"]]
|
|
6548
6588
|
}; }
|
|
6549
6589
|
}
|
|
6550
6590
|
|
|
@@ -7326,7 +7366,17 @@ class DropiCountrySelector {
|
|
|
7326
7366
|
constructor(hostRef) {
|
|
7327
7367
|
registerInstance(this, hostRef);
|
|
7328
7368
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
7369
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
7370
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
7371
|
+
}
|
|
7372
|
+
else {
|
|
7373
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
7374
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7375
|
+
}
|
|
7329
7376
|
}
|
|
7377
|
+
internals;
|
|
7378
|
+
/** Name for native form submission */
|
|
7379
|
+
name = '';
|
|
7330
7380
|
/** Label above the select */
|
|
7331
7381
|
label = '';
|
|
7332
7382
|
/** Placeholder when nothing is selected */
|
|
@@ -7371,6 +7421,7 @@ class DropiCountrySelector {
|
|
|
7371
7421
|
searchInputRef;
|
|
7372
7422
|
currentSelectionChanged(val) {
|
|
7373
7423
|
this.selected = COUNTRIES$1.find(c => c.code === val) || null;
|
|
7424
|
+
this.internals.setFormValue(val);
|
|
7374
7425
|
}
|
|
7375
7426
|
selectPropertiesChanged(val) {
|
|
7376
7427
|
if (!val)
|
|
@@ -7391,6 +7442,7 @@ class DropiCountrySelector {
|
|
|
7391
7442
|
this.selectPropertiesChanged(this.selectProperties);
|
|
7392
7443
|
if (this.currentSelection)
|
|
7393
7444
|
this.currentSelectionChanged(this.currentSelection);
|
|
7445
|
+
this.internals.setFormValue(this.currentSelection ?? '');
|
|
7394
7446
|
}
|
|
7395
7447
|
componentDidLoad() {
|
|
7396
7448
|
if (this.appendTo !== 'body')
|
|
@@ -7463,12 +7515,13 @@ class DropiCountrySelector {
|
|
|
7463
7515
|
this.dropiChange.emit(country);
|
|
7464
7516
|
}
|
|
7465
7517
|
render() {
|
|
7466
|
-
return (hAsync("div", { key: '
|
|
7518
|
+
return (hAsync("div", { key: '98292dbf6f84139b409cefe4690fb5ce834372c7', class: "custom-select" }, this.label && (hAsync("label", { key: '7dd60d54e701108f7061623a89e8ff29edbb8dc6' }, this.label, this.showObligatory && hAsync("span", { key: '971fd2a900d9ef4740a96145cadc948aab95232a', class: "required" }, "*"))), hAsync("button", { key: '6c0067cfaf920160a4f8c05f59c34f3539540d29', type: "button", ref: (el) => { this.buttonRef = el; }, class: {
|
|
7467
7519
|
'select-button': true,
|
|
7468
7520
|
'select-completed': !!this.selected,
|
|
7469
7521
|
'select-invalid': this.hasError,
|
|
7470
|
-
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: '
|
|
7522
|
+
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: 'b28c2c5b0de9b8052bb920a272b9dcc51f4eac6f', class: "selected-content" }, this.selected ? (hAsync("span", { class: "selected-option" }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${this.selected.code}/shiny/24.png`, alt: this.selected.name }), this.selected.name)) : (hAsync("span", { class: "placeholder-text" }, this.placeholder))), hAsync("dropi-icon", { key: '2ec568b0ad4efdb3a22ffceb1e85fbc6f1d483e8', name: this.isOpen ? 'Arrow-Up-2' : 'Arrow-Down-2', iconWidth: "20px", iconHeight: "20px", color: "Gray-Gray-500" })), hAsync("ul", { key: '34f0e5772ebb21e85cb246cbb91196d128d9ca59', class: `select-dropdown${this.isOpen ? ' expanded' : ' collapsed'}` }, hAsync("li", { key: '77cdf81222a7c593f1d54198e2b897468db890a5', class: "search-li" }, hAsync("div", { key: '970723feefd04adf0b113ae63931092f58d0264a', class: "search-field" }, hAsync("input", { key: '294868580087dc1bdb04258ad84672f3d10e7ba7', ref: (el) => { this.searchInputRef = el; }, type: "text", class: "country-search", placeholder: "Buscar pa\u00EDs...", value: this.searchTerm, onInput: (e) => { this.searchTerm = e.target.value; } }), hAsync("span", { key: '02781dc595e568865ab5ae14aeed326b71b36e10', class: "search-icon" }, hAsync("dropi-icon", { key: '0c06d5e5f26d2a2e5ec20967a2ebb9430397f3ea', name: "Search", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" })))), this.filtered.map(country => (hAsync("li", { key: country.code }, hAsync("button", { class: "option", type: "button", onClick: () => this.select(country) }, hAsync("img", { class: "flag-img", src: `https://flagsapi.com/${country.code}/shiny/24.png`, alt: country.name }), country.name))))), this.textHelper && (hAsync("div", { key: 'aae58bc17bbb6953a676818fe02da94b5a4e9f73', class: { 'select-helper': true, 'select-helper-error': this.hasError } }, this.hasError && hAsync("dropi-icon", { key: '7542ef4620499957711079c587f6cb650096f6d3', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: 'ea4c5cedd3b87444a90b4e210f7afa3a318a4832' }, this.textHelper)))));
|
|
7471
7523
|
}
|
|
7524
|
+
static get formAssociated() { return true; }
|
|
7472
7525
|
static get watchers() { return {
|
|
7473
7526
|
"currentSelection": [{
|
|
7474
7527
|
"currentSelectionChanged": 0
|
|
@@ -7479,9 +7532,10 @@ class DropiCountrySelector {
|
|
|
7479
7532
|
}; }
|
|
7480
7533
|
static get style() { return dropiCountrySelectorCss(); }
|
|
7481
7534
|
static get cmpMeta() { return {
|
|
7482
|
-
"$flags$":
|
|
7535
|
+
"$flags$": 585,
|
|
7483
7536
|
"$tagName$": "dropi-country-selector",
|
|
7484
7537
|
"$members$": {
|
|
7538
|
+
"name": [513],
|
|
7485
7539
|
"label": [1],
|
|
7486
7540
|
"placeholder": [1],
|
|
7487
7541
|
"currentSelection": [1025, "current-selection"],
|
|
@@ -7497,7 +7551,7 @@ class DropiCountrySelector {
|
|
|
7497
7551
|
},
|
|
7498
7552
|
"$listeners$": [[4, "click", "handleDocClick"]],
|
|
7499
7553
|
"$lazyBundleId$": "-",
|
|
7500
|
-
"$attrsToReflect$": []
|
|
7554
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
7501
7555
|
}; }
|
|
7502
7556
|
}
|
|
7503
7557
|
|
|
@@ -7519,13 +7573,26 @@ class DropiDatePicker {
|
|
|
7519
7573
|
this.dropiChangeDate = createEvent(this, "dropiChangeDate");
|
|
7520
7574
|
this.dropiClosePanel = createEvent(this, "dropiClosePanel");
|
|
7521
7575
|
this.dropiRangeChange = createEvent(this, "dropiRangeChange");
|
|
7576
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
7577
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
7578
|
+
}
|
|
7579
|
+
else {
|
|
7580
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
7581
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7582
|
+
}
|
|
7522
7583
|
}
|
|
7584
|
+
internals;
|
|
7585
|
+
/** Name for native form submission */
|
|
7586
|
+
name = '';
|
|
7523
7587
|
/** Selected date (ISO string, single mode) - matches Angular 'selectedDate' */
|
|
7524
7588
|
selectedDate = '';
|
|
7525
7589
|
/** Range start date (ISO string, range mode) */
|
|
7526
7590
|
startDate = '';
|
|
7527
7591
|
/** Range end date (ISO string, range mode) */
|
|
7528
7592
|
endDate = '';
|
|
7593
|
+
valueChanged() {
|
|
7594
|
+
this.updateFormValue();
|
|
7595
|
+
}
|
|
7529
7596
|
/** Enable range selection - matches Angular selectionMode */
|
|
7530
7597
|
selectionMode = 'single';
|
|
7531
7598
|
/** Min selectable date (ISO string) */
|
|
@@ -7558,6 +7625,17 @@ class DropiDatePicker {
|
|
|
7558
7625
|
dropiClosePanel;
|
|
7559
7626
|
/** Emitted when range selected */
|
|
7560
7627
|
dropiRangeChange;
|
|
7628
|
+
componentWillLoad() {
|
|
7629
|
+
this.updateFormValue();
|
|
7630
|
+
}
|
|
7631
|
+
updateFormValue() {
|
|
7632
|
+
if (this.selectionMode === 'range') {
|
|
7633
|
+
this.internals.setFormValue(this.startDate && this.endDate ? `${this.startDate},${this.endDate}` : '');
|
|
7634
|
+
}
|
|
7635
|
+
else {
|
|
7636
|
+
this.internals.setFormValue(this.selectedDate || '');
|
|
7637
|
+
}
|
|
7638
|
+
}
|
|
7561
7639
|
get displayValue() {
|
|
7562
7640
|
if (this.selectionMode === 'range') {
|
|
7563
7641
|
if (this.startDate && this.endDate)
|
|
@@ -7677,12 +7755,12 @@ class DropiDatePicker {
|
|
|
7677
7755
|
render() {
|
|
7678
7756
|
const days = this.buildDays();
|
|
7679
7757
|
const today = new Date().toISOString().slice(0, 10);
|
|
7680
|
-
return (hAsync("div", { key: '
|
|
7758
|
+
return (hAsync("div", { key: '97a96b56b0e8ae551f747bad4a3459a1f4945411', class: "dp-wrap" }, this.label && hAsync("label", { key: 'a1792032ab9ae2dbe574f50b7a537df687eae40c', class: "dp-label" }, this.label), hAsync("button", { key: '4237c2b988f1e9fbaa77dc2a989964216e3fe902', class: {
|
|
7681
7759
|
'dp-trigger': true,
|
|
7682
7760
|
'dp-trigger--disabled': this.disabled,
|
|
7683
7761
|
'dp-trigger--invalid': this.isInvalid,
|
|
7684
7762
|
'dp-trigger--loading': this.loading
|
|
7685
|
-
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '
|
|
7763
|
+
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '39591fedb92b92e6507b564fc8c145711f1a21b1', name: "Calendar", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-400" }), hAsync("span", { key: '305e3f81d64c01603687d53edc59e1d19ef06c3c', class: { 'dp-trigger__value': true, 'dp-trigger__placeholder': !this.displayValue } }, this.displayValue || this.placeholder), hAsync("dropi-icon", { key: '13feb346ad7b07a7e2f208e299f62a8261a97655', name: "Arrow-Down-2", iconWidth: "12px", iconHeight: "12px", color: "Gray-Gray-400" })), this.open && (hAsync("div", { key: '4cdf8a69422a0b54d0f7c1a6711a683dab7d1f34', class: "dp-popup" }, hAsync("div", { key: '0c6fb31094003c66c5b471e738dd75e7b865401f', class: "dp-nav" }, hAsync("button", { key: '4fa24f9450cf6c5e888cea374619e14245c0c005', class: "dp-nav__btn", onClick: () => this.prevMonth(), type: "button" }, hAsync("dropi-icon", { key: '2196f85700b252d4f83536f11ed197c083fc45ec', name: "Arrow-Left-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" })), hAsync("span", { key: '01619de7c5218b506f75234745f3184af813a491', class: "dp-nav__title" }, hAsync("span", { key: '8074e7deeb6c102bad7f1911739e785187783a7c' }, MONTHS_ES[this.viewMonth]), hAsync("span", { key: '69e9c3b41361e293a843f911b5bcf4690995d2b4' }, this.viewYear)), hAsync("button", { key: '51c0ad3da96835736170fbf94338fd70c942c3d2', class: "dp-nav__btn", onClick: () => this.nextMonth(), type: "button" }, hAsync("dropi-icon", { key: '24eb4385639c9a71f5312f32b33b36593c2b0259', name: "Arrow-Right-2", iconWidth: "16px", iconHeight: "16px", color: "Gray-Gray-600" }))), hAsync("div", { key: 'c18cecd81af38b3a6f23402501011c09b8b453d7', class: "dp-grid" }, DAYS_ES.map(d => (hAsync("div", { class: "dp-day-header" }, d))), days.map(({ iso, day, currentMonth }) => {
|
|
7686
7764
|
const isSelected = this.selectionMode !== 'range'
|
|
7687
7765
|
? iso === this.selectedDate
|
|
7688
7766
|
: iso === this.startDate || iso === this.endDate;
|
|
@@ -7704,12 +7782,12 @@ class DropiDatePicker {
|
|
|
7704
7782
|
if (this.selectionMode === 'range' && this.startDate && !this.endDate)
|
|
7705
7783
|
this.hoverDate = iso;
|
|
7706
7784
|
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
7707
|
-
})), hAsync("div", { key: '
|
|
7785
|
+
})), hAsync("div", { key: '594f280cb269c32ac3a129401e13b710af1a7c7e', class: "dp-footer" }, hAsync("button", { key: '6028ef84bc17f0d1bb0fd587a991698a8fc69338', class: "dp-footer__clear", type: "button", onClick: () => {
|
|
7708
7786
|
this.selectedDate = '';
|
|
7709
7787
|
this.startDate = '';
|
|
7710
7788
|
this.endDate = '';
|
|
7711
7789
|
this.open = false;
|
|
7712
|
-
} }, "Limpiar"), hAsync("button", { key: '
|
|
7790
|
+
} }, "Limpiar"), hAsync("button", { key: 'ab01840a18d657621205d4fba69cc53feb474d11', class: "dp-footer__today", type: "button", onClick: () => {
|
|
7713
7791
|
if (this.selectionMode !== 'range') {
|
|
7714
7792
|
this.selectedDate = today;
|
|
7715
7793
|
this.open = false;
|
|
@@ -7721,11 +7799,24 @@ class DropiDatePicker {
|
|
|
7721
7799
|
}
|
|
7722
7800
|
} }, "Hoy"))))));
|
|
7723
7801
|
}
|
|
7802
|
+
static get formAssociated() { return true; }
|
|
7803
|
+
static get watchers() { return {
|
|
7804
|
+
"selectedDate": [{
|
|
7805
|
+
"valueChanged": 0
|
|
7806
|
+
}],
|
|
7807
|
+
"startDate": [{
|
|
7808
|
+
"valueChanged": 0
|
|
7809
|
+
}],
|
|
7810
|
+
"endDate": [{
|
|
7811
|
+
"valueChanged": 0
|
|
7812
|
+
}]
|
|
7813
|
+
}; }
|
|
7724
7814
|
static get style() { return dropiDatePickerCss(); }
|
|
7725
7815
|
static get cmpMeta() { return {
|
|
7726
|
-
"$flags$":
|
|
7816
|
+
"$flags$": 585,
|
|
7727
7817
|
"$tagName$": "dropi-date-picker",
|
|
7728
7818
|
"$members$": {
|
|
7819
|
+
"name": [513],
|
|
7729
7820
|
"selectedDate": [1025, "selected-date"],
|
|
7730
7821
|
"startDate": [1025, "start-date"],
|
|
7731
7822
|
"endDate": [1025, "end-date"],
|
|
@@ -7744,7 +7835,7 @@ class DropiDatePicker {
|
|
|
7744
7835
|
},
|
|
7745
7836
|
"$listeners$": [[4, "click", "handleDocClick"]],
|
|
7746
7837
|
"$lazyBundleId$": "-",
|
|
7747
|
-
"$attrsToReflect$": []
|
|
7838
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
7748
7839
|
}; }
|
|
7749
7840
|
}
|
|
7750
7841
|
|
|
@@ -8955,6 +9046,7 @@ class DropiInput {
|
|
|
8955
9046
|
this.value = val;
|
|
8956
9047
|
this.internals.setFormValue(val);
|
|
8957
9048
|
this.dropiInput.emit(val);
|
|
9049
|
+
this.dropiChange.emit(val);
|
|
8958
9050
|
}
|
|
8959
9051
|
handleKeyDown(e) {
|
|
8960
9052
|
if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
@@ -8969,7 +9061,6 @@ class DropiInput {
|
|
|
8969
9061
|
}
|
|
8970
9062
|
handleBlur() {
|
|
8971
9063
|
this.touched = true;
|
|
8972
|
-
this.dropiChange.emit(this.value);
|
|
8973
9064
|
this.dropiBlur.emit();
|
|
8974
9065
|
}
|
|
8975
9066
|
togglePassword() {
|
|
@@ -9035,14 +9126,14 @@ class DropiInput {
|
|
|
9035
9126
|
render() {
|
|
9036
9127
|
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
9037
9128
|
const showIconInline = !!this.icon;
|
|
9038
|
-
return (hAsync("div", { key: '
|
|
9129
|
+
return (hAsync("div", { key: '6af757e1d86bfe96d471e9cbed258a50727ae190', class: { 'fixed-label-container': this.fixedLabel } }, this.fixedLabel && (hAsync("div", { key: 'e88bf81fd2b79933e386c2e5fa38f57d85cfe836', class: "input-label Body-S-Regular" }, this.label, showObligatoryAsterisk && hAsync("span", { key: 'be8ec1b0d3ef624ca22e58ae072917ad2ecc79fb', class: "asterisk" }, " *"))), hAsync("div", { key: '4806c0d250f00bb08788d9d6aa935ca15f2aa826', class: "form-group" }, hAsync("div", { key: 'b9fa243d299bcd165458947d6695fcc845764276', class: { 'input-container': true, 'input-container--has-icon': showIconInline } }, showIconInline && (hAsync("dropi-icon", { key: '92b3cf11803745784f13e908ea88992f76c74473', class: "icon-input", name: this.icon, color: this.iconColor, iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' } })), this.passwordInput && (hAsync("dropi-icon", { key: 'c7dc725d577a6d4afb7f87c8b53b16c621de9e86', class: "icon-input-password", name: this.showPassword ? 'Eye' : 'Eye-crossed', iconWidth: "20px", iconHeight: "20px", style: { width: '20px', height: '20px' }, color: "Gray-Gray-500", onClick: () => this.togglePassword() })), hAsync("input", { key: '8146ae1794cbe1f200bb681358c7319f10faab3c', id: this.resolvedId, class: {
|
|
9039
9130
|
'form-control': true,
|
|
9040
9131
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
9041
9132
|
'form-control-invalid': this.isInvalid,
|
|
9042
9133
|
'padding-icon': showIconInline,
|
|
9043
9134
|
'text-password': this.passwordInput && !this.showPassword,
|
|
9044
9135
|
'fixed-label-input': this.fixedLabel,
|
|
9045
|
-
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (hAsync("label", { key: '
|
|
9136
|
+
}, type: this.inputType, value: this.value, placeholder: this.fixedLabel ? this.placeholder : ' ', disabled: this.disabled, required: this.required, maxLength: this.maxLength, inputMode: this.inputMode, "data-cy": undefined, onInput: e => this.handleInput(e), onKeyDown: e => this.handleKeyDown(e), onFocus: () => this.handleFocus(), onBlur: () => this.handleBlur() }), !this.fixedLabel && (hAsync("label", { key: '005d15af6b50b2cb2d47ac8381a722794eb273e5', class: "Body-S-Regular label-bottom", htmlFor: this.resolvedId }, this.label, showObligatoryAsterisk && hAsync("span", { key: 'ad56df877cff3df8a801cdfcb607d9af02f7465a', class: "asterisk" }, " *"))), this.showHelper && (hAsync("div", { key: '76e858c13a798f69b2d20ee9908f17531568dad1', class: "form-control-helper" }, this.isInvalid && hAsync("dropi-icon", { key: '3e42ffb4db7444ebfb49cc9c6720d5a9d02b2860', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: '5e970903eb51ca6b72a43bef0edf6ef149443247', class: {
|
|
9046
9137
|
'disabled-helper': this.disabled,
|
|
9047
9138
|
'invalid-color': this.isInvalid,
|
|
9048
9139
|
} }, this.textHelper)))))));
|
|
@@ -9065,7 +9156,7 @@ class DropiInput {
|
|
|
9065
9156
|
"$tagName$": "dropi-input",
|
|
9066
9157
|
"$members$": {
|
|
9067
9158
|
"inputId": [1025, "input-id"],
|
|
9068
|
-
"name": [
|
|
9159
|
+
"name": [513],
|
|
9069
9160
|
"label": [1025],
|
|
9070
9161
|
"placeholder": [1025],
|
|
9071
9162
|
"value": [1025],
|
|
@@ -9092,7 +9183,7 @@ class DropiInput {
|
|
|
9092
9183
|
},
|
|
9093
9184
|
"$listeners$": undefined,
|
|
9094
9185
|
"$lazyBundleId$": "-",
|
|
9095
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["required", "required"]]
|
|
9186
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
|
|
9096
9187
|
}; }
|
|
9097
9188
|
}
|
|
9098
9189
|
|
|
@@ -9738,7 +9829,17 @@ class DropiOtpSendCode {
|
|
|
9738
9829
|
this.codeCompleted = createEvent(this, "codeCompleted");
|
|
9739
9830
|
this.codeAccepted = createEvent(this, "codeAccepted");
|
|
9740
9831
|
this.dropiResend = createEvent(this, "dropiResend");
|
|
9832
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
9833
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
9834
|
+
}
|
|
9835
|
+
else {
|
|
9836
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
9837
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
9838
|
+
}
|
|
9741
9839
|
}
|
|
9840
|
+
internals;
|
|
9841
|
+
/** Name for native form submission */
|
|
9842
|
+
name = '';
|
|
9742
9843
|
/** Delivery method label */
|
|
9743
9844
|
engine = 'email';
|
|
9744
9845
|
/** Contact info (email/phone to show in label) */
|
|
@@ -9770,6 +9871,7 @@ class DropiOtpSendCode {
|
|
|
9770
9871
|
componentWillLoad() {
|
|
9771
9872
|
this.digits = Array(this.digitsCount).fill('');
|
|
9772
9873
|
this.digitStates = Array(this.digitsCount).fill('idle');
|
|
9874
|
+
this.internals.setFormValue('');
|
|
9773
9875
|
}
|
|
9774
9876
|
componentDidLoad() { this.startCountdown(); }
|
|
9775
9877
|
disconnectedCallback() { clearInterval(this.timer); }
|
|
@@ -9797,9 +9899,13 @@ class DropiOtpSendCode {
|
|
|
9797
9899
|
this.inputs[index + 1]?.focus();
|
|
9798
9900
|
if (newDigits.every(d => d !== '')) {
|
|
9799
9901
|
const finalCode = newDigits.join('');
|
|
9902
|
+
this.internals.setFormValue(finalCode);
|
|
9800
9903
|
this.codeCompleted.emit(finalCode);
|
|
9801
9904
|
this.codeAccepted.emit(finalCode);
|
|
9802
9905
|
}
|
|
9906
|
+
else {
|
|
9907
|
+
this.internals.setFormValue(newDigits.join(''));
|
|
9908
|
+
}
|
|
9803
9909
|
}
|
|
9804
9910
|
handleKeyDown(e, index) {
|
|
9805
9911
|
if (e.key === 'Backspace' && !this.digits[index] && index > 0) {
|
|
@@ -9816,21 +9922,26 @@ class DropiOtpSendCode {
|
|
|
9816
9922
|
this.inputs[Math.min(text.length, this.digitsCount - 1)]?.focus();
|
|
9817
9923
|
if (newDigits.every(d => d !== '')) {
|
|
9818
9924
|
const finalCode = newDigits.join('');
|
|
9925
|
+
this.internals.setFormValue(finalCode);
|
|
9819
9926
|
this.codeCompleted.emit(finalCode);
|
|
9820
9927
|
this.codeAccepted.emit(finalCode);
|
|
9821
9928
|
}
|
|
9929
|
+
else {
|
|
9930
|
+
this.internals.setFormValue(newDigits.join(''));
|
|
9931
|
+
}
|
|
9822
9932
|
}
|
|
9823
9933
|
render() {
|
|
9824
9934
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
9825
|
-
return (hAsync("div", { key: '
|
|
9935
|
+
return (hAsync("div", { key: 'ee2e6766c4b220a1a12b8734747138cf2351a0d8', class: "otp" }, this.showLabelContact && (hAsync("p", { key: '87f34e3b13c0e16e584cc03ea8c5a35e462784b1', class: "otp__label" }, "Ingresa el c\u00F3digo enviado a tu ", engineLabel, this.labelContact && hAsync("strong", { key: '6c9d0c73340ff8dab1730b5d6c9cc0431f3ff21c' }, " ", this.labelContact))), hAsync("div", { key: 'd82904db02da1da5f863bb86cef65b0da166ff0c', class: "otp__inputs", onPaste: (e) => this.handlePaste(e) }, this.digits.map((_, i) => (hAsync("input", { key: i, ref: (el) => {
|
|
9826
9936
|
if (el)
|
|
9827
9937
|
this.inputs[i] = el;
|
|
9828
9938
|
}, class: {
|
|
9829
9939
|
'otp__digit': true,
|
|
9830
9940
|
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
9831
9941
|
'otp__digit--error': this.error,
|
|
9832
|
-
}, type: "text", inputMode: "numeric", maxLength: 1, value: this.digits[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (hAsync("p", { key: '
|
|
9942
|
+
}, type: "text", inputMode: "numeric", maxLength: 1, value: this.digits[i] ?? '', onInput: (e) => this.handleInput(e, i), onKeyDown: (e) => this.handleKeyDown(e, i) })))), this.error && this.errorMessage && (hAsync("p", { key: '7629619d5b2c4e8f38e2c2bc93ab134242b8e079', class: "otp__error" }, this.errorMessage)), hAsync("div", { key: 'ea5472d4c55f1cdc30304e9e9bcaacf303ba4501', class: "otp__resend" }, this.canResend ? (hAsync("button", { class: "otp__resend-btn", onClick: () => { this.startCountdown(); this.dropiResend.emit(); } }, "Reenviar c\u00F3digo")) : (hAsync("span", { class: "otp__countdown" }, "Reenviar en ", this.countdown, "s")))));
|
|
9833
9943
|
}
|
|
9944
|
+
static get formAssociated() { return true; }
|
|
9834
9945
|
static get watchers() { return {
|
|
9835
9946
|
"digitsCount": [{
|
|
9836
9947
|
"handleDigitsCountChange": 0
|
|
@@ -9838,9 +9949,10 @@ class DropiOtpSendCode {
|
|
|
9838
9949
|
}; }
|
|
9839
9950
|
static get style() { return dropiOtpSendCodeCss(); }
|
|
9840
9951
|
static get cmpMeta() { return {
|
|
9841
|
-
"$flags$":
|
|
9952
|
+
"$flags$": 585,
|
|
9842
9953
|
"$tagName$": "dropi-otp-send-code",
|
|
9843
9954
|
"$members$": {
|
|
9955
|
+
"name": [513],
|
|
9844
9956
|
"engine": [1],
|
|
9845
9957
|
"labelContact": [1, "label-contact"],
|
|
9846
9958
|
"showLabelContact": [4, "show-label-contact"],
|
|
@@ -9854,7 +9966,7 @@ class DropiOtpSendCode {
|
|
|
9854
9966
|
},
|
|
9855
9967
|
"$listeners$": undefined,
|
|
9856
9968
|
"$lazyBundleId$": "-",
|
|
9857
|
-
"$attrsToReflect$": []
|
|
9969
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
9858
9970
|
}; }
|
|
9859
9971
|
}
|
|
9860
9972
|
|
|
@@ -10049,8 +10161,18 @@ class DropiPhoneInput {
|
|
|
10049
10161
|
this.dropiPhoneChange = createEvent(this, "dropiPhoneChange");
|
|
10050
10162
|
this.dropiVerify = createEvent(this, "dropiVerify");
|
|
10051
10163
|
this.dropiChangeSelect = createEvent(this, "dropiChangeSelect");
|
|
10164
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
10165
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
10166
|
+
}
|
|
10167
|
+
else {
|
|
10168
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
10169
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
10170
|
+
}
|
|
10052
10171
|
}
|
|
10053
10172
|
get el() { return getElement(this); }
|
|
10173
|
+
internals;
|
|
10174
|
+
/** Name for native form submission */
|
|
10175
|
+
name = '';
|
|
10054
10176
|
/** Initial country dial code (e.g. "57") — matches Angular 'CodArea' setter */
|
|
10055
10177
|
codArea = '57';
|
|
10056
10178
|
/** Phone number value — matches Angular 'ngModelPhone' */
|
|
@@ -10085,6 +10207,10 @@ class DropiPhoneInput {
|
|
|
10085
10207
|
dropiChangeSelect;
|
|
10086
10208
|
codAreaChanged() {
|
|
10087
10209
|
this.ngModelPhone = '';
|
|
10210
|
+
this.updateFormValue();
|
|
10211
|
+
}
|
|
10212
|
+
ngModelPhoneChanged() {
|
|
10213
|
+
this.updateFormValue();
|
|
10088
10214
|
}
|
|
10089
10215
|
selectedOptionChanged(val) {
|
|
10090
10216
|
if (!val)
|
|
@@ -10096,6 +10222,11 @@ class DropiPhoneInput {
|
|
|
10096
10222
|
componentWillLoad() {
|
|
10097
10223
|
if (this.selectedOption)
|
|
10098
10224
|
this.selectedOptionChanged(this.selectedOption);
|
|
10225
|
+
this.updateFormValue();
|
|
10226
|
+
}
|
|
10227
|
+
updateFormValue() {
|
|
10228
|
+
const fullValue = this.ngModelPhone ? `+${this.codArea}${this.ngModelPhone}` : '';
|
|
10229
|
+
this.internals.setFormValue(fullValue);
|
|
10099
10230
|
}
|
|
10100
10231
|
get selectedCountry() {
|
|
10101
10232
|
const cleanCodArea = (this.codArea ?? '57').replace('+', '');
|
|
@@ -10122,24 +10253,29 @@ class DropiPhoneInput {
|
|
|
10122
10253
|
render() {
|
|
10123
10254
|
const country = this.selectedCountry;
|
|
10124
10255
|
const isInvalid = this.isValidPhone === false;
|
|
10125
|
-
return (hAsync("div", { key: '
|
|
10256
|
+
return (hAsync("div", { key: '1634a703f734cd5db7b5d7acf83f403ea07962a3', class: "phone-wrap" }, hAsync("div", { key: 'a9ed4a17b4a01893fc22d051241dcd494fa2e66d', class: "phone-input-container" }, hAsync("div", { key: '6a50121fbb8939eac54035a314c340137aae63d5', class: "custom-select" }, hAsync("button", { key: '0157b468dab13e23f83b9528ec235bc61be91733', type: "button", class: { 'select-button': true, 'select-invalid': isInvalid }, disabled: this.disabledInput, onClick: () => {
|
|
10126
10257
|
if (!this.disabledInput)
|
|
10127
10258
|
this.open = !this.open;
|
|
10128
|
-
} }, hAsync("span", { key: '
|
|
10259
|
+
} }, hAsync("span", { key: 'b174ec714c415964d09f4661f58a1a62e8c80653', style: { display: 'flex', gap: '0.5rem', alignItems: 'center' } }, hAsync("img", { key: 'f4c62db877a54bd395b756926918b8ff16511a2a', src: `https://flagsapi.com/${country.flag}/flat/24.png`, alt: "flag" }), country.code), hAsync("dropi-icon", { key: '809f64bed4cccd911110c9e8e52752554b0d8a86', name: this.open ? 'Dropdown-up' : 'Dropdown-down', iconWidth: "14px", iconHeight: "14px", color: "Gray-Gray-500" })), hAsync("ul", { key: 'b4dea28807780b086ba15161cee3e417efb2f2a1', class: { 'select-dropdown': true, 'expanded-select': this.open, 'collapsed-select': !this.open } }, COUNTRIES.map(option => (hAsync("li", null, hAsync("button", { type: "button", class: "option", onMouseDown: (e) => { e.preventDefault(); this.selectCountry(option); } }, hAsync("img", { src: `https://flagsapi.com/${option.flag}/flat/24.png`, alt: option.flag }), option.code)))))), hAsync("input", { key: '4e1113fedf25b9c91d2aff815d6c862a7d47d072', id: "phone-input", type: "tel", inputmode: "numeric", class: { 'form-control': true, 'is-invalid': isInvalid }, placeholder: this.phoneNumberPlaceholder, value: this.ngModelPhone, disabled: this.disabledInput, maxLength: country.maxLength, onInput: (e) => this.handleInput(e) }))));
|
|
10129
10260
|
}
|
|
10261
|
+
static get formAssociated() { return true; }
|
|
10130
10262
|
static get watchers() { return {
|
|
10131
10263
|
"codArea": [{
|
|
10132
10264
|
"codAreaChanged": 0
|
|
10133
10265
|
}],
|
|
10266
|
+
"ngModelPhone": [{
|
|
10267
|
+
"ngModelPhoneChanged": 0
|
|
10268
|
+
}],
|
|
10134
10269
|
"selectedOption": [{
|
|
10135
10270
|
"selectedOptionChanged": 0
|
|
10136
10271
|
}]
|
|
10137
10272
|
}; }
|
|
10138
10273
|
static get style() { return dropiPhoneInputCss(); }
|
|
10139
10274
|
static get cmpMeta() { return {
|
|
10140
|
-
"$flags$":
|
|
10275
|
+
"$flags$": 585,
|
|
10141
10276
|
"$tagName$": "dropi-phone-input",
|
|
10142
10277
|
"$members$": {
|
|
10278
|
+
"name": [513],
|
|
10143
10279
|
"codArea": [1025, "cod-area"],
|
|
10144
10280
|
"ngModelPhone": [1025, "ng-model-phone"],
|
|
10145
10281
|
"phoneNumberPlaceholder": [1, "phone-number-placeholder"],
|
|
@@ -10152,7 +10288,7 @@ class DropiPhoneInput {
|
|
|
10152
10288
|
},
|
|
10153
10289
|
"$listeners$": [[8, "click", "handleWindowClick"]],
|
|
10154
10290
|
"$lazyBundleId$": "-",
|
|
10155
|
-
"$attrsToReflect$": []
|
|
10291
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
10156
10292
|
}; }
|
|
10157
10293
|
}
|
|
10158
10294
|
|
|
@@ -10219,7 +10355,15 @@ class DropiRadioButton {
|
|
|
10219
10355
|
constructor(hostRef) {
|
|
10220
10356
|
registerInstance(this, hostRef);
|
|
10221
10357
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
10358
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
10359
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
10360
|
+
}
|
|
10361
|
+
else {
|
|
10362
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
10363
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
10364
|
+
}
|
|
10222
10365
|
}
|
|
10366
|
+
internals;
|
|
10223
10367
|
/** Label text displayed next to the radio */
|
|
10224
10368
|
label = '';
|
|
10225
10369
|
/** Input name (for grouping radio buttons) */
|
|
@@ -10239,17 +10383,26 @@ class DropiRadioButton {
|
|
|
10239
10383
|
if (val)
|
|
10240
10384
|
this.checked = false;
|
|
10241
10385
|
}
|
|
10386
|
+
checkedChanged(val) {
|
|
10387
|
+
this.internals.setFormValue(val ? 'on' : null);
|
|
10388
|
+
}
|
|
10389
|
+
componentWillLoad() {
|
|
10390
|
+
this.internals.setFormValue(this.checked ? 'on' : null);
|
|
10391
|
+
}
|
|
10242
10392
|
handleChange(e) {
|
|
10243
10393
|
this.checked = e.target.checked;
|
|
10244
10394
|
this.dropiChange.emit(e);
|
|
10245
10395
|
}
|
|
10246
10396
|
render() {
|
|
10247
|
-
return (hAsync("div", { key: '
|
|
10397
|
+
return (hAsync("div", { key: 'e4b54d9bda299b9150ebf9791925e0e7c3b9fb38', class: "dropi-radio-button" }, hAsync("label", { key: '0a4c6443668477a2cb6b2d5a3d8bc1744a0fcffd', htmlFor: this.id }, hAsync("input", { key: '6ba6b5af4bc061664dee0b6554c769613080dbb8', id: this.id, type: "radio", name: this.name, checked: this.checked, onChange: (e) => this.handleChange(e) }), this.label)));
|
|
10248
10398
|
}
|
|
10249
10399
|
static get formAssociated() { return true; }
|
|
10250
10400
|
static get watchers() { return {
|
|
10251
10401
|
"resetTrigger": [{
|
|
10252
10402
|
"onResetTrigger": 0
|
|
10403
|
+
}],
|
|
10404
|
+
"checked": [{
|
|
10405
|
+
"checkedChanged": 0
|
|
10253
10406
|
}]
|
|
10254
10407
|
}; }
|
|
10255
10408
|
static get style() { return dropiRadioButtonCss(); }
|
|
@@ -10258,14 +10411,14 @@ class DropiRadioButton {
|
|
|
10258
10411
|
"$tagName$": "dropi-radio-button",
|
|
10259
10412
|
"$members$": {
|
|
10260
10413
|
"label": [1],
|
|
10261
|
-
"name": [
|
|
10414
|
+
"name": [513],
|
|
10262
10415
|
"id": [1],
|
|
10263
10416
|
"checked": [1540],
|
|
10264
10417
|
"resetTrigger": [4, "reset-trigger"]
|
|
10265
10418
|
},
|
|
10266
10419
|
"$listeners$": undefined,
|
|
10267
10420
|
"$lazyBundleId$": "-",
|
|
10268
|
-
"$attrsToReflect$": [["checked", "checked"]]
|
|
10421
|
+
"$attrsToReflect$": [["name", "name"], ["checked", "checked"]]
|
|
10269
10422
|
}; }
|
|
10270
10423
|
}
|
|
10271
10424
|
|
|
@@ -10955,7 +11108,7 @@ class DropiSelect {
|
|
|
10955
11108
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (hAsync("li", { class: "no-results" }, "Sin resultados"))));
|
|
10956
11109
|
}
|
|
10957
11110
|
render() {
|
|
10958
|
-
return (hAsync("div", { key: '
|
|
11111
|
+
return (hAsync("div", { key: 'f09113a288d45bb5519503bb78c41e236913c1eb', class: "custom-select" }, !this.dropdownType && this.label && (hAsync("label", { key: 'c0b59763dc3529d7f9bb5597a2bea0d38070a07b', class: { 'disabled-label': this.disabled } }, this.label, this.showObligatory && !this.disabled && hAsync("span", { key: '6c8a47bdfc216231ba72420298b3bc8deeeae435', class: "asterisk" }, " *"))), hAsync("div", { key: '8ec45010af1252effe34bb69d3f40ea277459511', class: "dropdown-container" }, this.dropdownType && this.label && (hAsync("div", { key: 'b3f7f9adacd57b091baac662fc7be6fcd847c3a4', class: "left-label" }, this.label)), this.renderTrigger()), this.textHelper && !this.hasError && (hAsync("div", { key: 'a4cce833b50b2bc62cb7142da420f81c0647e97e', class: "select-helper" }, hAsync("span", { key: 'f69375abc2f66b5b1278895b8f313adabfa0f938' }, this.textHelper))), this.hasError && this.errorText && (hAsync("div", { key: '6681bdbb705633d393adab09a889f3f1fb6fbe8a', class: "select-helper-error" }, hAsync("dropi-icon", { key: '09521eeef2cf2a58cb74bea5bfae8a6d58d17682', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" }), hAsync("span", { key: '807820bb0a474079627bf12c20f4a034896785cd' }, this.errorText))), this.renderDropdown()));
|
|
10959
11112
|
}
|
|
10960
11113
|
static get formAssociated() { return true; }
|
|
10961
11114
|
static get watchers() { return {
|
|
@@ -10980,7 +11133,7 @@ class DropiSelect {
|
|
|
10980
11133
|
"label": [1025],
|
|
10981
11134
|
"placeholder": [1025],
|
|
10982
11135
|
"options": [1040],
|
|
10983
|
-
"name": [
|
|
11136
|
+
"name": [513],
|
|
10984
11137
|
"disabled": [516],
|
|
10985
11138
|
"hasError": [1028, "has-error"],
|
|
10986
11139
|
"errorText": [1025, "error-text"],
|
|
@@ -11011,7 +11164,7 @@ class DropiSelect {
|
|
|
11011
11164
|
},
|
|
11012
11165
|
"$listeners$": [[11, "scroll", "handleWindowScroll"], [9, "resize", "handleWindowResize"], [4, "click", "handleOutsideClick"]],
|
|
11013
11166
|
"$lazyBundleId$": "-",
|
|
11014
|
-
"$attrsToReflect$": [["disabled", "disabled"]]
|
|
11167
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"]]
|
|
11015
11168
|
}; }
|
|
11016
11169
|
}
|
|
11017
11170
|
|
|
@@ -11317,33 +11470,55 @@ class DropiSwitch {
|
|
|
11317
11470
|
constructor(hostRef) {
|
|
11318
11471
|
registerInstance(this, hostRef);
|
|
11319
11472
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
11473
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
11474
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
11475
|
+
}
|
|
11476
|
+
else {
|
|
11477
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
11478
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
11479
|
+
}
|
|
11320
11480
|
}
|
|
11481
|
+
internals;
|
|
11482
|
+
/** Name for native form submission */
|
|
11483
|
+
name = '';
|
|
11321
11484
|
/** Whether the switch is on */
|
|
11322
11485
|
isChecked = false;
|
|
11323
11486
|
/** Whether the switch is disabled */
|
|
11324
11487
|
disabled = false;
|
|
11325
11488
|
/** Emitted when the toggle state changes */
|
|
11326
11489
|
dropiChange;
|
|
11490
|
+
checkedChanged(val) {
|
|
11491
|
+
this.internals.setFormValue(val ? 'on' : null);
|
|
11492
|
+
}
|
|
11493
|
+
componentWillLoad() {
|
|
11494
|
+
this.internals.setFormValue(this.isChecked ? 'on' : null);
|
|
11495
|
+
}
|
|
11327
11496
|
onToggleChange(event) {
|
|
11328
11497
|
const input = event.target;
|
|
11329
11498
|
this.isChecked = input.checked;
|
|
11330
11499
|
this.dropiChange.emit(this.isChecked);
|
|
11331
11500
|
}
|
|
11332
11501
|
render() {
|
|
11333
|
-
return (hAsync("label", { key: '
|
|
11502
|
+
return (hAsync("label", { key: 'b3321fd96a1487210a920f5494708dc2eb05f10c', class: "toggle-switch" }, hAsync("input", { key: 'ee7cfecf443a1c839ce145ade18cc3ff15924816', type: "checkbox", checked: this.isChecked, disabled: this.disabled, onChange: (e) => this.onToggleChange(e) }), hAsync("span", { key: 'c0800bd9a7f52cf666b3e475265da223b852be9a', class: "slider" })));
|
|
11334
11503
|
}
|
|
11335
11504
|
static get formAssociated() { return true; }
|
|
11505
|
+
static get watchers() { return {
|
|
11506
|
+
"isChecked": [{
|
|
11507
|
+
"checkedChanged": 0
|
|
11508
|
+
}]
|
|
11509
|
+
}; }
|
|
11336
11510
|
static get style() { return dropiSwitchCss(); }
|
|
11337
11511
|
static get cmpMeta() { return {
|
|
11338
11512
|
"$flags$": 585,
|
|
11339
11513
|
"$tagName$": "dropi-switch",
|
|
11340
11514
|
"$members$": {
|
|
11515
|
+
"name": [513],
|
|
11341
11516
|
"isChecked": [1540, "is-checked"],
|
|
11342
11517
|
"disabled": [516]
|
|
11343
11518
|
},
|
|
11344
11519
|
"$listeners$": undefined,
|
|
11345
11520
|
"$lazyBundleId$": "-",
|
|
11346
|
-
"$attrsToReflect$": [["isChecked", "is-checked"], ["disabled", "disabled"]]
|
|
11521
|
+
"$attrsToReflect$": [["name", "name"], ["isChecked", "is-checked"], ["disabled", "disabled"]]
|
|
11347
11522
|
}; }
|
|
11348
11523
|
}
|
|
11349
11524
|
|
|
@@ -12001,10 +12176,10 @@ class DropiTextArea {
|
|
|
12001
12176
|
this.value = val;
|
|
12002
12177
|
this.internals.setFormValue(val);
|
|
12003
12178
|
this.dropiInput.emit(val);
|
|
12179
|
+
this.dropiChange.emit(val);
|
|
12004
12180
|
}
|
|
12005
12181
|
handleBlur() {
|
|
12006
12182
|
this.touched = true;
|
|
12007
|
-
this.dropiChange.emit(this.value);
|
|
12008
12183
|
this.dropiBlur.emit();
|
|
12009
12184
|
}
|
|
12010
12185
|
get resolvedId() {
|
|
@@ -12019,12 +12194,12 @@ class DropiTextArea {
|
|
|
12019
12194
|
render() {
|
|
12020
12195
|
const showAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
12021
12196
|
const showHelper = this.textHelper || this.isInvalid;
|
|
12022
|
-
return (hAsync("div", { key: '
|
|
12197
|
+
return (hAsync("div", { key: '8c25826a54d1f0bec06d8f70211d2bcd873d59a6', class: "textarea-wrapper" }, this.label && (hAsync("label", { key: '58a578753a1248b185d2763aedf50eaaa152c791', htmlFor: this.resolvedId, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : 'var(--Gray-Gray-600)' } }, this.label, showAsterisk && hAsync("span", { key: 'cf31923103a7594f552df4ec86885f78d0c31779', class: "asterisk" }, " *"))), hAsync("div", { key: '6ea60b6286fd4438389cfda0580379d8fe013adc', class: "textarea-container" }, hAsync("textarea", { key: 'fc5e495d80bfd665e55480668b9fa7ed62651984', id: this.resolvedId, class: {
|
|
12023
12198
|
'form-control': true,
|
|
12024
12199
|
'Body-M-Regular': true,
|
|
12025
12200
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
12026
12201
|
'form-control-invalid': this.isInvalid,
|
|
12027
|
-
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (hAsync("div", { key: '
|
|
12202
|
+
}, rows: this.rows, placeholder: this.placeholder, maxLength: this.maxLength, minLength: this.minLength, disabled: this.disabled, required: this.required, style: { resize: this.resize }, onInput: (e) => this.handleInput(e), onFocus: () => this.dropiFocus.emit(), onBlur: () => this.handleBlur() }, this.value), this.maxLength > 0 && (hAsync("div", { key: '07c350ce7a2e56b466229450645e6faece3d284b', class: "char-counter" }, this.charCount, "/", this.maxLength))), showHelper && (hAsync("div", { key: 'c9fbd9a21b7e26fbd9571fc524b6f706404145d3', class: "form-control-helper" }, this.isInvalid && (hAsync("dropi-icon", { key: '8fc6e34849f9e3175097597280a3bea9defb6bb0', name: "Warning-circle", iconWidth: "12px", iconHeight: "12px", color: "Error-Error-500" })), hAsync("span", { key: '68bf62627efb3de92afe54f7803e322f5a0462e4', class: { 'invalid-color': this.isInvalid }, style: { color: this.disabled ? 'var(--Gray-Gray-400)' : undefined } }, this.textHelper)))));
|
|
12028
12203
|
}
|
|
12029
12204
|
static get formAssociated() { return true; }
|
|
12030
12205
|
static get watchers() { return {
|
|
@@ -12041,7 +12216,7 @@ class DropiTextArea {
|
|
|
12041
12216
|
"$tagName$": "dropi-text-area",
|
|
12042
12217
|
"$members$": {
|
|
12043
12218
|
"id": [1025],
|
|
12044
|
-
"name": [
|
|
12219
|
+
"name": [513],
|
|
12045
12220
|
"label": [1025],
|
|
12046
12221
|
"placeholder": [1025],
|
|
12047
12222
|
"value": [1025],
|
|
@@ -12059,7 +12234,7 @@ class DropiTextArea {
|
|
|
12059
12234
|
},
|
|
12060
12235
|
"$listeners$": undefined,
|
|
12061
12236
|
"$lazyBundleId$": "-",
|
|
12062
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["required", "required"]]
|
|
12237
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
|
|
12063
12238
|
}; }
|
|
12064
12239
|
}
|
|
12065
12240
|
|