barsa-develop-components 1.0.289 → 1.0.290

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.
@@ -2901,100 +2901,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2901
2901
  type: Input
2902
2902
  }] } });
2903
2903
 
2904
- const defaults = {
2905
- iconColor: '#1EB300',
2906
- iconAnchor: {
2907
- marker: [14, 36],
2908
- circle: [11, 10],
2909
- 'circle-dot': [5, 5],
2910
- 'rectangle-dot': [5, 6],
2911
- doughnut: [8, 8]
2912
- },
2913
- popupAnchor: {
2914
- marker: [0, -25],
2915
- circle: [-3, -76],
2916
- 'circle-dot': [0, -2],
2917
- 'rectangle-dot': [0, -2],
2918
- doughnut: [0, -2]
2919
- },
2920
- innerIconAnchor: {
2921
- marker: [-2, 5],
2922
- circle: [0, 2]
2923
- },
2924
- iconSize: {
2925
- marker: [28, 28],
2926
- circle: [22, 22],
2927
- 'circle-dot': [2, 2],
2928
- 'rectangle-dot': [2, 2],
2929
- doughnut: [15, 15]
2930
- }
2931
- };
2932
- L.BeautifyIcon = {
2933
- Icon: L.Icon.extend({
2934
- options: {
2935
- icon: 'leaf',
2936
- iconSize: defaults.iconSize.circle,
2937
- iconAnchor: defaults.iconAnchor.circle,
2938
- iconShape: 'circle',
2939
- iconStyle: '',
2940
- innerIconAnchor: [0, 3],
2941
- innerIconStyle: '',
2942
- isAlphaNumericIcon: false,
2943
- text: 1,
2944
- borderColor: defaults.iconColor,
2945
- borderWidth: 2,
2946
- borderStyle: 'solid',
2947
- backgroundColor: 'white',
2948
- textColor: defaults.iconColor,
2949
- customClasses: '',
2950
- spin: false,
2951
- prefix: 'sap-icon--',
2952
- html: ''
2953
- },
2954
- createIconInnerHtml() {
2955
- const options = this.options;
2956
- if (options.iconShape === 'circle-dot' ||
2957
- options.iconShape === 'rectangle-dot' ||
2958
- options.iconShape === 'doughnut') {
2959
- return '';
2960
- }
2961
- const innerIconStyle = this.getInnerIconStyle(options);
2962
- if (options.isAlphaNumericIcon) {
2963
- return '<div style="' + innerIconStyle + '">' + options.text + '</div>';
2964
- }
2965
- let spinClass = '';
2966
- if (options.spin) {
2967
- spinClass = ' fa-spin';
2968
- }
2969
- return ('<fd-icon class="' +
2970
- options.prefix +
2971
- ' ' +
2972
- options.prefix +
2973
- '-' +
2974
- options.icon +
2975
- spinClass +
2976
- '" style="' +
2977
- innerIconStyle +
2978
- '"></fd-icon>');
2979
- },
2980
- getInnerIconStyle(options) {
2981
- const innerAnchor = L.point(options.innerIconAnchor);
2982
- return ('color:' +
2983
- options.textColor +
2984
- ';margin-top:' +
2985
- innerAnchor.y +
2986
- 'px; margin-left:' +
2987
- innerAnchor.x +
2988
- 'px;' +
2989
- options.innerIconStyle);
2990
- }
2991
- })
2992
- };
2993
- class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
2994
- constructor() {
2995
- super(...arguments);
2996
- this.id = getUniqueId(3);
2997
- this.applied = false;
2904
+ class BarsaGeographicLocationComponent extends BaseComponent {
2905
+ constructor(_el) {
2906
+ super();
2907
+ this._el = _el;
2908
+ this.move = new EventEmitter();
2909
+ this.moveEnd = new EventEmitter();
2910
+ this.fullscreen = new EventEmitter();
2911
+ this.error = new EventEmitter();
2998
2912
  this._navigatorOptions = {
2999
2913
  enableHighAccuracy: true,
3000
2914
  timeout: 5000,
@@ -3005,9 +2919,31 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3005
2919
  super.ngAfterViewInit();
3006
2920
  this._initilaize();
3007
2921
  }
3008
- _setGeoLocation(position) {
2922
+ ngOnChanges(changes) {
2923
+ super.ngOnChanges(changes);
2924
+ const { disableOrReadonly, currentLocation } = changes;
2925
+ if (disableOrReadonly && !disableOrReadonly.firstChange) {
2926
+ this._addMarkers(disableOrReadonly.currentValue, this.currentLocation);
2927
+ }
2928
+ if (currentLocation && !currentLocation.firstChange) {
2929
+ this._addMarkers(this.disableOrReadonly, currentLocation.currentValue);
2930
+ }
2931
+ }
2932
+ onCurrentLocation() {
2933
+ this._getNavigatorCurrentPosition();
2934
+ }
2935
+ onFullscreen() {
2936
+ this.fullscreen.emit();
2937
+ }
2938
+ _addMarkers(disableOrReadonly, pos) {
2939
+ this._setGeoLocation({ coords: { latitude: pos[0], longitude: pos[1] } }, disableOrReadonly);
2940
+ }
2941
+ _setGeoLocation(position, disableOrReadonly = false, setView = false) {
2942
+ if (this._marker) {
2943
+ this._map.removeLayer(this._marker);
2944
+ this._marker = null;
2945
+ }
3009
2946
  const { coords: { latitude, longitude } } = position;
3010
- this._map.setView([latitude, longitude], 16);
3011
2947
  L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
3012
2948
  attribution: '',
3013
2949
  maxZoom: 18,
@@ -3016,25 +2952,33 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3016
2952
  zoomOffset: -1,
3017
2953
  accessToken: 'pk.eyJ1IjoibXJlemFkZXZlbG9wZXIiLCJhIjoiY2p6anlrdTE2MDBxdjNtczZtYWFqbHFmdiJ9.SzniRy2KH6U3gdbOFnwA7Q'
3018
2954
  }).addTo(this._map);
3019
- const marker = this._createMarker('0', { mo: 'test' }, latitude, longitude, 'my location', 'assets/images/UploadTarget_32.png', true);
2955
+ if (setView) {
2956
+ this._map.setView([latitude, longitude], 18);
2957
+ }
2958
+ const marker = this._createMarker('0', { mo: 'test' }, latitude, longitude, 'my location', '', !disableOrReadonly);
3020
2959
  marker.addTo(this._map);
2960
+ this._marker = marker;
3021
2961
  }
3022
2962
  _initilaize() {
3023
- const defaultLatLng = [35.7568, 51.412];
3024
- if (this.latitudeUi && this.latitudeUi.value) {
3025
- defaultLatLng[0] = this.latitudeUi.value;
3026
- defaultLatLng[1] = this.longitudeUi.value;
3027
- }
3028
2963
  this._map = L.map(this._el.nativeElement);
3029
- this._setGeoLocation({ coords: { latitude: defaultLatLng[0], longitude: defaultLatLng[1] } });
3030
- this._getNavigatorCurrentPosition();
2964
+ const location = this.defaultLocation;
2965
+ if (this.currentLocation.length === 2) {
2966
+ location[0] = Number(this.currentLocation[0]);
2967
+ location[1] = Number(this.currentLocation[1]);
2968
+ }
2969
+ this._setGeoLocation({
2970
+ coords: { latitude: location[0], longitude: location[1] }
2971
+ }, this.disableOrReadonly, true);
2972
+ if (this.setAutomaticLocation && this.currentLocation.length === 0 && !this.disableOrReadonly) {
2973
+ this._getNavigatorCurrentPosition();
2974
+ }
3031
2975
  }
3032
2976
  _onErrorNavigatorLocation(err) {
3033
- console.error(err);
2977
+ this.error.emit(err);
3034
2978
  }
3035
2979
  _getNavigatorCurrentPosition() {
3036
2980
  if (navigator.geolocation) {
3037
- navigator.geolocation.getCurrentPosition((position) => this._setGeoLocation(position), (err) => this._onErrorNavigatorLocation(err), this._navigatorOptions);
2981
+ navigator.geolocation.getCurrentPosition((position) => this._setGeoLocation(position, this.disableOrReadonly, true), (err) => this._onErrorNavigatorLocation(err), this._navigatorOptions);
3038
2982
  }
3039
2983
  }
3040
2984
  _createMarker(id, mo, lat, lng, text, icon, draggable) {
@@ -3043,49 +2987,130 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3043
2987
  Data: mo,
3044
2988
  title: text,
3045
2989
  draggable,
3046
- icon: new L.BeautifyIcon.Icon({
3047
- icon: 'functional-location',
3048
- iconSize: [24, 24] // size of the icon
2990
+ icon: L.divIcon({
2991
+ html: icon
2992
+ ? `<fd-icon style="font-size:1rem" class="sap-icon--${icon}"></fd-icon>`
2993
+ : `<img style="width:32px" src="${'assets/svg/location-sign.svg'}"/>`,
2994
+ iconSize: [20, 20],
2995
+ className: 'my-location'
3049
2996
  })
3050
2997
  };
3051
2998
  // var marker = L.BeautifyMarker.marker([Number(lat), Number(lng)], {
3052
2999
  const marker = L.marker([Number(lat), Number(lng)], markerCfg);
3053
- // marker.on('click', function (e) { this.fireEvent('ItemClick', this, e); });
3054
- marker.on('dblclick', (e) => {
3055
- this._dbleClickOnMarker(e);
3056
- });
3057
3000
  marker.on('moveend', (e) => {
3058
- this._onMoveEnd(e, marker);
3001
+ this._onMoveEnd(e);
3059
3002
  });
3060
3003
  marker.on('move', (e) => {
3061
- this._onMove(e, marker);
3004
+ this._onMove(e);
3062
3005
  });
3063
3006
  return marker;
3064
3007
  }
3008
+ _onMove(e) {
3009
+ this.move.emit(e);
3010
+ }
3011
+ _onMoveEnd(e) {
3012
+ this.moveEnd.emit(e);
3013
+ }
3014
+ }
3015
+ BarsaGeographicLocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaGeographicLocationComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3016
+ 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", defaultLocation: "defaultLocation" }, outputs: { move: "move", moveEnd: "moveEnd", fullscreen: "fullscreen", 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 *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 });
3017
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaGeographicLocationComponent, decorators: [{
3018
+ type: Component,
3019
+ 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 *ngIf=\"showLocationButton\" fd-button glyph=\"map\" fdType=\"positive\" (click)=\"onCurrentLocation()\"></button>\n</div>\n", styles: [":host{display:block;min-height:300px;position:relative}\n"] }]
3020
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disableOrReadonly: [{
3021
+ type: Input
3022
+ }], currentLocation: [{
3023
+ type: Input
3024
+ }], setAutomaticLocation: [{
3025
+ type: Input
3026
+ }], showLocationButton: [{
3027
+ type: Input
3028
+ }], showFullscreenButton: [{
3029
+ type: Input
3030
+ }], defaultLocation: [{
3031
+ type: Input
3032
+ }], move: [{
3033
+ type: Output
3034
+ }], moveEnd: [{
3035
+ type: Output
3036
+ }], fullscreen: [{
3037
+ type: Output
3038
+ }], error: [{
3039
+ type: Output
3040
+ }] } });
3041
+
3042
+ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3043
+ constructor() {
3044
+ super(...arguments);
3045
+ this.fullscreen = false;
3046
+ this.currentLocation = [];
3047
+ this.latitude = 35.7568;
3048
+ this.longitude = 51.412;
3049
+ }
3065
3050
  get latitudeUi() {
3066
3051
  return this.customFormPanelUi._dictFieldUi.Latitude;
3067
3052
  }
3068
3053
  get longitudeUi() {
3069
3054
  return this.customFormPanelUi._dictFieldUi.Longitude;
3070
3055
  }
3071
- _onMove(e, marker) {
3072
- this.latitudeUi.value = e.latlng.lat;
3073
- this.longitudeUi.value = e.latlng.lng;
3056
+ openDialog(dialog) {
3057
+ this._dialogService.open(dialog, {
3058
+ responsivePadding: true,
3059
+ fullScreen: true,
3060
+ mobile: true,
3061
+ ariaLabelledBy: 'map',
3062
+ ariaDescribedBy: 'choose location',
3063
+ focusTrapped: true
3064
+ });
3065
+ }
3066
+ ngOnInit() {
3067
+ super.ngOnInit();
3068
+ this._setCurrentLocation(this.latitudeUi?.value, this.longitudeUi?.value);
3069
+ }
3070
+ onFullscreen() {
3071
+ this.fullscreen = true;
3072
+ this.openDialog(this.dialogTemplate);
3073
+ }
3074
+ onExistFullscreen() {
3075
+ this.fullscreen = false;
3076
+ this._cdr.detectChanges();
3077
+ }
3078
+ onOpenChange(isOpen) {
3079
+ this.fullscreen = isOpen;
3080
+ }
3081
+ onErrorNavigatorLocation(err) {
3082
+ const err2 = `خطا در دریافت موقعیت مکانی جاری. (${err.message})`;
3083
+ BarsaApi.Bw.Toast.Error(err2);
3074
3084
  }
3075
- _onMoveEnd(e, marker) {
3085
+ onMove(e) {
3086
+ this.latitude = e.latlng.lat;
3087
+ this.longitude = e.latlng.lng;
3088
+ }
3089
+ onMoveEnd(e) {
3090
+ this._valueChanged();
3091
+ }
3092
+ _setCurrentLocation(lat, lng) {
3093
+ if (lat && lng) {
3094
+ this.currentLocation = [lat, lng];
3095
+ }
3096
+ }
3097
+ _valueChanged() {
3098
+ this.latitudeUi.value = this.latitude;
3099
+ this.longitudeUi.value = this.longitude;
3076
3100
  this.latitudeUi.fireEvent('change', this.latitudeUi, this.latitudeUi.value);
3077
3101
  this.longitudeUi.fireEvent('change', this.longitudeUi, this.longitudeUi.value);
3078
- }
3079
- _dbleClickOnMarker(e) {
3080
- // debugger;
3102
+ this._setCurrentLocation(this.latitude, this.longitude);
3081
3103
  }
3082
3104
  }
3083
3105
  GeographicLocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: GeographicLocationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3084
- GeographicLocationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: GeographicLocationComponent, selector: "bdc-geographic-location", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"customFormPanelUi\">\n <bnrc-form *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\n</ng-container>\n", styles: [":host{display:block;min-height:300px}\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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3106
+ 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 || customFieldInfo.Draggable === false\"\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</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 [showFullscreenButton]=\"false\"\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 ></bdc-barsa-geographic-location>\n </fd-dialog-body>\n\n <fd-dialog-footer>\n <fd-button-bar\n fdType=\"standard\"\n [label]=\"'Close' | bbbTranslate\"\n (click)=\"onExistFullscreen(); dialog.close('Continue')\"\n [ariaLabel]=\"'Close' | bbbTranslate\"\n ></fd-button-bar>\n </fd-dialog-footer>\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: i3$3.ButtonBarComponent, selector: "fd-button-bar", inputs: ["fullWidth", "fdType", "title", "ariaLabel", "ariaLabelledby", "id"] }, { 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.DialogFooterComponent, selector: "fd-dialog-footer" }, { kind: "component", type: i5$1.DialogHeaderComponent, selector: "fd-dialog-header" }, { kind: "component", type: i6.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", "defaultLocation"], outputs: ["move", "moveEnd", "fullscreen", "error"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$2.BbbTranslatePipe, name: "bbbTranslate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
3085
3107
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: GeographicLocationComponent, decorators: [{
3086
3108
  type: Component,
3087
- args: [{ selector: 'bdc-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngIf=\"customFormPanelUi\">\n <bnrc-form *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\n</ng-container>\n", styles: [":host{display:block;min-height:300px}\n"] }]
3088
- }] });
3109
+ 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 || customFieldInfo.Draggable === false\"\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</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 [showFullscreenButton]=\"false\"\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 ></bdc-barsa-geographic-location>\n </fd-dialog-body>\n\n <fd-dialog-footer>\n <fd-button-bar\n fdType=\"standard\"\n [label]=\"'Close' | bbbTranslate\"\n (click)=\"onExistFullscreen(); dialog.close('Continue')\"\n [ariaLabel]=\"'Close' | bbbTranslate\"\n ></fd-button-bar>\n </fd-dialog-footer>\n </fd-dialog>\n</ng-template>\n", styles: [":host{display:block;position:relative}\n"] }]
3110
+ }], propDecorators: { dialogTemplate: [{
3111
+ type: ViewChild,
3112
+ args: ['confirmationDialog']
3113
+ }] } });
3089
3114
 
3090
3115
  const components = [
3091
3116
  LoginFormComponent,
@@ -3136,7 +3161,8 @@ const components = [
3136
3161
  BarsaDocumentListItemComponent,
3137
3162
  AcceptRejectComponent,
3138
3163
  FooterComponent,
3139
- GeographicLocationComponent
3164
+ GeographicLocationComponent,
3165
+ BarsaGeographicLocationComponent
3140
3166
  ];
3141
3167
  const pipes = [UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe];
3142
3168
  class BarsaDevelopComponentsModule extends BaseModule {
@@ -3196,7 +3222,8 @@ BarsaDevelopComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.
3196
3222
  BarsaDocumentListItemComponent,
3197
3223
  AcceptRejectComponent,
3198
3224
  FooterComponent,
3199
- GeographicLocationComponent, UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe], imports: [CommonModule,
3225
+ GeographicLocationComponent,
3226
+ BarsaGeographicLocationComponent, UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe], imports: [CommonModule,
3200
3227
  BarsaNovinRayCoreModule,
3201
3228
  ReactiveFormsModule,
3202
3229
  BarsaSapUiModule,
@@ -3252,7 +3279,8 @@ BarsaDevelopComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.
3252
3279
  BarsaDocumentListItemComponent,
3253
3280
  AcceptRejectComponent,
3254
3281
  FooterComponent,
3255
- GeographicLocationComponent] });
3282
+ GeographicLocationComponent,
3283
+ BarsaGeographicLocationComponent] });
3256
3284
  BarsaDevelopComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, providers: [UserMediaBaseService, WebBarcodeService], imports: [CommonModule,
3257
3285
  BarsaNovinRayCoreModule,
3258
3286
  ReactiveFormsModule,
@@ -3287,5 +3315,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
3287
3315
  * Generated bundle index. Do not edit.
3288
3316
  */
3289
3317
 
3290
- export { AcceptRejectComponent, AvatarComponent, BarcodeFormatPipe, BarcodeReaderComponent, BarcodeReaderDialogComponent, BarcodeReaderVideoComponent, BarsaDevelopComponentsModule, BarsaDocumentListItemComponent, BarsaDocumentsComponent, CardContentImageAndTitleComponent, CardContentLineChartComponent, CardHeaderBigImageTitleAndSubtitleComponent, CardHeaderKpiComponent, CardHeaderLogoTitleSubtitleComponent, CheckboxButtonComponent, EnumInfoMicroProccessFlowComponent, FooterComponent, FormChartContentComponent, FormContentQuickViewComponent, G4bDetailsComponent, G4bEstelamComponent, GeographicLocationComponent, LoginFormComponent, LoginSocialConncetionsComponent, MasterDetailCardFormComponent, MediaFileUploaderComponent, MicroProccessFlowComponent, MicroProcessFlowViewComponent, MoInfoMicroProccessFlowComponent, QueryStringFormObservableComponent, QueryStringObservableComponent, ReportButtonViewComponent, ReportLineChartViewComponent, ReportTabViewComponent, ResendVerificationCodeComponent, ServiceDeskCardContentMojavezhayAkhzShodeComponent, ServiceDeskFormLayoutContentMojavezComponent, ServiceDeskHeaderComponent, ServiceDeskServcieDetailComponent, ServiceDeskViewOfServicesComponent, SettingFormComponent, SubformInRowReportComponent, TabProcessViewComponent, TableViewVerticalColumnsComponent, TimerCountDownComponent, UiEnumSegmentedButtonComponent, UiNumRateComponent, UiPersonComponent, UiPicturesCarouselComponent, UiTextFieldSearchComponent, UlvContextMenuItemShowFileContentComponent };
3318
+ export { AcceptRejectComponent, AvatarComponent, BarcodeFormatPipe, BarcodeReaderComponent, BarcodeReaderDialogComponent, BarcodeReaderVideoComponent, BarsaDevelopComponentsModule, BarsaDocumentListItemComponent, BarsaDocumentsComponent, BarsaGeographicLocationComponent, CardContentImageAndTitleComponent, CardContentLineChartComponent, CardHeaderBigImageTitleAndSubtitleComponent, CardHeaderKpiComponent, CardHeaderLogoTitleSubtitleComponent, CheckboxButtonComponent, EnumInfoMicroProccessFlowComponent, FooterComponent, FormChartContentComponent, FormContentQuickViewComponent, G4bDetailsComponent, G4bEstelamComponent, GeographicLocationComponent, LoginFormComponent, LoginSocialConncetionsComponent, MasterDetailCardFormComponent, MediaFileUploaderComponent, MicroProccessFlowComponent, MicroProcessFlowViewComponent, MoInfoMicroProccessFlowComponent, QueryStringFormObservableComponent, QueryStringObservableComponent, ReportButtonViewComponent, ReportLineChartViewComponent, ReportTabViewComponent, ResendVerificationCodeComponent, ServiceDeskCardContentMojavezhayAkhzShodeComponent, ServiceDeskFormLayoutContentMojavezComponent, ServiceDeskHeaderComponent, ServiceDeskServcieDetailComponent, ServiceDeskViewOfServicesComponent, SettingFormComponent, SubformInRowReportComponent, TabProcessViewComponent, TableViewVerticalColumnsComponent, TimerCountDownComponent, UiEnumSegmentedButtonComponent, UiNumRateComponent, UiPersonComponent, UiPicturesCarouselComponent, UiTextFieldSearchComponent, UlvContextMenuItemShowFileContentComponent };
3291
3319
  //# sourceMappingURL=barsa-develop-components.mjs.map