@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
|
@@ -4,10 +4,9 @@ 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
|
-
readonly ngControl: NgControl | null;
|
|
11
10
|
/**
|
|
12
11
|
* The name of the enum type, eg: `"ActionStatus"`
|
|
13
12
|
*/
|
|
@@ -29,6 +28,6 @@ export declare class NaturalSelectEnumComponent extends AbstractSelect<V, V> imp
|
|
|
29
28
|
ngOnInit(): void;
|
|
30
29
|
getDisplayFn(): (item: V | null) => string;
|
|
31
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSelectEnumComponent, [null, { optional: true; self: true; }]>;
|
|
32
|
-
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>;
|
|
33
32
|
}
|
|
34
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,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NaturalSidenavComponent {
|
|
3
|
-
constructor();
|
|
4
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSidenavComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavComponent, "natural-sidenav", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavComponent, "natural-sidenav", never, {}, {}, never, ["*"], false, never>;
|
|
6
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,6 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NaturalSidenavContentComponent {
|
|
3
|
-
constructor();
|
|
4
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSidenavContentComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavContentComponent, "natural-sidenav-content", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalSidenavContentComponent, "natural-sidenav-content", never, {}, {}, never, ["*"], false, never>;
|
|
6
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 {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges
|
|
1
|
+
import { EventEmitter, OnChanges } from '@angular/core';
|
|
2
2
|
import { Params, QueryParamsHandling, RouterLink } from '@angular/router';
|
|
3
3
|
import { ThemePalette } from '@angular/material/core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -25,7 +25,7 @@ export declare class NaturalTableButtonComponent implements OnChanges {
|
|
|
25
25
|
color: ThemePalette;
|
|
26
26
|
readonly buttonClick: EventEmitter<MouseEvent>;
|
|
27
27
|
type: 'routerLink' | 'href' | 'click' | 'none';
|
|
28
|
-
ngOnChanges(
|
|
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()`.
|
|
@@ -25,7 +25,7 @@ export declare class NaturalDebounceService {
|
|
|
25
25
|
* keep the same debouncing timeline.
|
|
26
26
|
*/
|
|
27
27
|
debounce<T>(key: Key, id: string, source: Observable<T>): Observable<T>;
|
|
28
|
-
cancel
|
|
28
|
+
cancel(key: Key, id: string): void;
|
|
29
29
|
/**
|
|
30
30
|
* Immediately execute all pending updates.
|
|
31
31
|
*
|
|
@@ -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;
|
package/lib/types/types.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export interface Literal {
|
|
|
10
10
|
/**
|
|
11
11
|
* An object with either a name or a fullName (or maybe both)
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export type NameOrFullName = {
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
fullName?: string;
|
|
@@ -22,51 +22,51 @@ export declare type NameOrFullName = {
|
|
|
22
22
|
/**
|
|
23
23
|
* Extract the Tone type from a NaturalAbstractModelService
|
|
24
24
|
*/
|
|
25
|
-
export
|
|
25
|
+
export type ExtractTone<P> = P extends NaturalAbstractModelService<infer Tone, any, any, any, any, any, any, any, any, any> ? Tone : never;
|
|
26
26
|
/**
|
|
27
27
|
* Extract the Vone type from a NaturalAbstractModelService
|
|
28
28
|
*/
|
|
29
|
-
export
|
|
29
|
+
export type ExtractVone<P> = P extends NaturalAbstractModelService<any, infer Vone, any, any, any, any, any, any, any, any> ? Vone extends {
|
|
30
30
|
id: string;
|
|
31
31
|
} ? Vone : never : never;
|
|
32
32
|
/**
|
|
33
33
|
* Extract the Tall type from a NaturalAbstractModelService
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export type ExtractTall<P> = P extends NaturalAbstractModelService<any, any, infer Tall, any, any, any, any, any, any, any> ? Tall extends PaginatedData<Literal> ? Tall : never : never;
|
|
36
36
|
/**
|
|
37
37
|
* Extract the TallOne type for a single item coming from a list of items from a NaturalAbstractModelService
|
|
38
38
|
*/
|
|
39
|
-
export
|
|
39
|
+
export type ExtractTallOne<P> = P extends NaturalAbstractModelService<any, any, PaginatedData<infer TallOne extends Literal>, any, any, any, any, any, any, any> ? TallOne extends Literal ? TallOne : never : never;
|
|
40
40
|
/**
|
|
41
41
|
* Extract the Vall type from a NaturalAbstractModelService
|
|
42
42
|
*/
|
|
43
|
-
export
|
|
43
|
+
export type ExtractVall<P> = P extends NaturalAbstractModelService<any, any, any, infer Vall, any, any, any, any, any, any> ? Vall extends QueryVariables ? Vall : never : never;
|
|
44
44
|
/**
|
|
45
45
|
* Extract the Tcreate type from a NaturalAbstractModelService
|
|
46
46
|
*/
|
|
47
|
-
export
|
|
47
|
+
export type ExtractTcreate<P> = P extends NaturalAbstractModelService<any, any, any, any, infer Tcreate, any, any, any, any, any> ? Tcreate : never;
|
|
48
48
|
/**
|
|
49
49
|
* Extract the Vcreate type from a NaturalAbstractModelService
|
|
50
50
|
*/
|
|
51
|
-
export
|
|
51
|
+
export type ExtractVcreate<P> = P extends NaturalAbstractModelService<any, any, any, any, any, infer Vcreate, any, any, any, any> ? Vcreate extends VariablesWithInput ? Vcreate : never : never;
|
|
52
52
|
/**
|
|
53
53
|
* Extract the Tupdate type from a NaturalAbstractModelService
|
|
54
54
|
*/
|
|
55
|
-
export
|
|
55
|
+
export type ExtractTupdate<P> = P extends NaturalAbstractModelService<any, any, any, any, any, any, infer Tupdate, any, any, any> ? Tupdate : never;
|
|
56
56
|
/**
|
|
57
57
|
* Extract the Vupdate type from a NaturalAbstractModelService
|
|
58
58
|
*/
|
|
59
|
-
export
|
|
59
|
+
export type ExtractVupdate<P> = P extends NaturalAbstractModelService<any, any, any, any, any, any, any, infer Vupdate, any, any> ? Vupdate extends {
|
|
60
60
|
id: string;
|
|
61
61
|
input: Literal;
|
|
62
62
|
} ? Vupdate : never : never;
|
|
63
63
|
/**
|
|
64
64
|
* Extract the Tdelete type from a NaturalAbstractModelService
|
|
65
65
|
*/
|
|
66
|
-
export
|
|
66
|
+
export type ExtractTdelete<P> = P extends NaturalAbstractModelService<any, any, any, any, any, any, any, any, infer Tdelete, any> ? Tdelete : never;
|
|
67
67
|
/**
|
|
68
68
|
* Extract the Vdelete type from a NaturalAbstractModelService
|
|
69
69
|
*/
|
|
70
|
-
export
|
|
70
|
+
export type ExtractVdelete<P> = P extends NaturalAbstractModelService<any, any, any, any, any, any, any, any, any, infer Vdelete> ? Vdelete extends {
|
|
71
71
|
ids: string[];
|
|
72
72
|
} ? Vdelete : never : never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ecodev/natural",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "47.0.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": "github:Ecodev/natural",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"tslib": "^2.3.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@angular/animations": "^
|
|
26
|
-
"@angular/cdk": "^
|
|
27
|
-
"@angular/common": "^
|
|
28
|
-
"@angular/core": "^
|
|
29
|
-
"@angular/flex-layout": "^
|
|
30
|
-
"@angular/forms": "^
|
|
31
|
-
"@angular/localize": "^
|
|
32
|
-
"@angular/material": "^
|
|
33
|
-
"@angular/platform-browser": "^
|
|
34
|
-
"@angular/platform-browser-dynamic": "^
|
|
35
|
-
"@angular/router": "^
|
|
25
|
+
"@angular/animations": "^15.1.0",
|
|
26
|
+
"@angular/cdk": "^15.1.0",
|
|
27
|
+
"@angular/common": "^15.1.0",
|
|
28
|
+
"@angular/core": "^15.1.0",
|
|
29
|
+
"@angular/flex-layout": "^15.1.0",
|
|
30
|
+
"@angular/forms": "^15.1.0",
|
|
31
|
+
"@angular/localize": "^15.1.0",
|
|
32
|
+
"@angular/material": "^15.1.0",
|
|
33
|
+
"@angular/platform-browser": "^15.1.0",
|
|
34
|
+
"@angular/platform-browser-dynamic": "^15.1.0",
|
|
35
|
+
"@angular/router": "^15.1.0",
|
|
36
36
|
"apollo-angular": "^3.0.0",
|
|
37
37
|
"lodash-es": "^4.17.21",
|
|
38
38
|
"rxjs": "^7.4.0"
|