@alauda-fe/common 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/a-metric-chart/a-metric-chart.component.d.ts +3 -0
  2. package/api/acp-common-api.service.d.ts +26 -0
  3. package/api/project-api.service.d.ts +5 -0
  4. package/api/public-api.d.ts +1 -0
  5. package/assets/icons/prod-icons.js +1 -1
  6. package/core/constants/patterns.d.ts +5 -0
  7. package/core/constants/status-icons.d.ts +1 -0
  8. package/core/directives/aui-code-editor.directive.d.ts +13 -0
  9. package/core/directives/public-api.d.ts +1 -0
  10. package/core/pipes/k8s-util.pipe.module.d.ts +1 -1
  11. package/effect-directive/module.d.ts +1 -1
  12. package/esm2022/api/acp-common-api.service.mjs +34 -0
  13. package/esm2022/api/project-api.service.mjs +17 -4
  14. package/esm2022/api/public-api.mjs +2 -1
  15. package/esm2022/core/constants/patterns.mjs +6 -1
  16. package/esm2022/core/constants/status-icons.mjs +2 -1
  17. package/esm2022/core/directives/aui-code-editor.directive.mjs +30 -0
  18. package/esm2022/core/directives/public-api.mjs +2 -1
  19. package/esm2022/core/pipes/k8s-util.pipe.module.mjs +4 -5
  20. package/esm2022/effect-directive/module.mjs +4 -5
  21. package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +9 -10
  22. package/esm2022/form/validators/utils.mjs +47 -2
  23. package/esm2022/graphql/graphql.module.mjs +62 -0
  24. package/esm2022/graphql/graphql.service.mjs +45 -0
  25. package/esm2022/graphql/public-api.mjs +4 -0
  26. package/esm2022/graphql/queries.mjs +29 -0
  27. package/esm2022/graphql/types.mjs +6 -0
  28. package/esm2022/help-document/directive.mjs +3 -2
  29. package/esm2022/help-document/module.mjs +6 -4
  30. package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +3 -2
  31. package/esm2022/multi-search/action-input/component.mjs +5 -5
  32. package/esm2022/multi-search/multi-search-tags/component.mjs +4 -4
  33. package/esm2022/overview-banner/overview-banner.component.mjs +5 -5
  34. package/esm2022/overview-banner/overview-banner.module.mjs +7 -7
  35. package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +4 -5
  36. package/esm2022/public-api.mjs +2 -1
  37. package/esm2022/translate/en.json +43 -1
  38. package/esm2022/translate/zh.json +41 -1
  39. package/esm2022/widget/widget.module.mjs +19 -12
  40. package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +101 -64
  41. package/form/validators/strong-password/strong-password-validator.directive.d.ts +3 -3
  42. package/form/validators/utils.d.ts +3 -0
  43. package/graphql/graphql.module.d.ts +12 -0
  44. package/graphql/graphql.service.d.ts +14 -0
  45. package/graphql/public-api.d.ts +3 -0
  46. package/graphql/queries.d.ts +5 -0
  47. package/graphql/types.d.ts +46 -0
  48. package/help-document/directive.d.ts +1 -1
  49. package/help-document/module.d.ts +7 -7
  50. package/overview-banner/overview-banner.component.d.ts +1 -1
  51. package/overview-banner/overview-banner.module.d.ts +4 -3
  52. package/package.json +1 -1
  53. package/page-scaffold/navigation/breadcrumb/module.d.ts +1 -1
  54. package/public-api.d.ts +1 -0
  55. package/translate/translate.module.d.ts +82 -0
  56. package/widget/widget.module.d.ts +3 -4
  57. package/xterm/xterm-terminal/xterm-terminal.component.d.ts +14 -1
@@ -572,6 +572,46 @@ export declare const CORE_TRANSLATIONS: Readonly<{
572
572
  logical_or: string;
573
573
  detail_info: string;
574
574
  value_duplication: string;
575
+ image_tag_input_placeholder: string;
576
+ regexp_tip_image_tag: string;
577
+ integration_project_name: string;
578
+ update_description: string;
579
+ regexp_tip_integer_pattern: string;
580
+ dot: string;
581
+ forbid: string;
582
+ enable: string;
583
+ everyday: string;
584
+ and: string;
585
+ code_editor_clear: string;
586
+ code_editor_dark_theme: string;
587
+ code_editor_exit_fullscreen: string;
588
+ code_editor_export: string;
589
+ code_editor_find: string;
590
+ code_editor_fold: string;
591
+ code_editor_format: string;
592
+ code_editor_fullscreen: string;
593
+ code_editor_import: string;
594
+ code_editor_light_theme: string;
595
+ code_editor_readonly: string;
596
+ code_editor_copied: string;
597
+ code_editor_recover: string;
598
+ code_editor_show_diff: string;
599
+ code_editor_writable: string;
600
+ cron_trigger_period: string;
601
+ cron_trigger_fast_mode: string;
602
+ cron_trigger_custom_mode: string;
603
+ cron_trigger_template: string;
604
+ cron_trigger_template_1: string;
605
+ cron_trigger_template_2: string;
606
+ cron_trigger_template_3: string;
607
+ cron_trigger_template_4: string;
608
+ cron_trigger_template_5: string;
609
+ cron_next_trigger_time: string;
610
+ cron_next_trigger_time_cur_time: string;
611
+ cron_trigger_params_config_hint: string;
612
+ cron_trigger_format_error: string;
613
+ cron_format_hint_1: string;
614
+ cron_format_hint_2: string;
575
615
  };
576
616
  en: {
577
617
  cluster: string;
@@ -1132,6 +1172,48 @@ export declare const CORE_TRANSLATIONS: Readonly<{
1132
1172
  logical_or: string;
1133
1173
  detail_info: string;
1134
1174
  value_duplication: string;
1175
+ image_tag_input_placeholder: string;
1176
+ regexp_tip_image_tag: string;
1177
+ forbid_action: string;
1178
+ enable_action: string;
1179
+ integration_project_name: string;
1180
+ update_description: string;
1181
+ regexp_tip_integer_pattern: string;
1182
+ dot: string;
1183
+ forbid: string;
1184
+ enable: string;
1185
+ everyday: string;
1186
+ and: string;
1187
+ code_editor_clear: string;
1188
+ code_editor_dark_theme: string;
1189
+ code_editor_exit_fullscreen: string;
1190
+ code_editor_export: string;
1191
+ code_editor_find: string;
1192
+ code_editor_copied: string;
1193
+ code_editor_fold: string;
1194
+ code_editor_format: string;
1195
+ code_editor_fullscreen: string;
1196
+ code_editor_import: string;
1197
+ code_editor_light_theme: string;
1198
+ code_editor_readonly: string;
1199
+ code_editor_recover: string;
1200
+ code_editor_show_diff: string;
1201
+ code_editor_writable: string;
1202
+ cron_trigger_period: string;
1203
+ cron_trigger_fast_mode: string;
1204
+ cron_trigger_custom_mode: string;
1205
+ cron_trigger_template: string;
1206
+ cron_trigger_template_1: string;
1207
+ cron_trigger_template_2: string;
1208
+ cron_trigger_template_3: string;
1209
+ cron_trigger_template_4: string;
1210
+ cron_trigger_template_5: string;
1211
+ cron_next_trigger_time: string;
1212
+ cron_next_trigger_time_cur_time: string;
1213
+ cron_trigger_params_config_hint: string;
1214
+ cron_trigger_format_error: string;
1215
+ cron_format_hint_1: string;
1216
+ cron_format_hint_2: string;
1135
1217
  };
1136
1218
  }>;
1137
1219
  export declare const TRANSLATE_MODULE: readonly [typeof TranslatePipe, typeof TranslateDirective, typeof TranslateMatchDirective, typeof TranslateTextDirective];
@@ -2,6 +2,7 @@ import { DisabledContainerComponent } from '../disabled-container/public-api';
2
2
  import { CardSectionComponent } from './card-section/card-section.component';
3
3
  import { ConfirmDeleteComponent, ConfirmDeleteContentDirective, ConfirmDeleteLabelDirective, ConfirmDeleteTipDirective } from './confirm-delete/confirm-delete.component';
4
4
  import { CurrentTimeComponent } from './current-time/component';
5
+ import { FieldSetColumnComponent, FieldSetColumnGroupComponent, FieldSetGroupComponent, FieldSetItemActionDirective, FieldSetItemComponent } from './field-set';
5
6
  import { FoldableBlockComponent } from './foldable-block/component';
6
7
  import { FoldableItemInTableComponent } from './foldable-item-in-table/component';
7
8
  import { LoadingMaskComponent } from './loading-mask/loading-mask.component';
@@ -30,14 +31,12 @@ import * as i14 from "./resource-multi-select/component";
30
31
  import * as i15 from "./field-set/item/component";
31
32
  import * as i16 from "./field-set/group/component";
32
33
  import * as i17 from "./field-set/column/component";
33
- import * as i18 from "../translate/translate.pipe";
34
- import * as i19 from "../translate/translate.directive";
35
- export declare const WIDGET_MODULE: readonly [typeof ZeroStateComponent, typeof LoadingMaskComponent, typeof ConfirmDeleteComponent, typeof FoldableBlockComponent, typeof RelativeTimeComponent, typeof ConfirmDeleteContentDirective, typeof ConfirmDeleteLabelDirective, typeof ConfirmDeleteTipDirective, typeof DisabledContainerComponent, typeof TerminatingTagComponent, typeof FoldableItemInTableComponent, typeof SelectPrefixLabelDirective, typeof TextWithUrlComponent, typeof CardSectionComponent, typeof CurrentTimeComponent, typeof TextEllipsisComponent, typeof ResourceMultiSelectComponent, typeof import("./field-set").FieldSetItemActionDirective, typeof import("./field-set").FieldSetItemComponent, typeof import("./field-set").FieldSetGroupComponent, typeof import("./field-set").FieldSetColumnComponent, typeof import("./field-set").FieldSetColumnGroupComponent, typeof import("../translate/translate.pipe").TranslatePipe, typeof import("../translate/translate.directive").TranslateDirective, typeof import("../translate/translate.directive").TranslateMatchDirective, typeof import("../translate/translate.directive").TranslateTextDirective];
34
+ export declare const WIDGET_MODULE: readonly [typeof ZeroStateComponent, typeof LoadingMaskComponent, typeof ConfirmDeleteComponent, typeof FoldableBlockComponent, typeof RelativeTimeComponent, typeof ConfirmDeleteContentDirective, typeof ConfirmDeleteLabelDirective, typeof ConfirmDeleteTipDirective, typeof DisabledContainerComponent, typeof TerminatingTagComponent, typeof FoldableItemInTableComponent, typeof SelectPrefixLabelDirective, typeof TextWithUrlComponent, typeof CardSectionComponent, typeof CurrentTimeComponent, typeof TextEllipsisComponent, typeof ResourceMultiSelectComponent, typeof FieldSetItemActionDirective, typeof FieldSetItemComponent, typeof FieldSetGroupComponent, typeof FieldSetColumnComponent, typeof FieldSetColumnGroupComponent];
36
35
  /**
37
36
  * @deprecated use `WIDGET_MODULE`
38
37
  */
39
38
  export declare class WidgetModule {
40
39
  static ɵfac: i0.ɵɵFactoryDeclaration<WidgetModule, never>;
41
- static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetModule, never, [typeof i1.ZeroStateComponent, typeof i2.LoadingMaskComponent, typeof i3.ConfirmDeleteComponent, typeof i4.FoldableBlockComponent, typeof i5.RelativeTimeComponent, typeof i3.ConfirmDeleteContentDirective, typeof i3.ConfirmDeleteLabelDirective, typeof i3.ConfirmDeleteTipDirective, typeof i6.DisabledContainerComponent, typeof i7.TerminatingTagComponent, typeof i8.FoldableItemInTableComponent, typeof i9.SelectPrefixLabelDirective, typeof i10.TextWithUrlComponent, typeof i11.CardSectionComponent, typeof i12.CurrentTimeComponent, typeof i13.TextEllipsisComponent, typeof i14.ResourceMultiSelectComponent, typeof i15.FieldSetItemActionDirective, typeof i15.FieldSetItemComponent, typeof i16.FieldSetGroupComponent, typeof i17.FieldSetColumnComponent, typeof i17.FieldSetColumnGroupComponent, typeof i18.TranslatePipe, typeof i19.TranslateDirective, typeof i19.TranslateMatchDirective, typeof i19.TranslateTextDirective], [typeof i1.ZeroStateComponent, typeof i2.LoadingMaskComponent, typeof i3.ConfirmDeleteComponent, typeof i4.FoldableBlockComponent, typeof i5.RelativeTimeComponent, typeof i3.ConfirmDeleteContentDirective, typeof i3.ConfirmDeleteLabelDirective, typeof i3.ConfirmDeleteTipDirective, typeof i6.DisabledContainerComponent, typeof i7.TerminatingTagComponent, typeof i8.FoldableItemInTableComponent, typeof i9.SelectPrefixLabelDirective, typeof i10.TextWithUrlComponent, typeof i11.CardSectionComponent, typeof i12.CurrentTimeComponent, typeof i13.TextEllipsisComponent, typeof i14.ResourceMultiSelectComponent, typeof i15.FieldSetItemActionDirective, typeof i15.FieldSetItemComponent, typeof i16.FieldSetGroupComponent, typeof i17.FieldSetColumnComponent, typeof i17.FieldSetColumnGroupComponent, typeof i18.TranslatePipe, typeof i19.TranslateDirective, typeof i19.TranslateMatchDirective, typeof i19.TranslateTextDirective]>;
40
+ static ɵmod: i0.ɵɵNgModuleDeclaration<WidgetModule, never, [typeof i1.ZeroStateComponent, typeof i2.LoadingMaskComponent, typeof i3.ConfirmDeleteComponent, typeof i4.FoldableBlockComponent, typeof i5.RelativeTimeComponent, typeof i3.ConfirmDeleteContentDirective, typeof i3.ConfirmDeleteLabelDirective, typeof i3.ConfirmDeleteTipDirective, typeof i6.DisabledContainerComponent, typeof i7.TerminatingTagComponent, typeof i8.FoldableItemInTableComponent, typeof i9.SelectPrefixLabelDirective, typeof i10.TextWithUrlComponent, typeof i11.CardSectionComponent, typeof i12.CurrentTimeComponent, typeof i13.TextEllipsisComponent, typeof i14.ResourceMultiSelectComponent, typeof i15.FieldSetItemActionDirective, typeof i15.FieldSetItemComponent, typeof i16.FieldSetGroupComponent, typeof i17.FieldSetColumnComponent, typeof i17.FieldSetColumnGroupComponent], [typeof i1.ZeroStateComponent, typeof i2.LoadingMaskComponent, typeof i3.ConfirmDeleteComponent, typeof i4.FoldableBlockComponent, typeof i5.RelativeTimeComponent, typeof i3.ConfirmDeleteContentDirective, typeof i3.ConfirmDeleteLabelDirective, typeof i3.ConfirmDeleteTipDirective, typeof i6.DisabledContainerComponent, typeof i7.TerminatingTagComponent, typeof i8.FoldableItemInTableComponent, typeof i9.SelectPrefixLabelDirective, typeof i10.TextWithUrlComponent, typeof i11.CardSectionComponent, typeof i12.CurrentTimeComponent, typeof i13.TextEllipsisComponent, typeof i14.ResourceMultiSelectComponent, typeof i15.FieldSetItemActionDirective, typeof i15.FieldSetItemComponent, typeof i16.FieldSetGroupComponent, typeof i17.FieldSetColumnComponent, typeof i17.FieldSetColumnGroupComponent]>;
42
41
  static ɵinj: i0.ɵɵInjectorDeclaration<WidgetModule>;
43
42
  }
@@ -2,11 +2,24 @@ import { DialogRef, DialogService, SearchComponent, ThemeService } from '@alauda
2
2
  import { ChangeDetectorRef, TemplateRef } from '@angular/core';
3
3
  import { XtermComponent } from '../xterm.component';
4
4
  import * as i0 from "@angular/core";
5
+ export interface XtermTerminalActionConfig {
6
+ find?: boolean;
7
+ copy?: boolean;
8
+ fullscreen?: boolean;
9
+ export?: boolean;
10
+ }
11
+ export declare const BASE_XTERM_TERMINAL_ACTIONS: {
12
+ find: boolean;
13
+ copy: boolean;
14
+ fullscreen: boolean;
15
+ export: boolean;
16
+ };
5
17
  export declare class XtermTerminalComponent {
6
18
  private readonly dialog;
7
19
  cdr: ChangeDetectorRef;
8
20
  private readonly theme;
9
21
  logs: string | string[];
22
+ actionConfig: XtermTerminalActionConfig;
10
23
  logXtermComponent: XtermComponent;
11
24
  searchInputRef: SearchComponent;
12
25
  viewTemplateRef: TemplateRef<any>;
@@ -27,5 +40,5 @@ export declare class XtermTerminalComponent {
27
40
  copy(): void;
28
41
  write(logs: string | string[]): void;
29
42
  static ɵfac: i0.ɵɵFactoryDeclaration<XtermTerminalComponent, [null, null, { optional: true; }]>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<XtermTerminalComponent, "acl-xterm-terminal", never, { "logs": { "alias": "logs"; "required": false; }; }, {}, never, ["[aclXtermTerminalToolbarLeft]", "[aclXtermTerminalToolbarRight]"], true, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<XtermTerminalComponent, "acl-xterm-terminal", never, { "logs": { "alias": "logs"; "required": false; }; "actionConfig": { "alias": "actionConfig"; "required": false; }; }, {}, never, ["[aclXtermTerminalToolbarLeft]", "[aclXtermTerminalToolbarRight]"], true, never>;
31
44
  }