barsa-develop-components 1.0.289 → 1.0.291

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.
@@ -2936,100 +2936,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2936
2936
  type: Input
2937
2937
  }] } });
2938
2938
 
2939
- const defaults = {
2940
- iconColor: '#1EB300',
2941
- iconAnchor: {
2942
- marker: [14, 36],
2943
- circle: [11, 10],
2944
- 'circle-dot': [5, 5],
2945
- 'rectangle-dot': [5, 6],
2946
- doughnut: [8, 8]
2947
- },
2948
- popupAnchor: {
2949
- marker: [0, -25],
2950
- circle: [-3, -76],
2951
- 'circle-dot': [0, -2],
2952
- 'rectangle-dot': [0, -2],
2953
- doughnut: [0, -2]
2954
- },
2955
- innerIconAnchor: {
2956
- marker: [-2, 5],
2957
- circle: [0, 2]
2958
- },
2959
- iconSize: {
2960
- marker: [28, 28],
2961
- circle: [22, 22],
2962
- 'circle-dot': [2, 2],
2963
- 'rectangle-dot': [2, 2],
2964
- doughnut: [15, 15]
2965
- }
2966
- };
2967
- L.BeautifyIcon = {
2968
- Icon: L.Icon.extend({
2969
- options: {
2970
- icon: 'leaf',
2971
- iconSize: defaults.iconSize.circle,
2972
- iconAnchor: defaults.iconAnchor.circle,
2973
- iconShape: 'circle',
2974
- iconStyle: '',
2975
- innerIconAnchor: [0, 3],
2976
- innerIconStyle: '',
2977
- isAlphaNumericIcon: false,
2978
- text: 1,
2979
- borderColor: defaults.iconColor,
2980
- borderWidth: 2,
2981
- borderStyle: 'solid',
2982
- backgroundColor: 'white',
2983
- textColor: defaults.iconColor,
2984
- customClasses: '',
2985
- spin: false,
2986
- prefix: 'sap-icon--',
2987
- html: ''
2988
- },
2989
- createIconInnerHtml() {
2990
- const options = this.options;
2991
- if (options.iconShape === 'circle-dot' ||
2992
- options.iconShape === 'rectangle-dot' ||
2993
- options.iconShape === 'doughnut') {
2994
- return '';
2995
- }
2996
- const innerIconStyle = this.getInnerIconStyle(options);
2997
- if (options.isAlphaNumericIcon) {
2998
- return '<div style="' + innerIconStyle + '">' + options.text + '</div>';
2999
- }
3000
- let spinClass = '';
3001
- if (options.spin) {
3002
- spinClass = ' fa-spin';
3003
- }
3004
- return ('<fd-icon class="' +
3005
- options.prefix +
3006
- ' ' +
3007
- options.prefix +
3008
- '-' +
3009
- options.icon +
3010
- spinClass +
3011
- '" style="' +
3012
- innerIconStyle +
3013
- '"></fd-icon>');
3014
- },
3015
- getInnerIconStyle(options) {
3016
- const innerAnchor = L.point(options.innerIconAnchor);
3017
- return ('color:' +
3018
- options.textColor +
3019
- ';margin-top:' +
3020
- innerAnchor.y +
3021
- 'px; margin-left:' +
3022
- innerAnchor.x +
3023
- 'px;' +
3024
- options.innerIconStyle);
3025
- }
3026
- })
3027
- };
3028
- class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3029
- constructor() {
3030
- super(...arguments);
3031
- this.id = getUniqueId(3);
3032
- this.applied = false;
2939
+ class BarsaGeographicLocationComponent extends BaseComponent {
2940
+ constructor(_el) {
2941
+ super();
2942
+ this._el = _el;
2943
+ this.move = new EventEmitter();
2944
+ this.moveEnd = new EventEmitter();
2945
+ this.fullscreen = new EventEmitter();
2946
+ this.error = new EventEmitter();
3033
2947
  this._navigatorOptions = {
3034
2948
  enableHighAccuracy: true,
3035
2949
  timeout: 5000,
@@ -3040,9 +2954,31 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3040
2954
  super.ngAfterViewInit();
3041
2955
  this._initilaize();
3042
2956
  }
3043
- _setGeoLocation(position) {
2957
+ ngOnChanges(changes) {
2958
+ super.ngOnChanges(changes);
2959
+ const { disableOrReadonly, currentLocation } = changes;
2960
+ if (disableOrReadonly && !disableOrReadonly.firstChange) {
2961
+ this._addMarkers(disableOrReadonly.currentValue, this.currentLocation);
2962
+ }
2963
+ if (currentLocation && !currentLocation.firstChange) {
2964
+ this._addMarkers(this.disableOrReadonly, currentLocation.currentValue);
2965
+ }
2966
+ }
2967
+ onCurrentLocation() {
2968
+ this._getNavigatorCurrentPosition();
2969
+ }
2970
+ onFullscreen() {
2971
+ this.fullscreen.emit();
2972
+ }
2973
+ _addMarkers(disableOrReadonly, pos) {
2974
+ this._setGeoLocation({ coords: { latitude: pos[0], longitude: pos[1] } }, disableOrReadonly);
2975
+ }
2976
+ _setGeoLocation(position, disableOrReadonly = false, setView = false) {
2977
+ if (this._marker) {
2978
+ this._map.removeLayer(this._marker);
2979
+ this._marker = null;
2980
+ }
3044
2981
  const { coords: { latitude, longitude } } = position;
3045
- this._map.setView([latitude, longitude], 16);
3046
2982
  L.tileLayer('https://api.mapbox.com/styles/v1/{id}/tiles/{z}/{x}/{y}?access_token={accessToken}', {
3047
2983
  attribution: '',
3048
2984
  maxZoom: 18,
@@ -3051,25 +2987,33 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3051
2987
  zoomOffset: -1,
3052
2988
  accessToken: 'pk.eyJ1IjoibXJlemFkZXZlbG9wZXIiLCJhIjoiY2p6anlrdTE2MDBxdjNtczZtYWFqbHFmdiJ9.SzniRy2KH6U3gdbOFnwA7Q'
3053
2989
  }).addTo(this._map);
3054
- const marker = this._createMarker('0', { mo: 'test' }, latitude, longitude, 'my location', 'assets/images/UploadTarget_32.png', true);
2990
+ if (setView) {
2991
+ this._map.setView([latitude, longitude], 18);
2992
+ }
2993
+ const marker = this._createMarker('0', { mo: 'test' }, latitude, longitude, 'my location', '', !disableOrReadonly);
3055
2994
  marker.addTo(this._map);
2995
+ this._marker = marker;
3056
2996
  }
3057
2997
  _initilaize() {
3058
- const defaultLatLng = [35.7568, 51.412];
3059
- if (this.latitudeUi && this.latitudeUi.value) {
3060
- defaultLatLng[0] = this.latitudeUi.value;
3061
- defaultLatLng[1] = this.longitudeUi.value;
3062
- }
3063
2998
  this._map = L.map(this._el.nativeElement);
3064
- this._setGeoLocation({ coords: { latitude: defaultLatLng[0], longitude: defaultLatLng[1] } });
3065
- this._getNavigatorCurrentPosition();
2999
+ const location = this.defaultLocation;
3000
+ if (this.currentLocation.length === 2) {
3001
+ location[0] = Number(this.currentLocation[0]);
3002
+ location[1] = Number(this.currentLocation[1]);
3003
+ }
3004
+ this._setGeoLocation({
3005
+ coords: { latitude: location[0], longitude: location[1] }
3006
+ }, this.disableOrReadonly, true);
3007
+ if (this.setAutomaticLocation && this.currentLocation.length === 0 && !this.disableOrReadonly) {
3008
+ this._getNavigatorCurrentPosition();
3009
+ }
3066
3010
  }
3067
3011
  _onErrorNavigatorLocation(err) {
3068
- console.error(err);
3012
+ this.error.emit(err);
3069
3013
  }
3070
3014
  _getNavigatorCurrentPosition() {
3071
3015
  if (navigator.geolocation) {
3072
- navigator.geolocation.getCurrentPosition((position) => this._setGeoLocation(position), (err) => this._onErrorNavigatorLocation(err), this._navigatorOptions);
3016
+ navigator.geolocation.getCurrentPosition((position) => this._setGeoLocation(position, this.disableOrReadonly, true), (err) => this._onErrorNavigatorLocation(err), this._navigatorOptions);
3073
3017
  }
3074
3018
  }
3075
3019
  _createMarker(id, mo, lat, lng, text, icon, draggable) {
@@ -3078,49 +3022,131 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3078
3022
  Data: mo,
3079
3023
  title: text,
3080
3024
  draggable,
3081
- icon: new L.BeautifyIcon.Icon({
3082
- icon: 'functional-location',
3083
- iconSize: [24, 24] // size of the icon
3025
+ icon: L.divIcon({
3026
+ html: icon
3027
+ ? `<fd-icon style="font-size:1rem" class="sap-icon--${icon}"></fd-icon>`
3028
+ : `<img style="width:32px" src="${'assets/svg/location-sign.svg'}"/>`,
3029
+ iconSize: [20, 20],
3030
+ className: 'my-location'
3084
3031
  })
3085
3032
  };
3086
3033
  // var marker = L.BeautifyMarker.marker([Number(lat), Number(lng)], {
3087
3034
  const marker = L.marker([Number(lat), Number(lng)], markerCfg);
3088
- // marker.on('click', function (e) { this.fireEvent('ItemClick', this, e); });
3089
- marker.on('dblclick', (e) => {
3090
- this._dbleClickOnMarker(e);
3091
- });
3092
3035
  marker.on('moveend', (e) => {
3093
- this._onMoveEnd(e, marker);
3036
+ this._onMoveEnd(e);
3094
3037
  });
3095
3038
  marker.on('move', (e) => {
3096
- this._onMove(e, marker);
3039
+ this._onMove(e);
3097
3040
  });
3098
3041
  return marker;
3099
3042
  }
3043
+ _onMove(e) {
3044
+ this.move.emit(e);
3045
+ }
3046
+ _onMoveEnd(e) {
3047
+ this.moveEnd.emit(e);
3048
+ }
3049
+ }
3050
+ BarsaGeographicLocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaGeographicLocationComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
3051
+ 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 });
3052
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaGeographicLocationComponent, decorators: [{
3053
+ type: Component,
3054
+ 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"] }]
3055
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disableOrReadonly: [{
3056
+ type: Input
3057
+ }], currentLocation: [{
3058
+ type: Input
3059
+ }], setAutomaticLocation: [{
3060
+ type: Input
3061
+ }], showLocationButton: [{
3062
+ type: Input
3063
+ }], showFullscreenButton: [{
3064
+ type: Input
3065
+ }], defaultLocation: [{
3066
+ type: Input
3067
+ }], move: [{
3068
+ type: Output
3069
+ }], moveEnd: [{
3070
+ type: Output
3071
+ }], fullscreen: [{
3072
+ type: Output
3073
+ }], error: [{
3074
+ type: Output
3075
+ }] } });
3076
+
3077
+ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
3078
+ constructor() {
3079
+ super(...arguments);
3080
+ this.fullscreen = false;
3081
+ this.currentLocation = [];
3082
+ this.latitude = 35.7568;
3083
+ this.longitude = 51.412;
3084
+ }
3100
3085
  get latitudeUi() {
3101
3086
  return this.customFormPanelUi._dictFieldUi.Latitude;
3102
3087
  }
3103
3088
  get longitudeUi() {
3104
3089
  return this.customFormPanelUi._dictFieldUi.Longitude;
3105
3090
  }
3106
- _onMove(e, marker) {
3107
- this.latitudeUi.value = e.latlng.lat;
3108
- this.longitudeUi.value = e.latlng.lng;
3091
+ openDialog(dialog) {
3092
+ this._dialogService.open(dialog, {
3093
+ responsivePadding: true,
3094
+ fullScreen: true,
3095
+ mobile: true,
3096
+ ariaLabelledBy: 'map',
3097
+ ariaDescribedBy: 'choose location',
3098
+ focusTrapped: true
3099
+ });
3109
3100
  }
3110
- _onMoveEnd(e, marker) {
3101
+ ngOnInit() {
3102
+ var _a, _b;
3103
+ super.ngOnInit();
3104
+ this._setCurrentLocation((_a = this.latitudeUi) === null || _a === void 0 ? void 0 : _a.value, (_b = this.longitudeUi) === null || _b === void 0 ? void 0 : _b.value);
3105
+ }
3106
+ onFullscreen() {
3107
+ this.fullscreen = true;
3108
+ this.openDialog(this.dialogTemplate);
3109
+ }
3110
+ onExistFullscreen() {
3111
+ this.fullscreen = false;
3112
+ this._cdr.detectChanges();
3113
+ }
3114
+ onOpenChange(isOpen) {
3115
+ this.fullscreen = isOpen;
3116
+ }
3117
+ onErrorNavigatorLocation(err) {
3118
+ const err2 = `خطا در دریافت موقعیت مکانی جاری. (${err.message})`;
3119
+ BarsaApi.Bw.Toast.Error(err2);
3120
+ }
3121
+ onMove(e) {
3122
+ this.latitude = e.latlng.lat;
3123
+ this.longitude = e.latlng.lng;
3124
+ }
3125
+ onMoveEnd(e) {
3126
+ this._valueChanged();
3127
+ }
3128
+ _setCurrentLocation(lat, lng) {
3129
+ if (lat && lng) {
3130
+ this.currentLocation = [lat, lng];
3131
+ }
3132
+ }
3133
+ _valueChanged() {
3134
+ this.latitudeUi.value = this.latitude;
3135
+ this.longitudeUi.value = this.longitude;
3111
3136
  this.latitudeUi.fireEvent('change', this.latitudeUi, this.latitudeUi.value);
3112
3137
  this.longitudeUi.fireEvent('change', this.longitudeUi, this.longitudeUi.value);
3113
- }
3114
- _dbleClickOnMarker(e) {
3115
- // debugger;
3138
+ this._setCurrentLocation(this.latitude, this.longitude);
3116
3139
  }
3117
3140
  }
3118
3141
  GeographicLocationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: GeographicLocationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
3119
- 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 });
3142
+ 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 });
3120
3143
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: GeographicLocationComponent, decorators: [{
3121
3144
  type: Component,
3122
- 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"] }]
3123
- }] });
3145
+ 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"] }]
3146
+ }], propDecorators: { dialogTemplate: [{
3147
+ type: ViewChild,
3148
+ args: ['confirmationDialog']
3149
+ }] } });
3124
3150
 
3125
3151
  const components = [
3126
3152
  LoginFormComponent,
@@ -3171,7 +3197,8 @@ const components = [
3171
3197
  BarsaDocumentListItemComponent,
3172
3198
  AcceptRejectComponent,
3173
3199
  FooterComponent,
3174
- GeographicLocationComponent
3200
+ GeographicLocationComponent,
3201
+ BarsaGeographicLocationComponent
3175
3202
  ];
3176
3203
  const pipes = [UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe];
3177
3204
  class BarsaDevelopComponentsModule extends BaseModule {
@@ -3231,7 +3258,8 @@ BarsaDevelopComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.
3231
3258
  BarsaDocumentListItemComponent,
3232
3259
  AcceptRejectComponent,
3233
3260
  FooterComponent,
3234
- GeographicLocationComponent, UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe], imports: [CommonModule,
3261
+ GeographicLocationComponent,
3262
+ BarsaGeographicLocationComponent, UiPersonPipe, BarcodeFormatPipe, MoListToFlowItemPipe, DataSourceToFlowItemPipe], imports: [CommonModule,
3235
3263
  BarsaNovinRayCoreModule,
3236
3264
  ReactiveFormsModule,
3237
3265
  BarsaSapUiModule,
@@ -3287,7 +3315,8 @@ BarsaDevelopComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.
3287
3315
  BarsaDocumentListItemComponent,
3288
3316
  AcceptRejectComponent,
3289
3317
  FooterComponent,
3290
- GeographicLocationComponent] });
3318
+ GeographicLocationComponent,
3319
+ BarsaGeographicLocationComponent] });
3291
3320
  BarsaDevelopComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BarsaDevelopComponentsModule, providers: [UserMediaBaseService, WebBarcodeService], imports: [CommonModule,
3292
3321
  BarsaNovinRayCoreModule,
3293
3322
  ReactiveFormsModule,
@@ -3322,5 +3351,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
3322
3351
  * Generated bundle index. Do not edit.
3323
3352
  */
3324
3353
 
3325
- 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 };
3354
+ 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 };
3326
3355
  //# sourceMappingURL=barsa-develop-components.mjs.map