cmat 0.0.15 → 0.0.16
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/README.md +2 -2
- package/components/custom-formly/public-api.d.ts +1 -0
- package/components/custom-formly/types/button/button.component.d.ts +19 -3
- package/components/custom-formly/types/cascade/cascade.component.d.ts +3 -2
- package/components/custom-formly/types/checklist/checklist.component.d.ts +3 -2
- package/components/custom-formly/types/chips/chips.component.d.ts +3 -2
- package/components/custom-formly/types/date-range/date-range.component.d.ts +3 -2
- package/components/custom-formly/types/datepicker/datepicker.component.d.ts +3 -2
- package/components/custom-formly/types/multicheckbox/multicheckbox.component.d.ts +3 -2
- package/components/custom-formly/types/number/number.component.d.ts +3 -2
- package/components/custom-formly/types/quill/quill.component.d.ts +3 -2
- package/components/custom-formly/types/radio/radio.component.d.ts +3 -2
- package/components/custom-formly/types/rating/rating.component.d.ts +3 -2
- package/components/custom-formly/types/repeat/repeat.component.d.ts +3 -2
- package/components/custom-formly/types/select/select.component.d.ts +3 -2
- package/components/custom-formly/types/select-tree/select-tree.component.d.ts +2 -2
- package/components/custom-formly/types/stepper/stepper.type.d.ts +2 -2
- package/components/custom-formly/types/table/table.component.d.ts +11 -5
- package/components/custom-formly/types/tags/tags.component.d.ts +3 -2
- package/components/custom-formly/types/upload/upload.component.d.ts +3 -2
- package/components/custom-formly/wrappers/form-field/form-field.component.d.ts +25 -0
- package/components/material-datetimepicker/datetimepicker.d.ts +4 -3
- package/components/upload/upload-queue/upload-queue.component.d.ts +3 -2
- package/esm2022/animations/dropdown.mjs +1 -1
- package/esm2022/components/adapter/dayjs-date-adapter.mjs +3 -3
- package/esm2022/components/adapter/dayjs-datetime-adapter.mjs +3 -3
- package/esm2022/components/adapter/native-datetime-adapter.mjs +3 -3
- package/esm2022/components/breadcrumb/breadcrumb-item.directive.mjs +3 -3
- package/esm2022/components/breadcrumb/breadcrumb.component.mjs +3 -3
- package/esm2022/components/breadcrumb/breadcrumb.service.mjs +5 -5
- package/esm2022/components/card/card.component.mjs +5 -5
- package/esm2022/components/cascade/cascade-bottom-sheet/cascade-bottom-sheet.component.mjs +5 -5
- package/esm2022/components/cascade/cascade-list/cascade-list.component.mjs +6 -6
- package/esm2022/components/cascade/cascade-menu/cascade-menu.component.mjs +5 -5
- package/esm2022/components/cascade/options.interface.mjs +1 -1
- package/esm2022/components/chip-input/chip-input.component.mjs +6 -7
- package/esm2022/components/custom-formly/extension/addons.extension.mjs +2 -2
- package/esm2022/components/custom-formly/public-api.mjs +2 -1
- package/esm2022/components/custom-formly/types/button/button.component.mjs +57 -15
- package/esm2022/components/custom-formly/types/cascade/cascade.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/checklist/checklist.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/chips/chips.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/color-picker/color-picker.component.mjs +3 -3
- package/esm2022/components/custom-formly/types/date-range/date-range.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/datepicker/datepicker.component.mjs +5 -5
- package/esm2022/components/custom-formly/types/multicheckbox/multicheckbox.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/number/number.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/quill/quill.component.mjs +6 -6
- package/esm2022/components/custom-formly/types/radio/radio.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/rating/rating.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/repeat/repeat.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/select/select.component.mjs +16 -15
- package/esm2022/components/custom-formly/types/select-tree/select-tree.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/stepper/horizontal/stepper.component.mjs +3 -3
- package/esm2022/components/custom-formly/types/stepper/stepper.type.mjs +1 -1
- package/esm2022/components/custom-formly/types/stepper/vertical/stepper.component.mjs +3 -3
- package/esm2022/components/custom-formly/types/table/table.component.mjs +28 -14
- package/esm2022/components/custom-formly/types/tabs/tab.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/tags/tags.component.mjs +4 -4
- package/esm2022/components/custom-formly/types/textarea/textarea.component.mjs +3 -3
- package/esm2022/components/custom-formly/types/upload/upload.component.mjs +4 -4
- package/esm2022/components/custom-formly/wrappers/addons/addons.component.mjs +3 -3
- package/esm2022/components/custom-formly/wrappers/card/card.component.mjs +3 -3
- package/esm2022/components/custom-formly/wrappers/expansion/expansion.component.mjs +3 -3
- package/esm2022/components/custom-formly/wrappers/form-field/form-field.component.mjs +47 -0
- package/esm2022/components/custom-formly/wrappers/panel/panel.component.mjs +3 -3
- package/esm2022/components/date-range/date-range.component.mjs +6 -6
- package/esm2022/components/drawer/drawer.component.mjs +3 -3
- package/esm2022/components/drawer/drawer.service.mjs +3 -3
- package/esm2022/components/fullscreen/fullscreen.component.mjs +3 -3
- package/esm2022/components/highlight/highlight.component.mjs +3 -3
- package/esm2022/components/highlight/highlight.service.mjs +3 -3
- package/esm2022/components/json-editor/json-editor.component.mjs +6 -6
- package/esm2022/components/masonry/masonry.component.mjs +3 -3
- package/esm2022/components/material-color-picker/material-color-picker.component.mjs +5 -5
- package/esm2022/components/material-datetimepicker/calendar-body.mjs +5 -5
- package/esm2022/components/material-datetimepicker/calendar.mjs +5 -5
- package/esm2022/components/material-datetimepicker/clock.mjs +5 -5
- package/esm2022/components/material-datetimepicker/datetimepicker-input.mjs +3 -3
- package/esm2022/components/material-datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/components/material-datetimepicker/datetimepicker-toggle.mjs +8 -8
- package/esm2022/components/material-datetimepicker/datetimepicker.mjs +14 -11
- package/esm2022/components/material-datetimepicker/month-view.mjs +5 -5
- package/esm2022/components/material-datetimepicker/multi-year-view.mjs +3 -3
- package/esm2022/components/material-datetimepicker/time.mjs +8 -8
- package/esm2022/components/material-datetimepicker/year-view.mjs +3 -3
- package/esm2022/components/navigation/horizontal/components/basic/basic.component.mjs +5 -5
- package/esm2022/components/navigation/horizontal/components/branch/branch.component.mjs +3 -3
- package/esm2022/components/navigation/horizontal/components/divider/divider.component.mjs +3 -3
- package/esm2022/components/navigation/horizontal/components/spacer/spacer.component.mjs +3 -3
- package/esm2022/components/navigation/horizontal/horizontal.component.mjs +4 -4
- package/esm2022/components/navigation/navigation.service.mjs +3 -3
- package/esm2022/components/navigation/vertical/components/aside/aside.component.mjs +3 -3
- package/esm2022/components/navigation/vertical/components/basic/basic.component.mjs +5 -5
- package/esm2022/components/navigation/vertical/components/collapsable/collapsable.component.mjs +5 -5
- package/esm2022/components/navigation/vertical/components/divider/divider.component.mjs +3 -3
- package/esm2022/components/navigation/vertical/components/group/group.component.mjs +3 -3
- package/esm2022/components/navigation/vertical/components/spacer/spacer.component.mjs +3 -3
- package/esm2022/components/navigation/vertical/vertical.component.mjs +4 -4
- package/esm2022/components/pagination/pagination.component.mjs +5 -5
- package/esm2022/components/pagination/pagination.directive.mjs +3 -3
- package/esm2022/components/pagination/pagination.pipe.mjs +3 -3
- package/esm2022/components/pagination/pagination.service.mjs +3 -3
- package/esm2022/components/password-strength/mat-pass-toggle-visibility/mat-pass-toggle-visibility.component.mjs +5 -5
- package/esm2022/components/password-strength/mat-password-strength/mat-password-strength.component.mjs +3 -3
- package/esm2022/components/password-strength/mat-password-strength-info/mat-password-strength-info.component.mjs +5 -5
- package/esm2022/components/popover/popover-trigger.mjs +3 -3
- package/esm2022/components/popover/popover.component.mjs +3 -3
- package/esm2022/components/popover/popover.target.mjs +3 -3
- package/esm2022/components/progress-bar/progress-bar.component.mjs +5 -5
- package/esm2022/components/rating/rating.component.mjs +5 -5
- package/esm2022/components/select-search/select-no-entries-found.directive.mjs +3 -3
- package/esm2022/components/select-search/select-search-clear.directive.mjs +4 -4
- package/esm2022/components/select-search/select-search.component.mjs +6 -6
- package/esm2022/components/select-tree/select-tree.component.mjs +6 -6
- package/esm2022/components/timeline/timeline-item/timeline-item.component.mjs +11 -11
- package/esm2022/components/timeline/timeline.component.mjs +4 -4
- package/esm2022/components/toast/toast-modal.component.mjs +5 -5
- package/esm2022/components/toast/toast.component.mjs +3 -3
- package/esm2022/components/toast/toast.service.mjs +3 -3
- package/esm2022/components/transfer-picker/filter/filter.component.mjs +5 -5
- package/esm2022/components/transfer-picker/search/search.component.mjs +5 -5
- package/esm2022/components/transfer-picker/transfer-picker-source/transfer-picker-source.component.mjs +5 -5
- package/esm2022/components/transfer-picker/transfer-picker-target/transfer-picker-target.component.mjs +5 -5
- package/esm2022/components/transfer-picker/transfer-picker.component.mjs +5 -5
- package/esm2022/components/transfer-picker/transfer-picker.service.mjs +4 -4
- package/esm2022/components/upload/files.util.service.mjs +3 -3
- package/esm2022/components/upload/upload-queue/upload-queue.component.mjs +13 -12
- package/esm2022/components/upload/upload.component.mjs +3 -3
- package/esm2022/directives/animate-on-scroll/animate-on-scroll.directive.mjs +3 -3
- package/esm2022/directives/animate-on-scroll/scroll.service.mjs +3 -3
- package/esm2022/directives/autofocus/autofocus.directive.mjs +3 -3
- package/esm2022/directives/debounce/abstract-debounce.directive.mjs +3 -3
- package/esm2022/directives/debounce/debounce-click.directive.mjs +3 -3
- package/esm2022/directives/debounce/debounce-keyup.directive.mjs +3 -3
- package/esm2022/directives/digit-only/digit-only.directive.mjs +10 -10
- package/esm2022/directives/digit-only/mask.directive.mjs +5 -5
- package/esm2022/directives/equal-validator/equal-validator.directive.mjs +3 -3
- package/esm2022/lib/mock-api/mock-api.interceptor.mjs +3 -3
- package/esm2022/lib/mock-api/mock-api.service.mjs +3 -3
- package/esm2022/pipes/bytes/bytes.pipe.mjs +3 -3
- package/esm2022/pipes/date-format/date-format.pipe.mjs +7 -5
- package/esm2022/pipes/find-by-key/find-by-key.pipe.mjs +3 -3
- package/esm2022/pipes/group-by/group-by.pipe.mjs +3 -3
- package/esm2022/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/pipes/secure/secure-pipe.mjs +3 -3
- package/esm2022/pipes/uppercase/uppercase.pipe.mjs +3 -3
- package/esm2022/services/alert/alert.service.mjs +3 -3
- package/esm2022/services/config/config.service.mjs +3 -3
- package/esm2022/services/config/urlStateConfig.service.mjs +3 -3
- package/esm2022/services/confirmation/confirmation.service.mjs +3 -3
- package/esm2022/services/confirmation/dialog/dialog.component.mjs +5 -5
- package/esm2022/services/data/data.service.mjs +3 -3
- package/esm2022/services/loading/loading.interceptor.mjs +5 -5
- package/esm2022/services/loading/loading.service.mjs +3 -3
- package/esm2022/services/local-storage/local-storage.service.mjs +3 -3
- package/esm2022/services/media-watcher/media-watcher.service.mjs +3 -3
- package/esm2022/services/platform/platform.service.mjs +3 -3
- package/esm2022/services/splash-screen/splash-screen.service.mjs +3 -3
- package/esm2022/services/title/title.service.mjs +3 -3
- package/esm2022/services/translation/translation.service.mjs +5 -5
- package/esm2022/services/utils/utils.service.mjs +8 -7
- package/fesm2022/cmat-animations.mjs.map +1 -1
- package/fesm2022/cmat-components-adapter.mjs +9 -9
- package/fesm2022/cmat-components-breadcrumb.mjs +10 -10
- package/fesm2022/cmat-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/cmat-components-card.mjs +4 -4
- package/fesm2022/cmat-components-card.mjs.map +1 -1
- package/fesm2022/cmat-components-cascade.mjs +13 -13
- package/fesm2022/cmat-components-cascade.mjs.map +1 -1
- package/fesm2022/cmat-components-chip-input.mjs +5 -6
- package/fesm2022/cmat-components-chip-input.mjs.map +1 -1
- package/fesm2022/cmat-components-custom-formly.mjs +235 -142
- package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
- package/fesm2022/cmat-components-date-range.mjs +5 -5
- package/fesm2022/cmat-components-date-range.mjs.map +1 -1
- package/fesm2022/cmat-components-drawer.mjs +6 -6
- package/fesm2022/cmat-components-fullscreen.mjs +3 -3
- package/fesm2022/cmat-components-highlight.mjs +6 -6
- package/fesm2022/cmat-components-json-editor.mjs +5 -5
- package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
- package/fesm2022/cmat-components-masonry.mjs +3 -3
- package/fesm2022/cmat-components-material-color-picker.mjs +4 -4
- package/fesm2022/cmat-components-material-color-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-material-datetimepicker.mjs +55 -52
- package/fesm2022/cmat-components-material-datetimepicker.mjs.map +1 -1
- package/fesm2022/cmat-components-navigation.mjs +42 -42
- package/fesm2022/cmat-components-navigation.mjs.map +1 -1
- package/fesm2022/cmat-components-pagination.mjs +13 -13
- package/fesm2022/cmat-components-pagination.mjs.map +1 -1
- package/fesm2022/cmat-components-password-strength.mjs +11 -11
- package/fesm2022/cmat-components-password-strength.mjs.map +1 -1
- package/fesm2022/cmat-components-popover.mjs +9 -9
- package/fesm2022/cmat-components-progress-bar.mjs +4 -4
- package/fesm2022/cmat-components-progress-bar.mjs.map +1 -1
- package/fesm2022/cmat-components-rating.mjs +4 -4
- package/fesm2022/cmat-components-rating.mjs.map +1 -1
- package/fesm2022/cmat-components-select-search.mjs +11 -11
- package/fesm2022/cmat-components-select-search.mjs.map +1 -1
- package/fesm2022/cmat-components-select-tree.mjs +5 -5
- package/fesm2022/cmat-components-select-tree.mjs.map +1 -1
- package/fesm2022/cmat-components-timeline.mjs +13 -13
- package/fesm2022/cmat-components-timeline.mjs.map +1 -1
- package/fesm2022/cmat-components-toast.mjs +10 -10
- package/fesm2022/cmat-components-toast.mjs.map +1 -1
- package/fesm2022/cmat-components-transfer-picker.mjs +23 -23
- package/fesm2022/cmat-components-transfer-picker.mjs.map +1 -1
- package/fesm2022/cmat-components-upload.mjs +18 -17
- package/fesm2022/cmat-components-upload.mjs.map +1 -1
- package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -6
- package/fesm2022/cmat-directives-autofocus.mjs +3 -3
- package/fesm2022/cmat-directives-debounce.mjs +9 -9
- package/fesm2022/cmat-directives-digit-only.mjs +13 -13
- package/fesm2022/cmat-directives-digit-only.mjs.map +1 -1
- package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
- package/fesm2022/cmat-lib-mock-api.mjs +6 -6
- package/fesm2022/cmat-pipes-bytes.mjs +3 -3
- package/fesm2022/cmat-pipes-date-format.mjs +6 -4
- package/fesm2022/cmat-pipes-date-format.mjs.map +1 -1
- package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
- package/fesm2022/cmat-pipes-group-by.mjs +3 -3
- package/fesm2022/cmat-pipes-keys.mjs +3 -3
- package/fesm2022/cmat-pipes-secure.mjs +3 -3
- package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
- package/fesm2022/cmat-services-alert.mjs +3 -3
- package/fesm2022/cmat-services-config.mjs +6 -6
- package/fesm2022/cmat-services-confirmation.mjs +7 -7
- package/fesm2022/cmat-services-confirmation.mjs.map +1 -1
- package/fesm2022/cmat-services-data.mjs +3 -3
- package/fesm2022/cmat-services-loading.mjs +7 -7
- 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 +3 -3
- package/fesm2022/cmat-services-platform.mjs +3 -3
- package/fesm2022/cmat-services-splash-screen.mjs +3 -3
- package/fesm2022/cmat-services-title.mjs +3 -3
- package/fesm2022/cmat-services-translation.mjs +4 -4
- package/fesm2022/cmat-services-translation.mjs.map +1 -1
- package/fesm2022/cmat-services-utils.mjs +7 -6
- package/fesm2022/cmat-services-utils.mjs.map +1 -1
- package/icons/material-icons/material-solid.svg +3585 -3585
- package/package.json +49 -49
- package/pipes/date-format/date-format.pipe.d.ts +1 -1
- package/styles/overrides/angular-material.scss +6 -0
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# Cmat
|
|
2
|
-
|
|
1
|
+
# Cmat
|
|
2
|
+
|
|
3
3
|
个人使用UI控件包,基于angular material
|
|
@@ -3,6 +3,7 @@ export * from './wrappers/addons/addons.component';
|
|
|
3
3
|
export * from './wrappers/card/card.component';
|
|
4
4
|
export * from './wrappers/expansion/expansion.component';
|
|
5
5
|
export * from './wrappers/panel/panel.component';
|
|
6
|
+
export * from './wrappers/form-field/form-field.component';
|
|
6
7
|
export * from './types/button/button.component';
|
|
7
8
|
export * from './types/cascade/cascade.component';
|
|
8
9
|
export * from './types/checklist/checklist.component';
|
|
@@ -1,17 +1,33 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
1
3
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldType
|
|
4
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
5
|
+
import { CmatToastService } from 'cmat/components/toast';
|
|
6
|
+
import { CmatAlertMessage } from 'cmat/services/alert';
|
|
7
|
+
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
8
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
3
9
|
import * as i0 from "@angular/core";
|
|
4
|
-
interface ButtonProps extends
|
|
10
|
+
interface ButtonProps extends CustomFormFieldProps {
|
|
5
11
|
color?: 'primary' | 'accent' | 'warn';
|
|
6
12
|
onClick?: any;
|
|
7
13
|
}
|
|
8
|
-
export declare class CmatButtonTypeComponent extends FieldType<FieldTypeConfig<ButtonProps>> {
|
|
14
|
+
export declare class CmatButtonTypeComponent extends FieldType<FieldTypeConfig<ButtonProps>> implements OnInit, OnDestroy {
|
|
15
|
+
private _cmatToastService;
|
|
16
|
+
private _snackBar;
|
|
17
|
+
private _cmatMediaWatcherService;
|
|
9
18
|
defaultOptions: {
|
|
10
19
|
props: {
|
|
11
20
|
color: "primary";
|
|
12
21
|
};
|
|
13
22
|
};
|
|
23
|
+
private _isPhone;
|
|
24
|
+
private _unsubscribeAll;
|
|
25
|
+
constructor(_cmatToastService: CmatToastService, _snackBar: MatSnackBar, _cmatMediaWatcherService: CmatMediaWatcherService);
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
14
28
|
onClick($event: Event): void;
|
|
29
|
+
showMessage(message: CmatAlertMessage | void): void;
|
|
30
|
+
private _executeFunctionFromString;
|
|
15
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<CmatButtonTypeComponent, never>;
|
|
16
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<CmatButtonTypeComponent, "cmat-button-type", never, {}, {}, never, never, true, never>;
|
|
17
33
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
-
import { FieldType
|
|
4
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
5
5
|
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
6
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
interface ChipsCascadeProps extends
|
|
8
|
+
interface ChipsCascadeProps extends CustomFormFieldProps {
|
|
8
9
|
clearable: boolean;
|
|
9
10
|
fullLevels: boolean;
|
|
10
11
|
changeOnSelect: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { OnInit, OnDestroy } from '@angular/core';
|
|
3
3
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
-
import { FieldType
|
|
4
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
interface CheckListProps extends
|
|
8
|
+
interface CheckListProps extends CustomFormFieldProps {
|
|
8
9
|
showAllCheck: boolean;
|
|
9
10
|
controlMaxHeight: boolean;
|
|
10
11
|
domain?: {
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
4
|
-
import { FieldType
|
|
4
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
5
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface ChipsInputProps extends
|
|
7
|
+
interface ChipsInputProps extends CustomFormFieldProps {
|
|
7
8
|
hasAutocomplete?: boolean;
|
|
8
9
|
autocompleteText?: string;
|
|
9
10
|
domain?: {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldType
|
|
2
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
3
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
interface DateRangeProps extends
|
|
5
|
+
interface DateRangeProps extends CustomFormFieldProps {
|
|
5
6
|
dateFormat: string;
|
|
6
7
|
timeFormat: string;
|
|
7
8
|
timeRange: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
3
|
-
import { FieldType
|
|
3
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
4
4
|
import { CmatCalendarView, CmatDatetimepickerMode, CmatDatetimepickerType } from 'cmat/components/material-datetimepicker';
|
|
5
5
|
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
6
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
interface DatepickerProps extends
|
|
8
|
+
interface DatepickerProps extends CustomFormFieldProps {
|
|
8
9
|
startView: CmatCalendarView;
|
|
9
10
|
mode: CmatDatetimepickerMode;
|
|
10
11
|
togglePosition: 'left' | 'right';
|
|
@@ -2,10 +2,11 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { QueryList, Type, OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
import { MatCheckbox } from '@angular/material/checkbox';
|
|
4
4
|
import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
5
|
-
import { FieldType
|
|
5
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
interface MultiCheckboxProps extends
|
|
9
|
+
interface MultiCheckboxProps extends CustomFormFieldProps {
|
|
9
10
|
labelPosition: 'before' | 'after';
|
|
10
11
|
domain?: {
|
|
11
12
|
url?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldType
|
|
2
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
3
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
interface NumberProps extends
|
|
5
|
+
interface NumberProps extends CustomFormFieldProps {
|
|
5
6
|
decimal: boolean;
|
|
6
7
|
min: number;
|
|
7
8
|
max: number;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
3
|
-
import { FieldType
|
|
3
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
4
4
|
import { QuillModules } from 'ngx-quill';
|
|
5
5
|
import { CmatFilesUtilService } from 'cmat/components/upload';
|
|
6
6
|
import { CmatUrlStateConfigService } from 'cmat/services/config';
|
|
7
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
interface QuillProps extends
|
|
9
|
+
interface QuillProps extends CustomFormFieldProps {
|
|
9
10
|
fileAlias: string;
|
|
10
11
|
filePath: string;
|
|
11
12
|
}
|
|
@@ -2,10 +2,11 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { AfterViewInit, OnDestroy, Type, OnInit } from '@angular/core';
|
|
3
3
|
import { MatRadioGroup } from '@angular/material/radio';
|
|
4
4
|
import { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
5
|
-
import { FieldType
|
|
5
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
interface RadioProps extends
|
|
9
|
+
interface RadioProps extends CustomFormFieldProps {
|
|
9
10
|
labelPosition: 'before' | 'after';
|
|
10
11
|
domain?: {
|
|
11
12
|
url?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldType
|
|
2
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
3
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
interface RatingProps extends
|
|
5
|
+
interface RatingProps extends CustomFormFieldProps {
|
|
5
6
|
stars: number;
|
|
6
7
|
readonly: boolean;
|
|
7
8
|
hover: boolean;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { FieldArrayType, FieldTypeConfig
|
|
1
|
+
import { FieldArrayType, FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
interface RepeatProps extends
|
|
4
|
+
interface RepeatProps extends CustomFormFieldProps {
|
|
4
5
|
addText: string;
|
|
5
6
|
}
|
|
6
7
|
export declare class CmatRepeatTypeComponent extends FieldArrayType<FieldTypeConfig<RepeatProps>> {
|
|
@@ -3,10 +3,11 @@ import { OnDestroy, OnInit } from '@angular/core';
|
|
|
3
3
|
import { FormControl } from '@angular/forms';
|
|
4
4
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
5
5
|
import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
|
6
|
-
import { FieldType
|
|
6
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
7
7
|
import { ReplaySubject } from 'rxjs';
|
|
8
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
|
-
interface SelectProps extends
|
|
10
|
+
interface SelectProps extends CustomFormFieldProps, FormlyFieldSelectProps {
|
|
10
11
|
multiple?: boolean;
|
|
11
12
|
disableOptionCentering?: boolean;
|
|
12
13
|
typeaheadDebounceInterval?: number;
|
|
@@ -3,9 +3,9 @@ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
|
3
3
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
4
4
|
import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
|
|
5
5
|
import { FieldType } from '@ngx-formly/material';
|
|
6
|
-
import {
|
|
6
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
interface SelectTreeProps extends
|
|
8
|
+
interface SelectTreeProps extends CustomFormFieldProps, FormlyFieldSelectProps {
|
|
9
9
|
multiple: boolean;
|
|
10
10
|
search: boolean;
|
|
11
11
|
canNull: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface StepperProps extends
|
|
1
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
2
|
+
export interface StepperProps extends CustomFormFieldProps {
|
|
3
3
|
isEditable?: boolean;
|
|
4
4
|
isLinear?: boolean;
|
|
5
5
|
isOptional?: boolean;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { OnInit, TemplateRef, ChangeDetectorRef } from '@angular/core';
|
|
1
|
+
import { OnInit, TemplateRef, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
3
|
import { MatTable } from '@angular/material/table';
|
|
4
|
-
import { FieldArrayType, FieldTypeConfig, FormlyFieldConfig
|
|
4
|
+
import { FieldArrayType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
5
|
+
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
6
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
|
-
interface TableProps extends
|
|
8
|
+
interface TableProps extends CustomFormFieldProps {
|
|
7
9
|
addText: string;
|
|
8
10
|
showColumn?: boolean;
|
|
9
11
|
}
|
|
10
|
-
export declare class CmatTableTypeComponent extends FieldArrayType<FieldTypeConfig<TableProps>> implements OnInit {
|
|
12
|
+
export declare class CmatTableTypeComponent extends FieldArrayType<FieldTypeConfig<TableProps>> implements OnInit, OnDestroy {
|
|
13
|
+
private _cmatMediaWatcherService;
|
|
11
14
|
private _changeDetectorRef;
|
|
12
15
|
dialogRef: TemplateRef<any>;
|
|
13
16
|
table: MatTable<any>;
|
|
@@ -25,13 +28,16 @@ export declare class CmatTableTypeComponent extends FieldArrayType<FieldTypeConf
|
|
|
25
28
|
addText: string;
|
|
26
29
|
};
|
|
27
30
|
};
|
|
31
|
+
isScreenSmall: boolean;
|
|
28
32
|
private readonly _dialog;
|
|
29
33
|
private readonly _viewContainerRef;
|
|
30
34
|
private _dialogRef;
|
|
31
|
-
|
|
35
|
+
private _unsubscribeAll;
|
|
36
|
+
constructor(_cmatMediaWatcherService: CmatMediaWatcherService, _changeDetectorRef: ChangeDetectorRef);
|
|
32
37
|
get fieldArray(): FormlyFieldConfig[];
|
|
33
38
|
get key(): string;
|
|
34
39
|
ngOnInit(): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
35
41
|
addRow(): void;
|
|
36
42
|
editRow(item: any, index: number): void;
|
|
37
43
|
deleteRow(id: number): void;
|
|
@@ -2,10 +2,11 @@ import { Overlay } from '@angular/cdk/overlay';
|
|
|
2
2
|
import { HttpClient } from '@angular/common/http';
|
|
3
3
|
import { ChangeDetectorRef, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
4
4
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
5
|
-
import { FieldType
|
|
5
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
8
|
-
interface TagsProps extends
|
|
9
|
+
interface TagsProps extends CustomFormFieldProps {
|
|
9
10
|
domain?: {
|
|
10
11
|
url?: string;
|
|
11
12
|
code?: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { FieldTypeConfig } from '@ngx-formly/core';
|
|
2
|
-
import { FieldType
|
|
2
|
+
import { FieldType } from '@ngx-formly/material/form-field';
|
|
3
|
+
import { CustomFormFieldProps } from '../../wrappers/form-field/form-field.component';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
interface UploadProps extends
|
|
5
|
+
interface UploadProps extends CustomFormFieldProps {
|
|
5
6
|
fileAlias: string;
|
|
6
7
|
filePath: string;
|
|
7
8
|
fileCategory: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { AfterViewInit, ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
3
|
+
import { MatFormField } from '@angular/material/form-field';
|
|
4
|
+
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
|
5
|
+
import { FormlyFieldProps, FormlyWrapperFormField } from '@ngx-formly/material/form-field/form-field.wrapper';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface MatFormlyFieldConfig extends FormlyFieldConfig<CustomFormFieldProps> {
|
|
8
|
+
_formField?: FormlyWrapperFormField;
|
|
9
|
+
}
|
|
10
|
+
export interface CustomFormFieldProps extends FormlyFieldProps {
|
|
11
|
+
showValidationMessage?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare class CmatFormFieldWrapperComponent extends FieldWrapper<MatFormlyFieldConfig> implements OnInit, OnDestroy, AfterViewInit {
|
|
14
|
+
private renderer;
|
|
15
|
+
private elementRef;
|
|
16
|
+
private focusMonitor;
|
|
17
|
+
formField: MatFormField;
|
|
18
|
+
constructor(renderer: Renderer2, elementRef: ElementRef, focusMonitor: FocusMonitor);
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
ngOnDestroy(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatFormFieldWrapperComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CmatFormFieldWrapperComponent, "cmat-form-field-wrapper", never, {}, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
|
-
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, Injector, OnDestroy, OnInit, ViewContainerRef } from '@angular/core';
|
|
4
4
|
import { ThemePalette } from '@angular/material/core';
|
|
5
5
|
import { Subject } from 'rxjs';
|
|
6
6
|
import { DatetimeAdapter } from 'cmat/components/adapter';
|
|
@@ -47,6 +47,7 @@ export declare class CmatDatetimepickerContentComponent<D> implements OnInit, Af
|
|
|
47
47
|
}
|
|
48
48
|
export declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
49
49
|
private _overlay;
|
|
50
|
+
private _injector;
|
|
50
51
|
private _viewContainerRef;
|
|
51
52
|
private _scrollStrategy;
|
|
52
53
|
private _dateAdapter;
|
|
@@ -97,7 +98,7 @@ export declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
97
98
|
private _disabled;
|
|
98
99
|
private _timeInput;
|
|
99
100
|
private _restoreFocus;
|
|
100
|
-
constructor(_overlay: Overlay, _viewContainerRef: ViewContainerRef, _scrollStrategy: any, _dateAdapter: DatetimeAdapter<D>, _dir: Directionality, _document: any);
|
|
101
|
+
constructor(_overlay: Overlay, _injector: Injector, _viewContainerRef: ViewContainerRef, _scrollStrategy: any, _dateAdapter: DatetimeAdapter<D>, _dir: Directionality, _document: any);
|
|
101
102
|
/** Whether to show multi-year view. */
|
|
102
103
|
get multiYearSelector(): boolean;
|
|
103
104
|
set multiYearSelector(value: boolean);
|
|
@@ -184,6 +185,6 @@ export declare class CmatDatetimepickerComponent<D> implements OnDestroy {
|
|
|
184
185
|
private _setConnectedPositions;
|
|
185
186
|
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
186
187
|
private _getCloseStream;
|
|
187
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerComponent<any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
188
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CmatDatetimepickerComponent<any>, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
188
189
|
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>;
|
|
189
190
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
2
|
import { CmatMediaWatcherService } from 'cmat/services/media-watcher';
|
|
3
3
|
import { CmatUploadComponent } from '../upload.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class CmatUploadQueueComponent implements OnDestroy, AfterViewInit {
|
|
6
6
|
private _changeDetectorRef;
|
|
7
7
|
private _cmatMediaWatcherService;
|
|
8
|
+
private _elementRef;
|
|
8
9
|
fileUploads: QueryList<CmatUploadComponent>;
|
|
9
10
|
fileAlias: string;
|
|
10
11
|
filePath: string;
|
|
@@ -22,7 +23,7 @@ export declare class CmatUploadQueueComponent implements OnDestroy, AfterViewIni
|
|
|
22
23
|
id: string;
|
|
23
24
|
isHandSet: boolean;
|
|
24
25
|
private _unsubscribeAll;
|
|
25
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _cmatMediaWatcherService: CmatMediaWatcherService);
|
|
26
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _cmatMediaWatcherService: CmatMediaWatcherService, _elementRef: ElementRef);
|
|
26
27
|
onDrop(event: any): void;
|
|
27
28
|
onDropOver(event: any): void;
|
|
28
29
|
ngAfterViewInit(): void;
|
|
@@ -23,4 +23,4 @@ export const dropdown = trigger('dropdown', [
|
|
|
23
23
|
})),
|
|
24
24
|
transition('* => *', animate('250ms ease-out'))
|
|
25
25
|
]);
|
|
26
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJvcGRvd24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9jbWF0L2FuaW1hdGlvbnMvZHJvcGRvd24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLE9BQU8sRUFBNEIsS0FBSyxFQUFFLEtBQUssRUFBRSxVQUFVLEVBQUUsT0FBTyxFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFFekcsTUFBTSxDQUFDLE1BQU0sUUFBUSxHQUE2QixPQUFPLENBQ3JELFVBQVUsRUFBRTtJQUNSLEtBQUssQ0FBQyxHQUFHLEVBQUUsS0FBSyxDQUFDO1FBQ2IsT0FBTyxFQUFFLENBQUM7UUFDVixNQUFNLEVBQUUsQ0FBQztRQUNULE1BQU0sRUFBRSxDQUFDO1FBQ1QsT0FBTyxFQUFFLENBQUM7UUFDVixVQUFVLEVBQUUsUUFBUTtLQUN2QixDQUFDLENBQUM7SUFDSCxLQUFLLENBQUMsT0FBTyxFQUFFLEtBQUssQ0FBQztRQUNqQixPQUFPLEVBQUUsQ0FBQztRQUNWLE1BQU0sRUFBRSxDQUFDO1FBQ1QsTUFBTSxFQUFFLENBQUM7UUFDVCxPQUFPLEVBQUUsQ0FBQztRQUNWLFVBQVUsRUFBRSxRQUFRO0tBQ3ZCLENBQUMsQ0FBQztJQUNILEtBQUssQ0FBQyxNQUFNLEVBQUUsS0FBSyxDQUFDO1FBQ2hCLE9BQU8sRUFBRSxDQUFDO1FBQ1YsTUFBTSxFQUFFLEdBQUc7UUFDWCxNQUFNLEVBQUUsR0FBRztRQUNYLE9BQU8sRUFBRSxHQUFHO1FBQ1osVUFBVSxFQUFFLFNBQVM7S0FDeEIsQ0FBQyxDQUFDO0lBQ0gsVUFBVSxDQUFDLFFBQVEsRUFBRSxPQUFPLENBQUMsZ0JBQWdCLENBQUMsQ0FBQztDQUNsRCxDQUNKLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge2FuaW1hdGUsIEFuaW1hdGlvblRyaWdnZXJNZXRhZGF0YSwgc3RhdGUsIHN0eWxlLCB0cmFuc2l0aW9uLCB0cmlnZ2VyfSBmcm9tICdAYW5ndWxhci9hbmltYXRpb25zJztcclxuXHJcbmV4cG9ydCBjb25zdCBkcm9wZG93bjogQW5pbWF0aW9uVHJpZ2dlck1ldGFkYXRhID0gdHJpZ2dlcihcclxuICAgICdkcm9wZG93bicsIFtcclxuICAgICAgICBzdGF0ZSgnKicsIHN0eWxlKHtcclxuICAgICAgICAgICAgb3BhY2l0eTogMCxcclxuICAgICAgICAgICAgaGVpZ2h0OiAwLFxyXG4gICAgICAgICAgICBib3JkZXI6IDAsXHJcbiAgICAgICAgICAgIHBhZGRpbmc6IDAsXHJcbiAgICAgICAgICAgIHZpc2liaWxpdHk6ICdoaWRkZW4nLFxyXG4gICAgICAgIH0pKSxcclxuICAgICAgICBzdGF0ZSgnZmFsc2UnLCBzdHlsZSh7XHJcbiAgICAgICAgICAgIG9wYWNpdHk6IDAsXHJcbiAgICAgICAgICAgIGhlaWdodDogMCxcclxuICAgICAgICAgICAgYm9yZGVyOiAwLFxyXG4gICAgICAgICAgICBwYWRkaW5nOiAwLFxyXG4gICAgICAgICAgICB2aXNpYmlsaXR5OiAnaGlkZGVuJyxcclxuICAgICAgICB9KSksXHJcbiAgICAgICAgc3RhdGUoJ3RydWUnLCBzdHlsZSh7XHJcbiAgICAgICAgICAgIG9wYWNpdHk6IDEsXHJcbiAgICAgICAgICAgIGhlaWdodDogJyonLFxyXG4gICAgICAgICAgICBib3JkZXI6ICcqJyxcclxuICAgICAgICAgICAgcGFkZGluZzogJyonLFxyXG4gICAgICAgICAgICB2aXNpYmlsaXR5OiAnaW5oZXJpdCcsXHJcbiAgICAgICAgfSkpLFxyXG4gICAgICAgIHRyYW5zaXRpb24oJyogPT4gKicsIGFuaW1hdGUoJzI1MG1zIGVhc2Utb3V0JykpXHJcbiAgICBdXHJcbik7XHJcbiJdfQ==
|
|
@@ -179,10 +179,10 @@ export class DayjsDateAdapter extends DateAdapter {
|
|
|
179
179
|
dayjs.extend(localeData);
|
|
180
180
|
this.setLocale(dateLocale);
|
|
181
181
|
}
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
183
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DayjsDateAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: CMAT_DAYJS_DATE_ADAPTER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
183
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DayjsDateAdapter }); }
|
|
184
184
|
}
|
|
185
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
185
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DayjsDateAdapter, decorators: [{
|
|
186
186
|
type: Injectable
|
|
187
187
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
188
188
|
type: Optional
|
|
@@ -86,10 +86,10 @@ export class DayjsDatetimeAdapter extends DatetimeAdapter {
|
|
|
86
86
|
_getDateInNextMonth(date) {
|
|
87
87
|
return super.clone(date).date(1).add(1, 'month');
|
|
88
88
|
}
|
|
89
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
90
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
89
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DayjsDatetimeAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: i1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
90
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DayjsDatetimeAdapter }); }
|
|
91
91
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: DayjsDatetimeAdapter, decorators: [{
|
|
93
93
|
type: Injectable
|
|
94
94
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
95
95
|
type: Optional
|
|
@@ -116,10 +116,10 @@ export class CNativeDatetimeAdapter extends DatetimeAdapter {
|
|
|
116
116
|
}
|
|
117
117
|
return result;
|
|
118
118
|
}
|
|
119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
120
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.
|
|
119
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CNativeDatetimeAdapter, deps: [{ token: MAT_DATE_LOCALE, optional: true }, { token: i1.DateAdapter }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
120
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CNativeDatetimeAdapter }); }
|
|
121
121
|
}
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CNativeDatetimeAdapter, decorators: [{
|
|
123
123
|
type: Injectable
|
|
124
124
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
125
125
|
type: Optional
|
|
@@ -6,10 +6,10 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
* Usage: refer to the demo - app.component.html
|
|
7
7
|
*/
|
|
8
8
|
export class CmatBreadcrumbItemDirective {
|
|
9
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
10
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.
|
|
9
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CmatBreadcrumbItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
10
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.9", type: CmatBreadcrumbItemDirective, isStandalone: true, selector: "[cmatBreadcrumbItem]", ngImport: i0 }); }
|
|
11
11
|
}
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CmatBreadcrumbItemDirective, decorators: [{
|
|
13
13
|
type: Directive,
|
|
14
14
|
args: [{
|
|
15
15
|
selector: '[cmatBreadcrumbItem]',
|
|
@@ -69,10 +69,10 @@ export class CmatBreadcrumbComponent {
|
|
|
69
69
|
};
|
|
70
70
|
})));
|
|
71
71
|
}
|
|
72
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
|
73
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.
|
|
72
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CmatBreadcrumbComponent, deps: [{ token: i1.CmatBreadcrumbService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
73
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.9", type: CmatBreadcrumbComponent, isStandalone: true, selector: "cmat-breadcrumb", inputs: { autoGenerate: "autoGenerate", preserveQueryParams: "preserveQueryParams", preserveFragment: "preserveFragment", class: "class", anchorTarget: "anchorTarget", separator: "separator" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: CmatBreadcrumbItemDirective, descendants: true, read: TemplateRef }], exportAs: ["cmatBreadcrumb"], ngImport: i0, template: "<nav aria-label=\"breadcrumb\" class=\"m-0\" [ngClass]=\"class\">\r\n <ol class=\"flex items-center flex-wrap m-0 p-0\">\r\n @for (\r\n breadcrumb of breadcrumbs$ | async; track\r\n $index; let isLast = $last; let isFirst = $first; let index = $index; let count = $count) {\r\n <li class=\"list-none\">\r\n @if (!isLast) {\r\n <a class=\"cmat-breadcrumb-link\"\r\n rel=\"noopener noreferrer\"\r\n [ngClass]=\"{ 'pointer-events-none cursor-not-allowed': breadcrumb.disable }\" [attr.aria-disabled]=\"breadcrumb.disable\"\r\n [attr.tabIndex]=\"breadcrumb.disable ? -1 : 0\" [routerLink]=\"\r\n breadcrumb.routeInterceptor\r\n ? breadcrumb.routeInterceptor( breadcrumb,breadcrumb.routeLink)\r\n : breadcrumb.routeLink\" [queryParams]=\"preserveQueryParams ? breadcrumb.queryParams : undefined\"\r\n [fragment]=\"preserveFragment ? breadcrumb.fragment : undefined\"\r\n [target]=\"anchorTarget ? anchorTarget : '_self'\">\r\n <ng-container *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n $implicit: breadcrumb.label,\r\n info: breadcrumb.info,\r\n last: isLast,\r\n first: isFirst,\r\n index: index,\r\n count: count\r\n }\r\n \"></ng-container>\r\n @if (!itemTemplate) {\r\n {{\r\n breadcrumb.label\r\n }}\r\n }\r\n </a>\r\n }\r\n @if (isLast) {\r\n <span class=\"flex items-center\">\r\n <ng-container *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n $implicit: breadcrumb.label,\r\n info: breadcrumb.info,\r\n last: isLast,\r\n first: isFirst,\r\n index: index,\r\n count: count\r\n }\r\n \"></ng-container>\r\n @if (!itemTemplate) {\r\n {{\r\n breadcrumb.label\r\n }}\r\n }\r\n </span>\r\n }\r\n </li>\r\n @if (!isLast) {\r\n <li class=\"flex select-none mx-4\" aria-hidden=\"true\" role=\"separator\">\r\n <ng-container *ngTemplateOutlet=\"separatorTemplate\"></ng-container>\r\n @if (separatorTemplate===null) {\r\n {{ separator }}\r\n }\r\n </li>\r\n }\r\n}\r\n</ol>\r\n</nav>", styles: ["cmat-breadcrumb .cmat-breadcrumb-link{display:flex;align-items:center;white-space:nowrap;color:inherit;text-decoration:none;transition:text-decoration .3s;cursor:pointer}cmat-breadcrumb .cmat-breadcrumb-link:hover{text-decoration-line:underline}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
74
74
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImport: i0, type: CmatBreadcrumbComponent, decorators: [{
|
|
76
76
|
type: Component,
|
|
77
77
|
args: [{ selector: 'cmat-breadcrumb', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, exportAs: 'cmatBreadcrumb', standalone: true, imports: [NgClass, AsyncPipe, RouterLink, NgTemplateOutlet], template: "<nav aria-label=\"breadcrumb\" class=\"m-0\" [ngClass]=\"class\">\r\n <ol class=\"flex items-center flex-wrap m-0 p-0\">\r\n @for (\r\n breadcrumb of breadcrumbs$ | async; track\r\n $index; let isLast = $last; let isFirst = $first; let index = $index; let count = $count) {\r\n <li class=\"list-none\">\r\n @if (!isLast) {\r\n <a class=\"cmat-breadcrumb-link\"\r\n rel=\"noopener noreferrer\"\r\n [ngClass]=\"{ 'pointer-events-none cursor-not-allowed': breadcrumb.disable }\" [attr.aria-disabled]=\"breadcrumb.disable\"\r\n [attr.tabIndex]=\"breadcrumb.disable ? -1 : 0\" [routerLink]=\"\r\n breadcrumb.routeInterceptor\r\n ? breadcrumb.routeInterceptor( breadcrumb,breadcrumb.routeLink)\r\n : breadcrumb.routeLink\" [queryParams]=\"preserveQueryParams ? breadcrumb.queryParams : undefined\"\r\n [fragment]=\"preserveFragment ? breadcrumb.fragment : undefined\"\r\n [target]=\"anchorTarget ? anchorTarget : '_self'\">\r\n <ng-container *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n $implicit: breadcrumb.label,\r\n info: breadcrumb.info,\r\n last: isLast,\r\n first: isFirst,\r\n index: index,\r\n count: count\r\n }\r\n \"></ng-container>\r\n @if (!itemTemplate) {\r\n {{\r\n breadcrumb.label\r\n }}\r\n }\r\n </a>\r\n }\r\n @if (isLast) {\r\n <span class=\"flex items-center\">\r\n <ng-container *ngTemplateOutlet=\"\r\n itemTemplate;\r\n context: {\r\n $implicit: breadcrumb.label,\r\n info: breadcrumb.info,\r\n last: isLast,\r\n first: isFirst,\r\n index: index,\r\n count: count\r\n }\r\n \"></ng-container>\r\n @if (!itemTemplate) {\r\n {{\r\n breadcrumb.label\r\n }}\r\n }\r\n </span>\r\n }\r\n </li>\r\n @if (!isLast) {\r\n <li class=\"flex select-none mx-4\" aria-hidden=\"true\" role=\"separator\">\r\n <ng-container *ngTemplateOutlet=\"separatorTemplate\"></ng-container>\r\n @if (separatorTemplate===null) {\r\n {{ separator }}\r\n }\r\n </li>\r\n }\r\n}\r\n</ol>\r\n</nav>", styles: ["cmat-breadcrumb .cmat-breadcrumb-link{display:flex;align-items:center;white-space:nowrap;color:inherit;text-decoration:none;transition:text-decoration .3s;cursor:pointer}cmat-breadcrumb .cmat-breadcrumb-link:hover{text-decoration-line:underline}\n"] }]
|
|
78
78
|
}], ctorParameters: () => [{ type: i1.CmatBreadcrumbService }], propDecorators: { itemTemplate: [{
|