adb-shared 22.0.0-beta.3 → 22.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/adb-shared-map.mjs +137 -85
- package/fesm2022/adb-shared-map.mjs.map +1 -1
- package/fesm2022/adb-shared.mjs +168 -8
- package/fesm2022/adb-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/types/adb-shared-map.d.ts +56 -26
- package/types/adb-shared.d.ts +46 -1
package/fesm2022/adb-shared.mjs
CHANGED
|
@@ -4225,6 +4225,7 @@ var GenericPickerComponent = class GenericPickerComponent {
|
|
|
4225
4225
|
loadById;
|
|
4226
4226
|
disabled = false;
|
|
4227
4227
|
placeholder = "";
|
|
4228
|
+
inputId;
|
|
4228
4229
|
itemTemplate;
|
|
4229
4230
|
selectItemChange = new EventEmitter();
|
|
4230
4231
|
focus = new EventEmitter();
|
|
@@ -4263,6 +4264,7 @@ var GenericPickerComponent = class GenericPickerComponent {
|
|
|
4263
4264
|
}));
|
|
4264
4265
|
}
|
|
4265
4266
|
onModelChange() {
|
|
4267
|
+
this.error = null;
|
|
4266
4268
|
this.rowIndex = -1;
|
|
4267
4269
|
this.loading = true;
|
|
4268
4270
|
this.showPop = true;
|
|
@@ -4318,6 +4320,7 @@ var GenericPickerComponent = class GenericPickerComponent {
|
|
|
4318
4320
|
loadById: "loadById",
|
|
4319
4321
|
disabled: "disabled",
|
|
4320
4322
|
placeholder: "placeholder",
|
|
4323
|
+
inputId: "inputId",
|
|
4321
4324
|
initialValue: "initialValue"
|
|
4322
4325
|
},
|
|
4323
4326
|
outputs: {
|
|
@@ -4331,7 +4334,7 @@ var GenericPickerComponent = class GenericPickerComponent {
|
|
|
4331
4334
|
descendants: true
|
|
4332
4335
|
}],
|
|
4333
4336
|
ngImport: i0,
|
|
4334
|
-
template: "<div (adbClickOutside)=\"resetPopup()\">\n <div class=\"input-group\">\n <input [(ngModel)]=\"searchQuery\" class=\"form-control\" role=\"combobox\" aria-autocomplete=\"list\" [attr.aria-expanded]=\"showPop\" aria-controls=\"picker-listbox\" [disabled]=\"disabled\" autocomplete=\"off\" (keyup.arrowdown)=\"onArrowDown()\"\n (keyup.arrowup)=\"onArrowUp()\" (keydown.enter)=\"onEnter($event)\" (keydown.escape)=\"resetPopup()\" (keydown.tab)=\"resetPopup()\" (ngModelChange)=\"onModelChange()\" (focus)=\"focus.emit($event)\" [placeholder]=\"placeholder\" />\n @if (searchQuery && !showPop) {\n <div>\n <button type=\"button\" (click)=\"resetModel()\" class=\"btn btn-secondary border border-start-0\">\n <span class=\"bi bi-x\"></span>\n </button>\n </div>\n }\n </div>\n</div>\n@let items = items$ | async;\n@if (showPop) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div [class.loading]=\"loading\">\n @if (error) {\n <div class=\"alert alert-danger mb-0\">\n Serverfel\n </div>\n }\n @else {\n <ul class=\"list-group list-group-flush\" role=\"listbox\" id=\"picker-listbox\">\n @for (item of items; track item; let i = $index) {\n <li role=\"option\" class=\"list-group-item list-group-item-action pointer\" [class.active]=\"i === rowIndex\" (click)=\"$event.preventDefault(); $event.stopPropagation(); selectItem(item)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, searchQuery: searchQuery }\"></ng-container>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n</div>\n}",
|
|
4337
|
+
template: "<div (adbClickOutside)=\"resetPopup()\">\n <div class=\"input-group\">\n <input [(ngModel)]=\"searchQuery\" [attr.id]=\"inputId\" class=\"form-control\" role=\"combobox\" aria-autocomplete=\"list\" [attr.aria-expanded]=\"showPop\" [attr.aria-controls]=\"inputId ? inputId + '-listbox' : 'picker-listbox'\" [disabled]=\"disabled\" autocomplete=\"off\" (keyup.arrowdown)=\"onArrowDown()\"\n (keyup.arrowup)=\"onArrowUp()\" (keydown.enter)=\"onEnter($event)\" (keydown.escape)=\"resetPopup()\" (keydown.tab)=\"resetPopup()\" (ngModelChange)=\"onModelChange()\" (focus)=\"focus.emit($event)\" [placeholder]=\"placeholder\" />\n @if (searchQuery && !showPop) {\n <div>\n <button type=\"button\" (click)=\"resetModel()\" class=\"btn btn-secondary border border-start-0\">\n <span class=\"bi bi-x\"></span>\n </button>\n </div>\n }\n </div>\n</div>\n@let items = items$ | async;\n@if (showPop) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div [class.loading]=\"loading\">\n @if (error) {\n <div class=\"alert alert-danger mb-0\">\n Serverfel\n </div>\n }\n @else {\n <ul class=\"list-group list-group-flush\" role=\"listbox\" [id]=\"inputId ? inputId + '-listbox' : 'picker-listbox'\">\n @for (item of items; track item; let i = $index) {\n <li role=\"option\" class=\"list-group-item list-group-item-action pointer\" [class.active]=\"i === rowIndex\" (click)=\"$event.preventDefault(); $event.stopPropagation(); selectItem(item)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, searchQuery: searchQuery }\"></ng-container>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n</div>\n}\n",
|
|
4335
4338
|
dependencies: [
|
|
4336
4339
|
{
|
|
4337
4340
|
kind: "directive",
|
|
@@ -4377,8 +4380,7 @@ var GenericPickerComponent = class GenericPickerComponent {
|
|
|
4377
4380
|
type: i1$4.AsyncPipe,
|
|
4378
4381
|
name: "async"
|
|
4379
4382
|
}
|
|
4380
|
-
]
|
|
4381
|
-
changeDetection: i0.ChangeDetectionStrategy.Eager
|
|
4383
|
+
]
|
|
4382
4384
|
});
|
|
4383
4385
|
};
|
|
4384
4386
|
i0.ɵɵngDeclareClassMetadata({
|
|
@@ -4390,9 +4392,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4390
4392
|
type: Component,
|
|
4391
4393
|
args: [{
|
|
4392
4394
|
selector: "adb-generic-picker",
|
|
4393
|
-
changeDetection: ChangeDetectionStrategy.Eager,
|
|
4394
4395
|
standalone: false,
|
|
4395
|
-
template: "<div (adbClickOutside)=\"resetPopup()\">\n <div class=\"input-group\">\n <input [(ngModel)]=\"searchQuery\" class=\"form-control\" role=\"combobox\" aria-autocomplete=\"list\" [attr.aria-expanded]=\"showPop\" aria-controls=\"picker-listbox\" [disabled]=\"disabled\" autocomplete=\"off\" (keyup.arrowdown)=\"onArrowDown()\"\n (keyup.arrowup)=\"onArrowUp()\" (keydown.enter)=\"onEnter($event)\" (keydown.escape)=\"resetPopup()\" (keydown.tab)=\"resetPopup()\" (ngModelChange)=\"onModelChange()\" (focus)=\"focus.emit($event)\" [placeholder]=\"placeholder\" />\n @if (searchQuery && !showPop) {\n <div>\n <button type=\"button\" (click)=\"resetModel()\" class=\"btn btn-secondary border border-start-0\">\n <span class=\"bi bi-x\"></span>\n </button>\n </div>\n }\n </div>\n</div>\n@let items = items$ | async;\n@if (showPop) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div [class.loading]=\"loading\">\n @if (error) {\n <div class=\"alert alert-danger mb-0\">\n Serverfel\n </div>\n }\n @else {\n <ul class=\"list-group list-group-flush\" role=\"listbox\" id=\"picker-listbox\">\n @for (item of items; track item; let i = $index) {\n <li role=\"option\" class=\"list-group-item list-group-item-action pointer\" [class.active]=\"i === rowIndex\" (click)=\"$event.preventDefault(); $event.stopPropagation(); selectItem(item)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, searchQuery: searchQuery }\"></ng-container>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n</div>\n}"
|
|
4396
|
+
template: "<div (adbClickOutside)=\"resetPopup()\">\n <div class=\"input-group\">\n <input [(ngModel)]=\"searchQuery\" [attr.id]=\"inputId\" class=\"form-control\" role=\"combobox\" aria-autocomplete=\"list\" [attr.aria-expanded]=\"showPop\" [attr.aria-controls]=\"inputId ? inputId + '-listbox' : 'picker-listbox'\" [disabled]=\"disabled\" autocomplete=\"off\" (keyup.arrowdown)=\"onArrowDown()\"\n (keyup.arrowup)=\"onArrowUp()\" (keydown.enter)=\"onEnter($event)\" (keydown.escape)=\"resetPopup()\" (keydown.tab)=\"resetPopup()\" (ngModelChange)=\"onModelChange()\" (focus)=\"focus.emit($event)\" [placeholder]=\"placeholder\" />\n @if (searchQuery && !showPop) {\n <div>\n <button type=\"button\" (click)=\"resetModel()\" class=\"btn btn-secondary border border-start-0\">\n <span class=\"bi bi-x\"></span>\n </button>\n </div>\n }\n </div>\n</div>\n@let items = items$ | async;\n@if (showPop) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div [class.loading]=\"loading\">\n @if (error) {\n <div class=\"alert alert-danger mb-0\">\n Serverfel\n </div>\n }\n @else {\n <ul class=\"list-group list-group-flush\" role=\"listbox\" [id]=\"inputId ? inputId + '-listbox' : 'picker-listbox'\">\n @for (item of items; track item; let i = $index) {\n <li role=\"option\" class=\"list-group-item list-group-item-action pointer\" [class.active]=\"i === rowIndex\" (click)=\"$event.preventDefault(); $event.stopPropagation(); selectItem(item)\">\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item, searchQuery: searchQuery }\"></ng-container>\n </li>\n }\n </ul>\n }\n </div>\n </div>\n</div>\n}\n"
|
|
4396
4397
|
}]
|
|
4397
4398
|
}],
|
|
4398
4399
|
propDecorators: {
|
|
@@ -4401,6 +4402,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4401
4402
|
loadById: [{ type: Input }],
|
|
4402
4403
|
disabled: [{ type: Input }],
|
|
4403
4404
|
placeholder: [{ type: Input }],
|
|
4405
|
+
inputId: [{ type: Input }],
|
|
4404
4406
|
itemTemplate: [{
|
|
4405
4407
|
type: ContentChild,
|
|
4406
4408
|
args: ["itemTemplate"]
|
|
@@ -4552,6 +4554,7 @@ var AdbTaxonPickerComponent = class AdbTaxonPickerComponent {
|
|
|
4552
4554
|
"loadById",
|
|
4553
4555
|
"disabled",
|
|
4554
4556
|
"placeholder",
|
|
4557
|
+
"inputId",
|
|
4555
4558
|
"initialValue"
|
|
4556
4559
|
],
|
|
4557
4560
|
outputs: ["selectItemChange", "focus"]
|
|
@@ -4691,7 +4694,7 @@ var AdbAreaPickerComponent = class AdbAreaPickerComponent {
|
|
|
4691
4694
|
multi: true
|
|
4692
4695
|
}],
|
|
4693
4696
|
ngImport: i0,
|
|
4694
|
-
template: "<adb-generic-picker [search]=\"getAreas\" [displayFn]=\"displayArea\" [placeholder]=\"placeholder\" [disabled]=\"isDisabled\" [initialValue]=\"initialValue()\" (selectItemChange)=\"onSelect($event)\" (focus)=\"onFocus()\">\n <ng-template #itemTemplate let-area let-searchQuery=\"searchQuery\">\n <div class=\"d-flex flex-wrap gap-1 align-items-center\">\n <div innerHTML=\"{{area.name|adbHighlight: searchQuery}}\"></div>\n <div>{{'AREATYPES.'+area.areaType|translate}}</div>\n </div>\n </ng-template>\n</adb-generic-picker>\n@if (showPrefill && prefill) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div class=\"p-3\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n}",
|
|
4697
|
+
template: "<adb-generic-picker [search]=\"getAreas\" [displayFn]=\"displayArea\" [placeholder]=\"placeholder\" [disabled]=\"isDisabled\" [initialValue]=\"initialValue()\" (selectItemChange)=\"onSelect($event)\" (focus)=\"onFocus()\">\n <ng-template #itemTemplate let-area let-searchQuery=\"searchQuery\">\n <div class=\"d-flex flex-wrap gap-1 align-items-center\">\n <div innerHTML=\"{{area.name|adbHighlight: searchQuery}}\"></div>\n <div class=\"ms-auto\">{{'AREATYPES.'+area.areaType|translate}}</div>\n </div>\n </ng-template>\n</adb-generic-picker>\n@if (showPrefill && prefill) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div class=\"p-3\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n}\n",
|
|
4695
4698
|
dependencies: [
|
|
4696
4699
|
{
|
|
4697
4700
|
kind: "component",
|
|
@@ -4703,6 +4706,7 @@ var AdbAreaPickerComponent = class AdbAreaPickerComponent {
|
|
|
4703
4706
|
"loadById",
|
|
4704
4707
|
"disabled",
|
|
4705
4708
|
"placeholder",
|
|
4709
|
+
"inputId",
|
|
4706
4710
|
"initialValue"
|
|
4707
4711
|
],
|
|
4708
4712
|
outputs: ["selectItemChange", "focus"]
|
|
@@ -4737,7 +4741,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4737
4741
|
useExisting: forwardRef(() => AdbAreaPickerComponent),
|
|
4738
4742
|
multi: true
|
|
4739
4743
|
}],
|
|
4740
|
-
template: "<adb-generic-picker [search]=\"getAreas\" [displayFn]=\"displayArea\" [placeholder]=\"placeholder\" [disabled]=\"isDisabled\" [initialValue]=\"initialValue()\" (selectItemChange)=\"onSelect($event)\" (focus)=\"onFocus()\">\n <ng-template #itemTemplate let-area let-searchQuery=\"searchQuery\">\n <div class=\"d-flex flex-wrap gap-1 align-items-center\">\n <div innerHTML=\"{{area.name|adbHighlight: searchQuery}}\"></div>\n <div>{{'AREATYPES.'+area.areaType|translate}}</div>\n </div>\n </ng-template>\n</adb-generic-picker>\n@if (showPrefill && prefill) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div class=\"p-3\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n}"
|
|
4744
|
+
template: "<adb-generic-picker [search]=\"getAreas\" [displayFn]=\"displayArea\" [placeholder]=\"placeholder\" [disabled]=\"isDisabled\" [initialValue]=\"initialValue()\" (selectItemChange)=\"onSelect($event)\" (focus)=\"onFocus()\">\n <ng-template #itemTemplate let-area let-searchQuery=\"searchQuery\">\n <div class=\"d-flex flex-wrap gap-1 align-items-center\">\n <div innerHTML=\"{{area.name|adbHighlight: searchQuery}}\"></div>\n <div class=\"ms-auto\">{{'AREATYPES.'+area.areaType|translate}}</div>\n </div>\n </ng-template>\n</adb-generic-picker>\n@if (showPrefill && prefill) {\n<div class=\"pop\">\n <div class=\"pop-body\">\n <div class=\"p-3\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>\n}\n"
|
|
4741
4745
|
}]
|
|
4742
4746
|
}],
|
|
4743
4747
|
ctorParameters: () => [
|
|
@@ -4755,6 +4759,158 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4755
4759
|
prefill: [{ type: Input }]
|
|
4756
4760
|
}
|
|
4757
4761
|
});
|
|
4762
|
+
var AdbLocationPickerComponent = class AdbLocationPickerComponent {
|
|
4763
|
+
http;
|
|
4764
|
+
placeholder = input("Sök fyndplats", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
4765
|
+
inputId = input(...ngDevMode ? [void 0, { debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
4766
|
+
initialValue = signal(null, ...ngDevMode ? [{ debugName: "initialValue" }] : /* istanbul ignore next */ []);
|
|
4767
|
+
disabled = signal(false, ...ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []);
|
|
4768
|
+
locationsUrl = "https://sos-search-st.wt.artdata.slu.se/Locations";
|
|
4769
|
+
lookup;
|
|
4770
|
+
onChange = () => {};
|
|
4771
|
+
onTouched = () => {};
|
|
4772
|
+
constructor(http) {
|
|
4773
|
+
this.http = http;
|
|
4774
|
+
}
|
|
4775
|
+
searchLocations = (query) => {
|
|
4776
|
+
const name = query.trim();
|
|
4777
|
+
if (!name) return of({ items: [] });
|
|
4778
|
+
return this.http.post(`${this.locationsUrl}/search`, { locationNameFilter: `*${name}*` }, { params: {
|
|
4779
|
+
skip: 0,
|
|
4780
|
+
take: 10
|
|
4781
|
+
} }).pipe(map((items) => ({ items: items.filter((item) => item.id && item.name) })));
|
|
4782
|
+
};
|
|
4783
|
+
displayLocation = (location) => location.name;
|
|
4784
|
+
selectLocation(location) {
|
|
4785
|
+
this.lookup?.unsubscribe();
|
|
4786
|
+
this.onChange(location?.id ?? null);
|
|
4787
|
+
this.onTouched();
|
|
4788
|
+
}
|
|
4789
|
+
writeValue(id) {
|
|
4790
|
+
this.lookup?.unsubscribe();
|
|
4791
|
+
this.initialValue.set(id ? {
|
|
4792
|
+
id,
|
|
4793
|
+
name: id
|
|
4794
|
+
} : null);
|
|
4795
|
+
if (!id) return;
|
|
4796
|
+
this.lookup = this.http.post(this.locationsUrl, [id]).subscribe({
|
|
4797
|
+
next: ([location]) => {
|
|
4798
|
+
if (location?.locality) this.initialValue.set({
|
|
4799
|
+
id,
|
|
4800
|
+
name: location.locality
|
|
4801
|
+
});
|
|
4802
|
+
},
|
|
4803
|
+
error: () => {}
|
|
4804
|
+
});
|
|
4805
|
+
}
|
|
4806
|
+
registerOnChange(fn) {
|
|
4807
|
+
this.onChange = fn;
|
|
4808
|
+
}
|
|
4809
|
+
registerOnTouched(fn) {
|
|
4810
|
+
this.onTouched = fn;
|
|
4811
|
+
}
|
|
4812
|
+
setDisabledState(disabled) {
|
|
4813
|
+
this.disabled.set(disabled);
|
|
4814
|
+
}
|
|
4815
|
+
ngOnDestroy() {
|
|
4816
|
+
this.lookup?.unsubscribe();
|
|
4817
|
+
}
|
|
4818
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
4819
|
+
minVersion: "12.0.0",
|
|
4820
|
+
version: "22.2.4",
|
|
4821
|
+
ngImport: i0,
|
|
4822
|
+
type: AdbLocationPickerComponent,
|
|
4823
|
+
deps: [{ token: i1$1.HttpClient }],
|
|
4824
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
4825
|
+
});
|
|
4826
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
4827
|
+
minVersion: "17.1.0",
|
|
4828
|
+
version: "22.2.4",
|
|
4829
|
+
type: AdbLocationPickerComponent,
|
|
4830
|
+
isStandalone: false,
|
|
4831
|
+
selector: "adb-location-picker",
|
|
4832
|
+
inputs: {
|
|
4833
|
+
placeholder: {
|
|
4834
|
+
classPropertyName: "placeholder",
|
|
4835
|
+
publicName: "placeholder",
|
|
4836
|
+
isSignal: true,
|
|
4837
|
+
isRequired: false,
|
|
4838
|
+
transformFunction: null
|
|
4839
|
+
},
|
|
4840
|
+
inputId: {
|
|
4841
|
+
classPropertyName: "inputId",
|
|
4842
|
+
publicName: "inputId",
|
|
4843
|
+
isSignal: true,
|
|
4844
|
+
isRequired: false,
|
|
4845
|
+
transformFunction: null
|
|
4846
|
+
}
|
|
4847
|
+
},
|
|
4848
|
+
providers: [{
|
|
4849
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4850
|
+
useExisting: forwardRef(() => AdbLocationPickerComponent),
|
|
4851
|
+
multi: true
|
|
4852
|
+
}],
|
|
4853
|
+
ngImport: i0,
|
|
4854
|
+
template: "<adb-generic-picker\n [search]=\"searchLocations\"\n [displayFn]=\"displayLocation\"\n [placeholder]=\"placeholder()\"\n [inputId]=\"inputId()\"\n [disabled]=\"disabled()\"\n [initialValue]=\"initialValue()\"\n (selectItemChange)=\"selectLocation($event)\">\n <ng-template #itemTemplate let-location let-searchQuery=\"searchQuery\">\n <div class=\"d-flex flex-wrap gap-1 align-items-center\">\n <div [innerHTML]=\"location.name | adbHighlight: searchQuery\"></div>\n <div class=\"ms-auto\">{{ location.municipality }}</div>\n </div>\n </ng-template>\n</adb-generic-picker>\n",
|
|
4855
|
+
dependencies: [{
|
|
4856
|
+
kind: "component",
|
|
4857
|
+
type: GenericPickerComponent,
|
|
4858
|
+
selector: "adb-generic-picker",
|
|
4859
|
+
inputs: [
|
|
4860
|
+
"search",
|
|
4861
|
+
"displayFn",
|
|
4862
|
+
"loadById",
|
|
4863
|
+
"disabled",
|
|
4864
|
+
"placeholder",
|
|
4865
|
+
"inputId",
|
|
4866
|
+
"initialValue"
|
|
4867
|
+
],
|
|
4868
|
+
outputs: ["selectItemChange", "focus"]
|
|
4869
|
+
}, {
|
|
4870
|
+
kind: "pipe",
|
|
4871
|
+
type: HighlightPipe,
|
|
4872
|
+
name: "adbHighlight"
|
|
4873
|
+
}]
|
|
4874
|
+
});
|
|
4875
|
+
};
|
|
4876
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
4877
|
+
minVersion: "12.0.0",
|
|
4878
|
+
version: "22.2.4",
|
|
4879
|
+
ngImport: i0,
|
|
4880
|
+
type: AdbLocationPickerComponent,
|
|
4881
|
+
decorators: [{
|
|
4882
|
+
type: Component,
|
|
4883
|
+
args: [{
|
|
4884
|
+
selector: "adb-location-picker",
|
|
4885
|
+
standalone: false,
|
|
4886
|
+
providers: [{
|
|
4887
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4888
|
+
useExisting: forwardRef(() => AdbLocationPickerComponent),
|
|
4889
|
+
multi: true
|
|
4890
|
+
}],
|
|
4891
|
+
template: "<adb-generic-picker\n [search]=\"searchLocations\"\n [displayFn]=\"displayLocation\"\n [placeholder]=\"placeholder()\"\n [inputId]=\"inputId()\"\n [disabled]=\"disabled()\"\n [initialValue]=\"initialValue()\"\n (selectItemChange)=\"selectLocation($event)\">\n <ng-template #itemTemplate let-location let-searchQuery=\"searchQuery\">\n <div class=\"d-flex flex-wrap gap-1 align-items-center\">\n <div [innerHTML]=\"location.name | adbHighlight: searchQuery\"></div>\n <div class=\"ms-auto\">{{ location.municipality }}</div>\n </div>\n </ng-template>\n</adb-generic-picker>\n"
|
|
4892
|
+
}]
|
|
4893
|
+
}],
|
|
4894
|
+
ctorParameters: () => [{ type: i1$1.HttpClient }],
|
|
4895
|
+
propDecorators: {
|
|
4896
|
+
placeholder: [{
|
|
4897
|
+
type: i0.Input,
|
|
4898
|
+
args: [{
|
|
4899
|
+
isSignal: true,
|
|
4900
|
+
alias: "placeholder",
|
|
4901
|
+
required: false
|
|
4902
|
+
}]
|
|
4903
|
+
}],
|
|
4904
|
+
inputId: [{
|
|
4905
|
+
type: i0.Input,
|
|
4906
|
+
args: [{
|
|
4907
|
+
isSignal: true,
|
|
4908
|
+
alias: "inputId",
|
|
4909
|
+
required: false
|
|
4910
|
+
}]
|
|
4911
|
+
}]
|
|
4912
|
+
}
|
|
4913
|
+
});
|
|
4758
4914
|
var AdbPickerModule = class AdbPickerModule {
|
|
4759
4915
|
static forRoot(config) {
|
|
4760
4916
|
return {
|
|
@@ -4781,6 +4937,7 @@ var AdbPickerModule = class AdbPickerModule {
|
|
|
4781
4937
|
declarations: [
|
|
4782
4938
|
GenericPickerComponent,
|
|
4783
4939
|
AdbAreaPickerComponent,
|
|
4940
|
+
AdbLocationPickerComponent,
|
|
4784
4941
|
AdbTaxonPickerComponent
|
|
4785
4942
|
],
|
|
4786
4943
|
imports: [
|
|
@@ -4793,6 +4950,7 @@ var AdbPickerModule = class AdbPickerModule {
|
|
|
4793
4950
|
exports: [
|
|
4794
4951
|
GenericPickerComponent,
|
|
4795
4952
|
AdbAreaPickerComponent,
|
|
4953
|
+
AdbLocationPickerComponent,
|
|
4796
4954
|
AdbTaxonPickerComponent
|
|
4797
4955
|
]
|
|
4798
4956
|
});
|
|
@@ -4828,17 +4986,19 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4828
4986
|
declarations: [
|
|
4829
4987
|
GenericPickerComponent,
|
|
4830
4988
|
AdbAreaPickerComponent,
|
|
4989
|
+
AdbLocationPickerComponent,
|
|
4831
4990
|
AdbTaxonPickerComponent
|
|
4832
4991
|
],
|
|
4833
4992
|
exports: [
|
|
4834
4993
|
GenericPickerComponent,
|
|
4835
4994
|
AdbAreaPickerComponent,
|
|
4995
|
+
AdbLocationPickerComponent,
|
|
4836
4996
|
AdbTaxonPickerComponent
|
|
4837
4997
|
],
|
|
4838
4998
|
providers: [AdbPickerConfigService]
|
|
4839
4999
|
}]
|
|
4840
5000
|
}]
|
|
4841
5001
|
});
|
|
4842
|
-
export { ADB_ALERT_CONFIG, ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAlertComponent, AdbAlertModule, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbModalModule, AdbModalService, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, RedListBadgeClassDirective, RedListColorClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ScrollService, ToastType, UserModuleConstants };
|
|
5002
|
+
export { ADB_ALERT_CONFIG, ADB_PICKER_CONFIG, ADB_USER_SERVICE_CONFIG, AdbAlertComponent, AdbAlertModule, AdbAreaPickerComponent, AdbButtonsModule, AdbConfirmModal, AdbDatePickerComponent, AdbDatePickerDirective, AdbDatePickerModule, AdbDirectivesModule, AdbDropdownDirective, AdbDropdownModule, AdbFilterSectionModule, AdbHelpButtonComponent, AdbLocationPickerComponent, AdbModalModule, AdbModalService, AdbPagersModule, AdbPickerConfigService, AdbPickerModule, AdbPipesModule, AdbRichEditorComponent, AdbRichEditorModule, AdbTaxonPickerComponent, AdbToast, AdbToastModule, AdbToastService, AdbUserInterceptor, AdbUserModule, AdbUserService, ArtportalenFooterComponent, ArtportalenNavComponent, ArtportalenNavModule, AuthCallbackComponent, ClickOutsideDirective, DEFAULT_ADB_USER_SERVICE_CONFIG, EmptyValuePipe, EnvironmentService, FileUploadDirective, FilterSectionComponent, FocusDirective, GenericPickerComponent, HighlightHtmlPipe, HighlightPipe, ImageLoaderDirective, InfiniteScrollComponent, LocaleDatePipe, NumberSpacingPipe, PagerComponent, PagerInlineComponent, RedListBadgeClassDirective, RedListColorClassDirective, RichTextComponent, RiskClassDirective, RouterLinkActiveFragmentDirective, ScrollService, ToastType, UserModuleConstants };
|
|
4843
5003
|
|
|
4844
5004
|
//# sourceMappingURL=adb-shared.mjs.map
|