@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.mjs
CHANGED
|
@@ -6015,7 +6015,15 @@ class DropiButton {
|
|
|
6015
6015
|
constructor(hostRef) {
|
|
6016
6016
|
registerInstance(this, hostRef);
|
|
6017
6017
|
this.dropiClick = createEvent(this, "dropiClick");
|
|
6018
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
6019
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
6020
|
+
}
|
|
6021
|
+
else {
|
|
6022
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
6023
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
6024
|
+
}
|
|
6018
6025
|
}
|
|
6026
|
+
internals;
|
|
6019
6027
|
/** Visual color palette */
|
|
6020
6028
|
type = 'default';
|
|
6021
6029
|
/** Primary (filled) | Secondary (outlined) | Tertiary (ghost) */
|
|
@@ -6034,6 +6042,8 @@ class DropiButton {
|
|
|
6034
6042
|
customIconColor = '';
|
|
6035
6043
|
/** Button label */
|
|
6036
6044
|
text = '';
|
|
6045
|
+
/** Native HTML button type (submit, reset, button) */
|
|
6046
|
+
nativeType = 'button';
|
|
6037
6047
|
/** Emitted on click (not emitted when disabled or loading) */
|
|
6038
6048
|
dropiClick;
|
|
6039
6049
|
colorMap = {
|
|
@@ -6068,6 +6078,12 @@ class DropiButton {
|
|
|
6068
6078
|
handleClick(e) {
|
|
6069
6079
|
if (this.state !== 'disabled' && this.state !== 'loading') {
|
|
6070
6080
|
this.dropiClick.emit(e);
|
|
6081
|
+
if (this.nativeType === 'submit') {
|
|
6082
|
+
this.internals.form?.requestSubmit();
|
|
6083
|
+
}
|
|
6084
|
+
else if (this.nativeType === 'reset') {
|
|
6085
|
+
this.internals.form?.reset();
|
|
6086
|
+
}
|
|
6071
6087
|
}
|
|
6072
6088
|
}
|
|
6073
6089
|
renderLoadingSpinner() {
|
|
@@ -6078,7 +6094,7 @@ class DropiButton {
|
|
|
6078
6094
|
const hasText = (this.text ?? '') !== '';
|
|
6079
6095
|
const showPostIcon = (this.postIcon ?? '') !== '' || (this.type ?? 'default') === 'dropdown';
|
|
6080
6096
|
const dropdownIcon = (this.type ?? 'default') === 'dropdown' ? 'Dropdown-down' : (this.postIcon ?? '');
|
|
6081
|
-
return (hAsync("button", { key: '
|
|
6097
|
+
return (hAsync("button", { key: '21d2654de08dff8db6c2b1ba87594e1184a7aa35', class: {
|
|
6082
6098
|
btn: true,
|
|
6083
6099
|
'without-text': !hasText,
|
|
6084
6100
|
[this.severity ?? 'primary']: true,
|
|
@@ -6086,11 +6102,12 @@ class DropiButton {
|
|
|
6086
6102
|
[this.size ?? 'normal']: true,
|
|
6087
6103
|
[this.state ?? 'default']: true,
|
|
6088
6104
|
'full-width': this.fullWidth,
|
|
6089
|
-
}, disabled: isDisabled, onClick: (e) => this.handleClick(e) }, this.preIcon && (hAsync("dropi-icon", { key: '
|
|
6105
|
+
}, 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' })));
|
|
6090
6106
|
}
|
|
6107
|
+
static get formAssociated() { return true; }
|
|
6091
6108
|
static get style() { return dropiButtonCss(); }
|
|
6092
6109
|
static get cmpMeta() { return {
|
|
6093
|
-
"$flags$":
|
|
6110
|
+
"$flags$": 841,
|
|
6094
6111
|
"$tagName$": "dropi-button",
|
|
6095
6112
|
"$members$": {
|
|
6096
6113
|
"type": [1],
|
|
@@ -6101,7 +6118,8 @@ class DropiButton {
|
|
|
6101
6118
|
"preIcon": [1, "pre-icon"],
|
|
6102
6119
|
"postIcon": [1, "post-icon"],
|
|
6103
6120
|
"customIconColor": [1, "custom-icon-color"],
|
|
6104
|
-
"text": [1]
|
|
6121
|
+
"text": [1],
|
|
6122
|
+
"nativeType": [1, "native-type"]
|
|
6105
6123
|
},
|
|
6106
6124
|
"$listeners$": undefined,
|
|
6107
6125
|
"$lazyBundleId$": "-",
|
|
@@ -6510,13 +6528,29 @@ class DropiCheckbox {
|
|
|
6510
6528
|
constructor(hostRef) {
|
|
6511
6529
|
registerInstance(this, hostRef);
|
|
6512
6530
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
6531
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
6532
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
6533
|
+
}
|
|
6534
|
+
else {
|
|
6535
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
6536
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
6537
|
+
}
|
|
6513
6538
|
}
|
|
6539
|
+
internals;
|
|
6540
|
+
/** Name for native form submission */
|
|
6541
|
+
name = '';
|
|
6514
6542
|
/** Whether the checkbox is checked */
|
|
6515
6543
|
checked = false;
|
|
6516
6544
|
/** Whether the checkbox is disabled */
|
|
6517
6545
|
disabled = false;
|
|
6518
6546
|
/** Emitted when the checked state changes */
|
|
6519
6547
|
dropiChange;
|
|
6548
|
+
checkedChanged(val) {
|
|
6549
|
+
this.internals.setFormValue(val ? 'on' : null);
|
|
6550
|
+
}
|
|
6551
|
+
componentWillLoad() {
|
|
6552
|
+
this.internals.setFormValue(this.checked ? 'on' : null);
|
|
6553
|
+
}
|
|
6520
6554
|
changeState() {
|
|
6521
6555
|
if (this.disabled)
|
|
6522
6556
|
return;
|
|
@@ -6524,25 +6558,31 @@ class DropiCheckbox {
|
|
|
6524
6558
|
this.dropiChange.emit(this.checked);
|
|
6525
6559
|
}
|
|
6526
6560
|
render() {
|
|
6527
|
-
return (hAsync("div", { key: '
|
|
6561
|
+
return (hAsync("div", { key: '27fec5f03a48c19652c8ae01173dcbb6e3514693', class: "container-dropi-checkbox", onClick: () => this.changeState() }, hAsync("div", { key: '243d07e4444c0dc149ff137258f9ddd58428c438', class: {
|
|
6528
6562
|
check: true,
|
|
6529
6563
|
isCheck: this.checked,
|
|
6530
6564
|
noCheck: !this.checked,
|
|
6531
6565
|
disabled: this.disabled,
|
|
6532
|
-
} }, hAsync("svg", { key: '
|
|
6566
|
+
} }, 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" })))));
|
|
6533
6567
|
}
|
|
6534
6568
|
static get formAssociated() { return true; }
|
|
6569
|
+
static get watchers() { return {
|
|
6570
|
+
"checked": [{
|
|
6571
|
+
"checkedChanged": 0
|
|
6572
|
+
}]
|
|
6573
|
+
}; }
|
|
6535
6574
|
static get style() { return dropiCheckboxCss(); }
|
|
6536
6575
|
static get cmpMeta() { return {
|
|
6537
6576
|
"$flags$": 585,
|
|
6538
6577
|
"$tagName$": "dropi-checkbox",
|
|
6539
6578
|
"$members$": {
|
|
6579
|
+
"name": [513],
|
|
6540
6580
|
"checked": [1540],
|
|
6541
6581
|
"disabled": [516]
|
|
6542
6582
|
},
|
|
6543
6583
|
"$listeners$": undefined,
|
|
6544
6584
|
"$lazyBundleId$": "-",
|
|
6545
|
-
"$attrsToReflect$": [["checked", "checked"], ["disabled", "disabled"]]
|
|
6585
|
+
"$attrsToReflect$": [["name", "name"], ["checked", "checked"], ["disabled", "disabled"]]
|
|
6546
6586
|
}; }
|
|
6547
6587
|
}
|
|
6548
6588
|
|
|
@@ -7324,7 +7364,17 @@ class DropiCountrySelector {
|
|
|
7324
7364
|
constructor(hostRef) {
|
|
7325
7365
|
registerInstance(this, hostRef);
|
|
7326
7366
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
7367
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
7368
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
7369
|
+
}
|
|
7370
|
+
else {
|
|
7371
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
7372
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7373
|
+
}
|
|
7327
7374
|
}
|
|
7375
|
+
internals;
|
|
7376
|
+
/** Name for native form submission */
|
|
7377
|
+
name = '';
|
|
7328
7378
|
/** Label above the select */
|
|
7329
7379
|
label = '';
|
|
7330
7380
|
/** Placeholder when nothing is selected */
|
|
@@ -7369,6 +7419,7 @@ class DropiCountrySelector {
|
|
|
7369
7419
|
searchInputRef;
|
|
7370
7420
|
currentSelectionChanged(val) {
|
|
7371
7421
|
this.selected = COUNTRIES$1.find(c => c.code === val) || null;
|
|
7422
|
+
this.internals.setFormValue(val);
|
|
7372
7423
|
}
|
|
7373
7424
|
selectPropertiesChanged(val) {
|
|
7374
7425
|
if (!val)
|
|
@@ -7389,6 +7440,7 @@ class DropiCountrySelector {
|
|
|
7389
7440
|
this.selectPropertiesChanged(this.selectProperties);
|
|
7390
7441
|
if (this.currentSelection)
|
|
7391
7442
|
this.currentSelectionChanged(this.currentSelection);
|
|
7443
|
+
this.internals.setFormValue(this.currentSelection ?? '');
|
|
7392
7444
|
}
|
|
7393
7445
|
componentDidLoad() {
|
|
7394
7446
|
if (this.appendTo !== 'body')
|
|
@@ -7461,12 +7513,13 @@ class DropiCountrySelector {
|
|
|
7461
7513
|
this.dropiChange.emit(country);
|
|
7462
7514
|
}
|
|
7463
7515
|
render() {
|
|
7464
|
-
return (hAsync("div", { key: '
|
|
7516
|
+
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: {
|
|
7465
7517
|
'select-button': true,
|
|
7466
7518
|
'select-completed': !!this.selected,
|
|
7467
7519
|
'select-invalid': this.hasError,
|
|
7468
|
-
}, disabled: this.disabled, onClick: () => this.open() }, hAsync("div", { key: '
|
|
7520
|
+
}, 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)))));
|
|
7469
7521
|
}
|
|
7522
|
+
static get formAssociated() { return true; }
|
|
7470
7523
|
static get watchers() { return {
|
|
7471
7524
|
"currentSelection": [{
|
|
7472
7525
|
"currentSelectionChanged": 0
|
|
@@ -7477,9 +7530,10 @@ class DropiCountrySelector {
|
|
|
7477
7530
|
}; }
|
|
7478
7531
|
static get style() { return dropiCountrySelectorCss(); }
|
|
7479
7532
|
static get cmpMeta() { return {
|
|
7480
|
-
"$flags$":
|
|
7533
|
+
"$flags$": 585,
|
|
7481
7534
|
"$tagName$": "dropi-country-selector",
|
|
7482
7535
|
"$members$": {
|
|
7536
|
+
"name": [513],
|
|
7483
7537
|
"label": [1],
|
|
7484
7538
|
"placeholder": [1],
|
|
7485
7539
|
"currentSelection": [1025, "current-selection"],
|
|
@@ -7495,7 +7549,7 @@ class DropiCountrySelector {
|
|
|
7495
7549
|
},
|
|
7496
7550
|
"$listeners$": [[4, "click", "handleDocClick"]],
|
|
7497
7551
|
"$lazyBundleId$": "-",
|
|
7498
|
-
"$attrsToReflect$": []
|
|
7552
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
7499
7553
|
}; }
|
|
7500
7554
|
}
|
|
7501
7555
|
|
|
@@ -7517,13 +7571,26 @@ class DropiDatePicker {
|
|
|
7517
7571
|
this.dropiChangeDate = createEvent(this, "dropiChangeDate");
|
|
7518
7572
|
this.dropiClosePanel = createEvent(this, "dropiClosePanel");
|
|
7519
7573
|
this.dropiRangeChange = createEvent(this, "dropiRangeChange");
|
|
7574
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
7575
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
7576
|
+
}
|
|
7577
|
+
else {
|
|
7578
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
7579
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
7580
|
+
}
|
|
7520
7581
|
}
|
|
7582
|
+
internals;
|
|
7583
|
+
/** Name for native form submission */
|
|
7584
|
+
name = '';
|
|
7521
7585
|
/** Selected date (ISO string, single mode) - matches Angular 'selectedDate' */
|
|
7522
7586
|
selectedDate = '';
|
|
7523
7587
|
/** Range start date (ISO string, range mode) */
|
|
7524
7588
|
startDate = '';
|
|
7525
7589
|
/** Range end date (ISO string, range mode) */
|
|
7526
7590
|
endDate = '';
|
|
7591
|
+
valueChanged() {
|
|
7592
|
+
this.updateFormValue();
|
|
7593
|
+
}
|
|
7527
7594
|
/** Enable range selection - matches Angular selectionMode */
|
|
7528
7595
|
selectionMode = 'single';
|
|
7529
7596
|
/** Min selectable date (ISO string) */
|
|
@@ -7556,6 +7623,17 @@ class DropiDatePicker {
|
|
|
7556
7623
|
dropiClosePanel;
|
|
7557
7624
|
/** Emitted when range selected */
|
|
7558
7625
|
dropiRangeChange;
|
|
7626
|
+
componentWillLoad() {
|
|
7627
|
+
this.updateFormValue();
|
|
7628
|
+
}
|
|
7629
|
+
updateFormValue() {
|
|
7630
|
+
if (this.selectionMode === 'range') {
|
|
7631
|
+
this.internals.setFormValue(this.startDate && this.endDate ? `${this.startDate},${this.endDate}` : '');
|
|
7632
|
+
}
|
|
7633
|
+
else {
|
|
7634
|
+
this.internals.setFormValue(this.selectedDate || '');
|
|
7635
|
+
}
|
|
7636
|
+
}
|
|
7559
7637
|
get displayValue() {
|
|
7560
7638
|
if (this.selectionMode === 'range') {
|
|
7561
7639
|
if (this.startDate && this.endDate)
|
|
@@ -7675,12 +7753,12 @@ class DropiDatePicker {
|
|
|
7675
7753
|
render() {
|
|
7676
7754
|
const days = this.buildDays();
|
|
7677
7755
|
const today = new Date().toISOString().slice(0, 10);
|
|
7678
|
-
return (hAsync("div", { key: '
|
|
7756
|
+
return (hAsync("div", { key: '97a96b56b0e8ae551f747bad4a3459a1f4945411', class: "dp-wrap" }, this.label && hAsync("label", { key: 'a1792032ab9ae2dbe574f50b7a537df687eae40c', class: "dp-label" }, this.label), hAsync("button", { key: '4237c2b988f1e9fbaa77dc2a989964216e3fe902', class: {
|
|
7679
7757
|
'dp-trigger': true,
|
|
7680
7758
|
'dp-trigger--disabled': this.disabled,
|
|
7681
7759
|
'dp-trigger--invalid': this.isInvalid,
|
|
7682
7760
|
'dp-trigger--loading': this.loading
|
|
7683
|
-
}, onClick: () => this.open ? this.open = false : this.open_(), disabled: this.disabled || this.loading, type: "button" }, hAsync("dropi-icon", { key: '
|
|
7761
|
+
}, 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 }) => {
|
|
7684
7762
|
const isSelected = this.selectionMode !== 'range'
|
|
7685
7763
|
? iso === this.selectedDate
|
|
7686
7764
|
: iso === this.startDate || iso === this.endDate;
|
|
@@ -7702,12 +7780,12 @@ class DropiDatePicker {
|
|
|
7702
7780
|
if (this.selectionMode === 'range' && this.startDate && !this.endDate)
|
|
7703
7781
|
this.hoverDate = iso;
|
|
7704
7782
|
}, onMouseLeave: () => this.hoverDate = '' }, day));
|
|
7705
|
-
})), hAsync("div", { key: '
|
|
7783
|
+
})), hAsync("div", { key: '594f280cb269c32ac3a129401e13b710af1a7c7e', class: "dp-footer" }, hAsync("button", { key: '6028ef84bc17f0d1bb0fd587a991698a8fc69338', class: "dp-footer__clear", type: "button", onClick: () => {
|
|
7706
7784
|
this.selectedDate = '';
|
|
7707
7785
|
this.startDate = '';
|
|
7708
7786
|
this.endDate = '';
|
|
7709
7787
|
this.open = false;
|
|
7710
|
-
} }, "Limpiar"), hAsync("button", { key: '
|
|
7788
|
+
} }, "Limpiar"), hAsync("button", { key: 'ab01840a18d657621205d4fba69cc53feb474d11', class: "dp-footer__today", type: "button", onClick: () => {
|
|
7711
7789
|
if (this.selectionMode !== 'range') {
|
|
7712
7790
|
this.selectedDate = today;
|
|
7713
7791
|
this.open = false;
|
|
@@ -7719,11 +7797,24 @@ class DropiDatePicker {
|
|
|
7719
7797
|
}
|
|
7720
7798
|
} }, "Hoy"))))));
|
|
7721
7799
|
}
|
|
7800
|
+
static get formAssociated() { return true; }
|
|
7801
|
+
static get watchers() { return {
|
|
7802
|
+
"selectedDate": [{
|
|
7803
|
+
"valueChanged": 0
|
|
7804
|
+
}],
|
|
7805
|
+
"startDate": [{
|
|
7806
|
+
"valueChanged": 0
|
|
7807
|
+
}],
|
|
7808
|
+
"endDate": [{
|
|
7809
|
+
"valueChanged": 0
|
|
7810
|
+
}]
|
|
7811
|
+
}; }
|
|
7722
7812
|
static get style() { return dropiDatePickerCss(); }
|
|
7723
7813
|
static get cmpMeta() { return {
|
|
7724
|
-
"$flags$":
|
|
7814
|
+
"$flags$": 585,
|
|
7725
7815
|
"$tagName$": "dropi-date-picker",
|
|
7726
7816
|
"$members$": {
|
|
7817
|
+
"name": [513],
|
|
7727
7818
|
"selectedDate": [1025, "selected-date"],
|
|
7728
7819
|
"startDate": [1025, "start-date"],
|
|
7729
7820
|
"endDate": [1025, "end-date"],
|
|
@@ -7742,7 +7833,7 @@ class DropiDatePicker {
|
|
|
7742
7833
|
},
|
|
7743
7834
|
"$listeners$": [[4, "click", "handleDocClick"]],
|
|
7744
7835
|
"$lazyBundleId$": "-",
|
|
7745
|
-
"$attrsToReflect$": []
|
|
7836
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
7746
7837
|
}; }
|
|
7747
7838
|
}
|
|
7748
7839
|
|
|
@@ -8953,6 +9044,7 @@ class DropiInput {
|
|
|
8953
9044
|
this.value = val;
|
|
8954
9045
|
this.internals.setFormValue(val);
|
|
8955
9046
|
this.dropiInput.emit(val);
|
|
9047
|
+
this.dropiChange.emit(val);
|
|
8956
9048
|
}
|
|
8957
9049
|
handleKeyDown(e) {
|
|
8958
9050
|
if ((this.isNumericInput || this.isMoneyInput || this.isThousandSeparator) && !this.isAllowedNumberKey(e)) {
|
|
@@ -8967,7 +9059,6 @@ class DropiInput {
|
|
|
8967
9059
|
}
|
|
8968
9060
|
handleBlur() {
|
|
8969
9061
|
this.touched = true;
|
|
8970
|
-
this.dropiChange.emit(this.value);
|
|
8971
9062
|
this.dropiBlur.emit();
|
|
8972
9063
|
}
|
|
8973
9064
|
togglePassword() {
|
|
@@ -9033,14 +9124,14 @@ class DropiInput {
|
|
|
9033
9124
|
render() {
|
|
9034
9125
|
const showObligatoryAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
9035
9126
|
const showIconInline = !!this.icon;
|
|
9036
|
-
return (hAsync("div", { key: '
|
|
9127
|
+
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: {
|
|
9037
9128
|
'form-control': true,
|
|
9038
9129
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
9039
9130
|
'form-control-invalid': this.isInvalid,
|
|
9040
9131
|
'padding-icon': showIconInline,
|
|
9041
9132
|
'text-password': this.passwordInput && !this.showPassword,
|
|
9042
9133
|
'fixed-label-input': this.fixedLabel,
|
|
9043
|
-
}, 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: '
|
|
9134
|
+
}, 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: {
|
|
9044
9135
|
'disabled-helper': this.disabled,
|
|
9045
9136
|
'invalid-color': this.isInvalid,
|
|
9046
9137
|
} }, this.textHelper)))))));
|
|
@@ -9063,7 +9154,7 @@ class DropiInput {
|
|
|
9063
9154
|
"$tagName$": "dropi-input",
|
|
9064
9155
|
"$members$": {
|
|
9065
9156
|
"inputId": [1025, "input-id"],
|
|
9066
|
-
"name": [
|
|
9157
|
+
"name": [513],
|
|
9067
9158
|
"label": [1025],
|
|
9068
9159
|
"placeholder": [1025],
|
|
9069
9160
|
"value": [1025],
|
|
@@ -9090,7 +9181,7 @@ class DropiInput {
|
|
|
9090
9181
|
},
|
|
9091
9182
|
"$listeners$": undefined,
|
|
9092
9183
|
"$lazyBundleId$": "-",
|
|
9093
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["required", "required"]]
|
|
9184
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
|
|
9094
9185
|
}; }
|
|
9095
9186
|
}
|
|
9096
9187
|
|
|
@@ -9736,7 +9827,17 @@ class DropiOtpSendCode {
|
|
|
9736
9827
|
this.codeCompleted = createEvent(this, "codeCompleted");
|
|
9737
9828
|
this.codeAccepted = createEvent(this, "codeAccepted");
|
|
9738
9829
|
this.dropiResend = createEvent(this, "dropiResend");
|
|
9830
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
9831
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
9832
|
+
}
|
|
9833
|
+
else {
|
|
9834
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
9835
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
9836
|
+
}
|
|
9739
9837
|
}
|
|
9838
|
+
internals;
|
|
9839
|
+
/** Name for native form submission */
|
|
9840
|
+
name = '';
|
|
9740
9841
|
/** Delivery method label */
|
|
9741
9842
|
engine = 'email';
|
|
9742
9843
|
/** Contact info (email/phone to show in label) */
|
|
@@ -9768,6 +9869,7 @@ class DropiOtpSendCode {
|
|
|
9768
9869
|
componentWillLoad() {
|
|
9769
9870
|
this.digits = Array(this.digitsCount).fill('');
|
|
9770
9871
|
this.digitStates = Array(this.digitsCount).fill('idle');
|
|
9872
|
+
this.internals.setFormValue('');
|
|
9771
9873
|
}
|
|
9772
9874
|
componentDidLoad() { this.startCountdown(); }
|
|
9773
9875
|
disconnectedCallback() { clearInterval(this.timer); }
|
|
@@ -9795,9 +9897,13 @@ class DropiOtpSendCode {
|
|
|
9795
9897
|
this.inputs[index + 1]?.focus();
|
|
9796
9898
|
if (newDigits.every(d => d !== '')) {
|
|
9797
9899
|
const finalCode = newDigits.join('');
|
|
9900
|
+
this.internals.setFormValue(finalCode);
|
|
9798
9901
|
this.codeCompleted.emit(finalCode);
|
|
9799
9902
|
this.codeAccepted.emit(finalCode);
|
|
9800
9903
|
}
|
|
9904
|
+
else {
|
|
9905
|
+
this.internals.setFormValue(newDigits.join(''));
|
|
9906
|
+
}
|
|
9801
9907
|
}
|
|
9802
9908
|
handleKeyDown(e, index) {
|
|
9803
9909
|
if (e.key === 'Backspace' && !this.digits[index] && index > 0) {
|
|
@@ -9814,21 +9920,26 @@ class DropiOtpSendCode {
|
|
|
9814
9920
|
this.inputs[Math.min(text.length, this.digitsCount - 1)]?.focus();
|
|
9815
9921
|
if (newDigits.every(d => d !== '')) {
|
|
9816
9922
|
const finalCode = newDigits.join('');
|
|
9923
|
+
this.internals.setFormValue(finalCode);
|
|
9817
9924
|
this.codeCompleted.emit(finalCode);
|
|
9818
9925
|
this.codeAccepted.emit(finalCode);
|
|
9819
9926
|
}
|
|
9927
|
+
else {
|
|
9928
|
+
this.internals.setFormValue(newDigits.join(''));
|
|
9929
|
+
}
|
|
9820
9930
|
}
|
|
9821
9931
|
render() {
|
|
9822
9932
|
const engineLabel = this.engine === 'sms' ? 'SMS' : this.engine === '2fa' ? 'autenticador' : 'correo';
|
|
9823
|
-
return (hAsync("div", { key: '
|
|
9933
|
+
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) => {
|
|
9824
9934
|
if (el)
|
|
9825
9935
|
this.inputs[i] = el;
|
|
9826
9936
|
}, class: {
|
|
9827
9937
|
'otp__digit': true,
|
|
9828
9938
|
'otp__digit--filled': this.digitStates[i] === 'filled',
|
|
9829
9939
|
'otp__digit--error': this.error,
|
|
9830
|
-
}, 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: '
|
|
9940
|
+
}, 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")))));
|
|
9831
9941
|
}
|
|
9942
|
+
static get formAssociated() { return true; }
|
|
9832
9943
|
static get watchers() { return {
|
|
9833
9944
|
"digitsCount": [{
|
|
9834
9945
|
"handleDigitsCountChange": 0
|
|
@@ -9836,9 +9947,10 @@ class DropiOtpSendCode {
|
|
|
9836
9947
|
}; }
|
|
9837
9948
|
static get style() { return dropiOtpSendCodeCss(); }
|
|
9838
9949
|
static get cmpMeta() { return {
|
|
9839
|
-
"$flags$":
|
|
9950
|
+
"$flags$": 585,
|
|
9840
9951
|
"$tagName$": "dropi-otp-send-code",
|
|
9841
9952
|
"$members$": {
|
|
9953
|
+
"name": [513],
|
|
9842
9954
|
"engine": [1],
|
|
9843
9955
|
"labelContact": [1, "label-contact"],
|
|
9844
9956
|
"showLabelContact": [4, "show-label-contact"],
|
|
@@ -9852,7 +9964,7 @@ class DropiOtpSendCode {
|
|
|
9852
9964
|
},
|
|
9853
9965
|
"$listeners$": undefined,
|
|
9854
9966
|
"$lazyBundleId$": "-",
|
|
9855
|
-
"$attrsToReflect$": []
|
|
9967
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
9856
9968
|
}; }
|
|
9857
9969
|
}
|
|
9858
9970
|
|
|
@@ -10047,8 +10159,18 @@ class DropiPhoneInput {
|
|
|
10047
10159
|
this.dropiPhoneChange = createEvent(this, "dropiPhoneChange");
|
|
10048
10160
|
this.dropiVerify = createEvent(this, "dropiVerify");
|
|
10049
10161
|
this.dropiChangeSelect = createEvent(this, "dropiChangeSelect");
|
|
10162
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
10163
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
10164
|
+
}
|
|
10165
|
+
else {
|
|
10166
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
10167
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
10168
|
+
}
|
|
10050
10169
|
}
|
|
10051
10170
|
get el() { return getElement(this); }
|
|
10171
|
+
internals;
|
|
10172
|
+
/** Name for native form submission */
|
|
10173
|
+
name = '';
|
|
10052
10174
|
/** Initial country dial code (e.g. "57") — matches Angular 'CodArea' setter */
|
|
10053
10175
|
codArea = '57';
|
|
10054
10176
|
/** Phone number value — matches Angular 'ngModelPhone' */
|
|
@@ -10083,6 +10205,10 @@ class DropiPhoneInput {
|
|
|
10083
10205
|
dropiChangeSelect;
|
|
10084
10206
|
codAreaChanged() {
|
|
10085
10207
|
this.ngModelPhone = '';
|
|
10208
|
+
this.updateFormValue();
|
|
10209
|
+
}
|
|
10210
|
+
ngModelPhoneChanged() {
|
|
10211
|
+
this.updateFormValue();
|
|
10086
10212
|
}
|
|
10087
10213
|
selectedOptionChanged(val) {
|
|
10088
10214
|
if (!val)
|
|
@@ -10094,6 +10220,11 @@ class DropiPhoneInput {
|
|
|
10094
10220
|
componentWillLoad() {
|
|
10095
10221
|
if (this.selectedOption)
|
|
10096
10222
|
this.selectedOptionChanged(this.selectedOption);
|
|
10223
|
+
this.updateFormValue();
|
|
10224
|
+
}
|
|
10225
|
+
updateFormValue() {
|
|
10226
|
+
const fullValue = this.ngModelPhone ? `+${this.codArea}${this.ngModelPhone}` : '';
|
|
10227
|
+
this.internals.setFormValue(fullValue);
|
|
10097
10228
|
}
|
|
10098
10229
|
get selectedCountry() {
|
|
10099
10230
|
const cleanCodArea = (this.codArea ?? '57').replace('+', '');
|
|
@@ -10120,24 +10251,29 @@ class DropiPhoneInput {
|
|
|
10120
10251
|
render() {
|
|
10121
10252
|
const country = this.selectedCountry;
|
|
10122
10253
|
const isInvalid = this.isValidPhone === false;
|
|
10123
|
-
return (hAsync("div", { key: '
|
|
10254
|
+
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: () => {
|
|
10124
10255
|
if (!this.disabledInput)
|
|
10125
10256
|
this.open = !this.open;
|
|
10126
|
-
} }, hAsync("span", { key: '
|
|
10257
|
+
} }, 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) }))));
|
|
10127
10258
|
}
|
|
10259
|
+
static get formAssociated() { return true; }
|
|
10128
10260
|
static get watchers() { return {
|
|
10129
10261
|
"codArea": [{
|
|
10130
10262
|
"codAreaChanged": 0
|
|
10131
10263
|
}],
|
|
10264
|
+
"ngModelPhone": [{
|
|
10265
|
+
"ngModelPhoneChanged": 0
|
|
10266
|
+
}],
|
|
10132
10267
|
"selectedOption": [{
|
|
10133
10268
|
"selectedOptionChanged": 0
|
|
10134
10269
|
}]
|
|
10135
10270
|
}; }
|
|
10136
10271
|
static get style() { return dropiPhoneInputCss(); }
|
|
10137
10272
|
static get cmpMeta() { return {
|
|
10138
|
-
"$flags$":
|
|
10273
|
+
"$flags$": 585,
|
|
10139
10274
|
"$tagName$": "dropi-phone-input",
|
|
10140
10275
|
"$members$": {
|
|
10276
|
+
"name": [513],
|
|
10141
10277
|
"codArea": [1025, "cod-area"],
|
|
10142
10278
|
"ngModelPhone": [1025, "ng-model-phone"],
|
|
10143
10279
|
"phoneNumberPlaceholder": [1, "phone-number-placeholder"],
|
|
@@ -10150,7 +10286,7 @@ class DropiPhoneInput {
|
|
|
10150
10286
|
},
|
|
10151
10287
|
"$listeners$": [[8, "click", "handleWindowClick"]],
|
|
10152
10288
|
"$lazyBundleId$": "-",
|
|
10153
|
-
"$attrsToReflect$": []
|
|
10289
|
+
"$attrsToReflect$": [["name", "name"]]
|
|
10154
10290
|
}; }
|
|
10155
10291
|
}
|
|
10156
10292
|
|
|
@@ -10217,7 +10353,15 @@ class DropiRadioButton {
|
|
|
10217
10353
|
constructor(hostRef) {
|
|
10218
10354
|
registerInstance(this, hostRef);
|
|
10219
10355
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
10356
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
10357
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
10358
|
+
}
|
|
10359
|
+
else {
|
|
10360
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
10361
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
10362
|
+
}
|
|
10220
10363
|
}
|
|
10364
|
+
internals;
|
|
10221
10365
|
/** Label text displayed next to the radio */
|
|
10222
10366
|
label = '';
|
|
10223
10367
|
/** Input name (for grouping radio buttons) */
|
|
@@ -10237,17 +10381,26 @@ class DropiRadioButton {
|
|
|
10237
10381
|
if (val)
|
|
10238
10382
|
this.checked = false;
|
|
10239
10383
|
}
|
|
10384
|
+
checkedChanged(val) {
|
|
10385
|
+
this.internals.setFormValue(val ? 'on' : null);
|
|
10386
|
+
}
|
|
10387
|
+
componentWillLoad() {
|
|
10388
|
+
this.internals.setFormValue(this.checked ? 'on' : null);
|
|
10389
|
+
}
|
|
10240
10390
|
handleChange(e) {
|
|
10241
10391
|
this.checked = e.target.checked;
|
|
10242
10392
|
this.dropiChange.emit(e);
|
|
10243
10393
|
}
|
|
10244
10394
|
render() {
|
|
10245
|
-
return (hAsync("div", { key: '
|
|
10395
|
+
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)));
|
|
10246
10396
|
}
|
|
10247
10397
|
static get formAssociated() { return true; }
|
|
10248
10398
|
static get watchers() { return {
|
|
10249
10399
|
"resetTrigger": [{
|
|
10250
10400
|
"onResetTrigger": 0
|
|
10401
|
+
}],
|
|
10402
|
+
"checked": [{
|
|
10403
|
+
"checkedChanged": 0
|
|
10251
10404
|
}]
|
|
10252
10405
|
}; }
|
|
10253
10406
|
static get style() { return dropiRadioButtonCss(); }
|
|
@@ -10256,14 +10409,14 @@ class DropiRadioButton {
|
|
|
10256
10409
|
"$tagName$": "dropi-radio-button",
|
|
10257
10410
|
"$members$": {
|
|
10258
10411
|
"label": [1],
|
|
10259
|
-
"name": [
|
|
10412
|
+
"name": [513],
|
|
10260
10413
|
"id": [1],
|
|
10261
10414
|
"checked": [1540],
|
|
10262
10415
|
"resetTrigger": [4, "reset-trigger"]
|
|
10263
10416
|
},
|
|
10264
10417
|
"$listeners$": undefined,
|
|
10265
10418
|
"$lazyBundleId$": "-",
|
|
10266
|
-
"$attrsToReflect$": [["checked", "checked"]]
|
|
10419
|
+
"$attrsToReflect$": [["name", "name"], ["checked", "checked"]]
|
|
10267
10420
|
}; }
|
|
10268
10421
|
}
|
|
10269
10422
|
|
|
@@ -10953,7 +11106,7 @@ class DropiSelect {
|
|
|
10953
11106
|
]), !this.isGrouped && this.filteredOptions.map(opt => this.renderOption(opt)), this.filteredOptions.length === 0 && (hAsync("li", { class: "no-results" }, "Sin resultados"))));
|
|
10954
11107
|
}
|
|
10955
11108
|
render() {
|
|
10956
|
-
return (hAsync("div", { key: '
|
|
11109
|
+
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()));
|
|
10957
11110
|
}
|
|
10958
11111
|
static get formAssociated() { return true; }
|
|
10959
11112
|
static get watchers() { return {
|
|
@@ -10978,7 +11131,7 @@ class DropiSelect {
|
|
|
10978
11131
|
"label": [1025],
|
|
10979
11132
|
"placeholder": [1025],
|
|
10980
11133
|
"options": [1040],
|
|
10981
|
-
"name": [
|
|
11134
|
+
"name": [513],
|
|
10982
11135
|
"disabled": [516],
|
|
10983
11136
|
"hasError": [1028, "has-error"],
|
|
10984
11137
|
"errorText": [1025, "error-text"],
|
|
@@ -11009,7 +11162,7 @@ class DropiSelect {
|
|
|
11009
11162
|
},
|
|
11010
11163
|
"$listeners$": [[11, "scroll", "handleWindowScroll"], [9, "resize", "handleWindowResize"], [4, "click", "handleOutsideClick"]],
|
|
11011
11164
|
"$lazyBundleId$": "-",
|
|
11012
|
-
"$attrsToReflect$": [["disabled", "disabled"]]
|
|
11165
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"]]
|
|
11013
11166
|
}; }
|
|
11014
11167
|
}
|
|
11015
11168
|
|
|
@@ -11315,33 +11468,55 @@ class DropiSwitch {
|
|
|
11315
11468
|
constructor(hostRef) {
|
|
11316
11469
|
registerInstance(this, hostRef);
|
|
11317
11470
|
this.dropiChange = createEvent(this, "dropiChange");
|
|
11471
|
+
if (hostRef.$hostElement$["s-ei"]) {
|
|
11472
|
+
this.internals = hostRef.$hostElement$["s-ei"];
|
|
11473
|
+
}
|
|
11474
|
+
else {
|
|
11475
|
+
this.internals = hostRef.$hostElement$.attachInternals();
|
|
11476
|
+
hostRef.$hostElement$["s-ei"] = this.internals;
|
|
11477
|
+
}
|
|
11318
11478
|
}
|
|
11479
|
+
internals;
|
|
11480
|
+
/** Name for native form submission */
|
|
11481
|
+
name = '';
|
|
11319
11482
|
/** Whether the switch is on */
|
|
11320
11483
|
isChecked = false;
|
|
11321
11484
|
/** Whether the switch is disabled */
|
|
11322
11485
|
disabled = false;
|
|
11323
11486
|
/** Emitted when the toggle state changes */
|
|
11324
11487
|
dropiChange;
|
|
11488
|
+
checkedChanged(val) {
|
|
11489
|
+
this.internals.setFormValue(val ? 'on' : null);
|
|
11490
|
+
}
|
|
11491
|
+
componentWillLoad() {
|
|
11492
|
+
this.internals.setFormValue(this.isChecked ? 'on' : null);
|
|
11493
|
+
}
|
|
11325
11494
|
onToggleChange(event) {
|
|
11326
11495
|
const input = event.target;
|
|
11327
11496
|
this.isChecked = input.checked;
|
|
11328
11497
|
this.dropiChange.emit(this.isChecked);
|
|
11329
11498
|
}
|
|
11330
11499
|
render() {
|
|
11331
|
-
return (hAsync("label", { key: '
|
|
11500
|
+
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" })));
|
|
11332
11501
|
}
|
|
11333
11502
|
static get formAssociated() { return true; }
|
|
11503
|
+
static get watchers() { return {
|
|
11504
|
+
"isChecked": [{
|
|
11505
|
+
"checkedChanged": 0
|
|
11506
|
+
}]
|
|
11507
|
+
}; }
|
|
11334
11508
|
static get style() { return dropiSwitchCss(); }
|
|
11335
11509
|
static get cmpMeta() { return {
|
|
11336
11510
|
"$flags$": 585,
|
|
11337
11511
|
"$tagName$": "dropi-switch",
|
|
11338
11512
|
"$members$": {
|
|
11513
|
+
"name": [513],
|
|
11339
11514
|
"isChecked": [1540, "is-checked"],
|
|
11340
11515
|
"disabled": [516]
|
|
11341
11516
|
},
|
|
11342
11517
|
"$listeners$": undefined,
|
|
11343
11518
|
"$lazyBundleId$": "-",
|
|
11344
|
-
"$attrsToReflect$": [["isChecked", "is-checked"], ["disabled", "disabled"]]
|
|
11519
|
+
"$attrsToReflect$": [["name", "name"], ["isChecked", "is-checked"], ["disabled", "disabled"]]
|
|
11345
11520
|
}; }
|
|
11346
11521
|
}
|
|
11347
11522
|
|
|
@@ -11999,10 +12174,10 @@ class DropiTextArea {
|
|
|
11999
12174
|
this.value = val;
|
|
12000
12175
|
this.internals.setFormValue(val);
|
|
12001
12176
|
this.dropiInput.emit(val);
|
|
12177
|
+
this.dropiChange.emit(val);
|
|
12002
12178
|
}
|
|
12003
12179
|
handleBlur() {
|
|
12004
12180
|
this.touched = true;
|
|
12005
|
-
this.dropiChange.emit(this.value);
|
|
12006
12181
|
this.dropiBlur.emit();
|
|
12007
12182
|
}
|
|
12008
12183
|
get resolvedId() {
|
|
@@ -12017,12 +12192,12 @@ class DropiTextArea {
|
|
|
12017
12192
|
render() {
|
|
12018
12193
|
const showAsterisk = this.required && this.showObligatoryAsterisk && !this.disabled;
|
|
12019
12194
|
const showHelper = this.textHelper || this.isInvalid;
|
|
12020
|
-
return (hAsync("div", { key: '
|
|
12195
|
+
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: {
|
|
12021
12196
|
'form-control': true,
|
|
12022
12197
|
'Body-M-Regular': true,
|
|
12023
12198
|
'form-control-valid': !this.isInvalid && this.touched && !!this.value,
|
|
12024
12199
|
'form-control-invalid': this.isInvalid,
|
|
12025
|
-
}, 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: '
|
|
12200
|
+
}, 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)))));
|
|
12026
12201
|
}
|
|
12027
12202
|
static get formAssociated() { return true; }
|
|
12028
12203
|
static get watchers() { return {
|
|
@@ -12039,7 +12214,7 @@ class DropiTextArea {
|
|
|
12039
12214
|
"$tagName$": "dropi-text-area",
|
|
12040
12215
|
"$members$": {
|
|
12041
12216
|
"id": [1025],
|
|
12042
|
-
"name": [
|
|
12217
|
+
"name": [513],
|
|
12043
12218
|
"label": [1025],
|
|
12044
12219
|
"placeholder": [1025],
|
|
12045
12220
|
"value": [1025],
|
|
@@ -12057,7 +12232,7 @@ class DropiTextArea {
|
|
|
12057
12232
|
},
|
|
12058
12233
|
"$listeners$": undefined,
|
|
12059
12234
|
"$lazyBundleId$": "-",
|
|
12060
|
-
"$attrsToReflect$": [["disabled", "disabled"], ["required", "required"]]
|
|
12235
|
+
"$attrsToReflect$": [["name", "name"], ["disabled", "disabled"], ["required", "required"]]
|
|
12061
12236
|
}; }
|
|
12062
12237
|
}
|
|
12063
12238
|
|