@ecodev/natural 63.9.1 → 64.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ecodev-natural-vanilla.mjs +3 -3
- package/fesm2022/ecodev-natural-vanilla.mjs.map +1 -1
- package/fesm2022/ecodev-natural.mjs +520 -650
- package/fesm2022/ecodev-natural.mjs.map +1 -1
- package/index.d.ts +4264 -3
- package/package.json +10 -10
- package/src/lib/modules/sidenav/_sidenav.theme.scss +1 -1
- package/vanilla/index.d.ts +418 -3
- package/lib/classes/abstract-detail.d.ts +0 -108
- package/lib/classes/abstract-editable-list.d.ts +0 -70
- package/lib/classes/abstract-list.d.ts +0 -191
- package/lib/classes/abstract-navigable-list.d.ts +0 -54
- package/lib/classes/apollo-utils.d.ts +0 -18
- package/lib/classes/crypto.d.ts +0 -8
- package/lib/classes/cumulative-changes.d.ts +0 -27
- package/lib/classes/data-source.d.ts +0 -32
- package/lib/classes/network-activity.service.d.ts +0 -54
- package/lib/classes/providers.d.ts +0 -5
- package/lib/classes/query-variable-manager-utils.d.ts +0 -2
- package/lib/classes/query-variable-manager.d.ts +0 -91
- package/lib/classes/rxjs.d.ts +0 -42
- package/lib/classes/signing.d.ts +0 -7
- package/lib/classes/tld.d.ts +0 -10
- package/lib/classes/utility.d.ts +0 -85
- package/lib/classes/validators.d.ts +0 -72
- package/lib/directives/http-prefix.directive.d.ts +0 -15
- package/lib/modules/alert/alert.service.d.ts +0 -21
- package/lib/modules/alert/confirm.component.d.ts +0 -12
- package/lib/modules/alert/public-api.d.ts +0 -2
- package/lib/modules/avatar/component/avatar.component.d.ts +0 -37
- package/lib/modules/avatar/public-api.d.ts +0 -2
- package/lib/modules/avatar/service/avatar.service.d.ts +0 -24
- package/lib/modules/avatar/sources/gravatar.d.ts +0 -8
- package/lib/modules/avatar/sources/image.d.ts +0 -8
- package/lib/modules/avatar/sources/initials.d.ts +0 -8
- package/lib/modules/avatar/sources/source.d.ts +0 -23
- package/lib/modules/columns-picker/columns-picker.component.d.ts +0 -45
- package/lib/modules/columns-picker/public-api.d.ts +0 -2
- package/lib/modules/columns-picker/types.d.ts +0 -84
- package/lib/modules/common/directives/background-density.directive.d.ts +0 -37
- package/lib/modules/common/directives/linkable-tab.directive.d.ts +0 -29
- package/lib/modules/common/directives/src-density.directive.d.ts +0 -33
- package/lib/modules/common/pipes/capitalize.pipe.d.ts +0 -10
- package/lib/modules/common/pipes/ellipsis.pipe.d.ts +0 -7
- package/lib/modules/common/pipes/enum.pipe.d.ts +0 -14
- package/lib/modules/common/pipes/time-ago.pipe.d.ts +0 -18
- package/lib/modules/common/public-api.d.ts +0 -11
- package/lib/modules/common/services/memory-storage.d.ts +0 -46
- package/lib/modules/common/services/seo.provider.d.ts +0 -6
- package/lib/modules/common/services/seo.service.d.ts +0 -148
- package/lib/modules/detail-header/detail-header.component.d.ts +0 -43
- package/lib/modules/detail-header/public-api.d.ts +0 -1
- package/lib/modules/dialog-trigger/dialog-trigger.component.d.ts +0 -37
- package/lib/modules/dialog-trigger/public-api.d.ts +0 -1
- package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts +0 -34
- package/lib/modules/dropdown-components/public-api.d.ts +0 -10
- package/lib/modules/dropdown-components/type-boolean/type-boolean.component.d.ts +0 -12
- package/lib/modules/dropdown-components/type-date/type-date.component.d.ts +0 -36
- package/lib/modules/dropdown-components/type-date-range/type-date-range.component.d.ts +0 -43
- package/lib/modules/dropdown-components/type-hierarchic-selector/type-hierarchic-selector.component.d.ts +0 -31
- package/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.d.ts +0 -18
- package/lib/modules/dropdown-components/type-number/type-number.component.d.ts +0 -36
- package/lib/modules/dropdown-components/type-options/type-options.component.d.ts +0 -29
- package/lib/modules/dropdown-components/type-select/type-select.component.d.ts +0 -59
- package/lib/modules/dropdown-components/type-text/type-text.component.d.ts +0 -26
- package/lib/modules/dropdown-components/types.d.ts +0 -13
- package/lib/modules/dropdown-components/utils.d.ts +0 -14
- package/lib/modules/file/abstract-file.d.ts +0 -95
- package/lib/modules/file/component/file.component.d.ts +0 -58
- package/lib/modules/file/file-drop.directive.d.ts +0 -32
- package/lib/modules/file/file-select.directive.d.ts +0 -15
- package/lib/modules/file/file.service.d.ts +0 -19
- package/lib/modules/file/public-api.d.ts +0 -6
- package/lib/modules/file/types.d.ts +0 -7
- package/lib/modules/file/utils.d.ts +0 -8
- package/lib/modules/fixed-button/fixed-button.component.d.ts +0 -11
- package/lib/modules/fixed-button/public-api.d.ts +0 -1
- package/lib/modules/fixed-button-detail/fixed-button-detail.component.d.ts +0 -24
- package/lib/modules/fixed-button-detail/public-api.d.ts +0 -1
- package/lib/modules/hierarchic-selector/classes/flat-node.d.ts +0 -11
- package/lib/modules/hierarchic-selector/classes/hierarchic-configuration.d.ts +0 -56
- package/lib/modules/hierarchic-selector/classes/hierarchic-filters-configuration.d.ts +0 -7
- package/lib/modules/hierarchic-selector/classes/model-node.d.ts +0 -13
- package/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.component.d.ts +0 -161
- package/lib/modules/hierarchic-selector/hierarchic-selector/hierarchic-selector.service.d.ts +0 -76
- package/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.component.d.ts +0 -59
- package/lib/modules/hierarchic-selector/hierarchic-selector-dialog/hierarchic-selector-dialog.service.d.ts +0 -9
- package/lib/modules/hierarchic-selector/public-api.d.ts +0 -6
- package/lib/modules/icon/icon.directive.d.ts +0 -39
- package/lib/modules/icon/icon.module.d.ts +0 -9
- package/lib/modules/icon/public-api.d.ts +0 -2
- package/lib/modules/logger/error-handler.d.ts +0 -52
- package/lib/modules/logger/error.module.d.ts +0 -3
- package/lib/modules/logger/public-api.d.ts +0 -3
- package/lib/modules/matomo/matomo.service.d.ts +0 -42
- package/lib/modules/matomo/public-api.d.ts +0 -1
- package/lib/modules/panels/abstract-panel.d.ts +0 -37
- package/lib/modules/panels/fallback-if-no-opened-panels.urlmatcher.d.ts +0 -6
- package/lib/modules/panels/panels.component.d.ts +0 -9
- package/lib/modules/panels/panels.module.d.ts +0 -3
- package/lib/modules/panels/panels.service.d.ts +0 -121
- package/lib/modules/panels/panels.urlmatcher.d.ts +0 -8
- package/lib/modules/panels/public-api.d.ts +0 -7
- package/lib/modules/panels/types.d.ts +0 -61
- package/lib/modules/relations/public-api.d.ts +0 -1
- package/lib/modules/relations/relations.component.d.ts +0 -123
- package/lib/modules/search/classes/graphql-doctrine.d.ts +0 -4
- package/lib/modules/search/classes/graphql-doctrine.types.d.ts +0 -83
- package/lib/modules/search/classes/transformers.d.ts +0 -78
- package/lib/modules/search/classes/url.d.ts +0 -18
- package/lib/modules/search/classes/utils.d.ts +0 -17
- package/lib/modules/search/dropdown-container/dropdown-container.component.d.ts +0 -31
- package/lib/modules/search/dropdown-container/dropdown-ref.d.ts +0 -13
- package/lib/modules/search/dropdown-container/dropdown.service.d.ts +0 -24
- package/lib/modules/search/facet-selector/facet-selector.component.d.ts +0 -32
- package/lib/modules/search/group/group.component.d.ts +0 -21
- package/lib/modules/search/input/input.component.d.ts +0 -110
- package/lib/modules/search/public-api.d.ts +0 -11
- package/lib/modules/search/search/search.component.d.ts +0 -44
- package/lib/modules/search/types/dropdown-component.d.ts +0 -20
- package/lib/modules/search/types/facet.d.ts +0 -75
- package/lib/modules/search/types/values.d.ts +0 -32
- package/lib/modules/select/abstract-select.component.d.ts +0 -127
- package/lib/modules/select/public-api.d.ts +0 -3
- package/lib/modules/select/select/select.component.d.ts +0 -135
- package/lib/modules/select/select-enum/select-enum.component.d.ts +0 -32
- package/lib/modules/select/select-hierarchic/select-hierarchic.component.d.ts +0 -65
- package/lib/modules/sidenav/public-api.d.ts +0 -5
- package/lib/modules/sidenav/sidenav/sidenav.component.d.ts +0 -5
- package/lib/modules/sidenav/sidenav-container/sidenav-container.component.d.ts +0 -45
- package/lib/modules/sidenav/sidenav-content/sidenav-content.component.d.ts +0 -5
- package/lib/modules/sidenav/sidenav-stack.service.d.ts +0 -28
- package/lib/modules/sidenav/sidenav.service.d.ts +0 -86
- package/lib/modules/stamp/public-api.d.ts +0 -1
- package/lib/modules/stamp/stamp.component.d.ts +0 -15
- package/lib/modules/table-button/public-api.d.ts +0 -1
- package/lib/modules/table-button/table-button.component.d.ts +0 -32
- package/lib/services/abstract-model.service.d.ts +0 -244
- package/lib/services/debounce.service.d.ts +0 -52
- package/lib/services/enum.service.d.ts +0 -19
- package/lib/services/link-mutation.service.d.ts +0 -51
- package/lib/services/persistence.service.d.ts +0 -50
- package/lib/services/swiss-parsing-date-adapter.service.d.ts +0 -16
- package/lib/types/types.d.ts +0 -100
- package/public-api.d.ts +0 -44
- package/vanilla/public-api.d.ts +0 -11
- package/vanilla/src/lib/classes/crypto.d.ts +0 -8
- package/vanilla/src/lib/classes/data-source.d.ts +0 -32
- package/vanilla/src/lib/classes/query-variable-manager-utils.d.ts +0 -2
- package/vanilla/src/lib/classes/query-variable-manager.d.ts +0 -91
- package/vanilla/src/lib/classes/signing.d.ts +0 -7
- package/vanilla/src/lib/classes/utility.d.ts +0 -85
- package/vanilla/src/lib/modules/search/classes/graphql-doctrine.types.d.ts +0 -83
- package/vanilla/src/lib/modules/search/classes/utils.d.ts +0 -17
- package/vanilla/src/lib/modules/search/types/dropdown-component.d.ts +0 -20
- package/vanilla/src/lib/modules/search/types/facet.d.ts +0 -75
- package/vanilla/src/lib/modules/search/types/values.d.ts +0 -32
- package/vanilla/src/lib/services/abstract-model.service.d.ts +0 -244
- package/vanilla/src/lib/services/debounce.service.d.ts +0 -52
- package/vanilla/src/lib/types/types.d.ts +0 -100
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { Data } from '@angular/router';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export type NaturalSeo = NaturalSeoBasic | NaturalSeoCallback | NaturalSeoResolve;
|
|
6
|
-
/**
|
|
7
|
-
* Typically used for "static" pages where there is not a single resolved object. So
|
|
8
|
-
* all pages such as "About", or list of objects (list of risks, etc.).
|
|
9
|
-
*
|
|
10
|
-
* This should be the most common used variant.
|
|
11
|
-
*/
|
|
12
|
-
export type NaturalSeoBasic = Robots & {
|
|
13
|
-
/**
|
|
14
|
-
* The page title, that will be concatenated with application name
|
|
15
|
-
*/
|
|
16
|
-
title: string;
|
|
17
|
-
/**
|
|
18
|
-
* If given will be used as page description, otherwise fallback on default value
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* List of parameters included in the canonical tag's url
|
|
23
|
-
*/
|
|
24
|
-
canonicalQueryParamsWhitelist?: string[];
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Typically used for a "dynamic" page where a single object is resolved. So a detail page, such
|
|
28
|
-
* as the detail of a risk and so on.
|
|
29
|
-
*/
|
|
30
|
-
export type NaturalSeoResolve = Robots & {
|
|
31
|
-
/**
|
|
32
|
-
* The key `model` will be used in the resolved data to find the resolved object. The fullName
|
|
33
|
-
* or name of the object will be used for page title, and the object description, if any,
|
|
34
|
-
* will be used for page description.
|
|
35
|
-
*/
|
|
36
|
-
resolve: true;
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* Rarely used for a page that has very specific needs and need to build title and description in a custom way.
|
|
40
|
-
* The callback back will be given the resolved data, and it is up to the callback to find whatever it needs.
|
|
41
|
-
*/
|
|
42
|
-
export type NaturalSeoCallback = (routeData: Data) => NaturalSeoBasic | Observable<NaturalSeoBasic>;
|
|
43
|
-
/**
|
|
44
|
-
* Typically used to type the routing data received in the component, eg:
|
|
45
|
-
*
|
|
46
|
-
* ```ts
|
|
47
|
-
* class MyComponent extends NaturalAbstractDetail<MyService, NaturalSeoResolveData> {}
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export type NaturalSeoResolveData = {
|
|
51
|
-
seo: NaturalSeoBasic;
|
|
52
|
-
};
|
|
53
|
-
type Robots = {
|
|
54
|
-
/**
|
|
55
|
-
* If given will be used as robots meta tag, otherwise fallback on default value
|
|
56
|
-
*/
|
|
57
|
-
robots?: string;
|
|
58
|
-
};
|
|
59
|
-
type NaturalSeoConfigPlain = {
|
|
60
|
-
/**
|
|
61
|
-
* The name of the application that will always appear in the page title
|
|
62
|
-
*/
|
|
63
|
-
readonly applicationName: string;
|
|
64
|
-
/**
|
|
65
|
-
* Default value for description meta that is used for pages without value
|
|
66
|
-
*/
|
|
67
|
-
readonly defaultDescription?: string;
|
|
68
|
-
/**
|
|
69
|
-
* Default value for robots meta that is used for pages without value
|
|
70
|
-
*/
|
|
71
|
-
readonly defaultRobots?: string;
|
|
72
|
-
/**
|
|
73
|
-
* If given, the callback will be called for each route and must return a string that will
|
|
74
|
-
* be inserted between the page title and the application name.
|
|
75
|
-
*
|
|
76
|
-
* It should be used to complete the title with info that are often, but not necessarily always,
|
|
77
|
-
* available throughout the entire application. Typically used for the site/state in OKpilot.
|
|
78
|
-
*/
|
|
79
|
-
readonly extraPart?: (routeData: Data) => string;
|
|
80
|
-
/**
|
|
81
|
-
* Used to generate alternative tags
|
|
82
|
-
* <link rel="alternate" hreflang="en" href="https://www.example.com/en/page">
|
|
83
|
-
*/
|
|
84
|
-
readonly languages?: readonly string[];
|
|
85
|
-
};
|
|
86
|
-
export type NaturalSeoConfig = NaturalSeoConfigPlain | Observable<NaturalSeoConfigPlain>;
|
|
87
|
-
export declare const NATURAL_SEO_CONFIG: InjectionToken<NaturalSeoConfig>;
|
|
88
|
-
export declare function stripTags(str: string): string;
|
|
89
|
-
/**
|
|
90
|
-
* This service is responsible to keep up to date the page title and page description according
|
|
91
|
-
* to what is configured in routing or default values.
|
|
92
|
-
*
|
|
93
|
-
* It **must** be injected in the root module of the application to have effects in all modules. And it
|
|
94
|
-
* must be provided a configuration.
|
|
95
|
-
*
|
|
96
|
-
* The full title has the following structure:
|
|
97
|
-
*
|
|
98
|
-
* dialog title - page title - extra part - app name
|
|
99
|
-
*
|
|
100
|
-
* `dialog title` only exists if a `NaturalDialogTriggerComponent` is currently open, and that some SEO is
|
|
101
|
-
* configured for it in the routing.
|
|
102
|
-
*/
|
|
103
|
-
export declare class NaturalSeoService {
|
|
104
|
-
private readonly router;
|
|
105
|
-
private readonly titleService;
|
|
106
|
-
private readonly metaTagService;
|
|
107
|
-
private readonly document;
|
|
108
|
-
private locale;
|
|
109
|
-
private routeData?;
|
|
110
|
-
private config;
|
|
111
|
-
constructor();
|
|
112
|
-
/**
|
|
113
|
-
* Update the SEO with given info. The extra part and app name will be appended automatically.
|
|
114
|
-
*
|
|
115
|
-
* In most cases, this should not be used. And instead, the SEO should be configured in the routing,
|
|
116
|
-
* possibly with the callback variant for some dynamism.
|
|
117
|
-
*
|
|
118
|
-
* But in rare cases, only the Component is able to build a proper page title, after it gathered everything it
|
|
119
|
-
* needed. For those cases, the Component can inject this service and update the SEO directly.
|
|
120
|
-
*/
|
|
121
|
-
update(seo: NaturalSeoBasic): void;
|
|
122
|
-
private updateAlternates;
|
|
123
|
-
private getUrlParts;
|
|
124
|
-
/**
|
|
125
|
-
* Add language between domain and uri https://example.com/fr/folder/page
|
|
126
|
-
*/
|
|
127
|
-
private getUrl;
|
|
128
|
-
private addLanguageSegment;
|
|
129
|
-
private join;
|
|
130
|
-
private updateTag;
|
|
131
|
-
private updateLinkTag;
|
|
132
|
-
/**
|
|
133
|
-
* Returns selector to use in querySelector to get the given link
|
|
134
|
-
*/
|
|
135
|
-
private parseSelector;
|
|
136
|
-
/**
|
|
137
|
-
* Returns the data from the most deep/specific activated route
|
|
138
|
-
*/
|
|
139
|
-
private getRouteData;
|
|
140
|
-
/**
|
|
141
|
-
* Returns the data from the `NaturalDialogTriggerComponent` if one is open
|
|
142
|
-
*/
|
|
143
|
-
private getDialogRouteData;
|
|
144
|
-
private toBasic;
|
|
145
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalSeoService, never>;
|
|
146
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NaturalSeoService>;
|
|
147
|
-
}
|
|
148
|
-
export {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Literal, NameOrFullName } from '../../types/types';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class NaturalDetailHeaderComponent {
|
|
4
|
-
/**
|
|
5
|
-
* Base URL used to build links, defaults to '/'
|
|
6
|
-
*/
|
|
7
|
-
currentBaseUrl?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Must be set to get proper links when used in panels
|
|
10
|
-
*/
|
|
11
|
-
isPanel: boolean;
|
|
12
|
-
/**
|
|
13
|
-
* If given will show icon before title
|
|
14
|
-
*/
|
|
15
|
-
icon: string;
|
|
16
|
-
/**
|
|
17
|
-
* Title shown if model has no name, or empty name.
|
|
18
|
-
*
|
|
19
|
-
* Typically should be the human name for the object type, eg: 'Product'
|
|
20
|
-
*/
|
|
21
|
-
label: string;
|
|
22
|
-
/**
|
|
23
|
-
* Label of the root of the breadcrumb, defaults to the value of `label`.
|
|
24
|
-
*
|
|
25
|
-
* Typically should be the plural form of the object type, eg: 'Products'
|
|
26
|
-
*/
|
|
27
|
-
rootLabel: string;
|
|
28
|
-
/**
|
|
29
|
-
* Title shown if model has no id.
|
|
30
|
-
*
|
|
31
|
-
* Typically should be similar to 'New product'.
|
|
32
|
-
*/
|
|
33
|
-
newLabel: string;
|
|
34
|
-
model: Literal;
|
|
35
|
-
breadcrumbs: NameOrFullName[];
|
|
36
|
-
listRoute: any[];
|
|
37
|
-
listFragment: string | undefined;
|
|
38
|
-
link?: (id: string) => any[];
|
|
39
|
-
getRootLink(): string[];
|
|
40
|
-
getLink(id: string): any[];
|
|
41
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalDetailHeaderComponent, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalDetailHeaderComponent, "natural-detail-header", never, { "currentBaseUrl": { "alias": "currentBaseUrl"; "required": false; }; "isPanel": { "alias": "isPanel"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "label": { "alias": "label"; "required": false; }; "rootLabel": { "alias": "rootLabel"; "required": false; }; "newLabel": { "alias": "newLabel"; "required": false; }; "model": { "alias": "model"; "required": true; }; "breadcrumbs": { "alias": "breadcrumbs"; "required": false; }; "listRoute": { "alias": "listRoute"; "required": false; }; "listFragment": { "alias": "listFragment"; "required": false; }; "link": { "alias": "link"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
43
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './detail-header.component';
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from '@angular/cdk/portal';
|
|
2
|
-
import { OnDestroy } from '@angular/core';
|
|
3
|
-
import { MatDialogConfig } from '@angular/material/dialog';
|
|
4
|
-
import { ActivatedRoute, RouterLink } from '@angular/router';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type NaturalDialogTriggerRoutingData<T, D> = {
|
|
7
|
-
component: ComponentType<T>;
|
|
8
|
-
afterClosedRoute?: RouterLink['routerLink'];
|
|
9
|
-
dialogConfig: MatDialogConfig<D>;
|
|
10
|
-
};
|
|
11
|
-
export type NaturalDialogTriggerProvidedData<D> = {
|
|
12
|
-
data?: Readonly<D> | null;
|
|
13
|
-
activatedRoute: ActivatedRoute;
|
|
14
|
-
};
|
|
15
|
-
export type NaturalDialogTriggerRedirectionValues = RouterLink['routerLink'] | null | undefined | '' | -1;
|
|
16
|
-
export declare class NaturalDialogTriggerComponent<T, D> implements OnDestroy {
|
|
17
|
-
private readonly dialog;
|
|
18
|
-
private readonly route;
|
|
19
|
-
private readonly router;
|
|
20
|
-
private readonly dialogRef;
|
|
21
|
-
private readonly triggerConfig;
|
|
22
|
-
constructor();
|
|
23
|
-
/**
|
|
24
|
-
* Called when router leaves route, and so on, closes the modal with undefined value to prevent a new redirection
|
|
25
|
-
*/
|
|
26
|
-
ngOnDestroy(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Redirects on modal closing under following rules/conditions
|
|
29
|
-
*
|
|
30
|
-
* If -1 : no redirection
|
|
31
|
-
* If undefined, null or empty string : uses the router provided redirection route or fallbacks on parent route if router don't provide
|
|
32
|
-
* If a value is provided, should be of type any[] and it's used for redirection.
|
|
33
|
-
*/
|
|
34
|
-
redirect(exitValue: NaturalDialogTriggerRedirectionValues): void;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NaturalDialogTriggerComponent<any, any>, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NaturalDialogTriggerComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
37
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dialog-trigger.component';
|
package/lib/modules/dropdown-components/abstract-association-select-component.directive.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
-
import { FilterGroupConditionField } from '../search/classes/graphql-doctrine.types';
|
|
3
|
-
import { DropdownComponent } from '../search/types/dropdown-component';
|
|
4
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
5
|
-
import { PossibleDiscreteOperatorKeys } from './types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export declare abstract class AbstractAssociationSelectComponent<C> implements DropdownComponent {
|
|
8
|
-
readonly configuration: C;
|
|
9
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
10
|
-
requireValueCtrl: boolean;
|
|
11
|
-
readonly operators: readonly import("./types").PossibleDiscreteOperator[];
|
|
12
|
-
readonly operatorCtrl: FormControl<PossibleDiscreteOperatorKeys>;
|
|
13
|
-
readonly valueCtrl: FormControl<any>;
|
|
14
|
-
readonly form: FormGroup<{
|
|
15
|
-
operator: FormControl<PossibleDiscreteOperatorKeys>;
|
|
16
|
-
value: FormControl<any>;
|
|
17
|
-
}>;
|
|
18
|
-
constructor();
|
|
19
|
-
/**
|
|
20
|
-
* Reload the value from API (`operatorCtrl` should not be touched)
|
|
21
|
-
*/
|
|
22
|
-
protected abstract reloadValue(condition: FilterGroupConditionField): Observable<unknown>;
|
|
23
|
-
protected abstract renderValueWithoutOperator(): string;
|
|
24
|
-
abstract getCondition(): FilterGroupConditionField;
|
|
25
|
-
isValid(): boolean;
|
|
26
|
-
isDirty(): boolean;
|
|
27
|
-
private initValidators;
|
|
28
|
-
private reloadCondition;
|
|
29
|
-
protected getRenderedValue(): string;
|
|
30
|
-
protected conditionToOperatorKey(condition: FilterGroupConditionField): PossibleDiscreteOperatorKeys;
|
|
31
|
-
protected operatorKeyToCondition(key: PossibleDiscreteOperatorKeys, values: string[]): FilterGroupConditionField;
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractAssociationSelectComponent<any>, never>;
|
|
33
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractAssociationSelectComponent<any>, never, never, {}, {}, never, never, true, never>;
|
|
34
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export { type TypeSelectConfiguration, type TypeSelectItem, TypeSelectComponent, } from './type-select/type-select.component';
|
|
2
|
-
export { type TypeSelectNaturalConfiguration, TypeNaturalSelectComponent, } from './type-natural-select/type-natural-select.component';
|
|
3
|
-
export { type TypeNumberConfiguration, TypeNumberComponent } from './type-number/type-number.component';
|
|
4
|
-
export { type TypeHierarchicSelectorConfiguration, TypeHierarchicSelectorComponent, } from './type-hierarchic-selector/type-hierarchic-selector.component';
|
|
5
|
-
export { type TypeDateConfiguration, TypeDateComponent } from './type-date/type-date.component';
|
|
6
|
-
export { type TypeDateRangeConfiguration, TypeDateRangeComponent } from './type-date-range/type-date-range.component';
|
|
7
|
-
export { TypeTextComponent, InvalidWithValueStateMatcher } from './type-text/type-text.component';
|
|
8
|
-
export { type TypeBooleanConfiguration, TypeBooleanComponent } from './type-boolean/type-boolean.component';
|
|
9
|
-
export { type TypeOptionsConfiguration, type TypeOption, TypeOptionsComponent, } from './type-options/type-options.component';
|
|
10
|
-
export { possibleComparableOperators, type PossibleComparableOpertorKeys } from './types';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
2
|
-
import { TypeOptionsComponent } from '../type-options/type-options.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export type TypeBooleanConfiguration = {
|
|
5
|
-
displayWhenActive: string;
|
|
6
|
-
displayWhenInactive: string;
|
|
7
|
-
};
|
|
8
|
-
export declare class TypeBooleanComponent extends TypeOptionsComponent implements DropdownComponent {
|
|
9
|
-
constructor();
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeBooleanComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeBooleanComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
12
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
4
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type TypeDateConfiguration<D = Date> = {
|
|
7
|
-
min?: D | null;
|
|
8
|
-
max?: D | null;
|
|
9
|
-
};
|
|
10
|
-
export declare class TypeDateComponent<D = any> implements DropdownComponent {
|
|
11
|
-
private dateAdapter;
|
|
12
|
-
private dateFormats;
|
|
13
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
14
|
-
readonly configuration: Required<TypeDateConfiguration<D>>;
|
|
15
|
-
readonly operatorCtrl: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
16
|
-
readonly valueCtrl: FormControl<D | null>;
|
|
17
|
-
readonly todayCtrl: FormControl<boolean | null>;
|
|
18
|
-
readonly operators: readonly import("../types").PossibleComparableOperator[];
|
|
19
|
-
readonly form: FormGroup<{
|
|
20
|
-
operator: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
21
|
-
value: FormControl<D | null>;
|
|
22
|
-
today: FormControl<boolean | null>;
|
|
23
|
-
}>;
|
|
24
|
-
private readonly defaults;
|
|
25
|
-
constructor();
|
|
26
|
-
getCondition(): FilterGroupConditionField;
|
|
27
|
-
isValid(): boolean;
|
|
28
|
-
isDirty(): boolean;
|
|
29
|
-
private reloadCondition;
|
|
30
|
-
private setTodayOrDate;
|
|
31
|
-
private initValidators;
|
|
32
|
-
private getDayAfter;
|
|
33
|
-
private getRenderedValue;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeDateComponent<any>, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeDateComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { FormControl, FormGroup, FormGroupDirective, NgForm } from '@angular/forms';
|
|
2
|
-
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
5
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export type TypeDateRangeConfiguration<D = any> = {
|
|
8
|
-
min?: D | null;
|
|
9
|
-
max?: D | null;
|
|
10
|
-
};
|
|
11
|
-
declare class InvalidWithValueStateMatcher implements ErrorStateMatcher {
|
|
12
|
-
isErrorState(control: FormControl<unknown> | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Date range with mandatory bounding dates.
|
|
16
|
-
*
|
|
17
|
-
* If you need optional bounding date, then use `TypeDateComponent` instead.
|
|
18
|
-
*/
|
|
19
|
-
export declare class TypeDateRangeComponent<D = any> implements DropdownComponent {
|
|
20
|
-
private dateAdapter;
|
|
21
|
-
private dateFormats;
|
|
22
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
23
|
-
readonly configuration: Required<TypeDateRangeConfiguration<D>>;
|
|
24
|
-
readonly matcher: InvalidWithValueStateMatcher;
|
|
25
|
-
readonly fromCtrl: FormControl<D | null>;
|
|
26
|
-
readonly toCtrl: FormControl<D | null>;
|
|
27
|
-
readonly form: FormGroup<{
|
|
28
|
-
from: FormControl<D | null>;
|
|
29
|
-
to: FormControl<D | null>;
|
|
30
|
-
}>;
|
|
31
|
-
private readonly defaults;
|
|
32
|
-
constructor();
|
|
33
|
-
getCondition(): FilterGroupConditionField;
|
|
34
|
-
isValid(): boolean;
|
|
35
|
-
isDirty(): boolean;
|
|
36
|
-
private reloadCondition;
|
|
37
|
-
private initValidators;
|
|
38
|
-
render(value: D | null): string;
|
|
39
|
-
private getRenderedValue;
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeDateRangeComponent<any>, never>;
|
|
41
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeDateRangeComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
42
|
-
}
|
|
43
|
-
export {};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Literal, UntypedModelService } from '../../../types/types';
|
|
2
|
-
import { NaturalHierarchicConfiguration } from '../../hierarchic-selector/classes/hierarchic-configuration';
|
|
3
|
-
import { OrganizedModelSelection } from '../../hierarchic-selector/hierarchic-selector/hierarchic-selector.service';
|
|
4
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
5
|
-
import { AbstractAssociationSelectComponent } from '../abstract-association-select-component.directive';
|
|
6
|
-
import { Observable } from 'rxjs';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export type HierarchicFilterConfiguration<T = Literal> = {
|
|
9
|
-
service: NaturalHierarchicConfiguration['service'];
|
|
10
|
-
filter: T;
|
|
11
|
-
};
|
|
12
|
-
export type HierarchicFiltersConfiguration<T = Literal> = HierarchicFilterConfiguration<T>[];
|
|
13
|
-
export type TypeHierarchicSelectorConfiguration = {
|
|
14
|
-
key: string;
|
|
15
|
-
service: UntypedModelService;
|
|
16
|
-
config: NaturalHierarchicConfiguration[];
|
|
17
|
-
filters?: HierarchicFiltersConfiguration;
|
|
18
|
-
};
|
|
19
|
-
export declare class TypeHierarchicSelectorComponent extends AbstractAssociationSelectComponent<TypeHierarchicSelectorConfiguration> {
|
|
20
|
-
getCondition(): FilterGroupConditionField;
|
|
21
|
-
protected reloadValue(condition: FilterGroupConditionField): Observable<unknown | null>;
|
|
22
|
-
protected renderValueWithoutOperator(): string;
|
|
23
|
-
selectionChange(selection: OrganizedModelSelection): void;
|
|
24
|
-
/**
|
|
25
|
-
* We need to keep `null` in our valueCtrl so the required validator works properly, so
|
|
26
|
-
* filter here
|
|
27
|
-
*/
|
|
28
|
-
private noEmptySelection;
|
|
29
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeHierarchicSelectorComponent, never>;
|
|
30
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeHierarchicSelectorComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
31
|
-
}
|
package/lib/modules/dropdown-components/type-natural-select/type-natural-select.component.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
2
|
-
import { ExtractTone, ExtractVall, UntypedModelService } from '../../../types/types';
|
|
3
|
-
import { AbstractAssociationSelectComponent } from '../abstract-association-select-component.directive';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type TypeSelectNaturalConfiguration<TService extends UntypedModelService> = {
|
|
7
|
-
service: TService;
|
|
8
|
-
placeholder: string;
|
|
9
|
-
filter?: ExtractVall<TService>['filter'];
|
|
10
|
-
pageSize?: number;
|
|
11
|
-
};
|
|
12
|
-
export declare class TypeNaturalSelectComponent<TService extends UntypedModelService> extends AbstractAssociationSelectComponent<TypeSelectNaturalConfiguration<TService>> {
|
|
13
|
-
getCondition(): FilterGroupConditionField;
|
|
14
|
-
protected reloadValue(condition: FilterGroupConditionField): Observable<ExtractTone<TService>>;
|
|
15
|
-
protected renderValueWithoutOperator(): string;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeNaturalSelectComponent<any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeNaturalSelectComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
|
|
18
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
4
|
-
import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
|
|
5
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
6
|
-
import { InvalidWithValueStateMatcher } from '../type-text/type-text.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export type TypeNumberConfiguration = {
|
|
9
|
-
min?: number | null;
|
|
10
|
-
max?: number | null;
|
|
11
|
-
step?: number | null;
|
|
12
|
-
};
|
|
13
|
-
export declare class TypeNumberComponent implements DropdownComponent {
|
|
14
|
-
protected dropdownRef: NaturalDropdownRef;
|
|
15
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
16
|
-
readonly configuration: Required<TypeNumberConfiguration>;
|
|
17
|
-
readonly operatorCtrl: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
18
|
-
readonly valueCtrl: FormControl<any>;
|
|
19
|
-
readonly matcher: InvalidWithValueStateMatcher;
|
|
20
|
-
readonly form: FormGroup<{
|
|
21
|
-
operator: FormControl<"equal" | "greater" | "greaterOrEqual" | "less" | "lessOrEqual">;
|
|
22
|
-
value: FormControl<any>;
|
|
23
|
-
}>;
|
|
24
|
-
readonly operators: readonly import("../types").PossibleComparableOperator[];
|
|
25
|
-
private readonly defaults;
|
|
26
|
-
constructor();
|
|
27
|
-
getCondition(): FilterGroupConditionField;
|
|
28
|
-
isValid(): boolean;
|
|
29
|
-
isDirty(): boolean;
|
|
30
|
-
close(): void;
|
|
31
|
-
private initValidators;
|
|
32
|
-
private reloadCondition;
|
|
33
|
-
private getRenderedValue;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeNumberComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeNumberComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
36
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { Literal } from '../../../types/types';
|
|
4
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
5
|
-
import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
|
|
6
|
-
import { NaturalDropdownData } from '../../search/dropdown-container/dropdown.service';
|
|
7
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export type TypeOption = {
|
|
10
|
-
display: string;
|
|
11
|
-
condition: Literal;
|
|
12
|
-
};
|
|
13
|
-
export type TypeOptionsConfiguration = {
|
|
14
|
-
options: TypeOption[];
|
|
15
|
-
};
|
|
16
|
-
export declare class TypeOptionsComponent implements DropdownComponent {
|
|
17
|
-
readonly data: NaturalDropdownData<TypeOptionsConfiguration>;
|
|
18
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
19
|
-
readonly formControl: FormControl<TypeOption>;
|
|
20
|
-
readonly configuration: Required<TypeOptionsConfiguration>;
|
|
21
|
-
private readonly defaults;
|
|
22
|
-
protected readonly dropdownRef: NaturalDropdownRef;
|
|
23
|
-
constructor(data: NaturalDropdownData<TypeOptionsConfiguration>);
|
|
24
|
-
getCondition(): FilterGroupConditionField;
|
|
25
|
-
isValid(): boolean;
|
|
26
|
-
isDirty(): boolean;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeOptionsComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeOptionsComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
29
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { MatSelectionList } from '@angular/material/list';
|
|
3
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
-
import { FilterGroupConditionField, Scalar } from '../../search/classes/graphql-doctrine.types';
|
|
5
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
6
|
-
import { FormControl, FormGroup } from '@angular/forms';
|
|
7
|
-
import { PossibleDiscreteOperatorKeys } from '../types';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export type TypeSelectItem = Scalar | {
|
|
10
|
-
id: Scalar;
|
|
11
|
-
name: Scalar;
|
|
12
|
-
} | {
|
|
13
|
-
value: Scalar;
|
|
14
|
-
name: Scalar;
|
|
15
|
-
};
|
|
16
|
-
export type TypeSelectConfiguration = {
|
|
17
|
-
items: TypeSelectItem[] | Observable<TypeSelectItem[]>;
|
|
18
|
-
multiple?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* If true (default) a selectbox allows to choose an operator. Otherwise, the selectbox is hidden and the operator will always be `is`.
|
|
21
|
-
*/
|
|
22
|
-
operators?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export declare class TypeSelectComponent implements DropdownComponent, AfterViewInit {
|
|
25
|
-
private readonly destroyRef;
|
|
26
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
27
|
-
readonly list: import("@angular/core").Signal<MatSelectionList | undefined>;
|
|
28
|
-
requireValueCtrl: boolean;
|
|
29
|
-
readonly operators: readonly import("../types").PossibleDiscreteOperator[];
|
|
30
|
-
readonly operatorCtrl: FormControl<PossibleDiscreteOperatorKeys>;
|
|
31
|
-
readonly valueCtrl: FormControl<any>;
|
|
32
|
-
readonly form: FormGroup<{
|
|
33
|
-
operator: FormControl<PossibleDiscreteOperatorKeys>;
|
|
34
|
-
value: FormControl<any>;
|
|
35
|
-
}>;
|
|
36
|
-
items: TypeSelectItem[];
|
|
37
|
-
readonly configuration: Required<TypeSelectConfiguration>;
|
|
38
|
-
private readonly defaults;
|
|
39
|
-
constructor();
|
|
40
|
-
ngAfterViewInit(): void;
|
|
41
|
-
getId(item: TypeSelectItem): Scalar;
|
|
42
|
-
getDisplay(item: TypeSelectItem): Scalar;
|
|
43
|
-
getCondition(): FilterGroupConditionField;
|
|
44
|
-
isValid(): boolean;
|
|
45
|
-
isDirty(): boolean;
|
|
46
|
-
private initValidators;
|
|
47
|
-
private isMultiple;
|
|
48
|
-
private getItemById;
|
|
49
|
-
private reloadCondition;
|
|
50
|
-
/**
|
|
51
|
-
* Reload the value from API (`operatorCtrl` should not be touched)
|
|
52
|
-
*/
|
|
53
|
-
private reloadValue;
|
|
54
|
-
private getRenderedValue;
|
|
55
|
-
private conditionToOperatorKey;
|
|
56
|
-
private operatorKeyToCondition;
|
|
57
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeSelectComponent, never>;
|
|
58
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeSelectComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
59
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FormControl } from '@angular/forms';
|
|
2
|
-
import { ErrorStateMatcher } from '@angular/material/core';
|
|
3
|
-
import { BehaviorSubject } from 'rxjs';
|
|
4
|
-
import { FilterGroupConditionField } from '../../search/classes/graphql-doctrine.types';
|
|
5
|
-
import { NaturalDropdownRef } from '../../search/dropdown-container/dropdown-ref';
|
|
6
|
-
import { DropdownComponent } from '../../search/types/dropdown-component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
/**
|
|
9
|
-
* Show an error message if the control has a value and an error, even if control is not dirty and not touched.
|
|
10
|
-
*/
|
|
11
|
-
export declare class InvalidWithValueStateMatcher implements ErrorStateMatcher {
|
|
12
|
-
isErrorState(control: FormControl | null): boolean;
|
|
13
|
-
}
|
|
14
|
-
export declare class TypeTextComponent implements DropdownComponent {
|
|
15
|
-
protected dropdownRef: NaturalDropdownRef;
|
|
16
|
-
readonly renderedValue: BehaviorSubject<string>;
|
|
17
|
-
readonly formCtrl: FormControl<string>;
|
|
18
|
-
readonly matcher: InvalidWithValueStateMatcher;
|
|
19
|
-
constructor();
|
|
20
|
-
getCondition(): FilterGroupConditionField;
|
|
21
|
-
isValid(): boolean;
|
|
22
|
-
isDirty(): boolean;
|
|
23
|
-
close(): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeTextComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TypeTextComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
26
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { FilterGroupConditionField } from '../search/classes/graphql-doctrine.types';
|
|
2
|
-
export type PossibleComparableOpertorKeys = keyof Pick<FilterGroupConditionField, 'less' | 'lessOrEqual' | 'equal' | 'greaterOrEqual' | 'greater'>;
|
|
3
|
-
export type PossibleComparableOperator = {
|
|
4
|
-
key: PossibleComparableOpertorKeys;
|
|
5
|
-
label: string;
|
|
6
|
-
};
|
|
7
|
-
export declare const possibleComparableOperators: readonly PossibleComparableOperator[];
|
|
8
|
-
export type PossibleDiscreteOperatorKeys = 'is' | 'isnot' | 'any' | 'none';
|
|
9
|
-
export type PossibleDiscreteOperator = {
|
|
10
|
-
key: PossibleDiscreteOperatorKeys;
|
|
11
|
-
label: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const possibleDiscreteOperators: readonly PossibleDiscreteOperator[];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { DateAdapter } from '@angular/material/core';
|
|
2
|
-
import { ValidatorFn } from '@angular/forms';
|
|
3
|
-
/**
|
|
4
|
-
* Get only date, without time and ignoring entirely the timezone
|
|
5
|
-
*/
|
|
6
|
-
export declare function serialize<D>(dateAdapter: DateAdapter<D>, value: D | null): string;
|
|
7
|
-
/**
|
|
8
|
-
* Min date validator
|
|
9
|
-
*/
|
|
10
|
-
export declare function dateMin<D>(dateAdapter: DateAdapter<D>, min: D): ValidatorFn;
|
|
11
|
-
/**
|
|
12
|
-
* Max date validator
|
|
13
|
-
*/
|
|
14
|
-
export declare function dateMax<D>(dateAdapter: DateAdapter<D>, max: D): ValidatorFn;
|