@haloduck/ui 2.0.7 → 2.0.8
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 +5 -2
- package/fesm2022/haloduck-ui.mjs.map +1 -1
- package/index.d.ts +2 -1
- package/package.json +1 -1
package/fesm2022/haloduck-ui.mjs
CHANGED
|
@@ -2152,6 +2152,7 @@ class MapToAddressComponent {
|
|
|
2152
2152
|
mapId = this.coreService.getMapId();
|
|
2153
2153
|
defaultLngLat = this.coreService.getDefaultLngLat();
|
|
2154
2154
|
disabled = false;
|
|
2155
|
+
language = 'en';
|
|
2155
2156
|
currentLngLat;
|
|
2156
2157
|
_currentAddress;
|
|
2157
2158
|
_isGoogleLoaded = false;
|
|
@@ -2200,7 +2201,7 @@ class MapToAddressComponent {
|
|
|
2200
2201
|
return;
|
|
2201
2202
|
}
|
|
2202
2203
|
const script = document.createElement('script');
|
|
2203
|
-
script.src = `https://maps.googleapis.com/maps/api/js?key=${this.coreService.getGoogleApiKey()}&libraries=places,marker&loading=sync`;
|
|
2204
|
+
script.src = `https://maps.googleapis.com/maps/api/js?key=${this.coreService.getGoogleApiKey()}&libraries=places,marker&loading=sync&language=${this.language}`;
|
|
2204
2205
|
script.async = false;
|
|
2205
2206
|
script.defer = true;
|
|
2206
2207
|
script.onload = () => {
|
|
@@ -2370,7 +2371,7 @@ class MapToAddressComponent {
|
|
|
2370
2371
|
this.disabled = isDisabled;
|
|
2371
2372
|
}
|
|
2372
2373
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: MapToAddressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2373
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: MapToAddressComponent, isStandalone: true, selector: "haloduck-map-to-address", inputs: { disabled: "disabled", currentLngLat: "currentLngLat", currentAddress: "currentAddress" }, outputs: { locationChanged: "locationChanged" }, providers: [
|
|
2374
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: MapToAddressComponent, isStandalone: true, selector: "haloduck-map-to-address", inputs: { disabled: "disabled", language: "language", currentLngLat: "currentLngLat", currentAddress: "currentAddress" }, outputs: { locationChanged: "locationChanged" }, providers: [
|
|
2374
2375
|
{
|
|
2375
2376
|
provide: NG_VALUE_ACCESSOR,
|
|
2376
2377
|
useExisting: MapToAddressComponent,
|
|
@@ -2389,6 +2390,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImpor
|
|
|
2389
2390
|
], template: "<div class=\"w-full h-full relative\">\n <!-- \uB85C\uB529 \uC0C1\uD0DC -->\n <div\n *ngIf=\"!isGoogleLoaded && !loadError\"\n class=\"absolute inset-0 flex items-center justify-center bg-gray-100 z-10\"\n >\n <div class=\"text-center\">\n <div class=\"animate-spin rounded-full h-8 w-8 border-b-2 border-blue-500 mx-auto mb-2\"></div>\n <p class=\"text-gray-600 text-sm\">\uC9C0\uB3C4\uB97C \uB85C\uB529 \uC911\uC785\uB2C8\uB2E4...</p>\n </div>\n </div>\n\n <!-- \uC5D0\uB7EC \uC0C1\uD0DC -->\n <div\n *ngIf=\"loadError\"\n class=\"absolute inset-0 flex items-center justify-center bg-red-50 z-10\"\n >\n <div class=\"text-center p-4\">\n <div class=\"text-red-500 text-2xl mb-2\">\u26A0\uFE0F</div>\n <p class=\"text-red-700 text-sm font-medium\">{{ loadError }}</p>\n <p class=\"text-red-600 text-xs mt-1\">\uC778\uD130\uB137 \uC5F0\uACB0\uC744 \uD655\uC778\uD558\uACE0 \uD398\uC774\uC9C0\uB97C \uC0C8\uB85C\uACE0\uCE68\uD574 \uC8FC\uC138\uC694.</p>\n </div>\n </div>\n\n <div id=\"map\" class=\"w-full h-full\"></div>\n</div>\n", styles: ["#map{border:1px solid #ccc;margin-bottom:10px}\n"] }]
|
|
2390
2391
|
}], propDecorators: { disabled: [{
|
|
2391
2392
|
type: Input
|
|
2393
|
+
}], language: [{
|
|
2394
|
+
type: Input
|
|
2392
2395
|
}], currentLngLat: [{
|
|
2393
2396
|
type: Input
|
|
2394
2397
|
}], currentAddress: [{
|