barsa-develop-components 1.0.303 → 1.0.305

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.
@@ -2912,6 +2912,7 @@ class BarsaGeographicLocationComponent extends BaseComponent {
2912
2912
  this.fullscreen = new EventEmitter();
2913
2913
  this.exitFullscreen = new EventEmitter();
2914
2914
  this.error = new EventEmitter();
2915
+ this.markerChange = new EventEmitter();
2915
2916
  this._navigatorOptions = {
2916
2917
  enableHighAccuracy: true,
2917
2918
  timeout: 5000,
@@ -2922,17 +2923,10 @@ class BarsaGeographicLocationComponent extends BaseComponent {
2922
2923
  super.ngAfterViewInit();
2923
2924
  this._initilaize();
2924
2925
  }
2925
- ngOnChanges(changes) {
2926
- super.ngOnChanges(changes);
2927
- const { disableOrReadonly, currentLocation } = changes;
2928
- if (disableOrReadonly && !disableOrReadonly.firstChange) {
2929
- this._addMarkers(disableOrReadonly.currentValue, this.currentLocation);
2930
- }
2931
- if (currentLocation && !currentLocation.firstChange) {
2932
- this._addMarkers(this.disableOrReadonly, currentLocation.currentValue);
2933
- }
2934
- }
2935
2926
  onCurrentLocation() {
2927
+ if (this.disableOrReadonly) {
2928
+ return;
2929
+ }
2936
2930
  this._getNavigatorCurrentPosition();
2937
2931
  }
2938
2932
  onFullscreen() {
@@ -2942,14 +2936,33 @@ class BarsaGeographicLocationComponent extends BaseComponent {
2942
2936
  this.exitFullscreen.emit();
2943
2937
  }
2944
2938
  _addMarkers(disableOrReadonly, pos) {
2945
- this._setGeoLocation({ coords: { latitude: pos[0], longitude: pos[1] } }, disableOrReadonly);
2939
+ this._setGeoLocation({ latitude: pos[0], longitude: pos[1] }, disableOrReadonly);
2940
+ }
2941
+ _initilaize() {
2942
+ this._map = L.map(this._el.nativeElement);
2943
+ const location = this.defaultLocation;
2944
+ if (this.latitude) {
2945
+ location[0] = Number(this.latitude);
2946
+ location[1] = Number(this.longitude);
2947
+ }
2948
+ this._setGeoLocation({
2949
+ latitude: location[0],
2950
+ longitude: location[1]
2951
+ }, this.disableOrReadonly, true, false);
2952
+ if (!this.disableOrReadonly && this.setAutomaticLocation && !this.latitude) {
2953
+ // درصورتی که از قبل مقدار نداشته باشد
2954
+ this._getNavigatorCurrentPosition();
2955
+ }
2956
+ }
2957
+ _onErrorNavigatorLocation(err) {
2958
+ this.error.emit(err);
2946
2959
  }
2947
- _setGeoLocation(position, disableOrReadonly = false, setView = false) {
2960
+ _setGeoLocation(position, disableOrReadonly = false, setView = false, fireEvent = true) {
2948
2961
  if (this._marker) {
2949
2962
  this._map.removeLayer(this._marker);
2950
2963
  this._marker = null;
2951
2964
  }
2952
- const { coords: { latitude, longitude } } = position;
2965
+ const { latitude, longitude } = position;
2953
2966
  L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
2954
2967
  attribution: '',
2955
2968
  maxZoom: 18,
@@ -2964,27 +2977,13 @@ class BarsaGeographicLocationComponent extends BaseComponent {
2964
2977
  const marker = this._createMarker('0', { mo: 'test' }, latitude, longitude, 'my location', '', !disableOrReadonly && this.draggable === true);
2965
2978
  marker.addTo(this._map);
2966
2979
  this._marker = marker;
2967
- }
2968
- _initilaize() {
2969
- this._map = L.map(this._el.nativeElement);
2970
- const location = this.defaultLocation;
2971
- if (this.currentLocation.length === 2) {
2972
- location[0] = Number(this.currentLocation[0]);
2973
- location[1] = Number(this.currentLocation[1]);
2974
- }
2975
- this._setGeoLocation({
2976
- coords: { latitude: location[0], longitude: location[1] }
2977
- }, this.disableOrReadonly, true);
2978
- if (this.setAutomaticLocation && this.currentLocation.length === 0 && !this.disableOrReadonly) {
2979
- this._getNavigatorCurrentPosition();
2980
+ if (!disableOrReadonly && fireEvent) {
2981
+ this.markerChange.emit({ latitude, longitude });
2980
2982
  }
2981
2983
  }
2982
- _onErrorNavigatorLocation(err) {
2983
- this.error.emit(err);
2984
- }
2985
2984
  _getNavigatorCurrentPosition() {
2986
2985
  if (navigator.geolocation) {
2987
- navigator.geolocation.getCurrentPosition((position) => this._setGeoLocation(position, this.disableOrReadonly, true), (err) => this._onErrorNavigatorLocation(err), this._navigatorOptions);
2986
+ navigator.geolocation.getCurrentPosition((position) => this._setGeoLocation({ latitude: position.coords.latitude, longitude: position.coords.longitude }, this.disableOrReadonly, true), (err) => this._onErrorNavigatorLocation(err), this._navigatorOptions);
2988
2987
  }
2989
2988
  }
2990
2989
  _createMarker(id, mo, lat, lng, text, icon, draggable) {
@@ -3019,14 +3018,12 @@ class BarsaGeographicLocationComponent extends BaseComponent {
3019
3018
  }
3020
3019
  }
3021
3020
  BarsaGeographicLocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaGeographicLocationComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3022
- BarsaGeographicLocationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BarsaGeographicLocationComponent, selector: "bdc-barsa-geographic-location", inputs: { disableOrReadonly: "disableOrReadonly", currentLocation: "currentLocation", setAutomaticLocation: "setAutomaticLocation", showLocationButton: "showLocationButton", showFullscreenButton: "showFullscreenButton", showExitFullscreenButton: "showExitFullscreenButton", draggable: "draggable", defaultLocation: "defaultLocation" }, outputs: { move: "move", moveEnd: "moveEnd", fullscreen: "fullscreen", exitFullscreen: "exitFullscreen", error: "error" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div style=\"position: absolute; z-index: 1000; display: flex; flex-direction: column; row-gap: 5px; left: 0; bottom: 0\">\n <button *ngIf=\"showFullscreenButton\" fd-button glyph=\"resize\" fdType=\"positive\" (click)=\"onFullscreen()\"></button>\n <button\n *ngIf=\"showExitFullscreenButton\"\n fd-button\n glyph=\"exitfullscreen\"\n fdType=\"positive\"\n (click)=\"onExitFullscreen()\"\n ></button>\n <button *ngIf=\"showLocationButton\" fd-button glyph=\"map\" fdType=\"positive\" (click)=\"onCurrentLocation()\"></button>\n</div>\n", styles: [":host{display:block;min-height:300px;position:relative}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3021
+ BarsaGeographicLocationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BarsaGeographicLocationComponent, selector: "bdc-barsa-geographic-location", inputs: { disableOrReadonly: "disableOrReadonly", setAutomaticLocation: "setAutomaticLocation", showLocationButton: "showLocationButton", showFullscreenButton: "showFullscreenButton", showExitFullscreenButton: "showExitFullscreenButton", draggable: "draggable", defaultLocation: "defaultLocation", latitude: "latitude", longitude: "longitude" }, outputs: { move: "move", moveEnd: "moveEnd", fullscreen: "fullscreen", exitFullscreen: "exitFullscreen", error: "error", markerChange: "markerChange" }, usesInheritance: true, ngImport: i0, template: "<div style=\"position: absolute; z-index: 1000; display: flex; flex-direction: column; row-gap: 5px; left: 0; bottom: 0\">\n <button *ngIf=\"showFullscreenButton\" fd-button glyph=\"resize\" fdType=\"positive\" (click)=\"onFullscreen()\"></button>\n <button\n *ngIf=\"showExitFullscreenButton\"\n fd-button\n glyph=\"exitfullscreen\"\n fdType=\"positive\"\n (click)=\"onExitFullscreen()\"\n ></button>\n <button\n *ngIf=\"showLocationButton || disableOrReadonly\"\n fd-button\n glyph=\"map\"\n fdType=\"positive\"\n (click)=\"onCurrentLocation()\"\n ></button>\n</div>\n", styles: [":host{display:block;min-height:300px;position:relative}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i5.ButtonComponent, selector: "button[fd-button], a[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3023
3022
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaGeographicLocationComponent, decorators: [{
3024
3023
  type: Component,
3025
- args: [{ selector: 'bdc-barsa-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"position: absolute; z-index: 1000; display: flex; flex-direction: column; row-gap: 5px; left: 0; bottom: 0\">\n <button *ngIf=\"showFullscreenButton\" fd-button glyph=\"resize\" fdType=\"positive\" (click)=\"onFullscreen()\"></button>\n <button\n *ngIf=\"showExitFullscreenButton\"\n fd-button\n glyph=\"exitfullscreen\"\n fdType=\"positive\"\n (click)=\"onExitFullscreen()\"\n ></button>\n <button *ngIf=\"showLocationButton\" fd-button glyph=\"map\" fdType=\"positive\" (click)=\"onCurrentLocation()\"></button>\n</div>\n", styles: [":host{display:block;min-height:300px;position:relative}\n"] }]
3024
+ args: [{ selector: 'bdc-barsa-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"position: absolute; z-index: 1000; display: flex; flex-direction: column; row-gap: 5px; left: 0; bottom: 0\">\n <button *ngIf=\"showFullscreenButton\" fd-button glyph=\"resize\" fdType=\"positive\" (click)=\"onFullscreen()\"></button>\n <button\n *ngIf=\"showExitFullscreenButton\"\n fd-button\n glyph=\"exitfullscreen\"\n fdType=\"positive\"\n (click)=\"onExitFullscreen()\"\n ></button>\n <button\n *ngIf=\"showLocationButton || disableOrReadonly\"\n fd-button\n glyph=\"map\"\n fdType=\"positive\"\n (click)=\"onCurrentLocation()\"\n ></button>\n</div>\n", styles: [":host{display:block;min-height:300px;position:relative}\n"] }]
3026
3025
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disableOrReadonly: [{
3027
3026
  type: Input
3028
- }], currentLocation: [{
3029
- type: Input
3030
3027
  }], setAutomaticLocation: [{
3031
3028
  type: Input
3032
3029
  }], showLocationButton: [{
@@ -3039,6 +3036,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
3039
3036
  type: Input
3040
3037
  }], defaultLocation: [{
3041
3038
  type: Input
3039
+ }], latitude: [{
3040
+ type: Input
3041
+ }], longitude: [{
3042
+ type: Input
3042
3043
  }], move: [{
3043
3044
  type: Output
3044
3045
  }], moveEnd: [{
@@ -3049,15 +3050,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
3049
3050
  type: Output
3050
3051
  }], error: [{
3051
3052
  type: Output
3053
+ }], markerChange: [{
3054
+ type: Output
3052
3055
  }] } });
3053
3056
 
3054
3057
  class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3055
3058
  constructor() {
3056
3059
  super(...arguments);
3057
3060
  this.fullscreen = false;
3058
- this.currentLocation = [];
3059
- this.latitude = 35.7568;
3060
- this.longitude = 51.412;
3061
3061
  }
3062
3062
  get latitudeUi() {
3063
3063
  return this.customFormPanelUi._dictFieldUi.Latitude;
@@ -3077,7 +3077,7 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3077
3077
  }
3078
3078
  ngOnInit() {
3079
3079
  super.ngOnInit();
3080
- this._setCurrentLocation(this.latitudeUi?.value, this.longitudeUi?.value);
3080
+ this._setDefaultLatAndLong(this.latitudeUi?.value, this.longitudeUi?.value);
3081
3081
  }
3082
3082
  onFullscreen() {
3083
3083
  this.fullscreen = true;
@@ -3095,30 +3095,36 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3095
3095
  BarsaApi.Bw.Toast.Error(err2);
3096
3096
  }
3097
3097
  onMove(e) {
3098
- this.latitude = e.latlng.lat;
3099
- this.longitude = e.latlng.lng;
3098
+ this._movePos = { latitude: e.latlng.lat, longitude: e.latlng.lng };
3100
3099
  }
3101
3100
  onMoveEnd(e) {
3101
+ this._handleMarkerChange(this._movePos);
3102
+ }
3103
+ onMarkerChange(e) {
3104
+ this._handleMarkerChange(e);
3105
+ }
3106
+ _handleMarkerChange(e) {
3107
+ const { latitude, longitude } = e;
3108
+ this.latitudeUi.value = latitude;
3109
+ this.longitudeUi.value = longitude;
3102
3110
  this._valueChanged();
3103
3111
  }
3104
- _setCurrentLocation(lat, lng) {
3112
+ _setDefaultLatAndLong(lat, lng) {
3105
3113
  if (lat && lng) {
3106
- this.currentLocation = [lat, lng];
3114
+ this.latValue = lat;
3115
+ this.lngValue = lng;
3107
3116
  }
3108
3117
  }
3109
3118
  _valueChanged() {
3110
- this.latitudeUi.value = this.latitude;
3111
- this.longitudeUi.value = this.longitude;
3112
3119
  this.latitudeUi.fireEvent('change', this.latitudeUi, this.latitudeUi.value);
3113
3120
  this.longitudeUi.fireEvent('change', this.longitudeUi, this.longitudeUi.value);
3114
- this._setCurrentLocation(this.latitude, this.longitude);
3115
3121
  }
3116
3122
  }
3117
3123
  GeographicLocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: GeographicLocationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3118
- GeographicLocationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: GeographicLocationComponent, selector: "bdc-geographic-location", viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["confirmationDialog"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"customFormPanelUi\">\n <bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\n</ng-container>\n\n<bdc-barsa-geographic-location\n *ngIf=\"!fullscreen\"\n [defaultLocation]=\"[35.7568, 51.412]\"\n [showFullscreenButton]=\"customFieldInfo.ShowFullscreenButton\"\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\n [currentLocation]=\"currentLocation\"\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true\"\n [draggable]=\"customFieldInfo.Draggable === true\"\n (move)=\"onMove($event)\"\n (error)=\"onErrorNavigatorLocation($event)\"\n (moveEnd)=\"onMoveEnd($event)\"\n (fullscreen)=\"onFullscreen()\"\n></bdc-barsa-geographic-location>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <h1 id=\"fd-dialog-header-10\" fd-title>{{ 'Map' | bbbTranslate }}</h1>\n </fd-dialog-header>\n\n <fd-dialog-body>\n <bdc-barsa-geographic-location\n style=\"height: 100% !important\"\n [defaultLocation]=\"[35.7568, 51.412]\"\n [showExitFullscreenButton]=\"true\"\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\n [currentLocation]=\"currentLocation\"\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true || customFieldInfo.Draggable === false\"\n (move)=\"onMove($event)\"\n (error)=\"onErrorNavigatorLocation($event)\"\n (moveEnd)=\"onMoveEnd($event)\"\n (exitFullscreen)=\"onExistFullscreen(); dialog.close('Continue')\"\n ></bdc-barsa-geographic-location>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n", styles: [":host{display:block;position:relative}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.FormComponent, selector: "bnrc-form", inputs: ["params", "customFormPanelUi", "formPanelCtrl", "formPanelCtrlId"], outputs: ["titleChanged", "moChanged", "formClose", "formRendered"] }, { kind: "directive", type: i1$2.UntilInViewDirective, selector: "[untilInView]", inputs: ["untilInView", "intersectionDebounce"] }, { kind: "component", type: i5$1.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5$1.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i5$1.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i4$2.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "component", type: BarsaGeographicLocationComponent, selector: "bdc-barsa-geographic-location", inputs: ["disableOrReadonly", "currentLocation", "setAutomaticLocation", "showLocationButton", "showFullscreenButton", "showExitFullscreenButton", "draggable", "defaultLocation"], outputs: ["move", "moveEnd", "fullscreen", "exitFullscreen", "error"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3124
+ GeographicLocationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: GeographicLocationComponent, selector: "bdc-geographic-location", viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["confirmationDialog"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"customFormPanelUi\">\n <bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\n</ng-container>\n\n<ng-container *ngIf=\"!fullscreen\">\n <ng-container *ngTemplateOutlet=\"map; context: { inDialog: false }\"></ng-container>\n</ng-container>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <h1 id=\"fd-dialog-header-10\" fd-title>{{ 'Map' | bbbTranslate }}</h1>\n </fd-dialog-header>\n <fd-dialog-body>\n <ng-container *ngTemplateOutlet=\"map; context: { inDialog: true, dialog: dialog }\"></ng-container>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n\n<ng-template #map let-inDialog=\"inDialog\" let-dialog=\"dialog\">\n <bdc-barsa-geographic-location\n [style.height]=\"inDialog ? 'height: 100% !important' : null\"\n [defaultLocation]=\"[35.7568, 51.412]\"\n [latitude]=\"latValue\"\n [longitude]=\"lngValue\"\n [showExitFullscreenButton]=\"true\"\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true\"\n [draggable]=\"customFieldInfo.Draggable === true\"\n (markerChange)=\"onMarkerChange($event)\"\n (move)=\"onMove($event)\"\n (error)=\"onErrorNavigatorLocation($event)\"\n (moveEnd)=\"onMoveEnd($event)\"\n (exitFullscreen)=\"onExistFullscreen(); dialog && dialog.close('Continue')\"\n ></bdc-barsa-geographic-location>\n</ng-template>\n", styles: [":host{display:block;position:relative}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$2.FormComponent, selector: "bnrc-form", inputs: ["params", "customFormPanelUi", "formPanelCtrl", "formPanelCtrlId"], outputs: ["titleChanged", "moChanged", "formClose", "formRendered"] }, { kind: "directive", type: i1$2.UntilInViewDirective, selector: "[untilInView]", inputs: ["untilInView", "intersectionDebounce"] }, { kind: "component", type: i5$1.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i5$1.DialogBodyComponent, selector: "fd-dialog-body" }, { kind: "component", type: i5$1.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i4$2.TitleComponent, selector: "h1[fd-title], h2[fd-title], h3[fd-title], h4[fd-title], h5[fd-title], h6[fd-title]", inputs: ["headerSize", "wrap"], exportAs: ["fd-title"] }, { kind: "component", type: BarsaGeographicLocationComponent, selector: "bdc-barsa-geographic-location", inputs: ["disableOrReadonly", "setAutomaticLocation", "showLocationButton", "showFullscreenButton", "showExitFullscreenButton", "draggable", "defaultLocation", "latitude", "longitude"], outputs: ["move", "moveEnd", "fullscreen", "exitFullscreen", "error", "markerChange"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3119
3125
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: GeographicLocationComponent, decorators: [{
3120
3126
  type: Component,
3121
- args: [{ selector: 'bdc-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"customFormPanelUi\">\n <bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\n</ng-container>\n\n<bdc-barsa-geographic-location\n *ngIf=\"!fullscreen\"\n [defaultLocation]=\"[35.7568, 51.412]\"\n [showFullscreenButton]=\"customFieldInfo.ShowFullscreenButton\"\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\n [currentLocation]=\"currentLocation\"\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true\"\n [draggable]=\"customFieldInfo.Draggable === true\"\n (move)=\"onMove($event)\"\n (error)=\"onErrorNavigatorLocation($event)\"\n (moveEnd)=\"onMoveEnd($event)\"\n (fullscreen)=\"onFullscreen()\"\n></bdc-barsa-geographic-location>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <h1 id=\"fd-dialog-header-10\" fd-title>{{ 'Map' | bbbTranslate }}</h1>\n </fd-dialog-header>\n\n <fd-dialog-body>\n <bdc-barsa-geographic-location\n style=\"height: 100% !important\"\n [defaultLocation]=\"[35.7568, 51.412]\"\n [showExitFullscreenButton]=\"true\"\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\n [currentLocation]=\"currentLocation\"\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true || customFieldInfo.Draggable === false\"\n (move)=\"onMove($event)\"\n (error)=\"onErrorNavigatorLocation($event)\"\n (moveEnd)=\"onMoveEnd($event)\"\n (exitFullscreen)=\"onExistFullscreen(); dialog.close('Continue')\"\n ></bdc-barsa-geographic-location>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n", styles: [":host{display:block;position:relative}\n"] }]
3127
+ args: [{ selector: 'bdc-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"customFormPanelUi\">\n <bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\n</ng-container>\n\n<ng-container *ngIf=\"!fullscreen\">\n <ng-container *ngTemplateOutlet=\"map; context: { inDialog: false }\"></ng-container>\n</ng-container>\n\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\n <fd-dialog-header>\n <h1 id=\"fd-dialog-header-10\" fd-title>{{ 'Map' | bbbTranslate }}</h1>\n </fd-dialog-header>\n <fd-dialog-body>\n <ng-container *ngTemplateOutlet=\"map; context: { inDialog: true, dialog: dialog }\"></ng-container>\n </fd-dialog-body>\n </fd-dialog>\n</ng-template>\n\n<ng-template #map let-inDialog=\"inDialog\" let-dialog=\"dialog\">\n <bdc-barsa-geographic-location\n [style.height]=\"inDialog ? 'height: 100% !important' : null\"\n [defaultLocation]=\"[35.7568, 51.412]\"\n [latitude]=\"latValue\"\n [longitude]=\"lngValue\"\n [showExitFullscreenButton]=\"true\"\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true\"\n [draggable]=\"customFieldInfo.Draggable === true\"\n (markerChange)=\"onMarkerChange($event)\"\n (move)=\"onMove($event)\"\n (error)=\"onErrorNavigatorLocation($event)\"\n (moveEnd)=\"onMoveEnd($event)\"\n (exitFullscreen)=\"onExistFullscreen(); dialog && dialog.close('Continue')\"\n ></bdc-barsa-geographic-location>\n</ng-template>\n", styles: [":host{display:block;position:relative}\n"] }]
3122
3128
  }], propDecorators: { dialogTemplate: [{
3123
3129
  type: ViewChild,
3124
3130
  args: ['confirmationDialog']