@haloduck/ui 2.0.5 → 2.0.6
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/fesm2022/haloduck-ui.mjs +12 -19
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/package.json +1 -1
package/fesm2022/haloduck-ui.mjs
CHANGED
|
@@ -237,8 +237,8 @@ class AuthenticateComponent {
|
|
|
237
237
|
},
|
|
238
238
|
})
|
|
239
239
|
.then((res) => {
|
|
240
|
-
console.log('res', res);
|
|
241
|
-
console.log('res.nextStep.signInStep', res.nextStep.signInStep);
|
|
240
|
+
// console.log('res', res);
|
|
241
|
+
// console.log('res.nextStep.signInStep', res.nextStep.signInStep);
|
|
242
242
|
if (res.nextStep.signInStep === 'CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED') {
|
|
243
243
|
this.switchStage('newPassword');
|
|
244
244
|
}
|
|
@@ -263,7 +263,6 @@ class AuthenticateComponent {
|
|
|
263
263
|
this.notificationService.showNotification('success', 'Successfully signed in.', 3000);
|
|
264
264
|
})
|
|
265
265
|
.catch((err) => {
|
|
266
|
-
console.log('err', JSON.stringify(err));
|
|
267
266
|
if (err.code === 'NotAuthorizedException') {
|
|
268
267
|
this.notificationService.showNotification('error', 'Failed to sign in.');
|
|
269
268
|
}
|
|
@@ -575,7 +574,6 @@ class SelectComponent {
|
|
|
575
574
|
// hide label if no content.
|
|
576
575
|
if (this.label && this.label.nativeElement) {
|
|
577
576
|
const hasContent = this.label.nativeElement.textContent?.trim();
|
|
578
|
-
console.log('Label content:', hasContent);
|
|
579
577
|
if (!hasContent) {
|
|
580
578
|
this.label.nativeElement.style.display = 'none';
|
|
581
579
|
}
|
|
@@ -1034,13 +1032,13 @@ class CopyButtonComponent {
|
|
|
1034
1032
|
}, 500); // Animation duration
|
|
1035
1033
|
if (navigator.clipboard && window.isSecureContext) {
|
|
1036
1034
|
navigator.clipboard
|
|
1037
|
-
.writeText(this.text)
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
})
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
});
|
|
1035
|
+
.writeText(this.text);
|
|
1036
|
+
// .then(() => {
|
|
1037
|
+
// console.log('Text copied to clipboard');
|
|
1038
|
+
// })
|
|
1039
|
+
// .catch((err) => {
|
|
1040
|
+
// console.error('Failed to copy text: ', err);
|
|
1041
|
+
// });
|
|
1044
1042
|
}
|
|
1045
1043
|
else {
|
|
1046
1044
|
const textArea = document.createElement('textarea');
|
|
@@ -1051,10 +1049,10 @@ class CopyButtonComponent {
|
|
|
1051
1049
|
textArea.select();
|
|
1052
1050
|
try {
|
|
1053
1051
|
document.execCommand('copy');
|
|
1054
|
-
console.log('Text copied to clipboard');
|
|
1052
|
+
// console.log('Text copied to clipboard');
|
|
1055
1053
|
}
|
|
1056
1054
|
catch (err) {
|
|
1057
|
-
console.error('Failed to copy text: ', err);
|
|
1055
|
+
// console.error('Failed to copy text: ', err);
|
|
1058
1056
|
}
|
|
1059
1057
|
document.body.removeChild(textArea);
|
|
1060
1058
|
}
|
|
@@ -1370,9 +1368,6 @@ class DateRangeComponent {
|
|
|
1370
1368
|
setDisabledState(isDisabled) {
|
|
1371
1369
|
this.disabled = isDisabled;
|
|
1372
1370
|
}
|
|
1373
|
-
ngOnInit() {
|
|
1374
|
-
console.log('DateRangeComponent ngOnInit', this.dateRangeOptions);
|
|
1375
|
-
}
|
|
1376
1371
|
ngOnDestroy() {
|
|
1377
1372
|
this.destroy$.next();
|
|
1378
1373
|
this.destroy$.complete();
|
|
@@ -1386,7 +1381,6 @@ class DateRangeComponent {
|
|
|
1386
1381
|
this.placeholder = translation;
|
|
1387
1382
|
}
|
|
1388
1383
|
});
|
|
1389
|
-
console.log('DateRangeComponent constructor', this.dateRangeOptions);
|
|
1390
1384
|
zip(this.translateService.selectTranslate('ui.calendar.today', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.yesterday', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.2 Days ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.3 Days ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.a week ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.15 Days ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.a month ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.2 months ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.3 months ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.6 months ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.a year ago', {}, 'haloduck'), this.translateService.selectTranslate('ui.calendar.pick manually', {}, 'haloduck'))
|
|
1391
1385
|
.pipe(takeUntilDestroyed())
|
|
1392
1386
|
.subscribe(([today, yesterday, twoDaysAgo, threeDaysAgo, aWeekAgo, fifteenDaysAgo, aMonthAgo, twoMonthsAgo, threeMonthsAgo, sixMonthsAgo, aYearAgo, pickManually,]) => {
|
|
@@ -1493,7 +1487,6 @@ class DrawCanvasComponent {
|
|
|
1493
1487
|
this.setupCanvas();
|
|
1494
1488
|
}
|
|
1495
1489
|
loadImage() {
|
|
1496
|
-
console.log(this.canvasRef.nativeElement.width, this.canvasRef.nativeElement.height, this.canvasRef.nativeElement.getBoundingClientRect());
|
|
1497
1490
|
const image = new Image();
|
|
1498
1491
|
image.src = this.imagePath;
|
|
1499
1492
|
image.onload = () => {
|
|
@@ -2190,7 +2183,7 @@ class MapToAddressComponent {
|
|
|
2190
2183
|
script.onload = () => resolve();
|
|
2191
2184
|
script.onerror = (error) => reject(error);
|
|
2192
2185
|
document.head.appendChild(script);
|
|
2193
|
-
console.log('Google Maps script loaded', script);
|
|
2186
|
+
isDevMode() && console.log('Google Maps script loaded', script);
|
|
2194
2187
|
});
|
|
2195
2188
|
}
|
|
2196
2189
|
initMap() {
|