cmat 0.0.76 → 0.0.78

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.
Files changed (109) hide show
  1. package/fesm2022/cmat-components-adapter.mjs +9 -9
  2. package/fesm2022/cmat-components-breadcrumb.mjs +9 -9
  3. package/fesm2022/cmat-components-card.mjs +4 -4
  4. package/fesm2022/cmat-components-card.mjs.map +1 -1
  5. package/fesm2022/cmat-components-carousel.mjs +12 -12
  6. package/fesm2022/cmat-components-cascade.mjs +9 -9
  7. package/fesm2022/cmat-components-chip-input.mjs +3 -3
  8. package/fesm2022/cmat-components-code-editor.mjs +77 -0
  9. package/fesm2022/cmat-components-code-editor.mjs.map +1 -0
  10. package/fesm2022/cmat-components-custom-formly.mjs +93 -129
  11. package/fesm2022/cmat-components-custom-formly.mjs.map +1 -1
  12. package/fesm2022/cmat-components-date-range.mjs +3 -3
  13. package/fesm2022/cmat-components-date-time-display.mjs +47 -0
  14. package/fesm2022/cmat-components-date-time-display.mjs.map +1 -0
  15. package/fesm2022/cmat-components-drawer.mjs +6 -6
  16. package/fesm2022/cmat-components-empty-state.mjs +66 -0
  17. package/fesm2022/cmat-components-empty-state.mjs.map +1 -0
  18. package/fesm2022/cmat-components-file-preview.mjs +60 -0
  19. package/fesm2022/cmat-components-file-preview.mjs.map +1 -0
  20. package/fesm2022/cmat-components-filter-toolbar.mjs +125 -0
  21. package/fesm2022/cmat-components-filter-toolbar.mjs.map +1 -0
  22. package/fesm2022/cmat-components-form-actions.mjs +33 -0
  23. package/fesm2022/cmat-components-form-actions.mjs.map +1 -0
  24. package/fesm2022/cmat-components-fullscreen.mjs +3 -3
  25. package/fesm2022/cmat-components-highlight.mjs +6 -6
  26. package/fesm2022/cmat-components-image-viewer.mjs +3 -3
  27. package/fesm2022/cmat-components-inline-loading.mjs +40 -0
  28. package/fesm2022/cmat-components-inline-loading.mjs.map +1 -0
  29. package/fesm2022/cmat-components-json-editor.mjs +99 -79
  30. package/fesm2022/cmat-components-json-editor.mjs.map +1 -1
  31. package/fesm2022/cmat-components-knob-input.mjs +3 -3
  32. package/fesm2022/cmat-components-masonry.mjs +3 -3
  33. package/fesm2022/cmat-components-material-color-picker.mjs +3 -3
  34. package/fesm2022/cmat-components-material-datetimepicker.mjs +42 -42
  35. package/fesm2022/cmat-components-navigation.mjs +39 -39
  36. package/fesm2022/cmat-components-opt-input.mjs +3 -3
  37. package/fesm2022/cmat-components-org-chart.mjs +9 -9
  38. package/fesm2022/cmat-components-page-header.mjs +50 -0
  39. package/fesm2022/cmat-components-page-header.mjs.map +1 -0
  40. package/fesm2022/cmat-components-pagination.mjs +12 -12
  41. package/fesm2022/cmat-components-password-strength.mjs +9 -9
  42. package/fesm2022/cmat-components-popover.mjs +9 -9
  43. package/fesm2022/cmat-components-progress-bar.mjs +3 -3
  44. package/fesm2022/cmat-components-qrcode.mjs +3 -3
  45. package/fesm2022/cmat-components-rating.mjs +3 -3
  46. package/fesm2022/cmat-components-rich-text-editor.mjs +64 -0
  47. package/fesm2022/cmat-components-rich-text-editor.mjs.map +1 -0
  48. package/fesm2022/cmat-components-select-search.mjs +9 -9
  49. package/fesm2022/cmat-components-select-table.mjs +3 -3
  50. package/fesm2022/cmat-components-select-tree.mjs +3 -3
  51. package/fesm2022/cmat-components-skeleton.mjs +60 -0
  52. package/fesm2022/cmat-components-skeleton.mjs.map +1 -0
  53. package/fesm2022/cmat-components-speed-dial.mjs +9 -9
  54. package/fesm2022/cmat-components-status-tag.mjs +67 -0
  55. package/fesm2022/cmat-components-status-tag.mjs.map +1 -0
  56. package/fesm2022/cmat-components-table-toolbar.mjs +45 -0
  57. package/fesm2022/cmat-components-table-toolbar.mjs.map +1 -0
  58. package/fesm2022/cmat-components-timeline.mjs +12 -12
  59. package/fesm2022/cmat-components-toast.mjs +9 -9
  60. package/fesm2022/cmat-components-transfer-picker.mjs +18 -18
  61. package/fesm2022/cmat-components-treetable.mjs +6 -6
  62. package/fesm2022/cmat-components-upload.mjs +9 -9
  63. package/fesm2022/cmat-directives-animate-on-scroll.mjs +6 -6
  64. package/fesm2022/cmat-directives-arrow-cursor.mjs +3 -3
  65. package/fesm2022/cmat-directives-autofocus.mjs +3 -3
  66. package/fesm2022/cmat-directives-data-exporter.mjs +21 -21
  67. package/fesm2022/cmat-directives-debounce.mjs +9 -9
  68. package/fesm2022/cmat-directives-digit-only.mjs +6 -6
  69. package/fesm2022/cmat-directives-equal-validator.mjs +3 -3
  70. package/fesm2022/cmat-directives-seamless-auto-scroll.mjs +3 -3
  71. package/fesm2022/cmat-lib-mock-api.mjs +6 -6
  72. package/fesm2022/cmat-pipes-bytes.mjs +3 -3
  73. package/fesm2022/cmat-pipes-date-format.mjs +3 -3
  74. package/fesm2022/cmat-pipes-find-by-key.mjs +3 -3
  75. package/fesm2022/cmat-pipes-group-by.mjs +3 -3
  76. package/fesm2022/cmat-pipes-keys.mjs +3 -3
  77. package/fesm2022/cmat-pipes-secure.mjs +3 -3
  78. package/fesm2022/cmat-pipes-uppercase.mjs +3 -3
  79. package/fesm2022/cmat-services-alert.mjs +3 -3
  80. package/fesm2022/cmat-services-config.mjs +6 -6
  81. package/fesm2022/cmat-services-confirmation.mjs +6 -6
  82. package/fesm2022/cmat-services-data.mjs +3 -3
  83. package/fesm2022/cmat-services-export-as.mjs +3 -3
  84. package/fesm2022/cmat-services-loading.mjs +6 -6
  85. package/fesm2022/cmat-services-local-storage.mjs +3 -3
  86. package/fesm2022/cmat-services-media-watcher.mjs +3 -3
  87. package/fesm2022/cmat-services-platform.mjs +3 -3
  88. package/fesm2022/cmat-services-splash-screen.mjs +3 -3
  89. package/fesm2022/cmat-services-title.mjs +3 -3
  90. package/fesm2022/cmat-services-translation.mjs +3 -3
  91. package/fesm2022/cmat-services-utils.mjs +3 -3
  92. package/fesm2022/cmat.mjs +18970 -0
  93. package/fesm2022/cmat.mjs.map +1 -1
  94. package/package.json +68 -15
  95. package/types/cmat-components-code-editor.d.ts +36 -0
  96. package/types/cmat-components-custom-formly.d.ts +1 -11
  97. package/types/cmat-components-date-time-display.d.ts +28 -0
  98. package/types/cmat-components-empty-state.d.ts +37 -0
  99. package/types/cmat-components-file-preview.d.ts +32 -0
  100. package/types/cmat-components-filter-toolbar.d.ts +65 -0
  101. package/types/cmat-components-form-actions.d.ts +16 -0
  102. package/types/cmat-components-inline-loading.d.ts +20 -0
  103. package/types/cmat-components-json-editor.d.ts +9 -3
  104. package/types/cmat-components-page-header.d.ts +28 -0
  105. package/types/cmat-components-rich-text-editor.d.ts +38 -0
  106. package/types/cmat-components-skeleton.d.ts +33 -0
  107. package/types/cmat-components-status-tag.d.ts +29 -0
  108. package/types/cmat-components-table-toolbar.d.ts +24 -0
  109. package/types/cmat.d.ts +5150 -1
package/package.json CHANGED
@@ -1,27 +1,31 @@
1
1
  {
2
2
  "name": "cmat",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "author": {
5
5
  "name": "Yu Tao",
6
6
  "email": "916426364@qq.com"
7
7
  },
8
8
  "license": "UNLICENSED",
9
9
  "peerDependencies": {
10
- "@angular/cdk": "^21.0.0",
11
- "@angular/common": "^21.0.0",
12
- "@angular/compiler": "^21.0.0",
13
- "@angular/core": "^21.0.0",
14
- "@angular/forms": "^21.0.0",
15
- "@angular/material": "^21.0.0",
16
- "@ngx-formly/core": "^6.3.12",
17
- "@ngx-formly/material": "^6.3.12",
18
- "@ngx-translate/core": "^16.0.4",
19
- "@ngx-translate/http-loader": "^16.0.1",
20
- "@tailwindcss/postcss": "^4.1.8",
10
+ "@angular/cdk": "^21.2.2",
11
+ "@angular/common": "^21.2.4",
12
+ "@angular/animations": "^21.2.4",
13
+ "@angular/compiler": "^21.2.4",
14
+ "@angular/core": "^21.2.4",
15
+ "@angular/forms": "^21.2.4",
16
+ "@angular/material": "^21.2.2",
17
+ "@angular/platform-browser": "^21.2.4",
18
+ "@angular/platform-browser-dynamic": "^21.2.4",
19
+ "@angular/router": "^21.2.4",
20
+ "@ngx-formly/core": "^7.1.0",
21
+ "@ngx-formly/material": "^7.1.0",
22
+ "@ngx-translate/core": "^17.0.0",
23
+ "@ngx-translate/http-loader": "^17.0.0",
24
+ "@tailwindcss/postcss": "^4.2.1",
21
25
  "animate.css": "^4.1.1",
22
26
  "crypto-js": "^4.2.0",
23
- "dayjs": "^1.11.19",
24
- "docx": "^9.6.0",
27
+ "dayjs": "^1.11.20",
28
+ "docx": "^9.6.1",
25
29
  "highlight.js": "^11.11.1",
26
30
  "ngx-quill": "^30.0.1",
27
31
  "qrcode": "^1.5.4",
@@ -70,6 +74,10 @@
70
74
  "types": "./types/cmat-components-chip-input.d.ts",
71
75
  "default": "./fesm2022/cmat-components-chip-input.mjs"
72
76
  },
77
+ "./components/code-editor": {
78
+ "types": "./types/cmat-components-code-editor.d.ts",
79
+ "default": "./fesm2022/cmat-components-code-editor.mjs"
80
+ },
73
81
  "./components/custom-formly": {
74
82
  "types": "./types/cmat-components-custom-formly.d.ts",
75
83
  "default": "./fesm2022/cmat-components-custom-formly.mjs"
@@ -78,10 +86,30 @@
78
86
  "types": "./types/cmat-components-date-range.d.ts",
79
87
  "default": "./fesm2022/cmat-components-date-range.mjs"
80
88
  },
89
+ "./components/date-time-display": {
90
+ "types": "./types/cmat-components-date-time-display.d.ts",
91
+ "default": "./fesm2022/cmat-components-date-time-display.mjs"
92
+ },
81
93
  "./components/drawer": {
82
94
  "types": "./types/cmat-components-drawer.d.ts",
83
95
  "default": "./fesm2022/cmat-components-drawer.mjs"
84
96
  },
97
+ "./components/empty-state": {
98
+ "types": "./types/cmat-components-empty-state.d.ts",
99
+ "default": "./fesm2022/cmat-components-empty-state.mjs"
100
+ },
101
+ "./components/file-preview": {
102
+ "types": "./types/cmat-components-file-preview.d.ts",
103
+ "default": "./fesm2022/cmat-components-file-preview.mjs"
104
+ },
105
+ "./components/filter-toolbar": {
106
+ "types": "./types/cmat-components-filter-toolbar.d.ts",
107
+ "default": "./fesm2022/cmat-components-filter-toolbar.mjs"
108
+ },
109
+ "./components/form-actions": {
110
+ "types": "./types/cmat-components-form-actions.d.ts",
111
+ "default": "./fesm2022/cmat-components-form-actions.mjs"
112
+ },
85
113
  "./components/fullscreen": {
86
114
  "types": "./types/cmat-components-fullscreen.d.ts",
87
115
  "default": "./fesm2022/cmat-components-fullscreen.mjs"
@@ -94,6 +122,10 @@
94
122
  "types": "./types/cmat-components-image-viewer.d.ts",
95
123
  "default": "./fesm2022/cmat-components-image-viewer.mjs"
96
124
  },
125
+ "./components/inline-loading": {
126
+ "types": "./types/cmat-components-inline-loading.d.ts",
127
+ "default": "./fesm2022/cmat-components-inline-loading.mjs"
128
+ },
97
129
  "./components/json-editor": {
98
130
  "types": "./types/cmat-components-json-editor.d.ts",
99
131
  "default": "./fesm2022/cmat-components-json-editor.mjs"
@@ -126,6 +158,10 @@
126
158
  "types": "./types/cmat-components-org-chart.d.ts",
127
159
  "default": "./fesm2022/cmat-components-org-chart.mjs"
128
160
  },
161
+ "./components/page-header": {
162
+ "types": "./types/cmat-components-page-header.d.ts",
163
+ "default": "./fesm2022/cmat-components-page-header.mjs"
164
+ },
129
165
  "./components/pagination": {
130
166
  "types": "./types/cmat-components-pagination.d.ts",
131
167
  "default": "./fesm2022/cmat-components-pagination.mjs"
@@ -150,6 +186,10 @@
150
186
  "types": "./types/cmat-components-rating.d.ts",
151
187
  "default": "./fesm2022/cmat-components-rating.mjs"
152
188
  },
189
+ "./components/rich-text-editor": {
190
+ "types": "./types/cmat-components-rich-text-editor.d.ts",
191
+ "default": "./fesm2022/cmat-components-rich-text-editor.mjs"
192
+ },
153
193
  "./components/select-search": {
154
194
  "types": "./types/cmat-components-select-search.d.ts",
155
195
  "default": "./fesm2022/cmat-components-select-search.mjs"
@@ -162,10 +202,22 @@
162
202
  "types": "./types/cmat-components-select-tree.d.ts",
163
203
  "default": "./fesm2022/cmat-components-select-tree.mjs"
164
204
  },
205
+ "./components/skeleton": {
206
+ "types": "./types/cmat-components-skeleton.d.ts",
207
+ "default": "./fesm2022/cmat-components-skeleton.mjs"
208
+ },
165
209
  "./components/speed-dial": {
166
210
  "types": "./types/cmat-components-speed-dial.d.ts",
167
211
  "default": "./fesm2022/cmat-components-speed-dial.mjs"
168
212
  },
213
+ "./components/status-tag": {
214
+ "types": "./types/cmat-components-status-tag.d.ts",
215
+ "default": "./fesm2022/cmat-components-status-tag.mjs"
216
+ },
217
+ "./components/table-toolbar": {
218
+ "types": "./types/cmat-components-table-toolbar.d.ts",
219
+ "default": "./fesm2022/cmat-components-table-toolbar.mjs"
220
+ },
169
221
  "./components/timeline": {
170
222
  "types": "./types/cmat-components-timeline.d.ts",
171
223
  "default": "./fesm2022/cmat-components-timeline.mjs"
@@ -314,5 +366,6 @@
314
366
  "types": "./types/cmat-version.d.ts",
315
367
  "default": "./fesm2022/cmat-version.mjs"
316
368
  }
317
- }
369
+ },
370
+ "type": "module"
318
371
  }
@@ -0,0 +1,36 @@
1
+ import { NgxEditorModel } from 'ngx-monaco-editor-v2';
2
+ import * as i0 from '@angular/core';
3
+
4
+ declare class CmatCodeEditorComponent {
5
+ /**
6
+ * 编辑器内容。
7
+ */
8
+ value: string;
9
+ /**
10
+ * 编程语言。
11
+ */
12
+ language: string;
13
+ /**
14
+ * 编辑器高度。
15
+ */
16
+ height: string;
17
+ /**
18
+ * 是否只读。
19
+ */
20
+ readOnly: boolean;
21
+ /**
22
+ * 编辑器配置。
23
+ */
24
+ options: any;
25
+ private readonly _document;
26
+ /**
27
+ * Monaco 模型。
28
+ */
29
+ get model(): NgxEditorModel;
30
+ get editorOptions(): any;
31
+ private get _isDarkTheme();
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatCodeEditorComponent, never>;
33
+ 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>;
34
+ }
35
+
36
+ export { CmatCodeEditorComponent };
@@ -3,7 +3,6 @@ import * as i0 from '@angular/core';
3
3
  import { AfterViewInit, TemplateRef, OnInit, OnDestroy, Type, QueryList } from '@angular/core';
4
4
  import { MatFormField } from '@angular/material/form-field';
5
5
  import { FormlyFieldProps, FieldType } from '@ngx-formly/material/form-field';
6
- import { CmatAlertMessage } from 'cmat/services/alert';
7
6
  import { Observable, ReplaySubject } from 'rxjs';
8
7
  import { FieldType as FieldType$1 } from '@ngx-formly/material';
9
8
  import { CmatCalendarView, CmatDatetimepickerMode, CmatDatetimepickerType } from 'cmat/components/material-datetimepicker';
@@ -64,22 +63,14 @@ interface ButtonProps extends CustomFormFieldProps {
64
63
  color?: 'primary' | 'accent' | 'warn';
65
64
  onClick?: any;
66
65
  }
67
- declare class CmatButtonTypeComponent extends FieldType<FieldTypeConfig<ButtonProps>> implements OnInit, OnDestroy {
66
+ declare class CmatButtonTypeComponent extends FieldType<FieldTypeConfig<ButtonProps>> {
68
67
  defaultOptions: {
69
68
  props: {
70
69
  color: "primary";
71
70
  };
72
71
  };
73
- private _cmatToastService;
74
- private _snackBar;
75
- private _cmatMediaWatcherService;
76
- private _isPhone;
77
- private _unsubscribeAll;
78
72
  constructor();
79
- ngOnInit(): void;
80
- ngOnDestroy(): void;
81
73
  onClick($event: Event): void;
82
- showMessage(message: CmatAlertMessage | void): void;
83
74
  private _executeFunctionFromString;
84
75
  static ɵfac: i0.ɵɵFactoryDeclaration<CmatButtonTypeComponent, never>;
85
76
  static ɵcmp: i0.ɵɵComponentDeclaration<CmatButtonTypeComponent, "cmat-button-type", never, {}, {}, never, never, true, never>;
@@ -620,7 +611,6 @@ declare class CmatQuillTypeComponent extends FieldType<FieldTypeConfig<QuillProp
620
611
  private _fileService;
621
612
  private _urlStateConfigService;
622
613
  private _changeDetectorRef;
623
- private _http;
624
614
  private _editorInstance;
625
615
  private _imgIds;
626
616
  private _config;
@@ -0,0 +1,28 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatDateTimeDisplayComponent {
4
+ /**
5
+ * 日期值。
6
+ */
7
+ value: string | number | Date | null | undefined;
8
+ /**
9
+ * 格式化模板。
10
+ */
11
+ format: string;
12
+ /**
13
+ * 时区。
14
+ */
15
+ timezone: string;
16
+ /**
17
+ * 前缀文字。
18
+ */
19
+ prefix: string;
20
+ /**
21
+ * 无值占位文字。
22
+ */
23
+ emptyText: string;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatDateTimeDisplayComponent, never>;
25
+ 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>;
26
+ }
27
+
28
+ export { CmatDateTimeDisplayComponent };
@@ -0,0 +1,37 @@
1
+ import * as i0 from '@angular/core';
2
+ import { EventEmitter } from '@angular/core';
3
+
4
+ declare class CmatEmptyStateComponent {
5
+ /**
6
+ * 图标名称。
7
+ */
8
+ icon: string;
9
+ /**
10
+ * 标题。
11
+ */
12
+ title: string;
13
+ /**
14
+ * 说明文字。
15
+ */
16
+ description: string;
17
+ /**
18
+ * 按钮文字。
19
+ */
20
+ ctaLabel: string;
21
+ /**
22
+ * 按钮是否禁用。
23
+ */
24
+ ctaDisabled: boolean;
25
+ /**
26
+ * 点击按钮事件。
27
+ */
28
+ ctaClick: EventEmitter<void>;
29
+ /**
30
+ * 触发操作。
31
+ */
32
+ emitAction(): void;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatEmptyStateComponent, never>;
34
+ 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>;
35
+ }
36
+
37
+ export { CmatEmptyStateComponent };
@@ -0,0 +1,32 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatFilePreviewComponent {
4
+ /**
5
+ * 文件名。
6
+ */
7
+ name: string;
8
+ /**
9
+ * 文件描述。
10
+ */
11
+ description: string;
12
+ /**
13
+ * 文件类型。
14
+ */
15
+ fileType: string;
16
+ /**
17
+ * 文件大小。
18
+ */
19
+ size: string;
20
+ /**
21
+ * 预览地址。
22
+ */
23
+ src: any;
24
+ /**
25
+ * 是否预览图片。
26
+ */
27
+ previewImage: boolean;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatFilePreviewComponent, never>;
29
+ 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>;
30
+ }
31
+
32
+ export { CmatFilePreviewComponent };
@@ -0,0 +1,65 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy, EventEmitter } from '@angular/core';
3
+ import { FormControl } from '@angular/forms';
4
+
5
+ declare class CmatFilterToolbarComponent implements OnInit, OnDestroy {
6
+ /**
7
+ * 标题。
8
+ */
9
+ title: string;
10
+ /**
11
+ * 说明文字。
12
+ */
13
+ description: string;
14
+ /**
15
+ * 搜索框占位符。
16
+ */
17
+ searchPlaceholder: string;
18
+ /**
19
+ * 是否显示搜索框。
20
+ */
21
+ showSearch: boolean;
22
+ /**
23
+ * 当前搜索内容。
24
+ */
25
+ searchText: string;
26
+ /**
27
+ * 是否允许清空搜索内容。
28
+ */
29
+ clearable: boolean;
30
+ /**
31
+ * 搜索内容变化事件。
32
+ */
33
+ searchTextChange: EventEmitter<string>;
34
+ /**
35
+ * 清空事件。
36
+ */
37
+ clear: EventEmitter<void>;
38
+ /**
39
+ * 搜索提交事件。
40
+ */
41
+ searchSubmit: EventEmitter<string>;
42
+ hostClass: string;
43
+ searchControl: FormControl<string | null>;
44
+ private readonly _unsubscribeAll;
45
+ /**
46
+ * 初始化搜索联动。
47
+ */
48
+ ngOnInit(): void;
49
+ /**
50
+ * 释放订阅。
51
+ */
52
+ ngOnDestroy(): void;
53
+ /**
54
+ * 提交搜索。
55
+ */
56
+ submitSearch(): void;
57
+ /**
58
+ * 清空搜索。
59
+ */
60
+ clearSearch(): void;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatFilterToolbarComponent, never>;
62
+ 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>;
63
+ }
64
+
65
+ export { CmatFilterToolbarComponent };
@@ -0,0 +1,16 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatFormActionsComponent {
4
+ /**
5
+ * 对齐方式。
6
+ */
7
+ align: 'start' | 'center' | 'end';
8
+ /**
9
+ * 是否显示顶部分割线。
10
+ */
11
+ divider: boolean;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatFormActionsComponent, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CmatFormActionsComponent, "cmat-form-actions", never, { "align": { "alias": "align"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; }, {}, never, ["[cmatFormActionsLeft]", "[cmatFormActions]"], true, never>;
14
+ }
15
+
16
+ export { CmatFormActionsComponent };
@@ -0,0 +1,20 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatInlineLoadingComponent {
4
+ /**
5
+ * 说明文字。
6
+ */
7
+ message: string;
8
+ /**
9
+ * 圆环大小。
10
+ */
11
+ diameter: number;
12
+ /**
13
+ * 是否显示文字。
14
+ */
15
+ showText: boolean;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatInlineLoadingComponent, never>;
17
+ 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>;
18
+ }
19
+
20
+ export { CmatInlineLoadingComponent };
@@ -1,17 +1,22 @@
1
1
  import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, OnDestroy, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges } from '@angular/core';
3
3
  import { Content } from 'vanilla-jsoneditor';
4
4
 
5
5
  declare class CmatJsonEditorComponent implements OnInit, OnChanges, OnDestroy {
6
- jsonEditorContainer: ElementRef;
7
6
  options: any;
8
7
  data: any;
9
8
  contentChanged: EventEmitter<any>;
10
9
  pathChanged: EventEmitter<string>;
11
10
  id: string;
12
11
  content: Content;
13
- private _editor;
12
+ private _editor?;
13
+ private _jsonEditorContainer?;
14
+ private _destroyed;
15
+ private readonly _document;
14
16
  private _changeDetectorRef;
17
+ get darkTheme(): boolean;
18
+ private get _isDarkTheme();
19
+ set jsonEditorContainer(value: ElementRef | undefined);
15
20
  ngOnInit(): void;
16
21
  ngOnChanges(changes: SimpleChanges): void;
17
22
  ngOnDestroy(): void;
@@ -20,6 +25,7 @@ declare class CmatJsonEditorComponent implements OnInit, OnChanges, OnDestroy {
20
25
  get(): JSON | undefined;
21
26
  set(json: any): void;
22
27
  private _onSelect;
28
+ private _initializeEditor;
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<CmatJsonEditorComponent, never>;
24
30
  static ɵcmp: i0.ɵɵComponentDeclaration<CmatJsonEditorComponent, "cmat-json-editor", never, { "options": { "alias": "options"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "contentChanged": "contentChanged"; "pathChanged": "pathChanged"; }, never, never, true, never>;
25
31
  }
@@ -0,0 +1,28 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatPageHeaderComponent {
4
+ /**
5
+ * 标题。
6
+ */
7
+ title: string;
8
+ /**
9
+ * 副标题说明。
10
+ */
11
+ description: string;
12
+ /**
13
+ * 眉头说明。
14
+ */
15
+ eyebrow: string;
16
+ /**
17
+ * 是否显示底部分割线。
18
+ */
19
+ divider: boolean;
20
+ /**
21
+ * 内容对齐方式。
22
+ */
23
+ align: 'start' | 'center';
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatPageHeaderComponent, never>;
25
+ 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>;
26
+ }
27
+
28
+ export { CmatPageHeaderComponent };
@@ -0,0 +1,38 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnChanges, SimpleChanges } from '@angular/core';
3
+ import { FormControl } from '@angular/forms';
4
+
5
+ declare class CmatRichTextEditorComponent implements OnChanges {
6
+ /**
7
+ * 编辑器内容。
8
+ */
9
+ value: string;
10
+ /**
11
+ * 占位文字。
12
+ */
13
+ placeholder: string;
14
+ /**
15
+ * 是否只读。
16
+ */
17
+ readOnly: boolean;
18
+ /**
19
+ * 编辑器主题。
20
+ */
21
+ theme: string;
22
+ /**
23
+ * 编辑器最小高度。
24
+ */
25
+ minHeight: string;
26
+ /**
27
+ * 编辑器控件。
28
+ */
29
+ control: FormControl<string | null>;
30
+ /**
31
+ * 同步外部输入值。
32
+ */
33
+ ngOnChanges(changes: SimpleChanges): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatRichTextEditorComponent, never>;
35
+ 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>;
36
+ }
37
+
38
+ export { CmatRichTextEditorComponent };
@@ -0,0 +1,33 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatSkeletonComponent {
4
+ /**
5
+ * 占位块数量。
6
+ */
7
+ count: number;
8
+ /**
9
+ * 样式变体。
10
+ */
11
+ variant: 'line' | 'block' | 'avatar' | 'card';
12
+ /**
13
+ * 自定义宽度。
14
+ */
15
+ width: string;
16
+ /**
17
+ * 自定义高度。
18
+ */
19
+ height: string;
20
+ /**
21
+ * 是否开启动画。
22
+ */
23
+ animated: boolean;
24
+ hostClass: string;
25
+ /**
26
+ * 生成占位序列。
27
+ */
28
+ get items(): number[];
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatSkeletonComponent, never>;
30
+ static ɵcmp: i0.ɵɵComponentDeclaration<CmatSkeletonComponent, "cmat-skeleton", never, { "count": { "alias": "count"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; }, {}, never, never, true, never>;
31
+ }
32
+
33
+ export { CmatSkeletonComponent };
@@ -0,0 +1,29 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatStatusTagComponent {
4
+ /**
5
+ * 标签文字。
6
+ */
7
+ label: string;
8
+ /**
9
+ * 视觉风格。
10
+ */
11
+ variant: 'soft' | 'filled' | 'outline';
12
+ /**
13
+ * 主题色。
14
+ */
15
+ tone: 'neutral' | 'primary' | 'success' | 'warning' | 'danger' | 'info';
16
+ /**
17
+ * 是否显示圆点。
18
+ */
19
+ dot: boolean;
20
+ hostClass: string;
21
+ /**
22
+ * 计算样式类。
23
+ */
24
+ get classMap(): Record<string, boolean>;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatStatusTagComponent, never>;
26
+ 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>;
27
+ }
28
+
29
+ export { CmatStatusTagComponent };
@@ -0,0 +1,24 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class CmatTableToolbarComponent {
4
+ /**
5
+ * 标题。
6
+ */
7
+ title: string;
8
+ /**
9
+ * 说明文字。
10
+ */
11
+ description: string;
12
+ /**
13
+ * 记录数量。
14
+ */
15
+ count: number;
16
+ /**
17
+ * 是否显示数量。
18
+ */
19
+ showCount: boolean;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<CmatTableToolbarComponent, never>;
21
+ 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>;
22
+ }
23
+
24
+ export { CmatTableToolbarComponent };