barsa-develop-components 2.3.33 → 2.3.35
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.
|
@@ -3032,6 +3032,7 @@ class BarsaGeographicLocationComponent extends BaseComponent {
|
|
|
3032
3032
|
this.exitFullscreen = new EventEmitter();
|
|
3033
3033
|
this.errorEvent = new EventEmitter();
|
|
3034
3034
|
this.markerChange = new EventEmitter();
|
|
3035
|
+
this.signalMap = signal(null);
|
|
3035
3036
|
this._navigatorOptions = {
|
|
3036
3037
|
enableHighAccuracy: true,
|
|
3037
3038
|
timeout: 5000,
|
|
@@ -3045,7 +3046,7 @@ class BarsaGeographicLocationComponent extends BaseComponent {
|
|
|
3045
3046
|
this._setGeoLocation({
|
|
3046
3047
|
latitude: latitude.currentValue,
|
|
3047
3048
|
longitude: longitude.currentValue
|
|
3048
|
-
}, this.disableOrReadonly,
|
|
3049
|
+
}, this.disableOrReadonly, this.latitude !== latitude.currentValue || this.longitude !== longitude.currentValue, false);
|
|
3049
3050
|
}
|
|
3050
3051
|
}
|
|
3051
3052
|
ngAfterViewInit() {
|
|
@@ -3060,6 +3061,9 @@ class BarsaGeographicLocationComponent extends BaseComponent {
|
|
|
3060
3061
|
'Lib/leaflet/BeautifyMarker-master/leaflet-beautify-marker-icon-barsa.js'
|
|
3061
3062
|
], () => this._initilaize());
|
|
3062
3063
|
}
|
|
3064
|
+
onLongPress(latlng) {
|
|
3065
|
+
this._setGeoLocation({ latitude: latlng.lat, longitude: latlng.lng }, this.disableOrReadonly, false, true);
|
|
3066
|
+
}
|
|
3063
3067
|
onCurrentLocation() {
|
|
3064
3068
|
if (this.disableOrReadonly) {
|
|
3065
3069
|
return;
|
|
@@ -3077,6 +3081,7 @@ class BarsaGeographicLocationComponent extends BaseComponent {
|
|
|
3077
3081
|
}
|
|
3078
3082
|
_initilaize() {
|
|
3079
3083
|
this._map = L.map(this._el.nativeElement);
|
|
3084
|
+
this.signalMap.set(this._map);
|
|
3080
3085
|
const location = this.defaultLocation;
|
|
3081
3086
|
if (this.latitude) {
|
|
3082
3087
|
location[0] = Number(this.latitude);
|
|
@@ -3154,11 +3159,11 @@ class BarsaGeographicLocationComponent extends BaseComponent {
|
|
|
3154
3159
|
this.moveEnd.emit(e);
|
|
3155
3160
|
}
|
|
3156
3161
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaGeographicLocationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3157
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: BarsaGeographicLocationComponent, isStandalone: false, 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", errorEvent: "errorEvent", markerChange: "markerChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div
|
|
3162
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: BarsaGeographicLocationComponent, isStandalone: false, 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", errorEvent: "errorEvent", markerChange: "markerChange" }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "@if(signalMap()){\r\n<div\r\n style=\"position: absolute; z-index: 1000; display: flex; flex-direction: column; row-gap: 5px; left: 0; bottom: 0\"\r\n [leafletLongPress]=\"signalMap()\"\r\n (longPress)=\"onLongPress($event)\"\r\n>\r\n @if (showFullscreenButton) {\r\n <button fd-button glyph=\"resize\" fdType=\"positive\" (click)=\"onFullscreen()\"></button>\r\n } @if (showExitFullscreenButton) {\r\n <button fd-button glyph=\"exitfullscreen\" fdType=\"positive\" (click)=\"onExitFullscreen()\"></button>\r\n } @if (showLocationButton || disableOrReadonly) {\r\n <button fd-button glyph=\"map\" fdType=\"positive\" (click)=\"onCurrentLocation()\"></button>\r\n }\r\n</div>\r\n}\r\n", styles: [":host{display:block;min-height:300px;position:relative}\n"], dependencies: [{ kind: "directive", type: i2$1.LeafletLongPressDirective, selector: "[leafletLongPress]", inputs: ["leafletLongPress", "longPressDuration"], outputs: ["longPress"] }, { kind: "component", type: i1$2.ButtonComponent, selector: "button[fd-button], a[fd-button], span[fd-button]", inputs: ["class"], exportAs: ["fd-button"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3158
3163
|
}
|
|
3159
3164
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: BarsaGeographicLocationComponent, decorators: [{
|
|
3160
3165
|
type: Component,
|
|
3161
|
-
args: [{ selector: 'bdc-barsa-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "<div
|
|
3166
|
+
args: [{ selector: 'bdc-barsa-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if(signalMap()){\r\n<div\r\n style=\"position: absolute; z-index: 1000; display: flex; flex-direction: column; row-gap: 5px; left: 0; bottom: 0\"\r\n [leafletLongPress]=\"signalMap()\"\r\n (longPress)=\"onLongPress($event)\"\r\n>\r\n @if (showFullscreenButton) {\r\n <button fd-button glyph=\"resize\" fdType=\"positive\" (click)=\"onFullscreen()\"></button>\r\n } @if (showExitFullscreenButton) {\r\n <button fd-button glyph=\"exitfullscreen\" fdType=\"positive\" (click)=\"onExitFullscreen()\"></button>\r\n } @if (showLocationButton || disableOrReadonly) {\r\n <button fd-button glyph=\"map\" fdType=\"positive\" (click)=\"onCurrentLocation()\"></button>\r\n }\r\n</div>\r\n}\r\n", styles: [":host{display:block;min-height:300px;position:relative}\n"] }]
|
|
3162
3167
|
}], propDecorators: { disableOrReadonly: [{
|
|
3163
3168
|
type: Input
|
|
3164
3169
|
}], setAutomaticLocation: [{
|
|
@@ -3195,6 +3200,7 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
|
|
|
3195
3200
|
constructor() {
|
|
3196
3201
|
super(...arguments);
|
|
3197
3202
|
this.fullscreen = false;
|
|
3203
|
+
this._dialogService = inject(DialogService);
|
|
3198
3204
|
}
|
|
3199
3205
|
get latitudeUi() {
|
|
3200
3206
|
return this.customFormPanelUi._dictFieldUi.Latitude;
|
|
@@ -3205,7 +3211,8 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
|
|
|
3205
3211
|
openDialog(dialog) {
|
|
3206
3212
|
this._dialogService.open(dialog, {
|
|
3207
3213
|
responsivePadding: true,
|
|
3208
|
-
|
|
3214
|
+
width: '100svw',
|
|
3215
|
+
height: '100svh',
|
|
3209
3216
|
mobile: true,
|
|
3210
3217
|
ariaLabelledBy: 'map',
|
|
3211
3218
|
ariaDescribedBy: 'choose location',
|
|
@@ -3260,11 +3267,11 @@ class GeographicLocationComponent extends UiMoInfoSubFormUiComponent {
|
|
|
3260
3267
|
this.longitudeUi.fireEvent('change', this.longitudeUi, this.longitudeUi.value);
|
|
3261
3268
|
}
|
|
3262
3269
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: GeographicLocationComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
3263
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: GeographicLocationComponent, isStandalone: false, selector: "bdc-geographic-location", viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["confirmationDialog"], descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (customFormPanelUi) {\r\n<bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\r\n} @if (!fullscreen) {\r\n<ng-container *ngTemplateOutlet=\"map; context: { inDialog: false }\"></ng-container>\r\n}\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\r\n <fd-dialog-
|
|
3270
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: GeographicLocationComponent, isStandalone: false, selector: "bdc-geographic-location", viewQueries: [{ propertyName: "dialogTemplate", first: true, predicate: ["confirmationDialog"], descendants: true }], usesInheritance: true, ngImport: i0, template: "@if (customFormPanelUi) {\r\n<bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\r\n} @if (!fullscreen) {\r\n<ng-container *ngTemplateOutlet=\"map; context: { inDialog: false }\"></ng-container>\r\n}\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\r\n <fd-dialog-body>\r\n <ng-container *ngTemplateOutlet=\"map; context: { inDialog: true, dialog: dialog }\"></ng-container>\r\n </fd-dialog-body>\r\n </fd-dialog>\r\n</ng-template>\r\n\r\n<ng-template #map let-inDialog=\"inDialog\" let-dialog=\"dialog\">\r\n <bdc-barsa-geographic-location \r\n [style.height]=\"inDialog ? '100svh !important' : null\"\r\n [defaultLocation]=\"[35.7568, 51.412]\"\r\n [latitude]=\"latValue\"\r\n [longitude]=\"lngValue\"\r\n [showExitFullscreenButton]=\"inDialog\"\r\n [showFullscreenButton]=\"!inDialog && customFieldInfo.ShowFullscreenButton\"\r\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\r\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\r\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true\"\r\n [draggable]=\"customFieldInfo.Draggable === true\"\r\n (fullscreen)=\"onFullscreen()\"\r\n (markerChange)=\"onMarkerChange($event)\"\r\n (move)=\"onMove($event)\"\r\n (errorEvent)=\"onErrorNavigatorLocation($event)\"\r\n (moveEnd)=\"onMoveEnd($event)\"\r\n (exitFullscreen)=\"onExistFullscreen(); dialog && dialog.close('Continue')\"\r\n ></bdc-barsa-geographic-location>\r\n</ng-template>\r\n", styles: [":host{display:block;position:relative}\n"], dependencies: [{ kind: "directive", type: i1$3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$1.FormComponent, selector: "bnrc-form", inputs: ["params", "customFormPanelUi", "formPanelCtrl", "UlvMainCtrlr", "formPanelCtrlId", "saveOnChange", "inlineEditInReport"], outputs: ["titleChanged", "moChanged", "formClose", "uiComponent", "formRendered", "bruleAction", "beforeTransition", "afterTransition"] }, { kind: "directive", type: i2$1.UntilInViewDirective, selector: "[untilInView]", inputs: ["untilInView", "intersectionDebounce"] }, { kind: "component", type: i2$3.DialogComponent, selector: "fd-dialog", inputs: ["class", "dialogRef", "dialogConfig"] }, { kind: "component", type: i2$3.DialogBodyComponent, selector: "fd-dialog-body", inputs: ["disablePaddings"] }, { kind: "component", type: BarsaGeographicLocationComponent, selector: "bdc-barsa-geographic-location", inputs: ["disableOrReadonly", "setAutomaticLocation", "showLocationButton", "showFullscreenButton", "showExitFullscreenButton", "draggable", "defaultLocation", "latitude", "longitude"], outputs: ["move", "moveEnd", "fullscreen", "exitFullscreen", "errorEvent", "markerChange"] }, { kind: "pipe", type: i1$3.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
3264
3271
|
}
|
|
3265
3272
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImport: i0, type: GeographicLocationComponent, decorators: [{
|
|
3266
3273
|
type: Component,
|
|
3267
|
-
args: [{ selector: 'bdc-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (customFormPanelUi) {\r\n<bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\r\n} @if (!fullscreen) {\r\n<ng-container *ngTemplateOutlet=\"map; context: { inDialog: false }\"></ng-container>\r\n}\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\r\n <fd-dialog-
|
|
3274
|
+
args: [{ selector: 'bdc-geographic-location', changeDetection: ChangeDetectionStrategy.OnPush, standalone: false, template: "@if (customFormPanelUi) {\r\n<bnrc-form style=\"display: none\" *untilInView=\"el\" [customFormPanelUi]=\"customFormPanelUi\"></bnrc-form>\r\n} @if (!fullscreen) {\r\n<ng-container *ngTemplateOutlet=\"map; context: { inDialog: false }\"></ng-container>\r\n}\r\n\r\n<ng-template let-dialog let-dialogConfig=\"dialogConfig\" #confirmationDialog>\r\n <fd-dialog [dialogConfig]=\"dialogConfig\" [dialogRef]=\"dialog\">\r\n <fd-dialog-body>\r\n <ng-container *ngTemplateOutlet=\"map; context: { inDialog: true, dialog: dialog }\"></ng-container>\r\n </fd-dialog-body>\r\n </fd-dialog>\r\n</ng-template>\r\n\r\n<ng-template #map let-inDialog=\"inDialog\" let-dialog=\"dialog\">\r\n <bdc-barsa-geographic-location \r\n [style.height]=\"inDialog ? '100svh !important' : null\"\r\n [defaultLocation]=\"[35.7568, 51.412]\"\r\n [latitude]=\"latValue\"\r\n [longitude]=\"lngValue\"\r\n [showExitFullscreenButton]=\"inDialog\"\r\n [showFullscreenButton]=\"!inDialog && customFieldInfo.ShowFullscreenButton\"\r\n [showLocationButton]=\"customFieldInfo.ShowLocationButton\"\r\n [setAutomaticLocation]=\"customFieldInfo.GetCurrentLocation\"\r\n [disableOrReadonly]=\"(disableOrReadonly$ | async) === true\"\r\n [draggable]=\"customFieldInfo.Draggable === true\"\r\n (fullscreen)=\"onFullscreen()\"\r\n (markerChange)=\"onMarkerChange($event)\"\r\n (move)=\"onMove($event)\"\r\n (errorEvent)=\"onErrorNavigatorLocation($event)\"\r\n (moveEnd)=\"onMoveEnd($event)\"\r\n (exitFullscreen)=\"onExistFullscreen(); dialog && dialog.close('Continue')\"\r\n ></bdc-barsa-geographic-location>\r\n</ng-template>\r\n", styles: [":host{display:block;position:relative}\n"] }]
|
|
3268
3275
|
}], propDecorators: { dialogTemplate: [{
|
|
3269
3276
|
type: ViewChild,
|
|
3270
3277
|
args: ['confirmationDialog']
|