cmat 0.0.78 → 0.0.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/cmat-components-adapter.mjs +9 -46
- package/fesm2022/cmat-components-adapter.mjs.map +1 -1
- package/fesm2022/cmat-components-breadcrumb.mjs +104 -205
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +4 -8
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-carousel.mjs +21 -21
- package/fesm2022/cmat-components-carousel.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +18 -24
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +21 -21
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-code-editor.mjs +4 -22
- package/fesm2022/cmat-components-code-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +181 -245
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +12 -184
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-date-time-display.mjs +3 -15
- package/fesm2022/cmat-components-date-time-display.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +10 -100
- package/fesm2022/cmat-components-drawer.mjs.map +1 -1
- package/fesm2022/cmat-components-empty-state.mjs +4 -25
- package/fesm2022/cmat-components-empty-state.mjs.map +1 -1
- package/fesm2022/cmat-components-file-preview.mjs +3 -21
- package/fesm2022/cmat-components-file-preview.mjs.map +1 -1
- package/fesm2022/cmat-components-filter-toolbar.mjs +7 -50
- package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-form-actions.mjs +3 -9
- package/fesm2022/cmat-components-form-actions.mjs.map +1 -1
- package/fesm2022/cmat-components-fullscreen.mjs +4 -4
- package/fesm2022/cmat-components-fullscreen.mjs.map +1 -1
- package/fesm2022/cmat-components-highlight.mjs +6 -32
- package/fesm2022/cmat-components-highlight.mjs.map +1 -1
- package/fesm2022/cmat-components-image-viewer.mjs +12 -24
- package/fesm2022/cmat-components-image-viewer.mjs.map +1 -1
- package/fesm2022/cmat-components-inline-loading.mjs +3 -12
- package/fesm2022/cmat-components-inline-loading.mjs.map +1 -1
- package/fesm2022/cmat-components-json-editor.mjs +11 -16
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-knob-input.mjs +24 -18
- package/fesm2022/cmat-components-knob-input.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +8 -17
- package/fesm2022/cmat-components-masonry.mjs.map +1 -1
- package/fesm2022/cmat-components-material-color-picker.mjs +13 -34
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +80 -436
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +266 -816
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-opt-input.mjs +7 -10
- package/fesm2022/cmat-components-opt-input.mjs.map +1 -1
- package/fesm2022/cmat-components-org-chart.mjs +11 -11
- package/fesm2022/cmat-components-org-chart.mjs.map +1 -1
- package/fesm2022/cmat-components-page-header.mjs +8 -19
- package/fesm2022/cmat-components-page-header.mjs.map +1 -1
- package/fesm2022/cmat-components-pagination.mjs +113 -108
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +13 -16
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +15 -151
- package/fesm2022/cmat-components-popover.mjs.map +1 -1
- package/fesm2022/cmat-components-progress-bar.mjs +16 -26
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-qrcode.mjs +5 -11
- package/fesm2022/cmat-components-qrcode.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +14 -14
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-rich-text-editor.mjs +4 -25
- package/fesm2022/cmat-components-rich-text-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +51 -79
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-table.mjs +204 -162
- package/fesm2022/cmat-components-select-table.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +142 -97
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-skeleton.mjs +4 -22
- package/fesm2022/cmat-components-skeleton.mjs.map +1 -1
- package/fesm2022/cmat-components-speed-dial.mjs +14 -19
- package/fesm2022/cmat-components-speed-dial.mjs.map +1 -1
- package/fesm2022/cmat-components-status-tag.mjs +3 -18
- package/fesm2022/cmat-components-status-tag.mjs.map +1 -1
- package/fesm2022/cmat-components-table-toolbar.mjs +3 -15
- package/fesm2022/cmat-components-table-toolbar.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +18 -21
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +20 -20
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +159 -123
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-treetable.mjs +17 -19
- package/fesm2022/cmat-components-treetable.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +35 -57
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-components-x6-angular-shape.mjs +0 -4
- package/fesm2022/cmat-components-x6-angular-shape.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -27
- package/fesm2022/cmat-directives-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/cmat-directives-arrow-cursor.mjs +7 -9
- package/fesm2022/cmat-directives-arrow-cursor.mjs.map +1 -1
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-data-exporter.mjs +24 -33
- package/fesm2022/cmat-directives-data-exporter.mjs.map +1 -1
- package/fesm2022/cmat-directives-debounce.mjs +14 -17
- package/fesm2022/cmat-directives-debounce.mjs.map +1 -1
- package/fesm2022/cmat-directives-digit-only.mjs +6 -23
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +4 -11
- package/fesm2022/cmat-directives-seamless-auto-scroll.mjs.map +1 -1
- package/fesm2022/cmat-lib-mock-api.mjs +6 -43
- package/fesm2022/cmat-lib-mock-api.mjs.map +1 -1
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs +3 -3
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -5
- package/fesm2022/cmat-pipes-find-by-key.mjs.map +1 -1
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs +8 -12
- package/fesm2022/cmat-pipes-secure.mjs.map +1 -1
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-services-alert.mjs +3 -3
- package/fesm2022/cmat-services-config.mjs +50 -26
- package/fesm2022/cmat-services-config.mjs.map +1 -1
- package/fesm2022/cmat-services-confirmation.mjs +9 -11
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +56 -101
- package/fesm2022/cmat-services-data.mjs.map +1 -1
- package/fesm2022/cmat-services-export-as.mjs +4 -32
- package/fesm2022/cmat-services-export-as.mjs.map +1 -1
- package/fesm2022/cmat-services-loading.mjs +49 -40
- package/fesm2022/cmat-services-loading.mjs.map +1 -1
- package/fesm2022/cmat-services-local-storage.mjs +3 -3
- package/fesm2022/cmat-services-media-watcher.mjs +19 -25
- package/fesm2022/cmat-services-media-watcher.mjs.map +1 -1
- package/fesm2022/cmat-services-platform.mjs +3 -10
- package/fesm2022/cmat-services-platform.mjs.map +1 -1
- package/fesm2022/cmat-services-splash-screen.mjs +8 -13
- package/fesm2022/cmat-services-splash-screen.mjs.map +1 -1
- package/fesm2022/cmat-services-title.mjs +8 -12
- package/fesm2022/cmat-services-title.mjs.map +1 -1
- package/fesm2022/cmat-services-translation.mjs +3 -3
- package/fesm2022/cmat-services-utils.mjs +5 -27
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/fesm2022/cmat-validators.mjs +0 -8
- package/fesm2022/cmat-validators.mjs.map +1 -1
- package/fesm2022/cmat.mjs +3477 -3795
- package/fesm2022/cmat.mjs.map +1 -1
- package/package.json +1 -1
- package/tailwind/plugins/helpers.js +1 -10
- package/tailwind/plugins/scrollbar/index.js +0 -1
- package/tailwind/plugins/scrollbar/typedefs.js +1 -7
- package/tailwind/plugins/scrollbar/utilities.js +9 -58
- package/tailwind/plugins/scrollbar/variants.js +2 -17
- package/tailwind/plugins/theming.js +1 -57
- package/tailwind/utils/generate-contrasts.js +1 -12
- package/tailwind/utils/generate-palette.js +1 -32
- package/types/cmat-components-adapter.d.ts +0 -25
- package/types/cmat-components-breadcrumb.d.ts +25 -175
- package/types/cmat-components-carousel.d.ts +2 -20
- package/types/cmat-components-cascade.d.ts +4 -4
- package/types/cmat-components-chip-input.d.ts +4 -3
- package/types/cmat-components-code-editor.d.ts +0 -18
- package/types/cmat-components-custom-formly.d.ts +30 -37
- package/types/cmat-components-date-range.d.ts +1 -72
- package/types/cmat-components-date-time-display.d.ts +0 -15
- package/types/cmat-components-drawer.d.ts +2 -44
- package/types/cmat-components-empty-state.d.ts +0 -21
- package/types/cmat-components-file-preview.d.ts +0 -18
- package/types/cmat-components-filter-toolbar.d.ts +3 -43
- package/types/cmat-components-form-actions.d.ts +0 -6
- package/types/cmat-components-image-viewer.d.ts +5 -18
- package/types/cmat-components-inline-loading.d.ts +0 -9
- package/types/cmat-components-json-editor.d.ts +0 -1
- package/types/cmat-components-knob-input.d.ts +3 -3
- package/types/cmat-components-masonry.d.ts +1 -2
- package/types/cmat-components-material-color-picker.d.ts +1 -2
- package/types/cmat-components-material-datetimepicker.d.ts +6 -272
- package/types/cmat-components-navigation.d.ts +34 -171
- package/types/cmat-components-opt-input.d.ts +1 -1
- package/types/cmat-components-page-header.d.ts +2 -16
- package/types/cmat-components-pagination.d.ts +26 -27
- package/types/cmat-components-password-strength.d.ts +1 -2
- package/types/cmat-components-popover.d.ts +1 -110
- package/types/cmat-components-progress-bar.d.ts +9 -11
- package/types/cmat-components-rating.d.ts +6 -7
- package/types/cmat-components-rich-text-editor.d.ts +0 -21
- package/types/cmat-components-select-search.d.ts +4 -20
- package/types/cmat-components-select-table.d.ts +24 -12
- package/types/cmat-components-select-tree.d.ts +29 -29
- package/types/cmat-components-skeleton.d.ts +0 -18
- package/types/cmat-components-speed-dial.d.ts +1 -2
- package/types/cmat-components-status-tag.d.ts +0 -15
- package/types/cmat-components-table-toolbar.d.ts +0 -12
- package/types/cmat-components-timeline.d.ts +3 -4
- package/types/cmat-components-toast.d.ts +2 -2
- package/types/cmat-components-transfer-picker.d.ts +42 -36
- package/types/cmat-components-treetable.d.ts +3 -4
- package/types/cmat-components-upload.d.ts +12 -17
- package/types/cmat-components-x6-angular-shape.d.ts +0 -1
- package/types/cmat-directives-arrow-cursor.d.ts +1 -1
- package/types/cmat-directives-debounce.d.ts +3 -4
- package/types/cmat-pipes-secure.d.ts +3 -4
- package/types/cmat-services-config.d.ts +35 -13
- package/types/cmat-services-data.d.ts +13 -12
- package/types/cmat-services-export-as.d.ts +0 -22
- package/types/cmat-services-loading.d.ts +15 -10
- package/types/cmat-services-media-watcher.d.ts +10 -13
- package/types/cmat-services-splash-screen.d.ts +2 -4
- package/types/cmat-services-title.d.ts +3 -5
- package/types/cmat.d.ts +733 -1391
package/types/cmat.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DateAdapter, MatDateFormats, ThemePalette, MatOption } from '@angular/material/core';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { InjectionToken,
|
|
3
|
+
import { InjectionToken, TemplateRef, OnChanges, SimpleChanges, AfterContentInit, AfterContentChecked, OnDestroy, ElementRef, NgZone, EventEmitter, QueryList, OnInit, AfterViewInit, Type as Type$2, Signal, PipeTransform, WritableSignal, Injector } from '@angular/core';
|
|
4
4
|
import { Dayjs } from 'dayjs';
|
|
5
|
-
import { Observable, Subject,
|
|
5
|
+
import { Observable, Subject, ReplaySubject } from 'rxjs';
|
|
6
6
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
7
7
|
import { ControlValueAccessor, NgControl, FormControl, FormGroup, UntypedFormGroup, Validator, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
8
8
|
import { CdkOverlayOrigin, OverlayRef, ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
@@ -11,6 +11,7 @@ import { MatBottomSheetRef } from '@angular/material/bottom-sheet';
|
|
|
11
11
|
import { MatFormFieldControl, MatFormField } from '@angular/material/form-field';
|
|
12
12
|
import { MatAutocompleteSelectedEvent, MatAutocompleteActivatedEvent } from '@angular/material/autocomplete';
|
|
13
13
|
import { MatChipInputEvent } from '@angular/material/chips';
|
|
14
|
+
import { NgxEditorModel } from 'ngx-monaco-editor-v2';
|
|
14
15
|
import { FormlyFieldConfig, FieldWrapper, FieldTypeConfig, FieldArrayType, FieldType as FieldType$2 } from '@ngx-formly/core';
|
|
15
16
|
import { FormlyFieldProps, FieldType } from '@ngx-formly/material/form-field';
|
|
16
17
|
import { FieldType as FieldType$1 } from '@ngx-formly/material';
|
|
@@ -21,7 +22,6 @@ import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
|
|
21
22
|
import { CmatSelectTableDataSource as CmatSelectTableDataSource$1, CmatSelectTableRow as CmatSelectTableRow$1 } from 'cmat/components/select-table';
|
|
22
23
|
import { MatTable, MatTableDataSource } from '@angular/material/table';
|
|
23
24
|
import { QuillModules } from 'ngx-quill';
|
|
24
|
-
import { NgxEditorModel } from 'ngx-monaco-editor-v2';
|
|
25
25
|
import { SafeUrl } from '@angular/platform-browser';
|
|
26
26
|
import { Content as Content$1 } from 'vanilla-jsoneditor';
|
|
27
27
|
import { MatButton } from '@angular/material/button';
|
|
@@ -34,6 +34,10 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
|
34
34
|
import { CdkTree } from '@angular/cdk/tree';
|
|
35
35
|
import { Node, NodeProperties, NodeView, Dom } from '@antv/x6';
|
|
36
36
|
import { WritingOptions } from 'xlsx';
|
|
37
|
+
import { HttpResponseBase, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpHeaders } from '@angular/common/http';
|
|
38
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
39
|
+
import { BreakpointState } from '@angular/cdk/layout';
|
|
40
|
+
import { Language } from '@ngx-translate/core';
|
|
37
41
|
|
|
38
42
|
declare abstract class DatetimeAdapter<D> extends DateAdapter<D> {
|
|
39
43
|
protected _delegate: DateAdapter<D>;
|
|
@@ -119,12 +123,6 @@ declare class CNativeDatetimeAdapter extends DatetimeAdapter<Date> {
|
|
|
119
123
|
addCalendarMinutes(date: Date, minutes: number): Date;
|
|
120
124
|
toIso8601(date: Date): string;
|
|
121
125
|
private _getDateInNextMonth;
|
|
122
|
-
/**
|
|
123
|
-
* Pads a number to make it two digits.
|
|
124
|
-
*
|
|
125
|
-
* @param n The number to pad.
|
|
126
|
-
* @returns The padded number.
|
|
127
|
-
*/
|
|
128
126
|
private _2digit;
|
|
129
127
|
private _createDateWithOverflow;
|
|
130
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<CNativeDatetimeAdapter, never>;
|
|
@@ -155,14 +153,8 @@ declare class DayjsDatetimeAdapter extends DatetimeAdapter<Dayjs> {
|
|
|
155
153
|
declare const CMAT_DAYJS_DATETIME_FORMATS: CmatDatetimeFormats;
|
|
156
154
|
|
|
157
155
|
interface DayJsDateAdapterOptions {
|
|
158
|
-
/**
|
|
159
|
-
* Turns the use of utc dates on or off.
|
|
160
|
-
* Changing this will change how Angular Material components like DatePicker output dates.
|
|
161
|
-
* {@default false}
|
|
162
|
-
*/
|
|
163
156
|
useUtc?: boolean;
|
|
164
157
|
}
|
|
165
|
-
/** InjectionToken for Dayjs date adapter to configure options. */
|
|
166
158
|
declare const CMAT_DAYJS_DATE_ADAPTER_OPTIONS: InjectionToken<DayJsDateAdapterOptions>;
|
|
167
159
|
declare function CMAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY(): DayJsDateAdapterOptions;
|
|
168
160
|
declare class DayjsDateAdapter extends DateAdapter<Dayjs> {
|
|
@@ -190,19 +182,6 @@ declare class DayjsDateAdapter extends DateAdapter<Dayjs> {
|
|
|
190
182
|
addCalendarMonths(date: Dayjs, months: number): Dayjs;
|
|
191
183
|
addCalendarDays(date: Dayjs, days: number): Dayjs;
|
|
192
184
|
toIso8601(date: Dayjs): string;
|
|
193
|
-
/**
|
|
194
|
-
* Attempts to deserialize a value to a valid date object. This is different from parsing in that
|
|
195
|
-
* deserialize should only accept non-ambiguous, locale-independent formats (e.g. a ISO 8601
|
|
196
|
-
* string). The default implementation does not allow any deserialization, it simply checks that
|
|
197
|
-
* the given value is already a valid date object or null. The `<mat-datepicker>` will call this
|
|
198
|
-
* method on all of it's `@Input()` properties that accept dates. It is therefore possible to
|
|
199
|
-
* support passing values from your backend directly to these properties by overriding this method
|
|
200
|
-
* to also deserialize the format used by your backend.
|
|
201
|
-
*
|
|
202
|
-
* @param value The value to be deserialized into a date object.
|
|
203
|
-
* @returns The deserialized date object, either a valid date, null if the value can be
|
|
204
|
-
* deserialized into a null date (e.g. the empty string), or an invalid date.
|
|
205
|
-
*/
|
|
206
185
|
deserialize(value: any): Dayjs | null;
|
|
207
186
|
isDateInstance(obj: any): boolean;
|
|
208
187
|
isValid(date: Dayjs): boolean;
|
|
@@ -215,241 +194,91 @@ declare class DayjsDateAdapter extends DateAdapter<Dayjs> {
|
|
|
215
194
|
|
|
216
195
|
declare const CMAT_DAYJS_DATE_FORMATS: MatDateFormats;
|
|
217
196
|
|
|
218
|
-
/**
|
|
219
|
-
* This directive is used to customize the breadcrumb label behavior
|
|
220
|
-
* *cmatBreadcrumbItem directive can be used in the child element of cmat-breadcrumb
|
|
221
|
-
* Usage: refer to the demo - app.component.html
|
|
222
|
-
*/
|
|
223
197
|
declare class CmatBreadcrumbItemDirective {
|
|
224
198
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatBreadcrumbItemDirective, never>;
|
|
225
199
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatBreadcrumbItemDirective, "[cmatBreadcrumbItem]", never, {}, {}, never, never, true, never>;
|
|
226
200
|
}
|
|
227
201
|
|
|
228
202
|
interface CmatBreadcrumb {
|
|
229
|
-
/**
|
|
230
|
-
* actual route path with resolved param. Ex /mentor/2, connect/edit
|
|
231
|
-
*/
|
|
232
203
|
routeLink?: string;
|
|
233
|
-
/**
|
|
234
|
-
* route with path params converted to a RegExp
|
|
235
|
-
* path '/mentor/:id' becomes routeRegex '/mentor/[^/]+', which can be matched against when needed
|
|
236
|
-
*/
|
|
237
204
|
routeRegex?: string;
|
|
238
|
-
/**
|
|
239
|
-
* This is additional info on each breadcrumb item whether label is auto generated or user specified
|
|
240
|
-
* isAutoGeneratedLabel has to be present at component level but not at the service,
|
|
241
|
-
* since we may need to support multiple breadcrumb components in same app
|
|
242
|
-
*/
|
|
243
205
|
isAutoGeneratedLabel?: boolean;
|
|
244
|
-
/**
|
|
245
|
-
* Query params in string form.
|
|
246
|
-
*/
|
|
247
206
|
queryParams?: any;
|
|
248
207
|
fragment?: string;
|
|
249
208
|
routeInterceptor?: (breadcrumb: CmatBreadcrumb, routeLink?: string) => string;
|
|
250
209
|
}
|
|
251
210
|
|
|
252
|
-
/**
|
|
253
|
-
* Breadcrumb config provided as part of App Route Config
|
|
254
|
-
*/
|
|
255
211
|
interface CmatBreadcrumbObject {
|
|
256
|
-
/**
|
|
257
|
-
* breadcrumb label for a route
|
|
258
|
-
*/
|
|
259
212
|
label?: string | CmatBreadcrumbFunction;
|
|
260
|
-
/**
|
|
261
|
-
* unique alias name for a route path that can be used to dynamically update a route's breadcrumb label via breadcrumbService.set()
|
|
262
|
-
*/
|
|
263
213
|
alias?: string;
|
|
264
|
-
/**
|
|
265
|
-
* hide or show the breadcrumb item
|
|
266
|
-
*/
|
|
267
214
|
skip?: boolean;
|
|
268
|
-
/**
|
|
269
|
-
* disable a certain breadcrumb in the list. Not clickable.
|
|
270
|
-
* It may be needed when the routing has the path, but navigating to that path is of no use
|
|
271
|
-
*/
|
|
272
215
|
disable?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* custom data for each breadcrumb that is passed back to ng-template
|
|
275
|
-
*/
|
|
276
216
|
info?: unknown;
|
|
277
|
-
/**
|
|
278
|
-
* Interceptor for breadcrumb click action that returns the dynamic path
|
|
279
|
-
* Consumers can change the breadcrumb routing dynamically with this approach
|
|
280
|
-
*/
|
|
281
217
|
routeInterceptor?: (breadcrumb: CmatBreadcrumb, routeLink?: string) => string;
|
|
282
218
|
}
|
|
283
219
|
type CmatBreadcrumbFunction = (resolvedLabel?: string) => string;
|
|
284
220
|
|
|
285
221
|
type CmatBreadcrumbDefinition = CmatBreadcrumb & CmatBreadcrumbObject;
|
|
286
|
-
declare class CmatBreadcrumbService
|
|
222
|
+
declare class CmatBreadcrumbService {
|
|
287
223
|
private _activatedRoute;
|
|
288
224
|
private _router;
|
|
225
|
+
private readonly _destroyRef;
|
|
289
226
|
private _baseHref;
|
|
290
|
-
private
|
|
291
|
-
/**
|
|
292
|
-
* dynamicBreadcrumbStore holds information about dynamically updated breadcrumbs.
|
|
293
|
-
* Breadcrumbs can be set from anywhere (component, service) in the app.
|
|
294
|
-
* On every breadcrumb update check this store and use the info if available.
|
|
295
|
-
*/
|
|
296
|
-
private _dynamicBreadcrumbStore;
|
|
297
|
-
/**
|
|
298
|
-
* breadcrumbList for the current route
|
|
299
|
-
* When breadcrumb info is changed dynamically, check if the currentBreadcrumbs is effected
|
|
300
|
-
* If effected, update the change and emit a new stream
|
|
301
|
-
*/
|
|
227
|
+
private readonly _dynamicBreadcrumbStore;
|
|
302
228
|
private _currentBreadcrumbs;
|
|
303
229
|
private _previousBreadcrumbs;
|
|
304
|
-
/**
|
|
305
|
-
* Breadcrumbs observable to be subscribed by BreadcrumbComponent
|
|
306
|
-
* Emits on every route change OR dynamic update of breadcrumb
|
|
307
|
-
*/
|
|
308
230
|
private _breadcrumbs;
|
|
231
|
+
private readonly _breadcrumbs$;
|
|
309
232
|
constructor();
|
|
310
233
|
get breadcrumbs$(): Observable<CmatBreadcrumbDefinition[]>;
|
|
311
|
-
ngOnDestroy(): void;
|
|
312
|
-
/**
|
|
313
|
-
* Update breadcrumb dynamically
|
|
314
|
-
*
|
|
315
|
-
* key can be a path | alias
|
|
316
|
-
*
|
|
317
|
-
* 1) Using complete route path. route can be passed the same way you define angular routes
|
|
318
|
-
* - path can be passed as 'exact path(routeLink)' or 'path with params(routeRegex)'
|
|
319
|
-
* - update label Ex: set('/mentor', 'Mentor'), set('/mentor/:id', 'Mentor Details')
|
|
320
|
-
* - change visibility Ex: set('/mentor/:id/edit', { skip: true })
|
|
321
|
-
* ------------------------------------------ OR ------------------------------------------
|
|
322
|
-
* 2) Using route alias (prefixed with '@'). alias should be unique for a route
|
|
323
|
-
* - update label Ex: set('@mentor', 'Enabler')
|
|
324
|
-
* - change visibility Ex: set('@mentorEdit', { skip: true })
|
|
325
|
-
*
|
|
326
|
-
*
|
|
327
|
-
* value can be string | BreadcrumbObject | BreadcrumbFunction
|
|
328
|
-
*/
|
|
329
234
|
set(key: string, breadcrumb: string | CmatBreadcrumbObject): void;
|
|
330
|
-
/**
|
|
331
|
-
* Whenever route changes build breadcrumb list again
|
|
332
|
-
*/
|
|
333
235
|
private _detectRouteChanges;
|
|
334
236
|
private _setupBreadcrumbs;
|
|
335
237
|
private _getRootBreadcrumb;
|
|
336
238
|
private _prepareBreadcrumbItem;
|
|
337
239
|
private _prepareBreadcrumbList;
|
|
338
240
|
private _getFromStore;
|
|
339
|
-
/**
|
|
340
|
-
* use exact match instead of regexp.test
|
|
341
|
-
* for /mentor/[^/]+ we should match '/mentor/12' but not '/mentor/12/abc'
|
|
342
|
-
*/
|
|
343
241
|
private _matchRegex;
|
|
344
|
-
/**
|
|
345
|
-
* if the path segment has route params, read the param value from url
|
|
346
|
-
* for each segment of route this gets called
|
|
347
|
-
*
|
|
348
|
-
* for mentor/:id/view - it gets called with mentor, :id, view 3 times
|
|
349
|
-
*/
|
|
350
242
|
private _resolvePathSegment;
|
|
351
|
-
/**
|
|
352
|
-
* queryParams & fragments for previous breadcrumb path are copied over to new list
|
|
353
|
-
*/
|
|
354
243
|
private _getQueryParamsFromPreviousList;
|
|
355
|
-
/**
|
|
356
|
-
* set current activated route query params to the last breadcrumb item
|
|
357
|
-
*/
|
|
358
244
|
private _setQueryParamsForActiveBreadcrumb;
|
|
359
|
-
/**
|
|
360
|
-
* For a specific route, breadcrumb can be defined either on parent OR it's child(which has empty path)
|
|
361
|
-
* When both are defined, child takes precedence
|
|
362
|
-
*
|
|
363
|
-
* Ex: Below we are setting breadcrumb on both parent and child.
|
|
364
|
-
* So, child takes precedence and "Defined On Child" is displayed for the route 'home'
|
|
365
|
-
* { path: 'home', loadChildren: './home/home.module#HomeModule' , data: {breadcrumb: "Defined On Module"}}
|
|
366
|
-
* AND
|
|
367
|
-
* children: [
|
|
368
|
-
* { path: '', component: ShowUserComponent, data: {breadcrumb: "Defined On Child" }
|
|
369
|
-
* ]
|
|
370
|
-
*/
|
|
371
245
|
private _parseRouteData;
|
|
372
|
-
/**
|
|
373
|
-
* get empty children of a module or Component. Empty child is the one with path: ''
|
|
374
|
-
* When parent and it's children (that has empty route path) define data merge them both with child taking precedence
|
|
375
|
-
*/
|
|
376
246
|
private _mergeWithBaseChildData;
|
|
377
|
-
/**
|
|
378
|
-
* Update the store to reuse for dynamic declarations
|
|
379
|
-
* If the store already has this route definition update it, else add
|
|
380
|
-
*/
|
|
381
247
|
private _updateStore;
|
|
382
|
-
/**
|
|
383
|
-
* If breadcrumb is present in current breadcrumbs update it and emit new stream
|
|
384
|
-
*/
|
|
385
248
|
private _updateCurrentBreadcrumbs;
|
|
386
|
-
/**
|
|
387
|
-
* For a route with path param, we create regex dynamically from angular route syntax
|
|
388
|
-
* '/mentor/:id' becomes '/mentor/[^/]',
|
|
389
|
-
* breadcrumbService.set('/mentor/:id', 'Uday') should update 'Uday' as label for '/mentor/2' OR 'mentor/ada'
|
|
390
|
-
*/
|
|
391
249
|
private _buildRegex;
|
|
392
250
|
private _ensureLeadingSlash;
|
|
393
|
-
/**
|
|
394
|
-
* In App's RouteConfig, breadcrumb can be defined as a string OR a function OR an object
|
|
395
|
-
*
|
|
396
|
-
* string: simple static breadcrumb label for a path
|
|
397
|
-
* function: callback that gets invoked with resolved path param
|
|
398
|
-
* object: additional data defined along with breadcrumb label that gets passed to *cmatBreadcrumbItem directive
|
|
399
|
-
*/
|
|
400
251
|
private _extractLabel;
|
|
401
252
|
private _extractObject;
|
|
253
|
+
private _publishCurrentBreadcrumbs;
|
|
402
254
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatBreadcrumbService, never>;
|
|
403
255
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatBreadcrumbService>;
|
|
404
256
|
}
|
|
405
257
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
itemTemplate:
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
* 默认标签与路由segment相同
|
|
419
|
-
*/
|
|
420
|
-
autoGenerate: boolean;
|
|
421
|
-
/**
|
|
422
|
-
* 默认情况下,查询参数将与breadcrumbs一起保留
|
|
423
|
-
*/
|
|
258
|
+
interface CmatBreadcrumbTemplateContext {
|
|
259
|
+
$implicit: string | undefined | CmatBreadcrumbFunction;
|
|
260
|
+
info: unknown;
|
|
261
|
+
last: boolean;
|
|
262
|
+
first: boolean;
|
|
263
|
+
index: number;
|
|
264
|
+
count: number;
|
|
265
|
+
}
|
|
266
|
+
declare class CmatBreadcrumbComponent {
|
|
267
|
+
itemTemplate: TemplateRef<CmatBreadcrumbTemplateContext> | null;
|
|
268
|
+
set autoGenerate(value: boolean);
|
|
269
|
+
get autoGenerate(): boolean;
|
|
424
270
|
preserveQueryParams: boolean;
|
|
425
|
-
/**
|
|
426
|
-
* 默认情况下,fragments参数将与breadcrumbs一起保留
|
|
427
|
-
*/
|
|
428
271
|
preserveFragment: boolean;
|
|
429
|
-
/**
|
|
430
|
-
* 可提供覆盖样式,增加特异性
|
|
431
|
-
*/
|
|
432
272
|
class: string;
|
|
433
|
-
/**
|
|
434
|
-
* anchorTarget = "_blank" 使breadcrumb链接在新选项卡中打开
|
|
435
|
-
*/
|
|
436
273
|
anchorTarget: '_blank' | void;
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
private
|
|
440
|
-
private
|
|
274
|
+
separatorTemplate: TemplateRef<void> | null;
|
|
275
|
+
readonly breadcrumbs: i0.Signal<CmatBreadcrumbDefinition[]>;
|
|
276
|
+
private readonly _breadcrumbService;
|
|
277
|
+
private readonly _autoGenerate;
|
|
278
|
+
private readonly _breadcrumbItems;
|
|
279
|
+
set separator(value: string | void);
|
|
441
280
|
get separator(): string | void;
|
|
442
|
-
|
|
443
|
-
* 面包屑分隔符, 默认'/'.
|
|
444
|
-
* 用户可以通过传递字符串或模板来自定义分隔符
|
|
445
|
-
*
|
|
446
|
-
* 字符串 --> Ex: <cmat-breadcrumb separator="-"></cmat-breadcrumb>
|
|
447
|
-
*
|
|
448
|
-
* 模板 --> Ex: <cmat-breadcrumb [separator]="separatorTemplate"></cmat-breadcrumb>
|
|
449
|
-
* <ng-template #separatorTemplate><mat-icon>arrow_right</mat-icon></ng-template>
|
|
450
|
-
*/
|
|
451
|
-
set separator(value: string | TemplateRef<void>);
|
|
452
|
-
ngOnInit(): void;
|
|
281
|
+
private _separator;
|
|
453
282
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatBreadcrumbComponent, never>;
|
|
454
283
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatBreadcrumbComponent, "cmat-breadcrumb", ["cmatBreadcrumb"], { "autoGenerate": { "alias": "autoGenerate"; "required": false; }; "preserveQueryParams": { "alias": "preserveQueryParams"; "required": false; }; "preserveFragment": { "alias": "preserveFragment"; "required": false; }; "class": { "alias": "class"; "required": false; }; "anchorTarget": { "alias": "anchorTarget"; "required": false; }; "separator": { "alias": "separator"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
|
|
455
284
|
}
|
|
@@ -469,17 +298,8 @@ declare class CmatCardComponent implements OnChanges {
|
|
|
469
298
|
}
|
|
470
299
|
|
|
471
300
|
interface CmatCarouselResponsiveOptions {
|
|
472
|
-
/**
|
|
473
|
-
* 响应模式的断点。
|
|
474
|
-
*/
|
|
475
301
|
breakpoint: string;
|
|
476
|
-
/**
|
|
477
|
-
* 断点上可见项目的数量。
|
|
478
|
-
*/
|
|
479
302
|
numVisible: number;
|
|
480
|
-
/**
|
|
481
|
-
* 断点上滚动的项目数。
|
|
482
|
-
*/
|
|
483
303
|
numScroll: number;
|
|
484
304
|
}
|
|
485
305
|
interface CmatCarouselPageEvent {
|
|
@@ -492,17 +312,8 @@ interface CmatCarouselTemplates {
|
|
|
492
312
|
}): TemplateRef<{
|
|
493
313
|
$implicit: any;
|
|
494
314
|
}>;
|
|
495
|
-
/**
|
|
496
|
-
* previousicon自定义模板。
|
|
497
|
-
*/
|
|
498
315
|
previousicon(): TemplateRef<any>;
|
|
499
|
-
/**
|
|
500
|
-
* nexticon自定义模板。
|
|
501
|
-
*/
|
|
502
316
|
nexticon(): TemplateRef<any>;
|
|
503
|
-
/**
|
|
504
|
-
* footer自定义模板。
|
|
505
|
-
*/
|
|
506
317
|
footer(): TemplateRef<any>;
|
|
507
318
|
}
|
|
508
319
|
|
|
@@ -525,7 +336,7 @@ declare class CmatCarouselTemplateDirective {
|
|
|
525
336
|
declare class CmatCarouselComponent implements AfterContentInit, OnChanges, AfterContentChecked, OnDestroy {
|
|
526
337
|
el: ElementRef<any>;
|
|
527
338
|
zone: NgZone;
|
|
528
|
-
|
|
339
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
529
340
|
private renderer;
|
|
530
341
|
private _document;
|
|
531
342
|
get page(): number;
|
|
@@ -654,7 +465,7 @@ declare class CmatCascadeListComponent implements MatFormFieldControl<any>, OnDe
|
|
|
654
465
|
private _overlay;
|
|
655
466
|
private _breakpointObserver;
|
|
656
467
|
private _bottomSheet;
|
|
657
|
-
private
|
|
468
|
+
private readonly _destroyRef;
|
|
658
469
|
id: string;
|
|
659
470
|
options: CmatCascadeOptionsInterface[];
|
|
660
471
|
clearable: boolean;
|
|
@@ -673,7 +484,7 @@ declare class CmatCascadeListComponent implements MatFormFieldControl<any>, OnDe
|
|
|
673
484
|
focused: boolean;
|
|
674
485
|
touched: boolean;
|
|
675
486
|
controlType: string;
|
|
676
|
-
|
|
487
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
677
488
|
constructor();
|
|
678
489
|
private _touchUi;
|
|
679
490
|
get touchUi(): boolean;
|
|
@@ -740,7 +551,8 @@ declare class CmatChipInputComponent implements MatFormFieldControl<any>, Contro
|
|
|
740
551
|
separatorKey: string;
|
|
741
552
|
inputControl: FormControl<string | null>;
|
|
742
553
|
filteredOptions$: Observable<string[] | null>;
|
|
743
|
-
|
|
554
|
+
private _selectedOptions;
|
|
555
|
+
readonly selectedOptions$: Observable<any[]>;
|
|
744
556
|
separatorKeysCodes: number[];
|
|
745
557
|
readonly stateChanges: Subject<void>;
|
|
746
558
|
focused: boolean;
|
|
@@ -748,7 +560,7 @@ declare class CmatChipInputComponent implements MatFormFieldControl<any>, Contro
|
|
|
748
560
|
controlType: string;
|
|
749
561
|
autocompleteOptionActive: boolean;
|
|
750
562
|
private readonly _maxFilteredItems;
|
|
751
|
-
private
|
|
563
|
+
private readonly _destroyRef;
|
|
752
564
|
constructor();
|
|
753
565
|
ngOnDestroy(): void;
|
|
754
566
|
get placeholder(): string;
|
|
@@ -785,6 +597,20 @@ declare class CmatChipInputComponent implements MatFormFieldControl<any>, Contro
|
|
|
785
597
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatChipInputComponent, "cmat-chip-input", ["cmatChipInput"], { "id": { "alias": "id"; "required": false; }; "selectableOptions": { "alias": "selectableOptions"; "required": false; }; "hasAutocomplete": { "alias": "hasAutocomplete"; "required": false; }; "outputIsString": { "alias": "outputIsString"; "required": false; }; "separatorKey": { "alias": "separatorKey"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
786
598
|
}
|
|
787
599
|
|
|
600
|
+
declare class CmatCodeEditorComponent {
|
|
601
|
+
value: string;
|
|
602
|
+
language: string;
|
|
603
|
+
height: string;
|
|
604
|
+
readOnly: boolean;
|
|
605
|
+
options: any;
|
|
606
|
+
private readonly _document;
|
|
607
|
+
get model(): NgxEditorModel;
|
|
608
|
+
get editorOptions(): any;
|
|
609
|
+
private get _isDarkTheme();
|
|
610
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatCodeEditorComponent, never>;
|
|
611
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatCodeEditorComponent, "cmat-code-editor", never, { "value": { "alias": "value"; "required": false; }; "language": { "alias": "language"; "required": false; }; "height": { "alias": "height"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
612
|
+
}
|
|
613
|
+
|
|
788
614
|
declare function addonsExtension(field: FormlyFieldConfig): void;
|
|
789
615
|
|
|
790
616
|
declare class CmatAddonsWrapperComponent extends FieldWrapper implements AfterViewInit {
|
|
@@ -857,7 +683,7 @@ interface ChipsCascadeProps extends CustomFormFieldProps {
|
|
|
857
683
|
value?: string;
|
|
858
684
|
};
|
|
859
685
|
}
|
|
860
|
-
declare class CmatCascadeTypeComponent extends FieldType<FieldTypeConfig<ChipsCascadeProps>> implements OnInit
|
|
686
|
+
declare class CmatCascadeTypeComponent extends FieldType<FieldTypeConfig<ChipsCascadeProps>> implements OnInit {
|
|
861
687
|
defaultOptions: {
|
|
862
688
|
props: {
|
|
863
689
|
clearable: boolean;
|
|
@@ -866,14 +692,13 @@ declare class CmatCascadeTypeComponent extends FieldType<FieldTypeConfig<ChipsCa
|
|
|
866
692
|
};
|
|
867
693
|
};
|
|
868
694
|
urlData: [];
|
|
869
|
-
isHandSet: boolean
|
|
695
|
+
readonly isHandSet: i0.WritableSignal<boolean>;
|
|
696
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
870
697
|
private _http;
|
|
871
|
-
private _changeDetectorRef;
|
|
872
698
|
private _cmatMediaWatcherService;
|
|
873
|
-
private
|
|
699
|
+
private readonly _destroyRef;
|
|
874
700
|
constructor();
|
|
875
701
|
ngOnInit(): void;
|
|
876
|
-
ngOnDestroy(): void;
|
|
877
702
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatCascadeTypeComponent, never>;
|
|
878
703
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatCascadeTypeComponent, "cmat-cascade-type", never, {}, {}, never, never, true, never>;
|
|
879
704
|
}
|
|
@@ -888,7 +713,7 @@ interface CheckListProps extends CustomFormFieldProps {
|
|
|
888
713
|
value?: string;
|
|
889
714
|
};
|
|
890
715
|
}
|
|
891
|
-
declare class CmatCheckListTypeComponent extends FieldType<FieldTypeConfig<CheckListProps>> implements OnInit
|
|
716
|
+
declare class CmatCheckListTypeComponent extends FieldType<FieldTypeConfig<CheckListProps>> implements OnInit {
|
|
892
717
|
isIndeterminate: boolean;
|
|
893
718
|
isChecked: boolean;
|
|
894
719
|
urlData: [];
|
|
@@ -896,13 +721,13 @@ declare class CmatCheckListTypeComponent extends FieldType<FieldTypeConfig<Check
|
|
|
896
721
|
checklist: any[];
|
|
897
722
|
filteredData: any[];
|
|
898
723
|
private _http;
|
|
724
|
+
private readonly _destroyRef;
|
|
899
725
|
private _filteredItems;
|
|
900
|
-
private
|
|
726
|
+
private readonly _filteredItems$;
|
|
901
727
|
constructor();
|
|
902
728
|
get filteredItems$(): Observable<any[] | null>;
|
|
903
729
|
get datas(): any[];
|
|
904
730
|
ngOnInit(): void;
|
|
905
|
-
ngOnDestroy(): void;
|
|
906
731
|
trackByFn(index: number, item: any): any;
|
|
907
732
|
filterByQuery(event: any): void;
|
|
908
733
|
toggleCheckList(data: any, event: any): void;
|
|
@@ -923,14 +748,13 @@ interface ChipsInputProps extends CustomFormFieldProps {
|
|
|
923
748
|
value?: string;
|
|
924
749
|
};
|
|
925
750
|
}
|
|
926
|
-
declare class CmatChipsInputTypeComponent extends FieldType<FieldTypeConfig<ChipsInputProps>> implements OnInit
|
|
751
|
+
declare class CmatChipsInputTypeComponent extends FieldType<FieldTypeConfig<ChipsInputProps>> implements OnInit {
|
|
927
752
|
autocompleteUrlData: [];
|
|
928
753
|
private _http;
|
|
929
|
-
private
|
|
754
|
+
private readonly _destroyRef;
|
|
930
755
|
constructor();
|
|
931
756
|
get autocompleteText(): string[];
|
|
932
757
|
ngOnInit(): void;
|
|
933
|
-
ngOnDestroy(): void;
|
|
934
758
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatChipsInputTypeComponent, never>;
|
|
935
759
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatChipsInputTypeComponent, "cmat-chips-input-type", never, {}, {}, never, never, true, never>;
|
|
936
760
|
}
|
|
@@ -967,7 +791,7 @@ interface DatepickerProps extends CustomFormFieldProps {
|
|
|
967
791
|
twelvehour: boolean;
|
|
968
792
|
timeInput: boolean;
|
|
969
793
|
}
|
|
970
|
-
declare class CmatDatepickerTypeComponent extends FieldType<FieldTypeConfig<DatepickerProps>> implements OnInit
|
|
794
|
+
declare class CmatDatepickerTypeComponent extends FieldType<FieldTypeConfig<DatepickerProps>> implements OnInit {
|
|
971
795
|
defaultOptions: {
|
|
972
796
|
props: {
|
|
973
797
|
startView: "month";
|
|
@@ -981,13 +805,11 @@ declare class CmatDatepickerTypeComponent extends FieldType<FieldTypeConfig<Date
|
|
|
981
805
|
twelvehour: boolean;
|
|
982
806
|
};
|
|
983
807
|
};
|
|
984
|
-
isHandSet: boolean
|
|
985
|
-
private _changeDetectorRef;
|
|
808
|
+
readonly isHandSet: i0.WritableSignal<boolean>;
|
|
986
809
|
private _cmatMediaWatcherService;
|
|
987
|
-
private
|
|
810
|
+
private readonly _destroyRef;
|
|
988
811
|
constructor();
|
|
989
812
|
ngOnInit(): void;
|
|
990
|
-
ngOnDestroy(): void;
|
|
991
813
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatepickerTypeComponent, never>;
|
|
992
814
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatepickerTypeComponent, "cmat-datepicker-type", never, {}, {}, never, never, true, never>;
|
|
993
815
|
}
|
|
@@ -1004,7 +826,7 @@ interface MultiCheckboxProps extends CustomFormFieldProps {
|
|
|
1004
826
|
interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {
|
|
1005
827
|
type: 'multicheckbox' | Type$2<CmatMultiCheckboxTypeComponent>;
|
|
1006
828
|
}
|
|
1007
|
-
declare class CmatMultiCheckboxTypeComponent extends FieldType<FieldTypeConfig<MultiCheckboxProps>> implements OnInit
|
|
829
|
+
declare class CmatMultiCheckboxTypeComponent extends FieldType<FieldTypeConfig<MultiCheckboxProps>> implements OnInit {
|
|
1008
830
|
checkboxes: QueryList<MatCheckbox>;
|
|
1009
831
|
defaultOptions: {
|
|
1010
832
|
props: {
|
|
@@ -1015,13 +837,13 @@ declare class CmatMultiCheckboxTypeComponent extends FieldType<FieldTypeConfig<M
|
|
|
1015
837
|
};
|
|
1016
838
|
};
|
|
1017
839
|
private _http;
|
|
840
|
+
private readonly _destroyRef;
|
|
1018
841
|
private _urlData;
|
|
1019
|
-
private
|
|
842
|
+
private readonly _urlData$;
|
|
1020
843
|
constructor();
|
|
1021
844
|
get urlData$(): Observable<any[]>;
|
|
1022
845
|
onChange(value: any, checked: boolean): void;
|
|
1023
846
|
ngOnInit(): void;
|
|
1024
|
-
ngOnDestroy(): void;
|
|
1025
847
|
isChecked(option: any): any;
|
|
1026
848
|
trackByFn(index: number): any;
|
|
1027
849
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatMultiCheckboxTypeComponent, never>;
|
|
@@ -1078,7 +900,7 @@ interface RadioProps extends CustomFormFieldProps {
|
|
|
1078
900
|
interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
|
|
1079
901
|
type: 'radio' | Type$2<CmatRadioTypeComponent>;
|
|
1080
902
|
}
|
|
1081
|
-
declare class CmatRadioTypeComponent extends FieldType<FieldTypeConfig<RadioProps>> implements OnInit, AfterViewInit
|
|
903
|
+
declare class CmatRadioTypeComponent extends FieldType<FieldTypeConfig<RadioProps>> implements OnInit, AfterViewInit {
|
|
1082
904
|
radioGroup: MatRadioGroup;
|
|
1083
905
|
defaultOptions: {
|
|
1084
906
|
props: {
|
|
@@ -1091,7 +913,8 @@ declare class CmatRadioTypeComponent extends FieldType<FieldTypeConfig<RadioProp
|
|
|
1091
913
|
private _http;
|
|
1092
914
|
private focusObserver;
|
|
1093
915
|
private _urlData;
|
|
1094
|
-
private
|
|
916
|
+
private readonly _destroyRef;
|
|
917
|
+
private readonly _urlData$;
|
|
1095
918
|
constructor();
|
|
1096
919
|
get urlData$(): Observable<any[]>;
|
|
1097
920
|
ngOnInit(): void;
|
|
@@ -1144,12 +967,11 @@ declare class CmatSelectTypeComponent extends FieldType<FieldTypeConfig<SelectPr
|
|
|
1144
967
|
isChecked: boolean;
|
|
1145
968
|
multiFilterCtrl: FormControl;
|
|
1146
969
|
private _http;
|
|
970
|
+
private readonly _destroyRef;
|
|
1147
971
|
private _urlData;
|
|
1148
|
-
private _unsubscribeAll;
|
|
1149
972
|
constructor();
|
|
1150
973
|
get datas(): any[];
|
|
1151
974
|
ngOnInit(): void;
|
|
1152
|
-
ngOnDestroy(): void;
|
|
1153
975
|
getAriaLabelledby(): string;
|
|
1154
976
|
getAriaLabel(): string;
|
|
1155
977
|
toggleSelectAll(selectAllValue: boolean): void;
|
|
@@ -1186,12 +1008,11 @@ declare class CmatSelectTreeTypeComponent extends FieldType$1<FieldTypeConfig<Se
|
|
|
1186
1008
|
};
|
|
1187
1009
|
};
|
|
1188
1010
|
urlData: [];
|
|
1011
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1189
1012
|
private _http;
|
|
1190
|
-
private
|
|
1191
|
-
private _unsubscribeAll;
|
|
1013
|
+
private readonly _destroyRef;
|
|
1192
1014
|
constructor();
|
|
1193
1015
|
ngOnInit(): void;
|
|
1194
|
-
ngOnDestroy(): void;
|
|
1195
1016
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTreeTypeComponent, never>;
|
|
1196
1017
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTreeTypeComponent, "cmat-select-tree-type", never, {}, {}, never, never, true, never>;
|
|
1197
1018
|
}
|
|
@@ -1218,12 +1039,11 @@ declare class CmatSelectTableTypeComponent extends FieldType$1<FieldTypeConfig<S
|
|
|
1218
1039
|
};
|
|
1219
1040
|
};
|
|
1220
1041
|
urlData: CmatSelectTableDataSource$1<CmatSelectTableRow$1>;
|
|
1042
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1221
1043
|
private _http;
|
|
1222
|
-
private
|
|
1223
|
-
private _unsubscribeAll;
|
|
1044
|
+
private readonly _destroyRef;
|
|
1224
1045
|
constructor();
|
|
1225
1046
|
ngOnInit(): void;
|
|
1226
|
-
ngOnDestroy(): void;
|
|
1227
1047
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTableTypeComponent, never>;
|
|
1228
1048
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTableTypeComponent, "cmat-select-table-type", never, {}, {}, never, never, true, never>;
|
|
1229
1049
|
}
|
|
@@ -1261,13 +1081,13 @@ declare class CmatTableTypeComponent extends FieldArrayType<FieldTypeConfig<Tabl
|
|
|
1261
1081
|
label: string;
|
|
1262
1082
|
}[];
|
|
1263
1083
|
displayedColumns: string[];
|
|
1084
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1264
1085
|
dialogType: 'add' | 'edit' | '';
|
|
1265
1086
|
defaultOptions: {
|
|
1266
1087
|
props: {
|
|
1267
1088
|
addText: string;
|
|
1268
1089
|
};
|
|
1269
1090
|
};
|
|
1270
|
-
private _changeDetectorRef;
|
|
1271
1091
|
private readonly _dialog;
|
|
1272
1092
|
private readonly _viewContainerRef;
|
|
1273
1093
|
private _dialogRef;
|
|
@@ -1296,23 +1116,23 @@ interface TagsProps extends CustomFormFieldProps {
|
|
|
1296
1116
|
value?: string;
|
|
1297
1117
|
};
|
|
1298
1118
|
}
|
|
1299
|
-
declare class CmatTagsTypeComponent extends FieldType<FieldTypeConfig<TagsProps>> implements OnInit
|
|
1119
|
+
declare class CmatTagsTypeComponent extends FieldType<FieldTypeConfig<TagsProps>> implements OnInit {
|
|
1300
1120
|
private _tagsPanelOrigin;
|
|
1301
1121
|
private _tagsPanel;
|
|
1302
1122
|
urlData: [];
|
|
1303
1123
|
optionsData: any[];
|
|
1124
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1304
1125
|
private _http;
|
|
1305
1126
|
private _overlay;
|
|
1306
1127
|
private _viewContainerRef;
|
|
1307
|
-
private
|
|
1128
|
+
private readonly _destroyRef;
|
|
1308
1129
|
private _filteredItems;
|
|
1130
|
+
private readonly _filteredItems$;
|
|
1309
1131
|
private _tagsPanelOverlayRef;
|
|
1310
|
-
private _unsubscribeAll;
|
|
1311
1132
|
constructor();
|
|
1312
1133
|
get filteredItems$(): Observable<any[] | null>;
|
|
1313
1134
|
get tags(): any[];
|
|
1314
1135
|
ngOnInit(): void;
|
|
1315
|
-
ngOnDestroy(): void;
|
|
1316
1136
|
openTagsPanel(): void;
|
|
1317
1137
|
filterTags(event: any): void;
|
|
1318
1138
|
toggleTag(tag: any): void;
|
|
@@ -1378,15 +1198,14 @@ declare class CmatQuillTypeComponent extends FieldType<FieldTypeConfig<QuillProp
|
|
|
1378
1198
|
};
|
|
1379
1199
|
};
|
|
1380
1200
|
baseGroup: UntypedFormGroup;
|
|
1201
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1381
1202
|
private _fileService;
|
|
1382
1203
|
private _urlStateConfigService;
|
|
1383
|
-
private
|
|
1204
|
+
private readonly _destroyRef;
|
|
1384
1205
|
private _editorInstance;
|
|
1385
1206
|
private _imgIds;
|
|
1386
1207
|
private _config;
|
|
1387
|
-
private _unsubscribeAll;
|
|
1388
1208
|
constructor();
|
|
1389
|
-
ngOnDestroy(): void;
|
|
1390
1209
|
ngAfterViewInit(): void;
|
|
1391
1210
|
fileChangeEvent(file: any): void;
|
|
1392
1211
|
editorCreated(editorInstance: any): void;
|
|
@@ -1482,12 +1301,12 @@ declare class CmatDateRangeComponent implements ControlValueAccessor, OnInit, On
|
|
|
1482
1301
|
month1: Dayjs | null;
|
|
1483
1302
|
month2: Dayjs | null;
|
|
1484
1303
|
};
|
|
1304
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1485
1305
|
setWhichDate: 'start' | 'end';
|
|
1486
1306
|
startTimeFormControl: FormControl;
|
|
1487
1307
|
endTimeFormControl: FormControl;
|
|
1488
1308
|
private _overlay;
|
|
1489
1309
|
private _viewContainerRef;
|
|
1490
|
-
private _changeDetectorRef;
|
|
1491
1310
|
private _dateFormat;
|
|
1492
1311
|
private _onChange;
|
|
1493
1312
|
private _onTouched;
|
|
@@ -1497,111 +1316,50 @@ declare class CmatDateRangeComponent implements ControlValueAccessor, OnInit, On
|
|
|
1497
1316
|
private _timeRange;
|
|
1498
1317
|
private _readonly;
|
|
1499
1318
|
private readonly _timeRegExp;
|
|
1500
|
-
private _unsubscribeAll;
|
|
1501
1319
|
constructor();
|
|
1502
1320
|
get readonly(): boolean;
|
|
1503
1321
|
set readonly(value: boolean);
|
|
1504
1322
|
get dateFormat(): string;
|
|
1505
1323
|
set dateFormat(value: string);
|
|
1506
|
-
/**
|
|
1507
|
-
* Setter & getter for timeFormat input */
|
|
1508
1324
|
get timeFormat(): string;
|
|
1509
1325
|
set timeFormat(value: string);
|
|
1510
|
-
/**
|
|
1511
|
-
* Setter & getter for timeRange input */
|
|
1512
1326
|
get timeRange(): boolean;
|
|
1513
1327
|
set timeRange(value: boolean);
|
|
1514
|
-
/**
|
|
1515
|
-
* Setter & getter for range input */
|
|
1516
1328
|
get range(): any;
|
|
1517
1329
|
set range(value: any);
|
|
1518
|
-
/**
|
|
1519
|
-
* Update the form model on change
|
|
1520
|
-
*
|
|
1521
|
-
* @param fn
|
|
1522
|
-
*/
|
|
1523
1330
|
registerOnChange(fn: any): void;
|
|
1524
|
-
/**
|
|
1525
|
-
* Update the form model on blur
|
|
1526
|
-
*
|
|
1527
|
-
* @param fn
|
|
1528
|
-
*/
|
|
1529
1331
|
registerOnTouched(fn: any): void;
|
|
1530
|
-
/**
|
|
1531
|
-
* Write to view from model when the form model changes programmatically
|
|
1532
|
-
*
|
|
1533
|
-
* @param range
|
|
1534
|
-
*/
|
|
1535
1332
|
writeValue(range: {
|
|
1536
1333
|
start: string;
|
|
1537
1334
|
end: string;
|
|
1538
1335
|
}): void;
|
|
1539
1336
|
ngOnInit(): void;
|
|
1540
|
-
/**
|
|
1541
|
-
* On destroy
|
|
1542
|
-
*/
|
|
1543
1337
|
ngOnDestroy(): void;
|
|
1544
|
-
/**
|
|
1545
|
-
* Open the picker panel
|
|
1546
|
-
*/
|
|
1547
1338
|
openPickerPanel(): void;
|
|
1548
|
-
/**
|
|
1549
|
-
* Get month label
|
|
1550
|
-
*
|
|
1551
|
-
* @param month
|
|
1552
|
-
*/
|
|
1553
1339
|
getMonthLabel(month: number): string | void;
|
|
1554
|
-
/**
|
|
1555
|
-
* Date class function to add/remove class names to calendar days
|
|
1556
|
-
*/
|
|
1557
1340
|
dateClass(): any;
|
|
1558
|
-
/**
|
|
1559
|
-
* Date filter to enable/disable calendar days
|
|
1560
|
-
*/
|
|
1561
1341
|
dateFilter(): any;
|
|
1562
|
-
/**
|
|
1563
|
-
* On selected date change
|
|
1564
|
-
*
|
|
1565
|
-
* @param date
|
|
1566
|
-
*/
|
|
1567
1342
|
onSelectedDateChange(date: Dayjs): void;
|
|
1568
|
-
/**
|
|
1569
|
-
* Go to previous month on both views
|
|
1570
|
-
*/
|
|
1571
1343
|
prev(): void;
|
|
1572
|
-
/**
|
|
1573
|
-
* Go to next month on both views
|
|
1574
|
-
*/
|
|
1575
1344
|
next(): void;
|
|
1576
|
-
/**
|
|
1577
|
-
* Update the start time
|
|
1578
|
-
*
|
|
1579
|
-
* @param event
|
|
1580
|
-
*/
|
|
1581
1345
|
updateStartTime(event: any): void;
|
|
1582
|
-
/**
|
|
1583
|
-
* Update the end time
|
|
1584
|
-
*
|
|
1585
|
-
* @param event
|
|
1586
|
-
*/
|
|
1587
1346
|
updateEndTime(event: any): void;
|
|
1588
|
-
/**
|
|
1589
|
-
* Initialize
|
|
1590
|
-
*
|
|
1591
|
-
* @private
|
|
1592
|
-
*/
|
|
1593
1347
|
private _init;
|
|
1594
|
-
/**
|
|
1595
|
-
* Parse the time from the inputs
|
|
1596
|
-
*
|
|
1597
|
-
* @param value
|
|
1598
|
-
* @private
|
|
1599
|
-
*/
|
|
1600
1348
|
private _parseTime;
|
|
1601
1349
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDateRangeComponent, never>;
|
|
1602
1350
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDateRangeComponent, "cmat-date-range", ["cmatDateRange"], { "controlClass": { "alias": "controlClass"; "required": false; }; "initData": { "alias": "initData"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "timeFormat": { "alias": "timeFormat"; "required": false; }; "timeRange": { "alias": "timeRange"; "required": false; }; "range": { "alias": "range"; "required": false; }; }, { "rangeChanged": "rangeChanged"; }, never, never, true, never>;
|
|
1603
1351
|
}
|
|
1604
1352
|
|
|
1353
|
+
declare class CmatDateTimeDisplayComponent {
|
|
1354
|
+
value: string | number | Date | null | undefined;
|
|
1355
|
+
format: string;
|
|
1356
|
+
timezone: string;
|
|
1357
|
+
prefix: string;
|
|
1358
|
+
emptyText: string;
|
|
1359
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDateTimeDisplayComponent, never>;
|
|
1360
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDateTimeDisplayComponent, "cmat-date-time-display", never, { "value": { "alias": "value"; "required": false; }; "format": { "alias": "format"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; }, {}, never, never, true, never>;
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1605
1363
|
type CmatDrawerMode = 'over' | 'side';
|
|
1606
1364
|
type CmatDrawerPosition = 'left' | 'right';
|
|
1607
1365
|
|
|
@@ -1619,6 +1377,7 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
1619
1377
|
readonly modeChanged: EventEmitter<CmatDrawerMode>;
|
|
1620
1378
|
readonly openedChanged: EventEmitter<boolean>;
|
|
1621
1379
|
readonly positionChanged: EventEmitter<CmatDrawerPosition>;
|
|
1380
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
1622
1381
|
private _elementRef;
|
|
1623
1382
|
private _renderer2;
|
|
1624
1383
|
private _cmatDrawerService;
|
|
@@ -1626,7 +1385,6 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
1626
1385
|
private _hovered;
|
|
1627
1386
|
private _overlay;
|
|
1628
1387
|
private _overlayClickDestroyFn;
|
|
1629
|
-
private _changeDetectorRef;
|
|
1630
1388
|
get classList(): any;
|
|
1631
1389
|
get styleList(): any;
|
|
1632
1390
|
onMouseenter(): void;
|
|
@@ -1637,36 +1395,10 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
1637
1395
|
open(): void;
|
|
1638
1396
|
close(): void;
|
|
1639
1397
|
toggle(): void;
|
|
1640
|
-
/**
|
|
1641
|
-
* Enable the animations
|
|
1642
|
-
*
|
|
1643
|
-
* @private
|
|
1644
|
-
*/
|
|
1645
1398
|
private _enableAnimations;
|
|
1646
|
-
/**
|
|
1647
|
-
* Disable the animations
|
|
1648
|
-
*
|
|
1649
|
-
* @private
|
|
1650
|
-
*/
|
|
1651
1399
|
private _disableAnimations;
|
|
1652
|
-
/**
|
|
1653
|
-
* Show the backdrop
|
|
1654
|
-
*
|
|
1655
|
-
* @private
|
|
1656
|
-
*/
|
|
1657
1400
|
private _showOverlay;
|
|
1658
|
-
/**
|
|
1659
|
-
* Hide the backdrop
|
|
1660
|
-
*
|
|
1661
|
-
* @private
|
|
1662
|
-
*/
|
|
1663
1401
|
private _hideOverlay;
|
|
1664
|
-
/**
|
|
1665
|
-
* Open/close the drawer
|
|
1666
|
-
*
|
|
1667
|
-
* @param open
|
|
1668
|
-
* @private
|
|
1669
|
-
*/
|
|
1670
1402
|
private _toggleOpened;
|
|
1671
1403
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDrawerComponent, never>;
|
|
1672
1404
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDrawerComponent, "cmat-drawer", ["cmatDrawer"], { "fixed": { "alias": "fixed"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "position": { "alias": "position"; "required": false; }; "transparentOverlay": { "alias": "transparentOverlay"; "required": false; }; }, { "fixedChanged": "fixedChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "positionChanged": "positionChanged"; }, never, ["*"], true, never>;
|
|
@@ -1674,232 +1406,70 @@ declare class CmatDrawerComponent implements OnChanges, OnInit, OnDestroy {
|
|
|
1674
1406
|
|
|
1675
1407
|
declare class CmatDrawerService {
|
|
1676
1408
|
private _componentRegistry;
|
|
1677
|
-
/**
|
|
1678
|
-
* Register drawer component
|
|
1679
|
-
*
|
|
1680
|
-
* @param name
|
|
1681
|
-
* @param component
|
|
1682
|
-
*/
|
|
1683
1409
|
registerComponent(name: string, component: CmatDrawerComponent): void;
|
|
1684
|
-
/**
|
|
1685
|
-
* Deregister drawer component
|
|
1686
|
-
*
|
|
1687
|
-
* @param name
|
|
1688
|
-
*/
|
|
1689
1410
|
deregisterComponent(name: string): void;
|
|
1690
|
-
/**
|
|
1691
|
-
* Get drawer component from the registry
|
|
1692
|
-
*
|
|
1693
|
-
* @param name
|
|
1694
|
-
*/
|
|
1695
1411
|
getComponent(name: string): CmatDrawerComponent | void;
|
|
1696
1412
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDrawerService, never>;
|
|
1697
1413
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatDrawerService>;
|
|
1698
1414
|
}
|
|
1699
1415
|
|
|
1700
1416
|
declare class CmatEmptyStateComponent {
|
|
1701
|
-
/**
|
|
1702
|
-
* 图标名称。
|
|
1703
|
-
*/
|
|
1704
1417
|
icon: string;
|
|
1705
|
-
/**
|
|
1706
|
-
* 标题。
|
|
1707
|
-
*/
|
|
1708
1418
|
title: string;
|
|
1709
|
-
/**
|
|
1710
|
-
* 说明文字。
|
|
1711
|
-
*/
|
|
1712
1419
|
description: string;
|
|
1713
|
-
/**
|
|
1714
|
-
* 按钮文字。
|
|
1715
|
-
*/
|
|
1716
1420
|
ctaLabel: string;
|
|
1717
|
-
/**
|
|
1718
|
-
* 按钮是否禁用。
|
|
1719
|
-
*/
|
|
1720
1421
|
ctaDisabled: boolean;
|
|
1721
|
-
/**
|
|
1722
|
-
* 点击按钮事件。
|
|
1723
|
-
*/
|
|
1724
1422
|
ctaClick: EventEmitter<void>;
|
|
1725
|
-
/**
|
|
1726
|
-
* 触发操作。
|
|
1727
|
-
*/
|
|
1728
1423
|
emitAction(): void;
|
|
1729
1424
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatEmptyStateComponent, never>;
|
|
1730
1425
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatEmptyStateComponent, "cmat-empty-state", never, { "icon": { "alias": "icon"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "ctaLabel": { "alias": "ctaLabel"; "required": false; }; "ctaDisabled": { "alias": "ctaDisabled"; "required": false; }; }, { "ctaClick": "ctaClick"; }, never, never, true, never>;
|
|
1731
1426
|
}
|
|
1732
1427
|
|
|
1733
|
-
declare class
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1428
|
+
declare class CmatFilePreviewComponent {
|
|
1429
|
+
name: string;
|
|
1430
|
+
description: string;
|
|
1431
|
+
fileType: string;
|
|
1432
|
+
size: string;
|
|
1433
|
+
src: any;
|
|
1434
|
+
previewImage: boolean;
|
|
1435
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFilePreviewComponent, never>;
|
|
1436
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFilePreviewComponent, "cmat-file-preview", never, { "name": { "alias": "name"; "required": false; }; "description": { "alias": "description"; "required": false; }; "fileType": { "alias": "fileType"; "required": false; }; "size": { "alias": "size"; "required": false; }; "src": { "alias": "src"; "required": false; }; "previewImage": { "alias": "previewImage"; "required": false; }; }, {}, never, never, true, never>;
|
|
1740
1437
|
}
|
|
1741
1438
|
|
|
1742
|
-
declare class CmatFilterToolbarComponent implements OnInit
|
|
1743
|
-
/**
|
|
1744
|
-
* 标题。
|
|
1745
|
-
*/
|
|
1439
|
+
declare class CmatFilterToolbarComponent implements OnInit {
|
|
1746
1440
|
title: string;
|
|
1747
|
-
/**
|
|
1748
|
-
* 说明文字。
|
|
1749
|
-
*/
|
|
1750
1441
|
description: string;
|
|
1751
|
-
/**
|
|
1752
|
-
* 搜索框占位符。
|
|
1753
|
-
*/
|
|
1754
1442
|
searchPlaceholder: string;
|
|
1755
|
-
/**
|
|
1756
|
-
* 是否显示搜索框。
|
|
1757
|
-
*/
|
|
1758
1443
|
showSearch: boolean;
|
|
1759
|
-
/**
|
|
1760
|
-
* 当前搜索内容。
|
|
1761
|
-
*/
|
|
1762
1444
|
searchText: string;
|
|
1763
|
-
/**
|
|
1764
|
-
* 是否允许清空搜索内容。
|
|
1765
|
-
*/
|
|
1766
1445
|
clearable: boolean;
|
|
1767
|
-
/**
|
|
1768
|
-
* 搜索内容变化事件。
|
|
1769
|
-
*/
|
|
1770
1446
|
searchTextChange: EventEmitter<string>;
|
|
1771
|
-
/**
|
|
1772
|
-
* 清空事件。
|
|
1773
|
-
*/
|
|
1774
1447
|
clear: EventEmitter<void>;
|
|
1775
|
-
/**
|
|
1776
|
-
* 搜索提交事件。
|
|
1777
|
-
*/
|
|
1778
1448
|
searchSubmit: EventEmitter<string>;
|
|
1779
1449
|
hostClass: string;
|
|
1780
1450
|
searchControl: FormControl<string | null>;
|
|
1781
|
-
private readonly
|
|
1782
|
-
/**
|
|
1783
|
-
* 初始化搜索联动。
|
|
1784
|
-
*/
|
|
1451
|
+
private readonly _destroyRef;
|
|
1785
1452
|
ngOnInit(): void;
|
|
1786
|
-
/**
|
|
1787
|
-
* 释放订阅。
|
|
1788
|
-
*/
|
|
1789
|
-
ngOnDestroy(): void;
|
|
1790
|
-
/**
|
|
1791
|
-
* 提交搜索。
|
|
1792
|
-
*/
|
|
1793
1453
|
submitSearch(): void;
|
|
1794
|
-
/**
|
|
1795
|
-
* 清空搜索。
|
|
1796
|
-
*/
|
|
1797
1454
|
clearSearch(): void;
|
|
1798
1455
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFilterToolbarComponent, never>;
|
|
1799
1456
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFilterToolbarComponent, "cmat-filter-toolbar", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "searchText": { "alias": "searchText"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; }, { "searchTextChange": "searchTextChange"; "clear": "clear"; "searchSubmit": "searchSubmit"; }, never, ["[cmatFilterToolbarActions]"], true, never>;
|
|
1800
1457
|
}
|
|
1801
1458
|
|
|
1802
|
-
declare class
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
/**
|
|
1808
|
-
* 文件描述。
|
|
1809
|
-
*/
|
|
1810
|
-
description: string;
|
|
1811
|
-
/**
|
|
1812
|
-
* 文件类型。
|
|
1813
|
-
*/
|
|
1814
|
-
fileType: string;
|
|
1815
|
-
/**
|
|
1816
|
-
* 文件大小。
|
|
1817
|
-
*/
|
|
1818
|
-
size: string;
|
|
1819
|
-
/**
|
|
1820
|
-
* 预览地址。
|
|
1821
|
-
*/
|
|
1822
|
-
src: any;
|
|
1823
|
-
/**
|
|
1824
|
-
* 是否预览图片。
|
|
1825
|
-
*/
|
|
1826
|
-
previewImage: boolean;
|
|
1827
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFilePreviewComponent, never>;
|
|
1828
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFilePreviewComponent, "cmat-file-preview", never, { "name": { "alias": "name"; "required": false; }; "description": { "alias": "description"; "required": false; }; "fileType": { "alias": "fileType"; "required": false; }; "size": { "alias": "size"; "required": false; }; "src": { "alias": "src"; "required": false; }; "previewImage": { "alias": "previewImage"; "required": false; }; }, {}, never, never, true, never>;
|
|
1829
|
-
}
|
|
1830
|
-
|
|
1831
|
-
declare class CmatInlineLoadingComponent {
|
|
1832
|
-
/**
|
|
1833
|
-
* 说明文字。
|
|
1834
|
-
*/
|
|
1835
|
-
message: string;
|
|
1836
|
-
/**
|
|
1837
|
-
* 圆环大小。
|
|
1838
|
-
*/
|
|
1839
|
-
diameter: number;
|
|
1840
|
-
/**
|
|
1841
|
-
* 是否显示文字。
|
|
1842
|
-
*/
|
|
1843
|
-
showText: boolean;
|
|
1844
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatInlineLoadingComponent, never>;
|
|
1845
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatInlineLoadingComponent, "cmat-inline-loading", never, { "message": { "alias": "message"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; }, {}, never, never, true, never>;
|
|
1846
|
-
}
|
|
1847
|
-
|
|
1848
|
-
declare class CmatCodeEditorComponent {
|
|
1849
|
-
/**
|
|
1850
|
-
* 编辑器内容。
|
|
1851
|
-
*/
|
|
1852
|
-
value: string;
|
|
1853
|
-
/**
|
|
1854
|
-
* 编程语言。
|
|
1855
|
-
*/
|
|
1856
|
-
language: string;
|
|
1857
|
-
/**
|
|
1858
|
-
* 编辑器高度。
|
|
1859
|
-
*/
|
|
1860
|
-
height: string;
|
|
1861
|
-
/**
|
|
1862
|
-
* 是否只读。
|
|
1863
|
-
*/
|
|
1864
|
-
readOnly: boolean;
|
|
1865
|
-
/**
|
|
1866
|
-
* 编辑器配置。
|
|
1867
|
-
*/
|
|
1868
|
-
options: any;
|
|
1869
|
-
private readonly _document;
|
|
1870
|
-
/**
|
|
1871
|
-
* Monaco 模型。
|
|
1872
|
-
*/
|
|
1873
|
-
get model(): NgxEditorModel;
|
|
1874
|
-
get editorOptions(): any;
|
|
1875
|
-
private get _isDarkTheme();
|
|
1876
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatCodeEditorComponent, never>;
|
|
1877
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatCodeEditorComponent, "cmat-code-editor", never, { "value": { "alias": "value"; "required": false; }; "language": { "alias": "language"; "required": false; }; "height": { "alias": "height"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
1459
|
+
declare class CmatFormActionsComponent {
|
|
1460
|
+
align: 'start' | 'center' | 'end';
|
|
1461
|
+
divider: boolean;
|
|
1462
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFormActionsComponent, never>;
|
|
1463
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFormActionsComponent, "cmat-form-actions", never, { "align": { "alias": "align"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["[cmatFormActionsLeft]", "[cmatFormActions]"], true, never>;
|
|
1878
1464
|
}
|
|
1879
1465
|
|
|
1880
|
-
declare class
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
*/
|
|
1888
|
-
format: string;
|
|
1889
|
-
/**
|
|
1890
|
-
* 时区。
|
|
1891
|
-
*/
|
|
1892
|
-
timezone: string;
|
|
1893
|
-
/**
|
|
1894
|
-
* 前缀文字。
|
|
1895
|
-
*/
|
|
1896
|
-
prefix: string;
|
|
1897
|
-
/**
|
|
1898
|
-
* 无值占位文字。
|
|
1899
|
-
*/
|
|
1900
|
-
emptyText: string;
|
|
1901
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDateTimeDisplayComponent, never>;
|
|
1902
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDateTimeDisplayComponent, "cmat-date-time-display", never, { "value": { "alias": "value"; "required": false; }; "format": { "alias": "format"; "required": false; }; "timezone": { "alias": "timezone"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "emptyText": { "alias": "emptyText"; "required": false; }; }, {}, never, never, true, never>;
|
|
1466
|
+
declare class CmatFullscreenComponent {
|
|
1467
|
+
iconTpl: TemplateRef<any>;
|
|
1468
|
+
tooltip: string;
|
|
1469
|
+
private _document;
|
|
1470
|
+
toggleFullscreen(): void;
|
|
1471
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFullscreenComponent, never>;
|
|
1472
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFullscreenComponent, "cmat-fullscreen", ["cmatFullscreen"], { "iconTpl": { "alias": "iconTpl"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; }, {}, never, never, true, never>;
|
|
1903
1473
|
}
|
|
1904
1474
|
|
|
1905
1475
|
declare class CmatHighlightComponent implements OnChanges, AfterViewInit {
|
|
@@ -1937,31 +1507,18 @@ declare class CmatImageComponent {
|
|
|
1937
1507
|
width: number | undefined;
|
|
1938
1508
|
height: number | undefined;
|
|
1939
1509
|
loading: 'lazy' | 'eager' | undefined;
|
|
1940
|
-
/**
|
|
1941
|
-
* 要附加对话框的目标元素,有效值是“body”或另一个元素的本地ng模板变量(注意:使用带括号的绑定来绑定模板变量,例如[appedTo]=“mydiv”用于变量名为#mydiv的div元素)。
|
|
1942
|
-
*/
|
|
1943
1510
|
appendTo: HTMLElement | ElementRef | TemplateRef<any> | string | null | undefined;
|
|
1944
|
-
/**
|
|
1945
|
-
* 启动预览功能。
|
|
1946
|
-
*/
|
|
1947
1511
|
preview: boolean;
|
|
1948
|
-
/**
|
|
1949
|
-
* 监听预览显示/隐藏.
|
|
1950
|
-
*/
|
|
1951
1512
|
previewShowChange: EventEmitter<boolean>;
|
|
1952
|
-
/**
|
|
1953
|
-
* 如果加载图像文件时发生错误,则会触发此事件.
|
|
1954
|
-
*/
|
|
1955
1513
|
imageErrorEvent: EventEmitter<Event>;
|
|
1956
1514
|
el: ElementRef<any>;
|
|
1957
|
-
maskVisible: boolean
|
|
1958
|
-
previewVisible: boolean
|
|
1515
|
+
readonly maskVisible: i0.WritableSignal<boolean>;
|
|
1516
|
+
readonly previewVisible: i0.WritableSignal<boolean>;
|
|
1959
1517
|
rotate: number;
|
|
1960
1518
|
scale: number;
|
|
1961
1519
|
private _loadingPreview;
|
|
1962
1520
|
private _closePreviewByEscape;
|
|
1963
1521
|
private _document;
|
|
1964
|
-
private _changeDetectorRef;
|
|
1965
1522
|
private _originalOverflow;
|
|
1966
1523
|
private _zoomSettings;
|
|
1967
1524
|
get isZoomOutDisabled(): boolean;
|
|
@@ -1994,6 +1551,14 @@ declare class CmatImageComponent {
|
|
|
1994
1551
|
static ngAcceptInputType_preview: unknown;
|
|
1995
1552
|
}
|
|
1996
1553
|
|
|
1554
|
+
declare class CmatInlineLoadingComponent {
|
|
1555
|
+
message: string;
|
|
1556
|
+
diameter: number;
|
|
1557
|
+
showText: boolean;
|
|
1558
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatInlineLoadingComponent, never>;
|
|
1559
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatInlineLoadingComponent, "cmat-inline-loading", never, { "message": { "alias": "message"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "showText": { "alias": "showText"; "required": false; }; }, {}, never, never, true, never>;
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1997
1562
|
declare class CmatJsonEditorComponent implements OnInit, OnChanges, OnDestroy {
|
|
1998
1563
|
options: any;
|
|
1999
1564
|
data: any;
|
|
@@ -2005,7 +1570,6 @@ declare class CmatJsonEditorComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
2005
1570
|
private _jsonEditorContainer?;
|
|
2006
1571
|
private _destroyed;
|
|
2007
1572
|
private readonly _document;
|
|
2008
|
-
private _changeDetectorRef;
|
|
2009
1573
|
get darkTheme(): boolean;
|
|
2010
1574
|
private get _isDarkTheme();
|
|
2011
1575
|
set jsonEditorContainer(value: ElementRef | undefined);
|
|
@@ -2049,10 +1613,10 @@ declare class CmatKnobInputComponent implements MatFormFieldControl<any>, OnDest
|
|
|
2049
1613
|
readonly stateChanges: Subject<void>;
|
|
2050
1614
|
focused: boolean;
|
|
2051
1615
|
touched: boolean;
|
|
1616
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
2052
1617
|
ngControl: NgControl;
|
|
2053
1618
|
private _document;
|
|
2054
1619
|
private _renderer;
|
|
2055
|
-
private _changeDetectorRef;
|
|
2056
1620
|
private _el;
|
|
2057
1621
|
constructor();
|
|
2058
1622
|
ngOnDestroy(): void;
|
|
@@ -2071,7 +1635,7 @@ declare class CmatKnobInputComponent implements MatFormFieldControl<any>, OnDest
|
|
|
2071
1635
|
get disabled(): boolean;
|
|
2072
1636
|
set disabled(value: BooleanInput);
|
|
2073
1637
|
protected _disabled: boolean;
|
|
2074
|
-
onKeyDown(event:
|
|
1638
|
+
onKeyDown(event: Event): void;
|
|
2075
1639
|
onMouseDown(event: MouseEvent): void;
|
|
2076
1640
|
onMouseUp(event: MouseEvent): void;
|
|
2077
1641
|
onTouchStart(event: TouchEvent): void;
|
|
@@ -2119,8 +1683,7 @@ declare class CmatMasonryComponent implements OnChanges, AfterViewInit {
|
|
|
2119
1683
|
columnsTemplate: TemplateRef<any>;
|
|
2120
1684
|
columns: number;
|
|
2121
1685
|
items: any[];
|
|
2122
|
-
distributedColumns: MasonryColumn[]
|
|
2123
|
-
private _changeDetectorRef;
|
|
1686
|
+
readonly distributedColumns: i0.WritableSignal<MasonryColumn[]>;
|
|
2124
1687
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2125
1688
|
ngAfterViewInit(): void;
|
|
2126
1689
|
private _distributeItems;
|
|
@@ -2140,10 +1703,9 @@ declare class CmatMaterialColorPickerComponent implements ControlValueAccessor {
|
|
|
2140
1703
|
palettes: string[];
|
|
2141
1704
|
hues: string[];
|
|
2142
1705
|
view: string;
|
|
2143
|
-
selectedColor: CmatSelectedColor
|
|
1706
|
+
readonly selectedColor: i0.WritableSignal<CmatSelectedColor>;
|
|
2144
1707
|
selectedPalette: string;
|
|
2145
1708
|
selectedHue: string;
|
|
2146
|
-
private _changeDetectorRef;
|
|
2147
1709
|
private _color;
|
|
2148
1710
|
private _title;
|
|
2149
1711
|
private _readonly;
|
|
@@ -2175,17 +1737,11 @@ declare enum CmatDatetimepickerFilterType {
|
|
|
2175
1737
|
MINUTE = 2
|
|
2176
1738
|
}
|
|
2177
1739
|
|
|
2178
|
-
/** Possible types for datetimepicker. */
|
|
2179
1740
|
type CmatDatetimepickerType = 'date' | 'time' | 'month' | 'year' | 'datetime';
|
|
2180
|
-
/** Possible views for datetimepicker calendar. */
|
|
2181
1741
|
type CmatCalendarView = 'clock' | 'month' | 'year' | 'multi-year';
|
|
2182
|
-
/** Possible types for AM / PM */
|
|
2183
1742
|
type CmatAMPM = 'AM' | 'PM';
|
|
2184
|
-
/** Possible modes for datetimepicker dropdown display. */
|
|
2185
1743
|
type CmatDatetimepickerMode = 'auto' | 'portrait' | 'landscape';
|
|
2186
|
-
/** Possible positions for the datetimepicker dropdown along the X axis. */
|
|
2187
1744
|
type DatetimepickerDropdownPositionX = 'start' | 'end';
|
|
2188
|
-
/** Possible positions for the datetimepicker dropdown along the Y axis. */
|
|
2189
1745
|
type DatetimepickerDropdownPositionY = 'above' | 'below';
|
|
2190
1746
|
type CmatClockView = 'hour' | 'minute';
|
|
2191
1747
|
|
|
@@ -2193,24 +1749,17 @@ declare const CLOCK_RADIUS = 50;
|
|
|
2193
1749
|
declare const CLOCK_INNER_RADIUS = 27.5;
|
|
2194
1750
|
declare const CLOCK_OUTER_RADIUS = 41.25;
|
|
2195
1751
|
declare const CLOCK_TICK_RADIUS = 7.0833;
|
|
2196
|
-
/**
|
|
2197
|
-
* A clock that is used as part of the datepicker.
|
|
2198
|
-
*/
|
|
2199
1752
|
declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit {
|
|
2200
1753
|
userSelection: EventEmitter<void>;
|
|
2201
|
-
/** A function used to filter which dates are selectable. */
|
|
2202
1754
|
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
2203
1755
|
interval: number;
|
|
2204
1756
|
twelvehour: boolean;
|
|
2205
|
-
/** Emits when the currently selected date changes. */
|
|
2206
1757
|
selectedChange: EventEmitter<D>;
|
|
2207
1758
|
activeDateChange: EventEmitter<D>;
|
|
2208
1759
|
role: string;
|
|
2209
1760
|
class: string;
|
|
2210
|
-
/** Hours and Minutes representing the clock view. */
|
|
2211
1761
|
hours: any[];
|
|
2212
1762
|
minutes: any[];
|
|
2213
|
-
/** Whether the clock is in hour view. */
|
|
2214
1763
|
hourView: boolean;
|
|
2215
1764
|
selectedHour: number;
|
|
2216
1765
|
selectedMinute: number;
|
|
@@ -2224,58 +1773,35 @@ declare class CmatDatetimepickerClockComponent<D> implements AfterContentInit {
|
|
|
2224
1773
|
private _minDate;
|
|
2225
1774
|
private _maxDate;
|
|
2226
1775
|
constructor();
|
|
2227
|
-
/**
|
|
2228
|
-
* The date to display in this clock view.
|
|
2229
|
-
*/
|
|
2230
1776
|
get activeDate(): D;
|
|
2231
1777
|
set activeDate(value: D);
|
|
2232
|
-
/** The currently selected date. */
|
|
2233
1778
|
get selected(): D | null;
|
|
2234
1779
|
set selected(value: D | null);
|
|
2235
|
-
/** The minimum selectable date. */
|
|
2236
1780
|
get minDate(): D | null;
|
|
2237
1781
|
set minDate(value: D | null);
|
|
2238
|
-
/** The maximum selectable date. */
|
|
2239
1782
|
get maxDate(): D | null;
|
|
2240
1783
|
set maxDate(value: D | null);
|
|
2241
|
-
/** Whether the clock should be started in hour or minute view. */
|
|
2242
1784
|
set startView(value: CmatClockView);
|
|
2243
1785
|
get hand(): any;
|
|
2244
|
-
/** Handles mousedown events on the clock body. */
|
|
2245
1786
|
handleMousedown(event: MouseEvent): void;
|
|
2246
1787
|
ngAfterContentInit(): void;
|
|
2247
1788
|
handleMousemove(event: any): void;
|
|
2248
1789
|
handleMouseup(): void;
|
|
2249
|
-
/** Initializes this clock view. */
|
|
2250
1790
|
private _init;
|
|
2251
|
-
/**
|
|
2252
|
-
* Set Time
|
|
2253
|
-
*
|
|
2254
|
-
* @param event
|
|
2255
|
-
*/
|
|
2256
1791
|
private _setTime;
|
|
2257
1792
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerClockComponent<any>, never>;
|
|
2258
1793
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerClockComponent<any>, "cmat-datetimepicker-clock", ["cmatDatetimepickerClock"], { "dateFilter": { "alias": "dateFilter"; "required": false; }; "interval": { "alias": "interval"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; "activeDateChange": "activeDateChange"; }, never, never, true, never>;
|
|
2259
1794
|
}
|
|
2260
1795
|
|
|
2261
|
-
/**
|
|
2262
|
-
* A calendar that is used as part of the datepicker.
|
|
2263
|
-
*/
|
|
2264
1796
|
declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit, OnDestroy {
|
|
2265
1797
|
userSelection: EventEmitter<void>;
|
|
2266
|
-
/** Active multi year view when click on year. */
|
|
2267
1798
|
multiYearSelector: boolean;
|
|
2268
|
-
/** Whether the calendar should be started in month or year view. */
|
|
2269
1799
|
startView: CmatCalendarView;
|
|
2270
1800
|
twelvehour: boolean;
|
|
2271
1801
|
timeInterval: number;
|
|
2272
|
-
/** A function used to filter which dates are selectable. */
|
|
2273
1802
|
dateFilter: (date: D, type: CmatDatetimepickerFilterType) => boolean;
|
|
2274
|
-
/** Prevent user to select same date time */
|
|
2275
1803
|
preventSameDateTimeSelection: boolean;
|
|
2276
|
-
/** Emits when the currently selected date changes. */
|
|
2277
1804
|
selectedChange: EventEmitter<D>;
|
|
2278
|
-
/** Emits when the view has been changed. **/
|
|
2279
1805
|
viewChanged: EventEmitter<CmatCalendarView>;
|
|
2280
1806
|
class: string;
|
|
2281
1807
|
label: string;
|
|
@@ -2283,13 +1809,12 @@ declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit
|
|
|
2283
1809
|
tabindex: number;
|
|
2284
1810
|
AMPM: CmatAMPM;
|
|
2285
1811
|
clockView: CmatClockView;
|
|
2286
|
-
calendarState: string
|
|
2287
|
-
|
|
1812
|
+
readonly calendarState: i0.WritableSignal<string>;
|
|
1813
|
+
readonly intlVersion: i0.WritableSignal<number>;
|
|
2288
1814
|
private _elementRef;
|
|
2289
1815
|
private _intl;
|
|
2290
1816
|
private _adapter;
|
|
2291
1817
|
private _dateFormats;
|
|
2292
|
-
private _changeDetectorRef;
|
|
2293
1818
|
private _currentView;
|
|
2294
1819
|
private _intlChanges;
|
|
2295
1820
|
private _clampedActiveDate;
|
|
@@ -2303,34 +1828,20 @@ declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit
|
|
|
2303
1828
|
constructor();
|
|
2304
1829
|
get type(): CmatDatetimepickerType;
|
|
2305
1830
|
set type(value: CmatDatetimepickerType);
|
|
2306
|
-
/** A date representing the period (month or year) to start the calendar in. */
|
|
2307
1831
|
get startAt(): D | null;
|
|
2308
1832
|
set startAt(value: D | null);
|
|
2309
|
-
/**
|
|
2310
|
-
* Whether the calendar is in time mode. In time mode the calendar clock gets time input elements rather then just clock
|
|
2311
|
-
*
|
|
2312
|
-
* When touchUi is enabled this will be disabled
|
|
2313
|
-
*/
|
|
2314
1833
|
get timeInput(): boolean;
|
|
2315
1834
|
set timeInput(value: boolean);
|
|
2316
|
-
/** The currently selected date. */
|
|
2317
1835
|
get selected(): D | null;
|
|
2318
1836
|
set selected(value: D | null);
|
|
2319
|
-
/** The minimum selectable date. */
|
|
2320
1837
|
get minDate(): D | null;
|
|
2321
1838
|
set minDate(value: D | null);
|
|
2322
|
-
/** The maximum selectable date. */
|
|
2323
1839
|
get maxDate(): D | null;
|
|
2324
1840
|
set maxDate(value: D | null);
|
|
2325
|
-
/**
|
|
2326
|
-
* The current active date. This determines which time period is shown and which date is
|
|
2327
|
-
* highlighted when using keyboard navigation.
|
|
2328
|
-
*/
|
|
2329
1841
|
get activeDate(): D;
|
|
2330
1842
|
set activeDate(value: D);
|
|
2331
1843
|
get currentView(): CmatCalendarView;
|
|
2332
1844
|
set currentView(view: CmatCalendarView);
|
|
2333
|
-
/** The label for the current calendar view. */
|
|
2334
1845
|
get yearButtonText(): string;
|
|
2335
1846
|
get yearPeriodText(): string;
|
|
2336
1847
|
get yearButtonLabel(): string;
|
|
@@ -2343,16 +1854,12 @@ declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit
|
|
|
2343
1854
|
get prevButtonLabel(): string;
|
|
2344
1855
|
get nextButtonLabel(): string;
|
|
2345
1856
|
handleCalendarBodyKeydown(event: KeyboardEvent): void;
|
|
2346
|
-
/** Date filter for the month and year views. */
|
|
2347
1857
|
dateFilterForViews: (date: D) => boolean;
|
|
2348
1858
|
userSelected(): void;
|
|
2349
1859
|
ngAfterContentInit(): void;
|
|
2350
1860
|
ngOnDestroy(): void;
|
|
2351
|
-
/** Handles date selection in the month view. */
|
|
2352
1861
|
dateSelected(date: D): void;
|
|
2353
|
-
/** Handles month selection in the year view. */
|
|
2354
1862
|
monthSelected(month: D): void;
|
|
2355
|
-
/** Handles year selection in the multi year view. */
|
|
2356
1863
|
yearSelected(year: D): void;
|
|
2357
1864
|
timeSelected(date: D): void;
|
|
2358
1865
|
dialTimeSelected(date: D): void;
|
|
@@ -2364,35 +1871,18 @@ declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit
|
|
|
2364
1871
|
dateClicked(): void;
|
|
2365
1872
|
hoursClicked(): void;
|
|
2366
1873
|
minutesClicked(): void;
|
|
2367
|
-
/** Handles user clicks on the previous button. */
|
|
2368
1874
|
previousClicked(): void;
|
|
2369
|
-
/** Handles user clicks on the next button. */
|
|
2370
1875
|
nextClicked(): void;
|
|
2371
|
-
/** Whether the previous period button is enabled. */
|
|
2372
1876
|
previousEnabled(): boolean;
|
|
2373
|
-
/** Whether the next period button is enabled. */
|
|
2374
1877
|
nextEnabled(): boolean;
|
|
2375
1878
|
focusActiveCell(): void;
|
|
2376
1879
|
calendarStateDone(event: AnimationEvent): void;
|
|
2377
|
-
/** Whether the two dates represent the same view in the current view mode (month or year). */
|
|
2378
1880
|
private _isSameView;
|
|
2379
|
-
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
2380
1881
|
private _handleCalendarBodyKeydownInMonthView;
|
|
2381
|
-
/** Handles keydown events on the calendar body when calendar is in year view. */
|
|
2382
1882
|
private _handleCalendarBodyKeydownInYearView;
|
|
2383
|
-
/** Handles keydown events on the calendar body when calendar is in multi-year view. */
|
|
2384
1883
|
private _handleCalendarBodyKeydownInMultiYearView;
|
|
2385
|
-
/** Handles keydown events on the calendar body when calendar is in month view. */
|
|
2386
1884
|
private _handleCalendarBodyKeydownInClockView;
|
|
2387
|
-
/**
|
|
2388
|
-
* Determine the date for the month that comes before the given month in the same column in the
|
|
2389
|
-
* calendar table.
|
|
2390
|
-
*/
|
|
2391
1885
|
private _prevMonthInSameCol;
|
|
2392
|
-
/**
|
|
2393
|
-
* Determine the date for the month that comes after the given month in the same column in the
|
|
2394
|
-
* calendar table.
|
|
2395
|
-
*/
|
|
2396
1886
|
private _nextMonthInSameCol;
|
|
2397
1887
|
private _changeCalendarState;
|
|
2398
1888
|
private _2digit;
|
|
@@ -2400,9 +1890,6 @@ declare class CmatDatetimepickerCalendarComponent<D> implements AfterContentInit
|
|
|
2400
1890
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerCalendarComponent<any>, "cmat-datetimepicker-calendar", ["cmatDatetimepickerCalendar"], { "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "type": { "alias": "type"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
2401
1891
|
}
|
|
2402
1892
|
|
|
2403
|
-
/**
|
|
2404
|
-
* An internal class that represents the data corresponding to a single calendar cell.
|
|
2405
|
-
*/
|
|
2406
1893
|
declare class CmatDatetimepickerCalendarCellComponent {
|
|
2407
1894
|
value: number;
|
|
2408
1895
|
displayValue: string;
|
|
@@ -2410,30 +1897,17 @@ declare class CmatDatetimepickerCalendarCellComponent {
|
|
|
2410
1897
|
enabled: boolean;
|
|
2411
1898
|
constructor(value: number, displayValue: string, ariaLabel: string, enabled: boolean);
|
|
2412
1899
|
}
|
|
2413
|
-
/**
|
|
2414
|
-
* An internal component used to display calendar data in a table.
|
|
2415
|
-
*/
|
|
2416
1900
|
declare class CmatDatetimepickerCalendarBodyComponent {
|
|
2417
|
-
/** The label for the table. (e.g. "Jan 2017"). */
|
|
2418
1901
|
label: string;
|
|
2419
|
-
/** The cells to display in the table. */
|
|
2420
1902
|
rows: CmatDatetimepickerCalendarCellComponent[][];
|
|
2421
|
-
/** The value in the table that corresponds to today. */
|
|
2422
1903
|
todayValue: number | null;
|
|
2423
|
-
/** The value in the table that is currently selected. */
|
|
2424
1904
|
selectedValue: number | null;
|
|
2425
|
-
/** The minimum number of free cells needed to fit the label in the first row. */
|
|
2426
1905
|
labelMinRequiredCells: number;
|
|
2427
|
-
/** The number of columns in the table. */
|
|
2428
1906
|
numCols: number;
|
|
2429
|
-
/** Whether to allow selection of disabled cells. */
|
|
2430
1907
|
allowDisabledSelection: boolean;
|
|
2431
|
-
/** The cell number of the active cell in the table. */
|
|
2432
1908
|
activeCell: number;
|
|
2433
|
-
/** Emits when a new value is selected. */
|
|
2434
1909
|
selectedValueChange: EventEmitter<number>;
|
|
2435
1910
|
class: string;
|
|
2436
|
-
/** The number of blank cells to put at the beginning for the first row. */
|
|
2437
1911
|
get _firstRowOffset(): number;
|
|
2438
1912
|
cellClicked(cell: CmatDatetimepickerCalendarCellComponent): void;
|
|
2439
1913
|
isActiveCell(rowIndex: number, colIndex: number): boolean;
|
|
@@ -2443,29 +1917,18 @@ declare class CmatDatetimepickerCalendarBodyComponent {
|
|
|
2443
1917
|
|
|
2444
1918
|
declare const CMAT_DATETIMEPICKER_VALUE_ACCESSOR: any;
|
|
2445
1919
|
declare const CMAT_DATETIMEPICKER_VALIDATORS: any;
|
|
2446
|
-
/**
|
|
2447
|
-
* An event used for datepicker input and change events. We don't always have access to a native
|
|
2448
|
-
* input or change event because the event may have been triggered by the user clicking on the
|
|
2449
|
-
* calendar popup. For consistency, we always use MatDatepickerInputEvent instead.
|
|
2450
|
-
*/
|
|
2451
1920
|
declare class CmatDatetimepickerInputEvent<D> {
|
|
2452
1921
|
target: CmatDatetimepickerInputDirective<D>;
|
|
2453
1922
|
targetElement: HTMLElement;
|
|
2454
|
-
/** The new value for the target datepicker input. */
|
|
2455
1923
|
value: D | null;
|
|
2456
1924
|
constructor(target: CmatDatetimepickerInputDirective<D>, targetElement: HTMLElement);
|
|
2457
1925
|
}
|
|
2458
|
-
/** Directive used to connect an input to a MatDatepicker. */
|
|
2459
1926
|
declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, ControlValueAccessor, OnDestroy, Validator {
|
|
2460
|
-
/** Emits when a `change` event is fired on this `<input>`. */
|
|
2461
1927
|
dateChange: EventEmitter<CmatDatetimepickerInputEvent<D>>;
|
|
2462
|
-
/** Emits when an `input` event is fired on this `<input>`. */
|
|
2463
1928
|
dateInput: EventEmitter<CmatDatetimepickerInputEvent<D>>;
|
|
2464
1929
|
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
2465
1930
|
dateFilter: (date: D | null, type: CmatDatetimepickerFilterType) => boolean;
|
|
2466
|
-
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
2467
1931
|
valueChange: EventEmitter<D | null>;
|
|
2468
|
-
/** Emits when the disabled state has changed */
|
|
2469
1932
|
disabledChange: EventEmitter<boolean>;
|
|
2470
1933
|
private _elementRef;
|
|
2471
1934
|
private _dateAdapter;
|
|
@@ -2473,39 +1936,27 @@ declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, C
|
|
|
2473
1936
|
private _formField;
|
|
2474
1937
|
private _datepickerSubscription;
|
|
2475
1938
|
private _localeSubscription;
|
|
2476
|
-
/** Whether the last value set on the input was valid. */
|
|
2477
1939
|
private _lastValueValid;
|
|
2478
1940
|
private _value;
|
|
2479
1941
|
private _min;
|
|
2480
1942
|
private _max;
|
|
2481
1943
|
private _disabled;
|
|
2482
1944
|
constructor();
|
|
2483
|
-
/** The datepicker that this input is associated with. */
|
|
2484
1945
|
set cmatDatetimepicker(value: CmatDatetimepickerComponent<D>);
|
|
2485
1946
|
set cmatDatepickerFilter(filter: (date: D | null, type: CmatDatetimepickerFilterType) => boolean);
|
|
2486
|
-
/** The value of the input. */
|
|
2487
1947
|
get value(): D | null;
|
|
2488
1948
|
set value(value: D | null);
|
|
2489
|
-
/** The minimum valid date. */
|
|
2490
1949
|
get min(): D | null;
|
|
2491
1950
|
set min(value: D | null);
|
|
2492
|
-
/** The maximum valid date. */
|
|
2493
1951
|
get max(): D | null;
|
|
2494
1952
|
set max(value: D | null);
|
|
2495
|
-
/** Whether the datepicker-input is disabled. */
|
|
2496
1953
|
get disabled(): boolean;
|
|
2497
1954
|
set disabled(value: any);
|
|
2498
1955
|
ngAfterContentInit(): void;
|
|
2499
1956
|
ngOnDestroy(): void;
|
|
2500
1957
|
registerOnValidatorChange(fn: VoidFunction): void;
|
|
2501
1958
|
validate(c: AbstractControl): ValidationErrors | null;
|
|
2502
|
-
/**
|
|
2503
|
-
* Gets the element that the datepicker popup should be connected to.
|
|
2504
|
-
*
|
|
2505
|
-
* @return The element to connect the popup to.
|
|
2506
|
-
*/
|
|
2507
1959
|
getConnectedOverlayOrigin(): ElementRef;
|
|
2508
|
-
/** Gets the ID of an element that should be used a description for the calendar overlay. */
|
|
2509
1960
|
getOverlayLabelId(): string | null;
|
|
2510
1961
|
writeValue(value: D): void;
|
|
2511
1962
|
registerOnChange(fn: (value: any) => void): void;
|
|
@@ -2514,9 +1965,7 @@ declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, C
|
|
|
2514
1965
|
onKeydown(event: KeyboardEvent): void;
|
|
2515
1966
|
onInput(value: string): void;
|
|
2516
1967
|
onChange(): void;
|
|
2517
|
-
/** Handles blur events on the input. */
|
|
2518
1968
|
onBlur(): void;
|
|
2519
|
-
/** Returns the palette used by the input's form field, if any. */
|
|
2520
1969
|
getThemePalette(): ThemePalette;
|
|
2521
1970
|
private _registerDatetimepicker;
|
|
2522
1971
|
private _getDisplayFormat;
|
|
@@ -2524,23 +1973,16 @@ declare class CmatDatetimepickerInputDirective<D> implements AfterContentInit, C
|
|
|
2524
1973
|
private _onTouched;
|
|
2525
1974
|
private _cvaOnChange;
|
|
2526
1975
|
private _validatorOnChange;
|
|
2527
|
-
/** The form control validator for whether the input parses. */
|
|
2528
1976
|
private _parseValidator;
|
|
2529
|
-
/** The form control validator for the min date. */
|
|
2530
1977
|
private _minValidator;
|
|
2531
|
-
/** The form control validator for the max date. */
|
|
2532
1978
|
private _maxValidator;
|
|
2533
|
-
/** The form control validator for the date filter. */
|
|
2534
1979
|
private _filterValidator;
|
|
2535
|
-
/** The combined form control validator for this input. */
|
|
2536
1980
|
private _validator;
|
|
2537
|
-
/** Formats a value and sets it on the input element. */
|
|
2538
1981
|
private _formatValue;
|
|
2539
1982
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerInputDirective<any>, never>;
|
|
2540
1983
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDatetimepickerInputDirective<any>, "input[cmatDatetimepicker]", ["cmatDatepickerInput"], { "cmatDatetimepicker": { "alias": "cmatDatetimepicker"; "required": false; }; "cmatDatepickerFilter": { "alias": "cmatDatepickerFilter"; "required": false; }; "value": { "alias": "value"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "dateChange": "dateChange"; "dateInput": "dateInput"; }, never, never, true, never>;
|
|
2541
1984
|
}
|
|
2542
1985
|
|
|
2543
|
-
/** Injection token that determines the scroll handling while the calendar is open. */
|
|
2544
1986
|
declare const CMAT_DATETIMEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
2545
1987
|
declare function CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
2546
1988
|
declare const CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
@@ -2552,16 +1994,11 @@ declare class CmatDatetimepickerContentComponent<D> implements OnInit, AfterCont
|
|
|
2552
1994
|
_calendar: CmatDatetimepickerCalendarComponent<D>;
|
|
2553
1995
|
color: ThemePalette;
|
|
2554
1996
|
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
2555
|
-
/** Whether the datetimepicker is above or below the input. */
|
|
2556
1997
|
isAbove: boolean;
|
|
2557
|
-
|
|
2558
|
-
animationState: 'enter-dropdown' | 'enter-dialog' | 'leave';
|
|
2559
|
-
/** Emits when an animation has finished. */
|
|
1998
|
+
readonly animationState: i0.WritableSignal<"enter-dropdown" | "enter-dialog" | "leave">;
|
|
2560
1999
|
readonly animationDone: Subject<void>;
|
|
2561
|
-
/** Id of the label for the `role="dialog"` element. */
|
|
2562
2000
|
dialogLabelId: string | null;
|
|
2563
2001
|
protected _elementRef: ElementRef<any>;
|
|
2564
|
-
private _changeDetectorRef;
|
|
2565
2002
|
private _animationEndListener;
|
|
2566
2003
|
ngOnInit(): void;
|
|
2567
2004
|
ngAfterContentInit(): void;
|
|
@@ -2571,29 +2008,18 @@ declare class CmatDatetimepickerContentComponent<D> implements OnInit, AfterCont
|
|
|
2571
2008
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerContentComponent<any>, "cmat-datetimepicker-content", ["cmatDatetimepickerContent"], { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
2572
2009
|
}
|
|
2573
2010
|
declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
2574
|
-
/** The view that the calendar should start in. */
|
|
2575
2011
|
startView: CmatCalendarView;
|
|
2576
2012
|
mode: CmatDatetimepickerMode;
|
|
2577
2013
|
timeInterval: number;
|
|
2578
|
-
/** Prevent user to select same date time */
|
|
2579
2014
|
preventSameDateTimeSelection: boolean;
|
|
2580
|
-
/** Preferred position of the datetimepicker in the X axis. */
|
|
2581
2015
|
xPosition: DatetimepickerDropdownPositionX;
|
|
2582
|
-
/** Preferred position of the datetimepicker in the Y axis. */
|
|
2583
2016
|
yPosition: DatetimepickerDropdownPositionY;
|
|
2584
2017
|
selectedChanged: EventEmitter<D>;
|
|
2585
|
-
/** Emits when the datepicker has been opened. */
|
|
2586
2018
|
openedStream: EventEmitter<void>;
|
|
2587
|
-
/** Emits when the datepicker has been closed. */
|
|
2588
2019
|
closedStream: EventEmitter<void>;
|
|
2589
|
-
/** Emits when the view has been changed. **/
|
|
2590
2020
|
viewChanged: EventEmitter<CmatCalendarView>;
|
|
2591
|
-
/** Whether the calendar is open. */
|
|
2592
|
-
/** The id for the datepicker calendar. */
|
|
2593
2021
|
id: string;
|
|
2594
|
-
/** The input element this datepicker is associated with. */
|
|
2595
2022
|
datetimepickerInput: CmatDatetimepickerInputDirective<D>;
|
|
2596
|
-
/** Emits when the datepicker is disabled. */
|
|
2597
2023
|
disabledChange: Subject<boolean>;
|
|
2598
2024
|
private _overlay;
|
|
2599
2025
|
private _injector;
|
|
@@ -2603,13 +2029,9 @@ declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
2603
2029
|
private _dir;
|
|
2604
2030
|
private _document;
|
|
2605
2031
|
private _validSelected;
|
|
2606
|
-
/** A reference to the overlay into which we've rendered the calendar. */
|
|
2607
2032
|
private _overlayRef;
|
|
2608
|
-
/** Reference to the component instance rendered in the overlay. */
|
|
2609
2033
|
private _componentRef;
|
|
2610
|
-
/** The element that was focused before the datetimepicker was opened. */
|
|
2611
2034
|
private _focusedElementBeforeOpen;
|
|
2612
|
-
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
2613
2035
|
private _backdropHarnessClass;
|
|
2614
2036
|
private _inputStateChanges;
|
|
2615
2037
|
private _multiYearSelector;
|
|
@@ -2624,170 +2046,92 @@ declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
2624
2046
|
private _timeInput;
|
|
2625
2047
|
private _restoreFocus;
|
|
2626
2048
|
constructor();
|
|
2627
|
-
/** Whether to show multi-year view. */
|
|
2628
2049
|
get multiYearSelector(): boolean;
|
|
2629
2050
|
set multiYearSelector(value: boolean);
|
|
2630
|
-
/** Whether the clock uses 12 hour format. */
|
|
2631
2051
|
get twelvehour(): boolean;
|
|
2632
2052
|
set twelvehour(value: boolean);
|
|
2633
|
-
/**
|
|
2634
|
-
* Classes to be passed to the date picker panel.
|
|
2635
|
-
* Supports string and string array values, similar to `ngClass`.
|
|
2636
|
-
*/
|
|
2637
2053
|
get panelClass(): string | string[];
|
|
2638
2054
|
set panelClass(value: string | string[]);
|
|
2639
|
-
/** Whether the calendar is open. */
|
|
2640
2055
|
get opened(): boolean;
|
|
2641
2056
|
set opened(value: boolean);
|
|
2642
|
-
/** Color palette to use on the datetimepicker's calendar. */
|
|
2643
2057
|
get color(): ThemePalette;
|
|
2644
2058
|
set color(value: ThemePalette);
|
|
2645
|
-
/** The date to open the calendar to initially. */
|
|
2646
2059
|
get startAt(): D | null;
|
|
2647
2060
|
set startAt(date: D | null);
|
|
2648
2061
|
get type(): CmatDatetimepickerType;
|
|
2649
2062
|
set type(value: CmatDatetimepickerType);
|
|
2650
|
-
/**
|
|
2651
|
-
* Whether the calendar is in time mode. In time mode the calendar clock gets time input
|
|
2652
|
-
* elements rather then just clock. When `touchUi` is enabled this will be disabled.
|
|
2653
|
-
*/
|
|
2654
2063
|
get timeInput(): boolean;
|
|
2655
2064
|
set timeInput(value: boolean);
|
|
2656
|
-
/**
|
|
2657
|
-
* Whether the calendar UI is in touch mode. In touch mode the calendar opens in a dialog rather
|
|
2658
|
-
* than a popup and elements have more padding to allow for bigger touch targets.
|
|
2659
|
-
*/
|
|
2660
2065
|
get touchUi(): boolean;
|
|
2661
2066
|
set touchUi(value: boolean);
|
|
2662
|
-
/** Whether the datepicker pop-up should be disabled. */
|
|
2663
2067
|
get disabled(): boolean;
|
|
2664
2068
|
set disabled(value: boolean);
|
|
2665
|
-
/**
|
|
2666
|
-
* Whether to restore focus to the previously-focused element when the panel is closed.
|
|
2667
|
-
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
2668
|
-
* you provide your own equivalent, if you decide to turn it off.
|
|
2669
|
-
*/
|
|
2670
2069
|
get restoreFocus(): boolean;
|
|
2671
2070
|
set restoreFocus(value: boolean);
|
|
2672
|
-
/** The currently selected date. */
|
|
2673
2071
|
get selected(): D | null;
|
|
2674
2072
|
set selected(value: D | null);
|
|
2675
|
-
/** The minimum selectable date. */
|
|
2676
2073
|
get minDate(): D | null;
|
|
2677
|
-
/** The maximum selectable date. */
|
|
2678
2074
|
get maxDate(): D | null;
|
|
2679
2075
|
get dateFilter(): (date: D | null, type: CmatDatetimepickerFilterType) => boolean;
|
|
2680
2076
|
ngOnDestroy(): void;
|
|
2681
|
-
/**
|
|
2682
|
-
* Register an input with this datepicker.
|
|
2683
|
-
*
|
|
2684
|
-
* @param input The datepicker input to register with this datepicker.
|
|
2685
|
-
*/
|
|
2686
2077
|
registerInput(input: CmatDatetimepickerInputDirective<D>): void;
|
|
2687
|
-
/** Open the calendar. */
|
|
2688
2078
|
open(): void;
|
|
2689
|
-
/** Close the calendar. */
|
|
2690
2079
|
close(): void;
|
|
2691
|
-
/** Selects the given date */
|
|
2692
2080
|
select(date: D): void;
|
|
2693
2081
|
viewChange(type: CmatCalendarView): void;
|
|
2694
|
-
/**
|
|
2695
|
-
* relevant values from the datetimepicker to the
|
|
2696
|
-
* datetimepicker content inside the overlay.
|
|
2697
|
-
*/
|
|
2698
2082
|
private _forwardContentValues;
|
|
2699
|
-
/** Opens the overlay with the calendar. */
|
|
2700
2083
|
private _openOverlay;
|
|
2701
|
-
/** Destroys the current overlay. */
|
|
2702
2084
|
private _destroyOverlay;
|
|
2703
|
-
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
2704
2085
|
private _getDialogStrategy;
|
|
2705
|
-
/** Gets a position strategy that will open the calendar as a dropdown. */
|
|
2706
2086
|
private _getDropdownStrategy;
|
|
2707
|
-
/**
|
|
2708
|
-
* Sets the positions of the datetimepicker in dropdown mode based on the current configuration.
|
|
2709
|
-
*/
|
|
2710
2087
|
private _setConnectedPositions;
|
|
2711
|
-
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
2712
2088
|
private _getCloseStream;
|
|
2713
2089
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerComponent<any>, never>;
|
|
2714
2090
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerComponent<any>, "cmat-datetimepicker", ["cmatDatetimepicker"], { "startView": { "alias": "startView"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "color": { "alias": "color"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "type": { "alias": "type"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "touchUi": { "alias": "touchUi"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; }, { "selectedChanged": "selectedChanged"; "openedStream": "openedStream"; "closedStream": "closedStream"; "viewChanged": "viewChanged"; }, never, never, true, never>;
|
|
2715
2091
|
}
|
|
2716
2092
|
|
|
2717
2093
|
declare class CmatDatetimepickerIntl {
|
|
2718
|
-
/**
|
|
2719
|
-
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
2720
|
-
* changed after initialization.
|
|
2721
|
-
*/
|
|
2722
2094
|
readonly changes: Subject<void>;
|
|
2723
|
-
/** A label for the calendar popup (used by screen readers). */
|
|
2724
2095
|
calendarLabel: string;
|
|
2725
|
-
/** A label for the button used to open the calendar popup (used by screen readers). */
|
|
2726
2096
|
openCalendarLabel: string;
|
|
2727
|
-
/** Label for the button used to close the calendar popup. */
|
|
2728
2097
|
closeCalendarLabel: string;
|
|
2729
|
-
/** A label for the previous month button (used by screen readers). */
|
|
2730
2098
|
prevMonthLabel: string;
|
|
2731
|
-
/** A label for the next month button (used by screen readers). */
|
|
2732
2099
|
nextMonthLabel: string;
|
|
2733
|
-
/** A label for the previous year button (used by screen readers). */
|
|
2734
2100
|
prevYearLabel: string;
|
|
2735
|
-
/** A label for the next year button (used by screen readers). */
|
|
2736
2101
|
nextYearLabel: string;
|
|
2737
|
-
/** A label for the previous multi-year button (used by screen readers). */
|
|
2738
2102
|
prevMultiYearLabel: string;
|
|
2739
|
-
/** A label for the next multi-year button (used by screen readers). */
|
|
2740
2103
|
nextMultiYearLabel: string;
|
|
2741
|
-
/** A label for the 'switch to month view' button (used by screen readers). */
|
|
2742
2104
|
switchToMonthViewLabel: string;
|
|
2743
|
-
/** A label for the 'switch to year view' button (used by screen readers). */
|
|
2744
2105
|
switchToYearViewLabel: string;
|
|
2745
|
-
/** A label for the 'switch to multi-year view' button (used by screen readers). */
|
|
2746
2106
|
switchToMultiYearViewLabel: string;
|
|
2747
|
-
/** A label for the first date of a range of dates (used by screen readers). */
|
|
2748
2107
|
startDateLabel: string;
|
|
2749
|
-
/** A label for the last date of a range of dates (used by screen readers). */
|
|
2750
2108
|
endDateLabel: string;
|
|
2751
|
-
/** A label for the 'switch to clock hour view' button (used by screen readers). */
|
|
2752
2109
|
switchToClockHourViewLabel: string;
|
|
2753
|
-
/** A label for the 'switch to clock minute view' button (used by screen readers). */
|
|
2754
2110
|
switchToClockMinuteViewLabel: string;
|
|
2755
|
-
/** Label used for ok button within the manual time input. */
|
|
2756
2111
|
okLabel: string;
|
|
2757
|
-
/** Label used for cancel button within the manual time input. */
|
|
2758
2112
|
cancelLabel: string;
|
|
2759
|
-
/** Formats a range of years (used for visuals). */
|
|
2760
2113
|
formatYearRange(start: string, end: string): string;
|
|
2761
|
-
/** Formats a label for a range of years (used by screen readers). */
|
|
2762
2114
|
formatYearRangeLabel(start: string, end: string): string;
|
|
2763
2115
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerIntl, never>;
|
|
2764
2116
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatDatetimepickerIntl>;
|
|
2765
2117
|
}
|
|
2766
2118
|
|
|
2767
|
-
/** Can be used to override the icon of a `cmatDatetimepickerToggle`. */
|
|
2768
2119
|
declare class CmatDatetimepickerToggleIconDirective {
|
|
2769
2120
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerToggleIconDirective, never>;
|
|
2770
2121
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDatetimepickerToggleIconDirective, "[cmatDatetimepickerToggleIcon]", never, {}, {}, never, never, true, never>;
|
|
2771
2122
|
}
|
|
2772
2123
|
declare class CmatDatetimepickerToggleComponent<D> implements AfterContentInit, OnChanges, OnDestroy {
|
|
2773
|
-
/** Datepicker instance that the button will toggle. */
|
|
2774
2124
|
datetimepicker: CmatDatetimepickerComponent<D>;
|
|
2775
|
-
/** Tabindex for the toggle. */
|
|
2776
2125
|
tabIndex: number;
|
|
2777
|
-
/** Screen-reader label for the button. */
|
|
2778
2126
|
ariaLabel?: string;
|
|
2779
|
-
/** Whether ripples on the toggle should be disabled. */
|
|
2780
2127
|
disableRipple: boolean;
|
|
2781
|
-
/** Custom icon set by the consumer. */
|
|
2782
2128
|
customIcon: CmatDatetimepickerToggleIconDirective;
|
|
2783
|
-
/** Underlying button element. */
|
|
2784
2129
|
button: MatButton;
|
|
2785
2130
|
class: string;
|
|
2131
|
+
readonly refreshVersion: i0.WritableSignal<number>;
|
|
2786
2132
|
protected intl: CmatDatetimepickerIntl;
|
|
2787
2133
|
private _stateChanges;
|
|
2788
2134
|
private _disabled;
|
|
2789
|
-
private _changeDetectorRef;
|
|
2790
|
-
/** Whether the toggle button is disabled. */
|
|
2791
2135
|
get disabled(): boolean;
|
|
2792
2136
|
set disabled(value: boolean);
|
|
2793
2137
|
ngOnChanges(changes: SimpleChanges): void;
|
|
@@ -2799,119 +2143,71 @@ declare class CmatDatetimepickerToggleComponent<D> implements AfterContentInit,
|
|
|
2799
2143
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerToggleComponent<any>, "cmat-datetimepicker-toggle", ["cmatDatetimepickerToggle"], { "datetimepicker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["customIcon"], ["[cmatDatetimepickerToggleIcon]"], true, never>;
|
|
2800
2144
|
}
|
|
2801
2145
|
|
|
2802
|
-
/**
|
|
2803
|
-
* An internal component used to display a single month in the datepicker.
|
|
2804
|
-
*/
|
|
2805
2146
|
declare class CmatDatetimepickerMonthViewComponent<D> implements AfterContentInit, OnDestroy {
|
|
2806
2147
|
type: CmatDatetimepickerType;
|
|
2807
2148
|
userSelection: EventEmitter<void>;
|
|
2808
|
-
/** A function used to filter which dates are selectable. */
|
|
2809
2149
|
dateFilter: (date: D) => boolean;
|
|
2810
|
-
/** Emits when a new date is selected. */
|
|
2811
2150
|
selectedChange: EventEmitter<D>;
|
|
2812
|
-
/** Grid of calendar cells representing the dates of the month. */
|
|
2813
2151
|
weeks: CmatDatetimepickerCalendarCellComponent[][];
|
|
2814
|
-
/** The number of blank cells in the first row before the 1st of the month. */
|
|
2815
2152
|
firstWeekOffset: number;
|
|
2816
|
-
/**
|
|
2817
|
-
* The date of the month that the currently selected Date falls on.
|
|
2818
|
-
* Null if the currently selected Date is in another month.
|
|
2819
|
-
*/
|
|
2820
2153
|
selectedDate: number | null;
|
|
2821
|
-
/** The date of the month that today falls on. Null if today is in another month. */
|
|
2822
2154
|
todayDate: number | null;
|
|
2823
|
-
/** The names of the weekdays. */
|
|
2824
2155
|
weekdays: {
|
|
2825
2156
|
long: string;
|
|
2826
2157
|
narrow: string;
|
|
2827
2158
|
}[];
|
|
2828
|
-
calendarState: string
|
|
2159
|
+
readonly calendarState: i0.WritableSignal<string>;
|
|
2829
2160
|
adapter: DatetimeAdapter$1<D>;
|
|
2830
2161
|
private _dateFormats;
|
|
2831
2162
|
private _activeDate;
|
|
2832
2163
|
private _selected;
|
|
2833
2164
|
private _elementRef;
|
|
2834
|
-
private _changeDetectorRef;
|
|
2835
2165
|
private _calendarAnimationListener;
|
|
2836
2166
|
constructor();
|
|
2837
|
-
/**
|
|
2838
|
-
* The date to display in this month view (everything other than the month and year is ignored).
|
|
2839
|
-
*/
|
|
2840
2167
|
get activeDate(): D;
|
|
2841
2168
|
set activeDate(value: D);
|
|
2842
|
-
/** The currently selected date. */
|
|
2843
2169
|
get selected(): D;
|
|
2844
2170
|
set selected(value: D);
|
|
2845
2171
|
ngAfterContentInit(): void;
|
|
2846
2172
|
ngOnDestroy(): void;
|
|
2847
|
-
/** Handles when a new date is selected. */
|
|
2848
2173
|
dateSelected(date: number): void;
|
|
2849
2174
|
calendarStateDone(event: AnimationEvent): void;
|
|
2850
|
-
/** Initializes this month view. */
|
|
2851
2175
|
private _init;
|
|
2852
|
-
/** Creates MdCalendarCells for the dates in this month. */
|
|
2853
2176
|
private _createWeekCells;
|
|
2854
|
-
/**
|
|
2855
|
-
* Gets the date in this month that the given Date falls on.
|
|
2856
|
-
* Returns null if the given Date is in another month.
|
|
2857
|
-
*/
|
|
2858
2177
|
private _getDateInCurrentMonth;
|
|
2859
2178
|
private _changeCalendarState;
|
|
2860
2179
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerMonthViewComponent<any>, never>;
|
|
2861
2180
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatDatetimepickerMonthViewComponent<any>, "cmat-datetimepicker-month-view", ["cmatDatetimepickerMonthView"], { "type": { "alias": "type"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "activeDate": { "alias": "activeDate"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; }, { "userSelection": "userSelection"; "selectedChange": "selectedChange"; }, never, never, true, never>;
|
|
2862
2181
|
}
|
|
2863
2182
|
|
|
2864
|
-
/**
|
|
2865
|
-
* An internal component used to display a single year in the datepicker.
|
|
2866
|
-
*/
|
|
2867
2183
|
declare class CmatDatetimepickerYearViewComponent<D> implements AfterContentInit, OnDestroy {
|
|
2868
2184
|
userSelection: EventEmitter<void>;
|
|
2869
2185
|
type: CmatDatetimepickerType;
|
|
2870
|
-
/** A function used to filter which dates are selectable. */
|
|
2871
2186
|
dateFilter: (date: D) => boolean;
|
|
2872
|
-
/** Emits when a new month is selected. */
|
|
2873
2187
|
selectedChange: EventEmitter<D>;
|
|
2874
|
-
/** Grid of calendar cells representing the months of the year. */
|
|
2875
2188
|
months: CmatDatetimepickerCalendarCellComponent[][];
|
|
2876
|
-
/** The label for this year (e.g. "2017"). */
|
|
2877
2189
|
yearLabel: string;
|
|
2878
|
-
/** The month in this year that today falls on. Null if today is in a different year. */
|
|
2879
2190
|
todayMonth: number | null;
|
|
2880
|
-
/**
|
|
2881
|
-
* The month in this year that the selected Date falls on.
|
|
2882
|
-
* Null if the selected Date is in a different year.
|
|
2883
|
-
*/
|
|
2884
2191
|
selectedMonth: number | null;
|
|
2885
|
-
calendarState: string
|
|
2192
|
+
readonly calendarState: i0.WritableSignal<string>;
|
|
2886
2193
|
adapter: DatetimeAdapter$1<D>;
|
|
2887
2194
|
private _dateFormats;
|
|
2888
2195
|
private _activeDate;
|
|
2889
2196
|
private _selected;
|
|
2890
|
-
private _changeDetectorRef;
|
|
2891
2197
|
private _elementRef;
|
|
2892
2198
|
private _calendarAnimationListener;
|
|
2893
2199
|
constructor();
|
|
2894
|
-
/** The date to display in this year view (everything other than the year is ignored). */
|
|
2895
2200
|
get activeDate(): D;
|
|
2896
2201
|
set activeDate(value: D);
|
|
2897
|
-
/** The currently selected date. */
|
|
2898
2202
|
get selected(): D;
|
|
2899
2203
|
set selected(value: D);
|
|
2900
2204
|
ngAfterContentInit(): void;
|
|
2901
2205
|
ngOnDestroy(): void;
|
|
2902
|
-
/** Handles when a new month is selected. */
|
|
2903
2206
|
monthSelected(month: number): void;
|
|
2904
2207
|
calendarStateDone(event: AnimationEvent): void;
|
|
2905
|
-
/** Initializes this month view. */
|
|
2906
2208
|
private _init;
|
|
2907
|
-
/**
|
|
2908
|
-
* Gets the month in this year that the given Date falls on.
|
|
2909
|
-
* Returns null if the given Date is in another year.
|
|
2910
|
-
*/
|
|
2911
2209
|
private _getMonthInCurrentYear;
|
|
2912
|
-
/** Creates an MdCalendarCell for the given month. */
|
|
2913
2210
|
private _createCellForMonth;
|
|
2914
|
-
/** Whether the given month is enabled. */
|
|
2915
2211
|
private _isMonthEnabled;
|
|
2916
2212
|
private _changeCalendarState;
|
|
2917
2213
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerYearViewComponent<any>, never>;
|
|
@@ -2945,8 +2241,13 @@ declare class CmatNavigationItem {
|
|
|
2945
2241
|
classes?: string;
|
|
2946
2242
|
};
|
|
2947
2243
|
children?: CmatNavigationItem[];
|
|
2948
|
-
meta?:
|
|
2949
|
-
permission?:
|
|
2244
|
+
meta?: unknown;
|
|
2245
|
+
permission?: unknown;
|
|
2246
|
+
}
|
|
2247
|
+
interface CmatNavigationComponent {
|
|
2248
|
+
close(): void;
|
|
2249
|
+
open(): void;
|
|
2250
|
+
toggle(): void;
|
|
2950
2251
|
}
|
|
2951
2252
|
type CmatVerticalNavigationAppearance = 'default' | 'compact' | 'dense' | 'thin';
|
|
2952
2253
|
type CmatVerticalNavigationMode = 'over' | 'side';
|
|
@@ -2957,10 +2258,8 @@ declare class CmatHorizontalNavigationComponent implements OnChanges, OnInit, On
|
|
|
2957
2258
|
navigation: CmatNavigationItem[];
|
|
2958
2259
|
hasRouteReuseStrategy: boolean;
|
|
2959
2260
|
readonly routeReuseStrategyEmitUrl: EventEmitter<string>;
|
|
2960
|
-
|
|
2961
|
-
private _changeDetectorRef;
|
|
2261
|
+
readonly refreshToken: i0.WritableSignal<number>;
|
|
2962
2262
|
private _cmatNavigationService;
|
|
2963
|
-
private _unsubscribeAll;
|
|
2964
2263
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2965
2264
|
ngOnInit(): void;
|
|
2966
2265
|
ngOnDestroy(): void;
|
|
@@ -2975,6 +2274,9 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
2975
2274
|
static ngAcceptInputType_inner: BooleanInput;
|
|
2976
2275
|
static ngAcceptInputType_opened: BooleanInput;
|
|
2977
2276
|
static ngAcceptInputType_transparentOverlay: BooleanInput;
|
|
2277
|
+
classList: string;
|
|
2278
|
+
styleList: string;
|
|
2279
|
+
private _navigationContentEl;
|
|
2978
2280
|
appearance: CmatVerticalNavigationAppearance;
|
|
2979
2281
|
autoCollapse: boolean;
|
|
2980
2282
|
editState: boolean;
|
|
@@ -2992,17 +2294,17 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
2992
2294
|
readonly openedChanged: EventEmitter<boolean>;
|
|
2993
2295
|
readonly positionChanged: EventEmitter<CmatVerticalNavigationPosition>;
|
|
2994
2296
|
readonly editSelectedItemChanged: EventEmitter<CmatNavigationItem>;
|
|
2995
|
-
|
|
2996
|
-
activeAsideItemId: string | null;
|
|
2297
|
+
readonly activeAsideItemId: i0.WritableSignal<string | null>;
|
|
2997
2298
|
onCollapsableItemCollapsed: ReplaySubject<CmatNavigationItem>;
|
|
2998
2299
|
onCollapsableItemExpanded: ReplaySubject<CmatNavigationItem>;
|
|
2999
|
-
|
|
3000
|
-
private _changeDetectorRef;
|
|
2300
|
+
readonly refreshToken: i0.WritableSignal<number>;
|
|
3001
2301
|
private _elementRef;
|
|
3002
2302
|
private _renderer2;
|
|
3003
2303
|
private _router;
|
|
3004
2304
|
private _scrollStrategyOptions;
|
|
3005
2305
|
private _cmatNavigationService;
|
|
2306
|
+
private readonly _cmatUtilsService;
|
|
2307
|
+
private readonly _destroyRef;
|
|
3006
2308
|
private _animationsEnabled;
|
|
3007
2309
|
private _asideOverlay;
|
|
3008
2310
|
private readonly _handleAsideOverlayClick;
|
|
@@ -3010,199 +2312,56 @@ declare class CmatVerticalNavigationComponent implements OnChanges, OnInit, Afte
|
|
|
3010
2312
|
private _hovered;
|
|
3011
2313
|
private _overlay;
|
|
3012
2314
|
private _scrollStrategy;
|
|
3013
|
-
private _unsubscribeAll;
|
|
3014
2315
|
constructor();
|
|
3015
|
-
/**
|
|
3016
|
-
* Host binding for component classes
|
|
3017
|
-
*/
|
|
3018
|
-
get classList(): any;
|
|
3019
|
-
/**
|
|
3020
|
-
* Host binding for component inline styles
|
|
3021
|
-
*/
|
|
3022
|
-
get styleList(): any;
|
|
3023
|
-
/**
|
|
3024
|
-
* On mouseenter
|
|
3025
|
-
*
|
|
3026
|
-
* @private
|
|
3027
|
-
*/
|
|
3028
2316
|
onMouseenter(): void;
|
|
3029
|
-
/**
|
|
3030
|
-
* On mouseleave
|
|
3031
|
-
*
|
|
3032
|
-
* @private
|
|
3033
|
-
*/
|
|
3034
2317
|
onMouseleave(): void;
|
|
3035
|
-
/**
|
|
3036
|
-
* On changes
|
|
3037
|
-
*
|
|
3038
|
-
* @param changes
|
|
3039
|
-
*/
|
|
3040
2318
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3041
|
-
/**
|
|
3042
|
-
* On init
|
|
3043
|
-
*/
|
|
3044
2319
|
ngOnInit(): void;
|
|
3045
|
-
/**
|
|
3046
|
-
* After view init
|
|
3047
|
-
*/
|
|
3048
2320
|
ngAfterViewInit(): void;
|
|
3049
|
-
/**
|
|
3050
|
-
* On destroy
|
|
3051
|
-
*/
|
|
3052
2321
|
ngOnDestroy(): void;
|
|
3053
|
-
/**
|
|
3054
|
-
* Refresh the component to apply the changes
|
|
3055
|
-
*/
|
|
3056
2322
|
refresh(): void;
|
|
3057
|
-
/**
|
|
3058
|
-
* Open the navigation
|
|
3059
|
-
*/
|
|
3060
2323
|
open(): void;
|
|
3061
|
-
/**
|
|
3062
|
-
* Close the navigation
|
|
3063
|
-
*/
|
|
3064
2324
|
close(): void;
|
|
3065
|
-
/**
|
|
3066
|
-
* Toggle the navigation
|
|
3067
|
-
*/
|
|
3068
2325
|
toggle(): void;
|
|
3069
|
-
/**
|
|
3070
|
-
* Open the aside
|
|
3071
|
-
*
|
|
3072
|
-
* @param item
|
|
3073
|
-
*/
|
|
3074
2326
|
openAside(item: CmatNavigationItem): void;
|
|
3075
|
-
/**
|
|
3076
|
-
* Close the aside
|
|
3077
|
-
*/
|
|
3078
2327
|
closeAside(): void;
|
|
3079
|
-
/**
|
|
3080
|
-
* Toggle the aside
|
|
3081
|
-
*
|
|
3082
|
-
* @param item
|
|
3083
|
-
*/
|
|
3084
2328
|
toggleAside(item: CmatNavigationItem): void;
|
|
3085
|
-
|
|
3086
|
-
* Track by function for ngFor loops
|
|
3087
|
-
*
|
|
3088
|
-
* @param index
|
|
3089
|
-
* @param item
|
|
3090
|
-
*/
|
|
3091
|
-
trackByFn(index: number, item: any): any;
|
|
2329
|
+
trackByFn(index: number, item: CmatNavigationItem): string | number;
|
|
3092
2330
|
selectItem(item: CmatNavigationItem): void;
|
|
3093
2331
|
goToRouterLink(link: string): void;
|
|
3094
|
-
|
|
3095
|
-
* Enable the animations
|
|
3096
|
-
*
|
|
3097
|
-
* @private
|
|
3098
|
-
*/
|
|
2332
|
+
isItemVisible(item: CmatNavigationItem): boolean;
|
|
3099
2333
|
private _enableAnimations;
|
|
3100
|
-
/**
|
|
3101
|
-
* Disable the animations
|
|
3102
|
-
*
|
|
3103
|
-
* @private
|
|
3104
|
-
*/
|
|
3105
2334
|
private _disableAnimations;
|
|
3106
|
-
/**
|
|
3107
|
-
* Show the overlay
|
|
3108
|
-
*
|
|
3109
|
-
* @private
|
|
3110
|
-
*/
|
|
3111
2335
|
private _showOverlay;
|
|
3112
|
-
/**
|
|
3113
|
-
* Hide the overlay
|
|
3114
|
-
*
|
|
3115
|
-
* @private
|
|
3116
|
-
*/
|
|
3117
2336
|
private _hideOverlay;
|
|
3118
|
-
/**
|
|
3119
|
-
* Show the aside overlay
|
|
3120
|
-
*
|
|
3121
|
-
* @private
|
|
3122
|
-
*/
|
|
3123
2337
|
private _showAsideOverlay;
|
|
3124
|
-
/**
|
|
3125
|
-
* Hide the aside overlay
|
|
3126
|
-
*
|
|
3127
|
-
* @private
|
|
3128
|
-
*/
|
|
3129
2338
|
private _hideAsideOverlay;
|
|
3130
|
-
/**
|
|
3131
|
-
* Open/close the navigation
|
|
3132
|
-
*
|
|
3133
|
-
* @param open
|
|
3134
|
-
* @private
|
|
3135
|
-
*/
|
|
3136
2339
|
private _toggleOpened;
|
|
2340
|
+
private _setNavigationOpened;
|
|
2341
|
+
private _applyOpenedState;
|
|
2342
|
+
private _setAsideActive;
|
|
2343
|
+
private _removeOverlayElement;
|
|
2344
|
+
private _removeOverlayAfterTransition;
|
|
2345
|
+
private _syncHostBindings;
|
|
3137
2346
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatVerticalNavigationComponent, never>;
|
|
3138
2347
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatVerticalNavigationComponent, "cmat-vertical-navigation", ["cmatVerticalNavigation"], { "appearance": { "alias": "appearance"; "required": false; }; "autoCollapse": { "alias": "autoCollapse"; "required": false; }; "editState": { "alias": "editState"; "required": false; }; "inner": { "alias": "inner"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "navigation": { "alias": "navigation"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "position": { "alias": "position"; "required": false; }; "transparentOverlay": { "alias": "transparentOverlay"; "required": false; }; "hasRouteReuseStrategy": { "alias": "hasRouteReuseStrategy"; "required": false; }; }, { "routeReuseStrategyEmitUrl": "routeReuseStrategyEmitUrl"; "appearanceChanged": "appearanceChanged"; "modeChanged": "modeChanged"; "openedChanged": "openedChanged"; "positionChanged": "positionChanged"; "editSelectedItemChanged": "editSelectedItemChanged"; }, never, ["[cmatVerticalNavigationHeader]", "[cmatVerticalNavigationContentHeader]", "[cmatVerticalNavigationContentFooter]", "[cmatVerticalNavigationFooter]"], true, never>;
|
|
3139
2348
|
}
|
|
3140
2349
|
|
|
3141
2350
|
declare class CmatNavigationService {
|
|
3142
|
-
private _componentRegistry;
|
|
3143
|
-
private
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
*
|
|
3147
|
-
* @param name
|
|
3148
|
-
* @param component
|
|
3149
|
-
*/
|
|
3150
|
-
registerComponent(name: string, component: any): void;
|
|
3151
|
-
/**
|
|
3152
|
-
* Deregister navigation component
|
|
3153
|
-
*
|
|
3154
|
-
* @param name
|
|
3155
|
-
*/
|
|
2351
|
+
private readonly _componentRegistry;
|
|
2352
|
+
private readonly _refreshTokenRegistry;
|
|
2353
|
+
private readonly _navigationStore;
|
|
2354
|
+
registerComponent(name: string, component: unknown): void;
|
|
3156
2355
|
deregisterComponent(name: string): void;
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
*/
|
|
3162
|
-
getComponent<T>(name: string): T;
|
|
3163
|
-
/**
|
|
3164
|
-
* Store the given navigation with the given key
|
|
3165
|
-
*
|
|
3166
|
-
* @param key
|
|
3167
|
-
* @param navigation
|
|
3168
|
-
*/
|
|
2356
|
+
getComponent<T = unknown>(name: string): T;
|
|
2357
|
+
registerRefreshToken(name: string, refreshToken: Signal<number>): void;
|
|
2358
|
+
deregisterRefreshToken(name: string): void;
|
|
2359
|
+
getRefreshToken(name: string): Signal<number> | undefined;
|
|
3169
2360
|
storeNavigation(key: string, navigation: CmatNavigationItem[]): void;
|
|
3170
|
-
/**
|
|
3171
|
-
* Get navigation from storage by key
|
|
3172
|
-
*
|
|
3173
|
-
* @param key
|
|
3174
|
-
*/
|
|
3175
2361
|
getNavigation(key: string): CmatNavigationItem[];
|
|
3176
|
-
/**
|
|
3177
|
-
* Delete the navigation from the storage
|
|
3178
|
-
*
|
|
3179
|
-
* @param key
|
|
3180
|
-
*/
|
|
3181
2362
|
deleteNavigation(key: string): void;
|
|
3182
|
-
/**
|
|
3183
|
-
* Utility function that returns a flattened
|
|
3184
|
-
* version of the given navigation array
|
|
3185
|
-
*
|
|
3186
|
-
* @param navigation
|
|
3187
|
-
* @param flatNavigation
|
|
3188
|
-
*/
|
|
3189
2363
|
getFlatNavigation(navigation: CmatNavigationItem[], flatNavigation?: CmatNavigationItem[]): CmatNavigationItem[];
|
|
3190
|
-
/**
|
|
3191
|
-
* Utility function that returns the item
|
|
3192
|
-
* with the given id from given navigation
|
|
3193
|
-
*
|
|
3194
|
-
* @param id
|
|
3195
|
-
* @param navigation
|
|
3196
|
-
*/
|
|
3197
2364
|
getItem(id: string, navigation: CmatNavigationItem[]): CmatNavigationItem | null;
|
|
3198
|
-
/**
|
|
3199
|
-
* Utility function that returns the item's parent
|
|
3200
|
-
* with the given id from given navigation
|
|
3201
|
-
*
|
|
3202
|
-
* @param id
|
|
3203
|
-
* @param navigation
|
|
3204
|
-
* @param parent
|
|
3205
|
-
*/
|
|
3206
2365
|
getItemParent(id: string, navigation: CmatNavigationItem[], parent: CmatNavigationItem[] | CmatNavigationItem): CmatNavigationItem[] | CmatNavigationItem | null;
|
|
3207
2366
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatNavigationService, never>;
|
|
3208
2367
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatNavigationService>;
|
|
@@ -3236,7 +2395,7 @@ declare class CmatOtpInputComponent implements MatFormFieldControl<any>, AfterVi
|
|
|
3236
2395
|
ngControl: NgControl;
|
|
3237
2396
|
private _document;
|
|
3238
2397
|
private _formBuilder;
|
|
3239
|
-
private
|
|
2398
|
+
private readonly _destroyRef;
|
|
3240
2399
|
private _activeFocusCount;
|
|
3241
2400
|
constructor();
|
|
3242
2401
|
get inputType(): string;
|
|
@@ -3320,6 +2479,17 @@ declare class CmatOrgChartComponent {
|
|
|
3320
2479
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatOrgChartComponent, "cmat-org-chart", ["cmatOrgChart"], { "nodes": { "alias": "nodes"; "required": false; }; "enableControlHeight": { "alias": "enableControlHeight"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "detailsBtnTitle": { "alias": "detailsBtnTitle"; "required": false; }; }, { "detailsBtnClick": "detailsBtnClick"; }, never, never, true, never>;
|
|
3321
2480
|
}
|
|
3322
2481
|
|
|
2482
|
+
declare class CmatPageHeaderComponent {
|
|
2483
|
+
title: string;
|
|
2484
|
+
description: string;
|
|
2485
|
+
eyebrow: string;
|
|
2486
|
+
divider: boolean;
|
|
2487
|
+
align: 'start' | 'center';
|
|
2488
|
+
get isCentered(): boolean;
|
|
2489
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPageHeaderComponent, never>;
|
|
2490
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatPageHeaderComponent, "cmat-page-header", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "eyebrow": { "alias": "eyebrow"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, never, ["[cmatPageHeaderActions]"], true, never>;
|
|
2491
|
+
}
|
|
2492
|
+
|
|
3323
2493
|
declare class CmatPaginationComponent implements OnInit {
|
|
3324
2494
|
pageChange: EventEmitter<number>;
|
|
3325
2495
|
pageBoundsCorrection: EventEmitter<number>;
|
|
@@ -3328,11 +2498,10 @@ declare class CmatPaginationComponent implements OnInit {
|
|
|
3328
2498
|
maxSize: number;
|
|
3329
2499
|
itemsPerPages: number[];
|
|
3330
2500
|
initPerPage: number;
|
|
3331
|
-
isScreenSmall: boolean
|
|
2501
|
+
readonly isScreenSmall: i0.WritableSignal<boolean>;
|
|
3332
2502
|
private _cmatMediaWatcherService;
|
|
3333
|
-
private
|
|
2503
|
+
private readonly _destroyRef;
|
|
3334
2504
|
private _autoHide;
|
|
3335
|
-
private _unsubscribeAll;
|
|
3336
2505
|
get autoHide(): boolean;
|
|
3337
2506
|
set autoHide(value: boolean);
|
|
3338
2507
|
ngOnInit(): void;
|
|
@@ -3341,11 +2510,7 @@ declare class CmatPaginationComponent implements OnInit {
|
|
|
3341
2510
|
}
|
|
3342
2511
|
|
|
3343
2512
|
interface CmatPaginationInstance {
|
|
3344
|
-
[prop: string]:
|
|
3345
|
-
/**
|
|
3346
|
-
* An optional ID for the pagination instance. Only useful if you wish to
|
|
3347
|
-
* have more than once instance at a time in a given component.
|
|
3348
|
-
*/
|
|
2513
|
+
[prop: string]: unknown;
|
|
3349
2514
|
id?: string;
|
|
3350
2515
|
itemsPerPage: number;
|
|
3351
2516
|
currentPage: number;
|
|
@@ -3353,24 +2518,26 @@ interface CmatPaginationInstance {
|
|
|
3353
2518
|
}
|
|
3354
2519
|
|
|
3355
2520
|
declare class CmatPaginationService {
|
|
3356
|
-
|
|
3357
|
-
private _instances;
|
|
3358
|
-
private _defaultPaginationId;
|
|
2521
|
+
private readonly _change;
|
|
2522
|
+
private readonly _instances;
|
|
2523
|
+
private readonly _defaultPaginationId;
|
|
2524
|
+
get change$(): Observable<string>;
|
|
3359
2525
|
defaultId(): string;
|
|
2526
|
+
notifyChange(id: string): void;
|
|
3360
2527
|
register(instance: CmatPaginationInstance): boolean;
|
|
3361
|
-
getCurrentPage(id: string): number |
|
|
3362
|
-
getItemsPerPage(id: string): number |
|
|
2528
|
+
getCurrentPage(id: string): number | undefined;
|
|
2529
|
+
getItemsPerPage(id: string): number | undefined;
|
|
3363
2530
|
setCurrentPage(id: string, page: number): void;
|
|
3364
2531
|
setTotalItems(id: string, totalItems: number): void;
|
|
3365
2532
|
setItemsPerPage(id: string, itemsPerPage: number): void;
|
|
3366
|
-
getInstance(id?: string): CmatPaginationInstance;
|
|
2533
|
+
getInstance(id?: string): CmatPaginationInstance | undefined;
|
|
3367
2534
|
private _updateInstance;
|
|
3368
2535
|
private _clone;
|
|
3369
2536
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPaginationService, never>;
|
|
3370
2537
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatPaginationService>;
|
|
3371
2538
|
}
|
|
3372
2539
|
|
|
3373
|
-
type Collection<T> = T[];
|
|
2540
|
+
type Collection<T> = readonly T[];
|
|
3374
2541
|
interface CmatPaginatePipeArgs {
|
|
3375
2542
|
id?: string;
|
|
3376
2543
|
currentPage: string | number;
|
|
@@ -3378,42 +2545,42 @@ interface CmatPaginatePipeArgs {
|
|
|
3378
2545
|
totalItems: string | number;
|
|
3379
2546
|
}
|
|
3380
2547
|
interface CmatPipeState {
|
|
3381
|
-
collection: any[];
|
|
3382
2548
|
size: number;
|
|
3383
2549
|
start?: number;
|
|
3384
2550
|
end?: number;
|
|
3385
|
-
slice:
|
|
2551
|
+
slice: readonly unknown[];
|
|
3386
2552
|
}
|
|
3387
2553
|
declare class CmatPaginatePipe implements PipeTransform {
|
|
3388
2554
|
private service;
|
|
3389
|
-
private state;
|
|
2555
|
+
private readonly state;
|
|
3390
2556
|
transform<T, U extends Collection<T>>(collection: U, args: CmatPaginatePipeArgs): U;
|
|
3391
2557
|
private createInstance;
|
|
3392
2558
|
private checkConfig;
|
|
3393
2559
|
private _saveState;
|
|
3394
2560
|
private _stateIsIdentical;
|
|
2561
|
+
private _toNumber;
|
|
3395
2562
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPaginatePipe, never>;
|
|
3396
2563
|
static ɵpipe: i0.ɵɵPipeDeclaration<CmatPaginatePipe, "paginate", true>;
|
|
3397
2564
|
}
|
|
3398
2565
|
|
|
3399
2566
|
interface Page {
|
|
3400
|
-
label: string;
|
|
3401
|
-
value:
|
|
2567
|
+
label: string | number;
|
|
2568
|
+
value: number;
|
|
3402
2569
|
}
|
|
3403
|
-
declare class CmatPaginationDirective implements OnInit, OnChanges
|
|
2570
|
+
declare class CmatPaginationDirective implements OnInit, OnChanges {
|
|
3404
2571
|
id: string;
|
|
3405
2572
|
maxSize: number;
|
|
3406
2573
|
pageChange: EventEmitter<number>;
|
|
3407
2574
|
pageBoundsCorrection: EventEmitter<number>;
|
|
3408
2575
|
perPageCountChange: EventEmitter<number>;
|
|
3409
|
-
pages
|
|
3410
|
-
private service;
|
|
3411
|
-
private
|
|
3412
|
-
private
|
|
2576
|
+
readonly pages$: i0.WritableSignal<Page[]>;
|
|
2577
|
+
private readonly service;
|
|
2578
|
+
private readonly _injector;
|
|
2579
|
+
private readonly _destroyRef;
|
|
2580
|
+
private _pageLinksUpdateQueued;
|
|
3413
2581
|
constructor();
|
|
3414
2582
|
ngOnInit(): void;
|
|
3415
2583
|
ngOnChanges(): void;
|
|
3416
|
-
ngOnDestroy(): void;
|
|
3417
2584
|
previous(): void;
|
|
3418
2585
|
next(): void;
|
|
3419
2586
|
goFirstPage(): void;
|
|
@@ -3427,6 +2594,7 @@ declare class CmatPaginationDirective implements OnInit, OnChanges, OnDestroy {
|
|
|
3427
2594
|
setItemsPerPage(count: number): void;
|
|
3428
2595
|
private _checkValidId;
|
|
3429
2596
|
private _updatePageLinks;
|
|
2597
|
+
private _schedulePageLinksUpdate;
|
|
3430
2598
|
private _outOfBoundCorrection;
|
|
3431
2599
|
private _createPageArray;
|
|
3432
2600
|
private _calculatePageNumber;
|
|
@@ -3434,98 +2602,6 @@ declare class CmatPaginationDirective implements OnInit, OnChanges, OnDestroy {
|
|
|
3434
2602
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatPaginationDirective, "pagination-template,[pagination-template]", ["paginationApi"], { "id": { "alias": "id"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; }, { "pageChange": "pageChange"; "pageBoundsCorrection": "pageBoundsCorrection"; "perPageCountChange": "perPageCountChange"; }, never, never, true, never>;
|
|
3435
2603
|
}
|
|
3436
2604
|
|
|
3437
|
-
declare class CmatPageHeaderComponent {
|
|
3438
|
-
/**
|
|
3439
|
-
* 标题。
|
|
3440
|
-
*/
|
|
3441
|
-
title: string;
|
|
3442
|
-
/**
|
|
3443
|
-
* 副标题说明。
|
|
3444
|
-
*/
|
|
3445
|
-
description: string;
|
|
3446
|
-
/**
|
|
3447
|
-
* 眉头说明。
|
|
3448
|
-
*/
|
|
3449
|
-
eyebrow: string;
|
|
3450
|
-
/**
|
|
3451
|
-
* 是否显示底部分割线。
|
|
3452
|
-
*/
|
|
3453
|
-
divider: boolean;
|
|
3454
|
-
/**
|
|
3455
|
-
* 内容对齐方式。
|
|
3456
|
-
*/
|
|
3457
|
-
align: 'start' | 'center';
|
|
3458
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPageHeaderComponent, never>;
|
|
3459
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatPageHeaderComponent, "cmat-page-header", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "eyebrow": { "alias": "eyebrow"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; "align": { "alias": "align"; "required": false; }; }, {}, never, ["[cmatPageHeaderActions]", "[cmatPageHeaderActions]"], true, never>;
|
|
3460
|
-
}
|
|
3461
|
-
|
|
3462
|
-
declare class CmatRichTextEditorComponent implements OnChanges {
|
|
3463
|
-
/**
|
|
3464
|
-
* 编辑器内容。
|
|
3465
|
-
*/
|
|
3466
|
-
value: string;
|
|
3467
|
-
/**
|
|
3468
|
-
* 占位文字。
|
|
3469
|
-
*/
|
|
3470
|
-
placeholder: string;
|
|
3471
|
-
/**
|
|
3472
|
-
* 是否只读。
|
|
3473
|
-
*/
|
|
3474
|
-
readOnly: boolean;
|
|
3475
|
-
/**
|
|
3476
|
-
* 编辑器主题。
|
|
3477
|
-
*/
|
|
3478
|
-
theme: string;
|
|
3479
|
-
/**
|
|
3480
|
-
* 编辑器最小高度。
|
|
3481
|
-
*/
|
|
3482
|
-
minHeight: string;
|
|
3483
|
-
/**
|
|
3484
|
-
* 编辑器控件。
|
|
3485
|
-
*/
|
|
3486
|
-
control: FormControl<string | null>;
|
|
3487
|
-
/**
|
|
3488
|
-
* 同步外部输入值。
|
|
3489
|
-
*/
|
|
3490
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
3491
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatRichTextEditorComponent, never>;
|
|
3492
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatRichTextEditorComponent, "cmat-rich-text-editor", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
3493
|
-
}
|
|
3494
|
-
|
|
3495
|
-
declare class CmatFormActionsComponent {
|
|
3496
|
-
/**
|
|
3497
|
-
* 对齐方式。
|
|
3498
|
-
*/
|
|
3499
|
-
align: 'start' | 'center' | 'end';
|
|
3500
|
-
/**
|
|
3501
|
-
* 是否显示顶部分割线。
|
|
3502
|
-
*/
|
|
3503
|
-
divider: boolean;
|
|
3504
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFormActionsComponent, never>;
|
|
3505
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFormActionsComponent, "cmat-form-actions", never, { "align": { "alias": "align"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["[cmatFormActionsLeft]", "[cmatFormActions]"], true, never>;
|
|
3506
|
-
}
|
|
3507
|
-
|
|
3508
|
-
declare class CmatTableToolbarComponent {
|
|
3509
|
-
/**
|
|
3510
|
-
* 标题。
|
|
3511
|
-
*/
|
|
3512
|
-
title: string;
|
|
3513
|
-
/**
|
|
3514
|
-
* 说明文字。
|
|
3515
|
-
*/
|
|
3516
|
-
description: string;
|
|
3517
|
-
/**
|
|
3518
|
-
* 记录数量。
|
|
3519
|
-
*/
|
|
3520
|
-
count: number;
|
|
3521
|
-
/**
|
|
3522
|
-
* 是否显示数量。
|
|
3523
|
-
*/
|
|
3524
|
-
showCount: boolean;
|
|
3525
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTableToolbarComponent, never>;
|
|
3526
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTableToolbarComponent, "cmat-table-toolbar", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "count": { "alias": "count"; "required": false; }; "showCount": { "alias": "showCount"; "required": false; }; }, {}, never, ["[cmatTableToolbarActions]"], true, never>;
|
|
3527
|
-
}
|
|
3528
|
-
|
|
3529
2605
|
type Type$1 = 'text' | 'password';
|
|
3530
2606
|
declare class CmatPassToggleVisibilityComponent {
|
|
3531
2607
|
isVisible: boolean;
|
|
@@ -3607,8 +2683,7 @@ declare class CmatPasswordStrengthInfoComponent implements OnInit, AfterViewInit
|
|
|
3607
2683
|
specialCharsCriteriaMsg: string;
|
|
3608
2684
|
customCharsCriteriaMsg: string;
|
|
3609
2685
|
minCharsCriteriaMsg: string;
|
|
3610
|
-
pageLoaded: boolean
|
|
3611
|
-
private _changeDetectorRef;
|
|
2686
|
+
readonly pageLoaded: i0.WritableSignal<boolean>;
|
|
3612
2687
|
ngOnInit(): void;
|
|
3613
2688
|
ngAfterViewInit(): void;
|
|
3614
2689
|
getEnterIndex(itemType: string): number;
|
|
@@ -3655,27 +2730,18 @@ declare class CmatPopoverComponent implements CmatPopoverPanel, OnDestroy {
|
|
|
3655
2730
|
static ngAcceptInputType_disableAnimation: BooleanInput;
|
|
3656
2731
|
static ngAcceptInputType_focusTrapEnabled: BooleanInput;
|
|
3657
2732
|
static ngAcceptInputType_focusTrapAutoCaptureEnabled: BooleanInput;
|
|
3658
|
-
/** Event emitted when the popover is closed. */
|
|
3659
2733
|
closed: EventEmitter<void>;
|
|
3660
2734
|
templateRef: TemplateRef<any>;
|
|
3661
2735
|
role: string;
|
|
3662
|
-
/** Config object to be passed into the popover's arrow ngStyle */
|
|
3663
2736
|
popoverPanelStyles: {};
|
|
3664
|
-
/** Config object to be passed into the popover's arrow ngStyle */
|
|
3665
2737
|
popoverArrowStyles: {};
|
|
3666
|
-
/** Config object to be passed into the popover's content ngStyle */
|
|
3667
2738
|
popoverContentStyles: {};
|
|
3668
|
-
/** Whether popover's `targetElement` is defined */
|
|
3669
2739
|
containerPositioning: boolean;
|
|
3670
|
-
/** Closing disabled on popover */
|
|
3671
2740
|
closeDisabled: boolean;
|
|
3672
|
-
/** Config object to be passed into the popover's ngClass */
|
|
3673
2741
|
classList: Record<string, boolean>;
|
|
3674
|
-
/** Emits the current animation state whenever it changes. */
|
|
3675
2742
|
_onAnimationStateChange: EventEmitter<AnimationEvent>;
|
|
3676
2743
|
private _dir;
|
|
3677
2744
|
private _elementRef;
|
|
3678
|
-
/** Settings for popover, view setters and getters for more detail */
|
|
3679
2745
|
private _position;
|
|
3680
2746
|
private _triggerEvent;
|
|
3681
2747
|
private _scrollStrategy;
|
|
@@ -3694,106 +2760,57 @@ declare class CmatPopoverComponent implements CmatPopoverPanel, OnDestroy {
|
|
|
3694
2760
|
private _arrowHeight;
|
|
3695
2761
|
constructor();
|
|
3696
2762
|
get position(): CmatPopoverPosition;
|
|
3697
|
-
/** Position of the popover. */
|
|
3698
2763
|
set position(value: CmatPopoverPosition);
|
|
3699
|
-
/** Popover trigger event */
|
|
3700
2764
|
get triggerEvent(): CmatPopoverTriggerEvent;
|
|
3701
2765
|
set triggerEvent(value: CmatPopoverTriggerEvent);
|
|
3702
|
-
/** Popover scroll strategy */
|
|
3703
2766
|
get scrollStrategy(): CmatPopoverScrollStrategy;
|
|
3704
2767
|
set scrollStrategy(value: CmatPopoverScrollStrategy);
|
|
3705
|
-
/** Popover enter delay */
|
|
3706
2768
|
get enterDelay(): number;
|
|
3707
2769
|
set enterDelay(value: number);
|
|
3708
|
-
/** Popover leave delay */
|
|
3709
2770
|
get leaveDelay(): number;
|
|
3710
2771
|
set leaveDelay(value: number);
|
|
3711
|
-
/** Popover target offset x */
|
|
3712
2772
|
get xOffset(): number;
|
|
3713
2773
|
set xOffset(value: number);
|
|
3714
|
-
/** Popover target offset y */
|
|
3715
2774
|
get yOffset(): number;
|
|
3716
2775
|
set yOffset(value: number);
|
|
3717
|
-
/** Popover arrow offset x */
|
|
3718
2776
|
get arrowOffsetX(): number;
|
|
3719
2777
|
set arrowOffsetX(value: number);
|
|
3720
|
-
/** Popover arrow offset y */
|
|
3721
2778
|
get arrowOffsetY(): number;
|
|
3722
2779
|
set arrowOffsetY(value: number);
|
|
3723
|
-
/** Popover arrow width */
|
|
3724
2780
|
get arrowWidth(): number;
|
|
3725
2781
|
set arrowWidth(value: number);
|
|
3726
|
-
/** Popover arrow height */
|
|
3727
2782
|
get arrowHeight(): number;
|
|
3728
2783
|
set arrowHeight(value: number);
|
|
3729
|
-
/** Popover close on container click */
|
|
3730
2784
|
get closeOnPanelClick(): boolean;
|
|
3731
2785
|
set closeOnPanelClick(value: boolean);
|
|
3732
|
-
/** Popover close on backdrop click */
|
|
3733
2786
|
get closeOnBackdropClick(): boolean;
|
|
3734
2787
|
set closeOnBackdropClick(value: boolean);
|
|
3735
|
-
/** Disable animations of popover and all child elements */
|
|
3736
2788
|
get disableAnimation(): boolean;
|
|
3737
2789
|
set disableAnimation(value: boolean);
|
|
3738
|
-
/** Popover focus trap using cdkTrapFocus */
|
|
3739
2790
|
get focusTrapEnabled(): boolean;
|
|
3740
2791
|
set focusTrapEnabled(value: boolean);
|
|
3741
|
-
/** Popover focus trap auto capture using cdkTrapFocusAutoCapture */
|
|
3742
2792
|
get focusTrapAutoCaptureEnabled(): boolean;
|
|
3743
2793
|
set focusTrapAutoCaptureEnabled(value: boolean);
|
|
3744
|
-
/**
|
|
3745
|
-
* This method takes classes set on the host md-popover element and applies them on the
|
|
3746
|
-
* popover template that displays in the overlay container. Otherwise, it's difficult
|
|
3747
|
-
* to style the containing popover from outside the component.
|
|
3748
|
-
*
|
|
3749
|
-
* @param classes list of class names
|
|
3750
|
-
*/
|
|
3751
2794
|
set panelClass(classes: string);
|
|
3752
2795
|
ngOnDestroy(): void;
|
|
3753
|
-
/** Handle a keyboard event from the popover, delegating to the appropriate action. */
|
|
3754
2796
|
handleKeydown(event: KeyboardEvent): void;
|
|
3755
|
-
/**
|
|
3756
|
-
* This emits a close event to which the trigger is subscribed. When emitted, the
|
|
3757
|
-
* trigger will close the popover.
|
|
3758
|
-
*/
|
|
3759
2797
|
emitCloseEvent(): void;
|
|
3760
|
-
/** Close popover on click if closeOnPanelClick is true */
|
|
3761
2798
|
onClick(): void;
|
|
3762
|
-
/**
|
|
3763
|
-
* TODO: Refactor when @angular/cdk includes feature I mentioned on github see link below.
|
|
3764
|
-
* https://github.com/angular/material2/pull/5493#issuecomment-313085323
|
|
3765
|
-
*/
|
|
3766
|
-
/** Disables close of popover when leaving trigger element and mouse over the popover */
|
|
3767
2799
|
onMouseOver(): void;
|
|
3768
2800
|
onFocus(): void;
|
|
3769
|
-
/** Enables close of popover when mouse leaving popover element */
|
|
3770
2801
|
onMouseLeave(): void;
|
|
3771
|
-
/** Sets the current styles for the popover to allow for dynamically changing settings */
|
|
3772
2802
|
setCurrentStyles(pos?: CmatPopoverPosition): void;
|
|
3773
|
-
/**
|
|
3774
|
-
* It's necessary to set position-based classes to ensure the popover panel animation
|
|
3775
|
-
* folds out from the correct direction.
|
|
3776
|
-
*/
|
|
3777
2803
|
setPositionClasses(pos?: CmatPopoverPosition): void;
|
|
3778
2804
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPopoverComponent, never>;
|
|
3779
2805
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatPopoverComponent, "cmat-popover", ["cmatPopover"], { "popoverPanelStyles": { "alias": "popoverPanelStyles"; "required": false; }; "popoverArrowStyles": { "alias": "popoverArrowStyles"; "required": false; }; "popoverContentStyles": { "alias": "popoverContentStyles"; "required": false; }; "position": { "alias": "position"; "required": false; }; "triggerEvent": { "alias": "triggerEvent"; "required": false; }; "scrollStrategy": { "alias": "scrollStrategy"; "required": false; }; "enterDelay": { "alias": "enterDelay"; "required": false; }; "leaveDelay": { "alias": "leaveDelay"; "required": false; }; "xOffset": { "alias": "xOffset"; "required": false; }; "yOffset": { "alias": "yOffset"; "required": false; }; "arrowOffsetX": { "alias": "arrowOffsetX"; "required": false; }; "arrowOffsetY": { "alias": "arrowOffsetY"; "required": false; }; "arrowWidth": { "alias": "arrowWidth"; "required": false; }; "arrowHeight": { "alias": "arrowHeight"; "required": false; }; "closeOnPanelClick": { "alias": "closeOnPanelClick"; "required": false; }; "closeOnBackdropClick": { "alias": "closeOnBackdropClick"; "required": false; }; "disableAnimation": { "alias": "disableAnimation"; "required": false; }; "focusTrapEnabled": { "alias": "focusTrapEnabled"; "required": false; }; "focusTrapAutoCaptureEnabled": { "alias": "focusTrapAutoCaptureEnabled"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
3780
2806
|
}
|
|
3781
2807
|
|
|
3782
|
-
/**
|
|
3783
|
-
* This directive is intended to be used in conjunction with an cmat-popover tag. It is
|
|
3784
|
-
* responsible for toggling the display of the provided popover instance.
|
|
3785
|
-
*/
|
|
3786
2808
|
declare class CmatPopoverTriggerDirective implements OnChanges, AfterViewInit, OnDestroy {
|
|
3787
2809
|
ariaHaspopup: boolean;
|
|
3788
|
-
/** References the popover instance that the trigger is associated with. */
|
|
3789
2810
|
popover: CmatPopoverPanel;
|
|
3790
|
-
/** References the popover target instance that the trigger is associated with. */
|
|
3791
2811
|
targetElement: CmatTarget;
|
|
3792
|
-
/** Popover trigger event */
|
|
3793
2812
|
triggerEvent: CmatPopoverTriggerEvent;
|
|
3794
|
-
/** Event emitted when the associated popover is opened. */
|
|
3795
2813
|
popoverOpened: EventEmitter<void>;
|
|
3796
|
-
/** Event emitted when the associated popover is closed. */
|
|
3797
2814
|
popoverClosed: EventEmitter<void>;
|
|
3798
2815
|
popoverOpened$: Subject<void>;
|
|
3799
2816
|
popoverClosed$: Subject<void>;
|
|
@@ -3801,7 +2818,7 @@ declare class CmatPopoverTriggerDirective implements OnChanges, AfterViewInit, O
|
|
|
3801
2818
|
private _elementRef;
|
|
3802
2819
|
private _viewContainerRef;
|
|
3803
2820
|
private _dir;
|
|
3804
|
-
private
|
|
2821
|
+
private readonly _destroyRef;
|
|
3805
2822
|
private _portal;
|
|
3806
2823
|
private _overlayRef;
|
|
3807
2824
|
private _popoverOpen;
|
|
@@ -3811,10 +2828,7 @@ declare class CmatPopoverTriggerDirective implements OnChanges, AfterViewInit, O
|
|
|
3811
2828
|
private _detachmentsSubscription;
|
|
3812
2829
|
private _mouseoverTimer;
|
|
3813
2830
|
private _openedByMouse;
|
|
3814
|
-
private _onDestroy;
|
|
3815
|
-
/** Whether the popover is open. */
|
|
3816
2831
|
get popoverOpen(): boolean;
|
|
3817
|
-
/** The text direction of the containing app. */
|
|
3818
2832
|
get dir(): Direction$1;
|
|
3819
2833
|
onClick(): void;
|
|
3820
2834
|
onMouseEnter(): void;
|
|
@@ -3823,70 +2837,22 @@ declare class CmatPopoverTriggerDirective implements OnChanges, AfterViewInit, O
|
|
|
3823
2837
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3824
2838
|
ngAfterViewInit(): void;
|
|
3825
2839
|
ngOnDestroy(): void;
|
|
3826
|
-
/** Toggles the popover between the open and closed states. */
|
|
3827
2840
|
togglePopover(): void;
|
|
3828
|
-
/** Opens the popover. */
|
|
3829
2841
|
openPopover(): void;
|
|
3830
|
-
/** Closes the popover. */
|
|
3831
2842
|
closePopover(): void;
|
|
3832
|
-
/** Removes the popover from the DOM. */
|
|
3833
2843
|
destroyPopover(): void;
|
|
3834
|
-
/** Focuses the popover trigger. */
|
|
3835
2844
|
focus(): void;
|
|
3836
|
-
/**
|
|
3837
|
-
* This method ensures that the popover closes when the overlay backdrop is clicked.
|
|
3838
|
-
* We do not use first() here because doing so would not catch clicks from within
|
|
3839
|
-
* the popover, and it would fail to unsubscribe properly. Instead, we unsubscribe
|
|
3840
|
-
* explicitly when the popover is closed or destroyed.
|
|
3841
|
-
*/
|
|
3842
2845
|
private _subscribeToBackdrop;
|
|
3843
2846
|
private _subscribeToDetachments;
|
|
3844
|
-
/**
|
|
3845
|
-
* This method sets the popover state to open and focuses the first item if
|
|
3846
|
-
* the popover was opened via the keyboard.
|
|
3847
|
-
*/
|
|
3848
2847
|
private _initPopover;
|
|
3849
|
-
/**
|
|
3850
|
-
* This method resets the popover when it's closed, most importantly restoring
|
|
3851
|
-
* focus to the popover trigger if the popover was opened via the keyboard.
|
|
3852
|
-
*/
|
|
3853
2848
|
private _resetPopover;
|
|
3854
|
-
/** set state rather than toggle to support triggers sharing a popover */
|
|
3855
2849
|
private _setPopoverOpened;
|
|
3856
|
-
/** set state rather than toggle to support triggers sharing a popover */
|
|
3857
2850
|
private _setPopoverClosed;
|
|
3858
|
-
/**
|
|
3859
|
-
* This method checks that a valid instance of MdPopover has been passed into
|
|
3860
|
-
* mdPopoverTriggerFor. If not, an exception is thrown.
|
|
3861
|
-
*/
|
|
3862
2851
|
private _checkPopover;
|
|
3863
|
-
/**
|
|
3864
|
-
* This method creates the overlay from the provided popover's template and saves its
|
|
3865
|
-
* OverlayRef so that it can be attached to the DOM when openPopover is called.
|
|
3866
|
-
*/
|
|
3867
2852
|
private _createOverlay;
|
|
3868
|
-
/**
|
|
3869
|
-
* This method builds the configuration object needed to create the overlay, the OverlayConfig.
|
|
3870
|
-
*
|
|
3871
|
-
* @returns OverlayConfig
|
|
3872
|
-
*/
|
|
3873
2853
|
private _getOverlayConfig;
|
|
3874
|
-
/**
|
|
3875
|
-
* This method returns the scroll strategy used by the cdk/overlay.
|
|
3876
|
-
*/
|
|
3877
2854
|
private _getOverlayScrollStrategy;
|
|
3878
|
-
/**
|
|
3879
|
-
* Listens to changes in the position of the overlay and sets the correct classes
|
|
3880
|
-
* on the popover based on the new position. This ensures the animation origin is always
|
|
3881
|
-
* correct, even if a fallback position is used for the overlay.
|
|
3882
|
-
*/
|
|
3883
2855
|
private _subscribeToPositions;
|
|
3884
|
-
/**
|
|
3885
|
-
* This method builds the position strategy for the overlay, so the popover is properly connected
|
|
3886
|
-
* to the trigger.
|
|
3887
|
-
*
|
|
3888
|
-
* @returns ConnectedPositionStrategy
|
|
3889
|
-
*/
|
|
3890
2856
|
private _getPosition;
|
|
3891
2857
|
private _cleanUpSubscriptions;
|
|
3892
2858
|
private _setCurrentConfig;
|
|
@@ -3900,17 +2866,15 @@ declare class CmatPopoverTargetDirective {
|
|
|
3900
2866
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatPopoverTargetDirective, "cmat-popover-target, [cmatPopoverTarget]", ["cmatPopoverTarget"], {}, {}, never, never, true, never>;
|
|
3901
2867
|
}
|
|
3902
2868
|
|
|
3903
|
-
declare class CmatProgressBarComponent implements OnChanges, OnInit
|
|
2869
|
+
declare class CmatProgressBarComponent implements OnChanges, OnInit {
|
|
3904
2870
|
autoMode: boolean;
|
|
3905
|
-
mode:
|
|
3906
|
-
progress: number | null
|
|
3907
|
-
show: boolean
|
|
2871
|
+
readonly mode: i0.WritableSignal<"determinate" | "indeterminate">;
|
|
2872
|
+
readonly progress: i0.WritableSignal<number | null>;
|
|
2873
|
+
readonly show: i0.WritableSignal<boolean>;
|
|
3908
2874
|
private _cmatLoadingService;
|
|
3909
|
-
private
|
|
3910
|
-
private _unsubscribeAll;
|
|
2875
|
+
private readonly _destroyRef;
|
|
3911
2876
|
ngOnChanges(changes: SimpleChanges): void;
|
|
3912
2877
|
ngOnInit(): void;
|
|
3913
|
-
ngOnDestroy(): void;
|
|
3914
2878
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatProgressBarComponent, never>;
|
|
3915
2879
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatProgressBarComponent, "cmat-progress-bar", ["cmatProgressBar"], { "autoMode": { "alias": "autoMode"; "required": false; }; }, {}, never, never, true, never>;
|
|
3916
2880
|
}
|
|
@@ -3963,14 +2927,13 @@ declare class CmatRatingComponent implements MatFormFieldControl<any>, ControlVa
|
|
|
3963
2927
|
color?: string;
|
|
3964
2928
|
showMode?: 'horizontal' | 'vertical';
|
|
3965
2929
|
valueChange: EventEmitter<any>;
|
|
3966
|
-
starArray: number[]
|
|
3967
|
-
currentValue: number
|
|
2930
|
+
readonly starArray: i0.WritableSignal<number[]>;
|
|
2931
|
+
readonly currentValue: i0.WritableSignal<number>;
|
|
3968
2932
|
readonly stateChanges: Subject<void>;
|
|
3969
2933
|
focused: boolean;
|
|
3970
2934
|
touched: boolean;
|
|
3971
2935
|
controlType: string;
|
|
3972
2936
|
ngControl: NgControl;
|
|
3973
|
-
private _changeDetectorRef;
|
|
3974
2937
|
constructor();
|
|
3975
2938
|
onModelChange: (value: any) => void;
|
|
3976
2939
|
onTouchedChange: () => any;
|
|
@@ -4007,30 +2970,16 @@ declare class CmatRatingComponent implements MatFormFieldControl<any>, ControlVa
|
|
|
4007
2970
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatRatingComponent, "cmat-rating", ["cmatRating"], { "id": { "alias": "id"; "required": false; }; "stars": { "alias": "stars"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "hover": { "alias": "hover"; "required": false; }; "half": { "alias": "half"; "required": false; }; "color": { "alias": "color"; "required": false; }; "showMode": { "alias": "showMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
4008
2971
|
}
|
|
4009
2972
|
|
|
4010
|
-
declare class
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
|
|
4018
|
-
|
|
4019
|
-
|
|
4020
|
-
* 主题色。
|
|
4021
|
-
*/
|
|
4022
|
-
tone: 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
4023
|
-
/**
|
|
4024
|
-
* 是否显示圆点。
|
|
4025
|
-
*/
|
|
4026
|
-
dot: boolean;
|
|
4027
|
-
hostClass: string;
|
|
4028
|
-
/**
|
|
4029
|
-
* 计算样式类。
|
|
4030
|
-
*/
|
|
4031
|
-
get classMap(): Record<string, boolean>;
|
|
4032
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatStatusTagComponent, never>;
|
|
4033
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatStatusTagComponent, "cmat-status-tag", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "tone": { "alias": "tone"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; }, {}, never, never, true, never>;
|
|
2973
|
+
declare class CmatRichTextEditorComponent implements OnChanges {
|
|
2974
|
+
value: string;
|
|
2975
|
+
placeholder: string;
|
|
2976
|
+
readOnly: boolean;
|
|
2977
|
+
theme: string;
|
|
2978
|
+
minHeight: string;
|
|
2979
|
+
control: FormControl<string | null>;
|
|
2980
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
2981
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatRichTextEditorComponent, never>;
|
|
2982
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatRichTextEditorComponent, "cmat-rich-text-editor", never, { "value": { "alias": "value"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
4034
2983
|
}
|
|
4035
2984
|
|
|
4036
2985
|
declare class CmatSelectNoEntriesFoundDirective {
|
|
@@ -4043,7 +2992,7 @@ declare class CmatSelectSearchClearDirective {
|
|
|
4043
2992
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatSelectSearchClearDirective, "[cmatSelectSearchClear]", never, {}, {}, never, never, true, never>;
|
|
4044
2993
|
}
|
|
4045
2994
|
|
|
4046
|
-
declare class CmatSelectSearchComponent implements OnInit,
|
|
2995
|
+
declare class CmatSelectSearchComponent implements OnInit, ControlValueAccessor {
|
|
4047
2996
|
placeholderLabel: string;
|
|
4048
2997
|
type: string;
|
|
4049
2998
|
noEntriesFoundLabel: string;
|
|
@@ -4055,17 +3004,13 @@ declare class CmatSelectSearchComponent implements OnInit, OnDestroy, ControlVal
|
|
|
4055
3004
|
preventHomeEndKeyPropagation: boolean;
|
|
4056
3005
|
disableScrollToActiveOnOptionsChanged: boolean;
|
|
4057
3006
|
ariaLabel: string;
|
|
4058
|
-
/** Whether to show Select All Checkbox (for mat-select[multi=true]) */
|
|
4059
3007
|
showToggleAllCheckbox: boolean;
|
|
4060
|
-
/** select all checkbox checked state */
|
|
4061
3008
|
toggleAllCheckboxChecked: boolean;
|
|
4062
|
-
/** select all checkbox indeterminate state */
|
|
4063
3009
|
toggleAllCheckboxIndeterminate: boolean;
|
|
4064
3010
|
toggleAllCheckboxTooltipMessage: string;
|
|
4065
3011
|
toggleAllCheckboxTooltipPosition: 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
|
|
4066
3012
|
hideClearSearchButton: boolean;
|
|
4067
3013
|
alwaysRestoreSelectedOptionsMulti: boolean;
|
|
4068
|
-
/** Output emitter to send to parent component with the toggle all boolean */
|
|
4069
3014
|
toggleAll: EventEmitter<boolean>;
|
|
4070
3015
|
searchSelectInput: ElementRef;
|
|
4071
3016
|
innerSelectSearch: ElementRef;
|
|
@@ -4074,20 +3019,18 @@ declare class CmatSelectSearchComponent implements OnInit, OnDestroy, ControlVal
|
|
|
4074
3019
|
formControl: FormControl;
|
|
4075
3020
|
protected matSelect: MatSelect;
|
|
4076
3021
|
protected matFormField: MatFormField | null;
|
|
4077
|
-
private _changeDetectorRef;
|
|
4078
3022
|
private _viewportRuler;
|
|
4079
3023
|
private _matOption;
|
|
4080
3024
|
private _defaultOptions;
|
|
3025
|
+
private readonly _destroyRef;
|
|
4081
3026
|
private _options$;
|
|
4082
3027
|
private _lastExternalInputValue?;
|
|
4083
3028
|
private _optionsList$;
|
|
4084
3029
|
private _optionsLength$;
|
|
4085
3030
|
private _previousSelectedValues;
|
|
4086
|
-
private _onDestroy;
|
|
4087
|
-
/** Reference to active descendant for ARIA Support. */
|
|
4088
3031
|
private _activeDescendant?;
|
|
4089
3032
|
constructor();
|
|
4090
|
-
|
|
3033
|
+
readonly showNoEntriesFound: i0.WritableSignal<boolean>;
|
|
4091
3034
|
showNoEntriesFound$: Observable<boolean>;
|
|
4092
3035
|
get isInsideMatOption(): boolean;
|
|
4093
3036
|
get value(): string;
|
|
@@ -4096,13 +3039,8 @@ declare class CmatSelectSearchComponent implements OnInit, OnDestroy, ControlVal
|
|
|
4096
3039
|
onTouched: () => any;
|
|
4097
3040
|
ngOnInit(): void;
|
|
4098
3041
|
emitSelectAllBooleanToParent(state: boolean): void;
|
|
4099
|
-
ngOnDestroy(): void;
|
|
4100
3042
|
isToggleAllCheckboxVisible(): boolean;
|
|
4101
3043
|
handleKeydown(event: KeyboardEvent): void;
|
|
4102
|
-
/**
|
|
4103
|
-
* Handles the key up event with MatSelect.
|
|
4104
|
-
* Allows e.g. the announcing of the currently activeDescendant by screen readers.
|
|
4105
|
-
*/
|
|
4106
3044
|
handleKeyup(event: KeyboardEvent): void;
|
|
4107
3045
|
writeValue(value: string): void;
|
|
4108
3046
|
onBlur(): void;
|
|
@@ -4116,30 +3054,25 @@ declare class CmatSelectSearchComponent implements OnInit, OnDestroy, ControlVal
|
|
|
4116
3054
|
private _unselectActiveDescendant;
|
|
4117
3055
|
private _applyDefaultOptions;
|
|
4118
3056
|
private _initMultipleHandling;
|
|
4119
|
-
/**
|
|
4120
|
-
* Scrolls the currently active option into the view if it is not yet visible.
|
|
4121
|
-
*/
|
|
4122
3057
|
private _adjustScrollTopToFitActiveOptionIntoView;
|
|
4123
3058
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectSearchComponent, never>;
|
|
4124
3059
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectSearchComponent, "cmat-select-search", ["cmatSelectSearch"], { "placeholderLabel": { "alias": "placeholderLabel"; "required": false; }; "type": { "alias": "type"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "showNoFoundLabel": { "alias": "showNoFoundLabel"; "required": false; }; "clearSearchInput": { "alias": "clearSearchInput"; "required": false; }; "searching": { "alias": "searching"; "required": false; }; "disableInitialFocus": { "alias": "disableInitialFocus"; "required": false; }; "enableClearOnEscapePressed": { "alias": "enableClearOnEscapePressed"; "required": false; }; "preventHomeEndKeyPropagation": { "alias": "preventHomeEndKeyPropagation"; "required": false; }; "disableScrollToActiveOnOptionsChanged": { "alias": "disableScrollToActiveOnOptionsChanged"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "showToggleAllCheckbox": { "alias": "showToggleAllCheckbox"; "required": false; }; "toggleAllCheckboxChecked": { "alias": "toggleAllCheckboxChecked"; "required": false; }; "toggleAllCheckboxIndeterminate": { "alias": "toggleAllCheckboxIndeterminate"; "required": false; }; "toggleAllCheckboxTooltipMessage": { "alias": "toggleAllCheckboxTooltipMessage"; "required": false; }; "toggleAllCheckboxTooltipPosition": { "alias": "toggleAllCheckboxTooltipPosition"; "required": false; }; "hideClearSearchButton": { "alias": "hideClearSearchButton"; "required": false; }; "alwaysRestoreSelectedOptionsMulti": { "alias": "alwaysRestoreSelectedOptionsMulti"; "required": false; }; }, { "toggleAll": "toggleAll"; }, ["clearIcon", "noEntriesFound"], ["[cmatSelectSearchClear]", ".cmat-select-search-custom-header-content", "[cmatSelectNoEntriesFound]"], true, never>;
|
|
4125
3060
|
}
|
|
4126
3061
|
|
|
4127
|
-
/** List of inputs of CmatSelectSearchComponent that can be configured with a global default. */
|
|
4128
3062
|
declare const configurableDefaultOptions: readonly ["ariaLabel", "clearSearchInput", "disableInitialFocus", "disableScrollToActiveOnOptionsChanged", "enableClearOnEscapePressed", "hideClearSearchButton", "noEntriesFoundLabel", "placeholderLabel", "preventHomeEndKeyPropagation", "searching"];
|
|
4129
3063
|
type ConfigurableDefaultOptions = typeof configurableDefaultOptions[number];
|
|
4130
3064
|
declare const MAT_SELECTSEARCH_DEFAULT_OPTIONS: InjectionToken<Readonly<Partial<Pick<CmatSelectSearchComponent, "ariaLabel" | "clearSearchInput" | "disableInitialFocus" | "disableScrollToActiveOnOptionsChanged" | "enableClearOnEscapePressed" | "hideClearSearchButton" | "noEntriesFoundLabel" | "placeholderLabel" | "preventHomeEndKeyPropagation" | "searching">>>>;
|
|
4131
|
-
/** Global configurable options for MatSelectSearch. */
|
|
4132
3065
|
type MatSelectSearchOptions = Readonly<Partial<Pick<CmatSelectSearchComponent, ConfigurableDefaultOptions>>>;
|
|
4133
3066
|
|
|
4134
3067
|
interface CmatSelectTableRow {
|
|
4135
|
-
[key: string]:
|
|
3068
|
+
[key: string]: unknown;
|
|
4136
3069
|
id: string | number | null | undefined;
|
|
4137
3070
|
}
|
|
4138
3071
|
interface CmatSelectTableFilter {
|
|
4139
3072
|
enabled?: boolean;
|
|
4140
3073
|
type: 'string' | 'number';
|
|
4141
3074
|
comparator?: 'equalsIgnoreCase' | 'equals' | 'containsIgnoreCase' | 'contains' | 'startsWithIgnoreCase' | 'startsWith';
|
|
4142
|
-
comparatorFn?: (value:
|
|
3075
|
+
comparatorFn?: (value: string | number | boolean | null | undefined, filterValue: string | number | boolean | null | undefined, row: CmatSelectTableRow) => boolean;
|
|
4143
3076
|
}
|
|
4144
3077
|
interface CmatSelectTableColumn {
|
|
4145
3078
|
key: string;
|
|
@@ -4170,29 +3103,30 @@ declare class CmatSelectTableComponent implements MatFormFieldControl<any>, Cont
|
|
|
4170
3103
|
defaultSort: Sort;
|
|
4171
3104
|
resetOptionAction: () => void;
|
|
4172
3105
|
keyParam: string;
|
|
4173
|
-
compareWith: (o1:
|
|
3106
|
+
compareWith: (o1: CmatSelectTableRow | null, o2: CmatSelectTableRow | null) => boolean;
|
|
4174
3107
|
closed: EventEmitter<boolean>;
|
|
4175
3108
|
private _matSelectSearch;
|
|
4176
3109
|
private _sort;
|
|
4177
3110
|
private _table;
|
|
4178
3111
|
private _matOptions;
|
|
4179
|
-
tableDataSource: CmatSelectTableRow[]
|
|
4180
|
-
tableColumns: string[]
|
|
3112
|
+
readonly tableDataSource: i0.WritableSignal<CmatSelectTableRow[]>;
|
|
3113
|
+
readonly tableColumns: i0.WritableSignal<string[]>;
|
|
4181
3114
|
tableColumnsMap: Map<string, CmatSelectTableColumn>;
|
|
3115
|
+
private readonly _rowById;
|
|
3116
|
+
private _columnKeys;
|
|
4182
3117
|
filteredOutRows: Record<string, CmatSelectTableRow>;
|
|
4183
3118
|
completeRowList: CmatSelectTableRow[];
|
|
4184
|
-
overallSearchVisibleState: boolean
|
|
3119
|
+
readonly overallSearchVisibleState: i0.WritableSignal<boolean>;
|
|
4185
3120
|
overallFilterControl: FormControl;
|
|
4186
3121
|
selectControl: FormControl;
|
|
4187
3122
|
readonly stateChanges: Subject<void>;
|
|
4188
3123
|
focused: boolean;
|
|
4189
3124
|
touched: boolean;
|
|
4190
3125
|
ngControl: NgControl;
|
|
4191
|
-
private
|
|
3126
|
+
private readonly _destroyRef;
|
|
4192
3127
|
private _matSelect;
|
|
4193
3128
|
private _filterControls;
|
|
4194
3129
|
private _nullRow;
|
|
4195
|
-
private _unsubscribeAll;
|
|
4196
3130
|
private _completeValueList;
|
|
4197
3131
|
constructor();
|
|
4198
3132
|
set matSelect(m: MatSelect);
|
|
@@ -4227,8 +3161,10 @@ declare class CmatSelectTableComponent implements MatFormFieldControl<any>, Cont
|
|
|
4227
3161
|
openedChange(opened: boolean): void;
|
|
4228
3162
|
filterFormControl(key: string): FormControl;
|
|
4229
3163
|
simpleTriggerLabelFn(value: CmatSelectTableRow[]): string;
|
|
3164
|
+
getTriggerLabel(): string;
|
|
4230
3165
|
toggleOverallSearch(): void;
|
|
4231
3166
|
addNullRow(): boolean;
|
|
3167
|
+
get hasNullRow(): boolean;
|
|
4232
3168
|
private _onModelChange;
|
|
4233
3169
|
private _onTouchedChange;
|
|
4234
3170
|
private _init;
|
|
@@ -4239,6 +3175,15 @@ declare class CmatSelectTableComponent implements MatFormFieldControl<any>, Cont
|
|
|
4239
3175
|
private _sortingDataAccessor;
|
|
4240
3176
|
private _sortData;
|
|
4241
3177
|
private _checkAndResetSelection;
|
|
3178
|
+
private _matchesColumnFilter;
|
|
3179
|
+
private _buildTableOptions;
|
|
3180
|
+
private _getMatOptionById;
|
|
3181
|
+
private _expandPanelForTableRows;
|
|
3182
|
+
private _getCommittedValue;
|
|
3183
|
+
private _syncMatSelectValue;
|
|
3184
|
+
private _removeFilteredRow;
|
|
3185
|
+
private _resolveTriggerLabel;
|
|
3186
|
+
private _getTriggerRows;
|
|
4242
3187
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTableComponent, never>;
|
|
4243
3188
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSelectTableComponent, "cmat-select-table", ["cmatSelectTable"], { "id": { "alias": "id"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "showNoFoundLabel": { "alias": "showNoFoundLabel"; "required": false; }; "isPhone": { "alias": "isPhone"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "overallSearchEnabled": { "alias": "overallSearchEnabled"; "required": false; }; "overallSearchVisible": { "alias": "overallSearchVisible"; "required": false; }; "resetSortOnOpen": { "alias": "resetSortOnOpen"; "required": false; }; "resetFiltersOnOpen": { "alias": "resetFiltersOnOpen"; "required": false; }; "customTriggerLabelFn": { "alias": "customTriggerLabelFn"; "required": false; }; "triggerLabelSort": { "alias": "triggerLabelSort"; "required": false; }; "customTriggerLabelTemplate": { "alias": "customTriggerLabelTemplate"; "required": false; }; "canNull": { "alias": "canNull"; "required": false; }; "defaultSort": { "alias": "defaultSort"; "required": false; }; "resetOptionAction": { "alias": "resetOptionAction"; "required": false; }; "keyParam": { "alias": "keyParam"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "closed": "closed"; }, never, never, true, never>;
|
|
4244
3189
|
}
|
|
@@ -4256,6 +3201,8 @@ declare class CmatSelectTreeNode {
|
|
|
4256
3201
|
name: string;
|
|
4257
3202
|
}
|
|
4258
3203
|
|
|
3204
|
+
type CmatSelectTreeValueItem = CmatSelectTreeNode | CmatSelectTreeFlatNode;
|
|
3205
|
+
type CmatSelectTreeValue = CmatSelectTreeValueItem[] | CmatSelectTreeValueItem | null;
|
|
4259
3206
|
declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, ControlValueAccessor, OnChanges, AfterViewInit, OnDestroy {
|
|
4260
3207
|
id: string;
|
|
4261
3208
|
dataSource: CmatSelectTreeNode[];
|
|
@@ -4264,30 +3211,31 @@ declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, Contr
|
|
|
4264
3211
|
multiple: boolean;
|
|
4265
3212
|
overallSearchEnabled: boolean;
|
|
4266
3213
|
canNull: boolean;
|
|
4267
|
-
customTriggerLabelFn
|
|
3214
|
+
customTriggerLabelFn?: (value: CmatSelectTreeFlatNode[]) => string;
|
|
4268
3215
|
customTriggerLabelTemplate: string;
|
|
4269
3216
|
expandable: boolean;
|
|
4270
3217
|
showToggleAllCheckbox: boolean;
|
|
4271
|
-
compareWith: (o1:
|
|
3218
|
+
compareWith: (o1: CmatSelectTreeNode | CmatSelectTreeFlatNode | null, o2: CmatSelectTreeNode | CmatSelectTreeFlatNode | null) => boolean;
|
|
4272
3219
|
flatNodeMap: Map<CmatSelectTreeFlatNode, CmatSelectTreeNode>;
|
|
4273
3220
|
nestedNodeMap: Map<CmatSelectTreeNode, CmatSelectTreeFlatNode>;
|
|
4274
|
-
|
|
3221
|
+
private readonly _flatNodeById;
|
|
3222
|
+
private readonly _parentFlatNodeById;
|
|
3223
|
+
private readonly _selectedFlatNodeIds;
|
|
4275
3224
|
checklistSelection: SelectionModel<CmatSelectTreeFlatNode>;
|
|
4276
|
-
treeDataSource: CmatSelectTreeNode[]
|
|
4277
|
-
dataFlatNodes: CmatSelectTreeFlatNode[]
|
|
3225
|
+
readonly treeDataSource: i0.WritableSignal<CmatSelectTreeNode[]>;
|
|
3226
|
+
readonly dataFlatNodes: i0.WritableSignal<CmatSelectTreeFlatNode[]>;
|
|
4278
3227
|
overallFilterControl: FormControl;
|
|
4279
|
-
isIndeterminate: boolean
|
|
4280
|
-
isChecked: boolean
|
|
4281
|
-
checkCount: number
|
|
3228
|
+
readonly isIndeterminate: i0.WritableSignal<boolean>;
|
|
3229
|
+
readonly isChecked: i0.WritableSignal<boolean>;
|
|
3230
|
+
readonly checkCount: i0.WritableSignal<number>;
|
|
4282
3231
|
selectControl: FormControl;
|
|
4283
|
-
matSelectData:
|
|
3232
|
+
readonly matSelectData: i0.WritableSignal<CmatSelectTreeFlatNode[]>;
|
|
4284
3233
|
readonly stateChanges: Subject<void>;
|
|
4285
3234
|
focused: boolean;
|
|
4286
3235
|
touched: boolean;
|
|
4287
3236
|
ngControl: NgControl;
|
|
4288
|
-
private
|
|
3237
|
+
private readonly _destroyRef;
|
|
4289
3238
|
private _matSelect;
|
|
4290
|
-
private _unsubscribeAll;
|
|
4291
3239
|
constructor();
|
|
4292
3240
|
tree: CdkTree<CmatSelectTreeNode>;
|
|
4293
3241
|
set matSelect(m: MatSelect);
|
|
@@ -4301,9 +3249,9 @@ declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, Contr
|
|
|
4301
3249
|
get placeholder(): string;
|
|
4302
3250
|
set placeholder(value: string);
|
|
4303
3251
|
private _placeholder;
|
|
4304
|
-
get value():
|
|
4305
|
-
set value(value:
|
|
4306
|
-
protected _value:
|
|
3252
|
+
get value(): CmatSelectTreeValue;
|
|
3253
|
+
set value(value: CmatSelectTreeValue);
|
|
3254
|
+
protected _value: CmatSelectTreeValue;
|
|
4307
3255
|
get empty(): boolean;
|
|
4308
3256
|
get errorState(): boolean;
|
|
4309
3257
|
get shouldLabelFloat(): boolean;
|
|
@@ -4313,24 +3261,20 @@ declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, Contr
|
|
|
4313
3261
|
get disabled(): boolean;
|
|
4314
3262
|
set disabled(value: BooleanInput);
|
|
4315
3263
|
protected _disabled: boolean;
|
|
4316
|
-
registerOnChange(fn:
|
|
4317
|
-
registerOnTouched(fn:
|
|
3264
|
+
registerOnChange(fn: (value: CmatSelectTreeValue) => void): void;
|
|
3265
|
+
registerOnTouched(fn: () => void): void;
|
|
4318
3266
|
setDisabledState(isDisabled: boolean): void;
|
|
4319
3267
|
setDescribedByIds(ids: string[]): void;
|
|
4320
3268
|
onContainerClick(): void;
|
|
4321
3269
|
onFocusIn(): void;
|
|
4322
3270
|
onFocusOut(event: FocusEvent): void;
|
|
4323
|
-
writeValue(value:
|
|
3271
|
+
writeValue(value: CmatSelectTreeValue): void;
|
|
4324
3272
|
simpleTriggerLabelFn(value: CmatSelectTreeFlatNode[]): string;
|
|
4325
3273
|
openedChange(opened: boolean): void;
|
|
4326
|
-
/** Whether all the descendants of the node are selected. */
|
|
4327
3274
|
descendantsAllSelected(node: CmatSelectTreeFlatNode): boolean;
|
|
4328
|
-
/** Whether part of the descendants are selected */
|
|
4329
3275
|
descendantsPartiallySelected(node: CmatSelectTreeFlatNode): boolean;
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
/** Toggle a leaf to-do item selection. Check all the parents to see if they changed */
|
|
4333
|
-
todoLeafItemSelectionToggle(event: any, node: CmatSelectTreeFlatNode): void;
|
|
3276
|
+
todoItemSelectionToggle(event: MouseEvent, node: CmatSelectTreeFlatNode): void;
|
|
3277
|
+
todoLeafItemSelectionToggle(event: MouseEvent, node: CmatSelectTreeFlatNode): void;
|
|
4334
3278
|
clearSelection(): void;
|
|
4335
3279
|
toggleSelectAll(selectAllValue: boolean): void;
|
|
4336
3280
|
getChecklistSelectionIsSelected(i: CmatSelectTreeNode): boolean;
|
|
@@ -4338,7 +3282,6 @@ declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, Contr
|
|
|
4338
3282
|
private _onTouchedChange;
|
|
4339
3283
|
private _init;
|
|
4340
3284
|
private _checkAllParentsSelection;
|
|
4341
|
-
/** Check root node checked state and change it accordingly */
|
|
4342
3285
|
private _checkRootNodeSelection;
|
|
4343
3286
|
private _getParentNode;
|
|
4344
3287
|
private _updateChecklistSelection;
|
|
@@ -4346,6 +3289,8 @@ declare class CmatSelectTreeComponent implements MatFormFieldControl<any>, Contr
|
|
|
4346
3289
|
private _applyColumnLevelFilters;
|
|
4347
3290
|
private _updateCheckState;
|
|
4348
3291
|
private _getFlattenNodes;
|
|
3292
|
+
private _cloneTreeNodes;
|
|
3293
|
+
private _syncSelectedFlatNodeIds;
|
|
4349
3294
|
private _transformer;
|
|
4350
3295
|
private _getDescendants;
|
|
4351
3296
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSelectTreeComponent, never>;
|
|
@@ -4356,12 +3301,11 @@ type Direction = 'up' | 'down' | 'left' | 'right';
|
|
|
4356
3301
|
type AnimationMode = 'fling' | 'scale';
|
|
4357
3302
|
declare class CmatSpeedDialActionsComponent implements AfterContentInit {
|
|
4358
3303
|
private _buttons;
|
|
4359
|
-
miniFabVisible: boolean
|
|
3304
|
+
readonly miniFabVisible: i0.WritableSignal<boolean>;
|
|
4360
3305
|
private readonly _renderer;
|
|
4361
3306
|
private readonly _parent;
|
|
4362
3307
|
private _showMiniFabAnimation;
|
|
4363
3308
|
private _hideMiniFab;
|
|
4364
|
-
private _changeDetectorRef;
|
|
4365
3309
|
ngAfterContentInit(): void;
|
|
4366
3310
|
show(): void;
|
|
4367
3311
|
hide(): void;
|
|
@@ -4413,6 +3357,26 @@ declare class CmatSpeedDialTriggerComponent {
|
|
|
4413
3357
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatSpeedDialTriggerComponent, "cmat-speed-dial-trigger", never, { "spin": { "alias": "spin"; "required": false; }; }, {}, never, ["[matFab]"], true, never>;
|
|
4414
3358
|
}
|
|
4415
3359
|
|
|
3360
|
+
declare class CmatStatusTagComponent {
|
|
3361
|
+
label: string;
|
|
3362
|
+
variant: 'soft' | 'filled' | 'outline';
|
|
3363
|
+
tone: 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
|
|
3364
|
+
dot: boolean;
|
|
3365
|
+
hostClass: string;
|
|
3366
|
+
get classMap(): Record<string, boolean>;
|
|
3367
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatStatusTagComponent, never>;
|
|
3368
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatStatusTagComponent, "cmat-status-tag", never, { "label": { "alias": "label"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "tone": { "alias": "tone"; "required": false; }; "dot": { "alias": "dot"; "required": false; }; }, {}, never, never, true, never>;
|
|
3369
|
+
}
|
|
3370
|
+
|
|
3371
|
+
declare class CmatTableToolbarComponent {
|
|
3372
|
+
title: string;
|
|
3373
|
+
description: string;
|
|
3374
|
+
count: number;
|
|
3375
|
+
showCount: boolean;
|
|
3376
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTableToolbarComponent, never>;
|
|
3377
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTableToolbarComponent, "cmat-table-toolbar", never, { "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "count": { "alias": "count"; "required": false; }; "showCount": { "alias": "showCount"; "required": false; }; }, {}, never, ["[cmatTableToolbarActions]"], true, never>;
|
|
3378
|
+
}
|
|
3379
|
+
|
|
4416
3380
|
declare class CmatTimelineItemIconDirective {
|
|
4417
3381
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTimelineItemIconDirective, never>;
|
|
4418
3382
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatTimelineItemIconDirective, "ng-template[cmatTimelineItemIcon]", never, {}, {}, never, never, true, never>;
|
|
@@ -4439,14 +3403,14 @@ declare class CmatTimelineItemComponent {
|
|
|
4439
3403
|
|
|
4440
3404
|
type CMAT_TIMELINE_POSITION = 'start' | 'end' | 'center' | 'center-alt';
|
|
4441
3405
|
type CMAT_TIMELINE_ORIENTATION = 'vertical' | 'horizontal';
|
|
4442
|
-
declare class CmatTimelineComponent implements OnInit
|
|
3406
|
+
declare class CmatTimelineComponent implements OnInit {
|
|
4443
3407
|
readonly items: QueryList<CmatTimelineItemComponent>;
|
|
4444
3408
|
readonly class = "cmat-timeline";
|
|
4445
3409
|
private _host;
|
|
3410
|
+
private readonly _destroyRef;
|
|
4446
3411
|
private _reverse;
|
|
4447
3412
|
private _position;
|
|
4448
3413
|
private _orientation;
|
|
4449
|
-
private _unsubscribeAll;
|
|
4450
3414
|
get isStartPosition(): boolean;
|
|
4451
3415
|
get isEndPosition(): boolean;
|
|
4452
3416
|
get isCenterPosition(): boolean;
|
|
@@ -4458,7 +3422,6 @@ declare class CmatTimelineComponent implements OnInit, OnDestroy {
|
|
|
4458
3422
|
set orientation(orientation: CMAT_TIMELINE_ORIENTATION);
|
|
4459
3423
|
set reverse(reverse: boolean);
|
|
4460
3424
|
ngOnInit(): void;
|
|
4461
|
-
ngOnDestroy(): void;
|
|
4462
3425
|
updateLayout(): void;
|
|
4463
3426
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTimelineComponent, never>;
|
|
4464
3427
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTimelineComponent, "cmat-timeline", ["cmatTimeLine"], { "position": { "alias": "position"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "reverse": { "alias": "reverse"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
@@ -4495,9 +3458,8 @@ interface CmatToastModel extends GlobalConfigModel {
|
|
|
4495
3458
|
declare class CmatToastModalComponent implements AfterViewInit {
|
|
4496
3459
|
toast: CmatToastModel;
|
|
4497
3460
|
closeToastEvent: EventEmitter<number>;
|
|
4498
|
-
progressPercent: number
|
|
3461
|
+
readonly progressPercent: i0.WritableSignal<number>;
|
|
4499
3462
|
timeout: number;
|
|
4500
|
-
private _ref;
|
|
4501
3463
|
private _progressInterval;
|
|
4502
3464
|
private _startTime;
|
|
4503
3465
|
ngAfterViewInit(): void;
|
|
@@ -4522,6 +3484,7 @@ declare class CmatToastComponent implements OnInit {
|
|
|
4522
3484
|
declare class CmatToastService {
|
|
4523
3485
|
toasts: CmatToastModel[];
|
|
4524
3486
|
private _positionSubject;
|
|
3487
|
+
private readonly _position$;
|
|
4525
3488
|
private _toastPopSubject;
|
|
4526
3489
|
private _globalConfigs;
|
|
4527
3490
|
private _counter;
|
|
@@ -4542,16 +3505,12 @@ declare class CmatToastService {
|
|
|
4542
3505
|
static ɵprov: i0.ɵɵInjectableDeclaration<CmatToastService>;
|
|
4543
3506
|
}
|
|
4544
3507
|
|
|
4545
|
-
/**
|
|
4546
|
-
* Node for Transfer item
|
|
4547
|
-
*/
|
|
4548
3508
|
declare class CmatTransferItemNode {
|
|
4549
3509
|
[key: string]: any;
|
|
4550
3510
|
children?: CmatTransferItemNode[];
|
|
4551
3511
|
label: string;
|
|
4552
3512
|
value: string | number;
|
|
4553
3513
|
}
|
|
4554
|
-
/** Flat Transfer item node with expandable and level information */
|
|
4555
3514
|
declare class CmatTransferItemFlatNode {
|
|
4556
3515
|
label: string;
|
|
4557
3516
|
value: string | number;
|
|
@@ -4585,7 +3544,7 @@ interface CmatSourceOptions {
|
|
|
4585
3544
|
}
|
|
4586
3545
|
|
|
4587
3546
|
declare class CmatTransferPickerFilterComponent implements OnInit {
|
|
4588
|
-
filters: CmatTransferFilterItem[];
|
|
3547
|
+
filters: CmatTransferFilterItem[] | undefined;
|
|
4589
3548
|
overlayOrigin: CdkOverlayOrigin;
|
|
4590
3549
|
filterTemplate: CdkPortal;
|
|
4591
3550
|
overlayRef: OverlayRef;
|
|
@@ -4603,7 +3562,7 @@ declare class CmatTransferPickerFilterComponent implements OnInit {
|
|
|
4603
3562
|
}
|
|
4604
3563
|
|
|
4605
3564
|
declare class CmatTransferPickerSearchComponent implements OnInit {
|
|
4606
|
-
searchPlaceholder: string;
|
|
3565
|
+
searchPlaceholder: string | undefined;
|
|
4607
3566
|
keyword: FormControl;
|
|
4608
3567
|
private _service;
|
|
4609
3568
|
constructor();
|
|
@@ -4613,58 +3572,53 @@ declare class CmatTransferPickerSearchComponent implements OnInit {
|
|
|
4613
3572
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTransferPickerSearchComponent, "cmat-transfer-picker-search", ["cmatTransferPickerSearch"], { "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; }, {}, never, never, true, never>;
|
|
4614
3573
|
}
|
|
4615
3574
|
|
|
4616
|
-
declare class CmatTransferPickerSourceComponent implements OnInit, AfterViewInit
|
|
3575
|
+
declare class CmatTransferPickerSourceComponent implements OnInit, AfterViewInit {
|
|
4617
3576
|
tree: CdkTree<CmatTransferItemNode>;
|
|
4618
|
-
/** Map from nested node to flattened node. This helps us to keep the same object for selection */
|
|
4619
3577
|
nestedNodeMap: Map<CmatTransferItemNode, CmatTransferItemFlatNode>;
|
|
4620
|
-
dataSource: CmatTransferItemNode[]
|
|
4621
|
-
dataFlatNodes: CmatTransferItemFlatNode[]
|
|
4622
|
-
/** The selection for checklist */
|
|
3578
|
+
readonly dataSource: i0.WritableSignal<CmatTransferItemNode[]>;
|
|
3579
|
+
readonly dataFlatNodes: i0.WritableSignal<CmatTransferItemFlatNode[]>;
|
|
4623
3580
|
checklistSelection: SelectionModel<CmatTransferItemFlatNode>;
|
|
4624
|
-
options: CmatSourceOptions
|
|
4625
|
-
|
|
3581
|
+
readonly options: i0.WritableSignal<CmatSourceOptions>;
|
|
3582
|
+
readonly committedSelection: i0.WritableSignal<CmatTransferItemFlatNode[]>;
|
|
3583
|
+
readonly committedValueSet: i0.Signal<Set<string | number>>;
|
|
3584
|
+
private readonly _flatNodeByValue;
|
|
4626
3585
|
private _service;
|
|
4627
|
-
private
|
|
4628
|
-
private _unsubscribeAll;
|
|
3586
|
+
private readonly _destroyRef;
|
|
4629
3587
|
ngOnInit(): void;
|
|
4630
3588
|
ngAfterViewInit(): void;
|
|
4631
|
-
|
|
4632
|
-
|
|
3589
|
+
getCommittedSelection(): CmatTransferItemFlatNode[];
|
|
3590
|
+
commitSelection(): CmatTransferItemFlatNode[];
|
|
4633
3591
|
resetSelectedItem(item: CmatTransferItemFlatNode): void;
|
|
4634
3592
|
childrenAccessor: (node: CmatTransferItemNode) => CmatTransferItemNode[];
|
|
4635
3593
|
hasChild: (_: number, node: CmatTransferItemNode) => boolean;
|
|
4636
|
-
/** Whether all the descendants of the node are selected */
|
|
4637
3594
|
descendantsAllSelected(node: CmatTransferItemFlatNode): boolean;
|
|
4638
|
-
/** Whether part of the descendants are selected */
|
|
4639
3595
|
descendantsPartiallySelected(node: CmatTransferItemFlatNode): boolean;
|
|
4640
|
-
/** Toggle the transfer item selection. Select/deselect all the descendants node */
|
|
4641
3596
|
transferItemSelectionToggle(node: CmatTransferItemFlatNode): void;
|
|
4642
|
-
/** Toggle a leaf transfer item selection. Check all the parents to see if they changed */
|
|
4643
3597
|
transferLeafItemSelectionToggle(node: CmatTransferItemFlatNode): void;
|
|
3598
|
+
isNodeDisabled(node: CmatTransferItemFlatNode): boolean;
|
|
4644
3599
|
private _getLevel;
|
|
4645
3600
|
private _isExpandable;
|
|
4646
3601
|
private _getChildren;
|
|
4647
|
-
/**
|
|
4648
|
-
* Transformer to convert nested node to flat node. Record the nodes in maps for later use.
|
|
4649
|
-
*/
|
|
4650
3602
|
private _transformer;
|
|
4651
3603
|
private _getDescendants;
|
|
4652
3604
|
private _getFlattenNodes;
|
|
4653
3605
|
private _checkAllParentsSelection;
|
|
4654
|
-
/** Check root node checked state and change it accordingly */
|
|
4655
3606
|
private _checkRootNodeSelection;
|
|
3607
|
+
private _cloneFlatNode;
|
|
3608
|
+
private _cloneFlatNodes;
|
|
4656
3609
|
private _getParentNode;
|
|
3610
|
+
private _selectNodesByValues;
|
|
4657
3611
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTransferPickerSourceComponent, never>;
|
|
4658
3612
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTransferPickerSourceComponent, "cmat-transfer-picker-source", ["cmatTransferPickerSource"], {}, {}, never, never, true, never>;
|
|
4659
3613
|
}
|
|
4660
3614
|
|
|
4661
3615
|
declare class CmatTransferPickerTargetComponent {
|
|
4662
|
-
|
|
3616
|
+
committedSelection: CmatTransferItemFlatNode[];
|
|
4663
3617
|
clearItemChange: EventEmitter<CmatTransferItemFlatNode>;
|
|
4664
3618
|
constructor();
|
|
4665
3619
|
clearItem(item: CmatTransferItemFlatNode): void;
|
|
4666
3620
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTransferPickerTargetComponent, never>;
|
|
4667
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTransferPickerTargetComponent, "cmat-transfer-picker-target", ["cmatTransferPickerTarget"], { "
|
|
3621
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTransferPickerTargetComponent, "cmat-transfer-picker-target", ["cmatTransferPickerTarget"], { "committedSelection": { "alias": "committedSelection"; "required": false; }; }, { "clearItemChange": "clearItemChange"; }, never, never, true, never>;
|
|
4668
3622
|
}
|
|
4669
3623
|
|
|
4670
3624
|
declare class CmatTransferPickerComponent implements OnInit, AfterViewInit {
|
|
@@ -4677,26 +3631,27 @@ declare class CmatTransferPickerComponent implements OnInit, AfterViewInit {
|
|
|
4677
3631
|
selectedValues: string[];
|
|
4678
3632
|
selectChange: EventEmitter<CmatTransferItemFlatNode[]>;
|
|
4679
3633
|
source: CmatTransferPickerSourceComponent;
|
|
4680
|
-
|
|
3634
|
+
readonly committedSelection: i0.WritableSignal<CmatTransferItemFlatNode[]>;
|
|
4681
3635
|
private _service;
|
|
4682
|
-
private
|
|
3636
|
+
private readonly _injector;
|
|
4683
3637
|
constructor();
|
|
4684
3638
|
ngOnInit(): void;
|
|
4685
3639
|
ngAfterViewInit(): void;
|
|
4686
3640
|
pick(): void;
|
|
4687
3641
|
reset(): void;
|
|
4688
3642
|
onClearItemChange(item: CmatTransferItemFlatNode): void;
|
|
3643
|
+
private _commitSelection;
|
|
4689
3644
|
private _emitterChange;
|
|
4690
3645
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTransferPickerComponent, never>;
|
|
4691
3646
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTransferPickerComponent, "cmat-transfer-picker", ["cmatTransferPicker"], { "title": { "alias": "title"; "required": false; }; "filterable": { "alias": "filterable"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "selectedValues": { "alias": "selectedValues"; "required": false; }; }, { "selectChange": "selectChange"; }, never, never, true, never>;
|
|
4692
3647
|
}
|
|
4693
3648
|
|
|
4694
3649
|
declare class CmatTransferPickerService {
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
|
|
4698
|
-
|
|
4699
|
-
|
|
3650
|
+
private readonly _dataSourceChange;
|
|
3651
|
+
private readonly _refreshDataSourceChange;
|
|
3652
|
+
private readonly _filtersChange;
|
|
3653
|
+
private readonly _sourceOptionsChange;
|
|
3654
|
+
private readonly _selectedValuesChange;
|
|
4700
3655
|
private _dataSource;
|
|
4701
3656
|
private _filterData;
|
|
4702
3657
|
private _keyword;
|
|
@@ -4704,7 +3659,21 @@ declare class CmatTransferPickerService {
|
|
|
4704
3659
|
private _filteredDataSource;
|
|
4705
3660
|
private _compareMap;
|
|
4706
3661
|
private _conditionMap;
|
|
3662
|
+
private _refreshNonce;
|
|
3663
|
+
private readonly _dataSourceChange$;
|
|
3664
|
+
private readonly _refreshDataSourceChange$;
|
|
3665
|
+
private readonly _filtersChange$;
|
|
3666
|
+
private readonly _sourceOptionsChange$;
|
|
3667
|
+
private readonly _selectedValuesChange$;
|
|
4707
3668
|
constructor();
|
|
3669
|
+
get dataSourceChange(): Observable<CmatTransferItemNode[]>;
|
|
3670
|
+
get refreshDataSourceChange(): Observable<{
|
|
3671
|
+
clear: boolean;
|
|
3672
|
+
nonce: number;
|
|
3673
|
+
}>;
|
|
3674
|
+
get filtersChange(): Observable<CmatTransferFilterItem[]>;
|
|
3675
|
+
get sourceOptionsChange(): Observable<CmatSourceOptions | void>;
|
|
3676
|
+
get selectedValuesChange(): Observable<string[]>;
|
|
4708
3677
|
get dataSource(): CmatTransferItemNode[];
|
|
4709
3678
|
set dataSource(data: CmatTransferItemNode[]);
|
|
4710
3679
|
set sourceOptions(value: CmatSourceOptions);
|
|
@@ -4743,10 +3712,9 @@ declare class CmatTreeTableComponent implements OnChanges {
|
|
|
4743
3712
|
showControlColumn: boolean;
|
|
4744
3713
|
nodeClicked: Subject<CmatTreeTableNode>;
|
|
4745
3714
|
customColumnTpl?: TemplateRef<any>;
|
|
4746
|
-
displayedColumns: string[]
|
|
4747
|
-
dataSource: MatTableDataSource<CmatTreeTableNode
|
|
3715
|
+
readonly displayedColumns: WritableSignal<string[]>;
|
|
3716
|
+
readonly dataSource: WritableSignal<MatTableDataSource<CmatTreeTableNode>>;
|
|
4748
3717
|
private _treeTable;
|
|
4749
|
-
private _changeDetectorRef;
|
|
4750
3718
|
ngOnChanges(changes: SimpleChanges): void;
|
|
4751
3719
|
formatIndentation(node: CmatTreeTableNode, step?: number): string;
|
|
4752
3720
|
onNodeClick(clickedNode: CmatTreeTableNode): void;
|
|
@@ -4758,7 +3726,7 @@ declare class CmatTreeTableComponent implements OnChanges {
|
|
|
4758
3726
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatTreeTableComponent, "cmat-treetable", ["cmatTreeTable"], { "data": { "alias": "data"; "required": false; }; "verticalSeparator": { "alias": "verticalSeparator"; "required": false; }; "initExpand": { "alias": "initExpand"; "required": false; }; "tableClass": { "alias": "tableClass"; "required": false; }; "showControlColumn": { "alias": "showControlColumn"; "required": false; }; }, { "nodeClicked": "nodeClicked"; }, ["customColumnTpl"], never, true, never>;
|
|
4759
3727
|
}
|
|
4760
3728
|
|
|
4761
|
-
declare class CmatUploadComponent implements OnInit
|
|
3729
|
+
declare class CmatUploadComponent implements OnInit {
|
|
4762
3730
|
fileAlias: string;
|
|
4763
3731
|
filePath: string;
|
|
4764
3732
|
fileCategory: string;
|
|
@@ -4768,19 +3736,17 @@ declare class CmatUploadComponent implements OnInit, OnDestroy {
|
|
|
4768
3736
|
id: string;
|
|
4769
3737
|
removeEvent: EventEmitter<CmatUploadComponent>;
|
|
4770
3738
|
uploadEvent: EventEmitter<any>;
|
|
4771
|
-
progressPercentage: number
|
|
4772
|
-
loaded: number
|
|
4773
|
-
total: number
|
|
4774
|
-
isUploading: boolean
|
|
3739
|
+
readonly progressPercentage: i0.WritableSignal<number>;
|
|
3740
|
+
readonly loaded: i0.WritableSignal<number>;
|
|
3741
|
+
readonly total: i0.WritableSignal<number>;
|
|
3742
|
+
readonly isUploading: i0.WritableSignal<boolean>;
|
|
4775
3743
|
private _fileService;
|
|
4776
|
-
private
|
|
3744
|
+
private readonly _destroyRef;
|
|
4777
3745
|
private _file;
|
|
4778
|
-
private _unsubscribeAll;
|
|
4779
3746
|
get file(): any;
|
|
4780
3747
|
set file(file: any);
|
|
4781
3748
|
get fileType(): 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
4782
3749
|
ngOnInit(): void;
|
|
4783
|
-
ngOnDestroy(): void;
|
|
4784
3750
|
upload(): void;
|
|
4785
3751
|
download(): void;
|
|
4786
3752
|
remove(): void;
|
|
@@ -4788,7 +3754,7 @@ declare class CmatUploadComponent implements OnInit, OnDestroy {
|
|
|
4788
3754
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatUploadComponent, "cmat-upload", ["cmatUpload"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "isPublic": { "alias": "isPublic"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "id": { "alias": "id"; "required": false; }; "file": { "alias": "file"; "required": false; }; }, { "removeEvent": "removeEvent"; "uploadEvent": "uploadEvent"; }, never, never, true, never>;
|
|
4789
3755
|
}
|
|
4790
3756
|
|
|
4791
|
-
declare class CmatUploadQueueComponent implements
|
|
3757
|
+
declare class CmatUploadQueueComponent implements AfterViewInit {
|
|
4792
3758
|
fileUploads: QueryList<CmatUploadComponent>;
|
|
4793
3759
|
fileAlias: string;
|
|
4794
3760
|
filePath: string;
|
|
@@ -4805,16 +3771,14 @@ declare class CmatUploadQueueComponent implements OnDestroy, AfterViewInit {
|
|
|
4805
3771
|
outputUploadIdEvent: EventEmitter<string>;
|
|
4806
3772
|
outputFilesDataEvent: EventEmitter<any>;
|
|
4807
3773
|
id: string;
|
|
4808
|
-
isHandSet: boolean
|
|
4809
|
-
private _changeDetectorRef;
|
|
3774
|
+
readonly isHandSet: i0.WritableSignal<boolean>;
|
|
4810
3775
|
private _cmatMediaWatcherService;
|
|
4811
3776
|
private _elementRef;
|
|
4812
|
-
private
|
|
3777
|
+
private readonly _destroyRef;
|
|
4813
3778
|
constructor();
|
|
4814
3779
|
onDrop(event: any): void;
|
|
4815
3780
|
onDropOver(event: any): void;
|
|
4816
3781
|
ngAfterViewInit(): void;
|
|
4817
|
-
ngOnDestroy(): void;
|
|
4818
3782
|
add(file: any): void;
|
|
4819
3783
|
upload(event: any): void;
|
|
4820
3784
|
remove(event: CmatUploadComponent): void;
|
|
@@ -4826,13 +3790,12 @@ declare class CmatUploadQueueComponent implements OnDestroy, AfterViewInit {
|
|
|
4826
3790
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatUploadQueueComponent, "cmat-upload-queue", ["cmatUploadQueue"], { "fileAlias": { "alias": "fileAlias"; "required": false; }; "filePath": { "alias": "filePath"; "required": false; }; "fileCategory": { "alias": "fileCategory"; "required": false; }; "isPublic": { "alias": "isPublic"; "required": false; }; "required": { "alias": "required"; "required": false; }; "autoUpload": { "alias": "autoUpload"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "title": { "alias": "title"; "required": false; }; "editMode": { "alias": "editMode"; "required": false; }; "filesData": { "alias": "filesData"; "required": false; }; }, { "outputRemoveIdEvent": "outputRemoveIdEvent"; "outputUploadIdEvent": "outputUploadIdEvent"; "outputFilesDataEvent": "outputFilesDataEvent"; }, never, never, true, never>;
|
|
4827
3791
|
}
|
|
4828
3792
|
|
|
4829
|
-
declare class CmatFilesUtilService
|
|
3793
|
+
declare class CmatFilesUtilService {
|
|
4830
3794
|
private _http;
|
|
4831
3795
|
private _urlStateConfigService;
|
|
3796
|
+
private readonly _destroyRef;
|
|
4832
3797
|
private _config;
|
|
4833
|
-
private _unsubscribeAll;
|
|
4834
3798
|
constructor();
|
|
4835
|
-
ngOnDestroy(): void;
|
|
4836
3799
|
downloadFile(fileId: string, isStream?: boolean): Observable<any>;
|
|
4837
3800
|
downloadFileZip(fileIds?: string[]): Observable<any>;
|
|
4838
3801
|
uploadFile(file: FormData): Observable<any>;
|
|
@@ -4887,7 +3850,6 @@ declare class AngularShapeView extends NodeView<AngularShape> {
|
|
|
4887
3850
|
protected renderAngularContent(): void;
|
|
4888
3851
|
protected unmountAngularContent(): HTMLDivElement;
|
|
4889
3852
|
private getNgArguments;
|
|
4890
|
-
/** 当执行 node.setData() 时需要对实例设置新的输入值 */
|
|
4891
3853
|
private setInstanceInput;
|
|
4892
3854
|
}
|
|
4893
3855
|
declare namespace AngularShapeView {
|
|
@@ -4948,7 +3910,7 @@ declare class CmatArrowCursorDirective implements AfterViewInit, OnDestroy {
|
|
|
4948
3910
|
oldCursorSide: string | null;
|
|
4949
3911
|
private _document;
|
|
4950
3912
|
private _cmatMediaWatcherService;
|
|
4951
|
-
private
|
|
3913
|
+
private readonly _destroyRef;
|
|
4952
3914
|
onMouseEnter(event: any): void;
|
|
4953
3915
|
onMouseLeave(event: any): void;
|
|
4954
3916
|
onMouseOver(event: any): void;
|
|
@@ -5005,15 +3967,14 @@ declare class CmatDataExporterDirective implements OnChanges {
|
|
|
5005
3967
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CmatDataExporterDirective, "button[cmatDataExporter]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "exportColumns": { "alias": "exportColumns"; "required": false; }; "options": { "alias": "options"; "required": false; }; "exportType": { "alias": "exportType"; "required": false; }; "transformBoolean": { "alias": "transformBoolean"; "required": false; }; "transformDate": { "alias": "transformDate"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; }, {}, never, never, true, never>;
|
|
5006
3968
|
}
|
|
5007
3969
|
|
|
5008
|
-
declare abstract class AbstractDebounceDirective implements OnInit
|
|
3970
|
+
declare abstract class AbstractDebounceDirective implements OnInit {
|
|
5009
3971
|
debounceTime: number;
|
|
5010
3972
|
emitChanged: EventEmitter<any>;
|
|
5011
3973
|
emitEvent$: Subject<any>;
|
|
5012
|
-
|
|
3974
|
+
private readonly _destroyRef;
|
|
5013
3975
|
constructor();
|
|
5014
3976
|
ngOnInit(): void;
|
|
5015
3977
|
emitChange(value: any): void;
|
|
5016
|
-
ngOnDestroy(): void;
|
|
5017
3978
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDebounceDirective, never>;
|
|
5018
3979
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDebounceDirective, never, never, { "debounceTime": { "alias": "debounceTime"; "required": false; }; }, { "emitChanged": "emitChanged"; }, never, never, true, never>;
|
|
5019
3980
|
}
|
|
@@ -5147,5 +4108,386 @@ declare class CmatKeysPipe implements PipeTransform {
|
|
|
5147
4108
|
static ɵpipe: i0.ɵɵPipeDeclaration<CmatKeysPipe, "cmatKeys", true>;
|
|
5148
4109
|
}
|
|
5149
4110
|
|
|
5150
|
-
|
|
5151
|
-
|
|
4111
|
+
declare class CmatSecurePipe implements PipeTransform {
|
|
4112
|
+
private _http;
|
|
4113
|
+
private _sanitizer;
|
|
4114
|
+
private _urlStateConfigService;
|
|
4115
|
+
private readonly _destroyRef;
|
|
4116
|
+
private _config;
|
|
4117
|
+
constructor();
|
|
4118
|
+
transform(fileId: string): Observable<SafeUrl>;
|
|
4119
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSecurePipe, never>;
|
|
4120
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CmatSecurePipe, "cmatSecure", true>;
|
|
4121
|
+
}
|
|
4122
|
+
|
|
4123
|
+
declare class CmatUppercasePipe implements PipeTransform {
|
|
4124
|
+
transform(value: string): string;
|
|
4125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatUppercasePipe, never>;
|
|
4126
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CmatUppercasePipe, "cmatUppercase", true>;
|
|
4127
|
+
}
|
|
4128
|
+
|
|
4129
|
+
declare enum CmatDialogType {
|
|
4130
|
+
alert = 0,
|
|
4131
|
+
confirm = 1,
|
|
4132
|
+
prompt = 2
|
|
4133
|
+
}
|
|
4134
|
+
declare enum CmatMessageSeverity {
|
|
4135
|
+
info = "info",
|
|
4136
|
+
success = "success",
|
|
4137
|
+
error = "error",
|
|
4138
|
+
warning = "warning",
|
|
4139
|
+
wait = "wait"
|
|
4140
|
+
}
|
|
4141
|
+
interface ApiResult {
|
|
4142
|
+
success: boolean;
|
|
4143
|
+
msg: string;
|
|
4144
|
+
type: number;
|
|
4145
|
+
data?: any;
|
|
4146
|
+
dataExt?: any;
|
|
4147
|
+
}
|
|
4148
|
+
|
|
4149
|
+
declare class CmatAlertDialog {
|
|
4150
|
+
message: string;
|
|
4151
|
+
type: CmatDialogType;
|
|
4152
|
+
okCallback?: ((val?: any) => any) | undefined;
|
|
4153
|
+
cancelCallback?: (() => any) | undefined;
|
|
4154
|
+
defaultValue?: string | undefined;
|
|
4155
|
+
okLabel?: string | undefined;
|
|
4156
|
+
cancelLabel?: string | undefined;
|
|
4157
|
+
constructor(message: string, type: CmatDialogType, okCallback?: ((val?: any) => any) | undefined, cancelCallback?: (() => any) | undefined, defaultValue?: string | undefined, okLabel?: string | undefined, cancelLabel?: string | undefined);
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
declare class CmatAlertMessage {
|
|
4161
|
+
severity: CmatMessageSeverity;
|
|
4162
|
+
summary: string;
|
|
4163
|
+
detail: string;
|
|
4164
|
+
isPostionBottom: boolean;
|
|
4165
|
+
constructor(severity: CmatMessageSeverity, summary: string, detail: string, isPostionBottom?: boolean);
|
|
4166
|
+
}
|
|
4167
|
+
|
|
4168
|
+
declare class CmatAlertService {
|
|
4169
|
+
private _messages;
|
|
4170
|
+
private _stickyMessages;
|
|
4171
|
+
private _dialogs;
|
|
4172
|
+
private _isLoading;
|
|
4173
|
+
private _loadingMessageId;
|
|
4174
|
+
get dialogEvent$(): Observable<CmatAlertDialog>;
|
|
4175
|
+
get messageEvent$(): Observable<CmatAlertMessage>;
|
|
4176
|
+
get stickyMessageEvent$(): Observable<CmatAlertMessage | void>;
|
|
4177
|
+
get isLoadingInProgress$(): Observable<boolean>;
|
|
4178
|
+
showDialog(message: string, type?: CmatDialogType, okCallback?: (val?: any) => any, cancelCallback?: () => any, okLabel?: string, cancelLabel?: string, defaultValue?: string): void;
|
|
4179
|
+
showMessage(summary: string): void;
|
|
4180
|
+
showMessage(detail: string | string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;
|
|
4181
|
+
showBottomMessage(summary: string): void;
|
|
4182
|
+
showBottomMessage(summary: string, detail: string, severity: CmatMessageSeverity): void;
|
|
4183
|
+
showStickyMessage(summary: string): void;
|
|
4184
|
+
showStickyMessage(summary: string, detail: string, severity: CmatMessageSeverity, error?: any): void;
|
|
4185
|
+
showStickyMessage(detail: string[] | HttpResponseBase, params: string, severity: CmatMessageSeverity): void;
|
|
4186
|
+
startLoadingMessage(message?: string, caption?: string): void;
|
|
4187
|
+
stopLoadingMessage(): void;
|
|
4188
|
+
logDebug(msg: any): void;
|
|
4189
|
+
logError(msg: any): void;
|
|
4190
|
+
logInfo(msg: any): void;
|
|
4191
|
+
logMessage(msg: any): void;
|
|
4192
|
+
logTrace(msg: any): void;
|
|
4193
|
+
logWarning(msg: any): void;
|
|
4194
|
+
resetStickyMessage(): void;
|
|
4195
|
+
private _showMessageHelper;
|
|
4196
|
+
private isApiResult;
|
|
4197
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatAlertService, never>;
|
|
4198
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatAlertService>;
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4201
|
+
type CmatScheme = 'auto' | 'dark' | 'light';
|
|
4202
|
+
type CmatTheme = string;
|
|
4203
|
+
type CmatScreens = Record<string, string>;
|
|
4204
|
+
type CmatThemeOption<TExtra extends Record<string, unknown> = Record<string, unknown>> = {
|
|
4205
|
+
id: string;
|
|
4206
|
+
name: string;
|
|
4207
|
+
} & TExtra;
|
|
4208
|
+
interface CmatAppConfigBase {
|
|
4209
|
+
layout: string;
|
|
4210
|
+
scheme: CmatScheme;
|
|
4211
|
+
screens: CmatScreens;
|
|
4212
|
+
theme: CmatTheme;
|
|
4213
|
+
themes: CmatThemeOption[];
|
|
4214
|
+
}
|
|
4215
|
+
type CmatAppConfig<TExtra extends Record<string, unknown> = Record<string, unknown>> = CmatAppConfigBase & TExtra;
|
|
4216
|
+
declare const CMAT_APP_CONFIG: InjectionToken<CmatAppConfig<Record<string, unknown>>>;
|
|
4217
|
+
interface IUrlStateConfig {
|
|
4218
|
+
fileUrl: string;
|
|
4219
|
+
enableDataProtect: boolean;
|
|
4220
|
+
}
|
|
4221
|
+
|
|
4222
|
+
declare class CmatConfigService {
|
|
4223
|
+
private readonly _defaultConfig;
|
|
4224
|
+
private readonly _config;
|
|
4225
|
+
private readonly _config$;
|
|
4226
|
+
get config$(): Observable<CmatAppConfig>;
|
|
4227
|
+
set config(value: Partial<CmatAppConfig>);
|
|
4228
|
+
updateConfig(value: Partial<CmatAppConfig>): void;
|
|
4229
|
+
reset(): void;
|
|
4230
|
+
private _mergeConfig;
|
|
4231
|
+
private _isRecord;
|
|
4232
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfigService, never>;
|
|
4233
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatConfigService>;
|
|
4234
|
+
}
|
|
4235
|
+
|
|
4236
|
+
declare class CmatUrlStateConfigService {
|
|
4237
|
+
private readonly _defaultConfig;
|
|
4238
|
+
private readonly _config;
|
|
4239
|
+
private readonly _config$;
|
|
4240
|
+
get config$(): Observable<IUrlStateConfig>;
|
|
4241
|
+
config(value: Partial<IUrlStateConfig>): void;
|
|
4242
|
+
updateConfig(value: Partial<IUrlStateConfig>): void;
|
|
4243
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatUrlStateConfigService, never>;
|
|
4244
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatUrlStateConfigService>;
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4247
|
+
interface CmatConfirmationConfig {
|
|
4248
|
+
title?: string;
|
|
4249
|
+
message?: string;
|
|
4250
|
+
icon?: {
|
|
4251
|
+
show?: boolean;
|
|
4252
|
+
name?: string;
|
|
4253
|
+
color?: 'primary' | 'accent' | 'warn' | 'basic' | 'info' | 'success' | 'warning' | 'error';
|
|
4254
|
+
};
|
|
4255
|
+
actions?: {
|
|
4256
|
+
confirm?: {
|
|
4257
|
+
show?: boolean;
|
|
4258
|
+
label?: string;
|
|
4259
|
+
color?: 'primary' | 'accent' | 'warn';
|
|
4260
|
+
};
|
|
4261
|
+
cancel?: {
|
|
4262
|
+
show?: boolean;
|
|
4263
|
+
label?: string;
|
|
4264
|
+
};
|
|
4265
|
+
};
|
|
4266
|
+
dismissible?: boolean;
|
|
4267
|
+
}
|
|
4268
|
+
|
|
4269
|
+
declare class CmatConfirmationDialogComponent {
|
|
4270
|
+
data: CmatConfirmationConfig;
|
|
4271
|
+
matDialogRef: MatDialogRef<CmatConfirmationDialogComponent, any>;
|
|
4272
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfirmationDialogComponent, never>;
|
|
4273
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatConfirmationDialogComponent, "cmat-confirmation-dialog", never, {}, {}, never, never, true, never>;
|
|
4274
|
+
}
|
|
4275
|
+
|
|
4276
|
+
declare class CmatConfirmationService {
|
|
4277
|
+
private _matDialog;
|
|
4278
|
+
private _defaultConfig;
|
|
4279
|
+
open(config?: CmatConfirmationConfig): MatDialogRef<CmatConfirmationDialogComponent>;
|
|
4280
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatConfirmationService, never>;
|
|
4281
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatConfirmationService>;
|
|
4282
|
+
}
|
|
4283
|
+
|
|
4284
|
+
declare class CmatDataService {
|
|
4285
|
+
private readonly _http;
|
|
4286
|
+
private readonly _urlStateConfigService;
|
|
4287
|
+
private readonly _destroyRef;
|
|
4288
|
+
private _enableDataProtect;
|
|
4289
|
+
constructor();
|
|
4290
|
+
get<T>(url: string, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
4291
|
+
post<T>(url: string, data: any, params?: Record<string, unknown>, auth?: boolean, idempotent?: boolean): Observable<T>;
|
|
4292
|
+
put<T>(url: string, data: any, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
4293
|
+
delete<T>(url: string, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
4294
|
+
patch<T>(url: string, data: any, params?: Record<string, unknown>, auth?: boolean): Observable<T>;
|
|
4295
|
+
private _buildHttpParams;
|
|
4296
|
+
private _decryptResponse;
|
|
4297
|
+
private _normalizeParamValue;
|
|
4298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDataService, never>;
|
|
4299
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatDataService>;
|
|
4300
|
+
}
|
|
4301
|
+
|
|
4302
|
+
type SupportedExtensions = 'xlsx' | 'xls' | 'txt' | 'csv' | 'json' | 'xml';
|
|
4303
|
+
interface ExportAsConfig {
|
|
4304
|
+
type: SupportedExtensions;
|
|
4305
|
+
elementIdOrContent: string;
|
|
4306
|
+
download?: boolean;
|
|
4307
|
+
fileName: string;
|
|
4308
|
+
options?: any;
|
|
4309
|
+
}
|
|
4310
|
+
|
|
4311
|
+
declare class CmatExportAsService {
|
|
4312
|
+
get(config: ExportAsConfig): Observable<any>;
|
|
4313
|
+
save(config: ExportAsConfig, fileName: string): Observable<string | null>;
|
|
4314
|
+
contentToBlob(content: string): Observable<Blob>;
|
|
4315
|
+
removeFileTypeFromBase64(fileContent: string): string;
|
|
4316
|
+
addFileTypeToBase64(fileContent: string, fileMime: string): string;
|
|
4317
|
+
downloadFromDataURL(fileName: string, dataURL: string): void;
|
|
4318
|
+
downloadFromBlob(blob: Blob, fileName: string): void;
|
|
4319
|
+
private _getCSV;
|
|
4320
|
+
private _getTXT;
|
|
4321
|
+
private _getXLS;
|
|
4322
|
+
private _getXLSX;
|
|
4323
|
+
private _getJSON;
|
|
4324
|
+
private _getXML;
|
|
4325
|
+
private _btoa;
|
|
4326
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatExportAsService, never>;
|
|
4327
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatExportAsService>;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
declare class CmatLoadingService {
|
|
4331
|
+
private readonly _auto$;
|
|
4332
|
+
private readonly _mode$;
|
|
4333
|
+
private readonly _progress$;
|
|
4334
|
+
private readonly _show$;
|
|
4335
|
+
private readonly _autoObservable$;
|
|
4336
|
+
private readonly _modeObservable$;
|
|
4337
|
+
private readonly _progressObservable$;
|
|
4338
|
+
private readonly _showObservable$;
|
|
4339
|
+
private readonly _urlSet;
|
|
4340
|
+
get auto$(): Observable<boolean>;
|
|
4341
|
+
get isAuto(): boolean;
|
|
4342
|
+
get mode$(): Observable<'determinate' | 'indeterminate'>;
|
|
4343
|
+
get currentMode(): 'determinate' | 'indeterminate';
|
|
4344
|
+
get progress$(): Observable<number | null>;
|
|
4345
|
+
get currentProgress(): number | null;
|
|
4346
|
+
get show$(): Observable<boolean>;
|
|
4347
|
+
get isShowing(): boolean;
|
|
4348
|
+
show(): void;
|
|
4349
|
+
hide(): void;
|
|
4350
|
+
setAutoMode(value: boolean): void;
|
|
4351
|
+
setMode(value: 'determinate' | 'indeterminate'): void;
|
|
4352
|
+
setProgress(value: number): void;
|
|
4353
|
+
setLoadingStatus(status: boolean, url: string): void;
|
|
4354
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatLoadingService, never>;
|
|
4355
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatLoadingService>;
|
|
4356
|
+
}
|
|
4357
|
+
|
|
4358
|
+
declare class CmatLoadingInterceptor implements HttpInterceptor {
|
|
4359
|
+
private readonly _cmatLoadingService;
|
|
4360
|
+
intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
4361
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatLoadingInterceptor, never>;
|
|
4362
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatLoadingInterceptor>;
|
|
4363
|
+
}
|
|
4364
|
+
|
|
4365
|
+
declare class CmatLocalStorageService {
|
|
4366
|
+
getItem(key: string): string | null;
|
|
4367
|
+
setItem(key: string, item: string): void;
|
|
4368
|
+
removeItem(key: string): void;
|
|
4369
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatLocalStorageService, never>;
|
|
4370
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatLocalStorageService>;
|
|
4371
|
+
}
|
|
4372
|
+
|
|
4373
|
+
interface CmatMediaChange {
|
|
4374
|
+
matchingAliases: string[];
|
|
4375
|
+
matchingQueries: Record<string, string>;
|
|
4376
|
+
}
|
|
4377
|
+
declare class CmatMediaWatcherService {
|
|
4378
|
+
private readonly _breakpointObserver;
|
|
4379
|
+
private readonly _cmatConfigService;
|
|
4380
|
+
get onMediaChange$(): Observable<CmatMediaChange>;
|
|
4381
|
+
onMediaQueryChange$(query: string | string[]): Observable<BreakpointState>;
|
|
4382
|
+
private _screensAreEqual;
|
|
4383
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatMediaWatcherService, never>;
|
|
4384
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatMediaWatcherService>;
|
|
4385
|
+
}
|
|
4386
|
+
|
|
4387
|
+
declare class CmatPlatformService {
|
|
4388
|
+
osName: string;
|
|
4389
|
+
private _platform;
|
|
4390
|
+
constructor();
|
|
4391
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatPlatformService, never>;
|
|
4392
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatPlatformService>;
|
|
4393
|
+
}
|
|
4394
|
+
|
|
4395
|
+
declare class CmatSplashScreenService {
|
|
4396
|
+
private _document;
|
|
4397
|
+
private _router;
|
|
4398
|
+
private readonly _destroyRef;
|
|
4399
|
+
constructor();
|
|
4400
|
+
show(): void;
|
|
4401
|
+
hide(): void;
|
|
4402
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatSplashScreenService, never>;
|
|
4403
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatSplashScreenService>;
|
|
4404
|
+
}
|
|
4405
|
+
|
|
4406
|
+
declare class CmatTitleService {
|
|
4407
|
+
private readonly _destroyRef;
|
|
4408
|
+
private readonly _router;
|
|
4409
|
+
private readonly _titleService;
|
|
4410
|
+
constructor();
|
|
4411
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTitleService, never>;
|
|
4412
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatTitleService>;
|
|
4413
|
+
}
|
|
4414
|
+
|
|
4415
|
+
declare class CmatTranslationService {
|
|
4416
|
+
private _translate;
|
|
4417
|
+
private readonly _defaultLanguage;
|
|
4418
|
+
private _onLanguageChanged;
|
|
4419
|
+
constructor();
|
|
4420
|
+
get languageChanged$(): Observable<Language>;
|
|
4421
|
+
addLanguages(lang: Language[]): void;
|
|
4422
|
+
setDefaultLanguage(lang: Language): void;
|
|
4423
|
+
getDefaultLanguage(): Language;
|
|
4424
|
+
getBrowserLanguage(): Language | void;
|
|
4425
|
+
useBrowserLanguage(): Language | void;
|
|
4426
|
+
changeLanguage(language?: Language): Language;
|
|
4427
|
+
getTranslation(key: string | string[], interpolateParams?: object): any;
|
|
4428
|
+
getTranslationAsync(key: string | string[], interpolateParams?: object): Observable<any>;
|
|
4429
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatTranslationService, never>;
|
|
4430
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatTranslationService>;
|
|
4431
|
+
}
|
|
4432
|
+
|
|
4433
|
+
declare class CmatUtilsService {
|
|
4434
|
+
static readonly captionAndMessageSeparator = ":";
|
|
4435
|
+
static readonly noNetworkMessageCaption = "\u65E0\u7F51\u7EDC";
|
|
4436
|
+
static readonly noNetworkMessageDetail = "\u65E0\u6CD5\u8FDE\u63A5\u670D\u52A1\u5668";
|
|
4437
|
+
static readonly accessDeniedMessageCaption = "\u62D2\u7EDD\u8BBF\u95EE!";
|
|
4438
|
+
static readonly accessDeniedMessageDetail = "";
|
|
4439
|
+
private static readonly key;
|
|
4440
|
+
private static readonly iv;
|
|
4441
|
+
get exactMatchOptions(): IsActiveMatchOptions;
|
|
4442
|
+
get subsetMatchOptions(): IsActiveMatchOptions;
|
|
4443
|
+
static getRequestHeaders(): HttpHeaders;
|
|
4444
|
+
static getRequestIdempotentHeaders(): HttpHeaders;
|
|
4445
|
+
static getRequestBypassHeaders(): HttpHeaders;
|
|
4446
|
+
static getRequestIdempotentBypassHeaders(): HttpHeaders;
|
|
4447
|
+
static getRequestCryptoHeaders(params: string): HttpHeaders;
|
|
4448
|
+
static getRequestCryptoBypassHeaders(params: string): HttpHeaders;
|
|
4449
|
+
static getRequestCryptoIdempotentHeaders(params: string): HttpHeaders;
|
|
4450
|
+
static getRequestCryptoIdempotentBypassHeaders(params: string): HttpHeaders;
|
|
4451
|
+
static getEncryptData(data: string): string;
|
|
4452
|
+
static getDecryptData(data: string): string;
|
|
4453
|
+
static handleError(error: any): Observable<never>;
|
|
4454
|
+
static getHttpResponseMessage(data: any): string[];
|
|
4455
|
+
static findHttpResponseMessage(messageToFind: string, data: any, seachInCaptionOnly?: boolean, includeCaptionInResult?: boolean): string | null;
|
|
4456
|
+
static getResponseBody(response: HttpResponseBase): any;
|
|
4457
|
+
static checkNoNetwork(response: HttpResponseBase): boolean;
|
|
4458
|
+
static checkAccessDenied(response: HttpResponseBase): boolean;
|
|
4459
|
+
static checkNotFound(response: HttpResponseBase): boolean;
|
|
4460
|
+
static checkIsLocalHost(url: string, base?: string): boolean;
|
|
4461
|
+
static getQueryParamsFromString(paramString: string): Record<string, string | null> | null;
|
|
4462
|
+
static splitInTwo(text: string, separator?: string): {
|
|
4463
|
+
firstPart: string;
|
|
4464
|
+
secondPart: string | null;
|
|
4465
|
+
};
|
|
4466
|
+
static safeStringify(object: any): string;
|
|
4467
|
+
static jsonTryParse(value: string): string | void;
|
|
4468
|
+
static capitalizeFirstLetter(text: string): string;
|
|
4469
|
+
static toTitleCase(text: string): string;
|
|
4470
|
+
static toLowerCase(items: any): string | string[] | void;
|
|
4471
|
+
static uniqueId(): string;
|
|
4472
|
+
static randomNumber(min: number, max: number): number;
|
|
4473
|
+
static baseUrl(): string;
|
|
4474
|
+
static newGuid(): string;
|
|
4475
|
+
static testIsAbsoluteUrl(url: string): boolean;
|
|
4476
|
+
static convertToAbsoluteUrl(url: string): string;
|
|
4477
|
+
static urlBase64Decode(str: string): string;
|
|
4478
|
+
static decodeToken(token: string): any;
|
|
4479
|
+
static getTokenExpirationDate(token: string): Date | null;
|
|
4480
|
+
static isTokenExpired(token: string, offsetSeconds?: number): boolean;
|
|
4481
|
+
static readAsDataURL(file: File): Promise<any>;
|
|
4482
|
+
static dataURIToBlob(dataURI: string): Blob;
|
|
4483
|
+
static getFileType(accept: string): 'csv' | 'gif' | 'word' | 'excel' | 'jpg' | 'outlook' | 'pdf' | 'png' | 'ppt' | 'file' | 'text' | 'video' | 'zip';
|
|
4484
|
+
static isDateString(value: any): boolean;
|
|
4485
|
+
static transformObjectsForExport(jsonObjects: any[], columns: any[]): any[];
|
|
4486
|
+
private static _base64DecodeUnicode;
|
|
4487
|
+
randomId(stringLength?: number): string;
|
|
4488
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatUtilsService, never>;
|
|
4489
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CmatUtilsService>;
|
|
4490
|
+
}
|
|
4491
|
+
|
|
4492
|
+
export { AngularShape, AngularShapeView, CLOCK_INNER_RADIUS, CLOCK_OUTER_RADIUS, CLOCK_RADIUS, CLOCK_TICK_RADIUS, CMAT_APP_CONFIG, CMAT_DATETIMEPICKER_SCROLL_STRATEGY, CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY, CMAT_DATETIMEPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER, CMAT_DATETIMEPICKER_VALIDATORS, CMAT_DATETIMEPICKER_VALUE_ACCESSOR, CMAT_DATETIME_FORMATS, CMAT_DAYJS_DATETIME_FORMATS, CMAT_DAYJS_DATE_ADAPTER_OPTIONS, CMAT_DAYJS_DATE_ADAPTER_OPTIONS_FACTORY, CMAT_DAYJS_DATE_FORMATS, CMAT_MATERIAL_COLOR_PICKER_VALUE_ACCESSOR, CMAT_NATIVE_DATETIME_FORMATS, CNativeDatetimeAdapter, ChartNode, CmatAddonsWrapperComponent, CmatAlertDialog, CmatAlertMessage, CmatAlertService, CmatAnimationOnScrollDirective, CmatArrowCursorDirective, CmatAutofocusDirective, CmatBreadcrumbComponent, CmatBreadcrumbItemDirective, CmatBreadcrumbService, CmatButtonTypeComponent, CmatBytesPipe, CmatCardComponent, CmatCardWrapperComponent, CmatCarouselComponent, CmatCarouselFooterComponent, CmatCarouselHeaderComponent, CmatCarouselTemplateDirective, CmatCascadeBottomSheetComponent, CmatCascadeListComponent, CmatCascadeTypeComponent, CmatCheckListTypeComponent, CmatChipInputComponent, CmatChipsInputTypeComponent, CmatCodeEditorComponent, CmatColorPickerTypeComponent, CmatConfigService, CmatConfirmationService, CmatDataExporterDirective, CmatDataService, CmatDateFormatPipe, CmatDateRangeComponent, CmatDateRangeTypeComponent, CmatDateTimeDisplayComponent, CmatDatepickerTypeComponent, CmatDatetimepickerCalendarBodyComponent, CmatDatetimepickerCalendarCellComponent, CmatDatetimepickerCalendarComponent, CmatDatetimepickerClockComponent, CmatDatetimepickerComponent, CmatDatetimepickerContentComponent, CmatDatetimepickerFilterType, CmatDatetimepickerInputDirective, CmatDatetimepickerInputEvent, CmatDatetimepickerMonthViewComponent, CmatDatetimepickerToggleComponent, CmatDatetimepickerToggleIconDirective, CmatDatetimepickerYearViewComponent, CmatDebounceClickDirective, CmatDebounceKeyupDirective, CmatDialogType, CmatDigitOnlyDirective, CmatDrawerComponent, CmatDrawerService, CmatEmptyStateComponent, CmatEqualValidatorDirective, CmatExpansionWrapperComponent, CmatExportAsService, CmatFilePreviewComponent, CmatFilesUtilService, CmatFilterToolbarComponent, CmatFindByKeyPipe, CmatFormActionsComponent, CmatFormFieldWrapperComponent, CmatFullscreenComponent, CmatGroupByPipe, CmatHighlightComponent, CmatHighlightService, CmatHorizontalNavigationComponent, CmatImageComponent, CmatInlineLoadingComponent, CmatJsonEditorComponent, CmatKeysPipe, CmatKnobInputComponent, CmatKnobTypeComponent, CmatLoadingInterceptor, CmatLoadingService, CmatLocalStorageService, CmatMaskDirective, CmatMasonryComponent, CmatMaterialColorPickerComponent, CmatMediaWatcherService, CmatMessageSeverity, CmatMultiCheckboxTypeComponent, CmatNavigationItem, CmatNavigationService, CmatNumberTypeComponent, CmatOrgChartComponent, CmatOtpInputComponent, CmatPageHeaderComponent, CmatPaginatePipe, CmatPaginationComponent, CmatPaginationDirective, CmatPaginationService, CmatPanelWrapperComponent, CmatPassToggleVisibilityComponent, CmatPasswordStrengthComponent, CmatPasswordStrengthInfoComponent, CmatPlatformService, CmatPopoverComponent, CmatPopoverTargetDirective, CmatPopoverTriggerDirective, CmatProgressBarComponent, CmatQRCodeComponent, CmatQuillTypeComponent, CmatRadioTypeComponent, CmatRatingComponent, CmatRatingTypeComponent, CmatRepeatTypeComponent, CmatRichTextEditorComponent, CmatSeamlessAutoScrollDirective, CmatSecurePipe, CmatSelectSearchComponent, CmatSelectTableComponent, CmatSelectTableTypeComponent, CmatSelectTreeComponent, CmatSelectTreeFlatNode, CmatSelectTreeNode, CmatSelectTreeTypeComponent, CmatSelectTypeComponent, CmatSelectedColor, CmatSliderTypeComponent, CmatSpeedDialActionsComponent, CmatSpeedDialComponent, CmatSpeedDialTriggerComponent, CmatSplashScreenService, CmatStatusTagComponent, CmatStepperHorizontalTypeComponent, CmatStepperVerticalTypeComponent, CmatTabTypeComponent, CmatTableToolbarComponent, CmatTableTypeComponent, CmatTagsTypeComponent, CmatTextareaTypeComponent, CmatTimelineComponent, CmatTimelineItemComponent, CmatTimelineItemIconDirective, CmatTimelineItemLabelDirective, CmatTitleService, CmatToastComponent, CmatToastModalComponent, CmatToastService, CmatTransferFilterCondition, CmatTransferItemFlatNode, CmatTransferItemNode, CmatTransferPickerComponent, CmatTransferPickerFilterComponent, CmatTransferPickerSearchComponent, CmatTransferPickerService, CmatTransferPickerSourceComponent, CmatTransferPickerTargetComponent, CmatTranslationService, CmatTreeTableColumnDirective, CmatTreeTableComponent, CmatTreeTableNode, CmatUploadComponent, CmatUploadQueueComponent, CmatUploadTypeComponent, CmatUppercasePipe, CmatUrlStateConfigService, CmatUtilsService, CmatVerticalNavigationComponent, DatetimeAdapter, DayjsDateAdapter, DayjsDatetimeAdapter, ExportType, MAT_SELECTSEARCH_DEFAULT_OPTIONS, addonsExtension, configurableDefaultOptions, register, registerInfo };
|
|
4493
|
+
export type { AngularShapeConfig, AnimationMode, ApiResult, CMAT_TIMELINE_ORIENTATION, CMAT_TIMELINE_POSITION, CmatAMPM, CmatAppConfig, CmatAppConfigBase, CmatBreadcrumb, CmatBreadcrumbDefinition, CmatBreadcrumbFunction, CmatBreadcrumbObject, CmatCalendarView, CmatCardFace, CmatCarouselPageEvent, CmatCarouselResponsiveOptions, CmatCarouselTemplates, CmatCascadeOptionsInterface, CmatClockView, CmatConfirmationConfig, CmatDatetimeFormats, CmatDatetimepickerMode, CmatDatetimepickerType, CmatDrawerMode, CmatDrawerPosition, CmatNavigationComponent, CmatPaginatePipeArgs, CmatPaginationInstance, CmatPipeState, CmatPopoverPosition, CmatPopoverPositionEnd, CmatPopoverPositionStart, CmatPopoverScrollStrategy, CmatPopoverTriggerEvent, CmatScheme, CmatScreens, CmatSelectTableColumn, CmatSelectTableDataSource, CmatSelectTableFilter, CmatSelectTableRow, CmatSourceOptions, CmatTheme, CmatThemeOption, CmatToastModel, CmatTransferFilterData, CmatTransferFilterItem, CmatVerticalNavigationAppearance, CmatVerticalNavigationMode, CmatVerticalNavigationPosition, Collection, ConfigurableDefaultOptions, Content, CustomFormFieldProps, DatetimepickerDropdownPositionX, DatetimepickerDropdownPositionY, DayJsDateAdapterOptions, Direction, ExcelOptions, ExportAsConfig, ExporterListInfo, FileCategoryModel, FileListModel, FileModel, FormlyMultiCheckboxFieldConfig, FormlyRadioFieldConfig, FormlySliderFieldConfig, GlobalConfigModel, GlobalPosition, GlobalTheme, GlobalType, INode, IUrlStateConfig, MatSelectSearchOptions, Options, Page, Position, PositionX, PositionY, SupportedExtensions, Theme, ToastAPrefix, TxtOptions, Type };
|