@ecodev/natural 45.5.0 → 47.0.0
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/esm2020/lib/classes/abstract-controller.mjs +5 -5
- package/esm2020/lib/classes/abstract-detail.mjs +13 -6
- package/esm2020/lib/classes/abstract-editable-list.mjs +5 -5
- package/esm2020/lib/classes/abstract-list.mjs +4 -4
- package/esm2020/lib/classes/abstract-navigable-list.mjs +4 -4
- package/esm2020/lib/classes/rxjs.mjs +1 -1
- package/esm2020/lib/classes/utility.mjs +8 -5
- package/esm2020/lib/classes/validators.mjs +2 -2
- package/esm2020/lib/directives/http-prefix.directive.mjs +3 -3
- package/esm2020/lib/modules/alert/alert.module.mjs +8 -8
- package/esm2020/lib/modules/alert/alert.service.mjs +7 -7
- package/esm2020/lib/modules/alert/confirm.component.mjs +7 -7
- package/esm2020/lib/modules/avatar/avatar.module.mjs +4 -4
- package/esm2020/lib/modules/avatar/component/avatar.component.mjs +3 -3
- package/esm2020/lib/modules/avatar/service/avatar.service.mjs +5 -5
- package/esm2020/lib/modules/avatar/service/md5.mjs +4 -4
- package/esm2020/lib/modules/columns-picker/columns-picker-column.directive.mjs +4 -4
- package/esm2020/lib/modules/columns-picker/columns-picker.component.mjs +24 -24
- package/esm2020/lib/modules/columns-picker/columns-picker.module.mjs +9 -9
- package/esm2020/lib/modules/common/common-module.mjs +8 -8
- package/esm2020/lib/modules/common/directives/linkable-tab.directive.mjs +6 -6
- package/esm2020/lib/modules/common/directives/src-density.directive.mjs +7 -7
- package/esm2020/lib/modules/common/pipes/capitalize.pipe.mjs +3 -3
- package/esm2020/lib/modules/common/pipes/ellipsis.pipe.mjs +3 -3
- package/esm2020/lib/modules/common/pipes/enum.pipe.mjs +3 -3
- package/esm2020/lib/modules/common/pipes/swiss-date.pipe.mjs +4 -4
- package/esm2020/lib/modules/common/pipes/time-ago.pipe.mjs +3 -3
- package/esm2020/lib/modules/common/services/memory-storage.mjs +3 -3
- package/esm2020/lib/modules/common/services/seo.service.mjs +3 -3
- package/esm2020/lib/modules/detail-header/detail-header.component.mjs +4 -4
- package/esm2020/lib/modules/detail-header/detail-header.module.mjs +6 -6
- package/esm2020/lib/modules/dialog-trigger/dialog-trigger.component.mjs +6 -6
- package/esm2020/lib/modules/dialog-trigger/dialog-trigger.module.mjs +6 -6
- package/esm2020/lib/modules/dropdown-components/abstract-association-select-component.directive.mjs +3 -3
- package/esm2020/lib/modules/dropdown-components/natural-dropdown-components.module.mjs +11 -11
- package/esm2020/lib/modules/dropdown-components/type-date/type-date.component.mjs +10 -9
- package/esm2020/lib/modules/dropdown-components/type-date-range/type-date-range.component.mjs +8 -8
- package/esm2020/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.mjs +7 -7
- package/esm2020/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.mjs +6 -6
- package/esm2020/lib/modules/dropdown-components/type-number/type-number.component.mjs +7 -7
- package/esm2020/lib/modules/dropdown-components/type-select/type-select.component.mjs +9 -9
- package/esm2020/lib/modules/dropdown-components/type-text/type-text.component.mjs +7 -7
- package/esm2020/lib/modules/file/abstract-file.mjs +5 -5
- package/esm2020/lib/modules/file/component/file.component.mjs +34 -26
- package/esm2020/lib/modules/file/file-drop.directive.mjs +4 -4
- package/esm2020/lib/modules/file/file-select.directive.mjs +4 -4
- package/esm2020/lib/modules/file/file.module.mjs +4 -4
- package/esm2020/lib/modules/file/file.service.mjs +4 -4
- package/esm2020/lib/modules/fixed-button/fixed-button.component.mjs +6 -6
- package/esm2020/lib/modules/fixed-button/fixed-button.module.mjs +6 -6
- package/esm2020/lib/modules/fixed-button-detail/fixed-button-detail.component.mjs +13 -13
- package/esm2020/lib/modules/fixed-button-detail/fixed-button-detail.module.mjs +6 -6
- package/esm2020/lib/modules/hierarchic-selector/classes/hierarchic-filters-configuration.mjs +1 -1
- package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.mjs +7 -7
- package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.service.mjs +3 -3
- package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.mjs +8 -8
- package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service.mjs +6 -6
- package/esm2020/lib/modules/hierarchic-selector/hierarchic-selector.module.mjs +12 -12
- package/esm2020/lib/modules/icon/icon.component.mjs +3 -3
- package/esm2020/lib/modules/icon/icon.module.mjs +4 -4
- package/esm2020/lib/modules/logger/error-handler.mjs +4 -4
- package/esm2020/lib/modules/logger/error.module.mjs +4 -4
- package/esm2020/lib/modules/matomo/matomo-module.module.mjs +4 -4
- package/esm2020/lib/modules/matomo/matomo.service.mjs +4 -4
- package/esm2020/lib/modules/panels/abstract-panel.mjs +3 -3
- package/esm2020/lib/modules/panels/fallback-if-no-opened-panels.urlmatcher.mjs +2 -2
- package/esm2020/lib/modules/panels/panels.component.mjs +3 -3
- package/esm2020/lib/modules/panels/panels.module.mjs +6 -6
- package/esm2020/lib/modules/panels/panels.service.mjs +10 -10
- package/esm2020/lib/modules/panels/types.mjs +1 -1
- package/esm2020/lib/modules/relations/relations.component.mjs +10 -10
- package/esm2020/lib/modules/relations/relations.module.mjs +11 -11
- package/esm2020/lib/modules/search/dropdown-container/dropdown-container.component.mjs +5 -5
- package/esm2020/lib/modules/search/dropdown-container/dropdown.service.mjs +3 -3
- package/esm2020/lib/modules/search/facet-selector/facet-selector.component.mjs +4 -4
- package/esm2020/lib/modules/search/group/group.component.mjs +3 -3
- package/esm2020/lib/modules/search/input/input.component.mjs +21 -21
- package/esm2020/lib/modules/search/search/search.component.mjs +6 -6
- package/esm2020/lib/modules/search/search.module.mjs +10 -10
- package/esm2020/lib/modules/search/types/facet.mjs +1 -1
- package/esm2020/lib/modules/search/types/values.mjs +1 -1
- package/esm2020/lib/modules/select/abstract-select.component.mjs +15 -15
- package/esm2020/lib/modules/select/select/select.component.mjs +12 -12
- package/esm2020/lib/modules/select/select-enum/select-enum.component.mjs +7 -8
- package/esm2020/lib/modules/select/select-hierarchic/select-hierarchic.component.mjs +8 -8
- package/esm2020/lib/modules/select/select.module.mjs +12 -12
- package/esm2020/lib/modules/sidenav/sidenav/sidenav.component.mjs +5 -6
- package/esm2020/lib/modules/sidenav/sidenav-container/sidenav-container.component.mjs +3 -3
- package/esm2020/lib/modules/sidenav/sidenav-content/sidenav-content.component.mjs +5 -6
- package/esm2020/lib/modules/sidenav/sidenav-stack.service.mjs +3 -3
- package/esm2020/lib/modules/sidenav/sidenav.module.mjs +6 -6
- package/esm2020/lib/modules/sidenav/sidenav.service.mjs +4 -4
- package/esm2020/lib/modules/stamp/stamp-module.module.mjs +4 -4
- package/esm2020/lib/modules/stamp/stamp.component.mjs +3 -3
- package/esm2020/lib/modules/table-button/table-button.component.mjs +6 -6
- package/esm2020/lib/modules/table-button/table-button.module.mjs +6 -6
- package/esm2020/lib/services/abstract-model.service.mjs +8 -1
- package/esm2020/lib/services/debounce.service.mjs +4 -4
- package/esm2020/lib/services/enum.service.mjs +3 -3
- package/esm2020/lib/services/link-mutation.service.mjs +3 -3
- package/esm2020/lib/services/persistence.service.mjs +7 -5
- package/esm2020/lib/services/swiss-parsing-date-adapter.service.mjs +4 -4
- package/esm2020/lib/types/types.mjs +1 -1
- package/fesm2015/ecodev-natural.mjs +579 -554
- package/fesm2015/ecodev-natural.mjs.map +1 -1
- package/fesm2020/ecodev-natural.mjs +578 -554
- package/fesm2020/ecodev-natural.mjs.map +1 -1
- package/lib/classes/abstract-controller.d.ts +1 -2
- package/lib/classes/abstract-detail.d.ts +1 -1
- package/lib/classes/abstract-editable-list.d.ts +2 -2
- package/lib/classes/abstract-list.d.ts +3 -3
- package/lib/classes/abstract-navigable-list.d.ts +3 -3
- package/lib/classes/utility.d.ts +1 -1
- package/lib/directives/http-prefix.directive.d.ts +1 -1
- package/lib/modules/alert/alert.module.d.ts +4 -4
- package/lib/modules/alert/alert.service.d.ts +2 -2
- package/lib/modules/alert/confirm.component.d.ts +1 -1
- package/lib/modules/avatar/component/avatar.component.d.ts +2 -2
- package/lib/modules/avatar/service/avatar.service.d.ts +0 -1
- package/lib/modules/avatar/sources/source.d.ts +1 -1
- package/lib/modules/columns-picker/columns-picker-column.directive.d.ts +1 -1
- package/lib/modules/columns-picker/columns-picker.component.d.ts +1 -1
- package/lib/modules/columns-picker/columns-picker.module.d.ts +5 -5
- package/lib/modules/common/common-module.d.ts +4 -4
- package/lib/modules/common/directives/linkable-tab.directive.d.ts +2 -2
- package/lib/modules/common/directives/src-density.directive.d.ts +1 -1
- package/lib/modules/common/services/memory-storage.d.ts +1 -1
- package/lib/modules/common/services/seo.service.d.ts +4 -4
- package/lib/modules/detail-header/detail-header.component.d.ts +1 -1
- package/lib/modules/detail-header/detail-header.module.d.ts +2 -2
- package/lib/modules/dialog-trigger/dialog-trigger.component.d.ts +4 -4
- package/lib/modules/dialog-trigger/dialog-trigger.module.d.ts +2 -2
- package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts +1 -1
- package/lib/modules/dropdown-components/natural-dropdown-components.module.d.ts +7 -7
- package/lib/modules/dropdown-components/type-date/type-date.component.d.ts +1 -1
- package/lib/modules/dropdown-components/type-date-range/type-date-range.component.d.ts +2 -2
- package/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.d.ts +2 -3
- package/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.d.ts +1 -1
- package/lib/modules/dropdown-components/type-number/type-number.component.d.ts +1 -1
- package/lib/modules/dropdown-components/type-select/type-select.component.d.ts +3 -3
- package/lib/modules/dropdown-components/type-text/type-text.component.d.ts +3 -3
- package/lib/modules/dropdown-components/types.d.ts +2 -2
- package/lib/modules/file/abstract-file.d.ts +2 -2
- package/lib/modules/file/component/file.component.d.ts +32 -9
- package/lib/modules/file/file-drop.directive.d.ts +1 -1
- package/lib/modules/file/file-select.directive.d.ts +1 -1
- package/lib/modules/file/types.d.ts +1 -1
- package/lib/modules/fixed-button/fixed-button.component.d.ts +1 -2
- package/lib/modules/fixed-button/fixed-button.module.d.ts +2 -2
- package/lib/modules/fixed-button-detail/fixed-button-detail.component.d.ts +2 -2
- package/lib/modules/fixed-button-detail/fixed-button-detail.module.d.ts +2 -2
- package/lib/modules/hierarchic-selector/classes/hierarchic-configuration.d.ts +1 -1
- package/lib/modules/hierarchic-selector/classes/hierarchic-filters-configuration.d.ts +1 -2
- package/lib/modules/hierarchic-selector/classes/model-node.d.ts +1 -1
- package/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.d.ts +1 -1
- package/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.d.ts +2 -2
- package/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service.d.ts +1 -1
- package/lib/modules/hierarchic-selector/hierarchic-selector.module.d.ts +8 -8
- package/lib/modules/icon/icon.component.d.ts +1 -1
- package/lib/modules/matomo/matomo.service.d.ts +2 -2
- package/lib/modules/panels/abstract-panel.d.ts +1 -1
- package/lib/modules/panels/panels.component.d.ts +1 -1
- package/lib/modules/panels/panels.module.d.ts +2 -2
- package/lib/modules/panels/panels.service.d.ts +1 -1
- package/lib/modules/panels/types.d.ts +2 -3
- package/lib/modules/relations/relations.component.d.ts +4 -4
- package/lib/modules/relations/relations.module.d.ts +7 -7
- package/lib/modules/search/classes/graphql-doctrine.types.d.ts +1 -1
- package/lib/modules/search/dropdown-container/dropdown-container.component.d.ts +1 -1
- package/lib/modules/search/facet-selector/facet-selector.component.d.ts +1 -1
- package/lib/modules/search/group/group.component.d.ts +1 -1
- package/lib/modules/search/input/input.component.d.ts +7 -6
- package/lib/modules/search/search/search.component.d.ts +3 -3
- package/lib/modules/search/search.module.d.ts +5 -5
- package/lib/modules/search/types/facet.d.ts +2 -3
- package/lib/modules/search/types/values.d.ts +2 -4
- package/lib/modules/select/abstract-select.component.d.ts +4 -4
- package/lib/modules/select/select/select.component.d.ts +3 -3
- package/lib/modules/select/select-enum/select-enum.component.d.ts +2 -3
- package/lib/modules/select/select-hierarchic/select-hierarchic.component.d.ts +1 -1
- package/lib/modules/select/select.module.d.ts +8 -8
- package/lib/modules/sidenav/sidenav/sidenav.component.d.ts +1 -2
- package/lib/modules/sidenav/sidenav-container/sidenav-container.component.d.ts +1 -1
- package/lib/modules/sidenav/sidenav-content/sidenav-content.component.d.ts +1 -2
- package/lib/modules/sidenav/sidenav.module.d.ts +2 -2
- package/lib/modules/stamp/stamp.component.d.ts +2 -2
- package/lib/modules/table-button/table-button.component.d.ts +3 -3
- package/lib/modules/table-button/table-button.module.d.ts +2 -2
- package/lib/services/abstract-model.service.d.ts +6 -6
- package/lib/services/debounce.service.d.ts +2 -2
- package/lib/services/persistence.service.d.ts +1 -1
- package/lib/types/types.d.ts +12 -12
- package/package.json +12 -12
|
@@ -1,38 +1,61 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import { DomSanitizer, SafeStyle } from '@angular/platform-browser';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
import { NaturalFileService } from '../file.service';
|
|
5
|
-
import { NaturalAbstractModelService } from '../../../services/abstract-model.service';
|
|
6
6
|
import { FileModel } from '../types';
|
|
7
|
+
import { NaturalAlertService } from '../../alert/alert.service';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class FileComponent
|
|
9
|
+
export declare class FileComponent implements OnInit, OnChanges {
|
|
9
10
|
private readonly naturalFileService;
|
|
11
|
+
private readonly alertService;
|
|
10
12
|
private readonly sanitizer;
|
|
11
13
|
private readonly document;
|
|
12
14
|
height: number;
|
|
13
15
|
action: 'upload' | 'download' | null;
|
|
14
16
|
backgroundSize: string;
|
|
15
17
|
/**
|
|
16
|
-
* Comma
|
|
18
|
+
* Comma-separated list of unique file type specifiers. Like the native element
|
|
19
|
+
* it can be a mix of mime-type and file extensions.
|
|
20
|
+
*
|
|
21
|
+
* See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#accept
|
|
17
22
|
*/
|
|
18
23
|
accept: string;
|
|
19
|
-
|
|
24
|
+
/**
|
|
25
|
+
* If given it will be called when a new file is selected. The callback should typically upload the file
|
|
26
|
+
* to the server and link the newly uploaded file to the existing related object.
|
|
27
|
+
*
|
|
28
|
+
* The callback **must** be able to run even if the calling component has been destroyed. That means in most
|
|
29
|
+
* cases you **must** `bind()` the callback explicitly, like so:
|
|
30
|
+
*
|
|
31
|
+
* ```html
|
|
32
|
+
* <natural-file [uploader]="myCallback.bind(this)"></natural-file>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* Also, you probably **should** set a `[formCtrl]` so that the form is updated automatically, instead of doing
|
|
36
|
+
* it manually within the callback.
|
|
37
|
+
*/
|
|
38
|
+
uploader?: (file: File) => Observable<FileModel>;
|
|
20
39
|
model: FileModel | null;
|
|
21
40
|
/**
|
|
22
|
-
* If provided, get updated
|
|
23
|
-
*
|
|
41
|
+
* If provided, its value will get updated when the model changes.
|
|
42
|
+
* But its value is never read, so if you want to set a value use `[model]` instead.
|
|
24
43
|
*/
|
|
25
44
|
formCtrl: AbstractControl | null | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* This **must not** be used to mutate the server, because it is very likely it will never be called if the
|
|
47
|
+
* human navigates away from the page before the upload is finished. Instead, you should use `[uploader]`.
|
|
48
|
+
*/
|
|
26
49
|
readonly modelChange: EventEmitter<FileModel>;
|
|
27
50
|
imagePreview: SafeStyle | null;
|
|
28
51
|
filePreview: string | null;
|
|
29
|
-
constructor(naturalFileService: NaturalFileService, sanitizer: DomSanitizer, document: Document);
|
|
52
|
+
constructor(naturalFileService: NaturalFileService, alertService: NaturalAlertService, sanitizer: DomSanitizer, document: Document);
|
|
30
53
|
ngOnInit(): void;
|
|
31
54
|
ngOnChanges(changes: SimpleChanges): void;
|
|
32
55
|
upload(file: File): void;
|
|
33
56
|
getDownloadLink(): null | string;
|
|
34
57
|
private updateImage;
|
|
35
58
|
private getBase64;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent
|
|
37
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent
|
|
59
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileComponent, never>;
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileComponent, "natural-file", never, { "height": "height"; "action": "action"; "backgroundSize": "backgroundSize"; "accept": "accept"; "uploader": "uploader"; "model": "model"; "formCtrl": "formCtrl"; }, { "modelChange": "modelChange"; }, never, never, false, never>;
|
|
38
61
|
}
|
|
@@ -27,5 +27,5 @@ export declare class NaturalFileDropDirective extends NaturalAbstractFile implem
|
|
|
27
27
|
onDragLeave(event: DragEvent): void;
|
|
28
28
|
private hasObservers;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFileDropDirective, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalFileDropDirective, ":not([naturalFileSelect])[naturalFileDrop]", never, {}, { "fileOver": "fileOver"; }, never, never, false>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalFileDropDirective, ":not([naturalFileSelect])[naturalFileDrop]", never, {}, { "fileOver": "fileOver"; }, never, never, false, never>;
|
|
31
31
|
}
|
|
@@ -11,5 +11,5 @@ export declare class NaturalFileSelectDirective extends NaturalAbstractFile {
|
|
|
11
11
|
*/
|
|
12
12
|
selectable: boolean;
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFileSelectDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalFileSelectDirective, ":not([naturalFileDrop])[naturalFileSelect]", never, { "selectable": "selectable"; }, {}, never, never, false>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalFileSelectDirective, ":not([naturalFileDrop])[naturalFileSelect]", never, { "selectable": "selectable"; }, {}, never, never, false, never>;
|
|
15
15
|
}
|
|
@@ -6,7 +6,6 @@ export declare class NaturalFixedButtonComponent {
|
|
|
6
6
|
link: RouterLink['routerLink'];
|
|
7
7
|
color: ThemePalette;
|
|
8
8
|
disabled: boolean;
|
|
9
|
-
constructor();
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFixedButtonComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalFixedButtonComponent, "natural-fixed-button", never, { "icon": "icon"; "link": "link"; "color": "color"; "disabled": "disabled"; }, {}, never, never, false>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalFixedButtonComponent, "natural-fixed-button", never, { "icon": "icon"; "link": "link"; "color": "color"; "disabled": "disabled"; }, {}, never, never, false, never>;
|
|
12
11
|
}
|
|
@@ -2,10 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./fixed-button.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/router";
|
|
5
|
-
import * as i4 from "@angular/material/button";
|
|
5
|
+
import * as i4 from "@angular/material/legacy-button";
|
|
6
6
|
import * as i5 from "../icon/icon.module";
|
|
7
7
|
export declare class NaturalFixedButtonModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFixedButtonModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalFixedButtonModule, [typeof i1.NaturalFixedButtonComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalFixedButtonModule, [typeof i1.NaturalFixedButtonComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.MatLegacyButtonModule, typeof i5.NaturalIconModule], [typeof i1.NaturalFixedButtonComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalFixedButtonModule>;
|
|
11
11
|
}
|
|
@@ -3,7 +3,7 @@ import { FormGroup } from '@angular/forms';
|
|
|
3
3
|
import { ActivatedRoute } from '@angular/router';
|
|
4
4
|
import { NaturalAbstractController } from '../../classes/abstract-controller';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
|
|
6
|
+
type Model = {
|
|
7
7
|
id?: string;
|
|
8
8
|
permissions?: {
|
|
9
9
|
delete: boolean;
|
|
@@ -22,6 +22,6 @@ export declare class NaturalFixedButtonDetailComponent extends NaturalAbstractCo
|
|
|
22
22
|
clickCreate(): void;
|
|
23
23
|
clickDelete(): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFixedButtonDetailComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalFixedButtonDetailComponent, "natural-fixed-button-detail", never, { "model": "model"; "form": "form"; }, { "create": "create"; "delete": "delete"; }, never, never, false>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalFixedButtonDetailComponent, "natural-fixed-button-detail", never, { "model": "model"; "form": "form"; }, { "create": "create"; "delete": "delete"; }, never, never, false, never>;
|
|
26
26
|
}
|
|
27
27
|
export {};
|
|
@@ -2,9 +2,9 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./fixed-button-detail.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "../fixed-button/fixed-button.module";
|
|
5
|
-
import * as i4 from "@angular/material/tooltip";
|
|
5
|
+
import * as i4 from "@angular/material/legacy-tooltip";
|
|
6
6
|
export declare class NaturalFixedButtonDetailModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalFixedButtonDetailModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalFixedButtonDetailModule, [typeof i1.NaturalFixedButtonDetailComponent], [typeof i2.CommonModule, typeof i3.NaturalFixedButtonModule, typeof i4.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalFixedButtonDetailModule, [typeof i1.NaturalFixedButtonDetailComponent], [typeof i2.CommonModule, typeof i3.NaturalFixedButtonModule, typeof i4.MatLegacyTooltipModule], [typeof i1.NaturalFixedButtonDetailComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalFixedButtonDetailModule>;
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { QueryVariables } from '../../../classes/query-variable-manager';
|
|
3
3
|
import { NaturalAbstractModelService } from '../../../services/abstract-model.service';
|
|
4
|
-
|
|
4
|
+
type GenericModelService = NaturalAbstractModelService<any, any, any, any, any, any, any, any, any, any>;
|
|
5
5
|
export interface NaturalHierarchicConfiguration<T extends GenericModelService = GenericModelService> {
|
|
6
6
|
/**
|
|
7
7
|
* An AbstractModelService to be used to fetch items
|
|
@@ -4,5 +4,4 @@ export interface HierarchicFilterConfiguration<T = Literal> {
|
|
|
4
4
|
service: NaturalHierarchicConfiguration['service'];
|
|
5
5
|
filter: T;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
8
|
-
}
|
|
7
|
+
export type HierarchicFiltersConfiguration<T = Literal> = Array<HierarchicFilterConfiguration<T>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BehaviorSubject } from 'rxjs';
|
|
2
2
|
import { NaturalHierarchicConfiguration } from './hierarchic-configuration';
|
|
3
3
|
import { NameOrFullName } from '../../../types/types';
|
|
4
|
-
export
|
|
4
|
+
export type HierarchicModel = {
|
|
5
5
|
__typename: string;
|
|
6
6
|
} & NameOrFullName;
|
|
7
7
|
export declare class HierarchicModelNode {
|
package/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.d.ts
CHANGED
|
@@ -148,5 +148,5 @@ export declare class NaturalHierarchicSelectorComponent extends NaturalAbstractC
|
|
|
148
148
|
*/
|
|
149
149
|
private getMapKey;
|
|
150
150
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalHierarchicSelectorComponent, never>;
|
|
151
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalHierarchicSelectorComponent, "natural-hierarchic-selector", never, { "displayWith": "displayWith"; "config": "config"; "multiple": "multiple"; "selected": "selected"; "allowUnselect": "allowUnselect"; "filters": "filters"; "searchFacets": "searchFacets"; "searchSelections": "searchSelections"; }, { "searchSelectionChange": "searchSelectionChange"; "selectionChange": "selectionChange"; }, never, never, false>;
|
|
151
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalHierarchicSelectorComponent, "natural-hierarchic-selector", never, { "displayWith": "displayWith"; "config": "config"; "multiple": "multiple"; "selected": "selected"; "allowUnselect": "allowUnselect"; "filters": "filters"; "searchFacets": "searchFacets"; "searchSelections": "searchSelections"; }, { "searchSelectionChange": "searchSelectionChange"; "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
152
152
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
1
|
+
import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
|
2
2
|
import { NaturalSearchFacets } from '../../search/types/facet';
|
|
3
3
|
import { NaturalSearchSelections } from '../../search/types/values';
|
|
4
4
|
import { NaturalHierarchicConfiguration } from '../classes/hierarchic-configuration';
|
|
@@ -52,5 +52,5 @@ export declare class NaturalHierarchicSelectorDialogComponent {
|
|
|
52
52
|
constructor(data: HierarchicDialogConfig, dialogRef: MatDialogRef<NaturalHierarchicSelectorDialogComponent, HierarchicDialogResult>);
|
|
53
53
|
close(selected: OrganizedModelSelection | undefined): void;
|
|
54
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalHierarchicSelectorDialogComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalHierarchicSelectorDialogComponent, "ng-component", never, {}, {}, never, never, false>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalHierarchicSelectorDialogComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
56
56
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
1
|
+
import { MatLegacyDialog as MatDialog, MatLegacyDialogConfig as MatDialogConfig, MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
|
|
2
2
|
import { HierarchicDialogConfig, HierarchicDialogResult, NaturalHierarchicSelectorDialogComponent } from './hierarchic-selector-dialog.component';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class NaturalHierarchicSelectorDialogService {
|
|
@@ -4,20 +4,20 @@ import * as i2 from "./hierarchic-selector-dialog/hierarchic-selector-dialog.com
|
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
6
|
import * as i5 from "@angular/cdk/tree";
|
|
7
|
-
import * as i6 from "@angular/material/checkbox";
|
|
8
|
-
import * as i7 from "@angular/material/form-field";
|
|
9
|
-
import * as i8 from "@angular/material/button";
|
|
7
|
+
import * as i6 from "@angular/material/legacy-checkbox";
|
|
8
|
+
import * as i7 from "@angular/material/legacy-form-field";
|
|
9
|
+
import * as i8 from "@angular/material/legacy-button";
|
|
10
10
|
import * as i9 from "@angular/material/tree";
|
|
11
11
|
import * as i10 from "@angular/material/icon";
|
|
12
|
-
import * as i11 from "@angular/material/input";
|
|
13
|
-
import * as i12 from "@angular/material/progress-spinner";
|
|
14
|
-
import * as i13 from "@angular/material/dialog";
|
|
12
|
+
import * as i11 from "@angular/material/legacy-input";
|
|
13
|
+
import * as i12 from "@angular/material/legacy-progress-spinner";
|
|
14
|
+
import * as i13 from "@angular/material/legacy-dialog";
|
|
15
15
|
import * as i14 from "../icon/icon.module";
|
|
16
|
-
import * as i15 from "@angular/material/chips";
|
|
16
|
+
import * as i15 from "@angular/material/legacy-chips";
|
|
17
17
|
import * as i16 from "../search/search.module";
|
|
18
18
|
import * as i17 from "../common/common-module";
|
|
19
19
|
export declare class NaturalHierarchicSelectorModule {
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalHierarchicSelectorModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalHierarchicSelectorModule, [typeof i1.NaturalHierarchicSelectorComponent, typeof i2.NaturalHierarchicSelectorDialogComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.CdkTreeModule, typeof i6.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalHierarchicSelectorModule, [typeof i1.NaturalHierarchicSelectorComponent, typeof i2.NaturalHierarchicSelectorDialogComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.CdkTreeModule, typeof i6.MatLegacyCheckboxModule, typeof i7.MatLegacyFormFieldModule, typeof i8.MatLegacyButtonModule, typeof i9.MatTreeModule, typeof i10.MatIconModule, typeof i11.MatLegacyInputModule, typeof i12.MatLegacyProgressSpinnerModule, typeof i13.MatLegacyDialogModule, typeof i14.NaturalIconModule, typeof i15.MatLegacyChipsModule, typeof i16.NaturalSearchModule, typeof i17.NaturalCommonModule], [typeof i1.NaturalHierarchicSelectorComponent]>;
|
|
22
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalHierarchicSelectorModule>;
|
|
23
23
|
}
|
|
@@ -36,6 +36,6 @@ export declare class NaturalIconComponent {
|
|
|
36
36
|
set size(val: number);
|
|
37
37
|
private registerIcons;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalIconComponent, never>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalIconComponent, "natural-icon", never, { "label": "label"; "labelColor": "labelColor"; "labelPosition": "labelPosition"; "name": "name"; "size": "size"; }, {}, never, never, false>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalIconComponent, "natural-icon", never, { "label": "label"; "labelColor": "labelColor"; "labelPosition": "labelPosition"; "name": "name"; "size": "size"; }, {}, never, never, false, never>;
|
|
40
40
|
}
|
|
41
41
|
export {};
|
|
@@ -7,8 +7,8 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
*
|
|
8
8
|
* To complete this list, maybe see https://developer.matomo.org/guides/tracking-javascript-guide
|
|
9
9
|
*/
|
|
10
|
-
|
|
11
|
-
export
|
|
10
|
+
type MatomoFunction = 'setCustomUrl' | 'setCustomDimension' | 'setDocumentTitle' | 'setReferrerUrl' | 'setSiteId' | 'setTrackerUrl' | 'trackPageView';
|
|
11
|
+
export type PaqItem = [MatomoFunction, ...(number | string | null)[]];
|
|
12
12
|
/**
|
|
13
13
|
* Service to track visitors via Matomo.
|
|
14
14
|
*
|
|
@@ -32,5 +32,5 @@ export declare class NaturalAbstractPanel extends NaturalAbstractController {
|
|
|
32
32
|
*/
|
|
33
33
|
initPanel(panelData: NaturalPanelData): void;
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalAbstractPanel, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractPanel, never, never, {}, {}, never, never, false>;
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NaturalAbstractPanel, never, never, {}, {}, never, never, false, never>;
|
|
36
36
|
}
|
|
@@ -8,5 +8,5 @@ export declare class NaturalPanelsComponent implements OnDestroy {
|
|
|
8
8
|
constructor(panelsService: NaturalPanelsService, route: ActivatedRoute);
|
|
9
9
|
ngOnDestroy(): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalPanelsComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalPanelsComponent, "natural-panels", never, {}, {}, never, never, false>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalPanelsComponent, "natural-panels", never, {}, {}, never, never, false, never>;
|
|
12
12
|
}
|
|
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "./panels.component";
|
|
5
5
|
import * as i2 from "@angular/common";
|
|
6
6
|
import * as i3 from "@angular/router";
|
|
7
|
-
import * as i4 from "@angular/material/dialog";
|
|
7
|
+
import * as i4 from "@angular/material/legacy-dialog";
|
|
8
8
|
export declare class NaturalPanelsModule {
|
|
9
9
|
static forRoot(hooks?: NaturalPanelsHooksConfig): ModuleWithProviders<NaturalPanelsModule>;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalPanelsModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalPanelsModule, [typeof i1.NaturalPanelsComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalPanelsModule, [typeof i1.NaturalPanelsComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.MatLegacyDialogModule], [typeof i1.NaturalPanelsComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalPanelsModule>;
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { MediaObserver } from '@angular/flex-layout';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
+
import { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';
|
|
4
4
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { NaturalAbstractPanel } from './abstract-panel';
|
|
@@ -12,7 +12,7 @@ export interface NaturalPanelsRouteConfig {
|
|
|
12
12
|
segments: UrlSegment[];
|
|
13
13
|
path: string;
|
|
14
14
|
}
|
|
15
|
-
export
|
|
15
|
+
export type NaturalPanelResolveInstances = {
|
|
16
16
|
[key: string]: NaturalPanelResolve<unknown>;
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
@@ -61,6 +61,5 @@ export interface NaturalPanelsBeforeOpenPanel {
|
|
|
61
61
|
export interface NaturalPanelsHooksConfig {
|
|
62
62
|
beforeOpenPanel?: (injector: Injector, naturalPanelsBeforeOpenPanel: NaturalPanelsBeforeOpenPanel) => NaturalPanelData;
|
|
63
63
|
}
|
|
64
|
-
export
|
|
65
|
-
}
|
|
64
|
+
export type NaturalPanelsRoutesConfig = Array<NaturalPanelsRouterRule>;
|
|
66
65
|
export declare const PanelsHooksConfig: InjectionToken<NaturalPanelsHooksConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit,
|
|
2
|
-
import { PageEvent } from '@angular/material/paginator';
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { LegacyPageEvent as PageEvent } from '@angular/material/legacy-paginator';
|
|
3
3
|
import { NaturalAbstractController } from '../../classes/abstract-controller';
|
|
4
4
|
import { NaturalDataSource, PaginatedData } from '../../classes/data-source';
|
|
5
5
|
import { QueryVariables } from '../../classes/query-variable-manager';
|
|
@@ -90,7 +90,7 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
|
|
|
90
90
|
*/
|
|
91
91
|
set filter(filter: Filter);
|
|
92
92
|
ngOnInit(): void;
|
|
93
|
-
ngOnChanges(
|
|
93
|
+
ngOnChanges(): void;
|
|
94
94
|
/**
|
|
95
95
|
* Unlink action
|
|
96
96
|
* Refetch result to display it in table
|
|
@@ -111,5 +111,5 @@ export declare class NaturalRelationsComponent<TService extends NaturalAbstractM
|
|
|
111
111
|
private queryItems;
|
|
112
112
|
private getSelectKey;
|
|
113
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalRelationsComponent<any>, never>;
|
|
114
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalRelationsComponent<any>, "natural-relations", never, { "service": "service"; "placeholder": "placeholder"; "autocompleteSelectorFilter": "autocompleteSelectorFilter"; "displayWith": "displayWith"; "disabled": "disabled"; "main": "main"; "hierarchicSelectorFilters": "hierarchicSelectorFilters"; "hierarchicSelectorConfig": "hierarchicSelectorConfig"; "otherName": "otherName"; "filter": "filter"; }, { "selectionChange": "selectionChange"; }, ["itemTemplate"], never, false>;
|
|
114
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalRelationsComponent<any>, "natural-relations", never, { "service": "service"; "placeholder": "placeholder"; "autocompleteSelectorFilter": "autocompleteSelectorFilter"; "displayWith": "displayWith"; "disabled": "disabled"; "main": "main"; "hierarchicSelectorFilters": "hierarchicSelectorFilters"; "hierarchicSelectorConfig": "hierarchicSelectorConfig"; "otherName": "otherName"; "filter": "filter"; }, { "selectionChange": "selectionChange"; }, ["itemTemplate"], never, false, never>;
|
|
115
115
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./relations.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@angular/material/input";
|
|
5
|
-
import * as i4 from "@angular/material/button";
|
|
6
|
-
import * as i5 from "@angular/material/progress-spinner";
|
|
4
|
+
import * as i3 from "@angular/material/legacy-input";
|
|
5
|
+
import * as i4 from "@angular/material/legacy-button";
|
|
6
|
+
import * as i5 from "@angular/material/legacy-progress-spinner";
|
|
7
7
|
import * as i6 from "../icon/icon.module";
|
|
8
|
-
import * as i7 from "@angular/material/table";
|
|
8
|
+
import * as i7 from "@angular/material/legacy-table";
|
|
9
9
|
import * as i8 from "../select/select.module";
|
|
10
10
|
import * as i9 from "../hierarchic-selector/hierarchic-selector.module";
|
|
11
|
-
import * as i10 from "@angular/material/paginator";
|
|
12
|
-
import * as i11 from "@angular/material/tooltip";
|
|
11
|
+
import * as i10 from "@angular/material/legacy-paginator";
|
|
12
|
+
import * as i11 from "@angular/material/legacy-tooltip";
|
|
13
13
|
export declare class NaturalRelationsModule {
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalRelationsModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalRelationsModule, [typeof i1.NaturalRelationsComponent], [typeof i2.CommonModule, typeof i3.
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalRelationsModule, [typeof i1.NaturalRelationsComponent], [typeof i2.CommonModule, typeof i3.MatLegacyInputModule, typeof i4.MatLegacyButtonModule, typeof i5.MatLegacyProgressSpinnerModule, typeof i6.NaturalIconModule, typeof i7.MatLegacyTableModule, typeof i8.NaturalSelectModule, typeof i9.NaturalHierarchicSelectorModule, typeof i10.MatLegacyPaginatorModule, typeof i11.MatLegacyTooltipModule], [typeof i1.NaturalRelationsComponent]>;
|
|
16
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalRelationsModule>;
|
|
17
17
|
}
|
|
@@ -41,7 +41,7 @@ export interface FilterGroupConditionField {
|
|
|
41
41
|
empty?: EmptyOperator;
|
|
42
42
|
[key: string]: Literal | undefined;
|
|
43
43
|
}
|
|
44
|
-
export
|
|
44
|
+
export type Scalar = number | string | boolean;
|
|
45
45
|
export interface HaveOperator {
|
|
46
46
|
values: Array<string>;
|
|
47
47
|
not?: boolean;
|
|
@@ -33,5 +33,5 @@ export declare class NaturalDropdownContainerComponent extends BasePortalOutlet
|
|
|
33
33
|
/** Restores focus to the element that was focused before the dialog opened. */
|
|
34
34
|
private restoreFocus;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalDropdownContainerComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalDropdownContainerComponent, "ng-component", never, {}, {}, never, never, false>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalDropdownContainerComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
37
37
|
}
|
|
@@ -28,5 +28,5 @@ export declare class FacetSelectorComponent implements DropdownComponent {
|
|
|
28
28
|
isValid(): boolean;
|
|
29
29
|
isDirty(): boolean;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FacetSelectorComponent, never>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FacetSelectorComponent, "ng-component", never, {}, {}, never, never, false>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FacetSelectorComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
32
32
|
}
|
|
@@ -14,5 +14,5 @@ export declare class NaturalGroupComponent {
|
|
|
14
14
|
addInput(selection: NaturalSearchSelection): void;
|
|
15
15
|
removeInput(index: number): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalGroupComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalGroupComponent, "natural-group", never, { "placeholder": "placeholder"; "facets": "facets"; "selections": "selections"; }, { "selectionChange": "selectionChange"; }, never, never, false>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalGroupComponent, "natural-group", never, { "placeholder": "placeholder"; "facets": "facets"; "selections": "selections"; }, { "selectionChange": "selectionChange"; }, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { ElementRef, EnvironmentInjector, EventEmitter, OnChanges, OnDestroy, OnInit
|
|
2
|
-
import { FormControl
|
|
1
|
+
import { ElementRef, EnvironmentInjector, EventEmitter, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { ErrorStateMatcher, MatRipple } from '@angular/material/core';
|
|
4
4
|
import { NaturalDropdownService } from '../dropdown-container/dropdown.service';
|
|
5
5
|
import { Facet, NaturalSearchFacets } from '../types/facet';
|
|
6
6
|
import { NaturalSearchSelection } from '../types/values';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
|
|
9
|
-
isErrorState(control: FormControl<unknown> | null
|
|
8
|
+
declare class AlwaysErrorStateMatcher implements ErrorStateMatcher {
|
|
9
|
+
isErrorState(control: FormControl<unknown> | null): boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare class NaturalInputComponent implements OnInit, OnChanges, OnDestroy {
|
|
12
12
|
private readonly element;
|
|
@@ -88,7 +88,7 @@ export declare class NaturalInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
88
88
|
constructor(element: ElementRef<HTMLElement>, dropdownService: NaturalDropdownService, injector: EnvironmentInjector);
|
|
89
89
|
ngOnInit(): void;
|
|
90
90
|
ngOnDestroy(): void;
|
|
91
|
-
ngOnChanges(
|
|
91
|
+
ngOnChanges(): void;
|
|
92
92
|
search(event: Event): void;
|
|
93
93
|
clear(): void;
|
|
94
94
|
openDropdown(): void;
|
|
@@ -103,5 +103,6 @@ export declare class NaturalInputComponent implements OnInit, OnChanges, OnDestr
|
|
|
103
103
|
private setValue;
|
|
104
104
|
private getSelection;
|
|
105
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalInputComponent, never>;
|
|
106
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalInputComponent, "natural-input", never, { "placeholder": "placeholder"; "searchFieldName": "searchFieldName"; "selection": "selection"; "facets": "facets"; }, { "selectionChange": "selectionChange"; "cleared": "cleared"; }, never, never, false>;
|
|
106
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalInputComponent, "natural-input", never, { "placeholder": "placeholder"; "searchFieldName": "searchFieldName"; "selection": "selection"; "facets": "facets"; }, { "selectionChange": "selectionChange"; "cleared": "cleared"; }, never, never, false, never>;
|
|
107
107
|
}
|
|
108
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
2
|
import { NaturalSearchFacets } from '../types/facet';
|
|
3
3
|
import { GroupSelections, NaturalSearchSelections } from '../types/values';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -27,11 +27,11 @@ export declare class NaturalSearchComponent implements OnChanges {
|
|
|
27
27
|
* Input to display at component initialisation
|
|
28
28
|
*/
|
|
29
29
|
set selections(selections: NaturalSearchSelections);
|
|
30
|
-
ngOnChanges(
|
|
30
|
+
ngOnChanges(): void;
|
|
31
31
|
updateGroup(groupSelections: GroupSelections, groupIndex: number): void;
|
|
32
32
|
addGroup(): void;
|
|
33
33
|
removeGroup(index: number): void;
|
|
34
34
|
clear(): void;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSearchComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSearchComponent, "natural-search", never, { "placeholder": "placeholder"; "facets": "facets"; "multipleGroups": "multipleGroups"; "selections": "selections"; }, { "selectionChange": "selectionChange"; }, never, ["*"], false>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSearchComponent, "natural-search", never, { "placeholder": "placeholder"; "facets": "facets"; "multipleGroups": "multipleGroups"; "selections": "selections"; }, { "selectionChange": "selectionChange"; }, never, ["*"], false, never>;
|
|
37
37
|
}
|
|
@@ -6,16 +6,16 @@ import * as i4 from "./dropdown-container/dropdown-container.component";
|
|
|
6
6
|
import * as i5 from "./facet-selector/facet-selector.component";
|
|
7
7
|
import * as i6 from "@angular/common";
|
|
8
8
|
import * as i7 from "@angular/forms";
|
|
9
|
-
import * as i8 from "@angular/material/input";
|
|
10
|
-
import * as i9 from "@angular/material/button";
|
|
11
|
-
import * as i10 from "@angular/material/menu";
|
|
9
|
+
import * as i8 from "@angular/material/legacy-input";
|
|
10
|
+
import * as i9 from "@angular/material/legacy-button";
|
|
11
|
+
import * as i10 from "@angular/material/legacy-menu";
|
|
12
12
|
import * as i11 from "@angular/material/core";
|
|
13
13
|
import * as i12 from "@angular/cdk/portal";
|
|
14
14
|
import * as i13 from "@angular/cdk/overlay";
|
|
15
|
-
import * as i14 from "@angular/material/list";
|
|
15
|
+
import * as i14 from "@angular/material/legacy-list";
|
|
16
16
|
import * as i15 from "../icon/icon.module";
|
|
17
17
|
export declare class NaturalSearchModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSearchModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalSearchModule, [typeof i1.NaturalSearchComponent, typeof i2.NaturalGroupComponent, typeof i3.NaturalInputComponent, typeof i4.NaturalDropdownContainerComponent, typeof i5.FacetSelectorComponent], [typeof i6.CommonModule, typeof i7.ReactiveFormsModule, typeof i8.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalSearchModule, [typeof i1.NaturalSearchComponent, typeof i2.NaturalGroupComponent, typeof i3.NaturalInputComponent, typeof i4.NaturalDropdownContainerComponent, typeof i5.FacetSelectorComponent], [typeof i6.CommonModule, typeof i7.ReactiveFormsModule, typeof i8.MatLegacyInputModule, typeof i9.MatLegacyButtonModule, typeof i10.MatLegacyMenuModule, typeof i11.MatRippleModule, typeof i12.PortalModule, typeof i13.OverlayModule, typeof i14.MatLegacyListModule, typeof i15.NaturalIconModule], [typeof i1.NaturalSearchComponent]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalSearchModule>;
|
|
21
21
|
}
|
|
@@ -67,10 +67,9 @@ export interface DropdownFacet<C> extends BasicFacet {
|
|
|
67
67
|
/**
|
|
68
68
|
* A facet
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export type Facet = DropdownFacet<any> | FlagFacet;
|
|
71
71
|
/**
|
|
72
72
|
* Exhaustive list of facets
|
|
73
73
|
*/
|
|
74
|
-
export
|
|
75
|
-
}
|
|
74
|
+
export type NaturalSearchFacets = Array<Facet>;
|
|
76
75
|
export {};
|
|
@@ -16,14 +16,12 @@ export interface NaturalSearchSelection {
|
|
|
16
16
|
/**
|
|
17
17
|
* Groups are a list of values, that should be interpreted with AND condition
|
|
18
18
|
*/
|
|
19
|
-
export
|
|
20
|
-
}
|
|
19
|
+
export type GroupSelections = Array<NaturalSearchSelection>;
|
|
21
20
|
/**
|
|
22
21
|
* List of groups, that should be interpreted with OR condition
|
|
23
22
|
* Final input / output format
|
|
24
23
|
*/
|
|
25
|
-
export
|
|
26
|
-
}
|
|
24
|
+
export type NaturalSearchSelections = Array<GroupSelections>;
|
|
27
25
|
/**
|
|
28
26
|
* Consolidated type for a selection and it's matching facet
|
|
29
27
|
* Used internally for dropdown
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DoCheck, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl,
|
|
2
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
3
|
import { ErrorStateMatcher } from '@angular/material/core';
|
|
4
|
-
import { FloatLabelType } from '@angular/material/form-field';
|
|
4
|
+
import { LegacyFloatLabelType as FloatLabelType } from '@angular/material/legacy-form-field';
|
|
5
5
|
import { NaturalAbstractController } from '../../classes/abstract-controller';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
@@ -13,7 +13,7 @@ import * as i0 from "@angular/core";
|
|
|
13
13
|
declare class ExternalFormControlMatcher<T, I> extends ErrorStateMatcher {
|
|
14
14
|
private readonly component;
|
|
15
15
|
constructor(component: AbstractSelect<T, I>);
|
|
16
|
-
isErrorState(
|
|
16
|
+
isErrorState(): boolean;
|
|
17
17
|
}
|
|
18
18
|
export declare abstract class AbstractSelect<V, I> extends NaturalAbstractController implements OnInit, OnDestroy, ControlValueAccessor, DoCheck {
|
|
19
19
|
readonly ngControl: NgControl | null;
|
|
@@ -97,6 +97,6 @@ export declare abstract class AbstractSelect<V, I> extends NaturalAbstractContro
|
|
|
97
97
|
*/
|
|
98
98
|
private applyRequired;
|
|
99
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSelect<any, any>, [{ optional: true; self: true; }]>;
|
|
100
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any>, never, never, { "placeholder": "placeholder"; "floatPlaceholder": "floatPlaceholder"; "required": "required"; "navigateTo": "navigateTo"; "clearLabel": "clearLabel"; "showIcon": "showIcon"; "icon": "icon"; "displayWith": "displayWith"; "disabled": "disabled"; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, never, never, false>;
|
|
100
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractSelect<any, any>, never, never, { "placeholder": "placeholder"; "floatPlaceholder": "floatPlaceholder"; "required": "required"; "navigateTo": "navigateTo"; "clearLabel": "clearLabel"; "showIcon": "showIcon"; "icon": "icon"; "displayWith": "displayWith"; "disabled": "disabled"; }, { "selectionChange": "selectionChange"; "blur": "blur"; }, never, never, false, never>;
|
|
101
101
|
}
|
|
102
102
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
3
|
+
import { MatLegacyAutocompleteTrigger as MatAutocompleteTrigger } from '@angular/material/legacy-autocomplete';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { PaginatedData } from '../../../classes/data-source';
|
|
6
6
|
import { QueryVariables } from '../../../classes/query-variable-manager';
|
|
@@ -8,7 +8,7 @@ import { NaturalAbstractModelService } from '../../../services/abstract-model.se
|
|
|
8
8
|
import { ExtractTallOne, ExtractVall, Literal } from '../../../types/types';
|
|
9
9
|
import { AbstractSelect } from '../abstract-select.component';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
|
|
11
|
+
type V<TService> = string | ExtractTallOne<TService>;
|
|
12
12
|
/**
|
|
13
13
|
* Default usage:
|
|
14
14
|
* <natural-select [service]="amazingServiceInstance" [(model)]="amazingModel" (modelChange)=amazingChangeFn($event)></natural-select>
|
|
@@ -93,6 +93,6 @@ export declare class NaturalSelectComponent<TService extends NaturalAbstractMode
|
|
|
93
93
|
showClearButton(): boolean;
|
|
94
94
|
private getSearchFilter;
|
|
95
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectComponent<any>, never>;
|
|
96
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectComponent<any>, "natural-select", never, { "service": "service"; "optionRequired": "optionRequired"; "searchField": "searchField"; "filter": "filter"; "disabled": "disabled"; }, {}, ["itemTemplate"], never, false>;
|
|
96
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectComponent<any>, "natural-select", never, { "service": "service"; "optionRequired": "optionRequired"; "searchField": "searchField"; "filter": "filter"; "disabled": "disabled"; }, {}, ["itemTemplate"], never, false, never>;
|
|
97
97
|
}
|
|
98
98
|
export {};
|