@ecodev/natural 46.0.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 +3 -3
- package/esm2020/lib/classes/abstract-detail.mjs +3 -3
- 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 +3 -3
- package/esm2020/lib/classes/utility.mjs +8 -5
- 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 +3 -3
- package/esm2020/lib/modules/columns-picker/columns-picker-column.directive.mjs +3 -3
- 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 +3 -3
- 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 +9 -8
- package/esm2020/lib/modules/dropdown-components/type-date-range/type-date-range.component.mjs +5 -5
- package/esm2020/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.mjs +6 -6
- 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 +5 -5
- package/esm2020/lib/modules/file/abstract-file.mjs +4 -4
- package/esm2020/lib/modules/file/component/file.component.mjs +5 -5
- package/esm2020/lib/modules/file/file-drop.directive.mjs +3 -3
- package/esm2020/lib/modules/file/file-select.directive.mjs +3 -3
- 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 +4 -4
- 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/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/panels.component.mjs +3 -3
- package/esm2020/lib/modules/panels/panels.module.mjs +6 -6
- package/esm2020/lib/modules/panels/panels.service.mjs +9 -9
- package/esm2020/lib/modules/relations/relations.component.mjs +9 -9
- 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 +18 -18
- package/esm2020/lib/modules/search/search/search.component.mjs +4 -4
- package/esm2020/lib/modules/search/search.module.mjs +10 -10
- package/esm2020/lib/modules/select/abstract-select.component.mjs +14 -14
- package/esm2020/lib/modules/select/select/select.component.mjs +12 -12
- package/esm2020/lib/modules/select/select-enum/select-enum.component.mjs +6 -6
- 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 +3 -3
- package/esm2020/lib/modules/sidenav/sidenav-container/sidenav-container.component.mjs +3 -3
- package/esm2020/lib/modules/sidenav/sidenav-content/sidenav-content.component.mjs +3 -3
- 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 +3 -3
- 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 +4 -4
- package/esm2020/lib/modules/table-button/table-button.module.mjs +6 -6
- package/esm2020/lib/services/abstract-model.service.mjs +1 -1
- package/esm2020/lib/services/debounce.service.mjs +3 -3
- 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 +3 -3
- package/esm2020/lib/services/swiss-parsing-date-adapter.service.mjs +3 -3
- package/esm2020/lib/types/types.mjs +1 -1
- package/fesm2015/ecodev-natural.mjs +516 -512
- package/fesm2015/ecodev-natural.mjs.map +1 -1
- package/fesm2020/ecodev-natural.mjs +516 -512
- package/fesm2020/ecodev-natural.mjs.map +1 -1
- package/lib/classes/abstract-controller.d.ts +1 -1
- 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/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 +1 -1
- package/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.d.ts +2 -2
- 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 +1 -1
- package/lib/modules/dropdown-components/types.d.ts +2 -2
- package/lib/modules/file/abstract-file.d.ts +1 -1
- package/lib/modules/file/component/file.component.d.ts +1 -1
- 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 -1
- 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 -1
- 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 -2
- package/lib/modules/relations/relations.component.d.ts +2 -2
- 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 +1 -1
- package/lib/modules/search/search/search.component.d.ts +1 -1
- package/lib/modules/search/search.module.d.ts +5 -5
- package/lib/modules/search/types/facet.d.ts +2 -2
- package/lib/modules/search/types/values.d.ts +2 -2
- package/lib/modules/select/abstract-select.component.d.ts +2 -2
- package/lib/modules/select/select/select.component.d.ts +3 -3
- package/lib/modules/select/select-enum/select-enum.component.d.ts +2 -2
- 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 -1
- 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 -1
- 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 +1 -1
- 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 +1 -1
- package/lib/services/persistence.service.d.ts +1 -1
- package/lib/types/types.d.ts +12 -12
- package/package.json +12 -12
|
@@ -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,4 +4,4 @@ export interface HierarchicFilterConfiguration<T = Literal> {
|
|
|
4
4
|
service: NaturalHierarchicConfiguration['service'];
|
|
5
5
|
filter: T;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
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,5 +61,5 @@ export interface NaturalPanelsBeforeOpenPanel {
|
|
|
61
61
|
export interface NaturalPanelsHooksConfig {
|
|
62
62
|
beforeOpenPanel?: (injector: Injector, naturalPanelsBeforeOpenPanel: NaturalPanelsBeforeOpenPanel) => NaturalPanelData;
|
|
63
63
|
}
|
|
64
|
-
export
|
|
64
|
+
export type NaturalPanelsRoutesConfig = Array<NaturalPanelsRouterRule>;
|
|
65
65
|
export declare const PanelsHooksConfig: InjectionToken<NaturalPanelsHooksConfig>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventEmitter, OnChanges, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { PageEvent } from '@angular/material/paginator';
|
|
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';
|
|
@@ -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
|
}
|
|
@@ -103,6 +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
108
|
export {};
|
|
@@ -33,5 +33,5 @@ export declare class NaturalSearchComponent implements OnChanges {
|
|
|
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,9 +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
|
|
74
|
+
export type NaturalSearchFacets = Array<Facet>;
|
|
75
75
|
export {};
|
|
@@ -16,12 +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
|
|
19
|
+
export type GroupSelections = Array<NaturalSearchSelection>;
|
|
20
20
|
/**
|
|
21
21
|
* List of groups, that should be interpreted with OR condition
|
|
22
22
|
* Final input / output format
|
|
23
23
|
*/
|
|
24
|
-
export
|
|
24
|
+
export type NaturalSearchSelections = Array<GroupSelections>;
|
|
25
25
|
/**
|
|
26
26
|
* Consolidated type for a selection and it's matching facet
|
|
27
27
|
* Used internally for dropdown
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DoCheck, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
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
|
/**
|
|
@@ -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 {};
|
|
@@ -4,7 +4,7 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { IEnum, NaturalEnumService } from '../../../services/enum.service';
|
|
5
5
|
import { AbstractSelect } from '../abstract-select.component';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
|
|
7
|
+
type V = IEnum['value'] | IEnum['value'][];
|
|
8
8
|
export declare class NaturalSelectEnumComponent extends AbstractSelect<V, V> implements OnInit, ControlValueAccessor {
|
|
9
9
|
private readonly enumService;
|
|
10
10
|
/**
|
|
@@ -28,6 +28,6 @@ export declare class NaturalSelectEnumComponent extends AbstractSelect<V, V> imp
|
|
|
28
28
|
ngOnInit(): void;
|
|
29
29
|
getDisplayFn(): (item: V | null) => string;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectEnumComponent, [null, { optional: true; self: true; }]>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectEnumComponent, "natural-select-enum", never, { "enumName": "enumName"; "nullLabel": "nullLabel"; "optionDisabled": "optionDisabled"; "multiple": "multiple"; }, {}, never, never, false>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectEnumComponent, "natural-select-enum", never, { "enumName": "enumName"; "nullLabel": "nullLabel"; "optionDisabled": "optionDisabled"; "multiple": "multiple"; }, {}, never, never, false, never>;
|
|
32
32
|
}
|
|
33
33
|
export {};
|
|
@@ -54,5 +54,5 @@ export declare class NaturalSelectHierarchicComponent extends AbstractSelect<Lit
|
|
|
54
54
|
showSelectButton(): boolean;
|
|
55
55
|
private getSelectKey;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectHierarchicComponent, [null, { optional: true; self: true; }]>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectHierarchicComponent, "natural-select-hierarchic", never, { "selectLabel": "selectLabel"; "config": "config"; "filters": "filters"; }, {}, never, never, false>;
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSelectHierarchicComponent, "natural-select-hierarchic", never, { "selectLabel": "selectLabel"; "config": "config"; "filters": "filters"; }, {}, never, never, false, never>;
|
|
58
58
|
}
|
|
@@ -3,19 +3,19 @@ import * as i1 from "./select/select.component";
|
|
|
3
3
|
import * as i2 from "./select-enum/select-enum.component";
|
|
4
4
|
import * as i3 from "./select-hierarchic/select-hierarchic.component";
|
|
5
5
|
import * as i4 from "@angular/common";
|
|
6
|
-
import * as i5 from "@angular/material/autocomplete";
|
|
7
|
-
import * as i6 from "@angular/material/button";
|
|
8
|
-
import * as i7 from "@angular/material/form-field";
|
|
9
|
-
import * as i8 from "@angular/material/input";
|
|
10
|
-
import * as i9 from "@angular/material/progress-spinner";
|
|
11
|
-
import * as i10 from "@angular/material/select";
|
|
12
|
-
import * as i11 from "@angular/material/tooltip";
|
|
6
|
+
import * as i5 from "@angular/material/legacy-autocomplete";
|
|
7
|
+
import * as i6 from "@angular/material/legacy-button";
|
|
8
|
+
import * as i7 from "@angular/material/legacy-form-field";
|
|
9
|
+
import * as i8 from "@angular/material/legacy-input";
|
|
10
|
+
import * as i9 from "@angular/material/legacy-progress-spinner";
|
|
11
|
+
import * as i10 from "@angular/material/legacy-select";
|
|
12
|
+
import * as i11 from "@angular/material/legacy-tooltip";
|
|
13
13
|
import * as i12 from "../common/common-module";
|
|
14
14
|
import * as i13 from "../icon/icon.module";
|
|
15
15
|
import * as i14 from "@angular/forms";
|
|
16
16
|
import * as i15 from "@angular/router";
|
|
17
17
|
export declare class NaturalSelectModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalSelectModule, [typeof i1.NaturalSelectComponent, typeof i2.NaturalSelectEnumComponent, typeof i3.NaturalSelectHierarchicComponent], [typeof i4.CommonModule, typeof i5.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalSelectModule, [typeof i1.NaturalSelectComponent, typeof i2.NaturalSelectEnumComponent, typeof i3.NaturalSelectHierarchicComponent], [typeof i4.CommonModule, typeof i5.MatLegacyAutocompleteModule, typeof i6.MatLegacyButtonModule, typeof i7.MatLegacyFormFieldModule, typeof i8.MatLegacyInputModule, typeof i9.MatLegacyProgressSpinnerModule, typeof i10.MatLegacySelectModule, typeof i11.MatLegacyTooltipModule, typeof i12.NaturalCommonModule, typeof i13.NaturalIconModule, typeof i14.ReactiveFormsModule, typeof i15.RouterModule], [typeof i1.NaturalSelectComponent, typeof i2.NaturalSelectEnumComponent, typeof i3.NaturalSelectHierarchicComponent]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalSelectModule>;
|
|
21
21
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NaturalSidenavComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSidenavComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavComponent, "natural-sidenav", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavComponent, "natural-sidenav", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -46,5 +46,5 @@ export declare class NaturalSidenavContainerComponent implements OnInit, OnDestr
|
|
|
46
46
|
expand(): void;
|
|
47
47
|
toggleMinimized(): void;
|
|
48
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSidenavContainerComponent, never>;
|
|
49
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavContainerComponent, "natural-sidenav-container", never, { "name": "name"; "position": "position"; "mobileAutoClose": "mobileAutoClose"; "minimizedWidth": "minimizedWidth"; "noScroll": "noScroll"; }, {}, never, ["natural-sidenav", "natural-sidenav-content"], false>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavContainerComponent, "natural-sidenav-container", never, { "name": "name"; "position": "position"; "mobileAutoClose": "mobileAutoClose"; "minimizedWidth": "minimizedWidth"; "noScroll": "noScroll"; }, {}, never, ["natural-sidenav", "natural-sidenav-content"], false, never>;
|
|
50
50
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NaturalSidenavContentComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSidenavContentComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavContentComponent, "natural-sidenav-content", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavContentComponent, "natural-sidenav-content", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -5,9 +5,9 @@ import * as i3 from "./sidenav-content/sidenav-content.component";
|
|
|
5
5
|
import * as i4 from "@angular/common";
|
|
6
6
|
import * as i5 from "@angular/material/sidenav";
|
|
7
7
|
import * as i6 from "@angular/material/icon";
|
|
8
|
-
import * as i7 from "@angular/material/button";
|
|
8
|
+
import * as i7 from "@angular/material/legacy-button";
|
|
9
9
|
export declare class NaturalSidenavModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSidenavModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalSidenavModule, [typeof i1.NaturalSidenavComponent, typeof i2.NaturalSidenavContainerComponent, typeof i3.NaturalSidenavContentComponent], [typeof i4.CommonModule, typeof i5.MatSidenavModule, typeof i6.MatIconModule, typeof i7.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalSidenavModule, [typeof i1.NaturalSidenavComponent, typeof i2.NaturalSidenavContainerComponent, typeof i3.NaturalSidenavContentComponent], [typeof i4.CommonModule, typeof i5.MatSidenavModule, typeof i6.MatIconModule, typeof i7.MatLegacyButtonModule], [typeof i1.NaturalSidenavComponent, typeof i2.NaturalSidenavContainerComponent, typeof i3.NaturalSidenavContentComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalSidenavModule>;
|
|
13
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NameOrFullName } from '../../types/types';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
3
|
+
type Stamped = {
|
|
4
4
|
creator: NameOrFullName | null;
|
|
5
5
|
updater: NameOrFullName | null;
|
|
6
6
|
creationDate: string | null;
|
|
@@ -10,6 +10,6 @@ export declare class NaturalStampComponent {
|
|
|
10
10
|
item: Stamped;
|
|
11
11
|
showUpdate(): boolean;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalStampComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalStampComponent, "natural-stamp", never, { "item": "item"; }, {}, never, never, false>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalStampComponent, "natural-stamp", never, { "item": "item"; }, {}, never, never, false, never>;
|
|
14
14
|
}
|
|
15
15
|
export {};
|
|
@@ -27,5 +27,5 @@ export declare class NaturalTableButtonComponent implements OnChanges {
|
|
|
27
27
|
type: 'routerLink' | 'href' | 'click' | 'none';
|
|
28
28
|
ngOnChanges(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalTableButtonComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalTableButtonComponent, "natural-table-button", never, { "queryParams": "queryParams"; "queryParamsHandling": "queryParamsHandling"; "label": "label"; "icon": "icon"; "href": "href"; "navigate": "navigate"; "fragment": "fragment"; "preserveFragment": "preserveFragment"; "raised": "raised"; "color": "color"; }, { "buttonClick": "buttonClick"; }, never, never, false>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalTableButtonComponent, "natural-table-button", never, { "queryParams": "queryParams"; "queryParamsHandling": "queryParamsHandling"; "label": "label"; "icon": "icon"; "href": "href"; "navigate": "navigate"; "fragment": "fragment"; "preserveFragment": "preserveFragment"; "raised": "raised"; "color": "color"; }, { "buttonClick": "buttonClick"; }, never, never, false, never>;
|
|
31
31
|
}
|
|
@@ -2,10 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./table-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 NaturalTableButtonModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalTableButtonModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalTableButtonModule, [typeof i1.NaturalTableButtonComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NaturalTableButtonModule, [typeof i1.NaturalTableButtonComponent], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.MatLegacyButtonModule, typeof i5.NaturalIconModule], [typeof i1.NaturalTableButtonComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<NaturalTableButtonModule>;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Apollo } from 'apollo-angular';
|
|
1
|
+
import { Apollo, MutationResult } from 'apollo-angular';
|
|
2
2
|
import { FetchResult, WatchQueryFetchPolicy } from '@apollo/client/core';
|
|
3
3
|
import { AbstractControl, AsyncValidatorFn, UntypedFormGroup, ValidatorFn } from '@angular/forms';
|
|
4
4
|
import { DocumentNode } from 'graphql';
|
|
@@ -22,7 +22,7 @@ export interface FormControls {
|
|
|
22
22
|
interface Resolve<TOne> {
|
|
23
23
|
model: TOne;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type WithId<T> = {
|
|
26
26
|
id: string;
|
|
27
27
|
} & T;
|
|
28
28
|
export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
@@ -161,15 +161,15 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
|
161
161
|
/**
|
|
162
162
|
* This is used to extract only the created object out of the entire fetched data
|
|
163
163
|
*/
|
|
164
|
-
protected mapCreation(result:
|
|
164
|
+
protected mapCreation(result: MutationResult<unknown>): Tcreate;
|
|
165
165
|
/**
|
|
166
166
|
* This is used to extract only the updated object out of the entire fetched data
|
|
167
167
|
*/
|
|
168
|
-
protected mapUpdate(result:
|
|
168
|
+
protected mapUpdate(result: MutationResult<unknown>): Tupdate;
|
|
169
169
|
/**
|
|
170
170
|
* This is used to extract only flag when deleting an object
|
|
171
171
|
*/
|
|
172
|
-
protected mapDelete(result:
|
|
172
|
+
protected mapDelete(result: MutationResult<unknown>): Tdelete;
|
|
173
173
|
/**
|
|
174
174
|
* Returns additional variables to be used when getting a single object
|
|
175
175
|
*
|
|
@@ -203,7 +203,7 @@ export declare abstract class NaturalAbstractModelService<Tone, Vone extends {
|
|
|
203
203
|
/**
|
|
204
204
|
* Throw exception to prevent executing queries with invalid variables
|
|
205
205
|
*/
|
|
206
|
-
protected throwIfObservable(value:
|
|
206
|
+
protected throwIfObservable(value: unknown): void;
|
|
207
207
|
/**
|
|
208
208
|
* Merge given ID with additional partial variables if there is any
|
|
209
209
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { NaturalAbstractModelService } from './abstract-model.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
|
|
4
|
+
type Key = NaturalAbstractModelService<unknown, any, any, any, unknown, any, unknown, any, unknown, any>;
|
|
5
5
|
/**
|
|
6
6
|
* Debounce subscriptions to observable, with possibility to cancel one, or flush all of them. Typically,
|
|
7
7
|
* observables are object updates, so `NaturalAbstractModelService.updateNow()`.
|
|
@@ -8,7 +8,7 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*
|
|
9
9
|
* `storageKey` is only given if the value is coming from session storage (and not from URL).
|
|
10
10
|
*/
|
|
11
|
-
export
|
|
11
|
+
export type PersistenceValidator = (key: string, storageKey: string | null, value: unknown) => boolean;
|
|
12
12
|
export declare const NATURAL_PERSISTENCE_VALIDATOR: InjectionToken<PersistenceValidator>;
|
|
13
13
|
export declare class NaturalPersistenceService {
|
|
14
14
|
private readonly router;
|