@sumaris-net/ngx-components 18.7.1-beta1 → 18.7.1-rc1
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 +100 -0
- package/esm2022/public_api.mjs +6 -1
- package/esm2022/src/app/admin/users/users.mjs +2 -2
- package/esm2022/src/app/core/about/about.modal.mjs +4 -5
- package/esm2022/src/app/core/account/account.page.mjs +11 -11
- package/esm2022/src/app/core/account/password/change-password.page.mjs +2 -2
- package/esm2022/src/app/core/form/entity/entity-metadata.component.mjs +3 -3
- package/esm2022/src/app/core/form/list/list.form.mjs +2 -2
- package/esm2022/src/app/core/form/properties/properties.form.mjs +15 -6
- package/esm2022/src/app/core/form/properties/properties.table.mjs +2 -2
- package/esm2022/src/app/core/form/properties/properties.utils.mjs +9 -10
- package/esm2022/src/app/core/home/home.mjs +7 -5
- package/esm2022/src/app/core/menu/menu.component.mjs +19 -24
- package/esm2022/src/app/core/menu/menu.service.mjs +6 -3
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +1 -1
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +1 -1
- package/esm2022/src/app/core/register/register-confirm.page.mjs +1 -1
- package/esm2022/src/app/core/register/register.form.mjs +1 -1
- package/esm2022/src/app/core/services/account.service.mjs +3 -7
- package/esm2022/src/app/core/services/model/account.model.mjs +6 -6
- package/esm2022/src/app/core/services/model/entity.model.mjs +14 -5
- package/esm2022/src/app/core/services/network.service.mjs +1 -1
- package/esm2022/src/app/core/services/platform.service.mjs +27 -10
- package/esm2022/src/app/core/services/validator/base.validator.class.mjs +2 -2
- package/esm2022/src/app/core/settings/settings.page.mjs +1 -1
- package/esm2022/src/app/core/table/column/actions-column.component.mjs +3 -3
- package/esm2022/src/app/core/table/column/row-field.component.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
- package/esm2022/src/app/shared/dates.mjs +13 -1
- package/esm2022/src/app/shared/directives/autoresize.directive.mjs +75 -0
- package/esm2022/src/app/shared/directives/directives.module.mjs +5 -4
- package/esm2022/src/app/shared/file/uri.utils.mjs +6 -1
- package/esm2022/src/app/shared/form/field.component.mjs +10 -4
- package/esm2022/src/app/shared/forms.mjs +3 -1
- package/esm2022/src/app/shared/functions.mjs +7 -1
- package/esm2022/src/app/shared/hotkeys/hotkeys.service.mjs +3 -2
- package/esm2022/src/app/shared/image/gallery/image-gallery.component.mjs +11 -4
- package/esm2022/src/app/shared/image/gallery/testing/gallery.testing.mjs +1 -1
- package/esm2022/src/app/shared/markdown/markdown.component.mjs +66 -93
- package/esm2022/src/app/shared/markdown/markdown.modal.mjs +37 -16
- package/esm2022/src/app/shared/markdown/markdown.module.mjs +3 -4
- package/esm2022/src/app/shared/markdown/markdown.service.mjs +8 -7
- package/esm2022/src/app/shared/markdown/markdown.utils.mjs +10 -1
- package/esm2022/src/app/shared/markdown/testing/markdown.test.mjs +17 -8
- package/esm2022/src/app/shared/markdown/testing/markdown.testing.module.mjs +5 -4
- package/esm2022/src/app/shared/material/autocomplete/material.autocomplete.mjs +71 -36
- package/esm2022/src/app/shared/material/autocomplete/testing/autocomplete.test.mjs +3 -3
- package/esm2022/src/app/shared/material/boolean/material.boolean.mjs +2 -2
- package/esm2022/src/app/shared/material/chips/material.chips.mjs +13 -5
- package/esm2022/src/app/shared/material/datetime/material.datetime.mjs +19 -9
- package/esm2022/src/app/shared/material/datetime/testing/mat-date-time.test.mjs +4 -4
- package/esm2022/src/app/shared/material/text/text-form.component.mjs +5 -4
- package/esm2022/src/app/shared/named-filter/named-filter-selector.component.mjs +3 -3
- package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +1 -1
- package/esm2022/src/app/shared/observables.mjs +5 -5
- package/esm2022/src/app/shared/pipes/arrays.pipe.mjs +18 -2
- package/esm2022/src/app/shared/pipes/duration.pipe.mjs +3 -12
- package/esm2022/src/app/shared/pipes/html.pipes.mjs +18 -1
- package/esm2022/src/app/shared/pipes/observable.pipes.mjs +44 -0
- package/esm2022/src/app/shared/pipes/pipes.module.mjs +28 -6
- package/esm2022/src/app/shared/pipes/string.pipes.mjs +35 -4
- package/esm2022/src/app/shared/print/print.service.mjs +305 -0
- package/esm2022/src/app/shared/rx-state/rx-state.decorators.mjs +4 -4
- package/esm2022/src/app/shared/shared.module.mjs +4 -11
- package/esm2022/src/app/shared/toast/toast.testing.mjs +13 -11
- package/esm2022/src/app/shared/toast/toast.testing.module.mjs +5 -4
- package/esm2022/src/app/shared/toast/toasts.mjs +23 -33
- package/esm2022/src/app/shared/toolbar/modal-toolbar.mjs +3 -3
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +7 -3
- package/esm2022/src/app/shared/upload-file/upload-file-popover.component.mjs +3 -3
- package/esm2022/src/app/shared/validator/form-error-adapter.class.mjs +2 -2
- package/esm2022/src/app/shared/validator/validators.mjs +12 -8
- package/esm2022/src/app/social/message/message.form.mjs +4 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +3983 -3377
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +5 -0
- package/src/app/core/form/properties/properties.form.d.ts +2 -0
- package/src/app/core/home/home.d.ts +1 -1
- package/src/app/core/menu/menu.component.d.ts +3 -6
- package/src/app/core/services/model/account.model.d.ts +1 -1
- package/src/app/core/services/model/entity.model.d.ts +5 -3
- package/src/app/core/services/platform.service.d.ts +9 -2
- package/src/app/shared/dates.d.ts +4 -0
- package/src/app/shared/directives/autoresize.directive.d.ts +20 -0
- package/src/app/shared/directives/directives.module.d.ts +4 -3
- package/src/app/shared/form/field.component.d.ts +3 -1
- package/src/app/shared/functions.d.ts +6 -0
- package/src/app/shared/image/gallery/image-gallery.component.d.ts +4 -1
- package/src/app/shared/markdown/markdown.component.d.ts +14 -8
- package/src/app/shared/markdown/markdown.modal.d.ts +18 -8
- package/src/app/shared/markdown/markdown.module.d.ts +1 -2
- package/src/app/shared/markdown/markdown.service.d.ts +0 -1
- package/src/app/shared/markdown/markdown.utils.d.ts +1 -0
- package/src/app/shared/markdown/testing/markdown.test.d.ts +4 -1
- package/src/app/shared/markdown/testing/markdown.testing.module.d.ts +2 -1
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +2 -0
- package/src/app/shared/material/chips/material.chips.d.ts +1 -0
- package/src/app/shared/material/datetime/material.datetime.d.ts +1 -0
- package/src/app/shared/named-filter/named-filter-selector.component.d.ts +1 -1
- package/src/app/shared/observables.d.ts +2 -2
- package/src/app/shared/pipes/arrays.pipe.d.ts +8 -0
- package/src/app/shared/pipes/html.pipes.d.ts +7 -0
- package/src/app/shared/pipes/observable.pipes.d.ts +19 -0
- package/src/app/shared/pipes/pipes.module.d.ts +5 -4
- package/src/app/shared/pipes/string.pipes.d.ts +11 -1
- package/src/app/shared/print/print.service.d.ts +94 -0
- package/src/app/shared/rx-state/rx-state.decorators.d.ts +2 -2
- package/src/app/shared/shared.module.d.ts +2 -3
- package/src/app/shared/toast/toast.testing.d.ts +1 -1
- package/src/app/shared/toast/toast.testing.module.d.ts +2 -1
- package/src/app/shared/toast/toasts.d.ts +2 -3
- package/src/app/shared/toolbar/toolbar.d.ts +3 -1
- package/src/app/shared/validator/validators.d.ts +3 -1
- package/src/assets/i18n/en-US.json +3 -2
- package/src/assets/i18n/en.json +2 -1
- package/src/assets/i18n/fr.json +2 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_mixins.scss +7 -0
- package/src/theme/_ngx-components.scss +53 -46
- package/src/theme/_ngx-components.table.scss +4 -1
- package/src/theme/_ngx-components.tabs.scss +11 -0
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -66,6 +66,7 @@ export * from './src/app/shared/directives/throttled-click.directive';
|
|
|
66
66
|
export * from './src/app/shared/directives/resizable/resizable.directive';
|
|
67
67
|
export * from './src/app/shared/directives/resizable/resizable.component';
|
|
68
68
|
export * from './src/app/shared/directives/resizable/resizable.module';
|
|
69
|
+
export * from './src/app/shared/directives/autoresize.directive';
|
|
69
70
|
export * from './src/app/shared/pipes/pipes.module';
|
|
70
71
|
export * from './src/app/shared/pipes/date-format.pipe';
|
|
71
72
|
export * from './src/app/shared/pipes/date-from-now.pipe';
|
|
@@ -81,6 +82,7 @@ export * from './src/app/shared/pipes/math.pipes';
|
|
|
81
82
|
export * from './src/app/shared/pipes/arrays.pipe';
|
|
82
83
|
export * from './src/app/shared/pipes/maps.pipe';
|
|
83
84
|
export * from './src/app/shared/pipes/string.pipes';
|
|
85
|
+
export * from './src/app/shared/pipes/observable.pipes';
|
|
84
86
|
export * from './src/app/shared/pipes/translate-context.pipe';
|
|
85
87
|
export * from './src/app/shared/pipes/ng-init.pipe';
|
|
86
88
|
export * from './src/app/shared/pipes/form.pipes';
|
|
@@ -118,6 +120,7 @@ export * from './src/app/shared/events';
|
|
|
118
120
|
export * from './src/app/shared/alerts';
|
|
119
121
|
export * from './src/app/shared/platforms';
|
|
120
122
|
export * from './src/app/shared/geolocation/geolocation.utils';
|
|
123
|
+
export * from './src/app/shared/version/versions';
|
|
121
124
|
export * from './src/app/shared/file/file.utils';
|
|
122
125
|
export * from './src/app/shared/file/csv.utils';
|
|
123
126
|
export * from './src/app/shared/file/images.utils';
|
|
@@ -146,6 +149,7 @@ export * from './src/app/shared/markdown/markdown.service';
|
|
|
146
149
|
export * from './src/app/shared/markdown/markdown.directive';
|
|
147
150
|
export * from './src/app/shared/markdown/markdown.component';
|
|
148
151
|
export * from './src/app/shared/markdown/markdown.modal';
|
|
152
|
+
export * from './src/app/shared/print/print.service';
|
|
149
153
|
export * from './src/app/core/core.module';
|
|
150
154
|
export * from './src/app/core/services/model/account.model';
|
|
151
155
|
export * from './src/app/core/services/model/token.model';
|
|
@@ -173,6 +177,7 @@ export * from './src/app/core/services/errors';
|
|
|
173
177
|
export * from './src/app/core/services/platform.service';
|
|
174
178
|
export * from './src/app/core/services/network.service';
|
|
175
179
|
export * from './src/app/core/services/network.types';
|
|
180
|
+
export * from './src/app/core/services/network.utils';
|
|
176
181
|
export * from './src/app/core/services/config.service';
|
|
177
182
|
export { CORE_CONFIG_OPTIONS } from './src/app/core/services/config/core.config';
|
|
178
183
|
export * from './src/app/core/services/local-settings.service';
|
|
@@ -74,6 +74,8 @@ export declare class AppPropertiesForm<O = any, T extends Property<O> = Property
|
|
|
74
74
|
removeAt(index: number): void;
|
|
75
75
|
setValue(data: PropertyMap | T[]): Promise<void>;
|
|
76
76
|
getValueAsJson(): PropertyMap;
|
|
77
|
+
clear(): void;
|
|
78
|
+
protected clearTemplateCache(): void;
|
|
77
79
|
protected suggestDefinitionKeys(value: any, filter?: any, sortBy?: string | keyof Property, sortDirection?: SortDirection, opts?: {
|
|
78
80
|
offset?: number;
|
|
79
81
|
size?: number;
|
|
@@ -96,7 +96,7 @@ export declare class HomePage extends RxState<HomePageState> implements OnDestro
|
|
|
96
96
|
protected onLogin(account: Account): void;
|
|
97
97
|
protected onLogout(): void;
|
|
98
98
|
protected refreshButtons(account?: Account): void;
|
|
99
|
-
|
|
99
|
+
openMarkdownModal(event?: Event, item?: IMenuItem): Promise<void>;
|
|
100
100
|
protected removePageHistory(path: string): Promise<void>;
|
|
101
101
|
protected markForCheck(): void;
|
|
102
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<HomePage, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { IonSplitPane, MenuController, ModalController, NavController } from '@ionic/angular';
|
|
3
3
|
import { Account } from '../services/model/account.model';
|
|
4
4
|
import { AccountService } from '../services/account.service';
|
|
5
5
|
import { TranslateService } from '@ngx-translate/core';
|
|
6
|
-
import { PlatformService } from '../services/platform.service';
|
|
7
6
|
import { Environment } from '../../../environments/environment.class';
|
|
8
7
|
import { MenuService, SplitPaneShowWhen } from './menu.service';
|
|
9
8
|
import { IMenuItem, MenuItem } from './menu.model';
|
|
@@ -11,12 +10,10 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|
|
11
10
|
import { RxStrategyNames } from '@rx-angular/cdk/render-strategies';
|
|
12
11
|
import * as i0 from "@angular/core";
|
|
13
12
|
export declare class MenuComponent implements OnInit {
|
|
14
|
-
protected platformService: PlatformService;
|
|
15
13
|
protected accountService: AccountService;
|
|
16
14
|
protected navController: NavController;
|
|
17
15
|
protected menu: MenuController;
|
|
18
16
|
protected modalCtrl: ModalController;
|
|
19
|
-
protected alertController: AlertController;
|
|
20
17
|
protected translate: TranslateService;
|
|
21
18
|
protected cd: ChangeDetectorRef;
|
|
22
19
|
protected menuService: MenuService;
|
|
@@ -39,7 +36,7 @@ export declare class MenuComponent implements OnInit {
|
|
|
39
36
|
accountEmail: string;
|
|
40
37
|
private readonly _debug;
|
|
41
38
|
private _subscription;
|
|
42
|
-
constructor(
|
|
39
|
+
constructor(accountService: AccountService, navController: NavController, menu: MenuController, modalCtrl: ModalController, translate: TranslateService, cd: ChangeDetectorRef, menuService: MenuService, router: Router, environment: Environment, route: ActivatedRoute);
|
|
43
40
|
ngOnInit(): Promise<void>;
|
|
44
41
|
onLogin(account: Account): Promise<void>;
|
|
45
42
|
onLogout(skipRedirect?: boolean): Promise<void>;
|
|
@@ -64,6 +61,6 @@ export declare class MenuComponent implements OnInit {
|
|
|
64
61
|
protected detectChanges(): void;
|
|
65
62
|
protected markForCheck(): void;
|
|
66
63
|
protected togglePinned(event: Event, item: IMenuItem): void;
|
|
67
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null,
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, [null, null, null, null, null, null, null, null, null, { optional: true; }]>;
|
|
68
65
|
static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "app-menu", never, { "id": { "alias": "id"; "required": false; }; "menuId": { "alias": "menuId"; "required": false; }; "side": { "alias": "side"; "required": false; }; "contentId": { "alias": "contentId"; "required": false; }; "logo": { "alias": "logo"; "required": false; }; "appName": { "alias": "appName"; "required": false; }; "rxStrategy": { "alias": "rxStrategy"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; }, {}, never, ["*", "[headerBottomRight]"], false, never>;
|
|
69
66
|
}
|
|
@@ -44,7 +44,7 @@ export declare class UserSettings extends Entity<UserSettings> {
|
|
|
44
44
|
* @param {boolean} [resetContent] - Optional flag to reset existing content. False by default
|
|
45
45
|
* @return {boolean} - Returns true if any changes were made; otherwise, false.
|
|
46
46
|
*/
|
|
47
|
-
merge<S = LocalSettings>(source: S, includedProperties
|
|
47
|
+
merge<S = LocalSettings>(source: S, includedProperties: (keyof S | string | number)[], resetContent?: boolean): boolean;
|
|
48
48
|
/**
|
|
49
49
|
* Transform user settings into local settings
|
|
50
50
|
* @param opts
|
|
@@ -44,8 +44,8 @@ export declare abstract class Entity<T extends Entity<T, ID, AO, FO>, ID = numbe
|
|
|
44
44
|
export declare function isInstanceOf<T>(obj: any, constructor: new (...args: any[]) => T): obj is T;
|
|
45
45
|
export declare abstract class EntityUtils {
|
|
46
46
|
static isEntity<T extends IEntity<any>>(obj: T | any): obj is T;
|
|
47
|
-
static isNotEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute
|
|
48
|
-
static isEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute
|
|
47
|
+
static isNotEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute?: keyof T): boolean;
|
|
48
|
+
static isEmpty<T extends IEntity<any> | any>(obj: T, checkedAttribute?: keyof T): boolean;
|
|
49
49
|
static equals<T extends IEntity<any> | any>(o1: T, o2: T, checkAttribute?: keyof T): boolean;
|
|
50
50
|
static getPropertyByPath: typeof getPropertyByPath;
|
|
51
51
|
static getArrayAsMap<T = any>(source?: ObjectMapEntry<T>[]): ObjectMap<T>;
|
|
@@ -81,7 +81,8 @@ export declare abstract class EntityUtils {
|
|
|
81
81
|
static isLocalId(id: number): boolean;
|
|
82
82
|
static isRemoteId(id: number): boolean;
|
|
83
83
|
static getId<T extends IEntity<T, ID> = IEntity<any, any>, ID = any>(entity: T): ID;
|
|
84
|
-
static hasId<T extends IEntity<
|
|
84
|
+
static hasId<T extends IEntity<any, any> = IEntity<any, any>>(entity: T): boolean;
|
|
85
|
+
static hasNilId<T extends IEntity<any, any> = IEntity<any, any>>(entity: T): boolean;
|
|
85
86
|
/**
|
|
86
87
|
* Splits an array of entities into a key-value map using an entity ID as the key.
|
|
87
88
|
*
|
|
@@ -101,4 +102,5 @@ export declare abstract class EntityUtils {
|
|
|
101
102
|
*/
|
|
102
103
|
static collectById<T extends IEntity<T, ID>, ID = any>(entities: T[]): ID[];
|
|
103
104
|
static arrayDistinctFilterFn<E extends IEntity<any, any>>(item: E, index: number, values: E[]): boolean;
|
|
105
|
+
static findById<E extends IEntity<any, ID> = IEntity<any, any>, ID = number>(items: E[], id: ID): E | undefined;
|
|
104
106
|
}
|
|
@@ -9,7 +9,7 @@ import { EntitiesStorage } from './storage/entities-storage.service';
|
|
|
9
9
|
import { ShowToastOptions } from '../../shared/toast/toasts';
|
|
10
10
|
import { TranslateService } from '@ngx-translate/core';
|
|
11
11
|
import { AccountService } from './account.service';
|
|
12
|
-
import { Observable } from 'rxjs';
|
|
12
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
13
13
|
import { Environment } from '../../../environments/environment.class';
|
|
14
14
|
import { ConfigService } from './config.service';
|
|
15
15
|
import { MomentDateAdapter } from '@angular/material-moment-adapter';
|
|
@@ -47,6 +47,7 @@ export declare class PlatformService extends StartableService {
|
|
|
47
47
|
private _capacitor;
|
|
48
48
|
private _android;
|
|
49
49
|
private _ios;
|
|
50
|
+
busySubject: BehaviorSubject<boolean>;
|
|
50
51
|
constructor(ionicPlatform: Platform, cdkPlatform: CdkPlatform, cdkClipboard: CdkClipboard, toastController: ToastController, translate: TranslateService, dateAdapter: MomentDateAdapter, entitiesStorage: EntitiesStorage, settings: LocalSettingsService, networkService: NetworkService, accountService: AccountService, configService: ConfigService, cache: CacheService, audioProvider: AudioProvider, environment: Environment, loggingService: ILoggingService, downloader: Downloader);
|
|
51
52
|
private _downloadingJobs;
|
|
52
53
|
private checkAppVersionTimer;
|
|
@@ -78,6 +79,11 @@ export declare class PlatformService extends StartableService {
|
|
|
78
79
|
width(): number;
|
|
79
80
|
height(): number;
|
|
80
81
|
protected ngOnStart(): Promise<any>;
|
|
82
|
+
/**
|
|
83
|
+
* Used to show a backdrop when platform is busy (e.g. from the app.component.ts)
|
|
84
|
+
*/
|
|
85
|
+
markAsBusy(): void;
|
|
86
|
+
markAsNotBusy(): void;
|
|
81
87
|
open(url: string, opts?: Omit<OpenOptions, 'url'>): Promise<void>;
|
|
82
88
|
getDownloadingJob(uri: string): Observable<string>;
|
|
83
89
|
download(request: {
|
|
@@ -86,6 +92,8 @@ export declare class PlatformService extends StartableService {
|
|
|
86
92
|
} & Partial<DownloadRequest>): Observable<string | undefined>;
|
|
87
93
|
copyToClipboard(data: string | WriteOptions, opts?: ShowToastOptions): Promise<void>;
|
|
88
94
|
toggleDarkTheme(enable: boolean): void;
|
|
95
|
+
showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
|
|
96
|
+
closeToast(id?: string): Promise<boolean>;
|
|
89
97
|
protected configureTheme(mobile: boolean, win?: any): Promise<void>;
|
|
90
98
|
protected configureCapacitorPlugins(): Promise<void>;
|
|
91
99
|
protected configureTranslate(): void;
|
|
@@ -95,7 +103,6 @@ export declare class PlatformService extends StartableService {
|
|
|
95
103
|
canReload?: boolean;
|
|
96
104
|
silent?: boolean;
|
|
97
105
|
}): Promise<void>;
|
|
98
|
-
protected showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
|
|
99
106
|
protected onStartupError(err: any): Promise<void>;
|
|
100
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformService, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
101
108
|
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformService>;
|
|
@@ -48,6 +48,10 @@ export declare class DateUtils {
|
|
|
48
48
|
* @param timezone
|
|
49
49
|
*/
|
|
50
50
|
static isAtDay(date: string | Moment, weekday: number, timezone?: string): boolean;
|
|
51
|
+
static durationToString(value: number, dayUnit: string, opts?: unitOfTime.DurationConstructor | {
|
|
52
|
+
unit?: unitOfTime.DurationConstructor;
|
|
53
|
+
seconds?: boolean;
|
|
54
|
+
} | any): string;
|
|
51
55
|
}
|
|
52
56
|
export declare function toDateISOString(value: any): string | undefined;
|
|
53
57
|
export declare function fromDateISOString(value: any): Moment | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
|
+
import { CdkTextareaAutosize } from '@angular/cdk/text-field';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AutoResizeDirective implements AfterViewInit {
|
|
5
|
+
readonly element: ElementRef<HTMLTextAreaElement>;
|
|
6
|
+
readonly cdkDirective: CdkTextareaAutosize;
|
|
7
|
+
private get _cachedLineHeight();
|
|
8
|
+
private get _previousValue();
|
|
9
|
+
private set _previousValue(value);
|
|
10
|
+
maxRows: number;
|
|
11
|
+
minRows: number;
|
|
12
|
+
constructor(element: ElementRef<HTMLTextAreaElement>, cdkDirective: CdkTextareaAutosize);
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
onInput(): void;
|
|
15
|
+
private doResize;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoResizeDirective, never>;
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoResizeDirective, "textarea[cdkTextareaAutosize]", never, { "maxRows": { "alias": "cdkAutosizeMaxRows"; "required": false; }; "minRows": { "alias": "cdkAutosizeMinRows"; "required": false; }; }, {}, never, never, false, never>;
|
|
18
|
+
static ngAcceptInputType_maxRows: unknown;
|
|
19
|
+
static ngAcceptInputType_minRows: unknown;
|
|
20
|
+
}
|
|
@@ -4,10 +4,11 @@ import * as i2 from "./ng-var.directive";
|
|
|
4
4
|
import * as i3 from "./drag-and-drop.directive";
|
|
5
5
|
import * as i4 from "./autotitle.directive";
|
|
6
6
|
import * as i5 from "./throttled-click.directive";
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@
|
|
7
|
+
import * as i6 from "./autoresize.directive";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@ionic/angular";
|
|
9
10
|
export declare class SharedDirectivesModule {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedDirectivesModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective], [typeof
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedDirectivesModule, [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective, typeof i6.AutoResizeDirective], [typeof i7.CommonModule, typeof i8.IonicModule], [typeof i1.AutofocusDirective, typeof i2.NgVarDirective, typeof i3.DragAndDropDirective, typeof i4.AutoTitleDirective, typeof i5.ThrottledClickDirective, typeof i6.AutoResizeDirective]>;
|
|
12
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedDirectivesModule>;
|
|
13
14
|
}
|
|
@@ -40,6 +40,8 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
40
40
|
chipColor: ThemePalette | PredefinedColors;
|
|
41
41
|
classList: string;
|
|
42
42
|
debug: boolean;
|
|
43
|
+
panelClass: string;
|
|
44
|
+
panelWidth: string;
|
|
43
45
|
onKeyupEnter: EventEmitter<any>;
|
|
44
46
|
get value(): any;
|
|
45
47
|
matInput: ElementRef;
|
|
@@ -70,7 +72,7 @@ export declare class AppFormField implements OnInit, ControlValueAccessor {
|
|
|
70
72
|
}): void;
|
|
71
73
|
protected updateTabIndex(timeout?: number): void;
|
|
72
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppFormField, [null, null, null, { optional: true; }]>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppFormField, "app-form-field", never, { "definition": { "alias": "definition"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "compact": { "alias": "compact"; "required": false; }; "required": { "alias": "required"; "required": false; }; "hideRequiredMarker": { "alias": "hideRequiredMarker"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "label": { "alias": "label"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "autofocus": { "alias": "autofocus"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "chipColor": { "alias": "chipColor"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; }, { "onKeyupEnter": "keyup.enter"; }, never, ["[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matPrefix]", "[matSuffix]", "[matSuffix]"], false, never>;
|
|
74
76
|
static ngAcceptInputType_readonly: unknown;
|
|
75
77
|
static ngAcceptInputType_disabled: unknown;
|
|
76
78
|
static ngAcceptInputType_compact: unknown;
|
|
@@ -88,6 +88,12 @@ export declare function getPropertyByPathAsString(obj: any, path: string | strin
|
|
|
88
88
|
export declare function setPropertyByPath<T = any>(obj: T, path: string | string[], value: any): T;
|
|
89
89
|
export declare function sleep(ms: number): Promise<void>;
|
|
90
90
|
export declare function isPromise<T>(value: T | Promise<T>): value is Promise<T>;
|
|
91
|
+
/**
|
|
92
|
+
* Rounds a numeric value to two decimal places.
|
|
93
|
+
*
|
|
94
|
+
* @param {number | undefined | null} value - The value to be rounded. Can be a number, undefined, or null.
|
|
95
|
+
* @return {number} The rounded value with two decimal places if the input value is a valid number; otherwise, returns the input value.
|
|
96
|
+
*/
|
|
91
97
|
export declare function round(value: number | undefined | null): number;
|
|
92
98
|
export declare function equalsOrNil(value1: any, value2: any): boolean;
|
|
93
99
|
/**
|
|
@@ -49,8 +49,10 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
49
49
|
showToolbar: boolean;
|
|
50
50
|
showFabButton: boolean;
|
|
51
51
|
showTitle: boolean;
|
|
52
|
+
showAddTextButton: boolean;
|
|
52
53
|
showAddCardButton: boolean;
|
|
53
54
|
addButtonColor: AppColors;
|
|
55
|
+
addButtonText: string;
|
|
54
56
|
set dataSource(dataSource: TableDataSource<T, any, any, any>);
|
|
55
57
|
get dataSource(): TableDataSource<T, any, any, any>;
|
|
56
58
|
get enabled(): boolean;
|
|
@@ -95,7 +97,7 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
95
97
|
}): Promise<boolean>;
|
|
96
98
|
protected markForCheck(): void;
|
|
97
99
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppImageGalleryComponent<any>, [null, null, null, null, null, { optional: true; }]>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppImageGalleryComponent<any>, "app-image-gallery", never, { "cardColor": { "alias": "cardColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "confirmBeforeDelete": { "alias": "confirmBeforeDelete"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showFabButton": { "alias": "showFabButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showAddCardButton": { "alias": "showAddCardButton"; "required": false; }; "addButtonColor": { "alias": "addButtonColor"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "onBeforeDeleteRows": "onBeforeDeleteRows"; "onAfterAddRows": "onAfterAddRows"; "onAfterEditRow": "onAfterEditRow"; }, never, never, false, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppImageGalleryComponent<any>, "app-image-gallery", never, { "cardColor": { "alias": "cardColor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "mobile": { "alias": "mobile"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "confirmBeforeDelete": { "alias": "confirmBeforeDelete"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "showFabButton": { "alias": "showFabButton"; "required": false; }; "showTitle": { "alias": "showTitle"; "required": false; }; "showAddTextButton": { "alias": "showAddTextButton"; "required": false; }; "showAddCardButton": { "alias": "showAddCardButton"; "required": false; }; "addButtonColor": { "alias": "addButtonColor"; "required": false; }; "addButtonText": { "alias": "addButtonText"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, { "onBeforeDeleteRows": "onBeforeDeleteRows"; "onAfterAddRows": "onAfterAddRows"; "onAfterEditRow": "onAfterEditRow"; }, never, never, false, never>;
|
|
99
101
|
static ngAcceptInputType_debug: unknown;
|
|
100
102
|
static ngAcceptInputType_disabled: unknown;
|
|
101
103
|
static ngAcceptInputType_readOnly: unknown;
|
|
@@ -103,5 +105,6 @@ export declare class AppImageGalleryComponent<T extends Image> implements OnInit
|
|
|
103
105
|
static ngAcceptInputType_showToolbar: unknown;
|
|
104
106
|
static ngAcceptInputType_showFabButton: unknown;
|
|
105
107
|
static ngAcceptInputType_showTitle: unknown;
|
|
108
|
+
static ngAcceptInputType_showAddTextButton: unknown;
|
|
106
109
|
static ngAcceptInputType_showAddCardButton: unknown;
|
|
107
110
|
}
|
|
@@ -3,8 +3,9 @@ import { LocalSettingsService } from '../../core/services/local-settings.service
|
|
|
3
3
|
import { TranslateService } from '@ngx-translate/core';
|
|
4
4
|
import { NetworkService } from '../../core/services/network.service';
|
|
5
5
|
import { MarkdownService } from './markdown.service';
|
|
6
|
-
import { NavController } from '@ionic/angular';
|
|
6
|
+
import { NavController, ToastController } from '@ionic/angular';
|
|
7
7
|
import { ActivatedRoute } from '@angular/router';
|
|
8
|
+
import { PrintService } from '../print/print.service';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export interface AppMarkdownOptions {
|
|
10
11
|
data?: string;
|
|
@@ -16,13 +17,15 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
16
17
|
protected element: ElementRef<HTMLElement>;
|
|
17
18
|
private _document;
|
|
18
19
|
protected route: ActivatedRoute;
|
|
19
|
-
private
|
|
20
|
+
private _printId;
|
|
20
21
|
private _clickSubscription;
|
|
21
22
|
protected navController: NavController;
|
|
22
23
|
protected settings: LocalSettingsService;
|
|
23
24
|
protected translate: TranslateService;
|
|
24
25
|
protected network: NetworkService;
|
|
25
26
|
protected markdownService: MarkdownService;
|
|
27
|
+
protected toastController: ToastController;
|
|
28
|
+
protected printService: PrintService;
|
|
26
29
|
protected loading: boolean;
|
|
27
30
|
protected error: string;
|
|
28
31
|
protected baseUrl: string;
|
|
@@ -52,9 +55,15 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
52
55
|
ngOnDestroy(): void;
|
|
53
56
|
goBack(event?: Event): void;
|
|
54
57
|
get canGoBack(): boolean;
|
|
55
|
-
print(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
print(): Promise<void>;
|
|
59
|
+
markAsLoaded(opts?: {
|
|
60
|
+
emitEvent?: boolean;
|
|
61
|
+
}): void;
|
|
62
|
+
markAsLoading(opts?: {
|
|
63
|
+
emitEvent?: boolean;
|
|
64
|
+
}): void;
|
|
65
|
+
setError(error: string | Error): void;
|
|
66
|
+
resetError(): void;
|
|
58
67
|
protected setData(value: string, opts?: {
|
|
59
68
|
anchor?: string;
|
|
60
69
|
addToNavigationHistory?: boolean;
|
|
@@ -67,9 +76,6 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
67
76
|
protected onReady(): void;
|
|
68
77
|
protected onLoadError(error?: string | Error): void;
|
|
69
78
|
protected startListenClickEvents(): void;
|
|
70
|
-
protected markAsLoaded(): void;
|
|
71
|
-
protected markAsLoading(): void;
|
|
72
|
-
protected resetError(): void;
|
|
73
79
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownContent, [null, null, null, { optional: true; }]>;
|
|
74
80
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownContent, "app-markdown-content", never, { "data": { "alias": "data"; "required": false; }; "src": { "alias": "src"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "enableNavigationHistory": { "alias": "enableNavigationHistory"; "required": false; }; "updateRouteLocation": { "alias": "updateRouteLocation"; "required": false; }; }, { "markdownUrlChange": "markdownUrlChange"; }, never, never, false, never>;
|
|
75
81
|
static ngAcceptInputType_debug: unknown;
|
|
@@ -8,11 +8,13 @@ import { AppMarkdownContent } from './markdown.component';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export interface AppMarkdownModalOptions {
|
|
10
10
|
title?: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
data?: string;
|
|
12
|
+
src?: string;
|
|
13
13
|
showError?: boolean;
|
|
14
14
|
cssClass?: string;
|
|
15
15
|
canPrint?: boolean;
|
|
16
|
+
enableNavigationHistory?: boolean;
|
|
17
|
+
debug?: boolean;
|
|
16
18
|
}
|
|
17
19
|
export declare class AppMarkdownModal implements AppMarkdownModalOptions {
|
|
18
20
|
protected injector: Injector;
|
|
@@ -22,18 +24,26 @@ export declare class AppMarkdownModal implements AppMarkdownModalOptions {
|
|
|
22
24
|
protected translate: TranslateService;
|
|
23
25
|
protected network: NetworkService;
|
|
24
26
|
protected cd: ChangeDetectorRef;
|
|
25
|
-
protected loading: boolean;
|
|
26
|
-
protected error: string;
|
|
27
|
-
debug: boolean;
|
|
28
27
|
title: string;
|
|
29
28
|
showError: boolean;
|
|
30
29
|
canPrint: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
data: string;
|
|
31
|
+
src: string;
|
|
32
|
+
enableNavigationHistory: boolean;
|
|
33
|
+
debug: boolean;
|
|
34
|
+
content: AppMarkdownContent;
|
|
33
35
|
static show(modalCtrl: ModalController, options: AppMarkdownModalOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
34
36
|
constructor(injector: Injector, viewCtrl: ModalController, platform: PlatformService, settings: LocalSettingsService, translate: TranslateService, network: NetworkService, cd: ChangeDetectorRef);
|
|
35
37
|
close(_?: Event): Promise<boolean>;
|
|
36
38
|
goBack(event: Event, content: AppMarkdownContent): void;
|
|
39
|
+
protected markAsLoaded(): void;
|
|
40
|
+
protected markAsLoading(): void;
|
|
41
|
+
protected setError(err: string | Error): void;
|
|
42
|
+
protected resetError(): void;
|
|
37
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownModal, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "title": { "alias": "title"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "canPrint": { "alias": "canPrint"; "required": false; }; "data": { "alias": "data"; "required": false; }; "src": { "alias": "src"; "required": false; }; "enableNavigationHistory": { "alias": "enableNavigationHistory"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
|
+
static ngAcceptInputType_showError: unknown;
|
|
46
|
+
static ngAcceptInputType_canPrint: unknown;
|
|
47
|
+
static ngAcceptInputType_enableNavigationHistory: unknown;
|
|
48
|
+
static ngAcceptInputType_debug: unknown;
|
|
39
49
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { MarkdownModuleConfig } from 'ngx-markdown';
|
|
2
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
import * as i1 from "./markdown.component";
|
|
@@ -11,7 +10,7 @@ import * as i7 from "ngx-markdown";
|
|
|
11
10
|
import * as i8 from "../toolbar/toolbar.module";
|
|
12
11
|
import * as i9 from "../debug/debug.module";
|
|
13
12
|
export declare class SharedMarkdownModule {
|
|
14
|
-
static forRoot(
|
|
13
|
+
static forRoot(): ModuleWithProviders<SharedMarkdownModule>;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SharedMarkdownModule, never>;
|
|
16
15
|
static ɵmod: i0.ɵɵNgModuleDeclaration<SharedMarkdownModule, [typeof i1.AppMarkdownContent, typeof i2.AppMarkdownModal, typeof i3.MarkdownDirective], [typeof i4.CommonModule, typeof i5.IonicModule, typeof i6.TranslateModule, typeof i7.MarkdownModule, typeof i8.SharedToolbarModule, typeof i9.SharedDebugModule], [typeof i6.TranslateModule, typeof i7.MarkdownModule, typeof i1.AppMarkdownContent, typeof i3.MarkdownDirective]>;
|
|
17
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<SharedMarkdownModule>;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { ModalController } from '@ionic/angular';
|
|
3
|
+
import { Environment } from '../../../../environments/environment.class';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class MarkdownTestPage {
|
|
5
6
|
private modalCtrl;
|
|
6
7
|
private cd;
|
|
8
|
+
protected environment: Environment;
|
|
7
9
|
protected markdownModalTitle: string;
|
|
10
|
+
protected debug: boolean;
|
|
8
11
|
protected markdownUrl: string;
|
|
9
|
-
constructor(modalCtrl: ModalController, cd: ChangeDetectorRef);
|
|
12
|
+
constructor(modalCtrl: ModalController, cd: ChangeDetectorRef, environment: Environment);
|
|
10
13
|
onSubmit(event: Event, newUrl: string | number): void;
|
|
11
14
|
updateInputUrl(url: string): void;
|
|
12
15
|
openHelpModal(event: Event): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
@@ -4,8 +4,9 @@ import * as i2 from "@angular/common";
|
|
|
4
4
|
import * as i3 from "@angular/router";
|
|
5
5
|
import * as i4 from "../../shared.module";
|
|
6
6
|
import * as i5 from "@angular/forms";
|
|
7
|
+
import * as i6 from "../markdown.module";
|
|
7
8
|
export declare class MarkdownTestingModule {
|
|
8
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MarkdownTestingModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MarkdownTestingModule, [typeof i1.MarkdownTestPage], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.SharedModule, typeof i5.FormsModule], [typeof i3.RouterModule, typeof i1.MarkdownTestPage]>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MarkdownTestingModule, [typeof i1.MarkdownTestPage], [typeof i2.CommonModule, typeof i3.RouterModule, typeof i4.SharedModule, typeof i5.FormsModule, typeof i6.SharedMarkdownModule], [typeof i3.RouterModule, typeof i1.MarkdownTestPage]>;
|
|
10
11
|
static ɵinj: i0.ɵɵInjectorDeclaration<MarkdownTestingModule>;
|
|
11
12
|
}
|
|
@@ -30,6 +30,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
30
30
|
private _openedSubscription;
|
|
31
31
|
private _$filter;
|
|
32
32
|
private _itemCount;
|
|
33
|
+
private _suggestExecutionId;
|
|
33
34
|
private _reload$;
|
|
34
35
|
protected _readonly: boolean;
|
|
35
36
|
protected _tabindex: number;
|
|
@@ -40,6 +41,7 @@ export declare class MatAutocompleteField implements OnInit, AfterViewInit, OnDe
|
|
|
40
41
|
protected _moreItemsCount: number;
|
|
41
42
|
protected _fetchMore$: EventEmitter<Event>;
|
|
42
43
|
protected _defaultPanelWidth: string;
|
|
44
|
+
protected _focused: boolean;
|
|
43
45
|
equals: EqualsFn;
|
|
44
46
|
logPrefix: string;
|
|
45
47
|
formControl: UntypedFormControl;
|
|
@@ -21,6 +21,7 @@ export declare class MatChipsField implements OnInit, OnDestroy, InputElement, C
|
|
|
21
21
|
private _openedSubscription;
|
|
22
22
|
private _$filter;
|
|
23
23
|
private _itemCount;
|
|
24
|
+
private _suggestExecutionId;
|
|
24
25
|
private _reload$;
|
|
25
26
|
protected _tabindex: number;
|
|
26
27
|
protected _$inputItems: BehaviorSubject<any[]>;
|
|
@@ -63,6 +63,7 @@ export declare class MatDateTime implements OnInit, AfterViewInit, OnDestroy, Co
|
|
|
63
63
|
get formControlName(): string;
|
|
64
64
|
set required(value: boolean | any);
|
|
65
65
|
get required(): boolean | any;
|
|
66
|
+
get requiredTime(): boolean | any;
|
|
66
67
|
set readonly(value: boolean);
|
|
67
68
|
get readonly(): boolean;
|
|
68
69
|
set tabindex(value: number);
|
|
@@ -56,7 +56,7 @@ export declare class NamedFilterSelector extends AppForm<{
|
|
|
56
56
|
export(event?: UIEvent): Promise<void>;
|
|
57
57
|
import(event: Event): Promise<void>;
|
|
58
58
|
protected onFilterChanges(value: NamedFilter | string): Promise<void>;
|
|
59
|
-
protected setControlValue(value:
|
|
59
|
+
protected setControlValue(value: NamedFilter): void;
|
|
60
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<NamedFilterSelector, never>;
|
|
61
61
|
static ɵcmp: i0.ɵɵComponentDeclaration<NamedFilterSelector, "app-named-filter-selector", never, { "mobile": { "alias": "mobile"; "required": false; }; "entityName": { "alias": "entityName"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "subscriptSizing": { "alias": "subscriptSizing"; "required": false; }; "filterContentProvider": { "alias": "filterContentProvider"; "required": false; }; "filterImportCallback": { "alias": "filterImportCallback"; "required": false; }; "filterFormDirty": { "alias": "filterFormDirty"; "required": false; }; "showButtons": { "alias": "showButtons"; "required": false; }; "exportFileNamePrefix": { "alias": "exportFileNamePrefix"; "required": false; }; "autocompleteConfig": { "alias": "autocompleteConfig"; "required": false; }; "dropButtonTitle": { "alias": "dropButtonTitle"; "required": false; }; "clearButtonTitle": { "alias": "clearButtonTitle"; "required": false; }; "detectChangeOnSelectFilter": { "alias": "detectChangeOnSelectFilter"; "required": false; }; "buttonsPosition": { "alias": "buttonsPosition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "filterSelected": "filterSelected"; "filterDeleted": "filterDeleted"; "filterCleared": "filterCleared"; }, never, never, false, never>;
|
|
62
62
|
}
|
|
@@ -13,8 +13,8 @@ export declare function filterNotNil<T = any>(obs: Observable<T>): Observable<T>
|
|
|
13
13
|
export declare function filterTrue(obs: Observable<boolean>): Observable<boolean>;
|
|
14
14
|
export declare function filterFalse(obs: Observable<boolean>, opts?: FirstOptions): Observable<boolean>;
|
|
15
15
|
export declare function firstNotNil<T = any>(obs: Observable<T>, opts?: FirstOptions): Observable<T>;
|
|
16
|
-
export declare function firstTrue(obs: Observable<boolean>, opts?: FirstOptions): Observable<
|
|
17
|
-
export declare function firstFalse(obs: Observable<boolean>, opts?: FirstOptions): Observable<
|
|
16
|
+
export declare function firstTrue<T = void>(obs: Observable<boolean>, opts?: FirstOptions, result?: T): Observable<T>;
|
|
17
|
+
export declare function firstFalse<T = void>(obs: Observable<boolean>, opts?: FirstOptions, result?: T): Observable<T>;
|
|
18
18
|
export declare function firstTruePromise(obs: Observable<boolean>, opts?: FirstOptions): Promise<void>;
|
|
19
19
|
export declare function firstFalsePromise(obs: Observable<boolean>, opts?: FirstOptions): Promise<void>;
|
|
20
20
|
export declare function firstNotNilPromise<T = any>(obs: Observable<T>, opts?: FirstOptions): Promise<T>;
|
|
@@ -57,3 +57,11 @@ export declare class ArrayJoinPipe implements PipeTransform {
|
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayJoinPipe, never>;
|
|
58
58
|
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayJoinPipe, "arrayJoin", false>;
|
|
59
59
|
}
|
|
60
|
+
export declare class ArrayDistinctPipe implements PipeTransform {
|
|
61
|
+
transform<T = any>(val: unknown | T[], opts?: string | {
|
|
62
|
+
property: string;
|
|
63
|
+
omitNil?: boolean;
|
|
64
|
+
}): any[];
|
|
65
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayDistinctPipe, never>;
|
|
66
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ArrayDistinctPipe, "arrayDistinct", false>;
|
|
67
|
+
}
|
|
@@ -13,3 +13,10 @@ export declare class SafeHtmlPipe implements PipeTransform {
|
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
14
14
|
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
|
|
15
15
|
}
|
|
16
|
+
export declare class SafeStylePipe implements PipeTransform {
|
|
17
|
+
private sanitized;
|
|
18
|
+
constructor(sanitized: DomSanitizer);
|
|
19
|
+
transform(value: string): SafeHtml;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeStylePipe, never>;
|
|
21
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeStylePipe, "safeStyle", false>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { FirstOptions } from '../observables';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FirstTruePipe implements PipeTransform {
|
|
6
|
+
transform(value: Observable<boolean>, opts?: FirstOptions): Observable<boolean>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirstTruePipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FirstTruePipe, "firstTrue", false>;
|
|
9
|
+
}
|
|
10
|
+
export declare class FirstFalsePipe implements PipeTransform {
|
|
11
|
+
transform(value: Observable<boolean>, opts?: FirstOptions): Observable<boolean>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirstFalsePipe, never>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FirstFalsePipe, "firstFalse", false>;
|
|
14
|
+
}
|
|
15
|
+
export declare class FirstPipe implements PipeTransform {
|
|
16
|
+
transform<T = any>(value: Observable<T>): Observable<T>;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FirstPipe, never>;
|
|
18
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FirstPipe, "first", false>;
|
|
19
|
+
}
|