@sumaris-net/ngx-components 18.27.0-alpha1 → 18.27.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/doc/changelog.md +8 -2
- package/esm2022/public_api.mjs +1 -2
- package/esm2022/src/app/core/about/about.modal.mjs +16 -3
- package/esm2022/src/app/core/core.module.mjs +1 -4
- package/esm2022/src/app/core/form/form.utils.mjs +1 -12
- package/esm2022/src/app/core/menu/menu.component.mjs +3 -3
- package/esm2022/src/app/core/services/config/core.config.mjs +6 -1
- package/esm2022/src/app/core/services/platform.service.mjs +37 -7
- package/esm2022/src/app/core/settings/settings.page.mjs +8 -4
- package/esm2022/src/app/shared/capacitor/plugins.mjs +2 -1
- package/esm2022/src/app/shared/focusable.mjs +1 -1
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +3 -3
- package/esm2022/src/app/shared/image/gallery/slideshow/image-gallery-slideshow.component.mjs +2 -2
- package/esm2022/src/app/shared/inputs.mjs +3 -22
- package/esm2022/src/app/shared/markdown/markdown.component.mjs +3 -3
- package/esm2022/src/app/shared/markdown/testing/markdown.test.mjs +2 -2
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +46 -175
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +23 -69
- package/esm2022/src/app/shared/material/datetime/material.date.mjs +4 -18
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +28 -116
- package/esm2022/src/app/shared/material/duration/duration.module.mjs +3 -10
- package/esm2022/src/app/shared/material/duration/material.duration.mjs +33 -63
- package/esm2022/src/app/shared/material/duration/testing/mat-duration.test.mjs +3 -3
- package/esm2022/src/app/shared/material/latlong/material.latlong-input.mjs +1 -14
- package/esm2022/src/app/shared/material/latlong/material.latlong.mjs +1 -16
- package/esm2022/src/app/shared/material/paginator/material.paginator-i18n.mjs +25 -14
- package/esm2022/src/app/shared/material/testing/common.test.mjs +27 -218
- package/esm2022/src/app/shared/platforms.mjs +23 -1
- package/esm2022/src/app/shared/version/versions.mjs +10 -3
- package/esm2022/src/app/social/feed/feed.component.mjs +3 -3
- package/esm2022/src/environments/environment.class.mjs +2 -1
- package/esm2022/src/environments/environment.mjs +2 -1
- package/fesm2022/sumaris-net.ngx-components.mjs +552 -1015
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +32 -14
- package/public_api.d.ts +0 -1
- package/src/app/core/about/about.modal.d.ts +2 -0
- package/src/app/core/core.module.d.ts +15 -15
- package/src/app/core/form/form.utils.d.ts +0 -7
- package/src/app/core/services/config/core.config.d.ts +1 -0
- package/src/app/core/services/platform.service.d.ts +2 -0
- package/src/app/core/settings/settings.page.d.ts +1 -1
- package/src/app/shared/capacitor/plugins.d.ts +1 -0
- package/src/app/shared/focusable.d.ts +1 -3
- package/src/app/shared/inputs.d.ts +1 -3
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +7 -20
- package/src/app/shared/material/boolean/material.boolean.d.ts +4 -12
- package/src/app/shared/material/datetime/material.date.d.ts +2 -6
- package/src/app/shared/material/datetime/material.datetime.d.ts +4 -20
- package/src/app/shared/material/duration/duration.module.d.ts +1 -3
- package/src/app/shared/material/duration/material.duration.d.ts +13 -15
- package/src/app/shared/material/latlong/material.latlong-input.d.ts +3 -5
- package/src/app/shared/material/latlong/material.latlong.d.ts +1 -5
- package/src/app/shared/material/paginator/material.paginator-i18n.d.ts +5 -1
- package/src/app/shared/material/testing/common.test.d.ts +6 -49
- package/src/app/shared/platforms.d.ts +1 -0
- package/src/assets/i18n/en-US.json +2 -1
- package/src/assets/i18n/en.json +3 -2
- package/src/assets/i18n/fr.json +2 -1
- package/src/assets/manifest.json +1 -1
- package/src/environments/environment.class.d.ts +1 -0
- package/src/theme/_ngx-components.table.scss +5 -0
- package/esm2022/src/app/shared/field-accessor.mjs +0 -16
- package/src/app/shared/field-accessor.d.ts +0 -51
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumaris-net/ngx-components",
|
|
3
3
|
"description": "SUMARiS Angular components",
|
|
4
|
-
"version": "18.27.0
|
|
4
|
+
"version": "18.27.0",
|
|
5
5
|
"author": "contact@e-is.pro",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"readmeFilename": "README.md",
|
|
@@ -39,23 +39,29 @@
|
|
|
39
39
|
"zone.js": "~0.14.10"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
|
+
"apollo-angular": "~7.2.1",
|
|
43
|
+
"apollo-link-logger": "~2.0.1",
|
|
44
|
+
"apollo-link-queue": "~3.1.0",
|
|
45
|
+
"apollo-link-serialize": "~4.0.0",
|
|
46
|
+
"apollo3-cache-persist": "~0.14.1",
|
|
42
47
|
"@awesome-cordova-plugins/audio-management": "^6.16.0",
|
|
43
48
|
"@awesome-cordova-plugins/core": "^6.16.0",
|
|
44
49
|
"@awesome-cordova-plugins/downloader": "^6.16.0",
|
|
45
50
|
"@capacitor-community/native-audio": "^7.0.1",
|
|
46
|
-
"@capacitor/android": "^7.4.
|
|
47
|
-
"@capacitor/app": "^7.1.
|
|
48
|
-
"@capacitor/browser": "^7.0.
|
|
49
|
-
"@capacitor/camera": "^7.0.
|
|
50
|
-
"@capacitor/clipboard": "^7.0.
|
|
51
|
-
"@capacitor/core": "^7.4.
|
|
51
|
+
"@capacitor/android": "^7.4.5",
|
|
52
|
+
"@capacitor/app": "^7.1.2",
|
|
53
|
+
"@capacitor/browser": "^7.0.5",
|
|
54
|
+
"@capacitor/camera": "^7.0.5",
|
|
55
|
+
"@capacitor/clipboard": "^7.0.4",
|
|
56
|
+
"@capacitor/core": "^7.4.5",
|
|
57
|
+
"@capacitor/device": "^7.0.5",
|
|
52
58
|
"@capacitor/geolocation": "^7.1.6",
|
|
53
|
-
"@capacitor/haptics": "^7.0.
|
|
54
|
-
"@capacitor/ios": "^7.4.
|
|
55
|
-
"@capacitor/keyboard": "^7.0.
|
|
56
|
-
"@capacitor/network": "^7.0.
|
|
57
|
-
"@capacitor/splash-screen": "^7.0.
|
|
58
|
-
"@capacitor/status-bar": "^7.0.
|
|
59
|
+
"@capacitor/haptics": "^7.0.5",
|
|
60
|
+
"@capacitor/ios": "^7.4.5",
|
|
61
|
+
"@capacitor/keyboard": "^7.0.6",
|
|
62
|
+
"@capacitor/network": "^7.0.4",
|
|
63
|
+
"@capacitor/splash-screen": "^7.0.5",
|
|
64
|
+
"@capacitor/status-bar": "^7.0.6",
|
|
59
65
|
"@capawesome/capacitor-android-edge-to-edge-support": "^7.2.3",
|
|
60
66
|
"@e-is/cordova-plugin-audiomanagement": "^1.0.3",
|
|
61
67
|
"@e-is/cordova-plugin-downloader": "^1.2.0",
|
|
@@ -63,7 +69,19 @@
|
|
|
63
69
|
"cordova-sqlite-storage": "~6.0.0",
|
|
64
70
|
"emoji-toolkit": ">= 8.0.0 < 10.0.0",
|
|
65
71
|
"localforage-cordovasqlitedriver": "~1.8.0",
|
|
66
|
-
"
|
|
72
|
+
"marked": ">= 9.0.0 < 13.0.0",
|
|
73
|
+
"ionicons": "~7.4.0",
|
|
74
|
+
"jdenticon": "~3.3.0",
|
|
75
|
+
"ngx-markdown": "^18.1.0",
|
|
76
|
+
"ngx-color-picker": "~17.0.0",
|
|
77
|
+
"ngx-jdenticon": "~2.0.0",
|
|
78
|
+
"ngx-mat-timepicker": "^18.0.1",
|
|
79
|
+
"prismjs": "^1.28.0",
|
|
80
|
+
"rxjs": "~7.8.2",
|
|
81
|
+
"swiper": "^14.0.1",
|
|
82
|
+
"uuid": "~7.0.3",
|
|
83
|
+
"moment": "~2.30.1",
|
|
84
|
+
"moment-timezone": "~0.5.46"
|
|
67
85
|
},
|
|
68
86
|
"repository": {
|
|
69
87
|
"type": "git",
|
package/public_api.d.ts
CHANGED
|
@@ -127,7 +127,6 @@ export * from './src/app/shared/types';
|
|
|
127
127
|
export * from './src/app/shared/dates';
|
|
128
128
|
export * from './src/app/shared/functions';
|
|
129
129
|
export * from './src/app/shared/focusable';
|
|
130
|
-
export * from './src/app/shared/field-accessor';
|
|
131
130
|
export * from './src/app/shared/regexps';
|
|
132
131
|
export * from './src/app/shared/services';
|
|
133
132
|
export * from './src/app/shared/forms';
|
|
@@ -28,6 +28,7 @@ export declare class AboutModal implements OnInit, OnDestroy {
|
|
|
28
28
|
protected reportIssueUrl: string;
|
|
29
29
|
protected forumUrl: string;
|
|
30
30
|
protected helpUrl: string;
|
|
31
|
+
protected changelogUrl: string;
|
|
31
32
|
protected showVersionDetails: boolean;
|
|
32
33
|
protected nodeInfo: NodeInfo;
|
|
33
34
|
protected buildDate: string;
|
|
@@ -37,6 +38,7 @@ export declare class AboutModal implements OnInit, OnDestroy {
|
|
|
37
38
|
ngOnDestroy(): void;
|
|
38
39
|
close(): Promise<void>;
|
|
39
40
|
protected setConfig(config?: Configuration): void;
|
|
41
|
+
protected openChangelog(event: Event): Promise<void>;
|
|
40
42
|
protected loadNodeInfo(): Promise<void>;
|
|
41
43
|
protected getNodeInfo(): Promise<NodeInfo>;
|
|
42
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<AboutModal, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
@@ -7,23 +7,23 @@ import * as i4 from "@ionic/storage-angular";
|
|
|
7
7
|
import * as i5 from "./graphql/graphql.module";
|
|
8
8
|
import * as i6 from "./menu/menu.module";
|
|
9
9
|
import * as i7 from "./icon/icon.module";
|
|
10
|
-
import * as i8 from "./
|
|
11
|
-
import * as i9 from "./
|
|
12
|
-
import * as i10 from "./
|
|
13
|
-
import * as i11 from "./
|
|
14
|
-
import * as i12 from "./
|
|
15
|
-
import * as i13 from "./
|
|
16
|
-
import * as i14 from "./
|
|
17
|
-
import * as i15 from "./
|
|
18
|
-
import * as i16 from "./
|
|
19
|
-
import * as i17 from "./
|
|
20
|
-
import * as i18 from "./
|
|
21
|
-
import * as i19 from "./
|
|
22
|
-
import * as i20 from "./
|
|
23
|
-
import * as i21 from "./
|
|
10
|
+
import * as i8 from "./account/account.module";
|
|
11
|
+
import * as i9 from "./register/register.module";
|
|
12
|
+
import * as i10 from "./auth/auth.module";
|
|
13
|
+
import * as i11 from "./home/home.module";
|
|
14
|
+
import * as i12 from "./about/about.module";
|
|
15
|
+
import * as i13 from "./settings/settings.module";
|
|
16
|
+
import * as i14 from "./peer/select-peer.module";
|
|
17
|
+
import * as i15 from "./form/form.module";
|
|
18
|
+
import * as i16 from "./table/table.module";
|
|
19
|
+
import * as i17 from "./install/install-upgrade-card.module";
|
|
20
|
+
import * as i18 from "./offline/update-offline-mode-card.module";
|
|
21
|
+
import * as i19 from "./services/pipes/pipes.module";
|
|
22
|
+
import * as i20 from "./account/password/change-password.module";
|
|
23
|
+
import * as i21 from "./icon/icon-selector.module";
|
|
24
24
|
export declare class CoreModule {
|
|
25
25
|
static forRoot(): ModuleWithProviders<CoreModule>;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<CoreModule, never>;
|
|
27
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof i1.SharedModule, typeof i2.RouterModule, typeof i3.CacheModule, typeof i4.IonicStorageModule, typeof i5.AppGraphQLModule, typeof i6.AppMenuModule, typeof i7.AppIconModule, typeof i8.
|
|
27
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CoreModule, never, [typeof i1.SharedModule, typeof i2.RouterModule, typeof i3.CacheModule, typeof i4.IonicStorageModule, typeof i5.AppGraphQLModule, typeof i6.AppMenuModule, typeof i7.AppIconModule, typeof i8.AppAccountModule, typeof i9.AppRegisterModule, typeof i10.AppAuthModule, typeof i11.AppHomePageModule, typeof i12.AppAboutModalModule, typeof i13.AppSettingsPageModule, typeof i14.AppSelectPeerModule, typeof i15.AppFormModule, typeof i16.AppTableModule, typeof i17.AppInstallUpgradeCardModule, typeof i18.AppUpdateOfflineModeCardModule, typeof i19.CorePipesModule], [typeof i1.SharedModule, typeof i2.RouterModule, typeof i5.AppGraphQLModule, typeof i6.AppMenuModule, typeof i9.AppRegisterModule, typeof i20.AppChangePasswordModule, typeof i10.AppAuthModule, typeof i11.AppHomePageModule, typeof i12.AppAboutModalModule, typeof i13.AppSettingsPageModule, typeof i7.AppIconModule, typeof i21.AppIconSelectorModule, typeof i14.AppSelectPeerModule, typeof i15.AppFormModule, typeof i16.AppTableModule, typeof i17.AppInstallUpgradeCardModule, typeof i18.AppUpdateOfflineModeCardModule, typeof i19.CorePipesModule]>;
|
|
28
28
|
static ɵinj: i0.ɵɵInjectorDeclaration<CoreModule>;
|
|
29
29
|
}
|
|
@@ -289,12 +289,6 @@ export declare class AppFormUtils {
|
|
|
289
289
|
* @return {void} Does not return a value.
|
|
290
290
|
*/
|
|
291
291
|
static setFormErrors: typeof setFormErrors;
|
|
292
|
-
/**
|
|
293
|
-
* Retrieves the name of the control.
|
|
294
|
-
*
|
|
295
|
-
* @param {AbstractControl} control - A form control, form group, or form array
|
|
296
|
-
*/
|
|
297
|
-
static getControlName: typeof getControlName;
|
|
298
292
|
}
|
|
299
293
|
export declare function isControlHasInput(controls: {
|
|
300
294
|
[key: string]: AbstractControl;
|
|
@@ -305,4 +299,3 @@ export declare function setCalculatedValue(controls: {
|
|
|
305
299
|
export declare function resetCalculatedValue(controls: {
|
|
306
300
|
[key: string]: AbstractControl;
|
|
307
301
|
}, controlName: string): void;
|
|
308
|
-
export declare function getControlName(control: AbstractControl): string | undefined;
|
|
@@ -21,6 +21,7 @@ export declare const CORE_CONFIG_OPTIONS: Readonly<{
|
|
|
21
21
|
HELP_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
22
22
|
FORUM_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
23
23
|
REPORT_ISSUE_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
24
|
+
CHANGELOG_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
24
25
|
PRIVACY_POLICY_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
25
26
|
TERMS_OF_USE_URL: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
26
27
|
LOGO_LARGE: FormFieldDefinition<string, import("../../../shared/form/field.model").FormFieldType, any, any>;
|
|
@@ -19,6 +19,7 @@ import { OpenOptions } from '@capacitor/browser';
|
|
|
19
19
|
import { ILoggingService } from '../../shared/logging/logger.model';
|
|
20
20
|
import { Clipboard as CdkClipboard } from '@angular/cdk/clipboard';
|
|
21
21
|
import { WriteOptions } from '@capacitor/clipboard/dist/esm/definitions';
|
|
22
|
+
import { DeviceInfo } from '@capacitor/device';
|
|
22
23
|
import * as i0 from "@angular/core";
|
|
23
24
|
export declare const AndroidOsEnvironment: Readonly<{
|
|
24
25
|
DIRECTORY_DOWNLOADS: "Download";
|
|
@@ -112,6 +113,7 @@ export declare class PlatformService extends StartableService {
|
|
|
112
113
|
}) => void): Promise<Subscription>;
|
|
113
114
|
showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
|
|
114
115
|
closeToast(id?: string): Promise<boolean>;
|
|
116
|
+
getDeviceInfo(): Promise<DeviceInfo>;
|
|
115
117
|
protected configureTheme(mobile: boolean, win?: any): Promise<void>;
|
|
116
118
|
protected configureCapacitorPlugins(): Promise<void>;
|
|
117
119
|
protected configureTranslate(): void;
|
|
@@ -53,7 +53,7 @@ export declare class SettingsPage extends AppForm<LocalSettings> implements OnIn
|
|
|
53
53
|
setAccountInheritance(enable: boolean, opts?: {
|
|
54
54
|
emitEvent?: boolean;
|
|
55
55
|
}): void;
|
|
56
|
-
showSelectPeerModal(opts?: Partial<ISelectPeerModalOptions>): Promise<void>;
|
|
56
|
+
showSelectPeerModal(event?: Event, opts?: Partial<ISelectPeerModalOptions>): Promise<void>;
|
|
57
57
|
protected setForceOffline(value: boolean): void;
|
|
58
58
|
cancel(event?: Event): Promise<void>;
|
|
59
59
|
close(_?: Event): Promise<boolean>;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
2
1
|
export interface FocusableElement {
|
|
3
|
-
|
|
4
|
-
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
2
|
+
focus(): any;
|
|
5
3
|
}
|
|
6
4
|
export declare function isFocusableElement(object: any): object is FocusableElement;
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { ElementRef, QueryList } from '@angular/core';
|
|
2
2
|
import { FocusableElement } from './focusable';
|
|
3
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
4
3
|
export declare function selectInputContentFromEvent(event: Event): boolean;
|
|
5
4
|
export declare function selectInputContent(input: HTMLInputElement | HTMLTextAreaElement | any): boolean;
|
|
6
5
|
export declare function selectInputRange(input: HTMLInputElement | HTMLTextAreaElement, startIndex: number, endIndex?: number, direction?: 'backward' | 'forward' | 'none'): boolean;
|
|
7
6
|
export declare function getCaretPosition(input: any): number;
|
|
8
|
-
export declare function setCaretPosition(input: any, position: number): boolean;
|
|
9
7
|
export declare function moveInputCaretToSeparator(event: KeyboardEvent, separator: string, forward?: boolean): boolean;
|
|
10
8
|
export declare function filterNumberInput(event: KeyboardEvent, allowDecimals: boolean, decimalSeparator?: string): void;
|
|
11
|
-
export declare function focusInput<T = any>(element: ElementRef<T
|
|
9
|
+
export declare function focusInput<T = any>(element: ElementRef<T>): void;
|
|
12
10
|
export declare function setTabIndex<T = any>(element: ElementRef<T>, tabIndex: number): void;
|
|
13
11
|
export interface InputElement extends FocusableElement {
|
|
14
12
|
tabindex?: number;
|
|
@@ -3,14 +3,12 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
|
|
|
3
3
|
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
4
|
import { SuggestFn } from '../../services/entity-service.class';
|
|
5
5
|
import { InputElement } from '../../inputs';
|
|
6
|
-
import { TextControlFieldAccessor } from '../../field-accessor';
|
|
7
6
|
import { MatFormFieldAppearance, SubscriptSizing } from '@angular/material/form-field';
|
|
8
|
-
import {
|
|
7
|
+
import { MatSelect, MatSelectChange } from '@angular/material/select';
|
|
9
8
|
import { MatAutocomplete, MatAutocompleteSelectedEvent, MatAutocompleteTrigger } from '@angular/material/autocomplete';
|
|
10
9
|
import { IonSearchbar, ModalController } from '@ionic/angular';
|
|
11
10
|
import { MatAutocompleteFieldConfig } from './material.autocomplete.config';
|
|
12
11
|
import { AppFloatLabelType, DisplayFn, EqualsFn } from '../../types';
|
|
13
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
14
12
|
import * as i0 from "@angular/core";
|
|
15
13
|
export interface MatAutocompleteFieldSelectChange {
|
|
16
14
|
source: MatSelect | MatAutocomplete;
|
|
@@ -20,7 +18,7 @@ export interface MatAutocompleteFieldToggleFavorite {
|
|
|
20
18
|
source: MatSelect | MatAutocomplete;
|
|
21
19
|
value: any;
|
|
22
20
|
}
|
|
23
|
-
export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDestroy, InputElement,
|
|
21
|
+
export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDestroy, InputElement, ControlValueAccessor {
|
|
24
22
|
protected injector: Injector;
|
|
25
23
|
protected el: ElementRef<HTMLElement>;
|
|
26
24
|
protected cd: ChangeDetectorRef;
|
|
@@ -45,14 +43,12 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
45
43
|
protected _$filteredItems: BehaviorSubject<any[]>;
|
|
46
44
|
protected _selectedItem: any;
|
|
47
45
|
protected _displayValue: string;
|
|
48
|
-
protected _hiddenSearchText: string;
|
|
49
46
|
protected _moreItemsCount: number;
|
|
50
47
|
protected _fetchMore$: EventEmitter<Event>;
|
|
51
48
|
protected _defaultPanelWidth: string;
|
|
52
49
|
protected _focused: boolean;
|
|
53
50
|
protected _panelClosedAtTime: number;
|
|
54
51
|
protected get searchText(): string | undefined;
|
|
55
|
-
protected showTooltip: boolean;
|
|
56
52
|
equals: EqualsFn;
|
|
57
53
|
logPrefix: string;
|
|
58
54
|
formControl: UntypedFormControl;
|
|
@@ -114,7 +110,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
114
110
|
get classList(): string;
|
|
115
111
|
clicked: EventEmitter<MouseEvent>;
|
|
116
112
|
blurred: EventEmitter<FocusEvent>;
|
|
117
|
-
|
|
113
|
+
focused: EventEmitter<FocusEvent>;
|
|
118
114
|
dropButtonClick: EventEmitter<Event>;
|
|
119
115
|
keydownEscape: EventEmitter<Event>;
|
|
120
116
|
keydownBackspace: EventEmitter<Event>;
|
|
@@ -135,8 +131,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
135
131
|
autocompleteTrigger: MatAutocompleteTrigger;
|
|
136
132
|
panelHeaderTemplate?: TemplateRef<any>;
|
|
137
133
|
panelFooterTemplate?: TemplateRef<any>;
|
|
138
|
-
|
|
139
|
-
get controlName(): string;
|
|
134
|
+
showTooltip: boolean;
|
|
140
135
|
constructor(injector: Injector, el: ElementRef<HTMLElement>, cd: ChangeDetectorRef, modalController: ModalController, renderer: Renderer2, formGroupDir: FormGroupDirective);
|
|
141
136
|
get itemCount(): number;
|
|
142
137
|
get canFetchMore(): boolean;
|
|
@@ -163,9 +158,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
163
158
|
registerOnChange(fn: any): void;
|
|
164
159
|
registerOnTouched(fn: any): void;
|
|
165
160
|
setDisabledState(isDisabled: boolean): void;
|
|
166
|
-
focus(
|
|
167
|
-
/** ITextInputFieldAccessor: type text into the search input and trigger suggest */
|
|
168
|
-
typeText(text: string): void;
|
|
161
|
+
focus(): void;
|
|
169
162
|
filterInputTextFocusEvent(event: FocusEvent): boolean;
|
|
170
163
|
protected filterInputTextBlurEvent(event: FocusEvent): void;
|
|
171
164
|
protected emitEnter(event: Event | KeyboardEvent): void;
|
|
@@ -183,9 +176,8 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
183
176
|
closePanel(): void;
|
|
184
177
|
protected markAsLoading(): void;
|
|
185
178
|
protected onSelectionChange(event: MatSelectChange): void;
|
|
186
|
-
onMatSelectOpenedChange(opened: boolean): void;
|
|
187
179
|
protected onOptionSelected(event: MatAutocompleteSelectedEvent): void;
|
|
188
|
-
protected toggleShowPanel(event
|
|
180
|
+
protected toggleShowPanel(event: Event): void;
|
|
189
181
|
private suggest;
|
|
190
182
|
private fetchMore;
|
|
191
183
|
private updateImplicitValue;
|
|
@@ -207,13 +199,8 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
207
199
|
private setInputTextValue;
|
|
208
200
|
protected onBackspace(event: Event): void;
|
|
209
201
|
protected toggleFavoriteClick(event: UIEvent, value: any): void;
|
|
210
|
-
protected hasValidValue(): boolean;
|
|
211
|
-
protected clearSearchbar(): void;
|
|
212
|
-
protected selectFirstOptionByText(text: string): Promise<void>;
|
|
213
|
-
protected scrollToOption(option: MatOption, opts?: ScrollIntoViewOptions): Promise<void>;
|
|
214
|
-
private _matSelectSearchChanged;
|
|
215
202
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatAutocompleteField, [null, null, null, null, null, { optional: true; }]>;
|
|
216
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "showPanelHeader": { "alias": "showPanelHeader"; "required": false; }; "showPanelFooter": { "alias": "showPanelFooter"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displaySeparator": { "alias": "displaySeparator"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "reloadItemsOnFocus": { "alias": "reloadItemsOnFocus"; "required": false; }; "clearInvalidValueOnBlur": { "alias": "clearInvalidValueOnBlur"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "stickySearchBar": { "alias": "stickySearchBar"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "splitSearchText": { "alias": "splitSearchText"; "required": false; }; "selectInputContentOnFocus": { "alias": "selectInputContentOnFocus"; "required": false; }; "selectInputContentOnFocusDelay": { "alias": "selectInputContentOnFocusDelay"; "required": false; }; "previewImplicitValue": { "alias": "previewImplicitValue"; "required": false; }; "showFavorites": { "alias": "showFavorites"; "required": false; }; "toggleFavoriteTitle": { "alias": "toggleFavoriteTitle"; "required": false; }; "favoriteItems": { "alias": "favoriteItems"; "required": false; }; "colSizes": { "alias": "colSizes"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "
|
|
203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatAutocompleteField, "mat-autocomplete-field", never, { "equals": { "alias": "equals"; "required": false; }; "logPrefix": { "alias": "logPrefix"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "suggestFn": { "alias": "suggestFn"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "showPanelHeader": { "alias": "showPanelHeader"; "required": false; }; "showPanelFooter": { "alias": "showPanelFooter"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "displaySeparator": { "alias": "displaySeparator"; "required": false; }; "displayWith": { "alias": "displayWith"; "required": false; }; "displayAttributes": { "alias": "displayAttributes"; "required": false; }; "displayColumnSizes": { "alias": "displayColumnSizes"; "required": false; }; "displayColumnNames": { "alias": "displayColumnNames"; "required": false; }; "highlightAccent": { "alias": "highlightAccent"; "required": false; }; "showAllOnFocus": { "alias": "showAllOnFocus"; "required": false; }; "showPanelOnFocus": { "alias": "showPanelOnFocus"; "required": false; }; "reloadItemsOnFocus": { "alias": "reloadItemsOnFocus"; "required": false; }; "clearInvalidValueOnBlur": { "alias": "clearInvalidValueOnBlur"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "config": { "alias": "config"; "required": false; }; "i18nPrefix": { "alias": "i18nPrefix"; "required": false; }; "noResultMessage": { "alias": "noResultMessage"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "matAutocompletePosition": { "alias": "matAutocompletePosition"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "fetchMoreThreshold": { "alias": "fetchMoreThreshold"; "required": false; }; "suggestLengthThreshold": { "alias": "suggestLengthThreshold"; "required": false; }; "showLoadingSpinner": { "alias": "showLoadingSpinner"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showSearchBar": { "alias": "showSearchBar"; "required": false; }; "stickySearchBar": { "alias": "stickySearchBar"; "required": false; }; "applyImplicitValue": { "alias": "applyImplicitValue"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "trimSearchText": { "alias": "trimSearchText"; "required": false; }; "splitSearchText": { "alias": "splitSearchText"; "required": false; }; "selectInputContentOnFocus": { "alias": "selectInputContentOnFocus"; "required": false; }; "selectInputContentOnFocusDelay": { "alias": "selectInputContentOnFocusDelay"; "required": false; }; "previewImplicitValue": { "alias": "previewImplicitValue"; "required": false; }; "showFavorites": { "alias": "showFavorites"; "required": false; }; "toggleFavoriteTitle": { "alias": "toggleFavoriteTitle"; "required": false; }; "favoriteItems": { "alias": "favoriteItems"; "required": false; }; "colSizes": { "alias": "colSizes"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "items": { "alias": "items"; "required": false; }; }, { "clicked": "click"; "blurred": "blur"; "focused": "focus"; "dropButtonClick": "dropButtonClick"; "keydownEscape": "keydown.escape"; "keydownBackspace": "keydown.backspace"; "keyupEnter": "keyup.enter"; "arrowUp": "arrowUp"; "arrowDown": "arrowDown"; "enter": "enter"; "selectionChange": "selectionChange"; "openedChange": "openedChange"; "toggleFavorite": "toggleFavorite"; }, ["panelHeaderTemplate", "panelFooterTemplate"], ["[matAfter]", "[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
217
204
|
static ngAcceptInputType_required: unknown;
|
|
218
205
|
static ngAcceptInputType_hideRequiredMarker: unknown;
|
|
219
206
|
static ngAcceptInputType_mobile: unknown;
|
|
@@ -4,11 +4,9 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormControl } from '@a
|
|
|
4
4
|
import { MatRadioButton, MatRadioChange } from '@angular/material/radio';
|
|
5
5
|
import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
|
|
6
6
|
import { InputElement } from '../../inputs';
|
|
7
|
-
import { ControlFieldAccessor } from '../../field-accessor';
|
|
8
7
|
import { AppFloatLabelType } from '../../types';
|
|
9
|
-
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
10
8
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement,
|
|
9
|
+
export declare class MatBooleanField implements OnInit, ControlValueAccessor, InputElement, OnDestroy {
|
|
12
10
|
private cd;
|
|
13
11
|
private formGroupDir;
|
|
14
12
|
private _onChangeCallback;
|
|
@@ -23,8 +21,6 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
23
21
|
yesRadioButton: MatRadioButton;
|
|
24
22
|
noRadioButton: MatRadioButton;
|
|
25
23
|
checkboxButton: MatCheckbox;
|
|
26
|
-
yesButtonRef: ElementRef;
|
|
27
|
-
noButtonRef: ElementRef;
|
|
28
24
|
disabled: boolean;
|
|
29
25
|
formControl: UntypedFormControl;
|
|
30
26
|
formControlName: string;
|
|
@@ -53,11 +49,9 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
53
49
|
set value(v: any);
|
|
54
50
|
get value(): any;
|
|
55
51
|
keyupEnter: EventEmitter<any>;
|
|
56
|
-
|
|
52
|
+
focused: EventEmitter<FocusEvent>;
|
|
57
53
|
blurred: EventEmitter<FocusEvent>;
|
|
58
54
|
showTooltip: boolean;
|
|
59
|
-
get focused(): boolean;
|
|
60
|
-
get controlName(): string;
|
|
61
55
|
constructor(cd: ChangeDetectorRef, formGroupDir: FormGroupDirective);
|
|
62
56
|
ngOnInit(): void;
|
|
63
57
|
ngOnDestroy(): void;
|
|
@@ -65,15 +59,14 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
65
59
|
registerOnChange(fn: any): void;
|
|
66
60
|
registerOnTouched(fn: any): void;
|
|
67
61
|
setDisabledState(isDisabled: boolean): void;
|
|
68
|
-
focus(opts?: FocusOptions, origin?: FocusOrigin): void;
|
|
69
62
|
protected onFocusFakeInput(event: FocusEvent): void;
|
|
70
63
|
protected onBlurInput(event: FocusEvent): void;
|
|
64
|
+
focus(): void;
|
|
71
65
|
protected onRadioValueChanged(event: MatRadioChange): void;
|
|
72
66
|
protected onCheckboxValueChanged(event: MatCheckboxChange): void;
|
|
73
67
|
toggleValue(event?: Event): void;
|
|
74
68
|
private emitChange;
|
|
75
69
|
private _checkIfTouched;
|
|
76
|
-
private _markAsBlurred;
|
|
77
70
|
/**
|
|
78
71
|
* Show/Hide the fake input
|
|
79
72
|
*/
|
|
@@ -86,9 +79,8 @@ export declare class MatBooleanField implements OnInit, ControlValueAccessor, In
|
|
|
86
79
|
clearValue(event?: Event): void;
|
|
87
80
|
protected get radioButtonElements(): HTMLElement[];
|
|
88
81
|
protected get inputsElements(): HTMLElement[];
|
|
89
|
-
protected get buttonsElements(): HTMLElement[];
|
|
90
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatBooleanField, [null, { optional: true; }]>;
|
|
91
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatBooleanField, "mat-boolean-field", never, { "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "style": { "alias": "style"; "required": false; }; "buttonsColCount": { "alias": "buttonsColCount"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "yesLabel": { "alias": "yesLabel"; "required": false; }; "noLabel": { "alias": "noLabel"; "required": false; }; "showButtonIcons": { "alias": "showButtonIcons"; "required": false; }; "yesIcon": { "alias": "yesIcon"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "showRadio": { "alias": "showRadio"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "keyupEnter": "keyup.enter"; "focused": "focus"; "blurred": "blur"; }, never, ["[matPrefix]", "[matSuffix]"], false, never>;
|
|
92
84
|
static ngAcceptInputType_disabled: unknown;
|
|
93
85
|
static ngAcceptInputType_readonly: unknown;
|
|
94
86
|
static ngAcceptInputType_required: unknown;
|
|
@@ -5,12 +5,11 @@ import { Moment } from 'moment';
|
|
|
5
5
|
import { InputElement } from '../../inputs';
|
|
6
6
|
import { MatFormFieldAppearance, MatFormFieldDefaultOptions, SubscriptSizing } from '@angular/material/form-field';
|
|
7
7
|
import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
8
|
-
import { ControlFieldAccessor, TextControlFieldAccessor } from '../../field-accessor';
|
|
9
8
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
10
9
|
import { MaskitoOptions } from '@maskito/core';
|
|
11
10
|
import { AppFloatLabelType } from '../../types';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement
|
|
12
|
+
export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement {
|
|
14
13
|
private dateAdapter;
|
|
15
14
|
private translate;
|
|
16
15
|
private formBuilder;
|
|
@@ -54,8 +53,6 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
|
|
|
54
53
|
get tabindex(): number;
|
|
55
54
|
get value(): any;
|
|
56
55
|
get disabled(): boolean;
|
|
57
|
-
get focused(): boolean;
|
|
58
|
-
get controlName(): string;
|
|
59
56
|
datePicker: MatDatepicker<Moment>;
|
|
60
57
|
_matInput: ElementRef;
|
|
61
58
|
constructor(dateAdapter: MomentDateAdapter, translate: TranslateService, formBuilder: UntypedFormBuilder, cd: ChangeDetectorRef, formGroupDir: FormGroupDirective, defaultOptions?: MatFormFieldDefaultOptions);
|
|
@@ -68,8 +65,7 @@ export declare class MatDate implements OnInit, AfterViewInit, OnDestroy, Contro
|
|
|
68
65
|
setDisabledState(isDisabled: boolean): void;
|
|
69
66
|
openDatePicker(event?: Event): void;
|
|
70
67
|
focus(): void;
|
|
71
|
-
|
|
72
|
-
clearValue(event?: Event): void;
|
|
68
|
+
clear(event: Event): void;
|
|
73
69
|
protected _onDatePickerChange(event: MatDatepickerInputEvent<Moment>): void;
|
|
74
70
|
protected _openDatePickerIfMobile(event: Event): void;
|
|
75
71
|
protected _onBlur(): void;
|
|
@@ -4,7 +4,6 @@ import { ControlValueAccessor, FormGroupDirective, UntypedFormBuilder, UntypedFo
|
|
|
4
4
|
import { TranslateService } from '@ngx-translate/core';
|
|
5
5
|
import { Moment } from 'moment';
|
|
6
6
|
import { InputElement } from '../../inputs';
|
|
7
|
-
import { ControlFieldAccessor, TextControlFieldAccessor } from '../../field-accessor';
|
|
8
7
|
import { DateFilterFn, MatDatepicker, MatDatepickerInputEvent } from '@angular/material/datepicker';
|
|
9
8
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
10
9
|
import { MaskitoOptions } from '@maskito/core';
|
|
@@ -14,7 +13,7 @@ declare interface NgxTimePicker {
|
|
|
14
13
|
open(): any;
|
|
15
14
|
close(): any;
|
|
16
15
|
}
|
|
17
|
-
export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement
|
|
16
|
+
export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, ControlValueAccessor, InputElement {
|
|
18
17
|
private dateAdapter;
|
|
19
18
|
private translate;
|
|
20
19
|
private formBuilder;
|
|
@@ -81,12 +80,10 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
81
80
|
get tabindex(): number;
|
|
82
81
|
get value(): any;
|
|
83
82
|
get disabled(): boolean;
|
|
84
|
-
get focused(): boolean;
|
|
85
|
-
get controlName(): string;
|
|
86
83
|
datePicker: MatDatepicker<Moment>;
|
|
87
84
|
timePicker: NgxTimePicker;
|
|
88
85
|
_matInputs: QueryList<ElementRef>;
|
|
89
|
-
|
|
86
|
+
focused: EventEmitter<FocusEvent>;
|
|
90
87
|
blurred: EventEmitter<FocusEvent>;
|
|
91
88
|
keydownEscape: EventEmitter<Event>;
|
|
92
89
|
keyupEnter: EventEmitter<Event>;
|
|
@@ -102,8 +99,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
102
99
|
openTimePicker(event?: Event, timePicker?: NgxTimePicker): void;
|
|
103
100
|
private fixTimePickerPosition;
|
|
104
101
|
focus(): void;
|
|
105
|
-
|
|
106
|
-
clearValue(event?: Event): void;
|
|
102
|
+
clear(event?: Event): void;
|
|
107
103
|
protected _setFormControlName(controlName: string): void;
|
|
108
104
|
protected _setFormControl(control: UntypedFormControl): void;
|
|
109
105
|
protected _updateControlValidators(control: UntypedFormControl, required: boolean): void;
|
|
@@ -116,30 +112,18 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
116
112
|
protected _onBlur(event: FocusEvent): void;
|
|
117
113
|
protected _checkIfTouched(): void;
|
|
118
114
|
protected _preventEvent(event?: Event): void;
|
|
119
|
-
protected hasValidValue(): boolean;
|
|
120
115
|
private updateTranslations;
|
|
121
116
|
private updateDisplayPattern;
|
|
122
117
|
private updateDateMaskOptions;
|
|
123
118
|
private updateTimeMaskOptions;
|
|
124
119
|
private onFormChange;
|
|
125
|
-
private parseDateTime;
|
|
126
|
-
private parseDate;
|
|
127
|
-
private parseTime;
|
|
128
|
-
/**
|
|
129
|
-
* Cleans and formats a given date string by removing invalid characters and ensuring
|
|
130
|
-
* placeholders for empty month or year fields.
|
|
131
|
-
*
|
|
132
|
-
* @param {string} dateStr - The input date string that needs to be cleaned and formatted.
|
|
133
|
-
* @return {string | null} A cleaned and formatted date string, or null if the input is empty or invalid.
|
|
134
|
-
*/
|
|
135
|
-
private cleanDateStr;
|
|
136
120
|
private emitChange;
|
|
137
121
|
private updateTabIndex;
|
|
138
122
|
private markAsTouched;
|
|
139
123
|
private markAsDirty;
|
|
140
124
|
private markForCheck;
|
|
141
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDateTime, [null, null, null, null, null, { optional: true; }, null]>;
|
|
142
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "logPrefix": { "alias": "logPrefix"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "allowNoTime": { "alias": "allowNoTime"; "required": false; }; "dottedMinutesInGap": { "alias": "dottedMinutesInGap"; "required": false; }; "timeHoursOnly": { "alias": "timeHoursOnly"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; "hourMinWidth": { "alias": "hourMinWidth"; "required": false; }; "hourMaxWidth": { "alias": "hourMaxWidth"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, { "
|
|
126
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDateTime, "mat-date-time-field", never, { "logPrefix": { "alias": "logPrefix"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "startDate": { "alias": "startDate"; "required": false; }; "datePickerFilter": { "alias": "datePickerFilter"; "required": false; }; "allowNoTime": { "alias": "allowNoTime"; "required": false; }; "dottedMinutesInGap": { "alias": "dottedMinutesInGap"; "required": false; }; "timeHoursOnly": { "alias": "timeHoursOnly"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "style": { "alias": "style"; "required": false; }; "hourMinWidth": { "alias": "hourMinWidth"; "required": false; }; "hourMaxWidth": { "alias": "hourMaxWidth"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; }, { "focused": "focus"; "blurred": "blur"; "keydownEscape": "keydown.escape"; "keyupEnter": "keyup.enter"; }, never, ["[matPrefix]", "[matSuffix]", "mat-error,[matError]", "mat-hint:not([align='end']),[matHint]", "mat-hint[align='end']"], false, never>;
|
|
143
127
|
static ngAcceptInputType_mobile: unknown;
|
|
144
128
|
static ngAcceptInputType_compact: unknown;
|
|
145
129
|
static ngAcceptInputType_autofocus: unknown;
|
|
@@ -11,10 +11,8 @@ import * as i9 from "@angular/material-moment-adapter";
|
|
|
11
11
|
import * as i10 from "@ngx-translate/core";
|
|
12
12
|
import * as i11 from "@maskito/angular";
|
|
13
13
|
import * as i12 from "../../directives/directives.module";
|
|
14
|
-
import * as i13 from "@angular/material/icon";
|
|
15
|
-
import * as i14 from "@angular/material/tooltip";
|
|
16
14
|
export declare class SharedMatDurationModule {
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMatDurationModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatDurationModule, [typeof i1.MatDuration], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.MatCommonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i6.MatRippleModule, typeof i9.MatMomentDateModule, typeof i10.TranslateModule, typeof i11.MaskitoDirective, typeof i12.SharedDirectivesModule
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMatDurationModule, [typeof i1.MatDuration], [typeof i2.CommonModule, typeof i3.IonicModule, typeof i4.ReactiveFormsModule, typeof i5.SharedPipesModule, typeof i6.MatCommonModule, typeof i7.MatFormFieldModule, typeof i8.MatInputModule, typeof i6.MatRippleModule, typeof i9.MatMomentDateModule, typeof i10.TranslateModule, typeof i11.MaskitoDirective, typeof i12.SharedDirectivesModule], [typeof i1.MatDuration]>;
|
|
19
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMatDurationModule>;
|
|
20
18
|
}
|